| Did this page help you? Yes No Tell us about it... |
Objects stored in your bucket before you set the versioning state have a version
ID of null. When you enable versioning the objects in your bucket do
not change, as shown in the following figure.

What changes is how Amazon S3 handles the objects in future requests in that bucket.
To enable object versioning
In a PUT Bucket request, include the versioning sub-resource.
In the body of the request, use Enabled for the value of the
Status request element.
Example Enabling Versioning
The following request enables versioning on the bucket, bucketName.
PUT /?versioning HTTP/1.1
Host: bucketName.s3.amazonaws.com
Date: Wed, 12 Oct 2009 17:50:00 GMT
Authorization: AWS AKIAIOSFODNN7EXAMPLE:xQE0diMbLRepdf3YB+FIEXAMPLE=
Content-Type: text/plain
Content-Length: 124
<VersioningConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Status>Enabled</Status>
</VersioningConfiguration>