{ "$schema": "https://json-structure.org/meta/core/v0/#", "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-gamelift/refs/heads/main/json-structure/gamelift-player-session-structure.json", "name": "PlayerSession", "description": "

Represents a player session. Player sessions are created either for a specific game session, or as part of a game session placement or matchmaking request. A player session can represents a reserved player slot in a game session (when status is RESERVED) or actual player activity in a game session (when status is ACTIVE). A player session object, including player data, is automatically passed to a game session when the player connects to the game session and is validated. After the game session ends, player sessions information is retained for 30 days and then removed.

Related actions

All APIs by task

", "type": "object", "properties": { "PlayerSessionId": { "allOf": [ { "$ref": "#/components/schemas/PlayerSessionId" }, { "description": "A unique identifier for a player session." } ] }, "PlayerId": { "allOf": [ { "$ref": "#/components/schemas/NonZeroAndMaxString" }, { "description": "A unique identifier for a player that is associated with this player session." } ] }, "GameSessionId": { "allOf": [ { "$ref": "#/components/schemas/NonZeroAndMaxString" }, { "description": "A unique identifier for the game session that the player session is connected to." } ] }, "FleetId": { "allOf": [ { "$ref": "#/components/schemas/FleetId" }, { "description": "A unique identifier for the fleet that the player's game session is running on." } ] }, "FleetArn": { "allOf": [ { "$ref": "#/components/schemas/FleetArn" }, { "description": " The Amazon Resource Name (ARN) associated with the GameLift fleet that the player's game session is running on. " } ] }, "CreationTime": { "allOf": [ { "$ref": "#/components/schemas/Timestamp" }, { "description": "A time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (for example \"1469498468.057\")." } ] }, "TerminationTime": { "allOf": [ { "$ref": "#/components/schemas/Timestamp" }, { "description": "A time stamp indicating when this data object was terminated. Format is a number expressed in Unix time as milliseconds (for example \"1469498468.057\")." } ] }, "Status": { "allOf": [ { "$ref": "#/components/schemas/PlayerSessionStatus" }, { "description": "

Current status of the player session.

Possible player session statuses include the following:

" } ] }, "IpAddress": { "allOf": [ { "$ref": "#/components/schemas/IpAddress" }, { "description": "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." } ] }, "DnsName": { "allOf": [ { "$ref": "#/components/schemas/DnsName" }, { "description": "

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.

" } ] }, "Port": { "allOf": [ { "$ref": "#/components/schemas/PortNumber" }, { "description": "Port number for the game session. To connect to a Amazon GameLift server process, an app needs both the IP address and port number." } ] }, "PlayerData": { "allOf": [ { "$ref": "#/components/schemas/PlayerData" }, { "description": "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. " } ] } } }