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:DisableOrganizationAdminAccount`.
7 *
8 * Revokes the organization's delegated Detective administrator. Callable
9 * only from the organization management account.
10 * Provide the implementation with
11 * `Effect.provide(AWS.Detective.DisableOrganizationAdminAccountHttp)`.
12 * ### Organization Administration
13 * **Example:** Revoke The Delegated Administrator
14 * ```typescript
15 * // init — account-level binding, no resource argument
16 * const disableOrganizationAdminAccount =
17 * yield* AWS.Detective.DisableOrganizationAdminAccount();
18 *
19 * // runtime
20 * yield* disableOrganizationAdminAccount();
21 * ```
22 *
23 * @binding
24 */
25export interface DisableOrganizationAdminAccount extends Binding.Service<
26 DisableOrganizationAdminAccount,
27 "AWS.Detective.DisableOrganizationAdminAccount",
28 () => Effect.Effect<
29 () => Effect.Effect<
30 detective.DisableOrganizationAdminAccountResponse,
31 detective.DisableOrganizationAdminAccountError
32 >
33 >
34> {}
35export const DisableOrganizationAdminAccount =
36 Binding.Service<DisableOrganizationAdminAccount>(
37 "AWS.Detective.DisableOrganizationAdminAccount",
38 );