DefaultRetention¶
Structure Class¶
DefaultRetention
dataclass
¶
Bases: _SerdeShape
The container element for optionally specifying the default Object Lock retention settings for new objects placed in the specified bucket.
Note
-
The
DefaultRetentionsettings require both a mode and a period. -
The
DefaultRetentionperiod can be eitherDaysorYearsbut you must select one. You cannot specifyDaysandYearsat the same time.
Attributes¶
days
class-attribute
instance-attribute
¶
days: int | None = ...
The number of days that you want to specify for the default retention
period. Must be used with Mode.
default_event_hold
class-attribute
instance-attribute
¶
default_event_hold: EventHoldDuration | None = ...
The default event hold duration to be applied to new objects placed in the specified bucket. When configured, new objects will automatically have an event hold enabled with this duration.