@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
ts 39 lines 1.4 KB
Raw
1 import type * as mediapackagev2 from "@distilled.cloud/aws/mediapackagev2";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { ChannelGroup } from "./ChannelGroup.ts";
5
6 /**
7 * Runtime binding for `mediapackagev2:ListHarvestJobs`.
8 *
9 * Enumerates the harvest jobs in the bound {@link ChannelGroup}, optionally
10 * filtered by channel, endpoint, or status — e.g. a dashboard Lambda
11 * listing in-progress clip exports. The group's name is injected from the
12 * binding. Provide the implementation with
13 * `Effect.provide(AWS.MediaPackageV2.ListHarvestJobsHttp)`.
14 * ### Harvesting Live-to-VOD Clips
15 * **Example:** List the Group's Queued Harvest Jobs
16 * ```typescript
17 * // init — bind the operation to the channel group
18 * const listHarvestJobs = yield* AWS.MediaPackageV2.ListHarvestJobs(group);
19 *
20 * // runtime
21 * const { Items } = yield* listHarvestJobs({ Status: "QUEUED" });
22 * ```
23 *
24 * @binding
25 */
26 export interface ListHarvestJobs extends Binding.Service<
27 ListHarvestJobs,
28 "AWS.MediaPackageV2.ListHarvestJobs",
29 (
30 group: ChannelGroup,
31 ) => Effect.Effect<
32 (
33 request?: Omit<mediapackagev2.ListHarvestJobsRequest, "ChannelGroupName">,
34 ) => Effect.Effect<mediapackagev2.ListHarvestJobsResponse, mediapackagev2.ListHarvestJobsError>
35 >
36 > {}
37 export const ListHarvestJobs = Binding.Service<ListHarvestJobs>(
38 "AWS.MediaPackageV2.ListHarvestJobs",
39 );