put-bucket-versioning

Sets the versioning status of a bucket (must be done by bucket owner). For rules regarding versioning status transitions for bucket, see Specifying Hedvig Attributes during Bucket Creation.

Usage

put-bucket-versioning --bucket <value> --versioning-configuration <value>

Supported Options

--bucket: Bucket name
--versioning-configuration <value>: Versioning configuration
  <value> can be one of the following:
  '{"Status": "Enabled"}'
  '{"Status": "Suspended"}'

Example

aws s3api put-bucket-versioning --endpoint http://<hostname>:<port_number> --profile testuser1 --bucket example_bucket --versioning-configuration '{"Status": "Enabled"}'

Loading...