{ "$schema": "https://json-structure.org/meta/core/v0/#", "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-gamelift/refs/heads/main/json-structure/gamelift-game-session-placement-structure.json", "name": "GameSessionPlacement", "description": "This object includes the full details of the original request plus the current status and start/end time stamps.", "type": "object", "properties": { "PlacementId": { "allOf": [ { "$ref": "#/components/schemas/IdStringModel" }, { "description": "A unique identifier for a game session placement." } ] }, "GameSessionQueueName": { "allOf": [ { "$ref": "#/components/schemas/GameSessionQueueName" }, { "description": "A descriptive label that is associated with game session queue. Queue names must be unique within each Region." } ] }, "Status": { "allOf": [ { "$ref": "#/components/schemas/GameSessionPlacementState" }, { "description": "
Current status of the game session placement request.
PENDING -- The placement request is currently in the queue waiting to be processed.
FULFILLED -- A new game session and player sessions (if requested) have been successfully created. Values for GameSessionArn and GameSessionRegion are available.
CANCELLED -- The placement request was canceled.
TIMED_OUT -- A new game session was not successfully created before the time limit expired. You can resubmit the placement request as needed.
FAILED -- Amazon GameLift is not able to complete the process of placing the game session. Common reasons are the game session terminated before the placement process was completed, or an unexpected internal error.
FULFILLED)."
}
]
},
"GameSessionArn": {
"allOf": [
{
"$ref": "#/components/schemas/NonZeroAndMaxString"
},
{
"description": "Identifier for the game session created by this placement request. This value is set once the new game session is placed (placement status is FULFILLED). This identifier is unique across all Regions. You can use this value as a GameSessionId value as needed."
}
]
},
"GameSessionRegion": {
"allOf": [
{
"$ref": "#/components/schemas/NonZeroAndMaxString"
},
{
"description": "Name of the Region where the game session created by this placement request is running. This value is set once the new game session is placed (placement status is FULFILLED)."
}
]
},
"PlayerLatencies": {
"allOf": [
{
"$ref": "#/components/schemas/PlayerLatencyList"
},
{
"description": "A set of values, expressed in milliseconds, that indicates the amount of latency that a player experiences when connected to Amazon Web Services Regions."
}
]
},
"StartTime": {
"allOf": [
{
"$ref": "#/components/schemas/Timestamp"
},
{
"description": "Time stamp indicating when this request was placed in the queue. Format is a number expressed in Unix time as milliseconds (for example \"1469498468.057\")."
}
]
},
"EndTime": {
"allOf": [
{
"$ref": "#/components/schemas/Timestamp"
},
{
"description": "Time stamp indicating when this request was completed, canceled, or timed out."
}
]
},
"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. This value is set once the new game session is placed (placement status is FULFILLED). "
}
]
},
"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:
TLS-enabled fleets: <unique identifier>.<region identifier>.amazongamelift.com.
Non-TLS-enabled fleets: ec2-<unique identifier>.compute.amazonaws.com. (See Amazon EC2 Instance IP Addressing.)
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": "The port number for the game session. To connect to a Amazon GameLift game server, an app needs both the IP address and port number. This value is set once the new game session is placed (placement status isFULFILLED)."
}
]
},
"PlacedPlayerSessions": {
"allOf": [
{
"$ref": "#/components/schemas/PlacedPlayerSessionList"
},
{
"description": "A collection of information on player sessions created in response to the game session placement request. These player sessions are created only once a new game session is successfully placed (placement status is FULFILLED). This information includes the player ID (as provided in the placement request) and the corresponding player session ID."
}
]
},
"GameSessionData": {
"allOf": [
{
"$ref": "#/components/schemas/LargeGameSessionData"
},
{
"description": "A set of custom game session properties, formatted as a single string value. This data is passed to a game server process in the GameSession object with a request to start a new game session (see Start a Game Session)."
}
]
},
"MatchmakerData": {
"allOf": [
{
"$ref": "#/components/schemas/MatchmakerData"
},
{
"description": "Information on the matchmaking process for this game. Data is in JSON syntax, formatted as a string. It identifies the matchmaking configuration used to create the match, and contains data on all players assigned to the match, including player attributes and team assignments. For more details on matchmaker data, see Match Data."
}
]
}
}
}