PlayerSession
¶
Source code in docs_src/capo_gamelift/types/player_session.py
creation_time
instance-attribute
¶
creation_time: NotRequired[Timestamp]
A time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (for example "1469498468.057").
dns_name
instance-attribute
¶
dns_name: NotRequired[DnsName]
The DNS identifier assigned to the instance that is running the game session. Values have the following format:
-
TLS-enabled fleets:
.. .amazongamelift.com -
Non-TLS-enabled fleets:
ec2-. (See Amazon EC2 Instance IP Addressing.).compute.amazonaws.com
When connecting to a game session that is running on a TLS-enabled fleet, you must use the DNS name, not the IP address.
fleet_arn
instance-attribute
¶
fleet_arn: NotRequired[FleetArn]
The Amazon Resource Name (ARN) associated with the GameLift fleet that the player's game session is running on.
fleet_id
instance-attribute
¶
fleet_id: NotRequired[FleetId]
A unique identifier for the fleet that the player's game session is running on.
game_session_id
instance-attribute
¶
game_session_id: NotRequired[NonZeroAndMaxString]
An identifier for the game session that is unique across all regions that the player session is connected to. The value is always a full ARN in the following format: For Home Region game session - arn:aws:gamelift:. For Remote Location game session - arn:aws:gamelift:.
ip_address
instance-attribute
¶
ip_address: NotRequired[IpAddress]
The IP address of the game session. To connect to a Amazon GameLift Servers game server, an app needs both the IP address and port number.
player_data
instance-attribute
¶
player_data: NotRequired[PlayerData]
Developer-defined information related to a player. Amazon GameLift Servers does not use this data, so it can be formatted as needed for use in the game.
player_id
instance-attribute
¶
player_id: NotRequired[PlayerId]
A unique identifier for a player that is associated with this player session.
player_session_id
instance-attribute
¶
player_session_id: NotRequired[PlayerSessionId]
A unique identifier for a player session.
port
instance-attribute
¶
port: NotRequired[PortNumber]
Port number for the game session. To connect to a Amazon GameLift Servers server process, an app needs both the IP address and port number.
status
instance-attribute
¶
status: NotRequired[PlayerSessionStatus]
Current status of the player session.
Possible player session statuses include the following:
-
RESERVED -- The player session request has been received, but the player has not yet connected to the server process and/or been validated.
-
ACTIVE -- The player has been validated by the server process and is currently connected.
-
COMPLETED -- The player connection has been dropped.
-
TIMEDOUT -- A player session request was received, but the player did not connect and/or was not validated within the timeout limit (60 seconds).