rule

@JvmName(name = "wwjespgwnyauexse")
suspend fun rule(value: Output<BucketObjectLockRuleArgs>)
@JvmName(name = "chgunxynjdibvyas")
suspend fun rule(value: BucketObjectLockRuleArgs?)

Parameters

value

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.


@JvmName(name = "vqokkevvggytujjy")
suspend fun rule(argument: suspend BucketObjectLockRuleArgsBuilder.() -> Unit)

Parameters

argument

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.