amazonka-gamelift-1.4.3: 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.CreateGameSession

Contents

Description

Creates a multiplayer game session for players. This action creates a game session record and assigns the new session to an instance in the specified fleet, which activates the server initialization process in your game server. A fleet must be in an ACTIVE state before a game session can be created for it.

To create a game session, specify either a fleet ID or an alias ID and indicate the maximum number of players the game session allows. You can also provide a name and a set of properties for your game (optional). If successful, a GameSession object is returned containing session properties, including an IP address. By default, newly created game sessions are set to accept adding any new players to the game session. Use UpdateGameSession to change the creation policy.

Synopsis

Creating a Request

createGameSession Source #

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

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

data CreateGameSession Source #

Represents the input for a request action.

See: createGameSession smart constructor.

Instances

Eq CreateGameSession Source # 
Data CreateGameSession Source # 

Methods

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

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

toConstr :: CreateGameSession -> Constr #

dataTypeOf :: CreateGameSession -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Methods

rnf :: CreateGameSession -> () #

AWSRequest CreateGameSession Source # 
ToQuery CreateGameSession Source # 
ToPath CreateGameSession Source # 
ToHeaders CreateGameSession Source # 
type Rep CreateGameSession Source # 
type Rep CreateGameSession = D1 (MetaData "CreateGameSession" "Network.AWS.GameLift.CreateGameSession" "amazonka-gamelift-1.4.3-H985lHzdma37rqlxR66M9y" False) (C1 (MetaCons "CreateGameSession'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_cgsGameProperties") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [GameProperty]))) (S1 (MetaSel (Just Symbol "_cgsAliasId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_cgsName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_cgsFleetId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_cgsMaximumPlayerSessionCount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Nat))))))
type Rs CreateGameSession Source # 

Request Lenses

cgsGameProperties :: Lens' CreateGameSession [GameProperty] Source #

Set of properties used to administer a game session. These properties are passed to your game server.

cgsAliasId :: Lens' CreateGameSession (Maybe Text) Source #

Unique identifier for a fleet alias. Each request must reference either a fleet ID or alias ID, but not both.

cgsName :: Lens' CreateGameSession (Maybe Text) Source #

Descriptive label associated with this game session. Session names do not need to be unique.

cgsFleetId :: Lens' CreateGameSession (Maybe Text) Source #

Unique identifier for a fleet. Each request must reference either a fleet ID or alias ID, but not both.

cgsMaximumPlayerSessionCount :: Lens' CreateGameSession Natural Source #

Maximum number of players that can be connected simultaneously to the game session.

Destructuring the Response

createGameSessionResponse Source #

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

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

data CreateGameSessionResponse Source #

Represents the returned data in response to a request action.

See: createGameSessionResponse smart constructor.

Instances

Eq CreateGameSessionResponse Source # 
Data CreateGameSessionResponse Source # 

Methods

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

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

toConstr :: CreateGameSessionResponse -> Constr #

dataTypeOf :: CreateGameSessionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateGameSessionResponse Source # 
Show CreateGameSessionResponse Source # 
Generic CreateGameSessionResponse Source # 
NFData CreateGameSessionResponse Source # 
type Rep CreateGameSessionResponse Source # 
type Rep CreateGameSessionResponse = D1 (MetaData "CreateGameSessionResponse" "Network.AWS.GameLift.CreateGameSession" "amazonka-gamelift-1.4.3-H985lHzdma37rqlxR66M9y" False) (C1 (MetaCons "CreateGameSessionResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cgsrsGameSession") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe GameSession))) (S1 (MetaSel (Just Symbol "_cgsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

cgsrsGameSession :: Lens' CreateGameSessionResponse (Maybe GameSession) Source #

Object containing the newly created game session record.