Copyright | (c) 2013-2021 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 |
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.
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:jobId: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.
CancelJobResponse' | |
|
Instances
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.