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.Types.GameServer

Description

 
Synopsis

Documentation

data GameServer Source #

__This data type is used with the GameLift FleetIQ and game server groups.__

Properties describing a game server that is running on an instance in a GameServerGroup.

A game server is created by a successful call to RegisterGameServer and deleted by calling DeregisterGameServer. A game server is claimed to host a game session by calling ClaimGameServer.

Related actions

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

See: newGameServer smart constructor.

Constructors

GameServer' 

Fields

  • instanceId :: Maybe Text

    The unique identifier for the instance where the game server is running. This ID is available in the instance metadata. EC2 instance IDs use a 17-character format, for example: i-1234567890abcdef0.

  • lastClaimTime :: Maybe POSIX

    Timestamp that indicates the last time the game server was claimed with a ClaimGameServer request. The format is a number expressed in Unix time as milliseconds (for example "1469498468.057"). This value is used to calculate when a claimed game server's status should revert to null.

  • gameServerGroupName :: Maybe Text

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

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

  • claimStatus :: Maybe GameServerClaimStatus

    Indicates when an available game server has been reserved for gameplay but has not yet started hosting a game. Once it is claimed, the game server remains in CLAIMED status for a maximum of one minute. During this time, game clients connect to the game server to start the game and trigger the game server to update its utilization status. After one minute, the game server claim status reverts to null.

  • gameServerId :: Maybe Text

    A custom string that uniquely identifies the game server. Game server IDs are developer-defined and are unique across all game server groups in an AWS account.

  • utilizationStatus :: Maybe GameServerUtilizationStatus

    Indicates whether the game server is currently available for new games or is busy. Possible statuses include:

    • AVAILABLE - The game server is available to be claimed. A game server that has been claimed remains in this status until it reports game hosting activity.
    • UTILIZED - The game server is currently hosting a game session with players.
  • registrationTime :: Maybe POSIX

    Timestamp that indicates when the game server was created with a RegisterGameServer request. The format is a number expressed in Unix time as milliseconds (for example "1469498468.057").

  • lastHealthCheckTime :: Maybe POSIX

    Timestamp that indicates the last time the game server was updated with health status using an UpdateGameServer request. The format is a number expressed in Unix time as milliseconds (for example "1469498468.057"). After game server registration, this property is only changed when a game server update specifies a health check value.

  • connectionInfo :: Maybe Text

    The port and IP address that must be used to establish a client connection to the game server.

  • gameServerGroupArn :: Maybe Text

    The ARN identifier for the game server group where the game server is located.

Instances

Instances details
Eq GameServer Source # 
Instance details

Defined in Amazonka.GameLift.Types.GameServer

Read GameServer Source # 
Instance details

Defined in Amazonka.GameLift.Types.GameServer

Show GameServer Source # 
Instance details

Defined in Amazonka.GameLift.Types.GameServer

Generic GameServer Source # 
Instance details

Defined in Amazonka.GameLift.Types.GameServer

Associated Types

type Rep GameServer :: Type -> Type #

NFData GameServer Source # 
Instance details

Defined in Amazonka.GameLift.Types.GameServer

Methods

rnf :: GameServer -> () #

Hashable GameServer Source # 
Instance details

Defined in Amazonka.GameLift.Types.GameServer

FromJSON GameServer Source # 
Instance details

Defined in Amazonka.GameLift.Types.GameServer

type Rep GameServer Source # 
Instance details

Defined in Amazonka.GameLift.Types.GameServer

type Rep GameServer = D1 ('MetaData "GameServer" "Amazonka.GameLift.Types.GameServer" "libZSservicesZSamazonka-gameliftZSamazonka-gamelift" 'False) (C1 ('MetaCons "GameServer'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "instanceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "lastClaimTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))) :*: (S1 ('MetaSel ('Just "gameServerGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "gameServerData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "claimStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe GameServerClaimStatus))))) :*: ((S1 ('MetaSel ('Just "gameServerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "utilizationStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe GameServerUtilizationStatus)) :*: S1 ('MetaSel ('Just "registrationTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)))) :*: (S1 ('MetaSel ('Just "lastHealthCheckTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: (S1 ('MetaSel ('Just "connectionInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "gameServerGroupArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))))

newGameServer :: GameServer Source #

Create a value of GameServer 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:instanceId:GameServer', gameServer_instanceId - The unique identifier for the instance where the game server is running. This ID is available in the instance metadata. EC2 instance IDs use a 17-character format, for example: i-1234567890abcdef0.

$sel:lastClaimTime:GameServer', gameServer_lastClaimTime - Timestamp that indicates the last time the game server was claimed with a ClaimGameServer request. The format is a number expressed in Unix time as milliseconds (for example "1469498468.057"). This value is used to calculate when a claimed game server's status should revert to null.

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

$sel:gameServerData:GameServer', gameServer_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:claimStatus:GameServer', gameServer_claimStatus - Indicates when an available game server has been reserved for gameplay but has not yet started hosting a game. Once it is claimed, the game server remains in CLAIMED status for a maximum of one minute. During this time, game clients connect to the game server to start the game and trigger the game server to update its utilization status. After one minute, the game server claim status reverts to null.

$sel:gameServerId:GameServer', gameServer_gameServerId - A custom string that uniquely identifies the game server. Game server IDs are developer-defined and are unique across all game server groups in an AWS account.

$sel:utilizationStatus:GameServer', gameServer_utilizationStatus - Indicates whether the game server is currently available for new games or is busy. Possible statuses include:

  • AVAILABLE - The game server is available to be claimed. A game server that has been claimed remains in this status until it reports game hosting activity.
  • UTILIZED - The game server is currently hosting a game session with players.

$sel:registrationTime:GameServer', gameServer_registrationTime - Timestamp that indicates when the game server was created with a RegisterGameServer request. The format is a number expressed in Unix time as milliseconds (for example "1469498468.057").

$sel:lastHealthCheckTime:GameServer', gameServer_lastHealthCheckTime - Timestamp that indicates the last time the game server was updated with health status using an UpdateGameServer request. The format is a number expressed in Unix time as milliseconds (for example "1469498468.057"). After game server registration, this property is only changed when a game server update specifies a health check value.

$sel:connectionInfo:GameServer', gameServer_connectionInfo - The port and IP address that must be used to establish a client connection to the game server.

$sel:gameServerGroupArn:GameServer', gameServer_gameServerGroupArn - The ARN identifier for the game server group where the game server is located.

gameServer_instanceId :: Lens' GameServer (Maybe Text) Source #

The unique identifier for the instance where the game server is running. This ID is available in the instance metadata. EC2 instance IDs use a 17-character format, for example: i-1234567890abcdef0.

gameServer_lastClaimTime :: Lens' GameServer (Maybe UTCTime) Source #

Timestamp that indicates the last time the game server was claimed with a ClaimGameServer request. The format is a number expressed in Unix time as milliseconds (for example "1469498468.057"). This value is used to calculate when a claimed game server's status should revert to null.

gameServer_gameServerGroupName :: Lens' GameServer (Maybe Text) Source #

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

gameServer_gameServerData :: Lens' GameServer (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.

gameServer_claimStatus :: Lens' GameServer (Maybe GameServerClaimStatus) Source #

Indicates when an available game server has been reserved for gameplay but has not yet started hosting a game. Once it is claimed, the game server remains in CLAIMED status for a maximum of one minute. During this time, game clients connect to the game server to start the game and trigger the game server to update its utilization status. After one minute, the game server claim status reverts to null.

gameServer_gameServerId :: Lens' GameServer (Maybe Text) Source #

A custom string that uniquely identifies the game server. Game server IDs are developer-defined and are unique across all game server groups in an AWS account.

gameServer_utilizationStatus :: Lens' GameServer (Maybe GameServerUtilizationStatus) Source #

Indicates whether the game server is currently available for new games or is busy. Possible statuses include:

  • AVAILABLE - The game server is available to be claimed. A game server that has been claimed remains in this status until it reports game hosting activity.
  • UTILIZED - The game server is currently hosting a game session with players.

gameServer_registrationTime :: Lens' GameServer (Maybe UTCTime) Source #

Timestamp that indicates when the game server was created with a RegisterGameServer request. The format is a number expressed in Unix time as milliseconds (for example "1469498468.057").

gameServer_lastHealthCheckTime :: Lens' GameServer (Maybe UTCTime) Source #

Timestamp that indicates the last time the game server was updated with health status using an UpdateGameServer request. The format is a number expressed in Unix time as milliseconds (for example "1469498468.057"). After game server registration, this property is only changed when a game server update specifies a health check value.

gameServer_connectionInfo :: Lens' GameServer (Maybe Text) Source #

The port and IP address that must be used to establish a client connection to the game server.

gameServer_gameServerGroupArn :: Lens' GameServer (Maybe Text) Source #

The ARN identifier for the game server group where the game server is located.