| 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.DeleteJobExecution
Description
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.
Constructors
| DeleteJobExecution' | |
Fields
| |
Instances
newDeleteJobExecution Source #
Arguments
| :: 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.
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.
DeleteJobExecution, deleteJobExecution_jobId - The ID of the job whose execution on a particular device will be
deleted.
DeleteJobExecution, deleteJobExecution_thingName - The name of the thing whose job execution will be deleted.
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.
Constructors
| DeleteJobExecutionResponse' | |
Instances
newDeleteJobExecutionResponse :: DeleteJobExecutionResponse Source #
Create a value of DeleteJobExecutionResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.