DefaultRetention
class DefaultRetention
The container element for optionally 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 eitherDays
orYears
but you must select one. You cannot specifyDays
andYears
at the same time.