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 |
Creates a new bucket.
See: AWS API Reference for CreateBucket.
- createBucket :: BucketName -> CreateBucket
- data CreateBucket
- cbGrantReadACP :: Lens' CreateBucket (Maybe Text)
- cbGrantWriteACP :: Lens' CreateBucket (Maybe Text)
- cbGrantRead :: Lens' CreateBucket (Maybe Text)
- cbGrantFullControl :: Lens' CreateBucket (Maybe Text)
- cbCreateBucketConfiguration :: Lens' CreateBucket (Maybe CreateBucketConfiguration)
- cbGrantWrite :: Lens' CreateBucket (Maybe Text)
- cbACL :: Lens' CreateBucket (Maybe BucketCannedACL)
- cbBucket :: Lens' CreateBucket BucketName
- createBucketResponse :: Int -> CreateBucketResponse
- data CreateBucketResponse
- cbrsLocation :: Lens' CreateBucketResponse (Maybe Text)
- cbrsStatus :: Lens' CreateBucketResponse Int
Creating a Request
Creates a value of CreateBucket
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateBucket Source
See: createBucket
smart constructor.
Request Lenses
cbGrantReadACP :: Lens' CreateBucket (Maybe Text) Source
Allows grantee to read the bucket ACL.
cbGrantWriteACP :: Lens' CreateBucket (Maybe Text) Source
Allows grantee to write the ACL for the applicable bucket.
cbGrantRead :: Lens' CreateBucket (Maybe Text) Source
Allows grantee to list the objects in the bucket.
cbGrantFullControl :: Lens' CreateBucket (Maybe Text) Source
Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.
cbCreateBucketConfiguration :: Lens' CreateBucket (Maybe CreateBucketConfiguration) Source
Undocumented member.
cbGrantWrite :: Lens' CreateBucket (Maybe Text) Source
Allows grantee to create, overwrite, and delete any object in the bucket.
cbACL :: Lens' CreateBucket (Maybe BucketCannedACL) Source
The canned ACL to apply to the bucket.
cbBucket :: Lens' CreateBucket BucketName Source
Undocumented member.
Destructuring the Response
Creates a value of CreateBucketResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateBucketResponse Source
See: createBucketResponse
smart constructor.
Response Lenses
cbrsLocation :: Lens' CreateBucketResponse (Maybe Text) Source
Undocumented member.
cbrsStatus :: Lens' CreateBucketResponse Int Source
The response status code.