provision_ipam_pool_cidr
async
¶
provision_ipam_pool_cidr(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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/async_ec2.py
56249 56250 56251 56252 56253 56254 56255 56256 56257 56258 56259 56260 56261 56262 56263 56264 56265 56266 56267 56268 56269 56270 56271 56272 56273 56274 56275 56276 56277 56278 56279 56280 56281 56282 56283 56284 56285 56286 56287 56288 56289 56290 56291 56292 56293 56294 56295 56296 56297 56298 56299 56300 56301 56302 56303 56304 56305 56306 56307 56308 56309 56310 56311 56312 56313 56314 56315 56316 56317 56318 56319 56320 56321 56322 56323 56324 56325 56326 56327 56328 56329 | |