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

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

/**
 * Runtime binding for `detective:DisassociateMembership`.
 *
 * Removes *this* account from a behavior graph it previously accepted an
 * invitation to — the member-side exit, mirroring the admin's
 * `DeleteMembers`.
 * Provide the implementation with
 * `Effect.provide(AWS.Detective.DisassociateMembershipHttp)`.
 * ### Responding to Invitations
 * **Example:** Leave A Behavior Graph
 * ```typescript
 * // init — account-level binding, no resource argument
 * const disassociateMembership = yield* AWS.Detective.DisassociateMembership();
 *
 * // runtime
 * yield* disassociateMembership({ GraphArn: adminGraphArn });
 * ```
 *
 * @binding
 */
export interface DisassociateMembership extends Binding.Service<
  DisassociateMembership,
  "AWS.Detective.DisassociateMembership",
  () => Effect.Effect<
    (
      request: detective.DisassociateMembershipRequest,
    ) => Effect.Effect<
      detective.DisassociateMembershipResponse,
      detective.DisassociateMembershipError
    >
  >
> {}
export const DisassociateMembership = Binding.Service<DisassociateMembership>(
  "AWS.Detective.DisassociateMembership",
);