amazonka-storagegateway-2.0: Amazon Storage Gateway SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.StorageGateway.ListGateways

Description

Lists gateways owned by an Amazon Web Services account in an Amazon Web Services 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

data ListGateways Source #

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

  • ListGatewaysInput$Limit
  • ListGatewaysInput$Marker

See: newListGateways smart constructor.

Constructors

ListGateways' 

Fields

  • limit :: Maybe Natural

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

  • marker :: Maybe Text

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

Instances

Instances details
ToJSON ListGateways Source # 
Instance details

Defined in Amazonka.StorageGateway.ListGateways

ToHeaders ListGateways Source # 
Instance details

Defined in Amazonka.StorageGateway.ListGateways

ToPath ListGateways Source # 
Instance details

Defined in Amazonka.StorageGateway.ListGateways

ToQuery ListGateways Source # 
Instance details

Defined in Amazonka.StorageGateway.ListGateways

AWSPager ListGateways Source # 
Instance details

Defined in Amazonka.StorageGateway.ListGateways

AWSRequest ListGateways Source # 
Instance details

Defined in Amazonka.StorageGateway.ListGateways

Associated Types

type AWSResponse ListGateways #

Generic ListGateways Source # 
Instance details

Defined in Amazonka.StorageGateway.ListGateways

Associated Types

type Rep ListGateways :: Type -> Type #

Read ListGateways Source # 
Instance details

Defined in Amazonka.StorageGateway.ListGateways

Show ListGateways Source # 
Instance details

Defined in Amazonka.StorageGateway.ListGateways

NFData ListGateways Source # 
Instance details

Defined in Amazonka.StorageGateway.ListGateways

Methods

rnf :: ListGateways -> () #

Eq ListGateways Source # 
Instance details

Defined in Amazonka.StorageGateway.ListGateways

Hashable ListGateways Source # 
Instance details

Defined in Amazonka.StorageGateway.ListGateways

type AWSResponse ListGateways Source # 
Instance details

Defined in Amazonka.StorageGateway.ListGateways

type Rep ListGateways Source # 
Instance details

Defined in Amazonka.StorageGateway.ListGateways

type Rep ListGateways = D1 ('MetaData "ListGateways" "Amazonka.StorageGateway.ListGateways" "amazonka-storagegateway-2.0-A8x7b0LCNm33wkCZlwgcSL" 'False) (C1 ('MetaCons "ListGateways'" 'PrefixI 'True) (S1 ('MetaSel ('Just "limit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "marker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newListGateways :: ListGateways Source #

Create a value of ListGateways with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:limit:ListGateways', listGateways_limit - Specifies that the list of gateways returned be limited to the specified number of items.

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

Request Lenses

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

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

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

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

Destructuring the Response

data ListGatewaysResponse Source #

See: newListGatewaysResponse smart constructor.

Constructors

ListGatewaysResponse' 

Fields

  • gateways :: Maybe [GatewayInfo]

    An array of GatewayInfo objects.

  • marker :: Maybe Text

    Use the marker in your next request to fetch the next set of gateways in the list. If there are no more gateways to list, this field does not appear in the response.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListGatewaysResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListGateways

Associated Types

type Rep ListGatewaysResponse :: Type -> Type #

Read ListGatewaysResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListGateways

Show ListGatewaysResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListGateways

NFData ListGatewaysResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListGateways

Methods

rnf :: ListGatewaysResponse -> () #

Eq ListGatewaysResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListGateways

type Rep ListGatewaysResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListGateways

type Rep ListGatewaysResponse = D1 ('MetaData "ListGatewaysResponse" "Amazonka.StorageGateway.ListGateways" "amazonka-storagegateway-2.0-A8x7b0LCNm33wkCZlwgcSL" 'False) (C1 ('MetaCons "ListGatewaysResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "gateways") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [GatewayInfo])) :*: (S1 ('MetaSel ('Just "marker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListGatewaysResponse Source #

Create a value of ListGatewaysResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:gateways:ListGatewaysResponse', listGatewaysResponse_gateways - An array of GatewayInfo objects.

ListGateways, listGatewaysResponse_marker - Use the marker in your next request to fetch the next set of gateways in the list. If there are no more gateways to list, this field does not appear in the response.

$sel:httpStatus:ListGatewaysResponse', listGatewaysResponse_httpStatus - The response's http status code.

Response Lenses

listGatewaysResponse_marker :: Lens' ListGatewaysResponse (Maybe Text) Source #

Use the marker in your next request to fetch the next set of gateways in the list. If there are no more gateways to list, this field does not appear in the response.