You can configure lifecycle rules for a bucket based on the last modified time and last access time of objects in the bucket. This way, Object Storage Service (OSS) can regularly convert the storage class of the objects or delete expired objects and parts to reduce your storage costs.
The following table describes the differences between lifecycle rules configured based on the last modified time and last access time of objects.
Policy | Based on last modified time | Based on last access time |
Scenarios | Objects are accessed in specific or predictable patterns. | Objects are accessed in random or unpredictable patterns. |
Object deletion | Supported | Not supported |
Recovery of deleted objects |
| N/A |
Reversion of storage class conversion | The storage class of an object cannot be reverted after it is converted. For example, if the storage class of an object is converted from Standard to Infrequent Access (IA) based on a lifecycle rule, the storage class of the object cannot be automatically reverted to Standard. For more information, see Convert storage classes. Objects whose storage class is converted to IA, Archive, Cold Archive, and Deep Cold Archive have minimum storage periods and minimum billable sizes. You are charged data retrieval fees when you access these objects. For more information, see Convert storage classes. | The storage class of an object can be reverted after it is converted. If the storage class of an object is automatically converted from Standard to IA based on a lifecycle rule, you can revert the storage class of the object to Standard only when you access the object. Important You can revert the storage class of the object to Standard only when you access the object by calling the GetObject operation. Objects whose storage class is converted from Standard to IA have a minimum storage period and a minimum billable size. You are charged data retrieval fees when you access these objects. For more information, see Lifecycle rules based on the last access time. |
For more information, see Lifecycle rules based on the last modified time and Lifecycle rules based on the last access time.