Module Values.CreatePlayerSessionsOutputSource

This API works with the following fleet types: EC2, Anywhere, Container Reserves open slots in a game session for a group of players. New player sessions can be created in any game session with an open slot that is in ACTIVE status and has a player creation policy of ACCEPT_ALL. To add a single player to a game session, use CreatePlayerSession To create player sessions, specify a game session ID and a list of player IDs. Optionally, provide a set of player data for each player ID. If successful, a slot is reserved in the game session for each player, and new PlayerSession objects are returned with player session IDs. Each player references their player session ID when sending a connection request to the game session, and the game server can use it to validate the player reservation with the Amazon GameLift Servers service. Player sessions cannot be updated. The maximum number of players per game session is 200. It is not adjustable. Related actions All APIs by task

Sourcetype nonrec t = {
  1. playerSessions : PlayerSessionList.t option;
    (*

    A collection of player session objects created for the added players.

    *)
}
Sourcetype nonrec error = [
  1. | `GameSessionFullException of GameSessionFullException.t
  2. | `InternalServiceException of InternalServiceException.t
  3. | `InvalidGameSessionStatusException of InvalidGameSessionStatusException.t
  4. | `InvalidRequestException of InvalidRequestException.t
  5. | `NotFoundException of NotFoundException.t
  6. | `TerminalRoutingStrategyException of TerminalRoutingStrategyException.t
  7. | `UnauthorizedException of UnauthorizedException.t
  8. | `Unknown_operation_error of string * string option
]
Sourceval make : ?playerSessions:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `GameSessionFullException of GameSessionFullException.t | `InternalServiceException of InternalServiceException.t | `InvalidGameSessionStatusException of InvalidGameSessionStatusException.t | `InvalidRequestException of InvalidRequestException.t | `NotFoundException of NotFoundException.t | `TerminalRoutingStrategyException of TerminalRoutingStrategyException.t | `UnauthorizedException of UnauthorizedException.t | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `GameSessionFullException of GameSessionFullException.t | `InternalServiceException of InternalServiceException.t | `InvalidGameSessionStatusException of InvalidGameSessionStatusException.t | `InvalidRequestException of InvalidRequestException.t | `NotFoundException of NotFoundException.t | `TerminalRoutingStrategyException of TerminalRoutingStrategyException.t | `UnauthorizedException of UnauthorizedException.t | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `Enum of string | `Integer of PortNumber.t | `String of PlayerSessionId.t | `Timestamp of Timestamp.t ]) list ] list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t