SecondaryAddressProps

class aws_cdk.aws_ec2_alpha.SecondaryAddressProps(*, cidr_block_name)

Bases: object

(experimental) Additional props needed for secondary Address.

Parameters:

cidr_block_name (str) – (experimental) Required to set Secondary cidr block resource name in order to generate unique logical id for the resource.

Stability:

experimental

ExampleMetadata:

infused

Example:

stack = Stack()
my_vpc = VpcV2(self, "Vpc",
    primary_address_block=IpAddresses.ipv4("10.1.0.0/16"),
    secondary_address_blocks=[IpAddresses.amazon_provided_ipv6(
        cidr_block_name="AmazonProvided"
    )]
)

eigw = EgressOnlyInternetGateway(self, "EIGW",
    vpc=my_vpc
)

route_table = RouteTable(self, "RouteTable",
    vpc=my_vpc
)

route_table.add_route("EIGW", "::/0", {"gateway": eigw})

Attributes

cidr_block_name

(experimental) Required to set Secondary cidr block resource name in order to generate unique logical id for the resource.

Stability:

experimental