Table of Contents

Class PutBucketVersioningRequest

Namespace
Amazon.S3.Model
Assembly
AWSSDK.S3.dll
public class PutBucketVersioningRequest : AmazonWebServiceRequest
Inheritance
PutBucketVersioningRequest

Constructors

PutBucketVersioningRequest()

public PutBucketVersioningRequest()

Properties

BucketName

The name of the bucket to be updated.

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

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

MfaCodes

The MfaCodes Tuple associates the Serial Number and the current Token/Code displayed on the Multi-Factor Authentication device associated with your AWS Account.

public MfaCodes MfaCodes { get; set; }

Property Value

MfaCodes

Remarks

This is a required property for this request if:

  1. EnableMfaDelete was configured on the bucket containing this object's version.
  2. You are deleting an object's version

VersioningConfig

The versioning configuration to apply to the bucket.

public S3BucketVersioningConfig VersioningConfig { get; set; }

Property Value

S3BucketVersioningConfig

Remarks

Once Versioning has been "Enabled" on a bucket, it can be "Suspended" but cannot be switched "Off". If EnableMfaDelete is set, the MfaCodes property needs to contain the Serial of and current Token displayed on the MFA device.