Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data GameServer = GameServer' {
- instanceId :: Maybe Text
- lastClaimTime :: Maybe POSIX
- gameServerGroupName :: Maybe Text
- gameServerData :: Maybe Text
- claimStatus :: Maybe GameServerClaimStatus
- gameServerId :: Maybe Text
- utilizationStatus :: Maybe GameServerUtilizationStatus
- registrationTime :: Maybe POSIX
- lastHealthCheckTime :: Maybe POSIX
- connectionInfo :: Maybe Text
- gameServerGroupArn :: Maybe Text
- newGameServer :: GameServer
- gameServer_instanceId :: Lens' GameServer (Maybe Text)
- gameServer_lastClaimTime :: Lens' GameServer (Maybe UTCTime)
- gameServer_gameServerGroupName :: Lens' GameServer (Maybe Text)
- gameServer_gameServerData :: Lens' GameServer (Maybe Text)
- gameServer_claimStatus :: Lens' GameServer (Maybe GameServerClaimStatus)
- gameServer_gameServerId :: Lens' GameServer (Maybe Text)
- gameServer_utilizationStatus :: Lens' GameServer (Maybe GameServerUtilizationStatus)
- gameServer_registrationTime :: Lens' GameServer (Maybe UTCTime)
- gameServer_lastHealthCheckTime :: Lens' GameServer (Maybe UTCTime)
- gameServer_connectionInfo :: Lens' GameServer (Maybe Text)
- gameServer_gameServerGroupArn :: Lens' GameServer (Maybe Text)
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.
GameServer' | |
|
Instances
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.