class Aws::S3::Types::ObjectLockRule

The container element for an Object Lock rule.

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

data as a hash:

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

@!attribute [rw] default_retention

The default Object Lock retention mode and period that you want to
apply to new objects placed in the specified bucket. Bucket settings
require both a mode and a period. The period can be either `Days` or
`Years` but you must select one. You cannot specify `Days` and
`Years` at the same time.
@return [Types::DefaultRetention]

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

Constants

SENSITIVE