@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.17 KB
Raw
1 import * as cloudwatch from "@distilled.cloud/aws/cloudwatch";
2 import * as Binding from "alchemy/Binding";
3 import * as Effect from "effect/Effect";
4
5 export interface ListDashboardsRequest extends cloudwatch.ListDashboardsInput {}
6
7 /**
8 * Runtime binding for `cloudwatch:ListDashboards` — list the dashboards in
9 * the account, optionally filtered by name prefix.
10 *
11 * Provide `CloudWatch.ListDashboardsHttp` on the hosting Lambda Function
12 * to satisfy the requirement.
13 * ### Reading Dashboards
14 * **Example:** List Dashboards
15 * ```typescript
16 * // init — grants cloudwatch:ListDashboards
17 * const listDashboards = yield* AWS.CloudWatch.ListDashboards();
18 *
19 * // runtime
20 * const result = yield* listDashboards();
21 * const names = (result.DashboardEntries ?? []).map((e) => e.DashboardName);
22 * ```
23 *
24 * @binding
25 */
26 export interface ListDashboards extends Binding.Service<
27 ListDashboards,
28 "AWS.CloudWatch.ListDashboards",
29 () => Effect.Effect<
30 (
31 request?: ListDashboardsRequest,
32 ) => Effect.Effect<cloudwatch.ListDashboardsOutput, cloudwatch.ListDashboardsError>
33 >
34 > {}
35
36 export const ListDashboards = Binding.Service<ListDashboards>("AWS.CloudWatch.ListDashboards");