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.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 game server group.

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.

See: newGameServer smart constructor.

Constructors

GameServer' 

Fields

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

  • connectionInfo :: Maybe Text

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

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

  • gameServerGroupArn :: Maybe Text

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

  • gameServerGroupName :: Maybe Text

    A unique identifier for the game server group where the game server is running.

  • 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 Amazon Web Services account.

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

  • lastHealthCheckTime :: Maybe POSIX

    Timestamp that indicates the last time the game server was updated with health status. 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.

  • registrationTime :: Maybe POSIX

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

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

Instances

Instances details
FromJSON 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 #

Read GameServer Source # 
Instance details

Defined in Amazonka.GameLift.Types.GameServer

Show GameServer Source # 
Instance details

Defined in Amazonka.GameLift.Types.GameServer

NFData GameServer Source # 
Instance details

Defined in Amazonka.GameLift.Types.GameServer

Methods

rnf :: GameServer -> () #

Eq GameServer Source # 
Instance details

Defined in Amazonka.GameLift.Types.GameServer

Hashable 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" "amazonka-gamelift-2.0-IjhNQby9jLV6gj30IrgsyK" 'False) (C1 ('MetaCons "GameServer'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "claimStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe GameServerClaimStatus)) :*: S1 ('MetaSel ('Just "connectionInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "gameServerData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "gameServerGroupArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "gameServerGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "gameServerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "instanceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "lastClaimTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)))) :*: (S1 ('MetaSel ('Just "lastHealthCheckTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: (S1 ('MetaSel ('Just "registrationTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "utilizationStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe GameServerUtilizationStatus)))))))

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: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:connectionInfo:GameServer', gameServer_connectionInfo - The port and IP address that must be used to establish a client connection to the game server.

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

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

$sel:gameServerGroupName:GameServer', gameServer_gameServerGroupName - A unique identifier for the game server group where the game server is running.

$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 Amazon Web Services account.

$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. 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:lastHealthCheckTime:GameServer', gameServer_lastHealthCheckTime - Timestamp that indicates the last time the game server was updated with health status. 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:registrationTime:GameServer', gameServer_registrationTime - Timestamp that indicates when the game server registered. The format is a number expressed in Unix time as milliseconds (for example "1469498468.057").

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

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

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

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

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

A unique identifier for the game server group where the game server is running.

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 Amazon Web Services account.

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. 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_lastHealthCheckTime :: Lens' GameServer (Maybe UTCTime) Source #

Timestamp that indicates the last time the game server was updated with health status. 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_registrationTime :: Lens' GameServer (Maybe UTCTime) Source #

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

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.