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

Class: Aws::S3::Types::LifecycleRuleAndOperator

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

Overview

Note:

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

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

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.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#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.

#tagsArray<Types::Tag>

All of these tags must exist in the object\'s tag set in order for the rule to apply.

Returns:

  • (Array<Types::Tag>)

    All of these tags must exist in the object\'s tag set in order for the rule to apply.