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 |
Exports a game configuration snapshot.
Synopsis
- data ExportSnapshot = ExportSnapshot' {
- gameName :: Text
- snapshotId :: Text
- newExportSnapshot :: Text -> Text -> ExportSnapshot
- exportSnapshot_gameName :: Lens' ExportSnapshot Text
- exportSnapshot_snapshotId :: Lens' ExportSnapshot Text
- data ExportSnapshotResponse = ExportSnapshotResponse' {
- s3Url :: Maybe Text
- httpStatus :: Int
- newExportSnapshotResponse :: Int -> ExportSnapshotResponse
- exportSnapshotResponse_s3Url :: Lens' ExportSnapshotResponse (Maybe Text)
- exportSnapshotResponse_httpStatus :: Lens' ExportSnapshotResponse Int
Creating a Request
data ExportSnapshot Source #
See: newExportSnapshot
smart constructor.
ExportSnapshot' | |
|
Instances
Create a value of ExportSnapshot
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:gameName:ExportSnapshot'
, exportSnapshot_gameName
- The name of the game.
ExportSnapshot
, exportSnapshot_snapshotId
- The identifier of the snapshot to export.
Request Lenses
exportSnapshot_gameName :: Lens' ExportSnapshot Text Source #
The name of the game.
exportSnapshot_snapshotId :: Lens' ExportSnapshot Text Source #
The identifier of the snapshot to export.
Destructuring the Response
data ExportSnapshotResponse Source #
See: newExportSnapshotResponse
smart constructor.
ExportSnapshotResponse' | |
|
Instances
newExportSnapshotResponse Source #
Create a value of ExportSnapshotResponse
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:
ExportSnapshotResponse
, exportSnapshotResponse_s3Url
- The presigned URL for the snapshot data.
This URL will be available for 10 minutes, and can be used to download the snapshot content. If the URL expires, a new one can be requested using the same operation.
$sel:httpStatus:ExportSnapshotResponse'
, exportSnapshotResponse_httpStatus
- The response's http status code.
Response Lenses
exportSnapshotResponse_s3Url :: Lens' ExportSnapshotResponse (Maybe Text) Source #
The presigned URL for the snapshot data.
This URL will be available for 10 minutes, and can be used to download the snapshot content. If the URL expires, a new one can be requested using the same operation.
exportSnapshotResponse_httpStatus :: Lens' ExportSnapshotResponse Int Source #
The response's http status code.