| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.GameLift.UpdateGameSession
Description
Updates the mutable properties of a game session.
To update a game session, specify the game session ID and the values you want to change.
If successful, the updated GameSession object is returned.
Synopsis
- data UpdateGameSession = UpdateGameSession' {}
- newUpdateGameSession :: Text -> UpdateGameSession
- updateGameSession_maximumPlayerSessionCount :: Lens' UpdateGameSession (Maybe Natural)
- updateGameSession_name :: Lens' UpdateGameSession (Maybe Text)
- updateGameSession_playerSessionCreationPolicy :: Lens' UpdateGameSession (Maybe PlayerSessionCreationPolicy)
- updateGameSession_protectionPolicy :: Lens' UpdateGameSession (Maybe ProtectionPolicy)
- updateGameSession_gameSessionId :: Lens' UpdateGameSession Text
- data UpdateGameSessionResponse = UpdateGameSessionResponse' {}
- newUpdateGameSessionResponse :: Int -> UpdateGameSessionResponse
- updateGameSessionResponse_gameSession :: Lens' UpdateGameSessionResponse (Maybe GameSession)
- updateGameSessionResponse_httpStatus :: Lens' UpdateGameSessionResponse Int
Creating a Request
data UpdateGameSession Source #
See: newUpdateGameSession smart constructor.
Constructors
| UpdateGameSession' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> UpdateGameSession |
Create a value of UpdateGameSession with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
UpdateGameSession, updateGameSession_maximumPlayerSessionCount - The maximum number of players that can be connected simultaneously to
the game session.
UpdateGameSession, updateGameSession_name - A descriptive label that is associated with a game session. Session
names do not need to be unique.
UpdateGameSession, updateGameSession_playerSessionCreationPolicy - A policy that determines whether the game session is accepting new
players.
UpdateGameSession, updateGameSession_protectionPolicy - 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
ACTIVEstatus, it cannot be terminated during a scale-down event.
UpdateGameSession, updateGameSession_gameSessionId - A unique identifier for the game session to update.
Request Lenses
updateGameSession_maximumPlayerSessionCount :: Lens' UpdateGameSession (Maybe Natural) Source #
The maximum number of players that can be connected simultaneously to the game session.
updateGameSession_name :: Lens' UpdateGameSession (Maybe Text) Source #
A descriptive label that is associated with a game session. Session names do not need to be unique.
updateGameSession_playerSessionCreationPolicy :: Lens' UpdateGameSession (Maybe PlayerSessionCreationPolicy) Source #
A policy that determines whether the game session is accepting new players.
updateGameSession_protectionPolicy :: 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
ACTIVEstatus, it cannot be terminated during a scale-down event.
updateGameSession_gameSessionId :: Lens' UpdateGameSession Text Source #
A unique identifier for the game session to update.
Destructuring the Response
data UpdateGameSessionResponse Source #
See: newUpdateGameSessionResponse smart constructor.
Constructors
| UpdateGameSessionResponse' | |
Fields
| |
Instances
newUpdateGameSessionResponse Source #
Create a value of UpdateGameSessionResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
UpdateGameSessionResponse, updateGameSessionResponse_gameSession - The updated game session properties.
$sel:httpStatus:UpdateGameSessionResponse', updateGameSessionResponse_httpStatus - The response's http status code.
Response Lenses
updateGameSessionResponse_gameSession :: Lens' UpdateGameSessionResponse (Maybe GameSession) Source #
The updated game session properties.
updateGameSessionResponse_httpStatus :: Lens' UpdateGameSessionResponse Int Source #
The response's http status code.