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.ListGameServers

Description

__This operation is used with the GameLift FleetIQ solution and game server groups.__

Retrieves information on all game servers that are currently active in a specified game server group. You can opt to sort the list by game server age. Use the pagination parameters to retrieve results in a set of sequential segments.

Learn more

GameLift FleetIQ Guide

This operation returns paginated results.

Synopsis

Creating a Request

data ListGameServers Source #

See: newListGameServers smart constructor.

Constructors

ListGameServers' 

Fields

  • 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.

  • sortOrder :: Maybe SortOrder

    Indicates how to sort the returned data based on game server registration timestamp. Use ASCENDING to retrieve oldest game servers first, or use DESCENDING to retrieve newest game servers first. If this parameter is left empty, game servers are returned in no particular order.

  • gameServerGroupName :: Text

    An identifier for the game server group to retrieve a list of game servers from. Use either the name or ARN value.

Instances

Instances details
ToJSON ListGameServers Source # 
Instance details

Defined in Amazonka.GameLift.ListGameServers

ToHeaders ListGameServers Source # 
Instance details

Defined in Amazonka.GameLift.ListGameServers

ToPath ListGameServers Source # 
Instance details

Defined in Amazonka.GameLift.ListGameServers

ToQuery ListGameServers Source # 
Instance details

Defined in Amazonka.GameLift.ListGameServers

AWSPager ListGameServers Source # 
Instance details

Defined in Amazonka.GameLift.ListGameServers

AWSRequest ListGameServers Source # 
Instance details

Defined in Amazonka.GameLift.ListGameServers

Associated Types

type AWSResponse ListGameServers #

Generic ListGameServers Source # 
Instance details

Defined in Amazonka.GameLift.ListGameServers

Associated Types

type Rep ListGameServers :: Type -> Type #

Read ListGameServers Source # 
Instance details

Defined in Amazonka.GameLift.ListGameServers

Show ListGameServers Source # 
Instance details

Defined in Amazonka.GameLift.ListGameServers

NFData ListGameServers Source # 
Instance details

Defined in Amazonka.GameLift.ListGameServers

Methods

rnf :: ListGameServers -> () #

Eq ListGameServers Source # 
Instance details

Defined in Amazonka.GameLift.ListGameServers

Hashable ListGameServers Source # 
Instance details

Defined in Amazonka.GameLift.ListGameServers

type AWSResponse ListGameServers Source # 
Instance details

Defined in Amazonka.GameLift.ListGameServers

type Rep ListGameServers Source # 
Instance details

Defined in Amazonka.GameLift.ListGameServers

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

newListGameServers Source #

Create a value of ListGameServers 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:ListGameServers', listGameServers_limit - The maximum number of results to return. Use this parameter with NextToken to get results as a set of sequential pages.

ListGameServers, listGameServers_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.

$sel:sortOrder:ListGameServers', listGameServers_sortOrder - Indicates how to sort the returned data based on game server registration timestamp. Use ASCENDING to retrieve oldest game servers first, or use DESCENDING to retrieve newest game servers first. If this parameter is left empty, game servers are returned in no particular order.

ListGameServers, listGameServers_gameServerGroupName - An identifier for the game server group to retrieve a list of game servers from. Use either the name or ARN value.

Request Lenses

listGameServers_limit :: Lens' ListGameServers (Maybe Natural) Source #

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

listGameServers_nextToken :: Lens' ListGameServers (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.

listGameServers_sortOrder :: Lens' ListGameServers (Maybe SortOrder) Source #

Indicates how to sort the returned data based on game server registration timestamp. Use ASCENDING to retrieve oldest game servers first, or use DESCENDING to retrieve newest game servers first. If this parameter is left empty, game servers are returned in no particular order.

listGameServers_gameServerGroupName :: Lens' ListGameServers Text Source #

An identifier for the game server group to retrieve a list of game servers from. Use either the name or ARN value.

Destructuring the Response

data ListGameServersResponse Source #

See: newListGameServersResponse smart constructor.

Constructors

ListGameServersResponse' 

Fields

  • gameServers :: Maybe [GameServer]

    A collection of game server objects that match the request.

  • 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 ListGameServersResponse Source # 
Instance details

Defined in Amazonka.GameLift.ListGameServers

Associated Types

type Rep ListGameServersResponse :: Type -> Type #

Read ListGameServersResponse Source # 
Instance details

Defined in Amazonka.GameLift.ListGameServers

Show ListGameServersResponse Source # 
Instance details

Defined in Amazonka.GameLift.ListGameServers

NFData ListGameServersResponse Source # 
Instance details

Defined in Amazonka.GameLift.ListGameServers

Methods

rnf :: ListGameServersResponse -> () #

Eq ListGameServersResponse Source # 
Instance details

Defined in Amazonka.GameLift.ListGameServers

type Rep ListGameServersResponse Source # 
Instance details

Defined in Amazonka.GameLift.ListGameServers

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

newListGameServersResponse Source #

Create a value of ListGameServersResponse 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:gameServers:ListGameServersResponse', listGameServersResponse_gameServers - A collection of game server objects that match the request.

ListGameServers, listGameServersResponse_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:ListGameServersResponse', listGameServersResponse_httpStatus - The response's http status code.

Response Lenses

listGameServersResponse_gameServers :: Lens' ListGameServersResponse (Maybe [GameServer]) Source #

A collection of game server objects that match the request.

listGameServersResponse_nextToken :: Lens' ListGameServersResponse (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.