| 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 |
Amazonka.RedshiftServerLess.UpdateSnapshot
Description
Updates a snapshot.
Synopsis
- data UpdateSnapshot = UpdateSnapshot' {}
- newUpdateSnapshot :: Text -> UpdateSnapshot
- updateSnapshot_retentionPeriod :: Lens' UpdateSnapshot (Maybe Int)
- updateSnapshot_snapshotName :: Lens' UpdateSnapshot Text
- data UpdateSnapshotResponse = UpdateSnapshotResponse' {
- snapshot :: Maybe Snapshot
- httpStatus :: Int
- newUpdateSnapshotResponse :: Int -> UpdateSnapshotResponse
- updateSnapshotResponse_snapshot :: Lens' UpdateSnapshotResponse (Maybe Snapshot)
- updateSnapshotResponse_httpStatus :: Lens' UpdateSnapshotResponse Int
Creating a Request
data UpdateSnapshot Source #
See: newUpdateSnapshot smart constructor.
Constructors
| UpdateSnapshot' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> UpdateSnapshot |
Create a value of UpdateSnapshot 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:retentionPeriod:UpdateSnapshot', updateSnapshot_retentionPeriod - The new retention period of the snapshot.
UpdateSnapshot, updateSnapshot_snapshotName - The name of the snapshot.
Request Lenses
updateSnapshot_retentionPeriod :: Lens' UpdateSnapshot (Maybe Int) Source #
The new retention period of the snapshot.
updateSnapshot_snapshotName :: Lens' UpdateSnapshot Text Source #
The name of the snapshot.
Destructuring the Response
data UpdateSnapshotResponse Source #
See: newUpdateSnapshotResponse smart constructor.
Constructors
| UpdateSnapshotResponse' | |
Fields
| |
Instances
newUpdateSnapshotResponse Source #
Create a value of UpdateSnapshotResponse 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:UpdateSnapshotResponse', updateSnapshotResponse_snapshot - The updated snapshot object.
$sel:httpStatus:UpdateSnapshotResponse', updateSnapshotResponse_httpStatus - The response's http status code.
Response Lenses
updateSnapshotResponse_snapshot :: Lens' UpdateSnapshotResponse (Maybe Snapshot) Source #
The updated snapshot object.
updateSnapshotResponse_httpStatus :: Lens' UpdateSnapshotResponse Int Source #
The response's http status code.