You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::S3::Types::LifecycleRuleFilter

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing LifecycleRuleFilter as input to an Aws::Client method, you can use a vanilla Hash:

{
  prefix: "Prefix",
  tag: {
    key: "ObjectKey", # required
    value: "Value", # required
  },
  and: {
    prefix: "Prefix",
    tags: [
      {
        key: "ObjectKey", # required
        value: "Value", # required
      },
    ],
  },
}

The Filter is used to identify objects that a Lifecycle Rule applies to. A Filter must have exactly one of Prefix, Tag, or And specified.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#andTypes::LifecycleRuleAndOperator

This is used in a Lifecycle Rule Filter to apply a logical AND to two or more predicates. The Lifecycle Rule will apply to any object matching all of the predicates configured inside the And operator.

Returns:

#prefixString

Prefix identifying one or more objects to which the rule applies.

Returns:

  • (String)

    Prefix identifying one or more objects to which the rule applies.

#tagTypes::Tag

This tag must exist in the object\'s tag set in order for the rule to apply.

Returns:

  • (Types::Tag)

    This tag must exist in the object\'s tag set in order for the rule to apply.