| 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.DrS.StartRecovery
Description
Launches Recovery Instances for the specified Source Servers. For each Source Server you may choose a point in time snapshot to launch from, or use an on demand snapshot.
Synopsis
- data StartRecovery = StartRecovery' {}
- newStartRecovery :: NonEmpty StartRecoveryRequestSourceServer -> StartRecovery
- startRecovery_isDrill :: Lens' StartRecovery (Maybe Bool)
- startRecovery_tags :: Lens' StartRecovery (Maybe (HashMap Text Text))
- startRecovery_sourceServers :: Lens' StartRecovery (NonEmpty StartRecoveryRequestSourceServer)
- data StartRecoveryResponse = StartRecoveryResponse' {
- job :: Maybe Job
- httpStatus :: Int
- newStartRecoveryResponse :: Int -> StartRecoveryResponse
- startRecoveryResponse_job :: Lens' StartRecoveryResponse (Maybe Job)
- startRecoveryResponse_httpStatus :: Lens' StartRecoveryResponse Int
Creating a Request
data StartRecovery Source #
See: newStartRecovery smart constructor.
Constructors
| StartRecovery' | |
Fields | |
Instances
Arguments
| :: NonEmpty StartRecoveryRequestSourceServer | |
| -> StartRecovery |
Create a value of StartRecovery 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:
StartRecovery, startRecovery_isDrill - Whether this Source Server Recovery operation is a drill or not.
StartRecovery, startRecovery_tags - The tags to be associated with the Recovery Job.
$sel:sourceServers:StartRecovery', startRecovery_sourceServers - The Source Servers that we want to start a Recovery Job for.
Request Lenses
startRecovery_isDrill :: Lens' StartRecovery (Maybe Bool) Source #
Whether this Source Server Recovery operation is a drill or not.
startRecovery_tags :: Lens' StartRecovery (Maybe (HashMap Text Text)) Source #
The tags to be associated with the Recovery Job.
startRecovery_sourceServers :: Lens' StartRecovery (NonEmpty StartRecoveryRequestSourceServer) Source #
The Source Servers that we want to start a Recovery Job for.
Destructuring the Response
data StartRecoveryResponse Source #
See: newStartRecoveryResponse smart constructor.
Constructors
| StartRecoveryResponse' | |
Fields
| |
Instances
newStartRecoveryResponse Source #
Create a value of StartRecoveryResponse 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:job:StartRecoveryResponse', startRecoveryResponse_job - The Recovery Job.
$sel:httpStatus:StartRecoveryResponse', startRecoveryResponse_httpStatus - The response's http status code.
Response Lenses
startRecoveryResponse_job :: Lens' StartRecoveryResponse (Maybe Job) Source #
The Recovery Job.
startRecoveryResponse_httpStatus :: Lens' StartRecoveryResponse Int Source #
The response's http status code.