amazonka-gamesparks-2.0: Amazon GameSparks SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.GamesParks.CreateGame

Description

Creates a new game with an empty configuration. After creating your game, you can update the configuration using UpdateGameConfiguration or ImportGameConfiguration.

Synopsis

Creating a Request

data CreateGame Source #

See: newCreateGame smart constructor.

Constructors

CreateGame' 

Fields

Instances

Instances details
ToJSON CreateGame Source # 
Instance details

Defined in Amazonka.GamesParks.CreateGame

ToHeaders CreateGame Source # 
Instance details

Defined in Amazonka.GamesParks.CreateGame

Methods

toHeaders :: CreateGame -> [Header] #

ToPath CreateGame Source # 
Instance details

Defined in Amazonka.GamesParks.CreateGame

ToQuery CreateGame Source # 
Instance details

Defined in Amazonka.GamesParks.CreateGame

AWSRequest CreateGame Source # 
Instance details

Defined in Amazonka.GamesParks.CreateGame

Associated Types

type AWSResponse CreateGame #

Generic CreateGame Source # 
Instance details

Defined in Amazonka.GamesParks.CreateGame

Associated Types

type Rep CreateGame :: Type -> Type #

Read CreateGame Source # 
Instance details

Defined in Amazonka.GamesParks.CreateGame

Show CreateGame Source # 
Instance details

Defined in Amazonka.GamesParks.CreateGame

NFData CreateGame Source # 
Instance details

Defined in Amazonka.GamesParks.CreateGame

Methods

rnf :: CreateGame -> () #

Eq CreateGame Source # 
Instance details

Defined in Amazonka.GamesParks.CreateGame

Hashable CreateGame Source # 
Instance details

Defined in Amazonka.GamesParks.CreateGame

type AWSResponse CreateGame Source # 
Instance details

Defined in Amazonka.GamesParks.CreateGame

type Rep CreateGame Source # 
Instance details

Defined in Amazonka.GamesParks.CreateGame

type Rep CreateGame = D1 ('MetaData "CreateGame" "Amazonka.GamesParks.CreateGame" "amazonka-gamesparks-2.0-Lk18zLarGCU67rMOwLlDG5" 'False) (C1 ('MetaCons "CreateGame'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "gameName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCreateGame Source #

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.

Destructuring the Response

data CreateGameResponse Source #

See: newCreateGameResponse smart constructor.

Constructors

CreateGameResponse' 

Fields

Instances

Instances details
Generic CreateGameResponse Source # 
Instance details

Defined in Amazonka.GamesParks.CreateGame

Associated Types

type Rep CreateGameResponse :: Type -> Type #

Read CreateGameResponse Source # 
Instance details

Defined in Amazonka.GamesParks.CreateGame

Show CreateGameResponse Source # 
Instance details

Defined in Amazonka.GamesParks.CreateGame

NFData CreateGameResponse Source # 
Instance details

Defined in Amazonka.GamesParks.CreateGame

Methods

rnf :: CreateGameResponse -> () #

Eq CreateGameResponse Source # 
Instance details

Defined in Amazonka.GamesParks.CreateGame

type Rep CreateGameResponse Source # 
Instance details

Defined in Amazonka.GamesParks.CreateGame

type Rep CreateGameResponse = D1 ('MetaData "CreateGameResponse" "Amazonka.GamesParks.CreateGame" "amazonka-gamesparks-2.0-Lk18zLarGCU67rMOwLlDG5" 'False) (C1 ('MetaCons "CreateGameResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "game") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe GameDetails)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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.