CmdID

CmdID / aws / aws s3api

aws s3api get-bucket-versioning

This operation is not supported for directory buckets. AWS CLI reference

1 example 2 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To retrieve the versioning configuration of a bucket

The following get-bucket-versioning example retrieves the versioning configuration for a bucket named amzn-s3-demo-bucket.

aws s3api get-bucket-versioning --bucket amzn-s3-demo-bucketIdentify
--bucketThe name of the bucket for which to get the versioning information.
Its output
{
    "Status": "Enabled"
}

For more information, see Retaining multiple versions of objects with S3 Versioning in the Amazon S3 User Guide.

Options

2 in the AWS CLI reference
--bucketThe name of the bucket for which to get the versioning information.
--expected-bucket-ownerThe account ID of the expected bucket owner.