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

main
ts 39 lines 1.34 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
5 /**
6 * Runtime binding for `detective:ListOrganizationAdminAccounts`.
7 *
8 * Lists the organization's delegated Detective administrator account.
9 * Callable only from the organization management account.
10 * Provide the implementation with
11 * `Effect.provide(AWS.Detective.ListOrganizationAdminAccountsHttp)`.
12 * ### Organization Administration
13 * **Example:** Find The Delegated Administrator
14 * ```typescript
15 * // init — account-level binding, no resource argument
16 * const listOrganizationAdminAccounts =
17 * yield* AWS.Detective.ListOrganizationAdminAccounts();
18 *
19 * // runtime
20 * const { Administrators } = yield* listOrganizationAdminAccounts();
21 * ```
22 *
23 * @binding
24 */
25 export interface ListOrganizationAdminAccounts extends Binding.Service<
26 ListOrganizationAdminAccounts,
27 "AWS.Detective.ListOrganizationAdminAccounts",
28 () => Effect.Effect<
29 (
30 request?: detective.ListOrganizationAdminAccountsRequest,
31 ) => Effect.Effect<
32 detective.ListOrganizationAdminAccountsResponse,
33 detective.ListOrganizationAdminAccountsError
34 >
35 >
36 > {}
37 export const ListOrganizationAdminAccounts = Binding.Service<ListOrganizationAdminAccounts>(
38 "AWS.Detective.ListOrganizationAdminAccounts",
39 );