Skip to content

CancelJobRun

Source: src/AWS/EMRContainers/CancelJobRun.ts

Runtime binding for emr-containers:CancelJobRun.

Cancels a job run on the bound VirtualCluster. The virtual cluster ID is injected from the binding; pass the job run id returned by StartJobRun. Provide the implementation with Effect.provide(AWS.EMRContainers.CancelJobRunHttp).

// init
const cancelJobRun = yield* AWS.EMRContainers.CancelJobRun(virtualCluster);
// runtime
yield* cancelJobRun({ id: jobRunId });