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

main
ts 37 lines 1.27 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: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 */
25 export 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 > {}
35 export const DisableOrganizationAdminAccount = Binding.Service<DisableOrganizationAdminAccount>(
36 "AWS.Detective.DisableOrganizationAdminAccount",
37 );