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

main
ts 38 lines 1.23 KB
Raw
1 import type * as guardduty from "@distilled.cloud/aws/guardduty";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Detector } from "./Detector.ts";
5
6 /**
7 * Runtime binding for `guardduty:CreateMembers`.
8 *
9 * Associates member accounts with this administrator detector (organization-managed or invitation flow).
10 * The detector id is injected from the bound {@link Detector}.
11 * Provide the implementation with
12 * `Effect.provide(AWS.GuardDuty.CreateMembersHttp)`.
13 * ### Member Administration
14 * **Example:** Add a Member Account
15 * ```typescript
16 * // init
17 * const createMembers = yield* AWS.GuardDuty.CreateMembers(detector);
18 *
19 * // runtime
20 * yield* createMembers({
21 * AccountDetails: [{ AccountId: "111122223333", Email: "security@example.com" }],
22 * });
23 * ```
24 *
25 * @binding
26 */
27 export interface CreateMembers extends Binding.Service<
28 CreateMembers,
29 "AWS.GuardDuty.CreateMembers",
30 (
31 detector: Detector,
32 ) => Effect.Effect<
33 (
34 request?: Omit<guardduty.CreateMembersRequest, "DetectorId">,
35 ) => Effect.Effect<guardduty.CreateMembersResponse, guardduty.CreateMembersError>
36 >
37 > {}
38 export const CreateMembers = Binding.Service<CreateMembers>("AWS.GuardDuty.CreateMembers");