amazonka-storagegateway-1.6.1: Amazon Storage Gateway 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.StorageGateway.ListGateways

Contents

Description

Lists gateways owned by an AWS account in a region specified in the request. The returned list is ordered by gateway Amazon Resource Name (ARN).

By default, the operation returns a maximum of 100 gateways. This operation supports pagination that allows you to optionally reduce the number of gateways returned in a response.

If you have more gateways than are returned in a response (that is, the response returns only a truncated list of your gateways), the response contains a marker that you can specify in your next request to fetch the next page of gateways.

This operation returns paginated results.

Synopsis

Creating a Request

listGateways :: ListGateways Source #

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

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

  • lgMarker - An opaque string that indicates the position at which to begin the returned list of gateways.
  • lgLimit - Specifies that the list of gateways returned be limited to the specified number of items.

data ListGateways Source #

A JSON object containing zero or more of the following fields:

  • 'ListGatewaysInput$Limit'
  • 'ListGatewaysInput$Marker'

See: listGateways smart constructor.

Instances
Eq ListGateways Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListGateways

Data ListGateways Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListGateways

Methods

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

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

toConstr :: ListGateways -> Constr #

dataTypeOf :: ListGateways -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListGateways Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListGateways

Show ListGateways Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListGateways

Generic ListGateways Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListGateways

Associated Types

type Rep ListGateways :: Type -> Type #

Hashable ListGateways Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListGateways

ToJSON ListGateways Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListGateways

AWSPager ListGateways Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListGateways

AWSRequest ListGateways Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListGateways

Associated Types

type Rs ListGateways :: Type #

ToHeaders ListGateways Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListGateways

ToPath ListGateways Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListGateways

ToQuery ListGateways Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListGateways

NFData ListGateways Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListGateways

Methods

rnf :: ListGateways -> () #

type Rep ListGateways Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListGateways

type Rep ListGateways = D1 (MetaData "ListGateways" "Network.AWS.StorageGateway.ListGateways" "amazonka-storagegateway-1.6.1-8r5RVaLfJcl46lpEVK6Ktc" False) (C1 (MetaCons "ListGateways'" PrefixI True) (S1 (MetaSel (Just "_lgMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_lgLimit") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))))
type Rs ListGateways Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListGateways

Request Lenses

lgMarker :: Lens' ListGateways (Maybe Text) Source #

An opaque string that indicates the position at which to begin the returned list of gateways.

lgLimit :: Lens' ListGateways (Maybe Natural) Source #

Specifies that the list of gateways returned be limited to the specified number of items.

Destructuring the Response

listGatewaysResponse Source #

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

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

data ListGatewaysResponse Source #

See: listGatewaysResponse smart constructor.

Instances
Eq ListGatewaysResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListGateways

Data ListGatewaysResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListGateways

Methods

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

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

toConstr :: ListGatewaysResponse -> Constr #

dataTypeOf :: ListGatewaysResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListGatewaysResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListGateways

Show ListGatewaysResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListGateways

Generic ListGatewaysResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListGateways

Associated Types

type Rep ListGatewaysResponse :: Type -> Type #

NFData ListGatewaysResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListGateways

Methods

rnf :: ListGatewaysResponse -> () #

type Rep ListGatewaysResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListGateways

type Rep ListGatewaysResponse = D1 (MetaData "ListGatewaysResponse" "Network.AWS.StorageGateway.ListGateways" "amazonka-storagegateway-1.6.1-8r5RVaLfJcl46lpEVK6Ktc" False) (C1 (MetaCons "ListGatewaysResponse'" PrefixI True) (S1 (MetaSel (Just "_lgrsMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_lgrsGateways") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [GatewayInfo])) :*: S1 (MetaSel (Just "_lgrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

lgrsResponseStatus :: Lens' ListGatewaysResponse Int Source #

  • - | The response status code.