amazonka-gamelift-1.4.5: 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.CreatePlayerSession

Contents

Description

Adds a player to a game session and creates a player session record. A game session must be in an ACTIVE status, have a creation policy of ALLOW_ALL , and have an open player slot before players can be added to the session.

To create a player session, specify a game session ID and player ID. If successful, the player is added to the game session and a new PlayerSession object is returned.

Synopsis

Creating a Request

createPlayerSession Source #

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

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

  • cGameSessionId - Unique identifier for the game session to add a player to. Game session ID format is as follows: "arn:aws:gamelift:region::gamesessionfleet-IDstring". The value of string is either a custom ID string (if one was specified when the game session was created) an autogenerated string.
  • cPlayerId - Unique identifier for the player to be added.

data CreatePlayerSession Source #

Represents the input for a request action.

See: createPlayerSession smart constructor.

Instances

Eq CreatePlayerSession Source # 
Data CreatePlayerSession Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreatePlayerSession -> c CreatePlayerSession #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreatePlayerSession #

toConstr :: CreatePlayerSession -> Constr #

dataTypeOf :: CreatePlayerSession -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreatePlayerSession) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreatePlayerSession) #

gmapT :: (forall b. Data b => b -> b) -> CreatePlayerSession -> CreatePlayerSession #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreatePlayerSession -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreatePlayerSession -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreatePlayerSession -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreatePlayerSession -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreatePlayerSession -> m CreatePlayerSession #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreatePlayerSession -> m CreatePlayerSession #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreatePlayerSession -> m CreatePlayerSession #

Read CreatePlayerSession Source # 
Show CreatePlayerSession Source # 
Generic CreatePlayerSession Source # 
Hashable CreatePlayerSession Source # 
ToJSON CreatePlayerSession Source # 
NFData CreatePlayerSession Source # 

Methods

rnf :: CreatePlayerSession -> () #

AWSRequest CreatePlayerSession Source # 
ToPath CreatePlayerSession Source # 
ToHeaders CreatePlayerSession Source # 
ToQuery CreatePlayerSession Source # 
type Rep CreatePlayerSession Source # 
type Rep CreatePlayerSession = D1 (MetaData "CreatePlayerSession" "Network.AWS.GameLift.CreatePlayerSession" "amazonka-gamelift-1.4.5-2krZbzEaIqtLV8ATX8AZ52" False) (C1 (MetaCons "CreatePlayerSession'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cGameSessionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_cPlayerId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs CreatePlayerSession Source # 

Request Lenses

cGameSessionId :: Lens' CreatePlayerSession Text Source #

Unique identifier for the game session to add a player to. Game session ID format is as follows: "arn:aws:gamelift:region::gamesessionfleet-IDstring". The value of string is either a custom ID string (if one was specified when the game session was created) an autogenerated string.

cPlayerId :: Lens' CreatePlayerSession Text Source #

Unique identifier for the player to be added.

Destructuring the Response

createPlayerSessionResponse Source #

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

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

data CreatePlayerSessionResponse Source #

Represents the returned data in response to a request action.

See: createPlayerSessionResponse smart constructor.

Instances

Eq CreatePlayerSessionResponse Source # 
Data CreatePlayerSessionResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreatePlayerSessionResponse -> c CreatePlayerSessionResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreatePlayerSessionResponse #

toConstr :: CreatePlayerSessionResponse -> Constr #

dataTypeOf :: CreatePlayerSessionResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreatePlayerSessionResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreatePlayerSessionResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreatePlayerSessionResponse -> CreatePlayerSessionResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreatePlayerSessionResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreatePlayerSessionResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreatePlayerSessionResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreatePlayerSessionResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreatePlayerSessionResponse -> m CreatePlayerSessionResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreatePlayerSessionResponse -> m CreatePlayerSessionResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreatePlayerSessionResponse -> m CreatePlayerSessionResponse #

Read CreatePlayerSessionResponse Source # 
Show CreatePlayerSessionResponse Source # 
Generic CreatePlayerSessionResponse Source # 
NFData CreatePlayerSessionResponse Source # 
type Rep CreatePlayerSessionResponse Source # 
type Rep CreatePlayerSessionResponse = D1 (MetaData "CreatePlayerSessionResponse" "Network.AWS.GameLift.CreatePlayerSession" "amazonka-gamelift-1.4.5-2krZbzEaIqtLV8ATX8AZ52" False) (C1 (MetaCons "CreatePlayerSessionResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cpsrsPlayerSession") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe PlayerSession))) (S1 (MetaSel (Just Symbol "_cpsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

cpsrsPlayerSession :: Lens' CreatePlayerSessionResponse (Maybe PlayerSession) Source #

Object containing the newly created player session record.