| 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.Snowball.CancelJob
Description
Cancels the specified job. You can only cancel a job before its
JobState value changes to PreparingAppliance. Requesting the
ListJobs or DescribeJob action returns a job's JobState as part
of the response element data returned.
Synopsis
Creating a Request
See: newCancelJob smart constructor.
Constructors
| CancelJob' | |
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:
CancelJob, cancelJob_jobId - The 39-character job ID for the job that you want to cancel, for example
JID123e4567-e89b-12d3-a456-426655440000.
Request Lenses
cancelJob_jobId :: Lens' CancelJob Text Source #
The 39-character job ID for the job that you want to cancel, for example
JID123e4567-e89b-12d3-a456-426655440000.
Destructuring the Response
data CancelJobResponse Source #
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:httpStatus:CancelJobResponse', cancelJobResponse_httpStatus - The response's http status code.
Response Lenses
cancelJobResponse_httpStatus :: Lens' CancelJobResponse Int Source #
The response's http status code.