Object Lock Rule Args
data class ObjectLockRuleArgs(val defaultRetention: Output<DefaultRetentionArgs>? = null) : ConvertibleToJava<ObjectLockRuleArgs>
Definition of ObjectLockRule
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. The container element for specifying the default Object Lock retention settings for new objects placed in the specified bucket. + The `DefaultRetention`
settings require both a mode and a period. + The `DefaultRetention`
period can be either `Days`
or `Years`
but you must select one. You cannot specify `Days`
and `Years`
at the same time.