class Aws::S3::Types::PutBucketPolicyRequest
@note When making an API call, you may pass PutBucketPolicyRequest
data as a hash: { bucket: "BucketName", # required content_md5: "ContentMD5", confirm_remove_self_bucket_access: false, policy: "Policy", # required expected_bucket_owner: "AccountId", }
@!attribute [rw] bucket
The name of the bucket. @return [String]
@!attribute [rw] content_md5
The MD5 hash of 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] confirm_remove_self_bucket_access
Set this parameter to true to confirm that you want to remove your permissions to change this bucket policy in the future. @return [Boolean]
@!attribute [rw] policy
The bucket policy as a JSON document. @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/PutBucketPolicyRequest AWS API Documentation
Constants
- SENSITIVE