amazonka-storagegateway-1.2.0.2: Amazon Storage Gateway SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.StorageGateway.ListGateways

Contents

Description

This operation 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.

See: AWS API Reference for ListGateways.

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:

data ListGateways Source

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

  • ListGatewaysInput$Limit
  • ListGatewaysInput$Marker

See: listGateways smart constructor.

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:

Response Lenses

lgrsStatus :: Lens' ListGatewaysResponse Int Source

The response status code.