get_ipam_prefix_list_resolver_versions
¶
get_ipam_prefix_list_resolver_versions(
*,
config_overrides: Optional[EC2ClientConfig] = None,
dry_run: Optional[Boolean] = None,
ipam_prefix_list_resolver_id: Optional[IpamPrefixListResolverId] = None,
ipam_prefix_list_resolver_versions: Optional[
IpamPrefixListResolverVersionNumberSet
] = None,
max_results: Optional[IpamMaxResults] = None,
filters: Optional[FilterList] = None,
next_token: Optional[NextToken] = None,
) -> GetIpamPrefixListResolverVersionsResult
Retrieves version information for an IPAM prefix list resolver.
Each version is a snapshot of what CIDRs matched your rules at that moment in time. The version number increments every time the CIDR list changes due to infrastructure changes.
Version example:
Initial State (Version 1)
Production environment:
-
vpc-prod-web (10.1.0.0/16) - tagged env=prod
-
vpc-prod-db (10.2.0.0/16) - tagged env=prod
Resolver rule: Include all VPCs tagged env=prod
Version 1 CIDRs: 10.1.0.0/16, 10.2.0.0/16
Infrastructure Change (Version 2)
New VPC added:
-
vpc-prod-api (10.3.0.0/16) - tagged env=prod
IPAM automatically detects the change and creates a new version.
Version 2 CIDRs: 10.1.0.0/16, 10.2.0.0/16, 10.3.0.0/16
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_prefix_list_resolver_id(Optional[IpamPrefixListResolverId], default:None) –The ID of the IPAM prefix list resolver whose versions you want to retrieve.
-
ipam_prefix_list_resolver_versions(Optional[IpamPrefixListResolverVersionNumberSet], default:None) –Specific version numbers to retrieve. If not specified, all versions are returned.
-
max_results(Optional[IpamMaxResults], default:None) –The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.
-
filters(Optional[FilterList], default:None) –One or more filters to limit the results.
-
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/ec2.py
45270 45271 45272 45273 45274 45275 45276 45277 45278 45279 45280 45281 45282 45283 45284 45285 45286 45287 45288 45289 45290 45291 45292 45293 45294 45295 45296 45297 45298 45299 45300 45301 45302 45303 45304 45305 45306 45307 45308 45309 45310 45311 45312 45313 45314 45315 45316 45317 45318 45319 45320 45321 45322 45323 45324 45325 45326 45327 45328 45329 45330 45331 45332 45333 45334 45335 45336 45337 45338 | |