BucketLifecycleRuleArgs

data class BucketLifecycleRuleArgs(val abortMultipartUploads: Output<List<BucketLifecycleRuleAbortMultipartUploadArgs>>? = null, val enabled: Output<Boolean>, val expirations: Output<List<BucketLifecycleRuleExpirationArgs>>? = null, val id: Output<String>? = null, val noncurrentVersionExpirations: Output<List<BucketLifecycleRuleNoncurrentVersionExpirationArgs>>? = null, val noncurrentVersionTransitions: Output<List<BucketLifecycleRuleNoncurrentVersionTransitionArgs>>? = null, val prefix: Output<String>? = null, val tags: Output<Map<String, Any>>? = null, val transitions: Output<List<BucketLifecycleRuleTransitionArgs>>? = null) : ConvertibleToJava<BucketLifecycleRuleArgs>

Constructors

Link copied to clipboard
fun BucketLifecycleRuleArgs(abortMultipartUploads: Output<List<BucketLifecycleRuleAbortMultipartUploadArgs>>? = null, enabled: Output<Boolean>, expirations: Output<List<BucketLifecycleRuleExpirationArgs>>? = null, id: Output<String>? = null, noncurrentVersionExpirations: Output<List<BucketLifecycleRuleNoncurrentVersionExpirationArgs>>? = null, noncurrentVersionTransitions: Output<List<BucketLifecycleRuleNoncurrentVersionTransitionArgs>>? = null, prefix: Output<String>? = null, tags: Output<Map<String, Any>>? = null, transitions: Output<List<BucketLifecycleRuleTransitionArgs>>? = null)

Functions

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

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
val enabled: Output<Boolean>

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: Output<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: Output<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: Output<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.