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

Defined in Network.AWS.S3.PutBucketVersioning

Data PutBucketVersioning Source # 
Instance details

Defined in Network.AWS.S3.PutBucketVersioning

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

Defined in Network.AWS.S3.PutBucketVersioning

Show PutBucketVersioning Source # 
Instance details

Defined in Network.AWS.S3.PutBucketVersioning

Generic PutBucketVersioning Source # 
Instance details

Defined in Network.AWS.S3.PutBucketVersioning

Associated Types

type Rep PutBucketVersioning :: Type -> Type #

Hashable PutBucketVersioning Source # 
Instance details

Defined in Network.AWS.S3.PutBucketVersioning

AWSRequest PutBucketVersioning Source # 
Instance details

Defined in Network.AWS.S3.PutBucketVersioning

Associated Types

type Rs PutBucketVersioning :: Type #

ToElement PutBucketVersioning Source # 
Instance details

Defined in Network.AWS.S3.PutBucketVersioning

ToHeaders PutBucketVersioning Source # 
Instance details

Defined in Network.AWS.S3.PutBucketVersioning

ToPath PutBucketVersioning Source # 
Instance details

Defined in Network.AWS.S3.PutBucketVersioning

ToQuery PutBucketVersioning Source # 
Instance details

Defined in Network.AWS.S3.PutBucketVersioning

NFData PutBucketVersioning Source # 
Instance details

Defined in Network.AWS.S3.PutBucketVersioning

Methods

rnf :: PutBucketVersioning -> () #

type Rep PutBucketVersioning Source # 
Instance details

Defined in Network.AWS.S3.PutBucketVersioning

type Rep PutBucketVersioning = D1 (MetaData "PutBucketVersioning" "Network.AWS.S3.PutBucketVersioning" "amazonka-s3-1.6.1-I7VsiKive605KPmKsVgrUz" False) (C1 (MetaCons "PutBucketVersioning'" PrefixI True) ((S1 (MetaSel (Just "_pbvMFA") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pbvContentMD5") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_pbvBucket") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 BucketName) :*: S1 (MetaSel (Just "_pbvVersioningConfiguration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 VersioningConfiguration))))
type Rs PutBucketVersioning Source # 
Instance details

Defined in Network.AWS.S3.PutBucketVersioning

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

Defined in Network.AWS.S3.PutBucketVersioning

Data PutBucketVersioningResponse Source # 
Instance details

Defined in Network.AWS.S3.PutBucketVersioning

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

Defined in Network.AWS.S3.PutBucketVersioning

Show PutBucketVersioningResponse Source # 
Instance details

Defined in Network.AWS.S3.PutBucketVersioning

Generic PutBucketVersioningResponse Source # 
Instance details

Defined in Network.AWS.S3.PutBucketVersioning

Associated Types

type Rep PutBucketVersioningResponse :: Type -> Type #

NFData PutBucketVersioningResponse Source # 
Instance details

Defined in Network.AWS.S3.PutBucketVersioning

type Rep PutBucketVersioningResponse Source # 
Instance details

Defined in Network.AWS.S3.PutBucketVersioning

type Rep PutBucketVersioningResponse = D1 (MetaData "PutBucketVersioningResponse" "Network.AWS.S3.PutBucketVersioning" "amazonka-s3-1.6.1-I7VsiKive605KPmKsVgrUz" False) (C1 (MetaCons "PutBucketVersioningResponse'" PrefixI False) (U1 :: Type -> Type))