aws s3api put-bucket-versioning
This operation is not supported for directory buckets. AWS CLI reference
6 options Its page in the AWS CLI reference
Options
--bucketThe bucket name.--checksum-algorithmIndicates the algorithm used to create the checksum for the request when you use the SDK.--content-md5>The Base64 encoded 128-bit MD5 digest of the data.--expected-bucket-ownerThe account ID of the expected bucket owner.--mfaThe concatenation of the authentication device's serial number, a space, and the value that is displayed on your authentication device.--versioning-configurationContainer for setting the versioning state.