| 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.ElasticTranscoder.CancelJob
Description
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.
Synopsis
- data CancelJob = CancelJob' {}
- newCancelJob :: Text -> CancelJob
- cancelJob_id :: Lens' CancelJob Text
- data CancelJobResponse = CancelJobResponse' {
- httpStatus :: Int
- newCancelJobResponse :: Int -> CancelJobResponse
- cancelJobResponse_httpStatus :: Lens' CancelJobResponse Int
Creating a Request
The CancelJobRequest structure.
See: newCancelJob smart constructor.
Constructors
| CancelJob' | |
Instances
Create a value of CancelJob 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:id:CancelJob', cancelJob_id - 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.
Request Lenses
cancelJob_id :: 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
data CancelJobResponse Source #
The response body contains a JSON object. If the job is successfully
canceled, the value of Success is true.
See: newCancelJobResponse smart constructor.
Constructors
| CancelJobResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> CancelJobResponse |
Create a value of CancelJobResponse 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:httpStatus:CancelJobResponse', cancelJobResponse_httpStatus - The response's http status code.
Response Lenses
cancelJobResponse_httpStatus :: Lens' CancelJobResponse Int Source #
The response's http status code.