@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 42 lines 1.42 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 `DeleteWorkspaceServiceAccount` operation (IAM
8 * action `grafana:DeleteWorkspaceServiceAccount`), scoped to one
9 * {@link Workspace}.
10 *
11 * Deletes a Grafana service account from the workspace. Any API tokens
12 * minted for the account stop working immediately. Provide the
13 * implementation with
14 * `Effect.provide(AWS.Grafana.DeleteWorkspaceServiceAccountHttp)`.
15 * ### Managing Service Accounts
16 * **Example:** Delete a Service Account
17 * ```typescript
18 * const deleteServiceAccount =
19 * yield* Grafana.DeleteWorkspaceServiceAccount(workspace);
20 *
21 * yield* deleteServiceAccount({ serviceAccountId: account.id });
22 * ```
23 *
24 * @binding
25 */
26 export interface DeleteWorkspaceServiceAccount extends Binding.Service<
27 DeleteWorkspaceServiceAccount,
28 "AWS.Grafana.DeleteWorkspaceServiceAccount",
29 (
30 workspace: Workspace,
31 ) => Effect.Effect<
32 (
33 request: Omit<grafana.DeleteWorkspaceServiceAccountRequest, "workspaceId">,
34 ) => Effect.Effect<
35 grafana.DeleteWorkspaceServiceAccountResponse,
36 grafana.DeleteWorkspaceServiceAccountError
37 >
38 >
39 > {}
40 export const DeleteWorkspaceServiceAccount = Binding.Service<DeleteWorkspaceServiceAccount>(
41 "AWS.Grafana.DeleteWorkspaceServiceAccount",
42 );