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 |
Returns the policy of a specified bucket.
See: AWS API Reference for GetBucketPolicy.
- getBucketPolicy :: BucketName -> GetBucketPolicy
- data GetBucketPolicy
- gbpBucket :: Lens' GetBucketPolicy BucketName
- getBucketPolicyResponse :: Int -> GetBucketPolicyResponse
- data GetBucketPolicyResponse
- gbprsPolicy :: Lens' GetBucketPolicyResponse (Maybe Text)
- gbprsResponseStatus :: Lens' GetBucketPolicyResponse Int
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:
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:
data GetBucketPolicyResponse Source
See: getBucketPolicyResponse
smart constructor.
Response Lenses
gbprsPolicy :: Lens' GetBucketPolicyResponse (Maybe Text) Source
The bucket policy as a JSON document.
gbprsResponseStatus :: Lens' GetBucketPolicyResponse Int Source
The response status code.