Using Console
Using CLI
Using Python
boto3
library if not already installed using the command !pip install boto3
get_bucket_versioning
method:put_bucket_versioning
method:get_bucket_mfa_delete
method:put_bucket_mfa_delete
method:your-bucket-name
, your-mfa-serial-number
and your-mfa-token-code
with the actual values.