amazonka-s3-1.5.0: Amazon Simple Storage Service SDK.

Copyright(c) 2013-2017 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.S3.CreateBucket

Contents

Description

Creates a new bucket.

Synopsis

Creating a Request

createBucket Source #

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.

Instances

Eq CreateBucket Source # 
Data CreateBucket Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateBucket -> c CreateBucket #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateBucket #

toConstr :: CreateBucket -> Constr #

dataTypeOf :: CreateBucket -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateBucket) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateBucket) #

gmapT :: (forall b. Data b => b -> b) -> CreateBucket -> CreateBucket #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateBucket -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateBucket -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateBucket -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateBucket -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateBucket -> m CreateBucket #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateBucket -> m CreateBucket #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateBucket -> m CreateBucket #

Read CreateBucket Source # 
Show CreateBucket Source # 
Generic CreateBucket Source # 

Associated Types

type Rep CreateBucket :: * -> * #

Hashable CreateBucket Source # 
NFData CreateBucket Source # 

Methods

rnf :: CreateBucket -> () #

AWSRequest CreateBucket Source # 
ToElement CreateBucket Source # 
ToQuery CreateBucket Source # 
ToPath CreateBucket Source # 
ToHeaders CreateBucket Source # 
type Rep CreateBucket Source # 
type Rs CreateBucket Source # 

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.

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

createBucketResponse Source #

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.

Instances

Eq CreateBucketResponse Source # 
Data CreateBucketResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateBucketResponse -> c CreateBucketResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateBucketResponse #

toConstr :: CreateBucketResponse -> Constr #

dataTypeOf :: CreateBucketResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateBucketResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateBucketResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateBucketResponse -> CreateBucketResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateBucketResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateBucketResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateBucketResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateBucketResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateBucketResponse -> m CreateBucketResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateBucketResponse -> m CreateBucketResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateBucketResponse -> m CreateBucketResponse #

Read CreateBucketResponse Source # 
Show CreateBucketResponse Source # 
Generic CreateBucketResponse Source # 
NFData CreateBucketResponse Source # 

Methods

rnf :: CreateBucketResponse -> () #

type Rep CreateBucketResponse Source # 
type Rep CreateBucketResponse = D1 (MetaData "CreateBucketResponse" "Network.AWS.S3.CreateBucket" "amazonka-s3-1.5.0-4i2REsRgyXL98WvgynC9is" False) (C1 (MetaCons "CreateBucketResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cbrsLocation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_cbrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

cbrsResponseStatus :: Lens' CreateBucketResponse Int Source #

  • - | The response status code.