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 |
Creates a new game with an empty configuration. After creating your
game, you can update the configuration using UpdateGameConfiguration
or ImportGameConfiguration
.
Synopsis
- data CreateGame = CreateGame' {}
- newCreateGame :: Text -> CreateGame
- createGame_clientToken :: Lens' CreateGame (Maybe Text)
- createGame_description :: Lens' CreateGame (Maybe Text)
- createGame_tags :: Lens' CreateGame (Maybe (HashMap Text Text))
- createGame_gameName :: Lens' CreateGame Text
- data CreateGameResponse = CreateGameResponse' {
- game :: Maybe GameDetails
- httpStatus :: Int
- newCreateGameResponse :: Int -> CreateGameResponse
- createGameResponse_game :: Lens' CreateGameResponse (Maybe GameDetails)
- createGameResponse_httpStatus :: Lens' CreateGameResponse Int
Creating a Request
data CreateGame Source #
See: newCreateGame
smart constructor.
Instances
Create a value of CreateGame
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:
$sel:clientToken:CreateGame'
, createGame_clientToken
- A client-defined token. With an active client token in the request, this
action is idempotent.
CreateGame
, createGame_description
- The description of the game.
CreateGame
, createGame_tags
- The list of tags to apply to the game.
$sel:gameName:CreateGame'
, createGame_gameName
- The name of the game.
Request Lenses
createGame_clientToken :: Lens' CreateGame (Maybe Text) Source #
A client-defined token. With an active client token in the request, this action is idempotent.
createGame_description :: Lens' CreateGame (Maybe Text) Source #
The description of the game.
createGame_tags :: Lens' CreateGame (Maybe (HashMap Text Text)) Source #
The list of tags to apply to the game.
createGame_gameName :: Lens' CreateGame Text Source #
The name of the game.
Destructuring the Response
data CreateGameResponse Source #
See: newCreateGameResponse
smart constructor.
CreateGameResponse' | |
|
Instances
newCreateGameResponse Source #
Create a value of CreateGameResponse
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:
$sel:game:CreateGameResponse'
, createGameResponse_game
- Details about the game that was created.
$sel:httpStatus:CreateGameResponse'
, createGameResponse_httpStatus
- The response's http status code.
Response Lenses
createGameResponse_game :: Lens' CreateGameResponse (Maybe GameDetails) Source #
Details about the game that was created.
createGameResponse_httpStatus :: Lens' CreateGameResponse Int Source #
The response's http status code.