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

main
ts 33 lines 1.1 KB
Raw
1 import type * as grafana from "@distilled.cloud/aws/grafana";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for the `ListVersions` operation (IAM action
7 * `grafana:ListVersions`).
8 *
9 * Lists the Grafana versions available when creating a workspace, or — with
10 * a `workspaceId` — the versions an existing workspace can be upgraded to.
11 * Provide the implementation with
12 * `Effect.provide(AWS.Grafana.ListVersionsHttp)`.
13 * ### Managing Configuration
14 * **Example:** List the Available Grafana Versions
15 * ```typescript
16 * const listVersions = yield* Grafana.ListVersions();
17 *
18 * const { grafanaVersions } = yield* listVersions();
19 * // grafanaVersions → ["10.4", "9.4", ...]
20 * ```
21 *
22 * @binding
23 */
24 export interface ListVersions extends Binding.Service<
25 ListVersions,
26 "AWS.Grafana.ListVersions",
27 () => Effect.Effect<
28 (
29 request?: grafana.ListVersionsRequest,
30 ) => Effect.Effect<grafana.ListVersionsResponse, grafana.ListVersionsError>
31 >
32 > {}
33 export const ListVersions = Binding.Service<ListVersions>("AWS.Grafana.ListVersions");