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 stage for stage-by-stage game development and deployment.
Synopsis
- data CreateStage = CreateStage' {}
- newCreateStage :: Text -> Text -> Text -> CreateStage
- createStage_clientToken :: Lens' CreateStage (Maybe Text)
- createStage_description :: Lens' CreateStage (Maybe Text)
- createStage_tags :: Lens' CreateStage (Maybe (HashMap Text Text))
- createStage_gameName :: Lens' CreateStage Text
- createStage_role :: Lens' CreateStage Text
- createStage_stageName :: Lens' CreateStage Text
- data CreateStageResponse = CreateStageResponse' {
- stage :: Maybe StageDetails
- httpStatus :: Int
- newCreateStageResponse :: Int -> CreateStageResponse
- createStageResponse_stage :: Lens' CreateStageResponse (Maybe StageDetails)
- createStageResponse_httpStatus :: Lens' CreateStageResponse Int
Creating a Request
data CreateStage Source #
See: newCreateStage
smart constructor.
CreateStage' | |
|
Instances
Create a value of CreateStage
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:CreateStage'
, createStage_clientToken
- A client-defined token. With an active client token in the request, this
action is idempotent.
CreateStage
, createStage_description
- The description of the stage.
CreateStage
, createStage_tags
- The list of tags to apply to the stage.
$sel:gameName:CreateStage'
, createStage_gameName
- The name of the game.
CreateStage
, createStage_role
- The Amazon Resource Name (ARN) of the role to run the game with. This
role can be a game-defined role or the default role that GameSparks
created.
$sel:stageName:CreateStage'
, createStage_stageName
- The name of the stage.
Request Lenses
createStage_clientToken :: Lens' CreateStage (Maybe Text) Source #
A client-defined token. With an active client token in the request, this action is idempotent.
createStage_description :: Lens' CreateStage (Maybe Text) Source #
The description of the stage.
createStage_tags :: Lens' CreateStage (Maybe (HashMap Text Text)) Source #
The list of tags to apply to the stage.
createStage_gameName :: Lens' CreateStage Text Source #
The name of the game.
createStage_role :: Lens' CreateStage Text Source #
The Amazon Resource Name (ARN) of the role to run the game with. This role can be a game-defined role or the default role that GameSparks created.
createStage_stageName :: Lens' CreateStage Text Source #
The name of the stage.
Destructuring the Response
data CreateStageResponse Source #
See: newCreateStageResponse
smart constructor.
CreateStageResponse' | |
|
Instances
newCreateStageResponse Source #
Create a value of CreateStageResponse
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:stage:CreateStageResponse'
, createStageResponse_stage
- Properties that describe the stage.
$sel:httpStatus:CreateStageResponse'
, createStageResponse_httpStatus
- The response's http status code.
Response Lenses
createStageResponse_stage :: Lens' CreateStageResponse (Maybe StageDetails) Source #
Properties that describe the stage.
createStageResponse_httpStatus :: Lens' CreateStageResponse Int Source #
The response's http status code.