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

Defined in Network.AWS.S3.GetBucketVersioning

Data GetBucketVersioning Source # 
Instance details

Defined in Network.AWS.S3.GetBucketVersioning

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

Defined in Network.AWS.S3.GetBucketVersioning

Show GetBucketVersioning Source # 
Instance details

Defined in Network.AWS.S3.GetBucketVersioning

Generic GetBucketVersioning Source # 
Instance details

Defined in Network.AWS.S3.GetBucketVersioning

Associated Types

type Rep GetBucketVersioning :: Type -> Type #

Hashable GetBucketVersioning Source # 
Instance details

Defined in Network.AWS.S3.GetBucketVersioning

AWSRequest GetBucketVersioning Source # 
Instance details

Defined in Network.AWS.S3.GetBucketVersioning

Associated Types

type Rs GetBucketVersioning :: Type #

ToHeaders GetBucketVersioning Source # 
Instance details

Defined in Network.AWS.S3.GetBucketVersioning

ToPath GetBucketVersioning Source # 
Instance details

Defined in Network.AWS.S3.GetBucketVersioning

ToQuery GetBucketVersioning Source # 
Instance details

Defined in Network.AWS.S3.GetBucketVersioning

NFData GetBucketVersioning Source # 
Instance details

Defined in Network.AWS.S3.GetBucketVersioning

Methods

rnf :: GetBucketVersioning -> () #

type Rep GetBucketVersioning Source # 
Instance details

Defined in Network.AWS.S3.GetBucketVersioning

type Rep GetBucketVersioning = D1 (MetaData "GetBucketVersioning" "Network.AWS.S3.GetBucketVersioning" "amazonka-s3-1.6.1-I7VsiKive605KPmKsVgrUz" True) (C1 (MetaCons "GetBucketVersioning'" PrefixI True) (S1 (MetaSel (Just "_gbvBucket") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 BucketName)))
type Rs GetBucketVersioning Source # 
Instance details

Defined in Network.AWS.S3.GetBucketVersioning

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

Defined in Network.AWS.S3.GetBucketVersioning

Data GetBucketVersioningResponse Source # 
Instance details

Defined in Network.AWS.S3.GetBucketVersioning

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

Defined in Network.AWS.S3.GetBucketVersioning

Show GetBucketVersioningResponse Source # 
Instance details

Defined in Network.AWS.S3.GetBucketVersioning

Generic GetBucketVersioningResponse Source # 
Instance details

Defined in Network.AWS.S3.GetBucketVersioning

Associated Types

type Rep GetBucketVersioningResponse :: Type -> Type #

NFData GetBucketVersioningResponse Source # 
Instance details

Defined in Network.AWS.S3.GetBucketVersioning

type Rep GetBucketVersioningResponse Source # 
Instance details

Defined in Network.AWS.S3.GetBucketVersioning

type Rep GetBucketVersioningResponse = D1 (MetaData "GetBucketVersioningResponse" "Network.AWS.S3.GetBucketVersioning" "amazonka-s3-1.6.1-I7VsiKive605KPmKsVgrUz" False) (C1 (MetaCons "GetBucketVersioningResponse'" PrefixI True) (S1 (MetaSel (Just "_gbvrsStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe BucketVersioningStatus)) :*: (S1 (MetaSel (Just "_gbvrsMFADelete") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe MFADeleteStatus)) :*: S1 (MetaSel (Just "_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.