# NOT RUN {
# The following example adds grants to an object ACL. The first permission
# grants user1 and user2 FULL_CONTROL and the AllUsers group READ
# permission.
# }
# NOT RUN {
svc$put_object_acl(
AccessControlPolicy = structure(
list(),
.Names = character(
0
)
),
Bucket = "examplebucket",
GrantFullControl = "emailaddress=user1@example.com,emailaddress=user2@example.com",
GrantRead = "uri=http://acs.amazonaws.com/groups/global/AllUsers",
Key = "HappyFace.jpg"
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab