amazonka-gamelift-1.6.1: Amazon GameLift SDK.

Copyright(c) 2013-2018 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 # 
Instance details

Defined in Network.AWS.GameLift.UpdateGameSession

Data UpdateGameSession Source # 
Instance details

Defined in Network.AWS.GameLift.UpdateGameSession

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 # 
Instance details

Defined in Network.AWS.GameLift.UpdateGameSession

Show UpdateGameSession Source # 
Instance details

Defined in Network.AWS.GameLift.UpdateGameSession

Generic UpdateGameSession Source # 
Instance details

Defined in Network.AWS.GameLift.UpdateGameSession

Associated Types

type Rep UpdateGameSession :: Type -> Type #

Hashable UpdateGameSession Source # 
Instance details

Defined in Network.AWS.GameLift.UpdateGameSession

ToJSON UpdateGameSession Source # 
Instance details

Defined in Network.AWS.GameLift.UpdateGameSession

AWSRequest UpdateGameSession Source # 
Instance details

Defined in Network.AWS.GameLift.UpdateGameSession

Associated Types

type Rs UpdateGameSession :: Type #

ToHeaders UpdateGameSession Source # 
Instance details

Defined in Network.AWS.GameLift.UpdateGameSession

ToPath UpdateGameSession Source # 
Instance details

Defined in Network.AWS.GameLift.UpdateGameSession

ToQuery UpdateGameSession Source # 
Instance details

Defined in Network.AWS.GameLift.UpdateGameSession

NFData UpdateGameSession Source # 
Instance details

Defined in Network.AWS.GameLift.UpdateGameSession

Methods

rnf :: UpdateGameSession -> () #

type Rep UpdateGameSession Source # 
Instance details

Defined in Network.AWS.GameLift.UpdateGameSession

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

Defined in Network.AWS.GameLift.UpdateGameSession

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 # 
Instance details

Defined in Network.AWS.GameLift.UpdateGameSession

Data UpdateGameSessionResponse Source # 
Instance details

Defined in Network.AWS.GameLift.UpdateGameSession

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 # 
Instance details

Defined in Network.AWS.GameLift.UpdateGameSession

Show UpdateGameSessionResponse Source # 
Instance details

Defined in Network.AWS.GameLift.UpdateGameSession

Generic UpdateGameSessionResponse Source # 
Instance details

Defined in Network.AWS.GameLift.UpdateGameSession

Associated Types

type Rep UpdateGameSessionResponse :: Type -> Type #

NFData UpdateGameSessionResponse Source # 
Instance details

Defined in Network.AWS.GameLift.UpdateGameSession

type Rep UpdateGameSessionResponse Source # 
Instance details

Defined in Network.AWS.GameLift.UpdateGameSession

type Rep UpdateGameSessionResponse = D1 (MetaData "UpdateGameSessionResponse" "Network.AWS.GameLift.UpdateGameSession" "amazonka-gamelift-1.6.1-GajLKSxsevT2faX837q2Xl" False) (C1 (MetaCons "UpdateGameSessionResponse'" PrefixI True) (S1 (MetaSel (Just "_ugsrsGameSession") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe GameSession)) :*: S1 (MetaSel (Just "_ugsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

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

Object that contains the updated game session metadata.