Copyright | (c) 2013-2017 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 |
Replaces a policy on a bucket. If the bucket already has a policy, the one in this request completely replaces it.
- putBucketPolicy :: BucketName -> HashMap Text Value -> PutBucketPolicy
- data PutBucketPolicy
- pbpConfirmRemoveSelfBucketAccess :: Lens' PutBucketPolicy (Maybe Bool)
- pbpContentMD5 :: Lens' PutBucketPolicy (Maybe Text)
- pbpBucket :: Lens' PutBucketPolicy BucketName
- pbpPolicy :: Lens' PutBucketPolicy (HashMap Text Value)
- putBucketPolicyResponse :: PutBucketPolicyResponse
- data PutBucketPolicyResponse
Creating a Request
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.
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 (HashMap Text Value) 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.