FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [View Raw Code]   [Original HTTPS Page]

aws-cli/awscli/examples/s3api/put-object-acl.rst at develop · ProGamerCode/aws-cli · GitHub

forked from aws/aws-cli

Latest commit

 

History

History
7 lines (5 loc) · 554 Bytes

File metadata and controls

7 lines (5 loc) · 554 Bytes

The following command grants full control to two AWS users (user1@example.com and user2@example.com) and read permission to everyone:

aws s3api put-object-acl --bucket MyBucket --key file.txt --grant-full-control emailaddress=user1@example.com,emailaddress=user2@example.com --grant-read uri=http://acs.amazonaws.com/groups/global/AllUsers

See http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTacl.html for details on custom ACLs (the s3api ACL commands, such as put-object-acl, use the same shorthand argument notation).


Back | FazBrowse Home | New Git URL