AWS::EC2::VPCGatewayAttachmentAttaches an internet gateway, or a virtual private gateway to a VPC, enabling connectivity between the internet and the VPC.
import { CfnVPCGatewayAttachment } from 'aws-cdk-lib/aws-ec2';Or use the module namespace:
import * as ec2 from 'aws-cdk-lib/aws-ec2';
// ec2.CfnVPCGatewayAttachmentConfiguration passed to the constructor as CfnVPCGatewayAttachmentProps.
vpcIdRequiredstring | IVPCRefThe ID of the VPC.
internetGatewayIdOptionalstring | IInternetGatewayRefThe ID of the internet gateway. You must specify either `InternetGatewayId` or `VpnGatewayId` , but not both.
vpnGatewayIdOptionalstring | IVPNGatewayRefThe ID of the virtual private gateway. You must specify either `InternetGatewayId` or `VpnGatewayId` , but not both.
This L1 construct maps directly to the following CloudFormation resource type.
Everything you need to know about Amazon EC2 on one page. HD quality, print-friendly.
Download Free Infographicaws-ec2AWS::EC2::VPCGatewayAttachment