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

main
ts 41 lines 1.32 KB
Raw
1 import type * as detective from "@distilled.cloud/aws/detective";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Graph } from "./Graph.ts";
5
6 /**
7 * Runtime binding for `detective:CreateMembers`.
8 *
9 * Invites accounts into the behavior graph (or auto-enables organization
10 * accounts) — the automation hook for onboarding new accounts to Detective
11 * as they join the fleet. The graph ARN is injected from the bound
12 * {@link Graph}.
13 * Provide the implementation with
14 * `Effect.provide(AWS.Detective.CreateMembersHttp)`.
15 * ### Administering Member Accounts
16 * **Example:** Invite A New Member Account
17 * ```typescript
18 * // init
19 * const createMembers = yield* AWS.Detective.CreateMembers(graph);
20 *
21 * // runtime
22 * yield* createMembers({
23 * Accounts: [{ AccountId: "111122223333", EmailAddress: email }],
24 * DisableEmailNotification: true,
25 * });
26 * ```
27 *
28 * @binding
29 */
30 export interface CreateMembers extends Binding.Service<
31 CreateMembers,
32 "AWS.Detective.CreateMembers",
33 (
34 graph: Graph,
35 ) => Effect.Effect<
36 (
37 request: Omit<detective.CreateMembersRequest, "GraphArn">,
38 ) => Effect.Effect<detective.CreateMembersResponse, detective.CreateMembersError>
39 >
40 > {}
41 export const CreateMembers = Binding.Service<CreateMembers>("AWS.Detective.CreateMembers");