Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
uses the acl subresource to set the access control list (ACL) permissions for an object that already exists in a bucket
See: AWS API Reference for PutObjectACL.
- putObjectACL :: BucketName -> ObjectKey -> PutObjectACL
- data PutObjectACL
- poaGrantReadACP :: Lens' PutObjectACL (Maybe Text)
- poaRequestPayer :: Lens' PutObjectACL (Maybe RequestPayer)
- poaGrantWriteACP :: Lens' PutObjectACL (Maybe Text)
- poaGrantRead :: Lens' PutObjectACL (Maybe Text)
- poaGrantFullControl :: Lens' PutObjectACL (Maybe Text)
- poaContentMD5 :: Lens' PutObjectACL (Maybe Text)
- poaAccessControlPolicy :: Lens' PutObjectACL (Maybe AccessControlPolicy)
- poaGrantWrite :: Lens' PutObjectACL (Maybe Text)
- poaACL :: Lens' PutObjectACL (Maybe ObjectCannedACL)
- poaBucket :: Lens' PutObjectACL BucketName
- poaKey :: Lens' PutObjectACL ObjectKey
- putObjectACLResponse :: Int -> PutObjectACLResponse
- data PutObjectACLResponse
- poarsRequestCharged :: Lens' PutObjectACLResponse (Maybe RequestCharged)
- poarsResponseStatus :: Lens' PutObjectACLResponse Int
Creating a Request
Creates a value of PutObjectACL
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PutObjectACL Source
See: putObjectACL
smart constructor.
Request Lenses
poaGrantReadACP :: Lens' PutObjectACL (Maybe Text) Source
Allows grantee to read the bucket ACL.
poaRequestPayer :: Lens' PutObjectACL (Maybe RequestPayer) Source
Undocumented member.
poaGrantWriteACP :: Lens' PutObjectACL (Maybe Text) Source
Allows grantee to write the ACL for the applicable bucket.
poaGrantRead :: Lens' PutObjectACL (Maybe Text) Source
Allows grantee to list the objects in the bucket.
poaGrantFullControl :: Lens' PutObjectACL (Maybe Text) Source
Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.
poaContentMD5 :: Lens' PutObjectACL (Maybe Text) Source
Undocumented member.
poaAccessControlPolicy :: Lens' PutObjectACL (Maybe AccessControlPolicy) Source
Undocumented member.
poaGrantWrite :: Lens' PutObjectACL (Maybe Text) Source
Allows grantee to create, overwrite, and delete any object in the bucket.
poaACL :: Lens' PutObjectACL (Maybe ObjectCannedACL) Source
The canned ACL to apply to the object.
poaBucket :: Lens' PutObjectACL BucketName Source
Undocumented member.
poaKey :: Lens' PutObjectACL ObjectKey Source
Undocumented member.
Destructuring the Response
Creates a value of PutObjectACLResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PutObjectACLResponse Source
See: putObjectACLResponse
smart constructor.
Response Lenses
poarsRequestCharged :: Lens' PutObjectACLResponse (Maybe RequestCharged) Source
Undocumented member.
poarsResponseStatus :: Lens' PutObjectACLResponse Int Source
The response status code.