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 |
Returns the policy of a specified bucket.
- getBucketPolicy :: BucketName -> GetBucketPolicy
- data GetBucketPolicy
- gbpBucket :: Lens' GetBucketPolicy BucketName
- getBucketPolicyResponse :: Int -> HashMap Text Value -> GetBucketPolicyResponse
- data GetBucketPolicyResponse
- gbprsResponseStatus :: Lens' GetBucketPolicyResponse Int
- gbprsPolicy :: Lens' GetBucketPolicyResponse (HashMap Text Value)
Creating a Request
Creates a value of GetBucketPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gbpBucket
- Undocumented member.
data GetBucketPolicy Source #
See: getBucketPolicy
smart constructor.
Request Lenses
gbpBucket :: Lens' GetBucketPolicy BucketName Source #
Undocumented member.
Destructuring the Response
getBucketPolicyResponse Source #
Creates a value of GetBucketPolicyResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gbprsResponseStatus
- -- | The response status code.gbprsPolicy
- The bucket policy as a JSON document.
data GetBucketPolicyResponse Source #
See: getBucketPolicyResponse
smart constructor.
Response Lenses
gbprsResponseStatus :: Lens' GetBucketPolicyResponse Int Source #
- - | The response status code.
gbprsPolicy :: Lens' GetBucketPolicyResponse (HashMap Text Value) Source #
The bucket policy as a JSON document.