| 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.Batch.CancelJob
Description
Cancels a job in an Batch job queue. Jobs that are in the SUBMITTED,
PENDING, or RUNNABLE state are canceled. Jobs that progressed to the
STARTING or RUNNING state aren't canceled. However, the API
operation still succeeds, even if no job is canceled. These jobs must be
terminated with the TerminateJob operation.
Synopsis
- data CancelJob = CancelJob' {}
- newCancelJob :: Text -> Text -> CancelJob
- cancelJob_jobId :: Lens' CancelJob Text
- cancelJob_reason :: Lens' CancelJob Text
- data CancelJobResponse = CancelJobResponse' {
- httpStatus :: Int
- newCancelJobResponse :: Int -> CancelJobResponse
- cancelJobResponse_httpStatus :: Lens' CancelJobResponse Int
Creating a Request
Contains the parameters for CancelJob.
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:
CancelJob, cancelJob_jobId - The Batch job ID of the job to cancel.
CancelJob, cancelJob_reason - A message to attach to the job that explains the reason for canceling
it. This message is returned by future DescribeJobs operations on the
job. This message is also recorded in the Batch activity logs.
Request Lenses
cancelJob_reason :: Lens' CancelJob Text Source #
A message to attach to the job that explains the reason for canceling it. This message is returned by future DescribeJobs operations on the job. This message is also recorded in the Batch activity logs.
Destructuring the Response
data CancelJobResponse Source #
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.