| 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.GetBucketPolicy
Description
Returns the policy of a specified bucket.
Synopsis
- getBucketPolicy :: BucketName -> GetBucketPolicy
- data GetBucketPolicy
- gbpBucket :: Lens' GetBucketPolicy BucketName
- getBucketPolicyResponse :: Int -> ByteString -> GetBucketPolicyResponse
- data GetBucketPolicyResponse
- gbprsResponseStatus :: Lens' GetBucketPolicyResponse Int
- gbprsPolicy :: Lens' GetBucketPolicyResponse ByteString
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:
gbpBucket- Undocumented member.
data GetBucketPolicy Source #
See: getBucketPolicy smart constructor.
Instances
Request Lenses
gbpBucket :: Lens' GetBucketPolicy BucketName Source #
Undocumented member.
Destructuring the Response
getBucketPolicyResponse Source #
Arguments
| :: Int | |
| -> ByteString | |
| -> 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:
gbprsResponseStatus- -- | The response status code.gbprsPolicy- The bucket policy as a JSON document.
data GetBucketPolicyResponse Source #
See: getBucketPolicyResponse smart constructor.
Instances
Response Lenses
gbprsResponseStatus :: Lens' GetBucketPolicyResponse Int Source #
- - | The response status code.
gbprsPolicy :: Lens' GetBucketPolicyResponse ByteString Source #
The bucket policy as a JSON document.