| Copyright | (c) 2013-2015 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.ImportExport.CancelJob
Description
This operation cancels a specified job. Only the job owner can cancel it. The operation fails if the job has already started or is complete.
See: AWS API Reference for CancelJob.
- cancelJob :: Text -> CancelJob
- data CancelJob
- cAPIVersion :: Lens' CancelJob (Maybe Text)
- cJobId :: Lens' CancelJob Text
- cancelJobResponse :: Int -> CancelJobResponse
- data CancelJobResponse
- crsSuccess :: Lens' CancelJobResponse (Maybe Bool)
- crsStatus :: 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:
Input structure for the CancelJob operation.
See: cancelJob smart constructor.
Request Lenses
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:
data CancelJobResponse Source
Output structure for the CancelJob operation.
See: cancelJobResponse smart constructor.
Response Lenses
crsSuccess :: Lens' CancelJobResponse (Maybe Bool) Source
Undocumented member.
crsStatus :: Lens' CancelJobResponse Int Source
The response status code.