sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ Detective/ DeleteMembers.ts

import type * as detective from "@distilled.cloud/aws/detective";
import * as Binding from "alchemy/Binding";
import type * as Effect from "effect/Effect";
import type { Graph } from "./Graph.ts";

/**
 * Runtime binding for `detective:DeleteMembers`.
 *
 * Removes member accounts from the behavior graph — the off-boarding
 * counterpart to `CreateMembers` when an account leaves the fleet. The graph
 * ARN is injected from the bound {@link Graph}.
 * Provide the implementation with
 * `Effect.provide(AWS.Detective.DeleteMembersHttp)`.
 * ### Administering Member Accounts
 * **Example:** Remove A Member Account
 * ```typescript
 * // init
 * const deleteMembers = yield* AWS.Detective.DeleteMembers(graph);
 *
 * // runtime
 * yield* deleteMembers({ AccountIds: ["111122223333"] });
 * ```
 *
 * @binding
 */
export interface DeleteMembers extends Binding.Service<
  DeleteMembers,
  "AWS.Detective.DeleteMembers",
  (
    graph: Graph,
  ) => Effect.Effect<
    (
      request: Omit<detective.DeleteMembersRequest, "GraphArn">,
    ) => Effect.Effect<detective.DeleteMembersResponse, detective.DeleteMembersError>
  >
> {}
export const DeleteMembers = Binding.Service<DeleteMembers>("AWS.Detective.DeleteMembers");