AWS Fundamentals Logo
AWS Fundamentals
L2 Construct

VpnGateway

The VPN Gateway that shall be added to the VPC.

Import

import { VpnGateway } from 'aws-cdk-lib/aws-ec2';

Or use the module namespace:

import * as ec2 from 'aws-cdk-lib/aws-ec2';
// ec2.VpnGateway

Properties

Configuration passed to the constructor as VpnGatewayProps.

typeRequired
string

Default type ipsec.1.

amazonSideAsnOptional
number

Explicitly specify an Asn or let aws pick an Asn for you.

Default: 65000

Get the Amazon EC2 Cheat Sheet

Everything you need to know about Amazon EC2 on one page. HD quality, print-friendly.

Download Free Infographic