get_lifecycle_policies
async
¶
get_lifecycle_policies(
*,
config_overrides: Optional[AsyncDLMClientConfig] = None,
policy_ids: Optional[PolicyIdList] = None,
state: Optional[GettablePolicyStateValues] = None,
resource_types: Optional[ResourceTypeValuesList] = None,
target_tags: Optional[TargetTagsFilterList] = None,
tags_to_add: Optional[TagsToAddFilterList] = None,
default_policy_type: Optional[DefaultPoliciesTypeValues] = None,
policy_class: Optional[PolicyClassValues] = None,
) -> GetLifecyclePoliciesResponse
Gets summary information about all or the specified data lifecycle policies.
To get complete information about a policy, use GetLifecyclePolicy.
Parameters:
-
policy_ids(Optional[PolicyIdList], default:None) –The identifiers of the data lifecycle policies.
-
state(Optional[GettablePolicyStateValues], default:None) –The activation state.
-
resource_types(Optional[ResourceTypeValuesList], default:None) –The resource type.
-
target_tags(Optional[TargetTagsFilterList], default:None) –The target tag for a policy.
Tags are strings in the format
key=value. -
tags_to_add(Optional[TagsToAddFilterList], default:None) –The tags to add to objects created by the policy.
Tags are strings in the format
key=value.These user-defined tags are added in addition to the Amazon Web Services-added lifecycle tags.
-
default_policy_type(Optional[DefaultPoliciesTypeValues], default:None) –[Default policies only] Specifies the type of default policy to get. Specify one of the following:
-
VOLUME- To get only the default policy for EBS snapshots -
INSTANCE- To get only the default policy for EBS-backed AMIs -
ALL- To get all default policies
-
-
policy_class(Optional[PolicyClassValues], default:None) –Specifies the class of policies to get. A policy's class defines its overall behavior, including target selection, cadence, and retention. Currently, the only supported value is:
-
MULTI_AVAILABILITY_ZONE_POLICY- To get only the MultiAvailabilityZone policy.
-
Raises:
-
InternalServerException–The service failed in an unexpected way.
-
InvalidRequestException–Bad request. The request is missing required parameters or has invalid parameters.
-
LimitExceededException–The request failed because a limit was exceeded.
-
ResourceNotFoundException–A requested resource was not found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_dlm/_services/async_dlm.py
367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 | |