sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ Macie2/ GetClassificationScope.ts

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

/**
 * Runtime binding for `macie2:GetClassificationScope`.
 *
 * Retrieves the classification scope settings for an account.
 * Account-level operation — invoked with the caller's request as-is.
 * Provide the implementation with
 * `Effect.provide(AWS.Macie2.GetClassificationScopeHttp)`.
 * ### Automated Discovery
 * **Example:** Read a Classification Scope
 * ```typescript
 * // init — account-level binding, no resource argument
 * const getClassificationScope = yield* AWS.Macie2.GetClassificationScope();
 *
 * // runtime
 * const scope = yield* getClassificationScope({ id: scopeId });
 * ```
 *
 * @binding
 */
export interface GetClassificationScope extends Binding.Service<
  GetClassificationScope,
  "AWS.Macie2.GetClassificationScope",
  () => Effect.Effect<
    (
      request: macie2.GetClassificationScopeRequest,
    ) => Effect.Effect<macie2.GetClassificationScopeResponse, macie2.GetClassificationScopeError>
  >
> {}
export const GetClassificationScope = Binding.Service<GetClassificationScope>(
  "AWS.Macie2.GetClassificationScope",
);