> **Experimental**
>
> `@aws-cdk/aws-ec2-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# VPNGatewayV2Options

Options to define VPNGatewayV2 for VPC.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/vpc-v2-base.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0-alpha.0/packages/@aws-cdk/aws-ec2-alpha/lib/vpc-v2-base.ts#L116)

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

- `amazonSideAsn`: number — The private Autonomous System Number (ASN) for the Amazon side of a BGP session.

  **Default:** no ASN set for BGP session

- `type`: [VpnConnectionType](/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.VpnConnectionType.html) (required) — The type of VPN connection the virtual private gateway supports.

- `vpnGatewayName`: string — The resource name of the VPN gateway.

  **Default:** resource provisioned without any name

- `vpnRoutePropagation`: [SubnetSelection](/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.SubnetSelection.html)[] — Subnets where the route propagation should be added.

  **Default:** no propagation for routes
