GameSessionPlacement
¶
Source code in docs_src/capo_gamelift/types/game_session_placement.py
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.
end_time
instance-attribute
¶
end_time: NotRequired[Timestamp]
Time stamp indicating when this request was completed, canceled, or timed out.
game_properties
instance-attribute
¶
game_properties: NotRequired[GamePropertyList]
A set of key-value pairs that can store custom data in a game session. For example: {"Key": "difficulty", "Value": "novice"}.
-
Avoid using periods (".") in property keys if you plan to search for game sessions by properties. Property keys containing periods cannot be searched and will be filtered out from search results due to search index limitations.
-
If you use SearchGameSessions API, there is a limit of 500 game property keys across all game sessions and all fleets per region. If the limit is exceeded, there will potentially be game session entries missing from SearchGameSessions API results.
game_session_arn
instance-attribute
¶
game_session_arn: NotRequired[NonZeroAndMaxString]
An identifier for the game session that is unique across all regions. 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:. This value is the same as GameSessionId. This value isn't final until placement status is FULFILLED.
game_session_data
instance-attribute
¶
game_session_data: NotRequired[LargeGameSessionData]
A set of custom game session properties, formatted as a single string value. This data is passed to a game server process with a request to start a new game session. For more information, see Start a game session.
game_session_id
instance-attribute
¶
game_session_id: NotRequired[NonZeroAndMaxString]
An identifier for the game session that is unique across all regions. 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:. This value is the same as GameSessionArn. This value isn't final until placement status is FULFILLED.
game_session_name
instance-attribute
¶
game_session_name: NotRequired[NonZeroAndMaxString]
A descriptive label that is associated with a game session. Session names do not need to be unique.
game_session_queue_name
instance-attribute
¶
game_session_queue_name: NotRequired[GameSessionQueueName]
A descriptive label that is associated with game session queue. Queue names must be unique within each Region.
game_session_region
instance-attribute
¶
game_session_region: NotRequired[NonZeroAndMaxString]
Name of the Region where the game session created by this placement request is running. This value isn't final until placement status is FULFILLED.
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. This value isn't final until placement status is FULFILLED.
matchmaker_data
instance-attribute
¶
matchmaker_data: NotRequired[MatchmakerData]
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.
maximum_player_session_count
instance-attribute
¶
maximum_player_session_count: NotRequired[WholeNumber]
The maximum number of players that can be connected simultaneously to the game session.
placed_player_sessions
instance-attribute
¶
placed_player_sessions: NotRequired[PlacedPlayerSessionList]
A collection of information on player sessions created in response to the game session placement request. These player sessions are created only after a new game session is successfully placed (placement status is FULFILLED). This information includes the player ID, provided in the placement request, and a corresponding player session ID.
placement_id
instance-attribute
¶
placement_id: NotRequired[IdStringModel]
A unique identifier for a game session placement.
player_gateway_status
instance-attribute
¶
player_gateway_status: NotRequired[PlayerGatewayStatus]
The current status of player gateway for the game session placement. Note, even if a fleet has PlayerGatewayMode configured as ENABLED, player gateway might not be available in a specific location. For more information about locations where player gateway is supported, see Amazon GameLift Servers service locations.
Possible values include:
-
ENABLED-- Player gateway is available for this game session placement. -
DISABLED-- Player gateway is not available for this game session placement.
player_latencies
instance-attribute
¶
player_latencies: NotRequired[PlayerLatencyList]
A set of values, expressed in milliseconds, that indicates the amount of latency that a player experiences when connected to a fleet location (Amazon Web Services Regions or custom locations for Amazon GameLift Servers Anywhere fleets).
port
instance-attribute
¶
port: NotRequired[PortNumber]
The port number for the game session. To connect to a Amazon GameLift Servers game server, an app needs both the IP address and port number. This value isn't final until placement status is FULFILLED.
priority_configuration_override
instance-attribute
¶
priority_configuration_override: NotRequired[PriorityConfigurationOverride]
An alternative priority list of locations that's included with a game session placement request. When provided, the list overrides a queue's location order list for this game session placement request only. The list might include Amazon Web Services Regions, local zones, and custom locations (for Anywhere fleets). The fallback strategy tells Amazon GameLift Servers what action to take (if any) in the event that it failed to place a new game session.
start_time
instance-attribute
¶
start_time: NotRequired[Timestamp]
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").
status
instance-attribute
¶
status: NotRequired[GameSessionPlacementState]
Current status of the game session placement request.
-
PENDING -- The placement request is in the queue waiting to be processed. Game session properties are not yet final.
-
FULFILLED -- A new game session has been successfully placed. Game session properties are now final.
-
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 Servers 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.