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 |
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.
Instances
Eq StopJob Source # | |
Read StopJob Source # | |
Show StopJob Source # | |
Generic StopJob Source # | |
NFData StopJob Source # | |
Defined in Amazonka.DeviceFarm.StopJob | |
Hashable StopJob Source # | |
Defined in Amazonka.DeviceFarm.StopJob | |
ToJSON StopJob Source # | |
Defined in Amazonka.DeviceFarm.StopJob | |
AWSRequest StopJob Source # | |
Defined in Amazonka.DeviceFarm.StopJob type AWSResponse StopJob # request :: StopJob -> Request StopJob # response :: MonadResource m => Logger -> Service -> Proxy StopJob -> ClientResponse ClientBody -> m (Either Error (ClientResponse (AWSResponse StopJob))) # | |
ToHeaders StopJob Source # | |
Defined in Amazonka.DeviceFarm.StopJob | |
ToPath StopJob Source # | |
Defined in Amazonka.DeviceFarm.StopJob toPath :: StopJob -> ByteString # | |
ToQuery StopJob Source # | |
Defined in Amazonka.DeviceFarm.StopJob toQuery :: StopJob -> QueryString # | |
type Rep StopJob Source # | |
Defined in Amazonka.DeviceFarm.StopJob | |
type AWSResponse StopJob Source # | |
Defined in Amazonka.DeviceFarm.StopJob |
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.
StopJobResponse' | |
|
Instances
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.