aws-cdk-lib.aws_ec2.EnableVpnGatewayOptions

interface EnableVpnGatewayOptions

LanguageType name
.NETAmazon.CDK.AWS.EC2.EnableVpnGatewayOptions
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#EnableVpnGatewayOptions
Javasoftware.amazon.awscdk.services.ec2.EnableVpnGatewayOptions
Pythonaws_cdk.aws_ec2.EnableVpnGatewayOptions
TypeScript (source)aws-cdk-lib » aws_ec2 » EnableVpnGatewayOptions

Options for the Vpc.enableVpnGateway() method.

Example

// 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';

declare const subnet: ec2.Subnet;
declare const subnetFilter: ec2.SubnetFilter;
const enableVpnGatewayOptions: ec2.EnableVpnGatewayOptions = {
  type: 'type',

  // the properties below are optional
  amazonSideAsn: 123,
  vpnRoutePropagation: [{
    availabilityZones: ['availabilityZones'],
    onePerAz: false,
    subnetFilters: [subnetFilter],
    subnetGroupName: 'subnetGroupName',
    subnets: [subnet],
    subnetType: ec2.SubnetType.PRIVATE_ISOLATED,
  }],
};

Properties

NameTypeDescription
typestringDefault type ipsec.1.
amazonSideAsn?numberExplicitly specify an Asn or let aws pick an Asn for you.
vpnRoutePropagation?SubnetSelection[]Provide an array of subnets where the route propagation should be added.

type

Type: string

Default type ipsec.1.


amazonSideAsn?

Type: number (optional, default: 65000)

Explicitly specify an Asn or let aws pick an Asn for you.


vpnRoutePropagation?

Type: SubnetSelection[] (optional, default: noPropagation)

Provide an array of subnets where the route propagation should be added.