| 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 |
Network.AWS.S3.GetBucketPolicy
Description
Returns the policy of a specified bucket.
See: AWS API Reference for GetBucketPolicy.
- 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
Arguments
| :: BucketName | |
| -> GetBucketPolicy |
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:
data GetBucketPolicy Source
See: getBucketPolicy smart constructor.
Instances
Request Lenses
gbpBucket :: Lens' GetBucketPolicy BucketName Source
Undocumented member.
Destructuring the Response
getBucketPolicyResponse Source
Arguments
| :: Int | |
| -> HashMap Text Value | |
| -> GetBucketPolicyResponse |
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:
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.