Skip to content

CancelHarvestJob

Source: src/AWS/MediaPackageV2/CancelHarvestJob.ts

Runtime binding for mediapackagev2:CancelHarvestJob.

Cancels a queued or in-progress harvest job on the bound OriginEndpoint — e.g. aborting a clip export the operator withdrew. The endpoint’s group, channel, and name are injected from the binding. Provide the implementation with Effect.provide(AWS.MediaPackageV2.CancelHarvestJobHttp).

// init — bind the operation to the endpoint
const cancelHarvestJob = yield* AWS.MediaPackageV2.CancelHarvestJob(endpoint);
// runtime
yield* cancelHarvestJob({ HarvestJobName: job.HarvestJobName });