Enable or suspend versioning on a bucket.
Declaration Syntax
C# |
public SetBucketVersioningResponse SetBucketVersioning( SetBucketVersioningRequest request )
Parameters
- request (SetBucketVersioningRequest)
- The SetBucketVersioningRequest that defines the parameters of the operation.
Return Value
Returns a SetBucketVersioningResponse from S3.
Remarks
Once versioning has been "Enabled" on a bucket, it can be "Suspended" but cannot be switched "Off".
Exceptions
Exception | Condition |
---|---|
ArgumentException |
If SetBucketVersioningRequest.VersioningStatus has the value S3BucketVersioningStatus.Off
|
ArgumentNullException | |
WebException | |
AmazonS3Exception |