Skip to content
v2.274.0

VpnConnectionType Enum ​

The VPN connection type.

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,
});

Members ​

MemberDescription
IPSEC_1The IPsec 1 VPN connection type.
DUMMYDummy member TODO: remove once https://github.com/aws/jsii/issues/231 is fixed.

Referenced by ​