| Copyright | (c) 2013-2016 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.ElasticTranscoder.CancelJob
Description
The CancelJob operation cancels an unfinished job.
- cancelJob :: Text -> CancelJob
- data CancelJob
- cjId :: Lens' CancelJob Text
- cancelJobResponse :: Int -> CancelJobResponse
- data CancelJobResponse
- canrsResponseStatus :: 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:
cjId- The identifier of the job that you want to cancel. To get a list of the jobs (including theirjobId) that have a status ofSubmitted, use theListJobsByStatusAPI action.
The CancelJobRequest structure.
See: cancelJob smart constructor.
Instances
Request Lenses
cjId :: Lens' CancelJob Text Source #
The identifier of the job that you want to cancel. To get a list of the jobs (including their jobId ) that have a status of Submitted , use the ListJobsByStatus API action.
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:
canrsResponseStatus- -- | The response status code.
data CancelJobResponse Source #
The response body contains a JSON object. If the job is successfully canceled, the value of Success is true .
See: cancelJobResponse smart constructor.
Response Lenses
canrsResponseStatus :: Lens' CancelJobResponse Int Source #
- - | The response status code.