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 |
Cancels a job in an Batch job queue. Jobs that are in the SUBMITTED
,
PENDING
, or RUNNABLE
state are canceled. Jobs that have progressed
to STARTING
or RUNNING
aren't canceled, but 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.
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:jobId:CancelJob'
, cancelJob_jobId
- The Batch job ID of the job to cancel.
$sel:reason: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.
CancelJobResponse' | |
|
Instances
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.