IIpamScopeBase

class aws_cdk.aws_ec2_alpha.IIpamScopeBase(*args, **kwargs)

Bases: Protocol

(experimental) Interface for IpamScope Class.

Stability:

experimental

Methods

add_pool(id, *, address_family, aws_service=None, ipv4_provisioned_cidrs=None, locale=None, public_ip_source=None)

(experimental) Function to add a new pool to an IPAM scope.

Parameters:
  • id (str) –

  • address_family (AddressFamily) – (experimental) addressFamily - The address family of the pool (ipv4 or ipv6).

  • aws_service (Optional[AwsServiceName]) – (experimental) Limits which service in AWS that the pool can be used in. “ec2”, for example, allows users to use space for Elastic IP addresses and VPCs. Default: - required in case of an IPv6, throws an error if not provided.

  • ipv4_provisioned_cidrs (Optional[Sequence[str]]) – (experimental) Information about the CIDRs provisioned to the pool. Default: - No CIDRs are provisioned

  • locale (Optional[str]) – (experimental) The locale (AWS Region) of the pool. Should be one of the IPAM operating region. Only resources in the same Region as the locale of the pool can get IP address allocations from the pool. You can only allocate a CIDR for a VPC, for example, from an IPAM pool that shares a locale with the VPC’s Region. Note that once you choose a Locale for a pool, you cannot modify it. If you choose an AWS Region for locale that has not been configured as an operating Region for the IPAM, you’ll get an error. Default: - Current operating region of IPAM

  • public_ip_source (Optional[IpamPoolPublicIpSource]) – (experimental) The IP address source for pools in the public scope. Only used for IPv6 address Only allowed values to this are ‘byoip’ or ‘amazon’ Default: amazon

Stability:

experimental

Return type:

IIpamPool

Attributes

scope

(experimental) Reference to the current scope of stack to be passed in order to create a new IPAM pool.

Stability:

experimental

scope_id

(experimental) Default Scope ids created by the IPAM or a new Resource id.

Stability:

experimental

scope_type

(experimental) Defines scope type can be either default or custom.

Stability:

experimental