Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
The CancelJob operation cancels an unfinished job.
You can only cancel a job that has a status of Submitted
. To prevent a
pipeline from starting to process a job while you're getting the job
identifier, use UpdatePipelineStatus to temporarily pause the pipeline.
See: AWS API Reference for CancelJob.
- cancelJob :: Text -> CancelJob
- data CancelJob
- cjId :: Lens' CancelJob Text
- cancelJobResponse :: Int -> CancelJobResponse
- data CancelJobResponse
- canrsStatus :: Lens' CancelJobResponse Int
Creating a Request
The CancelJobRequest
structure.
See: cancelJob
smart constructor.
Request Lenses
cjId :: Lens' CancelJob Text Source
The identifier of the job that you want to cancel.
To get a list of the jobs (including their jobId
) that have a status
of Submitted
, use the ListJobsByStatus API action.
Destructuring the Response
Creates a value of CancelJobResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CancelJobResponse Source
The response body contains a JSON object. If the job is successfully
canceled, the value of Success
is true
.
See: cancelJobResponse
smart constructor.
Response Lenses
canrsStatus :: Lens' CancelJobResponse Int Source
The response status code.