@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 35 lines 1.23 KB
Raw
1 import type * as medialive from "@distilled.cloud/aws/medialive";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Channel } from "./Channel.ts";
5
6 /**
7 * Runtime binding for `medialive:DeleteSchedule`.
8 *
9 * Clears every scheduled action from the bound {@link Channel}'s schedule
10 * in one call — the reset lever a playout-automation Lambda pulls before
11 * programming a fresh broadcast rundown with {@link BatchUpdateSchedule}.
12 * The channel id is injected from the binding. Provide the implementation
13 * with `Effect.provide(AWS.MediaLive.DeleteScheduleHttp)`.
14 * ### Driving the Channel Schedule
15 * **Example:** Reset the Channel's Schedule
16 * ```typescript
17 * // init — bind the operation to the channel
18 * const deleteSchedule = yield* AWS.MediaLive.DeleteSchedule(channel);
19 *
20 * // runtime
21 * yield* deleteSchedule();
22 * ```
23 *
24 * @binding
25 */
26 export interface DeleteSchedule extends Binding.Service<
27 DeleteSchedule,
28 "AWS.MediaLive.DeleteSchedule",
29 (
30 channel: Channel,
31 ) => Effect.Effect<
32 () => Effect.Effect<medialive.DeleteScheduleResponse, medialive.DeleteScheduleError>
33 >
34 > {}
35 export const DeleteSchedule = Binding.Service<DeleteSchedule>("AWS.MediaLive.DeleteSchedule");