AWS SDK Version 3 for .NET
API Reference

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 CancelJob operation. Cancels a job.

Requires permission to access the CancelJob action.

Inheritance Hierarchy


Namespace: Amazon.IoT.Model
Assembly: AWSSDK.IoT.dll
Version: 3.x.y.z


public class CancelJobRequest : AmazonIoTRequest

The CancelJobRequest type exposes the following members


Public Method CancelJobRequest()


Public Property Comment System.String

Gets and sets the property Comment.

An optional comment string describing why the job was canceled.

Public Property Force System.Boolean

Gets and sets the property 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.

Public Property JobId System.String

Gets and sets the property JobId.

The unique identifier you assigned to this job when it was created.

Public Property ReasonCode System.String

Gets and sets the property ReasonCode.

(Optional)A reason code string that explains why the job was canceled.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5