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

main
ts 44 lines 1.47 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 import type { Workspace } from "./Workspace.ts";
5
6 /**
7 * Runtime binding for the `ListWorkspaceServiceAccounts` operation (IAM
8 * action `grafana:ListWorkspaceServiceAccounts`), scoped to one
9 * {@link Workspace}.
10 *
11 * Lists the Grafana service accounts in the workspace. Provide the
12 * implementation with
13 * `Effect.provide(AWS.Grafana.ListWorkspaceServiceAccountsHttp)`.
14 * ### Managing Service Accounts
15 * **Example:** List the Workspace's Service Accounts
16 * ```typescript
17 * const listServiceAccounts =
18 * yield* Grafana.ListWorkspaceServiceAccounts(workspace);
19 *
20 * const { serviceAccounts } = yield* listServiceAccounts();
21 * for (const account of serviceAccounts) {
22 * yield* Effect.logInfo(`${account.name} (${account.grafanaRole})`);
23 * }
24 * ```
25 *
26 * @binding
27 */
28 export interface ListWorkspaceServiceAccounts extends Binding.Service<
29 ListWorkspaceServiceAccounts,
30 "AWS.Grafana.ListWorkspaceServiceAccounts",
31 (
32 workspace: Workspace,
33 ) => Effect.Effect<
34 (
35 request?: Omit<grafana.ListWorkspaceServiceAccountsRequest, "workspaceId">,
36 ) => Effect.Effect<
37 grafana.ListWorkspaceServiceAccountsResponse,
38 grafana.ListWorkspaceServiceAccountsError
39 >
40 >
41 > {}
42 export const ListWorkspaceServiceAccounts = Binding.Service<ListWorkspaceServiceAccounts>(
43 "AWS.Grafana.ListWorkspaceServiceAccounts",
44 );