get_ipam_policy_allocation_rules
async
¶
get_ipam_policy_allocation_rules(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
dry_run: Optional[Boolean] = None,
ipam_policy_id: Optional[IpamPolicyId] = None,
filters: Optional[FilterList] = None,
locale: Optional[String] = None,
resource_type: Optional[IpamPolicyResourceType] = None,
max_results: Optional[IpamMaxResults] = None,
next_token: Optional[NextToken] = None,
) -> GetIpamPolicyAllocationRulesResult
Gets the allocation rules for an IPAM policy.
An IPAM policy is a set of rules that define how public IPv4 addresses from IPAM pools are allocated to Amazon Web Services resources. Each rule maps an Amazon Web Services service to IPAM pools that the service will use to get IP addresses. A single policy can have multiple rules and be applied to multiple Amazon Web Services Regions. If the IPAM pool run out of addresses then the services fallback to Amazon-provided IP addresses. A policy can be applied to an individual Amazon Web Services account or an entity within Amazon Web Services Organizations.
Allocation rules are optional configurations within an IPAM policy that map Amazon Web Services resource types to specific IPAM pools. If no rules are defined, the resource types default to using Amazon-provided IP addresses.
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_policy_id(Optional[IpamPolicyId], default:None) –The ID of the IPAM policy for which to get allocation rules.
-
filters(Optional[FilterList], default:None) –One or more filters for the allocation rules.
-
locale(Optional[String], default:None) –The locale for which to get the allocation rules.
-
resource_type(Optional[IpamPolicyResourceType], default:None) –The resource type for which to get the allocation rules.
The Amazon Web Services service or resource type that can use IP addresses through IPAM policies. Supported services and resource types include:
-
Elastic IP addresses
-
-
max_results(Optional[IpamMaxResults], default:None) –The maximum number of results to return in a single call.
-
next_token(Optional[NextToken], default:None) –The token for the next page of results.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/async_ec2.py
45385 45386 45387 45388 45389 45390 45391 45392 45393 45394 45395 45396 45397 45398 45399 45400 45401 45402 45403 45404 45405 45406 45407 45408 45409 45410 45411 45412 45413 45414 45415 45416 45417 45418 45419 45420 45421 45422 45423 45424 45425 45426 45427 45428 45429 45430 45431 45432 45433 45434 45435 45436 45437 45438 45439 45440 45441 45442 45443 45444 45445 45446 45447 45448 45449 45450 45451 45452 45453 45454 | |