Module Values.CreatePlayerSessionOutputSource

This API works with the following fleet types: EC2, Anywhere, Container Reserves an open player slot in a game session for a player. 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. You can add a group of players to a game session with CreatePlayerSessions . To create a player session, specify a game session ID, player ID, and optionally a set of player data. If successful, a slot is reserved in the game session for the player and a new PlayerSessions object is returned with a player session ID. The player references the 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. playerSession : PlayerSession.t option;
    (*

    Object that describes the newly created player session record.

    *)
}
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 : ?playerSession:??? -> 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 * [> `Structure of (string * [> `Enum of string | `Integer of PortNumber.t | `String of PlayerSessionId.t | `Timestamp of Timestamp.t ]) 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