class Aws::S3::Types::PutPublicAccessBlockRequest

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

data as a hash:

    {
      bucket: "BucketName", # required
      content_md5: "ContentMD5",
      public_access_block_configuration: { # required
        block_public_acls: false,
        ignore_public_acls: false,
        block_public_policy: false,
        restrict_public_buckets: false,
      },
      expected_bucket_owner: "AccountId",
    }

@!attribute [rw] bucket

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

@!attribute [rw] content_md5

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

The `PublicAccessBlock` configuration that you want to apply to this
Amazon S3 bucket. You can enable the configuration options in any
combination. For more information about when Amazon S3 considers a
bucket or object public, see [The Meaning of "Public"][1] in the
*Amazon S3 User Guide*.

[1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status
@return [Types::PublicAccessBlockConfiguration]

@!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/PutPublicAccessBlockRequest AWS API Documentation

Constants

SENSITIVE