import { _Player, _UnmarshalledPlayer } from "./_Player"; import { _GameSessionConnectionInfo, _UnmarshalledGameSessionConnectionInfo } from "./_GameSessionConnectionInfo"; /** *

Ticket generated to track the progress of a matchmaking request. Each ticket is uniquely identified by a ticket ID, supplied by the requester, when creating a matchmaking request with StartMatchmaking. Tickets can be retrieved by calling DescribeMatchmaking with the ticket ID.

*/ export interface _MatchmakingTicket { /** *

Unique identifier for a matchmaking ticket.

*/ TicketId?: string; /** *

Name of the MatchmakingConfiguration that is used with this ticket. Matchmaking configurations determine how players are grouped into a match and how a new game session is created for the match.

*/ ConfigurationName?: string; /** *

Current status of the matchmaking request.

Matchmaking requests that fail to successfully complete (statuses FAILED, CANCELLED, TIMED_OUT) can be resubmitted as new requests with new ticket IDs.

*/ Status?: "CANCELLED" | "COMPLETED" | "FAILED" | "PLACING" | "QUEUED" | "REQUIRES_ACCEPTANCE" | "SEARCHING" | "TIMED_OUT" | string; /** *

Code to explain the current status. For example, a status reason may indicate when a ticket has returned to SEARCHING status after a proposed match fails to receive player acceptances.

*/ StatusReason?: string; /** *

Additional information about the current status.

*/ StatusMessage?: string; /** *

Time stamp indicating when this matchmaking request was received. Format is a number expressed in Unix time as milliseconds (for example "1469498468.057").

*/ StartTime?: Date | string | number; /** *

Time stamp indicating when this matchmaking request stopped being processed due to success, failure, or cancellation. Format is a number expressed in Unix time as milliseconds (for example "1469498468.057").

*/ EndTime?: Date | string | number; /** *

A set of Player objects, each representing a player to find matches for. Players are identified by a unique player ID and may include latency data for use during matchmaking. If the ticket is in status COMPLETED, the Player objects include the team the players were assigned to in the resulting match.

*/ Players?: Array<_Player> | Iterable<_Player>; /** *

Identifier and connection information of the game session created for the match. This information is added to the ticket only after the matchmaking request has been successfully completed.

*/ GameSessionConnectionInfo?: _GameSessionConnectionInfo; /** *

Average amount of time (in seconds) that players are currently waiting for a match. If there is not enough recent data, this property may be empty.

*/ EstimatedWaitTime?: number; } export interface _UnmarshalledMatchmakingTicket extends _MatchmakingTicket { /** *

Time stamp indicating when this matchmaking request was received. Format is a number expressed in Unix time as milliseconds (for example "1469498468.057").

*/ StartTime?: Date; /** *

Time stamp indicating when this matchmaking request stopped being processed due to success, failure, or cancellation. Format is a number expressed in Unix time as milliseconds (for example "1469498468.057").

*/ EndTime?: Date; /** *

A set of Player objects, each representing a player to find matches for. Players are identified by a unique player ID and may include latency data for use during matchmaking. If the ticket is in status COMPLETED, the Player objects include the team the players were assigned to in the resulting match.

*/ Players?: Array<_UnmarshalledPlayer>; /** *

Identifier and connection information of the game session created for the match. This information is added to the ticket only after the matchmaking request has been successfully completed.

*/ GameSessionConnectionInfo?: _UnmarshalledGameSessionConnectionInfo; }