class Aws::S3::Types::PutObjectLockConfigurationRequest

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

data as a hash:

    {
      bucket: "BucketName", # required
      object_lock_configuration: {
        object_lock_enabled: "Enabled", # accepts Enabled
        rule: {
          default_retention: {
            mode: "GOVERNANCE", # accepts GOVERNANCE, COMPLIANCE
            days: 1,
            years: 1,
          },
        },
      },
      request_payer: "requester", # accepts requester
      token: "ObjectLockToken",
      content_md5: "ContentMD5",
      expected_bucket_owner: "AccountId",
    }

@!attribute [rw] bucket

The bucket whose Object Lock configuration you want to create or
replace.
@return [String]

@!attribute [rw] object_lock_configuration

The Object Lock configuration that you want to apply to the
specified bucket.
@return [Types::ObjectLockConfiguration]

@!attribute [rw] request_payer

Confirms that the requester knows that they will be charged for the
request. Bucket owners need not specify this parameter in their
requests. For information about downloading objects from requester
pays buckets, see [Downloading Objects in Requestor Pays Buckets][1]
in the *Amazon S3 User Guide*.

[1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
@return [String]

@!attribute [rw] token

A token to allow Object Lock to be enabled for an existing bucket.
@return [String]

@!attribute [rw] content_md5

The MD5 hash for the request body.

For requests made using the Amazon Web Services Command Line
Interface (CLI) or Amazon Web Services SDKs, this field is
calculated automatically.
@return [String]

@!attribute [rw] expected_bucket_owner

The account ID of the expected bucket owner. If the bucket is owned
by a different account, the request will fail with an HTTP `403
(Access Denied)` error.
@return [String]

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

Constants

SENSITIVE