@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 39 lines 1.43 KB
Raw
1 import type * as guardduty from "@distilled.cloud/aws/guardduty";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `guardduty:DisableOrganizationAdminAccount`.
7 *
8 * Removes an account's delegation 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.DisableOrganizationAdminAccountHttp)`.
12 * ### Organization Administration
13 * **Example:** Remove a Delegated Administrator
14 * ```typescript
15 * // init
16 * // init — account-level binding, no resource argument
17 * const disableOrganizationAdminAccount = yield* AWS.GuardDuty.DisableOrganizationAdminAccount();
18 *
19 * // runtime
20 * yield* disableOrganizationAdminAccount({ AdminAccountId: "111122223333" });
21 * ```
22 *
23 * @binding
24 */
25 export interface DisableOrganizationAdminAccount extends Binding.Service<
26 DisableOrganizationAdminAccount,
27 "AWS.GuardDuty.DisableOrganizationAdminAccount",
28 () => Effect.Effect<
29 (
30 request?: guardduty.DisableOrganizationAdminAccountRequest,
31 ) => Effect.Effect<
32 guardduty.DisableOrganizationAdminAccountResponse,
33 guardduty.DisableOrganizationAdminAccountError
34 >
35 >
36 > {}
37 export const DisableOrganizationAdminAccount = Binding.Service<DisableOrganizationAdminAccount>(
38 "AWS.GuardDuty.DisableOrganizationAdminAccount",
39 );