BucketObjectLockConfigurationArgs

data class BucketObjectLockConfigurationArgs(val objectLockEnabled: Output<String>? = null, val rule: Output<BucketObjectLockRuleArgs>? = null) : ConvertibleToJava<BucketObjectLockConfigurationArgs>

Places an Object Lock configuration on the specified bucket. The rule specified in the Object Lock configuration will be applied by default to every new object placed in the specified bucket. For more information, see Locking Objects.

Constructors

Link copied to clipboard
constructor(objectLockEnabled: Output<String>? = null, rule: Output<BucketObjectLockRuleArgs>? = null)

Properties

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

Indicates whether this bucket has an Object Lock configuration enabled. Enable `ObjectLockEnabled` when you apply `ObjectLockConfiguration` to a bucket.

Link copied to clipboard
val rule: Output<BucketObjectLockRuleArgs>? = null

Specifies the Object Lock rule for the specified object. Enable this rule when you apply `ObjectLockConfiguration` to a 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, see ObjectLockRule and DefaultRetention.

Functions

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