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

Copyright(c) 2013-2018 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 # 
Instance details

Defined in Network.AWS.S3.CreateBucket

Data CreateBucket Source # 
Instance details

Defined in Network.AWS.S3.CreateBucket

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 # 
Instance details

Defined in Network.AWS.S3.CreateBucket

Show CreateBucket Source # 
Instance details

Defined in Network.AWS.S3.CreateBucket

Generic CreateBucket Source # 
Instance details

Defined in Network.AWS.S3.CreateBucket

Associated Types

type Rep CreateBucket :: Type -> Type #

Hashable CreateBucket Source # 
Instance details

Defined in Network.AWS.S3.CreateBucket

AWSRequest CreateBucket Source # 
Instance details

Defined in Network.AWS.S3.CreateBucket

Associated Types

type Rs CreateBucket :: Type #

ToElement CreateBucket Source # 
Instance details

Defined in Network.AWS.S3.CreateBucket

ToHeaders CreateBucket Source # 
Instance details

Defined in Network.AWS.S3.CreateBucket

ToPath CreateBucket Source # 
Instance details

Defined in Network.AWS.S3.CreateBucket

ToQuery CreateBucket Source # 
Instance details

Defined in Network.AWS.S3.CreateBucket

NFData CreateBucket Source # 
Instance details

Defined in Network.AWS.S3.CreateBucket

Methods

rnf :: CreateBucket -> () #

type Rep CreateBucket Source # 
Instance details

Defined in Network.AWS.S3.CreateBucket

type Rs CreateBucket Source # 
Instance details

Defined in Network.AWS.S3.CreateBucket

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 # 
Instance details

Defined in Network.AWS.S3.CreateBucket

Data CreateBucketResponse Source # 
Instance details

Defined in Network.AWS.S3.CreateBucket

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 # 
Instance details

Defined in Network.AWS.S3.CreateBucket

Show CreateBucketResponse Source # 
Instance details

Defined in Network.AWS.S3.CreateBucket

Generic CreateBucketResponse Source # 
Instance details

Defined in Network.AWS.S3.CreateBucket

Associated Types

type Rep CreateBucketResponse :: Type -> Type #

NFData CreateBucketResponse Source # 
Instance details

Defined in Network.AWS.S3.CreateBucket

Methods

rnf :: CreateBucketResponse -> () #

type Rep CreateBucketResponse Source # 
Instance details

Defined in Network.AWS.S3.CreateBucket

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

Response Lenses

cbrsResponseStatus :: Lens' CreateBucketResponse Int Source #

  • - | The response status code.