@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 36 lines 1.26 KB
Raw
1 import type * as mediaconnect from "@distilled.cloud/aws/mediaconnect";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Flow } from "./Flow.ts";
5
6 /**
7 * Runtime binding for `mediaconnect:StartFlow`.
8 *
9 * Starts the bound {@link Flow}, transitioning it from `STANDBY` through
10 * `STARTING` to `ACTIVE`. An ACTIVE flow ingests and egresses media and
11 * bills hourly — pair with {@link StopFlow} to control transport cost
12 * (e.g. a scheduler Lambda that runs the flow only during broadcast
13 * windows). The flow ARN is injected from the binding. Provide the
14 * implementation with `Effect.provide(AWS.MediaConnect.StartFlowHttp)`.
15 * ### Controlling Flows
16 * **Example:** Start the Flow for a Broadcast Window
17 * ```typescript
18 * // init — bind the operation to the flow
19 * const startFlow = yield* AWS.MediaConnect.StartFlow(flow);
20 *
21 * // runtime
22 * const { Status } = yield* startFlow();
23 * ```
24 *
25 * @binding
26 */
27 export interface StartFlow extends Binding.Service<
28 StartFlow,
29 "AWS.MediaConnect.StartFlow",
30 (
31 flow: Flow,
32 ) => Effect.Effect<
33 () => Effect.Effect<mediaconnect.StartFlowResponse, mediaconnect.StartFlowError>
34 >
35 > {}
36 export const StartFlow = Binding.Service<StartFlow>("AWS.MediaConnect.StartFlow");