| 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.MGN.StartCutover
Description
Launches a Cutover Instance for specific Source Servers. This command starts a LAUNCH job whose initiatedBy property is StartCutover and changes the SourceServer.lifeCycle.state property to CUTTING_OVER.
Synopsis
- data StartCutover = StartCutover' {}
- newStartCutover :: NonEmpty Text -> StartCutover
- startCutover_tags :: Lens' StartCutover (Maybe (HashMap Text Text))
- startCutover_sourceServerIDs :: Lens' StartCutover (NonEmpty Text)
- data StartCutoverResponse = StartCutoverResponse' {
- job :: Maybe Job
- httpStatus :: Int
- newStartCutoverResponse :: Int -> StartCutoverResponse
- startCutoverResponse_job :: Lens' StartCutoverResponse (Maybe Job)
- startCutoverResponse_httpStatus :: Lens' StartCutoverResponse Int
Creating a Request
data StartCutover Source #
See: newStartCutover smart constructor.
Constructors
| StartCutover' | |
Instances
Arguments
| :: NonEmpty Text | |
| -> StartCutover |
Create a value of StartCutover 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:
StartCutover, startCutover_tags - Start Cutover by Tags.
StartCutover, startCutover_sourceServerIDs - Start Cutover by Source Server IDs.
Request Lenses
startCutover_tags :: Lens' StartCutover (Maybe (HashMap Text Text)) Source #
Start Cutover by Tags.
startCutover_sourceServerIDs :: Lens' StartCutover (NonEmpty Text) Source #
Start Cutover by Source Server IDs.
Destructuring the Response
data StartCutoverResponse Source #
See: newStartCutoverResponse smart constructor.
Constructors
| StartCutoverResponse' | |
Fields
| |
Instances
newStartCutoverResponse Source #
Arguments
| :: Int | |
| -> StartCutoverResponse |
Create a value of StartCutoverResponse 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:StartCutoverResponse', startCutoverResponse_job - Start Cutover Job response.
$sel:httpStatus:StartCutoverResponse', startCutoverResponse_httpStatus - The response's http status code.
Response Lenses
startCutoverResponse_job :: Lens' StartCutoverResponse (Maybe Job) Source #
Start Cutover Job response.
startCutoverResponse_httpStatus :: Lens' StartCutoverResponse Int Source #
The response's http status code.