| 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.ConvertRecoveryPointToSnapshot
Description
Converts a recovery point to a snapshot. For more information about recovery points and snapshots, see Working with snapshots and recovery points.
Synopsis
- data ConvertRecoveryPointToSnapshot = ConvertRecoveryPointToSnapshot' {
- retentionPeriod :: Maybe Int
- tags :: Maybe [Tag]
- recoveryPointId :: Text
- snapshotName :: Text
- newConvertRecoveryPointToSnapshot :: Text -> Text -> ConvertRecoveryPointToSnapshot
- convertRecoveryPointToSnapshot_retentionPeriod :: Lens' ConvertRecoveryPointToSnapshot (Maybe Int)
- convertRecoveryPointToSnapshot_tags :: Lens' ConvertRecoveryPointToSnapshot (Maybe [Tag])
- convertRecoveryPointToSnapshot_recoveryPointId :: Lens' ConvertRecoveryPointToSnapshot Text
- convertRecoveryPointToSnapshot_snapshotName :: Lens' ConvertRecoveryPointToSnapshot Text
- data ConvertRecoveryPointToSnapshotResponse = ConvertRecoveryPointToSnapshotResponse' {
- snapshot :: Maybe Snapshot
- httpStatus :: Int
- newConvertRecoveryPointToSnapshotResponse :: Int -> ConvertRecoveryPointToSnapshotResponse
- convertRecoveryPointToSnapshotResponse_snapshot :: Lens' ConvertRecoveryPointToSnapshotResponse (Maybe Snapshot)
- convertRecoveryPointToSnapshotResponse_httpStatus :: Lens' ConvertRecoveryPointToSnapshotResponse Int
Creating a Request
data ConvertRecoveryPointToSnapshot Source #
See: newConvertRecoveryPointToSnapshot smart constructor.
Constructors
| ConvertRecoveryPointToSnapshot' | |
Fields
| |
Instances
newConvertRecoveryPointToSnapshot Source #
Arguments
| :: Text | |
| -> Text | |
| -> ConvertRecoveryPointToSnapshot |
Create a value of ConvertRecoveryPointToSnapshot 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:ConvertRecoveryPointToSnapshot', convertRecoveryPointToSnapshot_retentionPeriod - How long to retain the snapshot.
$sel:tags:ConvertRecoveryPointToSnapshot', convertRecoveryPointToSnapshot_tags - An array of
Tag objects
to associate with the created snapshot.
ConvertRecoveryPointToSnapshot, convertRecoveryPointToSnapshot_recoveryPointId - The unique identifier of the recovery point.
ConvertRecoveryPointToSnapshot, convertRecoveryPointToSnapshot_snapshotName - The name of the snapshot.
Request Lenses
convertRecoveryPointToSnapshot_retentionPeriod :: Lens' ConvertRecoveryPointToSnapshot (Maybe Int) Source #
How long to retain the snapshot.
convertRecoveryPointToSnapshot_tags :: Lens' ConvertRecoveryPointToSnapshot (Maybe [Tag]) Source #
An array of Tag objects to associate with the created snapshot.
convertRecoveryPointToSnapshot_recoveryPointId :: Lens' ConvertRecoveryPointToSnapshot Text Source #
The unique identifier of the recovery point.
convertRecoveryPointToSnapshot_snapshotName :: Lens' ConvertRecoveryPointToSnapshot Text Source #
The name of the snapshot.
Destructuring the Response
data ConvertRecoveryPointToSnapshotResponse Source #
See: newConvertRecoveryPointToSnapshotResponse smart constructor.
Constructors
| ConvertRecoveryPointToSnapshotResponse' | |
Fields
| |
Instances
newConvertRecoveryPointToSnapshotResponse Source #
Arguments
| :: Int | |
| -> ConvertRecoveryPointToSnapshotResponse |
Create a value of ConvertRecoveryPointToSnapshotResponse 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:ConvertRecoveryPointToSnapshotResponse', convertRecoveryPointToSnapshotResponse_snapshot - The snapshot converted from the recovery point.
$sel:httpStatus:ConvertRecoveryPointToSnapshotResponse', convertRecoveryPointToSnapshotResponse_httpStatus - The response's http status code.
Response Lenses
convertRecoveryPointToSnapshotResponse_snapshot :: Lens' ConvertRecoveryPointToSnapshotResponse (Maybe Snapshot) Source #
The snapshot converted from the recovery point.
convertRecoveryPointToSnapshotResponse_httpStatus :: Lens' ConvertRecoveryPointToSnapshotResponse Int Source #
The response's http status code.