BucketLifecycleRuleExpiration

data class BucketLifecycleRuleExpiration(val createdBeforeDate: String? = null, val date: String? = null, val days: Int? = null, val expiredObjectDeleteMarker: Boolean? = null)

Constructors

Link copied to clipboard
constructor(createdBeforeDate: String? = null, date: String? = null, days: Int? = null, expiredObjectDeleteMarker: Boolean? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Specifies the time before which the rules take effect. The date must conform to the ISO8601 format and always be UTC 00:00. For example: 2002-10-11T00:00:00.000Z indicates that parts created before 2002-10-11T00:00:00.000Z are deleted, and parts created after this time (including this time) are not deleted.

Link copied to clipboard
val date: String? = null

Specifies the date after which you want the corresponding action to take effect. The value obeys ISO8601 format like 2017-03-09.

Link copied to clipboard
val days: Int? = null

Specifies the number of days noncurrent object versions transition.

Link copied to clipboard

On a versioned bucket (versioning-enabled or versioning-suspended bucket), you can add this element in the lifecycle configuration to direct OSS to delete expired object delete markers. This cannot be specified with Days, Date or CreatedBeforeDate in a Lifecycle Expiration Policy. NOTE: One and only one of "date", "days", "created_before_date" and "expired_object_delete_marker" can be specified in one expiration configuration.