String reason
The reason for the exception.
RetentionPeriod retentionPeriod
Information about the retention period for which the retention rule is to retain resources.
String description
The retention rule description.
List<E> tags
Information about the tags to assign to the retention rule.
String resourceType
The resource type to be retained by the retention rule. Currently, only Amazon EBS snapshots and EBS-backed AMIs
are supported. To retain snapshots, specify EBS_SNAPSHOT. To retain EBS-backed AMIs, specify
EC2_IMAGE.
List<E> resourceTags
Specifies the resource tags to use to identify resources that are to be retained by a tag-level retention rule. For tag-level retention rules, only deleted resources, of the specified resource type, that have one or more of the specified tag key and value pairs are retained. If a resource is deleted, but it does not have any of the specified tag key and value pairs, it is immediately deleted without being retained by the retention rule.
You can add the same tag key and value pair to a maximum or five retention rules.
To create a Region-level retention rule, omit this parameter. A Region-level retention rule does not have any resource tags specified. It retains all deleted resources of the specified resource type in the Region in which the rule is created, even if the resources are not tagged.
LockConfiguration lockConfiguration
Information about the retention rule lock configuration.
String identifier
The unique ID of the retention rule.
RetentionPeriod retentionPeriod
String description
The retention rule description.
List<E> tags
Information about the tags assigned to the retention rule.
String resourceType
The resource type retained by the retention rule.
List<E> resourceTags
Information about the resource tags used to identify resources that are retained by the retention rule.
String status
The state of the retention rule. Only retention rules that are in the available state retain
resources.
LockConfiguration lockConfiguration
Information about the retention rule lock configuration.
String lockState
The lock state for the retention rule.
locked - The retention rule is locked and can't be modified or deleted.
pending_unlock - The retention rule has been unlocked but it is still within the unlock delay
period. The retention rule can be modified or deleted only after the unlock delay period has expired.
unlocked - The retention rule is unlocked and it can be modified or deleted by any user with the
required permissions.
null - The retention rule has never been locked. Once a retention rule has been locked, it can
transition between the locked and unlocked states only; it can never transition back to
null.
String identifier
The unique ID of the retention rule.
String identifier
The unique ID of the retention rule.
String identifier
The unique ID of the retention rule.
String description
The retention rule description.
String resourceType
The resource type retained by the retention rule.
RetentionPeriod retentionPeriod
Information about the retention period for which the retention rule is to retain resources.
List<E> resourceTags
Information about the resource tags used to identify resources that are retained by the retention rule.
String status
The state of the retention rule. Only retention rules that are in the available state retain
resources.
LockConfiguration lockConfiguration
Information about the retention rule lock configuration.
String lockState
The lock state for the retention rule.
locked - The retention rule is locked and can't be modified or deleted.
pending_unlock - The retention rule has been unlocked but it is still within the unlock delay
period. The retention rule can be modified or deleted only after the unlock delay period has expired.
unlocked - The retention rule is unlocked and it can be modified or deleted by any user with the
required permissions.
null - The retention rule has never been locked. Once a retention rule has been locked, it can
transition between the locked and unlocked states only; it can never transition back to
null.
Date lockEndTime
The date and time at which the unlock delay is set to expire. Only returned for retention rules that have been unlocked and that are still within the unlock delay period.
Integer maxResults
The maximum number of results to return with a single call. To retrieve the remaining results, make another call
with the returned NextToken value.
String nextToken
The token for the next page of results.
String resourceType
The resource type retained by the retention rule. Only retention rules that retain the specified resource type
are listed. Currently, only Amazon EBS snapshots and EBS-backed AMIs are supported. To list retention rules that
retain snapshots, specify EBS_SNAPSHOT. To list retention rules that retain EBS-backed AMIs, specify
EC2_IMAGE.
List<E> resourceTags
Information about the resource tags used to identify resources that are retained by the retention rule.
String lockState
The lock state of the retention rules to list. Only retention rules with the specified lock state are returned.
String resourceArn
The Amazon Resource Name (ARN) of the retention rule.
UnlockDelay unlockDelay
Information about the retention rule unlock delay.
String identifier
The unique ID of the retention rule.
LockConfiguration lockConfiguration
Information about the retention rule lock configuration.
String identifier
The unique ID of the retention rule.
String description
The retention rule description.
String resourceType
The resource type retained by the retention rule.
RetentionPeriod retentionPeriod
List<E> resourceTags
Information about the resource tags used to identify resources that are retained by the retention rule.
String status
The state of the retention rule. Only retention rules that are in the available state retain
resources.
LockConfiguration lockConfiguration
Information about the retention rule lock configuration.
String lockState
The lock state for the retention rule.
locked - The retention rule is locked and can't be modified or deleted.
pending_unlock - The retention rule has been unlocked but it is still within the unlock delay
period. The retention rule can be modified or deleted only after the unlock delay period has expired.
unlocked - The retention rule is unlocked and it can be modified or deleted by any user with the
required permissions.
null - The retention rule has never been locked. Once a retention rule has been locked, it can
transition between the locked and unlocked states only; it can never transition back to
null.
String reason
The reason for the exception.
Integer retentionPeriodValue
The period value for which the retention rule is to retain resources. The period is measured using the unit specified for RetentionPeriodUnit.
String retentionPeriodUnit
The unit of time in which the retention period is measured. Currently, only DAYS is supported.
String identifier
The unique ID of the retention rule.
String description
The retention rule description.
RetentionPeriod retentionPeriod
Information about the retention period for which the retention rule is to retain resources.
String lockState
The lock state for the retention rule.
locked - The retention rule is locked and can't be modified or deleted.
pending_unlock - The retention rule has been unlocked but it is still within the unlock delay
period. The retention rule can be modified or deleted only after the unlock delay period has expired.
unlocked - The retention rule is unlocked and it can be modified or deleted by any user with the
required permissions.
null - The retention rule has never been locked. Once a retention rule has been locked, it can
transition between the locked and unlocked states only; it can never transition back to
null.
String reason
The reason for the exception.
String identifier
The unique ID of the retention rule.
String identifier
The unique ID of the retention rule.
String description
The retention rule description.
String resourceType
The resource type retained by the retention rule.
RetentionPeriod retentionPeriod
List<E> resourceTags
Information about the resource tags used to identify resources that are retained by the retention rule.
String status
The state of the retention rule. Only retention rules that are in the available state retain
resources.
LockConfiguration lockConfiguration
Information about the retention rule lock configuration.
String lockState
The lock state for the retention rule.
locked - The retention rule is locked and can't be modified or deleted.
pending_unlock - The retention rule has been unlocked but it is still within the unlock delay
period. The retention rule can be modified or deleted only after the unlock delay period has expired.
unlocked - The retention rule is unlocked and it can be modified or deleted by any user with the
required permissions.
null - The retention rule has never been locked. Once a retention rule has been locked, it can
transition between the locked and unlocked states only; it can never transition back to
null.
Date lockEndTime
The date and time at which the unlock delay is set to expire. Only returned for retention rules that have been unlocked and that are still within the unlock delay period.
String identifier
The unique ID of the retention rule.
RetentionPeriod retentionPeriod
Information about the retention period for which the retention rule is to retain resources.
String description
The retention rule description.
String resourceType
This parameter is currently not supported. You can't update a retention rule's resource type after creation.
List<E> resourceTags
Specifies the resource tags to use to identify resources that are to be retained by a tag-level retention rule. For tag-level retention rules, only deleted resources, of the specified resource type, that have one or more of the specified tag key and value pairs are retained. If a resource is deleted, but it does not have any of the specified tag key and value pairs, it is immediately deleted without being retained by the retention rule.
You can add the same tag key and value pair to a maximum or five retention rules.
To create a Region-level retention rule, omit this parameter. A Region-level retention rule does not have any resource tags specified. It retains all deleted resources of the specified resource type in the Region in which the rule is created, even if the resources are not tagged.
String identifier
The unique ID of the retention rule.
RetentionPeriod retentionPeriod
String description
The retention rule description.
String resourceType
The resource type retained by the retention rule.
List<E> resourceTags
Information about the resource tags used to identify resources that are retained by the retention rule.
String status
The state of the retention rule. Only retention rules that are in the available state retain
resources.
String lockState
The lock state for the retention rule.
locked - The retention rule is locked and can't be modified or deleted.
pending_unlock - The retention rule has been unlocked but it is still within the unlock delay
period. The retention rule can be modified or deleted only after the unlock delay period has expired.
unlocked - The retention rule is unlocked and it can be modified or deleted by any user with the
required permissions.
null - The retention rule has never been locked. Once a retention rule has been locked, it can
transition between the locked and unlocked states only; it can never transition back to
null.
Date lockEndTime
The date and time at which the unlock delay is set to expire. Only returned for retention rules that have been unlocked and that are still within the unlock delay period.
String reason
The reason for the exception.
Copyright © 2023. All rights reserved.