filter
The Filter
is used to identify objects that a Lifecycle Rule applies to. A Filter
must have exactly one of Prefix
, Tag
, ObjectSizeGreaterThan
, ObjectSizeLessThan
, or And
specified. Filter
is required if the LifecycleRule
does not contain a Prefix
element.
For more information about Tag
filters, see Adding filters to Lifecycle rules in the Amazon S3 User Guide.
Tag
filters are not supported for directory buckets.