enum VpnConnectionType
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.EC2.VpnConnectionType |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#VpnConnectionType |
![]() | software.amazon.awscdk.services.ec2.VpnConnectionType |
![]() | aws_cdk.aws_ec2.VpnConnectionType |
![]() | aws-cdk-lib » aws_ec2 » VpnConnectionType |
The VPN connection type.
Example
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,
});
Members
Name | Description |
---|---|
IPSEC_1 | The IPsec 1 VPN connection type. |
DUMMY | Dummy member TODO: remove once https://github.com/aws/jsii/issues/231 is fixed. |
IPSEC_1
The IPsec 1 VPN connection type.
DUMMY
Dummy member TODO: remove once https://github.com/aws/jsii/issues/231 is fixed.