BucketLifecycleRule

data class BucketLifecycleRule(val abortMultipartUploads: List<BucketLifecycleRuleAbortMultipartUpload>? = null, val enabled: Boolean, val expirations: List<BucketLifecycleRuleExpiration>? = null, val id: String? = null, val noncurrentVersionExpirations: List<BucketLifecycleRuleNoncurrentVersionExpiration>? = null, val noncurrentVersionTransitions: List<BucketLifecycleRuleNoncurrentVersionTransition>? = null, val prefix: String? = null, val tags: Map<String, Any>? = null, val transitions: List<BucketLifecycleRuleTransition>? = null)

Constructors

Link copied to clipboard
fun BucketLifecycleRule(abortMultipartUploads: List<BucketLifecycleRuleAbortMultipartUpload>? = null, enabled: Boolean, expirations: List<BucketLifecycleRuleExpiration>? = null, id: String? = null, noncurrentVersionExpirations: List<BucketLifecycleRuleNoncurrentVersionExpiration>? = null, noncurrentVersionTransitions: List<BucketLifecycleRuleNoncurrentVersionTransition>? = null, prefix: String? = null, tags: Map<String, Any>? = null, transitions: List<BucketLifecycleRuleTransition>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Specifies the number of days after initiating a multipart upload when the multipart upload must be completed. See abort_multipart_upload below.

Link copied to clipboard

Specifies lifecycle rule status.

Link copied to clipboard

Specifies a period in the object's expire. See expiration below.

Link copied to clipboard
val id: String? = null

Unique identifier for the rule. If omitted, OSS bucket will assign a unique name.

Link copied to clipboard

Specifies when noncurrent object versions expire. See noncurrent_version_expiration below.

Link copied to clipboard

Specifies when noncurrent object versions transitions. See noncurrent_version_transition below.

Link copied to clipboard
val prefix: String? = null

Object key prefix identifying one or more objects to which the rule applies. Default value is null, the rule applies to all objects in a bucket.

Link copied to clipboard
val tags: Map<String, Any>? = null

Key-value map of resource tags. All of these tags must exist in the object's tag set in order for the rule to apply. NOTE: At least one of expiration, transitions, abort_multipart_upload, noncurrent_version_expiration and noncurrent_version_transition should be configured.

Link copied to clipboard

Specifies the time when an object is converted to the IA or archive storage class during a valid life cycle. See transitions below.