class Aws::S3::Types::LifecycleRuleFilter
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.
@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 }, ], }, }
@!attribute [rw] prefix
Prefix identifying one or more objects to which the rule applies. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see [ XML related object key constraints][1]. [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints @return [String]
@!attribute [rw] tag
This tag must exist in the object's tag set in order for the rule to apply. @return [Types::Tag]
@!attribute [rw] and
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. @return [Types::LifecycleRuleAndOperator]
@see docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/LifecycleRuleFilter AWS API Documentation
Constants
- SENSITIVE