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

Contents

Description

Returns the versioning state of a bucket.

Synopsis

Creating a Request

getBucketVersioning Source #

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

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

data GetBucketVersioning Source #

See: getBucketVersioning smart constructor.

Instances

Eq GetBucketVersioning Source # 
Data GetBucketVersioning Source # 

Methods

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

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

toConstr :: GetBucketVersioning -> Constr #

dataTypeOf :: GetBucketVersioning -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetBucketVersioning Source # 
Show GetBucketVersioning Source # 
Generic GetBucketVersioning Source # 
Hashable GetBucketVersioning Source # 
NFData GetBucketVersioning Source # 

Methods

rnf :: GetBucketVersioning -> () #

AWSRequest GetBucketVersioning Source # 
ToQuery GetBucketVersioning Source # 
ToPath GetBucketVersioning Source # 
ToHeaders GetBucketVersioning Source # 
type Rep GetBucketVersioning Source # 
type Rep GetBucketVersioning = D1 (MetaData "GetBucketVersioning" "Network.AWS.S3.GetBucketVersioning" "amazonka-s3-1.5.0-4i2REsRgyXL98WvgynC9is" True) (C1 (MetaCons "GetBucketVersioning'" PrefixI True) (S1 (MetaSel (Just Symbol "_gbvBucket") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 BucketName)))
type Rs GetBucketVersioning Source # 

Request Lenses

Destructuring the Response

getBucketVersioningResponse Source #

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

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

  • gbvrsStatus - The versioning state of the bucket.
  • gbvrsMFADelete - Specifies whether MFA delete is enabled in the bucket versioning configuration. This element is only returned if the bucket has been configured with MFA delete. If the bucket has never been so configured, this element is not returned.
  • gbvrsResponseStatus - -- | The response status code.

data GetBucketVersioningResponse Source #

See: getBucketVersioningResponse smart constructor.

Instances

Eq GetBucketVersioningResponse Source # 
Data GetBucketVersioningResponse Source # 

Methods

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

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

toConstr :: GetBucketVersioningResponse -> Constr #

dataTypeOf :: GetBucketVersioningResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetBucketVersioningResponse Source # 
Show GetBucketVersioningResponse Source # 
Generic GetBucketVersioningResponse Source # 
NFData GetBucketVersioningResponse Source # 
type Rep GetBucketVersioningResponse Source # 
type Rep GetBucketVersioningResponse = D1 (MetaData "GetBucketVersioningResponse" "Network.AWS.S3.GetBucketVersioning" "amazonka-s3-1.5.0-4i2REsRgyXL98WvgynC9is" False) (C1 (MetaCons "GetBucketVersioningResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gbvrsStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe BucketVersioningStatus))) ((:*:) (S1 (MetaSel (Just Symbol "_gbvrsMFADelete") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe MFADeleteStatus))) (S1 (MetaSel (Just Symbol "_gbvrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

gbvrsMFADelete :: Lens' GetBucketVersioningResponse (Maybe MFADeleteStatus) Source #

Specifies whether MFA delete is enabled in the bucket versioning configuration. This element is only returned if the bucket has been configured with MFA delete. If the bucket has never been so configured, this element is not returned.