amazonka-gamesparks-2.0: Amazon GameSparks 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.GamesParks.ListGames

Description

Gets a paginated list of games.

This operation returns paginated results.

Synopsis

Creating a Request

data ListGames Source #

See: newListGames smart constructor.

Constructors

ListGames' 

Fields

  • maxResults :: 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

    The 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
ToHeaders ListGames Source # 
Instance details

Defined in Amazonka.GamesParks.ListGames

Methods

toHeaders :: ListGames -> [Header] #

ToPath ListGames Source # 
Instance details

Defined in Amazonka.GamesParks.ListGames

ToQuery ListGames Source # 
Instance details

Defined in Amazonka.GamesParks.ListGames

AWSPager ListGames Source # 
Instance details

Defined in Amazonka.GamesParks.ListGames

AWSRequest ListGames Source # 
Instance details

Defined in Amazonka.GamesParks.ListGames

Associated Types

type AWSResponse ListGames #

Generic ListGames Source # 
Instance details

Defined in Amazonka.GamesParks.ListGames

Associated Types

type Rep ListGames :: Type -> Type #

Read ListGames Source # 
Instance details

Defined in Amazonka.GamesParks.ListGames

Show ListGames Source # 
Instance details

Defined in Amazonka.GamesParks.ListGames

NFData ListGames Source # 
Instance details

Defined in Amazonka.GamesParks.ListGames

Methods

rnf :: ListGames -> () #

Eq ListGames Source # 
Instance details

Defined in Amazonka.GamesParks.ListGames

Hashable ListGames Source # 
Instance details

Defined in Amazonka.GamesParks.ListGames

type AWSResponse ListGames Source # 
Instance details

Defined in Amazonka.GamesParks.ListGames

type Rep ListGames Source # 
Instance details

Defined in Amazonka.GamesParks.ListGames

type Rep ListGames = D1 ('MetaData "ListGames" "Amazonka.GamesParks.ListGames" "amazonka-gamesparks-2.0-Lk18zLarGCU67rMOwLlDG5" 'False) (C1 ('MetaCons "ListGames'" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newListGames :: ListGames Source #

Create a value of ListGames 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:ListGames', listGames_maxResults - The maximum number of results to return.

Use this parameter with NextToken to get results as a set of sequential pages.

ListGames, listGames_nextToken - The 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

listGames_maxResults :: Lens' ListGames (Maybe Natural) Source #

The maximum number of results to return.

Use this parameter with NextToken to get results as a set of sequential pages.

listGames_nextToken :: Lens' ListGames (Maybe Text) Source #

The 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 ListGamesResponse Source #

See: newListGamesResponse smart constructor.

Constructors

ListGamesResponse' 

Fields

  • games :: Maybe [GameSummary]

    The list of games.

  • nextToken :: Maybe Text

    The token that indicates the start of the next sequential page of results.

    Use this value when making the next call to this operation to continue where the last one finished.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListGamesResponse Source # 
Instance details

Defined in Amazonka.GamesParks.ListGames

Associated Types

type Rep ListGamesResponse :: Type -> Type #

Read ListGamesResponse Source # 
Instance details

Defined in Amazonka.GamesParks.ListGames

Show ListGamesResponse Source # 
Instance details

Defined in Amazonka.GamesParks.ListGames

NFData ListGamesResponse Source # 
Instance details

Defined in Amazonka.GamesParks.ListGames

Methods

rnf :: ListGamesResponse -> () #

Eq ListGamesResponse Source # 
Instance details

Defined in Amazonka.GamesParks.ListGames

type Rep ListGamesResponse Source # 
Instance details

Defined in Amazonka.GamesParks.ListGames

type Rep ListGamesResponse = D1 ('MetaData "ListGamesResponse" "Amazonka.GamesParks.ListGames" "amazonka-gamesparks-2.0-Lk18zLarGCU67rMOwLlDG5" 'False) (C1 ('MetaCons "ListGamesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "games") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [GameSummary])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListGamesResponse Source #

Create a value of ListGamesResponse 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:games:ListGamesResponse', listGamesResponse_games - The list of games.

ListGames, listGamesResponse_nextToken - The token that indicates the start of the next sequential page of results.

Use this value when making the next call to this operation to continue where the last one finished.

$sel:httpStatus:ListGamesResponse', listGamesResponse_httpStatus - The response's http status code.

Response Lenses

listGamesResponse_nextToken :: Lens' ListGamesResponse (Maybe Text) Source #

The token that indicates the start of the next sequential page of results.

Use this value when making the next call to this operation to continue where the last one finished.

listGamesResponse_httpStatus :: Lens' ListGamesResponse Int Source #

The response's http status code.