interface InternetGatewayOptions
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.ec2.Alpha.InternetGatewayOptions |
![]() | github.com/aws/aws-cdk-go/awsec2alpha/v2#InternetGatewayOptions |
![]() | software.amazon.awscdk.services.ec2.alpha.InternetGatewayOptions |
![]() | aws_cdk.aws_ec2_alpha.InternetGatewayOptions |
![]() | @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 |
---|---|---|
internet | string | The resource name of the internet gateway. |
ipv4 | string | Destination Ipv6 address for EGW route. |
ipv6 | string | Destination Ipv6 address for EGW route. |
subnets? | Subnet [] | List of subnets where route to IGW will be added. |
internetGatewayName?
Type:
string
(optional, default: provisioned without a resource name)
The resource name of the internet gateway.
Provided name will be used for tagging
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.
subnets?
Type:
Subnet
[]
(optional, default: route created for all subnets with Type SubnetType.Public
)
List of subnets where route to IGW will be added.