Class PutBucketVersioningRequest
Container for the parameters to the PutBucketVersioning operation.
Sets the versioning state of an existing bucket. To set the versioning state, you must be the bucket owner.
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
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
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
Remarks
This is a required property for this request if:
- EnableMfaDelete was configured on the bucket
containing this object's version.
- You are deleting an object's version
VersioningConfig
The versioning configuration to apply to the bucket.
public S3BucketVersioningConfig VersioningConfig { get; set; }
Property Value
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.