CancelJobRequest
import type { CancelJobRequest } from "https://aws-api.deno.dev/v0.3/services/iot.ts?docs=full";
interface CancelJobRequest {
comment?: string | null;
force?: boolean | null;
jobId: string;
reasonCode?: string | null;
}§Properties
§
force?: boolean | null
[src](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.