# Example putObjectAcl is an example using the AWS SDK for Go to put an ACL on an S3 object. # Usage ```sh putBucketAcl -region // required -bucket // required -key // required -owner-name -owner-id -grantee-type // required -uri -email -user-id -display-name ``` ```sh go run -tags example putObjectAcl.go -bucket -key -owner-name -owner-id -grantee-type -user-id ``` Depending on the type is used depends on which of the three, `uri`, `email`, or `user-id`, needs to be used. * `s3.TypeCanonicalUser`: `user-id` or `display-name` must be used * `s3.TypeAmazonCustomerByEmail`: `email` must be used * `s3.TypeGroup`: `uri` must be used Output: ``` success { } nil ```