# VpnConnectionType

The VPN connection type.

- Source: [`aws-ec2/lib/vpn.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-ec2/lib/vpn.ts#L154)

## 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

| Member | Description |
| --- | --- |
| `IPSEC_1` | The IPsec 1 VPN connection type. |
| `DUMMY` | Dummy member TODO: remove once https://github.com/aws/jsii/issues/231 is fixed. |

## Referenced by

- [`VPNGatewayV2Options`](/v2/docs/@aws-cdk_aws-ec2-alpha.VPNGatewayV2Options).type
