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
Name | Description | Required | Type |
---|---|---|---|
Mode | The default Object Lock retention mode you want to apply to new objects placed in the specified bucket. Valid values: COMPLIANCE | GOVERNANCE | Yes | String |
Days | The 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 | No | Integer |
Years | The 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 | No | Integer |
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.