Object lifecycles
With object lifecycles, you can configure actions to be automatically performed with individual objects or groups of objects in a bucket at specified points in time.
Note
In buckets with logging enabled, actions performed with objects as part of the object lifecycle are not logged.
Types of actions:
- Change the storage class of objects or their non-current versions to a "colder" one. You can set the change of the storage class to
ICE
using YC CLI, AWS CLI, Terraform, and the API. - 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.