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.PutBucketVersioning

Contents

Description

Sets the versioning state of an existing bucket. To set the versioning state, you must be the bucket owner.

Synopsis

Creating a Request

putBucketVersioning Source #

Creates a value of PutBucketVersioning with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data PutBucketVersioning Source #

See: putBucketVersioning smart constructor.

Instances

Eq PutBucketVersioning Source # 
Data PutBucketVersioning Source # 

Methods

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

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

toConstr :: PutBucketVersioning -> Constr #

dataTypeOf :: PutBucketVersioning -> DataType #

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

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

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

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

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

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

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

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

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

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

Read PutBucketVersioning Source # 
Show PutBucketVersioning Source # 
Generic PutBucketVersioning Source # 
Hashable PutBucketVersioning Source # 
NFData PutBucketVersioning Source # 

Methods

rnf :: PutBucketVersioning -> () #

AWSRequest PutBucketVersioning Source # 
ToElement PutBucketVersioning Source # 
ToQuery PutBucketVersioning Source # 
ToPath PutBucketVersioning Source # 
ToHeaders PutBucketVersioning Source # 
type Rep PutBucketVersioning Source # 
type Rep PutBucketVersioning = D1 (MetaData "PutBucketVersioning" "Network.AWS.S3.PutBucketVersioning" "amazonka-s3-1.5.0-4i2REsRgyXL98WvgynC9is" False) (C1 (MetaCons "PutBucketVersioning'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_pbvMFA") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_pbvContentMD5") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_pbvBucket") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 BucketName)) (S1 (MetaSel (Just Symbol "_pbvVersioningConfiguration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 VersioningConfiguration)))))
type Rs PutBucketVersioning Source # 

Request Lenses

pbvMFA :: Lens' PutBucketVersioning (Maybe Text) Source #

The concatenation of the authentication device's serial number, a space, and the value that is displayed on your authentication device.

Destructuring the Response

putBucketVersioningResponse :: PutBucketVersioningResponse Source #

Creates a value of PutBucketVersioningResponse with the minimum fields required to make a request.

data PutBucketVersioningResponse Source #

See: putBucketVersioningResponse smart constructor.

Instances

Eq PutBucketVersioningResponse Source # 
Data PutBucketVersioningResponse Source # 

Methods

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

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

toConstr :: PutBucketVersioningResponse -> Constr #

dataTypeOf :: PutBucketVersioningResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read PutBucketVersioningResponse Source # 
Show PutBucketVersioningResponse Source # 
Generic PutBucketVersioningResponse Source # 
NFData PutBucketVersioningResponse Source # 
type Rep PutBucketVersioningResponse Source # 
type Rep PutBucketVersioningResponse = D1 (MetaData "PutBucketVersioningResponse" "Network.AWS.S3.PutBucketVersioning" "amazonka-s3-1.5.0-4i2REsRgyXL98WvgynC9is" False) (C1 (MetaCons "PutBucketVersioningResponse'" PrefixI False) U1)