1import type * as detective from "@distilled.cloud/aws/detective";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
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 */
25export 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> {}
37export const ListOrganizationAdminAccounts =
38 Binding.Service<ListOrganizationAdminAccounts>(
39 "AWS.Detective.ListOrganizationAdminAccounts",
40 );