Skip to content
v2.278.0

CfnClientVpnTargetNetworkAssociationProps Struct ​

Properties for defining a CfnClientVpnTargetNetworkAssociation.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const cfnClientVpnTargetNetworkAssociationProps: ec2.CfnClientVpnTargetNetworkAssociationProps = {
  clientVpnEndpointId: 'clientVpnEndpointId',

  // the properties below are optional
  availabilityZone: 'availabilityZone',
  availabilityZoneId: 'availabilityZoneId',
  subnetId: 'subnetId',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2

cfn_client_vpn_target_network_association_props = ec2.CfnClientVpnTargetNetworkAssociationProps(
    client_vpn_endpoint_id="clientVpnEndpointId",

    # the properties below are optional
    availability_zone="availabilityZone",
    availability_zone_id="availabilityZoneId",
    subnet_id="subnetId"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;

CfnClientVpnTargetNetworkAssociationProps cfnClientVpnTargetNetworkAssociationProps = CfnClientVpnTargetNetworkAssociationProps.builder()
        .clientVpnEndpointId("clientVpnEndpointId")

        // the properties below are optional
        .availabilityZone("availabilityZone")
        .availabilityZoneId("availabilityZoneId")
        .subnetId("subnetId")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;

var cfnClientVpnTargetNetworkAssociationProps = new CfnClientVpnTargetNetworkAssociationProps {
    ClientVpnEndpointId = "clientVpnEndpointId",

    // the properties below are optional
    AvailabilityZone = "availabilityZone",
    AvailabilityZoneId = "availabilityZoneId",
    SubnetId = "subnetId"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnClientVpnTargetNetworkAssociationProps := &CfnClientVpnTargetNetworkAssociationProps{
	ClientVpnEndpointId: jsii.String("clientVpnEndpointId"),

	// the properties below are optional
	AvailabilityZone: jsii.String("availabilityZone"),
	AvailabilityZoneId: jsii.String("availabilityZoneId"),
	SubnetId: jsii.String("subnetId"),
}

Properties ​

availabilityZoneoptionalstringavailability_zoneoptionalstravailabilityZoneoptionalStringAvailabilityZoneoptionalstringAvailabilityZoneoptional*string #
The Availability Zone to associate with the Client VPN endpoint.

Used for Transit Gateway-based endpoints in place of SubnetId.

availabilityZoneIdoptionalstringavailability_zone_idoptionalstravailabilityZoneIdoptionalStringAvailabilityZoneIdoptionalstringAvailabilityZoneIdoptional*string #
The ID of the Availability Zone to associate with the Client VPN endpoint.

Used for Transit Gateway-based endpoints in place of SubnetId.

clientVpnEndpointIdstringclient_vpn_endpoint_idstrclientVpnEndpointIdStringClientVpnEndpointIdstringClientVpnEndpointId*string required #
The ID of the Client VPN endpoint.
subnetIdoptionalstringsubnet_idoptionalstrsubnetIdoptionalStringSubnetIdoptionalstringSubnetIdoptional*string #
The ID of the subnet to associate with the Client VPN endpoint.