amazonka-backup-gateway-2.0: Amazon Backup 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.BackupGateway.ListGateways

Description

Lists backup gateways owned by an Amazon Web Services account in an Amazon Web Services Region. The returned list is ordered by gateway Amazon Resource Name (ARN).

This operation returns paginated results.

Synopsis

Creating a Request

data ListGateways Source #

See: newListGateways smart constructor.

Constructors

ListGateways' 

Fields

  • maxResults :: Maybe Natural

    The maximum number of gateways to list.

  • nextToken :: Maybe Text

    The next item following a partial list of returned resources. For example, if a request is made to return MaxResults number of resources, NextToken allows you to return more items in your list starting at the location pointed to by the next token.

Instances

Instances details
ToJSON ListGateways Source # 
Instance details

Defined in Amazonka.BackupGateway.ListGateways

ToHeaders ListGateways Source # 
Instance details

Defined in Amazonka.BackupGateway.ListGateways

ToPath ListGateways Source # 
Instance details

Defined in Amazonka.BackupGateway.ListGateways

ToQuery ListGateways Source # 
Instance details

Defined in Amazonka.BackupGateway.ListGateways

AWSPager ListGateways Source # 
Instance details

Defined in Amazonka.BackupGateway.ListGateways

AWSRequest ListGateways Source # 
Instance details

Defined in Amazonka.BackupGateway.ListGateways

Associated Types

type AWSResponse ListGateways #

Generic ListGateways Source # 
Instance details

Defined in Amazonka.BackupGateway.ListGateways

Associated Types

type Rep ListGateways :: Type -> Type #

Read ListGateways Source # 
Instance details

Defined in Amazonka.BackupGateway.ListGateways

Show ListGateways Source # 
Instance details

Defined in Amazonka.BackupGateway.ListGateways

NFData ListGateways Source # 
Instance details

Defined in Amazonka.BackupGateway.ListGateways

Methods

rnf :: ListGateways -> () #

Eq ListGateways Source # 
Instance details

Defined in Amazonka.BackupGateway.ListGateways

Hashable ListGateways Source # 
Instance details

Defined in Amazonka.BackupGateway.ListGateways

type AWSResponse ListGateways Source # 
Instance details

Defined in Amazonka.BackupGateway.ListGateways

type Rep ListGateways Source # 
Instance details

Defined in Amazonka.BackupGateway.ListGateways

type Rep ListGateways = D1 ('MetaData "ListGateways" "Amazonka.BackupGateway.ListGateways" "amazonka-backup-gateway-2.0-Ee3gVOmXMeV2r3uv4sRO9" 'False) (C1 ('MetaCons "ListGateways'" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") '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:maxResults:ListGateways', listGateways_maxResults - The maximum number of gateways to list.

ListGateways, listGateways_nextToken - The next item following a partial list of returned resources. For example, if a request is made to return MaxResults number of resources, NextToken allows you to return more items in your list starting at the location pointed to by the next token.

Request Lenses

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

The maximum number of gateways to list.

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

The next item following a partial list of returned resources. For example, if a request is made to return MaxResults number of resources, NextToken allows you to return more items in your list starting at the location pointed to by the next token.

Destructuring the Response

data ListGatewaysResponse Source #

See: newListGatewaysResponse smart constructor.

Constructors

ListGatewaysResponse' 

Fields

  • gateways :: Maybe [Gateway]

    A list of your gateways.

  • nextToken :: Maybe Text

    The next item following a partial list of returned resources. For example, if a request is made to return maxResults number of resources, NextToken allows you to return more items in your list starting at the location pointed to by the next token.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListGatewaysResponse Source # 
Instance details

Defined in Amazonka.BackupGateway.ListGateways

Associated Types

type Rep ListGatewaysResponse :: Type -> Type #

Read ListGatewaysResponse Source # 
Instance details

Defined in Amazonka.BackupGateway.ListGateways

Show ListGatewaysResponse Source # 
Instance details

Defined in Amazonka.BackupGateway.ListGateways

NFData ListGatewaysResponse Source # 
Instance details

Defined in Amazonka.BackupGateway.ListGateways

Methods

rnf :: ListGatewaysResponse -> () #

Eq ListGatewaysResponse Source # 
Instance details

Defined in Amazonka.BackupGateway.ListGateways

type Rep ListGatewaysResponse Source # 
Instance details

Defined in Amazonka.BackupGateway.ListGateways

type Rep ListGatewaysResponse = D1 ('MetaData "ListGatewaysResponse" "Amazonka.BackupGateway.ListGateways" "amazonka-backup-gateway-2.0-Ee3gVOmXMeV2r3uv4sRO9" 'False) (C1 ('MetaCons "ListGatewaysResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "gateways") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Gateway])) :*: (S1 ('MetaSel ('Just "nextToken") '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 - A list of your gateways.

ListGateways, listGatewaysResponse_nextToken - The next item following a partial list of returned resources. For example, if a request is made to return maxResults number of resources, NextToken allows you to return more items in your list starting at the location pointed to by the next token.

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

Response Lenses

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

The next item following a partial list of returned resources. For example, if a request is made to return maxResults number of resources, NextToken allows you to return more items in your list starting at the location pointed to by the next token.