AWS::EC2::InternetGatewayAllocates an internet gateway for use with a VPC. After creating the Internet gateway, you then attach it to a VPC.
import { CfnInternetGateway } from 'aws-cdk-lib/aws-ec2';Or use the module namespace:
import * as ec2 from 'aws-cdk-lib/aws-ec2';
// ec2.CfnInternetGatewayConfiguration passed to the constructor as CfnInternetGatewayProps.
tagsOptionalCfnTag[]Any tags to assign to the internet gateway.
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::InternetGateway