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 |
Deletes a job execution.
Requires permission to access the DeleteJobExecution action.
Synopsis
- data DeleteJobExecution = DeleteJobExecution' {}
- newDeleteJobExecution :: Text -> Text -> Integer -> DeleteJobExecution
- deleteJobExecution_force :: Lens' DeleteJobExecution (Maybe Bool)
- deleteJobExecution_namespaceId :: Lens' DeleteJobExecution (Maybe Text)
- deleteJobExecution_jobId :: Lens' DeleteJobExecution Text
- deleteJobExecution_thingName :: Lens' DeleteJobExecution Text
- deleteJobExecution_executionNumber :: Lens' DeleteJobExecution Integer
- data DeleteJobExecutionResponse = DeleteJobExecutionResponse' {
- newDeleteJobExecutionResponse :: DeleteJobExecutionResponse
Creating a Request
data DeleteJobExecution Source #
See: newDeleteJobExecution
smart constructor.
DeleteJobExecution' | |
|
Instances
newDeleteJobExecution Source #
:: Text | |
-> Text | |
-> Integer | |
-> DeleteJobExecution |
Create a value of DeleteJobExecution
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:DeleteJobExecution'
, deleteJobExecution_force
- (Optional) When true, you can delete a job execution which is
"IN_PROGRESS". Otherwise, you can only delete a job execution which is
in a terminal state ("SUCCEEDED", "FAILED", "REJECTED",
"REMOVED" or "CANCELED") or an exception will occur. The default is
false.
Deleting a job execution which is "IN_PROGRESS", will cause the device to be unable to access job information or update the job execution status. Use caution and ensure that the device is able to recover to a valid state.
$sel:namespaceId:DeleteJobExecution'
, deleteJobExecution_namespaceId
- The namespace used to indicate that a job is a customer-managed job.
When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs notifications to MQTT topics that contain the value in the following format.
$aws/things/THING_NAME/jobs/JOB_ID/notify-namespace-NAMESPACE_ID/
The namespaceId
feature is in public preview.
$sel:jobId:DeleteJobExecution'
, deleteJobExecution_jobId
- The ID of the job whose execution on a particular device will be
deleted.
$sel:thingName:DeleteJobExecution'
, deleteJobExecution_thingName
- The name of the thing whose job execution will be deleted.
$sel:executionNumber:DeleteJobExecution'
, deleteJobExecution_executionNumber
- The ID of the job execution to be deleted. The executionNumber
refers
to the execution of a particular job on a particular device.
Note that once a job execution is deleted, the executionNumber
may be
reused by IoT, so be sure you get and use the correct value here.
Request Lenses
deleteJobExecution_force :: Lens' DeleteJobExecution (Maybe Bool) Source #
(Optional) When true, you can delete a job execution which is "IN_PROGRESS". Otherwise, you can only delete a job execution which is in a terminal state ("SUCCEEDED", "FAILED", "REJECTED", "REMOVED" or "CANCELED") or an exception will occur. The default is false.
Deleting a job execution which is "IN_PROGRESS", will cause the device to be unable to access job information or update the job execution status. Use caution and ensure that the device is able to recover to a valid state.
deleteJobExecution_namespaceId :: Lens' DeleteJobExecution (Maybe Text) Source #
The namespace used to indicate that a job is a customer-managed job.
When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs notifications to MQTT topics that contain the value in the following format.
$aws/things/THING_NAME/jobs/JOB_ID/notify-namespace-NAMESPACE_ID/
The namespaceId
feature is in public preview.
deleteJobExecution_jobId :: Lens' DeleteJobExecution Text Source #
The ID of the job whose execution on a particular device will be deleted.
deleteJobExecution_thingName :: Lens' DeleteJobExecution Text Source #
The name of the thing whose job execution will be deleted.
deleteJobExecution_executionNumber :: Lens' DeleteJobExecution Integer Source #
The ID of the job execution to be deleted. The executionNumber
refers
to the execution of a particular job on a particular device.
Note that once a job execution is deleted, the executionNumber
may be
reused by IoT, so be sure you get and use the correct value here.
Destructuring the Response
data DeleteJobExecutionResponse Source #
See: newDeleteJobExecutionResponse
smart constructor.
Instances
newDeleteJobExecutionResponse :: DeleteJobExecutionResponse Source #
Create a value of DeleteJobExecutionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.