class Aws::S3::Types::ObjectLockConfiguration

The container element for Object Lock configuration parameters.

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

data as a hash:

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

@!attribute [rw] object_lock_enabled

Indicates whether this bucket has an Object Lock configuration
enabled. Enable `ObjectLockEnabled` when you apply
`ObjectLockConfiguration` to a bucket.
@return [String]

@!attribute [rw] rule

Specifies the Object Lock rule for the specified object. Enable the
this rule when you apply `ObjectLockConfiguration` to a 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::ObjectLockRule]

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

Constants

SENSITIVE