put-bucket-acl

Sets the permission on an existing bucket using the access control list (ACL).

To set the ACL of a bucket, you must have WRITE_ACP permission.

Usage

put-bucket-acl --bucket <value> [--acl | --grant-full-control | --grant-read | --grant-read-acp | --grant-write | --grant-write-acp | --access-control-policy ]

Supported Options

--bucket: Bucket name
--acl <value>: The Access Control List (ACL) lets you manage access to buckets and objects.
  <value> specifies the following Hedvig-supported options:
    private: Object owner permission only
    public-read: Read permission by any user
    public-read-write: Read and write permission by any user
    authenticated-read: Read permission by authenticated users
[--access-control-policy]: Sets the ACL permissions for an object per grantee.
[--grant-full-control]: Grants full control (read, write, read ACP, and write ACP permissions) on this bucket
[--grant-read]: Grants read control (list) for objects in this bucket
[--grant-read-acp]: Grants read control for the bucket ACL
[--grant-write]: Grants write control (create, overwrite, delete) for objects in this bucket
[--grant-write-acp]: Grants write control for the bucket ACL

Example

aws s3api put-bucket-acl --endpoint http://<hostname>:<port_number> -profile testuser1 --bucket example_bucket --grant-read-acp id=testuser2

Loading...