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

main
ts 34 lines 1.2 KB
Raw
1 import type * as mediatailor from "@distilled.cloud/aws/mediatailor";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `mediatailor:GetChannelSchedule` — read the current
7 * schedule (programs + ad breaks) of a channel-assembly channel.
8 *
9 * Channel names are runtime parameters, so the binding is account-level and
10 * grants `mediatailor:GetChannelSchedule` on `*`. Provide the implementation
11 * with `Effect.provide(AWS.MediaTailor.GetChannelScheduleHttp)`.
12 *
13 * ### Channel Assembly
14 * **Example:** Read a channel's schedule
15 * ```typescript
16 * const getChannelSchedule = yield* AWS.MediaTailor.GetChannelSchedule();
17 *
18 * const { Items } = yield* getChannelSchedule({ ChannelName: "my-channel" });
19 * ```
20 *
21 * @binding
22 */
23 export interface GetChannelSchedule extends Binding.Service<
24 GetChannelSchedule,
25 "AWS.MediaTailor.GetChannelSchedule",
26 () => Effect.Effect<
27 (
28 request: mediatailor.GetChannelScheduleRequest,
29 ) => Effect.Effect<mediatailor.GetChannelScheduleResponse, mediatailor.GetChannelScheduleError>
30 >
31 > {}
32 export const GetChannelSchedule = Binding.Service<GetChannelSchedule>(
33 "AWS.MediaTailor.GetChannelSchedule",
34 );