interface InternetGatewayOptions
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ec2.Alpha.InternetGatewayOptions |
Go | github.com/aws/aws-cdk-go/awsec2alpha/v2#InternetGatewayOptions |
Java | software.amazon.awscdk.services.ec2.alpha.InternetGatewayOptions |
Python | aws_cdk.aws_ec2_alpha.InternetGatewayOptions |
TypeScript (source) | @aws-cdk/aws-ec2-alpha » InternetGatewayOptions |
Options to define InternetGateway for VPC.
Example
const stack = new Stack();
const myVpc = new VpcV2(this, 'Vpc');
const subnet = new SubnetV2(this, 'Subnet', {
vpc: myVpc,
availabilityZone: 'eu-west-2a',
ipv4CidrBlock: new IpCidr('10.0.0.0/24'),
subnetType: SubnetType.PUBLIC });
myVpc.addInternetGateway({
ipv4Destination: '192.168.0.0/16',
});
Properties
Name | Type | Description |
---|---|---|
ipv4 | string | Destination Ipv6 address for EGW route. |
ipv6 | string | Destination Ipv6 address for EGW route. |
ipv4Destination?
Type:
string
(optional, default: '0.0.0.0' all Ipv4 traffic)
Destination Ipv6 address for EGW route.
ipv6Destination?
Type:
string
(optional, default: '::/0' all Ipv6 traffic)
Destination Ipv6 address for EGW route.