Amazon Simple Storage Service
Developer Guide (API Version 2006-03-01)
Print this pageEmail this pageGo to the ForumsView the PDFShare this page on TwitterShare this page on FacebookBookmark this page on DeliciousSubmit this page to RedditSubmit this page to DiggDid this page help you?  Yes  No   Tell us about it...

Suspending Versioning

The bucket owner can suspend versioning to stop accruing object versions. When you suspend versioning, the objects in your bucket do not change, as shown in the following figure.

What changes is how Amazon S3 handles objects in future requests. For a more detailed explanation of the effects of suspending versioning, see Working with Versioning-Suspended Buckets.

To suspend object versioning

  1. In the header of a PUT Bucket request, include the versioning sub-resource.

  2. In the body of the request, use Suspended for the value of the Status request element.

Example Suspending Versioning

The following request suspends versioning on bucketName.

PUT /?versioning HTTP/1.1
Host: bucketName.s3.amazonaws.com
Date: Wed, 12 Oct 2009 17:50:00 GMT
Authorization: AWS 15B4D3461F177624206A:xQE0diMbLRepdf3YB+FIEXAMPLE=
Content-Type: text/plain
Content-Length: 124
				
<VersioningConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
  <Status>Suspended</Status>
</VersioningConfiguration>

If you configured a bucket to be MFA Delete enabled, you must include the x-amz-mfa request header and the MfaDelete request element in the request to change the bucket's versioning state.

Example Suspending Versioning Using MFA Delete

The following request suspends versioning on bucketName that is configured with MFA Delete.

PUT /?versioning HTTPS/1.1
Host: bucketName.s3.amazonaws.com
Date: Wed, 12 Oct 2009 17:50:00 GMT
Authorization: AWS 15B4D3461F177624206A:xQE0diMbLRepdf3YB+FIEXAMPLE=
x-amz-mfa: 20899872 301749
Content-Type: text/plain
Content-Length: 124

<VersioningConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
  <Status>Suspended</Status>
  <MfaDelete>Enabled</MfaDelete>
</VersioningConfiguration>

Note that requests that include x-amz-mfa must use HTTPS.