AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::EC2::CarrierGateway

CfnCarrierGateway

Creates a carrier gateway. For more information about carrier gateways, see [Carrier gateways](https://docs.aws.amazon.com/wavelength/latest/developerguide/how-wavelengths-work.html#wavelength-carrier-gateway) in the *AWS Wavelength Developer Guide* .

Import

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

Or use the module namespace:

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

Properties

Configuration passed to the constructor as CfnCarrierGatewayProps.

vpcIdRequired
string | IVPCRef

The ID of the VPC associated with the carrier gateway.

tagsOptional
CfnTag[]

The tags assigned to the carrier 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