Table of Contents

Class PutPublicAccessBlockRequest

Namespace
Amazon.S3.Model
Assembly
AWSSDK.S3.dll

Container for the parameters to the PutPublicAccessBlock operation. Creates or modifies the Public Access Block configuration for an Amazon S3 bucket.

public class PutPublicAccessBlockRequest : AmazonWebServiceRequest
Inheritance
PutPublicAccessBlockRequest

Constructors

PutPublicAccessBlockRequest()

public PutPublicAccessBlockRequest()

Properties

BucketName

Gets and sets the property BucketName.

The name of the Amazon S3 bucket whose Public Access Block configuration you want to set.

public string BucketName { get; set; }

Property Value

string

ChecksumAlgorithm

Gets and sets the property ChecksumAlgorithm.

Indicates the algorithm used to create the checksum for the object. Amazon S3 will fail the request with a 400 error if there is no checksum associated with the object. For more information, see Checking object integrity in the Amazon S3 User Guide.

public ChecksumAlgorithm ChecksumAlgorithm { get; set; }

Property Value

ChecksumAlgorithm

ContentMD5

Gets and sets the property ContentMD5.

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.

public string ContentMD5 { get; set; }

Property Value

string

ExpectedBucketOwner

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.

public string ExpectedBucketOwner { get; set; }

Property Value

string

PublicAccessBlockConfiguration

Gets and sets the property PublicAccessBlockConfiguration.

The Public Access Block configuration that you want to apply to this Amazon S3 bucket.

public PublicAccessBlockConfiguration PublicAccessBlockConfiguration { get; set; }

Property Value

PublicAccessBlockConfiguration