ObjectLockRuleDict¶
Dictionary Type¶
ObjectLockRuleDict
¶
Bases: TypedDict
Dictionary form of ObjectLockRule.
Attributes¶
default_retention
instance-attribute
¶
default_retention: DefaultRetention | DefaultRetentionDict | None
The default Object Lock retention settings for new objects in this bucket. You can specify:
-
A default retention period, by using
DaysorYears. -
A default event hold duration, by using
DefaultEventHold. This setting also uses days or years.
You can set one or both. You cannot use days and years in the same setting.