BucketObjectLockRuleArgs

data class BucketObjectLockRuleArgs(val defaultRetention: Output<BucketDefaultRetentionArgs>? = null) : ConvertibleToJava<BucketObjectLockRuleArgs>

Specifies the Object Lock rule for the specified object. Enable the this rule when you apply `ObjectLockConfiguration` to a bucket.

Constructors

Link copied to clipboard
constructor(defaultRetention: Output<BucketDefaultRetentionArgs>? = null)

Properties

Link copied to clipboard

The default Object Lock retention mode and period that you want to apply to new objects placed in the specified bucket. If Object Lock is turned on, bucket settings require both `Mode` and a period of either `Days` or `Years`. You cannot specify `Days` and `Years` at the same time. For more information about allowable values for mode and period, see DefaultRetention.

Functions

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