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 |
Deploys a snapshot to the stage and creates a new game runtime.
After you call this operation, you can check the deployment status by
using GetStageDeployment
.
If there are any players connected to the previous game runtime, then both runtimes persist. Existing connections to the previous runtime are maintained. When players disconnect and reconnect, they connect to the new runtime. After there are no connections to the previous game runtime, it is deleted.
Synopsis
- data StartStageDeployment = StartStageDeployment' {
- clientToken :: Maybe Text
- gameName :: Text
- snapshotId :: Text
- stageName :: Text
- newStartStageDeployment :: Text -> Text -> Text -> StartStageDeployment
- startStageDeployment_clientToken :: Lens' StartStageDeployment (Maybe Text)
- startStageDeployment_gameName :: Lens' StartStageDeployment Text
- startStageDeployment_snapshotId :: Lens' StartStageDeployment Text
- startStageDeployment_stageName :: Lens' StartStageDeployment Text
- data StartStageDeploymentResponse = StartStageDeploymentResponse' {}
- newStartStageDeploymentResponse :: Int -> StartStageDeploymentResponse
- startStageDeploymentResponse_stageDeployment :: Lens' StartStageDeploymentResponse (Maybe StageDeploymentDetails)
- startStageDeploymentResponse_httpStatus :: Lens' StartStageDeploymentResponse Int
Creating a Request
data StartStageDeployment Source #
See: newStartStageDeployment
smart constructor.
StartStageDeployment' | |
|
Instances
newStartStageDeployment Source #
:: Text | |
-> Text | |
-> Text | |
-> StartStageDeployment |
Create a value of StartStageDeployment
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:StartStageDeployment'
, startStageDeployment_clientToken
- A client-defined token. With an active client token in the request, this
action is idempotent.
$sel:gameName:StartStageDeployment'
, startStageDeployment_gameName
- The name of the game.
StartStageDeployment
, startStageDeployment_snapshotId
- The identifier of the snapshot to deploy.
$sel:stageName:StartStageDeployment'
, startStageDeployment_stageName
- The name of the stage to deploy the snapshot onto.
Request Lenses
startStageDeployment_clientToken :: Lens' StartStageDeployment (Maybe Text) Source #
A client-defined token. With an active client token in the request, this action is idempotent.
startStageDeployment_gameName :: Lens' StartStageDeployment Text Source #
The name of the game.
startStageDeployment_snapshotId :: Lens' StartStageDeployment Text Source #
The identifier of the snapshot to deploy.
startStageDeployment_stageName :: Lens' StartStageDeployment Text Source #
The name of the stage to deploy the snapshot onto.
Destructuring the Response
data StartStageDeploymentResponse Source #
See: newStartStageDeploymentResponse
smart constructor.
StartStageDeploymentResponse' | |
|
Instances
newStartStageDeploymentResponse Source #
Create a value of StartStageDeploymentResponse
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:stageDeployment:StartStageDeploymentResponse'
, startStageDeploymentResponse_stageDeployment
- Properties that describe the stage deployment.
$sel:httpStatus:StartStageDeploymentResponse'
, startStageDeploymentResponse_httpStatus
- The response's http status code.
Response Lenses
startStageDeploymentResponse_stageDeployment :: Lens' StartStageDeploymentResponse (Maybe StageDeploymentDetails) Source #
Properties that describe the stage deployment.
startStageDeploymentResponse_httpStatus :: Lens' StartStageDeploymentResponse Int Source #
The response's http status code.