You use the HTTP PUT method with the versioning query parameter to enable or disable versioning for a bucket. To enable or disable versioning for a bucket, you need to be the bucket owner.
While versioning is enabled for a bucket, the versioning status of the bucket is Enabled. If you disable versioning for a bucket after it has been enabled, the versioning status changes to Suspended. If versioning has never been enabled for a bucket, the bucket has no explicit versioning status.
To enable or disable versioning for a bucket, you specify the new versioning status in an XML request body. For the format of this request body, see Request body (PUT bucket versioning).
For an introduction to versioning, see Versioning.
© 2015, 2020 Hitachi Vantara LLC. All rights reserved.