Object lifecycles
Object Storage allows you to define the actions that are automatically applied to individual objects or object groups in a bucket at specific points in time.
Types of actions:
- Change the storage class of objects or their non-current versions to a "colder" one.
- Delete objects or their non-current versions.
- Delete incomplete multipart uploads.
Filters for grouping objects:
- Object key prefix.
- Minimum or maximum object size.
- Object label. Unavailable in the management console
. AND
logical operator. Allows you to group objects using a combination of several filters.
You can only specify one filter per lifecycle rule. To specify more than one filter type for a lifecycle at a time, use the AND
logical operator. For more information, see Lifecycle configuration.
If you are using the S3 API, specify a lifecycle configuration in XML format. For various tools with the S3 API support, other configuration formats may be required. The AWS CLI, for example, uses the JSON format.
You can only configure object lifecycles for each individual bucket, not for a bucket group, folder, or cloud.
Once a day, lifecycles are updated with the latest changes as of 00:00 UTC. This operation takes a few hours to complete.