| Copyright | (c) 2013-2018 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.S3.PutObjectACL
Description
uses the acl subresource to set the access control list (ACL) permissions for an object that already exists in a bucket
Synopsis
- putObjectACL :: BucketName -> ObjectKey -> PutObjectACL
- data PutObjectACL
- poaVersionId :: Lens' PutObjectACL (Maybe ObjectVersionId)
- 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
Arguments
| :: BucketName | |
| -> ObjectKey | |
| -> PutObjectACL |
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:
poaVersionId- VersionId used to reference a specific version of the object.poaGrantReadACP- Allows grantee to read the bucket ACL.poaRequestPayer- Undocumented member.poaGrantWriteACP- Allows grantee to write the ACL for the applicable bucket.poaGrantRead- Allows grantee to list the objects in the bucket.poaGrantFullControl- Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.poaContentMD5- Undocumented member.poaAccessControlPolicy- Undocumented member.poaGrantWrite- Allows grantee to create, overwrite, and delete any object in the bucket.poaACL- The canned ACL to apply to the object.poaBucket- Undocumented member.poaKey- Undocumented member.
data PutObjectACL Source #
See: putObjectACL smart constructor.
Instances
Request Lenses
poaVersionId :: Lens' PutObjectACL (Maybe ObjectVersionId) Source #
VersionId used to reference a specific version of the object.
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.
Destructuring the Response
Arguments
| :: Int | |
| -> PutObjectACLResponse |
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:
poarsRequestCharged- Undocumented member.poarsResponseStatus- -- | The response status code.
data PutObjectACLResponse Source #
See: putObjectACLResponse smart constructor.
Instances
Response Lenses
poarsRequestCharged :: Lens' PutObjectACLResponse (Maybe RequestCharged) Source #
Undocumented member.
poarsResponseStatus :: Lens' PutObjectACLResponse Int Source #
- - | The response status code.