IpamProps
- class aws_cdk.aws_ec2_alpha.IpamProps(*, ipam_name=None, operating_region=None)
Bases:
object
(experimental) Options to create a new Ipam in the account.
- Parameters:
ipam_name (
Optional
[str
]) – (experimental) Name of IPAM that can be used for tagging resource. Default: - If no name provided, no tags will be added to the IPAMoperating_region (
Optional
[Sequence
[str
]]) – (experimental) The operating Regions for an IPAM. Operating Regions are AWS Regions where the IPAM is allowed to manage IP address CIDRs For more information about operating Regions, see Create an IPAM in the Amazon VPC IPAM User Guide . Default: - Stack.region if defined in the stack
- Stability:
experimental
- ExampleMetadata:
infused
Example:
stack = Stack() ipam = Ipam(self, "Ipam", operating_region=["us-west-1"] ) ipam_public_pool = ipam.public_scope.add_pool("PublicPoolA", address_family=AddressFamily.IP_V6, aws_service=AwsServiceName.EC2, locale="us-west-1", public_ip_source=IpamPoolPublicIpSource.AMAZON ) ipam_public_pool.provision_cidr("PublicPoolACidrA", netmask_length=52) ipam_private_pool = ipam.private_scope.add_pool("PrivatePoolA", address_family=AddressFamily.IP_V4 ) ipam_private_pool.provision_cidr("PrivatePoolACidrA", netmask_length=8) VpcV2(self, "Vpc", primary_address_block=IpAddresses.ipv4("10.0.0.0/24"), secondary_address_blocks=[ IpAddresses.amazon_provided_ipv6(cidr_block_name="AmazonIpv6"), IpAddresses.ipv6_ipam( ipam_pool=ipam_public_pool, netmask_length=52, cidr_block_name="ipv6Ipam" ), IpAddresses.ipv4_ipam( ipam_pool=ipam_private_pool, netmask_length=8, cidr_block_name="ipv4Ipam" ) ] )
Attributes
- ipam_name
(experimental) Name of IPAM that can be used for tagging resource.
- Default:
If no name provided, no tags will be added to the IPAM
- Stability:
experimental
- operating_region
(experimental) The operating Regions for an IPAM.
Operating Regions are AWS Regions where the IPAM is allowed to manage IP address CIDRs For more information about operating Regions, see Create an IPAM in the Amazon VPC IPAM User Guide .
- Default:
Stack.region if defined in the stack
- See:
- Stability:
experimental