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 snapshot of the game configuration.
Synopsis
- data CreateSnapshot = CreateSnapshot' {
- description :: Maybe Text
- gameName :: Text
- newCreateSnapshot :: Text -> CreateSnapshot
- createSnapshot_description :: Lens' CreateSnapshot (Maybe Text)
- createSnapshot_gameName :: Lens' CreateSnapshot Text
- data CreateSnapshotResponse = CreateSnapshotResponse' {}
- newCreateSnapshotResponse :: Int -> CreateSnapshotResponse
- createSnapshotResponse_snapshot :: Lens' CreateSnapshotResponse (Maybe SnapshotDetails)
- createSnapshotResponse_httpStatus :: Lens' CreateSnapshotResponse Int
Creating a Request
data CreateSnapshot Source #
See: newCreateSnapshot
smart constructor.
CreateSnapshot' | |
|
Instances
Create a value of CreateSnapshot
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:
CreateSnapshot
, createSnapshot_description
- The description of the snapshot.
$sel:gameName:CreateSnapshot'
, createSnapshot_gameName
- The name of the game.
Request Lenses
createSnapshot_description :: Lens' CreateSnapshot (Maybe Text) Source #
The description of the snapshot.
createSnapshot_gameName :: Lens' CreateSnapshot Text Source #
The name of the game.
Destructuring the Response
data CreateSnapshotResponse Source #
See: newCreateSnapshotResponse
smart constructor.
CreateSnapshotResponse' | |
|
Instances
newCreateSnapshotResponse Source #
Create a value of CreateSnapshotResponse
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:snapshot:CreateSnapshotResponse'
, createSnapshotResponse_snapshot
- Properties that provide details of the created snapshot.
$sel:httpStatus:CreateSnapshotResponse'
, createSnapshotResponse_httpStatus
- The response's http status code.
Response Lenses
createSnapshotResponse_snapshot :: Lens' CreateSnapshotResponse (Maybe SnapshotDetails) Source #
Properties that provide details of the created snapshot.
createSnapshotResponse_httpStatus :: Lens' CreateSnapshotResponse Int Source #
The response's http status code.