amazonka-gamelift-1.5.0: Amazon GameLift SDK.

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

Network.AWS.GameLift.UpdateGameSession

Contents

Description

Updates game session properties. This includes the session name, maximum player count, protection policy, which controls whether or not an active game session can be terminated during a scale-down event, and the player session creation policy, which controls whether or not new players can join the session. To update a game session, specify the game session ID and the values you want to change. If successful, an updated GameSession object is returned.

Game-session-related operations include:

  • CreateGameSession
  • DescribeGameSessions
  • DescribeGameSessionDetails
  • SearchGameSessions
  • UpdateGameSession
  • GetGameSessionLogUrl
  • Game session placements
  • StartGameSessionPlacement
  • DescribeGameSessionPlacement
  • StopGameSessionPlacement

Synopsis

Creating a Request

updateGameSession Source #

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

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

  • ugsMaximumPlayerSessionCount - Maximum number of players that can be connected simultaneously to the game session.
  • ugsPlayerSessionCreationPolicy - Policy determining whether or not the game session accepts new players.
  • ugsName - Descriptive label that is associated with a game session. Session names do not need to be unique.
  • ugsProtectionPolicy - Game session protection policy to apply to this game session only. * NoProtection -- The game session can be terminated during a scale-down event. * FullProtection -- If the game session is in an ACTIVE status, it cannot be terminated during a scale-down event.
  • ugsGameSessionId - Unique identifier for the game session to update.

data UpdateGameSession Source #

Represents the input for a request action.

See: updateGameSession smart constructor.

Instances

Eq UpdateGameSession Source # 
Data UpdateGameSession Source # 

Methods

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

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

toConstr :: UpdateGameSession -> Constr #

dataTypeOf :: UpdateGameSession -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Methods

rnf :: UpdateGameSession -> () #

AWSRequest UpdateGameSession Source # 
ToQuery UpdateGameSession Source # 
ToPath UpdateGameSession Source # 
ToHeaders UpdateGameSession Source # 
type Rep UpdateGameSession Source # 
type Rep UpdateGameSession = D1 (MetaData "UpdateGameSession" "Network.AWS.GameLift.UpdateGameSession" "amazonka-gamelift-1.5.0-LWFsf2alHztGD91U7ab8u0" False) (C1 (MetaCons "UpdateGameSession'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_ugsMaximumPlayerSessionCount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))) (S1 (MetaSel (Just Symbol "_ugsPlayerSessionCreationPolicy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe PlayerSessionCreationPolicy)))) ((:*:) (S1 (MetaSel (Just Symbol "_ugsName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_ugsProtectionPolicy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ProtectionPolicy))) (S1 (MetaSel (Just Symbol "_ugsGameSessionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Rs UpdateGameSession Source # 

Request Lenses

ugsMaximumPlayerSessionCount :: Lens' UpdateGameSession (Maybe Natural) Source #

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

ugsPlayerSessionCreationPolicy :: Lens' UpdateGameSession (Maybe PlayerSessionCreationPolicy) Source #

Policy determining whether or not the game session accepts new players.

ugsName :: Lens' UpdateGameSession (Maybe Text) Source #

Descriptive label that is associated with a game session. Session names do not need to be unique.

ugsProtectionPolicy :: Lens' UpdateGameSession (Maybe ProtectionPolicy) Source #

Game session protection policy to apply to this game session only. * NoProtection -- The game session can be terminated during a scale-down event. * FullProtection -- If the game session is in an ACTIVE status, it cannot be terminated during a scale-down event.

ugsGameSessionId :: Lens' UpdateGameSession Text Source #

Unique identifier for the game session to update.

Destructuring the Response

updateGameSessionResponse Source #

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

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

data UpdateGameSessionResponse Source #

Represents the returned data in response to a request action.

See: updateGameSessionResponse smart constructor.

Instances

Eq UpdateGameSessionResponse Source # 
Data UpdateGameSessionResponse Source # 

Methods

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

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

toConstr :: UpdateGameSessionResponse -> Constr #

dataTypeOf :: UpdateGameSessionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateGameSessionResponse Source # 
Show UpdateGameSessionResponse Source # 
Generic UpdateGameSessionResponse Source # 
NFData UpdateGameSessionResponse Source # 
type Rep UpdateGameSessionResponse Source # 
type Rep UpdateGameSessionResponse = D1 (MetaData "UpdateGameSessionResponse" "Network.AWS.GameLift.UpdateGameSession" "amazonka-gamelift-1.5.0-LWFsf2alHztGD91U7ab8u0" False) (C1 (MetaCons "UpdateGameSessionResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ugsrsGameSession") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe GameSession))) (S1 (MetaSel (Just Symbol "_ugsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

ugsrsGameSession :: Lens' UpdateGameSessionResponse (Maybe GameSession) Source #

Object that contains the updated game session metadata.