BucketLifecycleRuleNoncurrentVersionTransition

data class BucketLifecycleRuleNoncurrentVersionTransition(val days: Int, val isAccessTime: Boolean? = null, val returnToStdWhenVisit: Boolean? = null, val storageClass: String)

Constructors

fun BucketLifecycleRuleNoncurrentVersionTransition(days: Int, isAccessTime: Boolean? = null, returnToStdWhenVisit: Boolean? = null, storageClass: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val days: Int

Specifies the number of days after object creation when the specific rule action takes effect. NOTE: One and only one of "created_before_date" and "days" can be specified in one abort_multipart_upload configuration.

Link copied to clipboard
val isAccessTime: Boolean? = null

Specifies whether the lifecycle rule applies to objects based on their last access time. If set to true, the rule applies to objects based on their last access time; if set to false, the rule applies to objects based on their last modified time. If configure the rule based on the last access time, please enable access_monitor first.

Link copied to clipboard

Specifies whether to convert the storage class of non-Standard objects back to Standard after the objects are accessed. It takes effect only when the IsAccessTime parameter is set to true. If set to true, converts the storage class of the objects to Standard; if set to false, does not convert the storage class of the objects to Standard. NOTE: One and only one of "created_before_date" and "days" can be specified in one transition configuration.

Link copied to clipboard

The storage class to apply. Can be "Standard", "IA", "Archive", "ColdArchive" and "DeepColdArchive". Defaults to "Standard". "ColdArchive" is available since 1.203.0. "DeepColdArchive" is available since 1.209.0.