DirectoryBucketRuleArgs

data class DirectoryBucketRuleArgs(val abortIncompleteMultipartUpload: Output<DirectoryBucketAbortIncompleteMultipartUploadArgs>? = null, val expirationInDays: Output<Int>? = null, val id: Output<String>? = null, val objectSizeGreaterThan: Output<String>? = null, val objectSizeLessThan: Output<String>? = null, val prefix: Output<String>? = null, val status: Output<DirectoryBucketRuleStatus>) : ConvertibleToJava<DirectoryBucketRuleArgs>

You must specify at least one of the following properties: AbortIncompleteMultipartUpload, or ExpirationInDays.

Constructors

Link copied to clipboard
constructor(abortIncompleteMultipartUpload: Output<DirectoryBucketAbortIncompleteMultipartUploadArgs>? = null, expirationInDays: Output<Int>? = null, id: Output<String>? = null, objectSizeGreaterThan: Output<String>? = null, objectSizeLessThan: Output<String>? = null, prefix: Output<String>? = null, status: Output<DirectoryBucketRuleStatus>)

Properties

Link copied to clipboard

Specifies the days since the initiation of an incomplete multipart upload that Amazon S3 will wait before permanently removing all parts of the upload.

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

Indicates the number of days after creation when objects are deleted from Amazon S3 and Amazon S3 Glacier. If you specify an expiration and transition time, you must use the same time unit for both properties (either in days or by date). The expiration time must also be later than the transition time.

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

Unique identifier for the rule. The value can't be longer than 255 characters.

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

Specifies the minimum object size in bytes for this rule to apply to. Objects must be larger than this value in bytes. For more information about size based rules, see Lifecycle configuration using size-based rules in the Amazon S3 User Guide .

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

Specifies the maximum object size in bytes for this rule to apply to. Objects must be smaller than this value in bytes. For more information about sized based rules, see Lifecycle configuration using size-based rules in the Amazon S3 User Guide .

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

Object key prefix that identifies one or more objects to which this rule applies.

Link copied to clipboard

If Enabled , the rule is currently being applied. If Disabled , the rule is not currently being applied.

Functions

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