BucketLifecycleRuleArgs

data class BucketLifecycleRuleArgs(val abortMultipartUploads: Output<List<BucketLifecycleRuleAbortMultipartUploadArgs>>? = null, val enabled: Output<Boolean>, val expirations: Output<List<BucketLifecycleRuleExpirationArgs>>? = null, val filter: Output<BucketLifecycleRuleFilterArgs>? = 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, String>>? = null, val transitions: Output<List<BucketLifecycleRuleTransitionArgs>>? = null) : ConvertibleToJava<BucketLifecycleRuleArgs>

Constructors

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

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

Configuration block used to identify objects that a Lifecycle rule applies to. See filter below. NOTE: At least one of expiration, transitions, abort_multipart_upload, noncurrent_version_expiration and noncurrent_version_transition should be configured.

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

The prefix in the names of the objects to which the lifecycle rule does not apply.

Link copied to clipboard
val tags: Output<Map<String, String>>? = 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.

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.

Functions

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