Skip to content

GetHarvestJob

Source: src/AWS/MediaPackageV2/GetHarvestJob.ts

Runtime binding for mediapackagev2:GetHarvestJob.

Reads the status of a harvest job on the bound OriginEndpoint — e.g. polling until a clip export reaches COMPLETED before publishing the VOD asset. The endpoint’s group, channel, and name are injected from the binding. Provide the implementation with Effect.provide(AWS.MediaPackageV2.GetHarvestJobHttp).

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