aws.gamelift.describe_player_sessions
Example SQL Queries
SELECT * FROMaws.gamelift.describe_player_sessions;Description
Retrieves properties for one or more player sessions.
This action can be used in the following ways:
To retrieve a specific player session, provide the player session ID only.
To retrieve all player sessions in a game session, provide the game session ID only.
To retrieve all player sessions for a specific player, provide a player ID only.
To request player sessions, specify either a player session ID, game session ID, or player ID. You can filter this request by player session status. If you provide a specific PlayerSessionId or PlayerId, Amazon GameLift ignores the filter criteria. Use the pagination parameters to retrieve results as a set of sequential pages.
If successful, a PlayerSession object is returned for each session that matches the request.
Related actions
Table Definition
| Column Name | Column Data Type |
|---|---|
| game_session_id Input Column A unique identifier for the game session that the player session is connected to. | VARCHAR |
| player_id Input Column A unique identifier for a player that is associated with this player session. | VARCHAR |
| player_session_id Input Column A unique identifier for a player session. | VARCHAR |
| player_session_status_filter Input Column Player session status to filter results on. Note that when a PlayerSessionId or PlayerId is provided in a DescribePlayerSessions request, then the PlayerSessionStatusFilter has no effect on the response. Possible player session statuses include the following:
| VARCHAR |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| _aws_region Input Column The AWS region to use. | VARCHAR |
| creation_time A time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (for example "1469498468.057"). | TIMESTAMP_S |
| dns_name The DNS identifier assigned to the instance that is running the game session. Values have the following format:
When connecting to a game session that is running on a TLS-enabled fleet, you must use the DNS name, not the IP address. | VARCHAR |
| fleet_arn The Amazon Resource Name (ARN) associated with the GameLift fleet that the player's game session is running on. | VARCHAR |
| fleet_id A unique identifier for the fleet that the player's game session is running on. | VARCHAR |
| ip_address The IP address of the game session. To connect to a Amazon GameLift game server, an app needs both the IP address and port number. | VARCHAR |
| player_data Developer-defined information related to a player. Amazon GameLift does not use this data, so it can be formatted as needed for use in the game. | VARCHAR |
| port Port number for the game session. To connect to a Amazon GameLift server process, an app needs both the IP address and port number. | BIGINT |
| status Current status of the player session. Possible player session statuses include the following:
| VARCHAR |
| termination_time A time stamp indicating when this data object was terminated. Format is a number expressed in Unix time as milliseconds (for example "1469498468.057"). | TIMESTAMP_S |