| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.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.
Synopsis
- data CancelJob = CancelJob' {
- aPIVersion :: Maybe Text
- jobId :: Text
- newCancelJob :: Text -> CancelJob
- cancelJob_aPIVersion :: Lens' CancelJob (Maybe Text)
- cancelJob_jobId :: Lens' CancelJob Text
- data CancelJobResponse = CancelJobResponse' {
- success :: Maybe Bool
- httpStatus :: Int
- newCancelJobResponse :: Int -> CancelJobResponse
- cancelJobResponse_success :: Lens' CancelJobResponse (Maybe Bool)
- cancelJobResponse_httpStatus :: Lens' CancelJobResponse Int
Creating a Request
Input structure for the CancelJob operation.
See: newCancelJob smart constructor.
Constructors
| CancelJob' | |
Fields
| |
Instances
Create a value of CancelJob with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:aPIVersion:CancelJob', cancelJob_aPIVersion - Undocumented member.
CancelJob, cancelJob_jobId - Undocumented member.
Request Lenses
Destructuring the Response
data CancelJobResponse Source #
Output structure for the CancelJob operation.
See: newCancelJobResponse smart constructor.
Constructors
| CancelJobResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> CancelJobResponse |
Create a value of CancelJobResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:success:CancelJobResponse', cancelJobResponse_success - Undocumented member.
$sel:httpStatus:CancelJobResponse', cancelJobResponse_httpStatus - The response's http status code.
Response Lenses
cancelJobResponse_success :: Lens' CancelJobResponse (Maybe Bool) Source #
Undocumented member.
cancelJobResponse_httpStatus :: Lens' CancelJobResponse Int Source #
The response's http status code.