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

Properties to define a VPN gateway.

Extends: VPNGatewayV2Props
Extends: VPNGatewayV2Options
Used as props by: VPNGatewayV2

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

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as ec2_alpha from '@aws-cdk/aws-ec2-alpha';
import { aws_ec2 as ec2 } from 'aws-cdk-lib';

declare const subnet: ec2.Subnet;
declare const subnetFilter: ec2.SubnetFilter;
declare const vpcV2: ec2_alpha.VpcV2;
const vPNGatewayV2Props: ec2_alpha.VPNGatewayV2Props = {
  type: ec2.VpnConnectionType.IPSEC_1,
  vpc: vpcV2,

  // the properties below are optional
  amazonSideAsn: 123,
  vpnGatewayName: 'vpnGatewayName',
  vpnRoutePropagation: [{
    availabilityZones: ['availabilityZones'],
    onePerAz: false,
    subnetFilters: [subnetFilter],
    subnetGroupName: 'subnetGroupName',
    subnets: [subnet],
    subnetType: ec2.SubnetType.PRIVATE_ISOLATED,
  }],
};
```

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

- `vpc`: [IVpcV2](/cdk/api/v2/docs/@aws-cdk_aws-ec2-alpha.IVpcV2.html) (required) — The ID of the VPC for which to create the VPN gateway.

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