get-bucket-policy

Gets the bucket policy associated with a bucket in JSON format.

Usage

get-bucket-policy -–bucket value

Supported Options

--bucket: Bucket name

Example

aws s3api get-bucket-policy --endpoint http://<hostname>:<port_number> --profile testuser1 --bucket example_bucket

Loading...