| 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.IoT.CancelJob
Description
Cancels a job.
Requires permission to access the CancelJob action.
Synopsis
- data CancelJob = CancelJob' {}
- newCancelJob :: Text -> CancelJob
- cancelJob_comment :: Lens' CancelJob (Maybe Text)
- cancelJob_force :: Lens' CancelJob (Maybe Bool)
- cancelJob_reasonCode :: Lens' CancelJob (Maybe Text)
- cancelJob_jobId :: Lens' CancelJob Text
- data CancelJobResponse = CancelJobResponse' {}
- newCancelJobResponse :: Int -> CancelJobResponse
- cancelJobResponse_description :: Lens' CancelJobResponse (Maybe Text)
- cancelJobResponse_jobArn :: Lens' CancelJobResponse (Maybe Text)
- cancelJobResponse_jobId :: Lens' CancelJobResponse (Maybe Text)
- cancelJobResponse_httpStatus :: Lens' CancelJobResponse Int
Creating a Request
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:
CancelJob, cancelJob_comment - An optional comment string describing why the job was canceled.
$sel:force:CancelJob', cancelJob_force - (Optional) If true job executions with status "IN_PROGRESS" and
"QUEUED" are canceled, otherwise only job executions with status
"QUEUED" are canceled. The default is false.
Canceling a job which is "IN_PROGRESS", will cause a device which is executing the job to be unable to update the job execution status. Use caution and ensure that each device executing a job which is canceled is able to recover to a valid state.
CancelJob, cancelJob_reasonCode - (Optional)A reason code string that explains why the job was canceled.
CancelJob, cancelJob_jobId - The unique identifier you assigned to this job when it was created.
Request Lenses
cancelJob_comment :: Lens' CancelJob (Maybe Text) Source #
An optional comment string describing why the job was canceled.
cancelJob_force :: Lens' CancelJob (Maybe Bool) Source #
(Optional) If true job executions with status "IN_PROGRESS" and
"QUEUED" are canceled, otherwise only job executions with status
"QUEUED" are canceled. The default is false.
Canceling a job which is "IN_PROGRESS", will cause a device which is executing the job to be unable to update the job execution status. Use caution and ensure that each device executing a job which is canceled is able to recover to a valid state.
cancelJob_reasonCode :: Lens' CancelJob (Maybe Text) Source #
(Optional)A reason code string that explains why the job was canceled.
cancelJob_jobId :: Lens' CancelJob Text Source #
The unique identifier you assigned to this job when it was created.
Destructuring the Response
data CancelJobResponse Source #
See: newCancelJobResponse smart constructor.
Constructors
| CancelJobResponse' | |
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:
CancelJobResponse, cancelJobResponse_description - A short text description of the job.
CancelJobResponse, cancelJobResponse_jobArn - The job ARN.
CancelJob, cancelJobResponse_jobId - The unique identifier you assigned to this job when it was created.
$sel:httpStatus:CancelJobResponse', cancelJobResponse_httpStatus - The response's http status code.
Response Lenses
cancelJobResponse_description :: Lens' CancelJobResponse (Maybe Text) Source #
A short text description of the job.
cancelJobResponse_jobArn :: Lens' CancelJobResponse (Maybe Text) Source #
The job ARN.
cancelJobResponse_jobId :: Lens' CancelJobResponse (Maybe Text) Source #
The unique identifier you assigned to this job when it was created.
cancelJobResponse_httpStatus :: Lens' CancelJobResponse Int Source #
The response's http status code.