BucketLifecycleRuleTransitionArgs

data class BucketLifecycleRuleTransitionArgs(val createdBeforeDate: Output<String>? = null, val days: Output<Int>? = null, val isAccessTime: Output<Boolean>? = null, val returnToStdWhenVisit: Output<Boolean>? = null, val storageClass: Output<String>) : ConvertibleToJava<BucketLifecycleRuleTransitionArgs>

Constructors

Link copied to clipboard
fun BucketLifecycleRuleTransitionArgs(createdBeforeDate: Output<String>? = null, days: Output<Int>? = null, isAccessTime: Output<Boolean>? = null, returnToStdWhenVisit: Output<Boolean>? = null, storageClass: Output<String>)

Functions

Link copied to clipboard
open override fun toJava(): BucketLifecycleRuleTransitionArgs

Properties

Link copied to clipboard
val createdBeforeDate: Output<String>? = null

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 objects updated before 2002-10-11T00:00:00.000Z are deleted or converted to another storage class, and objects updated after this time (including this time) are not deleted or converted.

Link copied to clipboard
val days: Output<Int>? = null

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: Output<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
val returnToStdWhenVisit: Output<Boolean>? = null

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
val storageClass: Output<String>

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.