class Aws::S3::Types::PutBucketOwnershipControlsRequest


@see docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketOwnershipControlsRequest AWS API Documentation
@return [Types::OwnershipControls]
you want to apply to this Amazon S3 bucket.
The ‘OwnershipControls` (BucketOwnerPreferred or ObjectWriter) that
@!attribute [rw] ownership_controls
@return [String]
(Access Denied)` error.
by a different account, the request will fail with an HTTP `403
The account ID of the expected bucket owner. If the bucket is owned
@!attribute [rw] expected_bucket_owner
@return [String]
SDKs, this field is calculated automatically.
For requests made using the AWS Command Line Interface (CLI) or AWS
The MD5 hash of the `OwnershipControls` request body.
@!attribute [rw] content_md5
@return [String]
to set.
The name of the Amazon S3 bucket whose `OwnershipControls` you want
@!attribute [rw] bucket
}
},
],
},
object_ownership: “BucketOwnerPreferred”, # required, accepts BucketOwnerPreferred, ObjectWriter
{
rules: [ # required
ownership_controls: { # required
expected_bucket_owner: “AccountId”,
content_md5: “ContentMD5”,
bucket: “BucketName”, # required
{
data as a hash:
@note When making an API call, you may pass PutBucketOwnershipControlsRequest