AllocatedSubnet

class aws_cdk.aws_ec2.AllocatedSubnet(*, cidr, ipv6_cidr=None)

Bases: object

CIDR Allocated Subnet.

Parameters:
  • cidr (str) – IPv4 CIDR Allocations for a Subnet. Note this is specific to the IPv4 CIDR.

  • ipv6_cidr (Optional[str]) – IPv6 CIDR Allocations for a Subnet. Note this is specific to the IPv6 CIDR. Default: - no IPV6 CIDR

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2

allocated_subnet = ec2.AllocatedSubnet(
    cidr="cidr",

    # the properties below are optional
    ipv6_cidr="ipv6Cidr"
)

Attributes

cidr

IPv4 CIDR Allocations for a Subnet.

Note this is specific to the IPv4 CIDR.

ipv6_cidr

IPv6 CIDR Allocations for a Subnet.

Note this is specific to the IPv6 CIDR.

Default:
  • no IPV6 CIDR