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 a job.
Requires permission to access the CancelJob action.
Synopsis
- data CancelJob = CancelJob' {}
- newCancelJob :: Text -> CancelJob
- cancelJob_force :: Lens' CancelJob (Maybe Bool)
- cancelJob_reasonCode :: Lens' CancelJob (Maybe Text)
- cancelJob_comment :: Lens' CancelJob (Maybe Text)
- cancelJob_jobId :: Lens' CancelJob Text
- data CancelJobResponse = CancelJobResponse' {}
- newCancelJobResponse :: Int -> CancelJobResponse
- cancelJobResponse_jobId :: Lens' CancelJobResponse (Maybe Text)
- cancelJobResponse_jobArn :: Lens' CancelJobResponse (Maybe Text)
- cancelJobResponse_description :: Lens' CancelJobResponse (Maybe Text)
- cancelJobResponse_httpStatus :: Lens' CancelJobResponse Int
Creating a Request
See: newCancelJob
smart constructor.
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:
$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.
$sel:reasonCode:CancelJob'
, cancelJob_reasonCode
- (Optional)A reason code string that explains why the job was canceled.
$sel:comment:CancelJob'
, cancelJob_comment
- An optional comment string describing why the job was canceled.
$sel:jobId:CancelJob'
, cancelJob_jobId
- The unique identifier you assigned to this job when it was created.
Request Lenses
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_comment :: Lens' CancelJob (Maybe Text) Source #
An optional comment string describing 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.
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:jobId:CancelJob'
, cancelJobResponse_jobId
- The unique identifier you assigned to this job when it was created.
$sel:jobArn:CancelJobResponse'
, cancelJobResponse_jobArn
- The job ARN.
$sel:description:CancelJobResponse'
, cancelJobResponse_description
- A short text description of the job.
$sel:httpStatus:CancelJobResponse'
, cancelJobResponse_httpStatus
- The response's http status code.
Response Lenses
cancelJobResponse_jobId :: Lens' CancelJobResponse (Maybe Text) Source #
The unique identifier you assigned to this job when it was created.
cancelJobResponse_jobArn :: Lens' CancelJobResponse (Maybe Text) Source #
The job ARN.
cancelJobResponse_description :: Lens' CancelJobResponse (Maybe Text) Source #
A short text description of the job.
cancelJobResponse_httpStatus :: Lens' CancelJobResponse Int Source #
The response's http status code.