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

main
ts 41 lines 1.34 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:GetAdministratorAccount`.
8 *
9 * Reads the administrator account managing this detector (empty relationship for a standalone account).
10 * The detector id is injected from the bound {@link Detector}.
11 * Provide the implementation with
12 * `Effect.provide(AWS.GuardDuty.GetAdministratorAccountHttp)`.
13 * ### Administrator & Invitations
14 * **Example:** Read the Administrator
15 * ```typescript
16 * // init
17 * const getAdministratorAccount = yield* AWS.GuardDuty.GetAdministratorAccount(detector);
18 *
19 * // runtime
20 * const { Administrator } = yield* getAdministratorAccount();
21 * ```
22 *
23 * @binding
24 */
25 export interface GetAdministratorAccount extends Binding.Service<
26 GetAdministratorAccount,
27 "AWS.GuardDuty.GetAdministratorAccount",
28 (
29 detector: Detector,
30 ) => Effect.Effect<
31 (
32 request?: Omit<guardduty.GetAdministratorAccountRequest, "DetectorId">,
33 ) => Effect.Effect<
34 guardduty.GetAdministratorAccountResponse,
35 guardduty.GetAdministratorAccountError
36 >
37 >
38 > {}
39 export const GetAdministratorAccount = Binding.Service<GetAdministratorAccount>(
40 "AWS.GuardDuty.GetAdministratorAccount",
41 );