This section explains how to manage lifecycle configuration rules for a bucket: adding, viewing, deleting, and disabling rules. You can use lifecycle configuration rules to archive or delete objects after a specified period of time. A transition action archives an object, and an expiration action deletes the object. For more information about lifecycle configuration transition and expiration actions, go to Object Lifecycle Management in the Amazon Simple Storage Service Developer Guide.
You can use a lifecycle configuration rule to archive objects to Amazon Glacier. An archived object is not directly accessible unless you restore a temporary copy. Additionally, you cannot use a lifecycle configuration rule to change the storage class of the archived object from Glacier to Standard or RRS.
Amazon S3 objects that have been archived to the Glacier storage class are visible and available only through the Amazon S3 console or the API, not through the Amazon Glacier console or the API.
You can also use a lifecycle configuration rule to delete objects. You might have objects in Amazon S3 or archived to Amazon Glacier that you want to delete using a lifecycle configuration rule. For more information about archiving objects and scheduling object deletions, see Object Lifecycle Management in the Amazon Simple Storage Service Developer Guide.
You can add lifecycle rules to buckets that have object versioning enabled or suspended as well as to buckets that do not. For information on how to enable versioning on a bucket, see Enabling Bucket Versioning.