create_ipam_pool
async
¶
create_ipam_pool(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
dry_run: Optional[Boolean] = None,
ipam_scope_id: Optional[IpamScopeId] = None,
locale: Optional[String] = None,
source_ipam_pool_id: Optional[IpamPoolId] = None,
description: Optional[String] = None,
address_family: Optional[AddressFamily] = None,
auto_import: Optional[Boolean] = None,
publicly_advertisable: Optional[Boolean] = None,
allocation_min_netmask_length: Optional[IpamNetmaskLength] = None,
allocation_max_netmask_length: Optional[IpamNetmaskLength] = None,
allocation_default_netmask_length: Optional[IpamNetmaskLength] = None,
allocation_resource_tags: Optional[RequestIpamResourceTagList] = None,
tag_specifications: Optional[TagSpecificationList] = None,
client_token: Optional[String] = None,
aws_service: Optional[IpamPoolAwsService] = None,
public_ip_source: Optional[IpamPoolPublicIpSource] = None,
source_resource: Optional[IpamPoolSourceResourceRequest] = None,
) -> CreateIpamPoolResult
Create an IP address pool for Amazon VPC IP Address Manager (IPAM). In IPAM, a pool is a collection of contiguous IP addresses CIDRs. Pools enable you to organize your IP addresses according to your routing and security needs. For example, if you have separate routing and security needs for development and production applications, you can create a pool for each.
For more information, see Create a top-level pool in the Amazon VPC IPAM User Guide.
Parameters:
-
dry_run(Optional[Boolean], default:None) –A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation. -
ipam_scope_id(Optional[IpamScopeId], default:None) –The ID of the scope in which you would like to create the IPAM pool.
-
locale(Optional[String], default:None) –The locale for the pool should be one of the following:
-
An Amazon Web Services Region where you want this IPAM pool to be available for allocations.
-
The network border group for an Amazon Web Services Local Zone where you want this IPAM pool to be available for allocations (supported Local Zones). This option is only available for IPAM IPv4 pools in the public scope.
Possible values: Any Amazon Web Services Region or supported Amazon Web Services Local Zone. Default is
noneand means any locale. -
-
source_ipam_pool_id(Optional[IpamPoolId], default:None) –The ID of the source IPAM pool. Use this option to create a pool within an existing pool. Note that the CIDR you provision for the pool within the source pool must be available in the source pool's CIDR range.
-
description(Optional[String], default:None) –A description for the IPAM pool.
-
address_family(Optional[AddressFamily], default:None) –The IP protocol assigned to this IPAM pool. You must choose either IPv4 or IPv6 protocol for a pool.
-
auto_import(Optional[Boolean], default:None) –If selected, IPAM will continuously look for resources within the CIDR range of this pool and automatically import them as allocations into your IPAM. The CIDRs that will be allocated for these resources must not already be allocated to other resources in order for the import to succeed. IPAM will import a CIDR regardless of its compliance with the pool's allocation rules, so a resource might be imported and subsequently marked as noncompliant. If IPAM discovers multiple CIDRs that overlap, IPAM will import the largest CIDR only. If IPAM discovers multiple CIDRs with matching CIDRs, IPAM will randomly import one of them only.
A locale must be set on the pool for this feature to work.
-
publicly_advertisable(Optional[Boolean], default:None) –Determines if the pool is publicly advertisable. The request can only contain
PubliclyAdvertisableifAddressFamilyisipv6andPublicIpSourceisbyoip. -
allocation_min_netmask_length(Optional[IpamNetmaskLength], default:None) –The minimum netmask length required for CIDR allocations in this IPAM pool to be compliant. The minimum netmask length must be less than the maximum netmask length. Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128.
-
allocation_max_netmask_length(Optional[IpamNetmaskLength], default:None) –The maximum netmask length possible for CIDR allocations in this IPAM pool to be compliant. The maximum netmask length must be greater than the minimum netmask length. Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128.
-
allocation_default_netmask_length(Optional[IpamNetmaskLength], default:None) –The default netmask length for allocations added to this pool. If, for example, the CIDR assigned to this pool is 10.0.0.0/8 and you enter 16 here, new allocations will default to 10.0.0.0/16.
-
allocation_resource_tags(Optional[RequestIpamResourceTagList], default:None) –Tags that are required for resources that use CIDRs from this IPAM pool. Resources that do not have these tags will not be allowed to allocate space from the pool. If the resources have their tags changed after they have allocated space or if the allocation tagging requirements are changed on the pool, the resource may be marked as noncompliant.
-
tag_specifications(Optional[TagSpecificationList], default:None) –The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key
Ownerand the valueTeamA, specifytag:Ownerfor the filter name andTeamAfor the filter value. -
client_token(Optional[String], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.
-
aws_service(Optional[IpamPoolAwsService], default:None) –Limits which service in Amazon Web Services that the pool can be used in. "ec2", for example, allows users to use space for Elastic IP addresses and VPCs.
-
public_ip_source(Optional[IpamPoolPublicIpSource], default:None) –The IP address source for pools in the public scope. Only used for provisioning IP address CIDRs to pools in the public scope. Default is
byoip. For more information, see Create IPv6 pools in the Amazon VPC IPAM User Guide. By default, you can add only one Amazon-provided IPv6 CIDR block to a top-level IPv6 pool if PublicIpSource isamazon. For information on increasing the default limit, see Quotas for your IPAM in the Amazon VPC IPAM User Guide. -
source_resource(Optional[IpamPoolSourceResourceRequest], default:None) –The resource used to provision CIDRs to a resource planning pool.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/async_ec2.py
9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 | |