Managing Lifecycle Configuration
This section explains how to define and manage lifecycle configuration rules for a bucket: adding, viewing, deleting, and disabling rules. You can use lifecycle configuration rules to define actions you want Amazon S3 to take during an object's lifetime (for example, transition objects to another storage class, archive them, or delete them after a specified period of time).
You can configure as many as 1000 lifecycle rules per bucket. You can define a rule for all objects or a subset of objects in the bucket (by specifying the key name prefix). You can temporarily disable a rule.
If a bucket is versioning-enabled, the lifecycle defines actions specific to current and noncurrent object versions.