sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ Inspector2/ DisableDelegatedAdminAccount.ts

import type * as inspector2 from "@distilled.cloud/aws/inspector2";
import * as Binding from "alchemy/Binding";
import type * as Effect from "effect/Effect";

/**
 * Runtime binding for `inspector2:DisableDelegatedAdminAccount`.
 *
 * Disables the Amazon Inspector delegated administrator for your organization.
 *
 * Provide the implementation with
 * `Effect.provide(AWS.Inspector2.DisableDelegatedAdminAccountHttp)`.
 * ### Organization & Members
 * **Example:** Disable a Delegated Administrator
 * ```typescript
 * // init
 * const disableDelegatedAdminAccount = yield* AWS.Inspector2.DisableDelegatedAdminAccount();
 *
 * // runtime
 * yield* disableDelegatedAdminAccount({ delegatedAdminAccountId });
 * ```
 *
 * @binding
 */
export interface DisableDelegatedAdminAccount extends Binding.Service<
  DisableDelegatedAdminAccount,
  "AWS.Inspector2.DisableDelegatedAdminAccount",
  () => Effect.Effect<
    (
      request: inspector2.DisableDelegatedAdminAccountRequest,
    ) => Effect.Effect<
      inspector2.DisableDelegatedAdminAccountResponse,
      inspector2.DisableDelegatedAdminAccountError
    >
  >
> {}
export const DisableDelegatedAdminAccount = Binding.Service<DisableDelegatedAdminAccount>(
  "AWS.Inspector2.DisableDelegatedAdminAccount",
);