amazonka-gamelift-1.4.0: Amazon GameLift SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.GameLift.CreatePlayerSessions

Contents

Description

Adds a group of players to a game session. Similar to CreatePlayerSession, this action allows you to add multiple players in a single call, which is useful for games that provide party and/or matchmaking features. A game session must be in an ACTIVE state, have a creation policy of ALLOW_ALL, and have an open player slot before players can be added to the session.

To create player sessions, specify a game session ID and a list of player IDs. If successful, the players are added to the game session and a set of new PlayerSession objects is returned.

Synopsis

Creating a Request

createPlayerSessions Source

Creates a value of CreatePlayerSessions with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

cpsGameSessionId :: Lens' CreatePlayerSessions Text Source

Unique identifier for a game session.

cpsPlayerIds :: Lens' CreatePlayerSessions (NonEmpty Text) Source

List of unique identifiers for the players to be added.

Destructuring the Response

createPlayerSessionsResponse Source

Creates a value of CreatePlayerSessionsResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses

crsPlayerSessions :: Lens' CreatePlayerSessionsResponse [PlayerSession] Source

Collection of player session objects created for the added players.