Enable or suspend versioning on a bucket.

C# |
SetBucketVersioningResponse SetBucketVersioning( SetBucketVersioningRequest request )

- request (SetBucketVersioningRequest)
- The SetBucketVersioningRequest that defines the parameters of the operation.

Returns a SetBucketVersioningResponse from S3.

Once versioning has been "Enabled" on a bucket, it can be "Suspended" but cannot be switched "Off".

Exception | Condition |
---|---|
ArgumentException |
If SetBucketVersioningRequest.VersioningStatus has the value S3BucketVersioningStatus.Off
|
ArgumentNullException | |
WebException | |
AmazonS3Exception |