class Aws::S3::Types::DefaultRetention

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

<note markdown=“1”> * The `DefaultRetention` settings require both a mode and a period.

</note>

@note When making an API call, you may pass DefaultRetention

data as a hash:

    {
      mode: "GOVERNANCE", # accepts GOVERNANCE, COMPLIANCE
      days: 1,
      years: 1,
    }

@!attribute [rw] mode

The default Object Lock retention mode you want to apply to new
objects placed in the specified bucket. Must be used with either
`Days` or `Years`.
@return [String]

@!attribute [rw] days

The number of days that you want to specify for the default
retention period. Must be used with `Mode`.
@return [Integer]

@!attribute [rw] years

The number of years that you want to specify for the default
retention period. Must be used with `Mode`.
@return [Integer]

@see docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DefaultRetention AWS API Documentation

Constants

SENSITIVE