AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::EC2::CustomerGateway

CfnCustomerGateway

Specifies a customer gateway.

Import

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

Or use the module namespace:

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

Properties

Configuration passed to the constructor as CfnCustomerGatewayProps.

ipAddressRequired
string

The IP address for the customer gateway device's outside interface. The address must be static. If `OutsideIpAddressType` in your VPN connection options is set to `PrivateIpv4` , you can use an RFC6598 or RFC1918 private IPv4 address. If `OutsideIpAddressType` is set to `Ipv6` , you can use an IPv6 address.

typeRequired
string

The type of VPN connection that this customer gateway supports ( `ipsec.1` ).

bgpAsnOptional
number

For customer gateway devices that support BGP, specify the device's ASN. You must specify either `BgpAsn` or `BgpAsnExtended` when creating the customer gateway. If the ASN is larger than `2,147,483,647` , you must use `BgpAsnExtended` . Default: 65000 Valid values: `1` to `2,147,483,647`

Default: - 65000

bgpAsnExtendedOptional
number

For customer gateway devices that support BGP, specify the device's ASN. You must specify either `BgpAsn` or `BgpAsnExtended` when creating the customer gateway. If the ASN is larger than `2,147,483,647` , you must use `BgpAsnExtended` . Valid values: `2,147,483,648` to `4,294,967,295`

certificateArnOptional
string

The Amazon Resource Name (ARN) for the customer gateway certificate.

deviceNameOptional
string

The name of customer gateway device.

tagsOptional
CfnTag[]

One or more tags for the customer 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