provision_ipam_pool_cidr
¶
provision_ipam_pool_cidr(
*,
config_overrides: Optional[EC2ClientConfig] = None,
dry_run: Optional[Boolean] = None,
ipam_pool_id: Optional[IpamPoolId] = None,
cidr: Optional[String] = None,
cidr_authorization_context: Optional[IpamCidrAuthorizationContext] = None,
netmask_length: Optional[Integer] = None,
client_token: Optional[String] = None,
verification_method: Optional[VerificationMethod] = None,
ipam_external_resource_verification_token_id: Optional[
IpamExternalResourceVerificationTokenId
] = None,
) -> ProvisionIpamPoolCidrResult
Provision a CIDR to an IPAM pool. You can use this action to provision new CIDRs to a top-level pool or to transfer a CIDR from a top-level pool to a pool within it.
For more information, see Provision CIDRs to pools 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_pool_id(Optional[IpamPoolId], default:None) –The ID of the IPAM pool to which you want to assign a CIDR.
-
cidr(Optional[String], default:None) –The CIDR you want to assign to the IPAM pool. Either "NetmaskLength" or "Cidr" is required. This value will be null if you specify "NetmaskLength" and will be filled in during the provisioning process.
-
cidr_authorization_context(Optional[IpamCidrAuthorizationContext], default:None) –A signed document that proves that you are authorized to bring a specified IP address range to Amazon using BYOIP. This option only applies to IPv4 and IPv6 pools in the public scope.
-
netmask_length(Optional[Integer], default:None) –The netmask length of the CIDR you'd like to provision to a pool. Can be used for provisioning Amazon-provided IPv6 CIDRs to top-level pools and for provisioning CIDRs to pools with source pools. Cannot be used to provision BYOIP CIDRs to top-level pools. Either "NetmaskLength" or "Cidr" is required.
-
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.
-
verification_method(Optional[VerificationMethod], default:None) –The method for verifying control of a public IP address range. Defaults to
remarks-x509if not specified. This option only applies to IPv4 and IPv6 pools in the public scope. -
ipam_external_resource_verification_token_id(Optional[IpamExternalResourceVerificationTokenId], default:None) –Verification token ID. This option only applies to IPv4 and IPv6 pools in the public scope.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/ec2.py
55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 55490 55491 55492 55493 55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 55510 55511 55512 55513 55514 55515 55516 55517 55518 55519 55520 55521 55522 55523 55524 55525 55526 55527 55528 55529 55530 55531 55532 55533 55534 55535 55536 55537 55538 55539 55540 55541 55542 55543 55544 55545 55546 55547 55548 55549 55550 55551 55552 55553 55554 55555 55556 | |