| 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 |
Network.AWS.Batch.TerminateJob
Description
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.
Creating a Request
Arguments
| :: 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
Arguments
| :: Int | |
| -> TerminateJobResponse |
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.
Response Lenses
tjrsResponseStatus :: Lens' TerminateJobResponse Int Source #
- - | The response status code.