| 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.PutBucketPolicy
Description
Replaces a policy on a bucket. If the bucket already has a policy, the one in this request completely replaces it.
Synopsis
- putBucketPolicy :: BucketName -> ByteString -> PutBucketPolicy
- data PutBucketPolicy
- pbpConfirmRemoveSelfBucketAccess :: Lens' PutBucketPolicy (Maybe Bool)
- pbpContentMD5 :: Lens' PutBucketPolicy (Maybe Text)
- pbpBucket :: Lens' PutBucketPolicy BucketName
- pbpPolicy :: Lens' PutBucketPolicy ByteString
- putBucketPolicyResponse :: PutBucketPolicyResponse
- data PutBucketPolicyResponse
Creating a Request
Arguments
| :: BucketName | |
| -> ByteString | |
| -> PutBucketPolicy |
Creates a value of PutBucketPolicy with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
pbpConfirmRemoveSelfBucketAccess- Set this parameter to true to confirm that you want to remove your permissions to change this bucket policy in the future.pbpContentMD5- Undocumented member.pbpBucket- Undocumented member.pbpPolicy- The bucket policy as a JSON document.
data PutBucketPolicy Source #
See: putBucketPolicy smart constructor.
Instances
Request Lenses
pbpConfirmRemoveSelfBucketAccess :: Lens' PutBucketPolicy (Maybe Bool) Source #
Set this parameter to true to confirm that you want to remove your permissions to change this bucket policy in the future.
pbpContentMD5 :: Lens' PutBucketPolicy (Maybe Text) Source #
Undocumented member.
pbpBucket :: Lens' PutBucketPolicy BucketName Source #
Undocumented member.
pbpPolicy :: Lens' PutBucketPolicy ByteString Source #
The bucket policy as a JSON document.
Destructuring the Response
putBucketPolicyResponse :: PutBucketPolicyResponse Source #
Creates a value of PutBucketPolicyResponse with the minimum fields required to make a request.
data PutBucketPolicyResponse Source #
See: putBucketPolicyResponse smart constructor.