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