AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::EC2::VPNGateway

CfnVPNGateway

Specifies a virtual private gateway. A virtual private gateway is the endpoint on the VPC side of your VPN connection. You can create a virtual private gateway before creating the VPC itself. For more information, see [AWS Site-to-Site VPN](https://docs.aws.amazon.com/vpn/latest/s2svpn/VPC_VPN.html) in the *AWS Site-to-Site VPN User Guide* .

Import

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

Or use the module namespace:

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

Properties

Configuration passed to the constructor as CfnVPNGatewayProps.

typeRequired
string

The type of VPN connection the virtual private gateway supports.

amazonSideAsnOptional
number

The private Autonomous System Number (ASN) for the Amazon side of a BGP session.

tagsOptional
CfnTag[]

Any tags assigned to the virtual private gateway.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Get the Amazon EC2 Cheat Sheet

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

Download Free Infographic