rule

@JvmName(name = "itxuchkxffmgdsww")
suspend fun rule(value: Output<ObjectLockRuleArgs>)
@JvmName(name = "wecavrijvwejsmik")
suspend fun rule(value: ObjectLockRuleArgs?)

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


@JvmName(name = "duruhosveiqyvows")
suspend fun rule(argument: suspend ObjectLockRuleArgsBuilder.() -> 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. Specifies the Object Lock rule for the specified object. Enable the this rule when you apply `ObjectLockConfiguration` to a bucket.