1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. ec2
  6. ClientVpnTargetNetworkAssociation

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi
aws-native logo aws-native logo AWS Cloud Control

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi

    Resource Type definition for AWS::EC2::ClientVpnTargetNetworkAssociation

    Create ClientVpnTargetNetworkAssociation Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ClientVpnTargetNetworkAssociation(name: string, args: ClientVpnTargetNetworkAssociationArgs, opts?: CustomResourceOptions);
    @overload
    def ClientVpnTargetNetworkAssociation(resource_name: str,
                                          args: ClientVpnTargetNetworkAssociationArgs,
                                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def ClientVpnTargetNetworkAssociation(resource_name: str,
                                          opts: Optional[ResourceOptions] = None,
                                          client_vpn_endpoint_id: Optional[str] = None,
                                          availability_zone: Optional[str] = None,
                                          availability_zone_id: Optional[str] = None,
                                          subnet_id: Optional[str] = None)
    func NewClientVpnTargetNetworkAssociation(ctx *Context, name string, args ClientVpnTargetNetworkAssociationArgs, opts ...ResourceOption) (*ClientVpnTargetNetworkAssociation, error)
    public ClientVpnTargetNetworkAssociation(string name, ClientVpnTargetNetworkAssociationArgs args, CustomResourceOptions? opts = null)
    public ClientVpnTargetNetworkAssociation(String name, ClientVpnTargetNetworkAssociationArgs args)
    public ClientVpnTargetNetworkAssociation(String name, ClientVpnTargetNetworkAssociationArgs args, CustomResourceOptions options)
    
    type: aws-native:ec2:ClientVpnTargetNetworkAssociation
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws-native_ec2_client_vpn_target_network_association" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ClientVpnTargetNetworkAssociationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ClientVpnTargetNetworkAssociationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ClientVpnTargetNetworkAssociationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ClientVpnTargetNetworkAssociationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ClientVpnTargetNetworkAssociationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    ClientVpnTargetNetworkAssociation Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ClientVpnTargetNetworkAssociation resource accepts the following input properties:

    ClientVpnEndpointId string
    The ID of the Client VPN endpoint.
    AvailabilityZone string
    The Availability Zone to associate with the Client VPN endpoint. Used for Transit Gateway-based endpoints in place of SubnetId.
    AvailabilityZoneId string
    The ID of the Availability Zone to associate with the Client VPN endpoint. Used for Transit Gateway-based endpoints in place of SubnetId.
    SubnetId string
    The ID of the subnet to associate with the Client VPN endpoint. Required for VPC-based endpoints. For Transit Gateway-based endpoints, use AvailabilityZone or AvailabilityZoneId instead.
    ClientVpnEndpointId string
    The ID of the Client VPN endpoint.
    AvailabilityZone string
    The Availability Zone to associate with the Client VPN endpoint. Used for Transit Gateway-based endpoints in place of SubnetId.
    AvailabilityZoneId string
    The ID of the Availability Zone to associate with the Client VPN endpoint. Used for Transit Gateway-based endpoints in place of SubnetId.
    SubnetId string
    The ID of the subnet to associate with the Client VPN endpoint. Required for VPC-based endpoints. For Transit Gateway-based endpoints, use AvailabilityZone or AvailabilityZoneId instead.
    client_vpn_endpoint_id string
    The ID of the Client VPN endpoint.
    availability_zone string
    The Availability Zone to associate with the Client VPN endpoint. Used for Transit Gateway-based endpoints in place of SubnetId.
    availability_zone_id string
    The ID of the Availability Zone to associate with the Client VPN endpoint. Used for Transit Gateway-based endpoints in place of SubnetId.
    subnet_id string
    The ID of the subnet to associate with the Client VPN endpoint. Required for VPC-based endpoints. For Transit Gateway-based endpoints, use AvailabilityZone or AvailabilityZoneId instead.
    clientVpnEndpointId String
    The ID of the Client VPN endpoint.
    availabilityZone String
    The Availability Zone to associate with the Client VPN endpoint. Used for Transit Gateway-based endpoints in place of SubnetId.
    availabilityZoneId String
    The ID of the Availability Zone to associate with the Client VPN endpoint. Used for Transit Gateway-based endpoints in place of SubnetId.
    subnetId String
    The ID of the subnet to associate with the Client VPN endpoint. Required for VPC-based endpoints. For Transit Gateway-based endpoints, use AvailabilityZone or AvailabilityZoneId instead.
    clientVpnEndpointId string
    The ID of the Client VPN endpoint.
    availabilityZone string
    The Availability Zone to associate with the Client VPN endpoint. Used for Transit Gateway-based endpoints in place of SubnetId.
    availabilityZoneId string
    The ID of the Availability Zone to associate with the Client VPN endpoint. Used for Transit Gateway-based endpoints in place of SubnetId.
    subnetId string
    The ID of the subnet to associate with the Client VPN endpoint. Required for VPC-based endpoints. For Transit Gateway-based endpoints, use AvailabilityZone or AvailabilityZoneId instead.
    client_vpn_endpoint_id str
    The ID of the Client VPN endpoint.
    availability_zone str
    The Availability Zone to associate with the Client VPN endpoint. Used for Transit Gateway-based endpoints in place of SubnetId.
    availability_zone_id str
    The ID of the Availability Zone to associate with the Client VPN endpoint. Used for Transit Gateway-based endpoints in place of SubnetId.
    subnet_id str
    The ID of the subnet to associate with the Client VPN endpoint. Required for VPC-based endpoints. For Transit Gateway-based endpoints, use AvailabilityZone or AvailabilityZoneId instead.
    clientVpnEndpointId String
    The ID of the Client VPN endpoint.
    availabilityZone String
    The Availability Zone to associate with the Client VPN endpoint. Used for Transit Gateway-based endpoints in place of SubnetId.
    availabilityZoneId String
    The ID of the Availability Zone to associate with the Client VPN endpoint. Used for Transit Gateway-based endpoints in place of SubnetId.
    subnetId String
    The ID of the subnet to associate with the Client VPN endpoint. Required for VPC-based endpoints. For Transit Gateway-based endpoints, use AvailabilityZone or AvailabilityZoneId instead.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ClientVpnTargetNetworkAssociation resource produces the following output properties:

    AssociationId string
    The ID of the association between the Client VPN endpoint and the target network.
    Id string
    The provider-assigned unique ID for this managed resource.
    AssociationId string
    The ID of the association between the Client VPN endpoint and the target network.
    Id string
    The provider-assigned unique ID for this managed resource.
    association_id string
    The ID of the association between the Client VPN endpoint and the target network.
    id string
    The provider-assigned unique ID for this managed resource.
    associationId String
    The ID of the association between the Client VPN endpoint and the target network.
    id String
    The provider-assigned unique ID for this managed resource.
    associationId string
    The ID of the association between the Client VPN endpoint and the target network.
    id string
    The provider-assigned unique ID for this managed resource.
    association_id str
    The ID of the association between the Client VPN endpoint and the target network.
    id str
    The provider-assigned unique ID for this managed resource.
    associationId String
    The ID of the association between the Client VPN endpoint and the target network.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ClientVpnTargetNetworkAssociation Resource

    Get an existing ClientVpnTargetNetworkAssociation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): ClientVpnTargetNetworkAssociation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None) -> ClientVpnTargetNetworkAssociation
    func GetClientVpnTargetNetworkAssociation(ctx *Context, name string, id IDInput, state *ClientVpnTargetNetworkAssociationState, opts ...ResourceOption) (*ClientVpnTargetNetworkAssociation, error)
    public static ClientVpnTargetNetworkAssociation Get(string name, Input<string> id, CustomResourceOptions? opts = null)
    public static ClientVpnTargetNetworkAssociation get(String name, Output<String> id, CustomResourceOptions options)
    resources:  existingClientVpnTargetNetworkAssociation:    type: aws-native:ec2:ClientVpnTargetNetworkAssociation    get:      id: ${id}
    import {
      to = aws-native_ec2_client_vpn_target_network_association.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state ClientVpnTargetNetworkAssociationState
    Pass nil. This resource has no state arguments.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo AWS Cloud Control

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.86.0
    published on Wednesday, Nov 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial