Skip to main content

DefaultRetention

The default Object Lock retention settings for new objects placed in the specified bucket.

Syntax

<DefaultRetention>
<Mode>string</Mode>
<Days>integer</Days>
<Years>integer</Years>
</DefaultRetention>

Properties

NameDescriptionRequiredType
ModeThe default Object Lock retention mode you want to apply to new objects placed in the specified bucket.

Valid values: COMPLIANCE | GOVERNANCE
YesString
DaysThe number of days that you want to specify for the default retention period.

Constraints: Must be a positive integer | Cannot be used with Years | Must be used with Mode
NoInteger
YearsThe number of years that you want to specify for the default retention period.

Constraints: Must be a positive integer | Cannot be used with Days | Must be used with Mode
NoInteger
note
  • Mode must be specified.
  • You must specify either Days or Years in a DefaultRetention configuration, but not both.
  • The retention period must be a positive integer.

See Also