1import type * as guardduty from "@distilled.cloud/aws/guardduty";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4
5/**
6 * Runtime binding for `guardduty:EnableOrganizationAdminAccount`.
7 *
8 * Delegates an account as the organization's GuardDuty administrator (management account only).
9 * Account-level operation — invoked with the caller's request as-is.
10 * Provide the implementation with
11 * `Effect.provide(AWS.GuardDuty.EnableOrganizationAdminAccountHttp)`.
12 * ### Organization Administration
13 * **Example:** Delegate an Administrator
14 * ```typescript
15 * // init
16 * // init — account-level binding, no resource argument
17 * const enableOrganizationAdminAccount = yield* AWS.GuardDuty.EnableOrganizationAdminAccount();
18 *
19 * // runtime
20 * yield* enableOrganizationAdminAccount({ AdminAccountId: "111122223333" });
21 * ```
22 *
23 * @binding
24 */
25export interface EnableOrganizationAdminAccount extends Binding.Service<
26 EnableOrganizationAdminAccount,
27 "AWS.GuardDuty.EnableOrganizationAdminAccount",
28 () => Effect.Effect<
29 (
30 request?: guardduty.EnableOrganizationAdminAccountRequest,
31 ) => Effect.Effect<
32 guardduty.EnableOrganizationAdminAccountResponse,
33 guardduty.EnableOrganizationAdminAccountError
34 >
35 >
36> {}
37export const EnableOrganizationAdminAccount =
38 Binding.Service<EnableOrganizationAdminAccount>(
39 "AWS.GuardDuty.EnableOrganizationAdminAccount",
40 );