| 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.CancelJob
Description
Cancels a job in an AWS Batch job queue. Jobs that are in the SUBMITTED , PENDING , or RUNNABLE state are cancelled. Jobs that have progressed to STARTING or RUNNING are not cancelled (but the API operation still succeeds, even if no job is cancelled); these jobs must be terminated with the TerminateJob operation.
- cancelJob :: Text -> Text -> CancelJob
- data CancelJob
- cjJobId :: Lens' CancelJob Text
- cjReason :: Lens' CancelJob Text
- cancelJobResponse :: Int -> CancelJobResponse
- data CancelJobResponse
- cjrsResponseStatus :: Lens' CancelJobResponse Int
Creating a Request
Creates a value of CancelJob with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
See: cancelJob smart constructor.
Instances
Request Lenses
cjReason :: 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 AWS Batch activity logs.
Destructuring the Response
Arguments
| :: Int | |
| -> CancelJobResponse |
Creates a value of CancelJobResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cjrsResponseStatus- -- | The response status code.
data CancelJobResponse Source #
See: cancelJobResponse smart constructor.
Response Lenses
cjrsResponseStatus :: Lens' CancelJobResponse Int Source #
- - | The response status code.