InternetGatewayProps
- class aws_cdk.aws_ec2_alpha.InternetGatewayProps(*, vpc, internet_gateway_name=None)
Bases:
object
(experimental) Properties to define an internet gateway.
- Parameters:
vpc (
IVpcV2
) – (experimental) The ID of the VPC for which to create the internet gateway.internet_gateway_name (
Optional
[str
]) – (experimental) The resource name of the internet gateway. Default: - provisioned without a resource name
- Stability:
experimental
- ExampleMetadata:
infused
Example:
stack = Stack() my_vpc = VpcV2(self, "Vpc") route_table = RouteTable(self, "RouteTable", vpc=my_vpc ) subnet = SubnetV2(self, "Subnet", vpc=my_vpc, availability_zone="eu-west-2a", ipv4_cidr_block=IpCidr("10.0.0.0/24"), subnet_type=SubnetType.PRIVATE_ISOLATED ) igw = InternetGateway(self, "IGW", vpc=my_vpc ) Route(self, "IgwRoute", route_table=route_table, destination="0.0.0.0/0", target={"gateway": igw} )
Attributes
- internet_gateway_name
(experimental) The resource name of the internet gateway.
- Default:
provisioned without a resource name
- Stability:
experimental
- vpc
(experimental) The ID of the VPC for which to create the internet gateway.
- Stability:
experimental