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

Days

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

Type: Integer

Required: No

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: No

Years

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

Type: Integer

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

On this page: