Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Amazonka.DeviceFarm.StopJob
Description
Initiates a stop request for the current job. AWS Device Farm immediately stops the job on the device where tests have not started. You are not billed for this device. On the device where tests have started, setup suite and teardown suite tests run to completion on the device. You are billed for setup, teardown, and any tests that were in progress or already completed.
Synopsis
- data StopJob = StopJob' {}
- newStopJob :: Text -> StopJob
- stopJob_arn :: Lens' StopJob Text
- data StopJobResponse = StopJobResponse' {
- job :: Maybe Job
- httpStatus :: Int
- newStopJobResponse :: Int -> StopJobResponse
- stopJobResponse_job :: Lens' StopJobResponse (Maybe Job)
- stopJobResponse_httpStatus :: Lens' StopJobResponse Int
Creating a Request
See: newStopJob
smart constructor.
Constructors
StopJob' | |
Instances
Create a value of StopJob
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:arn:StopJob'
, stopJob_arn
- Represents the Amazon Resource Name (ARN) of the Device Farm job to
stop.
Request Lenses
stopJob_arn :: Lens' StopJob Text Source #
Represents the Amazon Resource Name (ARN) of the Device Farm job to stop.
Destructuring the Response
data StopJobResponse Source #
See: newStopJobResponse
smart constructor.
Constructors
StopJobResponse' | |
Fields
|
Instances
Arguments
:: Int | |
-> StopJobResponse |
Create a value of StopJobResponse
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:StopJobResponse'
, stopJobResponse_job
- The job that was stopped.
$sel:httpStatus:StopJobResponse'
, stopJobResponse_httpStatus
- The response's http status code.
Response Lenses
stopJobResponse_job :: Lens' StopJobResponse (Maybe Job) Source #
The job that was stopped.
stopJobResponse_httpStatus :: Lens' StopJobResponse Int Source #
The response's http status code.