AwsIpamProps

class aws_cdk.aws_ec2.AwsIpamProps(*, ipv4_ipam_pool_id, ipv4_netmask_length, default_subnet_ipv4_netmask_length=None)

Bases: object

Configuration for AwsIpam.

Parameters:
  • ipv4_ipam_pool_id (str) – Ipam Pool Id for ipv4 allocation.

  • ipv4_netmask_length (Union[int, float]) – Netmask length for Vpc.

  • default_subnet_ipv4_netmask_length (Union[int, float, None]) – Default length for Subnet ipv4 Network mask. Specify this option only if you do not specify all Subnets using SubnetConfiguration with a cidrMask Default: - Default ipv4 Subnet Mask for subnets in Vpc

ExampleMetadata:

infused

Example:

from aws_cdk.aws_ec2 import IpAddresses

# pool: ec2.CfnIPAMPool


ec2.Vpc(self, "TheVPC",
    ip_addresses=IpAddresses.aws_ipam_allocation(
        ipv4_ipam_pool_id=pool.ref,
        ipv4_netmask_length=18,
        default_subnet_ipv4_netmask_length=24
    )
)

Attributes

default_subnet_ipv4_netmask_length

Default length for Subnet ipv4 Network mask.

Specify this option only if you do not specify all Subnets using SubnetConfiguration with a cidrMask

Default:
  • Default ipv4 Subnet Mask for subnets in Vpc

ipv4_ipam_pool_id

Ipam Pool Id for ipv4 allocation.

ipv4_netmask_length

Netmask length for Vpc.