class Aws::S3::Types::PutBucketOwnershipControlsRequest

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

data as a hash:

    {
      bucket: "BucketName", # required
      content_md5: "ContentMD5",
      expected_bucket_owner: "AccountId",
      ownership_controls: { # required
        rules: [ # required
          {
            object_ownership: "BucketOwnerPreferred", # required, accepts BucketOwnerPreferred, ObjectWriter
          },
        ],
      },
    }

@!attribute [rw] bucket

The name of the Amazon S3 bucket whose `OwnershipControls` you want
to set.
@return [String]

@!attribute [rw] content_md5

The MD5 hash of the `OwnershipControls` 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]

@!attribute [rw] ownership_controls

The `OwnershipControls` (BucketOwnerPreferred or ObjectWriter) that
you want to apply to this Amazon S3 bucket.
@return [Types::OwnershipControls]

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

Constants

SENSITIVE