AWS::EC2::EgressOnlyInternetGateway[IPv6 only] Specifies an egress-only internet gateway for your VPC. An egress-only internet gateway is used to enable outbound communication over IPv6 from instances in your VPC to the internet, and prevents hosts outside of your VPC from initiating an IPv6 connection with your instance. For more information, see [Egress-only internet gateway](https://docs.aws.amazon.com/vpc/latest/userguide/egress-only-internet-gateway.html) in the *Amazon VPC User Guide* .
import { CfnEgressOnlyInternetGateway } from 'aws-cdk-lib/aws-ec2';Or use the module namespace:
import * as ec2 from 'aws-cdk-lib/aws-ec2';
// ec2.CfnEgressOnlyInternetGatewayConfiguration passed to the constructor as CfnEgressOnlyInternetGatewayProps.
vpcIdRequiredstring | IVPCRefThe ID of the VPC for which to create the egress-only internet gateway.
tagsOptionalCfnTag[]The tags assigned to the egress-only 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::EgressOnlyInternetGateway