defaultRetention

@JvmName(name = "naxbavdbnmtrkkpa")
suspend fun defaultRetention(value: Output<BucketDefaultRetentionArgs>)
@JvmName(name = "oltqntkyrrtvchof")
suspend fun defaultRetention(value: BucketDefaultRetentionArgs?)

Parameters

value

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.


@JvmName(name = "cxmivbeaiqubjsbe")
suspend fun defaultRetention(argument: suspend BucketDefaultRetentionArgsBuilder.() -> Unit)

Parameters

argument

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.