class Aws::RecycleBin::Types::UpdateRuleRequest

@note When making an API call, you may pass UpdateRuleRequest

data as a hash:

    {
      identifier: "RuleIdentifier", # required
      retention_period: {
        retention_period_value: 1, # required
        retention_period_unit: "DAYS", # required, accepts DAYS
      },
      description: "Description",
      resource_type: "EBS_SNAPSHOT", # accepts EBS_SNAPSHOT, EC2_IMAGE
      resource_tags: [
        {
          resource_tag_key: "ResourceTagKey", # required
          resource_tag_value: "ResourceTagValue",
        },
      ],
    }

@!attribute [rw] identifier

The unique ID of the retention rule.
@return [String]

@!attribute [rw] retention_period

Information about the retention period for which the retention rule
is to retain resources.
@return [Types::RetentionPeriod]

@!attribute [rw] description

The retention rule description.
@return [String]

@!attribute [rw] resource_type

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`.
@return [String]

@!attribute [rw] resource_tags

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.
@return [Array<Types::ResourceTag>]

@see docs.aws.amazon.com/goto/WebAPI/rbin-2021-06-15/UpdateRuleRequest AWS API Documentation

Constants

SENSITIVE