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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb

Overview

Note:

When making an API call, you may pass LifecycleRuleFilter data as a 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.

Constant Summary collapse

SENSITIVE =
[]

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.



7178
7179
7180
7181
7182
7183
7184
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 7178

class LifecycleRuleFilter < Struct.new(
  :prefix,
  :tag,
  :and)
  SENSITIVE = []
  include Aws::Structure
end

#prefixString

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

Returns:

  • (String)


7178
7179
7180
7181
7182
7183
7184
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 7178

class LifecycleRuleFilter < Struct.new(
  :prefix,
  :tag,
  :and)
  SENSITIVE = []
  include Aws::Structure
end

#tagTypes::Tag

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

Returns:



7178
7179
7180
7181
7182
7183
7184
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 7178

class LifecycleRuleFilter < Struct.new(
  :prefix,
  :tag,
  :and)
  SENSITIVE = []
  include Aws::Structure
end