Experimental
@aws-cdk/aws-ec2-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
VPNGatewayV2Options Struct
Options to define VPNGatewayV2 for VPC.
Example
ts
const stack = new Stack();
const myVpc = new VpcV2(this, 'Vpc');
const vpnGateway = myVpc.enableVpnGatewayV2({
vpnRoutePropagation: [{ subnetType: SubnetType.PUBLIC }],
type: VpnConnectionType.IPSEC_1,
});
const routeTable = new RouteTable(stack, 'routeTable', {
vpc: myVpc
} );
new Route(stack, 'route', {
destination: '172.31.0.0/24',
target: { gateway: vpnGateway },
routeTable: routeTable,
});
Properties
amazonSideAsnnumberamazon_side_asnint | floatamazonSideAsnNumberAmazonSideAsndoubleAmazonSideAsn*float64= no ASN set for BGP session#The private Autonomous System Number (ASN) for the Amazon side of a BGP session.
typeVpnConnectionTypetypeVpnConnectionTypetypeVpnConnectionTypeTypeVpnConnectionTypeTypeVpnConnectionTyperequired#The type of VPN connection the virtual private gateway supports.
vpnGatewayNamestringvpn_gateway_namestrvpnGatewayNameStringVpnGatewayNamestringVpnGatewayName*string= resource provisioned without any…#The resource name of the VPN gateway.
default
Default: resource provisioned without any name
vpnRoutePropagationSubnetSelection[]vpn_route_propagationtyping.List[SubnetSelection]vpnRoutePropagationList<SubnetSelection>VpnRoutePropagationSubnetSelection[]VpnRoutePropagation*[]SubnetSelection= no propagation for routes#Subnets where the route propagation should be added.