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
- Struct
- Aws::S3::Types::LifecycleRuleFilter
- Defined in:
- (unknown)
Overview
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
-
#and ⇒ Types::LifecycleRuleAndOperator
This is used in a Lifecycle Rule Filter to apply a logical AND to two or more predicates.
-
#prefix ⇒ String
Prefix identifying one or more objects to which the rule applies.
-
#tag ⇒ Types::Tag
This tag must exist in the object\'s tag set in order for the rule to apply.
Instance Attribute Details
#and ⇒ Types::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.
#prefix ⇒ String
Prefix identifying one or more objects to which the rule applies.
#tag ⇒ Types::Tag
This tag must exist in the object\'s tag set in order for the rule to apply.