@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 34 lines 1.2 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
5 /**
6 * Runtime binding for `mediaconnect:ListFlows`.
7 *
8 * Enumerates the account's MediaConnect flows (one page per call — pass
9 * `NextToken` from the previous response to continue). Account-level: the
10 * deploy-time grant is `mediaconnect:ListFlows` on `*`. Provide the
11 * implementation with `Effect.provide(AWS.MediaConnect.ListFlowsHttp)`.
12 * ### Observing Flows
13 * **Example:** Enumerate the Account's Flows
14 * ```typescript
15 * // init — bind the account-level operation
16 * const listFlows = yield* AWS.MediaConnect.ListFlows();
17 *
18 * // runtime
19 * const { Flows } = yield* listFlows({ MaxResults: 20 });
20 * const active = (Flows ?? []).filter((f) => f.Status === "ACTIVE");
21 * ```
22 *
23 * @binding
24 */
25 export interface ListFlows extends Binding.Service<
26 ListFlows,
27 "AWS.MediaConnect.ListFlows",
28 () => Effect.Effect<
29 (
30 request?: mediaconnect.ListFlowsRequest,
31 ) => Effect.Effect<mediaconnect.ListFlowsResponse, mediaconnect.ListFlowsError>
32 >
33 > {}
34 export const ListFlows = Binding.Service<ListFlows>("AWS.MediaConnect.ListFlows");