amazonka-gamelift-2.0: Amazon GameLift 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.GameLift.ListLocations

Description

Lists all custom and Amazon Web Services locations.

This operation returns paginated results.

Synopsis

Creating a Request

data ListLocations Source #

See: newListLocations smart constructor.

Constructors

ListLocations' 

Fields

  • filters :: Maybe (NonEmpty LocationFilter)

    Filters the list for AWS or CUSTOM locations.

  • limit :: Maybe Natural

    The maximum number of results to return. Use this parameter with NextToken to get results as a set of sequential pages.

  • nextToken :: Maybe Text

    A token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this operation. To start at the beginning of the result set, do not specify a value.

Instances

Instances details
ToJSON ListLocations Source # 
Instance details

Defined in Amazonka.GameLift.ListLocations

ToHeaders ListLocations Source # 
Instance details

Defined in Amazonka.GameLift.ListLocations

ToPath ListLocations Source # 
Instance details

Defined in Amazonka.GameLift.ListLocations

ToQuery ListLocations Source # 
Instance details

Defined in Amazonka.GameLift.ListLocations

AWSPager ListLocations Source # 
Instance details

Defined in Amazonka.GameLift.ListLocations

AWSRequest ListLocations Source # 
Instance details

Defined in Amazonka.GameLift.ListLocations

Associated Types

type AWSResponse ListLocations #

Generic ListLocations Source # 
Instance details

Defined in Amazonka.GameLift.ListLocations

Associated Types

type Rep ListLocations :: Type -> Type #

Read ListLocations Source # 
Instance details

Defined in Amazonka.GameLift.ListLocations

Show ListLocations Source # 
Instance details

Defined in Amazonka.GameLift.ListLocations

NFData ListLocations Source # 
Instance details

Defined in Amazonka.GameLift.ListLocations

Methods

rnf :: ListLocations -> () #

Eq ListLocations Source # 
Instance details

Defined in Amazonka.GameLift.ListLocations

Hashable ListLocations Source # 
Instance details

Defined in Amazonka.GameLift.ListLocations

type AWSResponse ListLocations Source # 
Instance details

Defined in Amazonka.GameLift.ListLocations

type Rep ListLocations Source # 
Instance details

Defined in Amazonka.GameLift.ListLocations

type Rep ListLocations = D1 ('MetaData "ListLocations" "Amazonka.GameLift.ListLocations" "amazonka-gamelift-2.0-IjhNQby9jLV6gj30IrgsyK" 'False) (C1 ('MetaCons "ListLocations'" 'PrefixI 'True) (S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty LocationFilter))) :*: (S1 ('MetaSel ('Just "limit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newListLocations :: ListLocations Source #

Create a value of ListLocations 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:filters:ListLocations', listLocations_filters - Filters the list for AWS or CUSTOM locations.

$sel:limit:ListLocations', listLocations_limit - The maximum number of results to return. Use this parameter with NextToken to get results as a set of sequential pages.

ListLocations, listLocations_nextToken - A token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this operation. To start at the beginning of the result set, do not specify a value.

Request Lenses

listLocations_filters :: Lens' ListLocations (Maybe (NonEmpty LocationFilter)) Source #

Filters the list for AWS or CUSTOM locations.

listLocations_limit :: Lens' ListLocations (Maybe Natural) Source #

The maximum number of results to return. Use this parameter with NextToken to get results as a set of sequential pages.

listLocations_nextToken :: Lens' ListLocations (Maybe Text) Source #

A token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this operation. To start at the beginning of the result set, do not specify a value.

Destructuring the Response

data ListLocationsResponse Source #

See: newListLocationsResponse smart constructor.

Constructors

ListLocationsResponse' 

Fields

  • locations :: Maybe [LocationModel]

    A collection of locations.

  • nextToken :: Maybe Text

    A token that indicates where to resume retrieving results on the next call to this operation. If no token is returned, these results represent the end of the list.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListLocationsResponse Source # 
Instance details

Defined in Amazonka.GameLift.ListLocations

Associated Types

type Rep ListLocationsResponse :: Type -> Type #

Read ListLocationsResponse Source # 
Instance details

Defined in Amazonka.GameLift.ListLocations

Show ListLocationsResponse Source # 
Instance details

Defined in Amazonka.GameLift.ListLocations

NFData ListLocationsResponse Source # 
Instance details

Defined in Amazonka.GameLift.ListLocations

Methods

rnf :: ListLocationsResponse -> () #

Eq ListLocationsResponse Source # 
Instance details

Defined in Amazonka.GameLift.ListLocations

type Rep ListLocationsResponse Source # 
Instance details

Defined in Amazonka.GameLift.ListLocations

type Rep ListLocationsResponse = D1 ('MetaData "ListLocationsResponse" "Amazonka.GameLift.ListLocations" "amazonka-gamelift-2.0-IjhNQby9jLV6gj30IrgsyK" 'False) (C1 ('MetaCons "ListLocationsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "locations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [LocationModel])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListLocationsResponse Source #

Create a value of ListLocationsResponse 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:locations:ListLocationsResponse', listLocationsResponse_locations - A collection of locations.

ListLocations, listLocationsResponse_nextToken - A token that indicates where to resume retrieving results on the next call to this operation. If no token is returned, these results represent the end of the list.

$sel:httpStatus:ListLocationsResponse', listLocationsResponse_httpStatus - The response's http status code.

Response Lenses

listLocationsResponse_nextToken :: Lens' ListLocationsResponse (Maybe Text) Source #

A token that indicates where to resume retrieving results on the next call to this operation. If no token is returned, these results represent the end of the list.