libZSservicesZSamazonka-gameliftZSamazonka-gamelift
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.GameLift.UpdateGameServer

Description

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

Updates information about a registered game server to help GameLift FleetIQ to track game server availability. This operation is called by a game server process that is running on an instance in a game server group.

Use this operation to update the following types of game server information. You can make all three types of updates in the same request:

  • To update the game server's utilization status, identify the game server and game server group and specify the current utilization status. Use this status to identify when game servers are currently hosting games and when they are available to be claimed.
  • To report health status, identify the game server and game server group and set health check to HEALTHY. If a game server does not report health status for a certain length of time, the game server is no longer considered healthy. As a result, it will be eventually deregistered from the game server group to avoid affecting utilization metrics. The best practice is to report health every 60 seconds.
  • To change game server metadata, provide updated game server data.

Once a game server is successfully updated, the relevant statuses and timestamps are updated.

Learn more

GameLift FleetIQ Guide

Related actions

RegisterGameServer | ListGameServers | ClaimGameServer | DescribeGameServer | UpdateGameServer | DeregisterGameServer | All APIs by task

Synopsis

Creating a Request

data UpdateGameServer Source #

See: newUpdateGameServer smart constructor.

Constructors

UpdateGameServer' 

Fields

  • healthCheck :: Maybe GameServerHealthCheck

    Indicates health status of the game server. A request that includes this parameter updates the game server's LastHealthCheckTime timestamp.

  • gameServerData :: Maybe Text

    A set of custom game server properties, formatted as a single string value. This data is passed to a game client or service when it requests information on game servers using ListGameServers or ClaimGameServer.

  • utilizationStatus :: Maybe GameServerUtilizationStatus

    Indicates whether the game server is available or is currently hosting gameplay.

  • gameServerGroupName :: Text

    A unique identifier for the game server group where the game server is running. Use either the GameServerGroup name or ARN value.

  • gameServerId :: Text

    A custom string that uniquely identifies the game server to update.

Instances

Instances details
Eq UpdateGameServer Source # 
Instance details

Defined in Amazonka.GameLift.UpdateGameServer

Read UpdateGameServer Source # 
Instance details

Defined in Amazonka.GameLift.UpdateGameServer

Show UpdateGameServer Source # 
Instance details

Defined in Amazonka.GameLift.UpdateGameServer

Generic UpdateGameServer Source # 
Instance details

Defined in Amazonka.GameLift.UpdateGameServer

Associated Types

type Rep UpdateGameServer :: Type -> Type #

NFData UpdateGameServer Source # 
Instance details

Defined in Amazonka.GameLift.UpdateGameServer

Methods

rnf :: UpdateGameServer -> () #

Hashable UpdateGameServer Source # 
Instance details

Defined in Amazonka.GameLift.UpdateGameServer

ToJSON UpdateGameServer Source # 
Instance details

Defined in Amazonka.GameLift.UpdateGameServer

AWSRequest UpdateGameServer Source # 
Instance details

Defined in Amazonka.GameLift.UpdateGameServer

Associated Types

type AWSResponse UpdateGameServer #

ToHeaders UpdateGameServer Source # 
Instance details

Defined in Amazonka.GameLift.UpdateGameServer

ToPath UpdateGameServer Source # 
Instance details

Defined in Amazonka.GameLift.UpdateGameServer

ToQuery UpdateGameServer Source # 
Instance details

Defined in Amazonka.GameLift.UpdateGameServer

type Rep UpdateGameServer Source # 
Instance details

Defined in Amazonka.GameLift.UpdateGameServer

type Rep UpdateGameServer = D1 ('MetaData "UpdateGameServer" "Amazonka.GameLift.UpdateGameServer" "libZSservicesZSamazonka-gameliftZSamazonka-gamelift" 'False) (C1 ('MetaCons "UpdateGameServer'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "healthCheck") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe GameServerHealthCheck)) :*: S1 ('MetaSel ('Just "gameServerData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "utilizationStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe GameServerUtilizationStatus)) :*: (S1 ('MetaSel ('Just "gameServerGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "gameServerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse UpdateGameServer Source # 
Instance details

Defined in Amazonka.GameLift.UpdateGameServer

newUpdateGameServer Source #

Create a value of UpdateGameServer 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:healthCheck:UpdateGameServer', updateGameServer_healthCheck - Indicates health status of the game server. A request that includes this parameter updates the game server's LastHealthCheckTime timestamp.

$sel:gameServerData:UpdateGameServer', updateGameServer_gameServerData - A set of custom game server properties, formatted as a single string value. This data is passed to a game client or service when it requests information on game servers using ListGameServers or ClaimGameServer.

$sel:utilizationStatus:UpdateGameServer', updateGameServer_utilizationStatus - Indicates whether the game server is available or is currently hosting gameplay.

$sel:gameServerGroupName:UpdateGameServer', updateGameServer_gameServerGroupName - A unique identifier for the game server group where the game server is running. Use either the GameServerGroup name or ARN value.

$sel:gameServerId:UpdateGameServer', updateGameServer_gameServerId - A custom string that uniquely identifies the game server to update.

Request Lenses

updateGameServer_healthCheck :: Lens' UpdateGameServer (Maybe GameServerHealthCheck) Source #

Indicates health status of the game server. A request that includes this parameter updates the game server's LastHealthCheckTime timestamp.

updateGameServer_gameServerData :: Lens' UpdateGameServer (Maybe Text) Source #

A set of custom game server properties, formatted as a single string value. This data is passed to a game client or service when it requests information on game servers using ListGameServers or ClaimGameServer.

updateGameServer_utilizationStatus :: Lens' UpdateGameServer (Maybe GameServerUtilizationStatus) Source #

Indicates whether the game server is available or is currently hosting gameplay.

updateGameServer_gameServerGroupName :: Lens' UpdateGameServer Text Source #

A unique identifier for the game server group where the game server is running. Use either the GameServerGroup name or ARN value.

updateGameServer_gameServerId :: Lens' UpdateGameServer Text Source #

A custom string that uniquely identifies the game server to update.

Destructuring the Response

data UpdateGameServerResponse Source #

See: newUpdateGameServerResponse smart constructor.

Constructors

UpdateGameServerResponse' 

Fields

Instances

Instances details
Eq UpdateGameServerResponse Source # 
Instance details

Defined in Amazonka.GameLift.UpdateGameServer

Read UpdateGameServerResponse Source # 
Instance details

Defined in Amazonka.GameLift.UpdateGameServer

Show UpdateGameServerResponse Source # 
Instance details

Defined in Amazonka.GameLift.UpdateGameServer

Generic UpdateGameServerResponse Source # 
Instance details

Defined in Amazonka.GameLift.UpdateGameServer

Associated Types

type Rep UpdateGameServerResponse :: Type -> Type #

NFData UpdateGameServerResponse Source # 
Instance details

Defined in Amazonka.GameLift.UpdateGameServer

type Rep UpdateGameServerResponse Source # 
Instance details

Defined in Amazonka.GameLift.UpdateGameServer

type Rep UpdateGameServerResponse = D1 ('MetaData "UpdateGameServerResponse" "Amazonka.GameLift.UpdateGameServer" "libZSservicesZSamazonka-gameliftZSamazonka-gamelift" 'False) (C1 ('MetaCons "UpdateGameServerResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "gameServer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe GameServer)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newUpdateGameServerResponse Source #

Create a value of UpdateGameServerResponse 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:gameServer:UpdateGameServerResponse', updateGameServerResponse_gameServer - Object that describes the newly updated game server.

$sel:httpStatus:UpdateGameServerResponse', updateGameServerResponse_httpStatus - The response's http status code.

Response Lenses

updateGameServerResponse_gameServer :: Lens' UpdateGameServerResponse (Maybe GameServer) Source #

Object that describes the newly updated game server.