We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
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:
- Client
Vpn stringEndpoint Id - 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 stringId - 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.
- Client
Vpn stringEndpoint Id - 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 stringId - 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.
- client_
vpn_ stringendpoint_ id - 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_ stringid - 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.
- client
Vpn StringEndpoint Id - 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 StringId - 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.
- client
Vpn stringEndpoint Id - 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 stringId - 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.
- client_
vpn_ strendpoint_ id - 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_ strid - 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.
- client
Vpn StringEndpoint Id - 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 StringId - 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the ClientVpnTargetNetworkAssociation resource produces the following output properties:
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
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) -> ClientVpnTargetNetworkAssociationfunc 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
We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi