AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Container for the parameters to the CancelJobExecution operation. Cancels the execution of a job for a given thing.
Requires permission to access the CancelJobExecution action.
public class CancelJobExecutionRequest : AmazonIoTRequest IAmazonWebServiceRequest
The CancelJobExecutionRequest type exposes the following members
Gets and sets the property ExpectedVersion.
(Optional) The expected current version of the job execution. Each time you update the job execution, its version is incremented. If the version of the job execution stored in Jobs does not match, the update is rejected with a VersionMismatch error, and an ErrorResponse that contains the current job execution status data is returned. (This makes it unnecessary to perform a separate DescribeJobExecution request in order to obtain the job execution status data.)
Gets and sets the property Force.
Canceling a job execution which is "IN_PROGRESS", will cause the device to be unable to update the job execution status. Use caution and ensure that the device is able to recover to a valid state.
Gets and sets the property JobId.
The ID of the job to be canceled.
Gets and sets the property StatusDetails.
A collection of name/value pairs that describe the status of the job execution. If not specified, the statusDetails are unchanged. You can specify at most 10 name/value pairs.
Gets and sets the property ThingName.
The name of the thing whose execution of the job will be canceled.
.NET Core App:
Supported in: 3.1
Supported in: 2.0
Supported in: 4.5, 4.0, 3.5