By enabling versioning, you can store multiple versions of an object in a bucket and retrieve, delete, or restore a specified version.
For more information, see Versioning Overview.
Only the root account and authorized sub-accounts can configure the versioning state of a bucket.
You can refer to Setting Versioning to learn how to encrypt objects in the console.
You can use the REST API to configure versioning and manage objects in buckets with different versioning states. For more information, see the following API documentation:
You can directly call the Versioning method in the SDK. For more information, see the SDK documentation for the corresponding programming language below: