Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
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
Creating a Request
:: Text | |
-> Text | |
-> TerminateJob |
Creates a value of TerminateJob
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data TerminateJob Source #
See: terminateJob
smart constructor.
Instances
Request Lenses
tjReason :: 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 AWS Batch activity logs.
Destructuring the Response
Creates a value of TerminateJobResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
tjrsResponseStatus
- -- | The response status code.
data TerminateJobResponse Source #
See: terminateJobResponse
smart constructor.
Instances
Response Lenses
tjrsResponseStatus :: Lens' TerminateJobResponse Int Source #
- - | The response status code.