BucketLifecycleRuleExpirationArgs

data class BucketLifecycleRuleExpirationArgs(val createdBeforeDate: Output<String>? = null, val date: Output<String>? = null, val days: Output<Int>? = null, val expiredObjectDeleteMarker: Output<Boolean>? = null) : ConvertibleToJava<BucketLifecycleRuleExpirationArgs>

Constructors

Link copied to clipboard
constructor(createdBeforeDate: Output<String>? = null, date: Output<String>? = null, days: Output<Int>? = null, expiredObjectDeleteMarker: Output<Boolean>? = null)

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 parts created before 2002-10-11T00:00:00.000Z are deleted, and parts created after this time (including this time) are not deleted.

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

Specifies the date after which you want the corresponding action to take effect. The value obeys ISO8601 format like 2017-03-09.

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

Specifies the number of days noncurrent object versions transition.

Link copied to clipboard
val expiredObjectDeleteMarker: Output<Boolean>? = null

On a versioned bucket (versioning-enabled or versioning-suspended bucket), you can add this element in the lifecycle configuration to direct OSS to delete expired object delete markers. This cannot be specified with Days, Date or CreatedBeforeDate in a Lifecycle Expiration Policy. NOTE: One and only one of "date", "days", "created_before_date" and "expired_object_delete_marker" can be specified in one expiration configuration.

Functions

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