interface EgressOnlyInternetGatewayProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.ec2.Alpha.EgressOnlyInternetGatewayProps |
![]() | github.com/aws/aws-cdk-go/awsec2alpha/v2#EgressOnlyInternetGatewayProps |
![]() | software.amazon.awscdk.services.ec2.alpha.EgressOnlyInternetGatewayProps |
![]() | aws_cdk.aws_ec2_alpha.EgressOnlyInternetGatewayProps |
![]() | @aws-cdk/aws-ec2-alpha » EgressOnlyInternetGatewayProps |
Properties to define an egress-only internet gateway.
Example
const stack = new Stack();
const myVpc = new VpcV2(this, 'Vpc',{
primaryAddressBlock: IpAddresses.ipv4('10.1.0.0/16'),
secondaryAddressBlocks: [IpAddresses.amazonProvidedIpv6({
cidrBlockName: 'AmazonProvided',
})]
});
const eigw = new EgressOnlyInternetGateway(this, 'EIGW', {
vpc: myVpc,
});
const routeTable = new RouteTable(this, 'RouteTable', {
vpc: myVpc,
});
routeTable.addRoute('EIGW', '::/0', { gateway: eigw });
Properties
Name | Type | Description |
---|---|---|
vpc | IVpc | The ID of the VPC for which to create the egress-only internet gateway. |
egress | string | The resource name of the egress-only internet gateway. |
vpc
Type:
IVpc
The ID of the VPC for which to create the egress-only internet gateway.
egressOnlyInternetGatewayName?
Type:
string
(optional, default: provisioned without a resource name)
The resource name of the egress-only internet gateway.