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 |
Terminates a job in a job queue. Jobs that are in the STARTING
or
RUNNING
state are terminated, which causes them to transition to
FAILED
. Jobs that have not progressed to the STARTING
state are
cancelled.
Synopsis
- data TerminateJob = TerminateJob' {}
- newTerminateJob :: Text -> Text -> TerminateJob
- terminateJob_jobId :: Lens' TerminateJob Text
- terminateJob_reason :: Lens' TerminateJob Text
- data TerminateJobResponse = TerminateJobResponse' {
- httpStatus :: Int
- newTerminateJobResponse :: Int -> TerminateJobResponse
- terminateJobResponse_httpStatus :: Lens' TerminateJobResponse Int
Creating a Request
data TerminateJob Source #
Contains the parameters for TerminateJob
.
See: newTerminateJob
smart constructor.
Instances
Create a value of TerminateJob
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:TerminateJob'
, terminateJob_jobId
- The Batch job ID of the job to terminate.
$sel:reason:TerminateJob'
, terminateJob_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
terminateJob_jobId :: Lens' TerminateJob Text Source #
The Batch job ID of the job to terminate.
terminateJob_reason :: Lens' TerminateJob 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 TerminateJobResponse Source #
See: newTerminateJobResponse
smart constructor.
TerminateJobResponse' | |
|
Instances
newTerminateJobResponse Source #
Create a value of TerminateJobResponse
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:TerminateJobResponse'
, terminateJobResponse_httpStatus
- The response's http status code.
Response Lenses
terminateJobResponse_httpStatus :: Lens' TerminateJobResponse Int Source #
The response's http status code.