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,
) -> 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
-
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
342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 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 | |