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 |
Creates a new bucket.
- 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)
- cbrsResponseStatus :: 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:
cbGrantReadACP
- Allows grantee to read the bucket ACL.cbGrantWriteACP
- Allows grantee to write the ACL for the applicable bucket.cbGrantRead
- Allows grantee to list the objects in the bucket.cbGrantFullControl
- Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.cbCreateBucketConfiguration
- Undocumented member.cbGrantWrite
- Allows grantee to create, overwrite, and delete any object in the bucket.cbACL
- The canned ACL to apply to the bucket.cbBucket
- Undocumented member.
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:
cbrsLocation
- Undocumented member.cbrsResponseStatus
- -- | The response status code.
data CreateBucketResponse Source #
See: createBucketResponse
smart constructor.
Response Lenses
cbrsLocation :: Lens' CreateBucketResponse (Maybe Text) Source #
Undocumented member.
cbrsResponseStatus :: Lens' CreateBucketResponse Int Source #
- - | The response status code.