Amazon Simple Storage Service
API Reference (API Version 2006-03-01)

DefaultRetention

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

Contents

Mode

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

Type: String

Valid Values: GOVERNANCE | COMPLIANCE

Required: Yes

Days

The number of days that you want to specify for the default retention period.

Type: Integer

Required: No

Years

The number of years that you want to specify for the default retention period.

Type: Integer

Required: No

Note

Either Days or Years must be specified, but not both.

On this page: