| 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.StartTest
Description
Launches a Test Instance for specific Source Servers. This command starts a LAUNCH job whose initiatedBy property is StartTest and changes the SourceServer.lifeCycle.state property to TESTING.
Synopsis
- data StartTest = StartTest' {}
- newStartTest :: NonEmpty Text -> StartTest
- startTest_tags :: Lens' StartTest (Maybe (HashMap Text Text))
- startTest_sourceServerIDs :: Lens' StartTest (NonEmpty Text)
- data StartTestResponse = StartTestResponse' {
- job :: Maybe Job
- httpStatus :: Int
- newStartTestResponse :: Int -> StartTestResponse
- startTestResponse_job :: Lens' StartTestResponse (Maybe Job)
- startTestResponse_httpStatus :: Lens' StartTestResponse Int
Creating a Request
See: newStartTest smart constructor.
Constructors
| StartTest' | |
Instances
Create a value of StartTest 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:
StartTest, startTest_tags - Start Test by Tags.
StartTest, startTest_sourceServerIDs - Start Test for Source Server IDs.
Request Lenses
startTest_sourceServerIDs :: Lens' StartTest (NonEmpty Text) Source #
Start Test for Source Server IDs.
Destructuring the Response
data StartTestResponse Source #
See: newStartTestResponse smart constructor.
Constructors
| StartTestResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> StartTestResponse |
Create a value of StartTestResponse 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:StartTestResponse', startTestResponse_job - Start Test Job response.
$sel:httpStatus:StartTestResponse', startTestResponse_httpStatus - The response's http status code.
Response Lenses
startTestResponse_job :: Lens' StartTestResponse (Maybe Job) Source #
Start Test Job response.
startTestResponse_httpStatus :: Lens' StartTestResponse Int Source #
The response's http status code.