AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::EC2::ClientVpnTargetNetworkAssociation

CfnClientVpnTargetNetworkAssociation

Specifies a target network to associate with a Client VPN endpoint. A target network is a subnet in a VPC. You can associate multiple subnets from the same VPC with a Client VPN endpoint. You can associate only one subnet in each Availability Zone. We recommend that you associate at least two subnets to provide Availability Zone redundancy.

Import

import { CfnClientVpnTargetNetworkAssociation } from 'aws-cdk-lib/aws-ec2';

Or use the module namespace:

import * as ec2 from 'aws-cdk-lib/aws-ec2';
// ec2.CfnClientVpnTargetNetworkAssociation

Properties

Configuration passed to the constructor as CfnClientVpnTargetNetworkAssociationProps.

clientVpnEndpointIdRequired
string

The ID of the Client VPN endpoint.

subnetIdRequired
string

The ID of the subnet to associate with the Client VPN endpoint.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Get the Amazon EC2 Cheat Sheet

Everything you need to know about Amazon EC2 on one page. HD quality, print-friendly.

Download Free Infographic