1import type * as schemas from "@distilled.cloud/aws/schemas";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4import type { Discoverer } from "./Discoverer.ts";
5
6/**
7 * Runtime binding for `schemas:StopDiscoverer`.
8 *
9 * Pauses schema discovery on the bound {@link Discoverer} — e.g. an ops
10 * function halting discovery during a noisy backfill so junk schemas are not
11 * published to the `discovered-schemas` registry. The discoverer id is
12 * injected from the binding. Provide the implementation with
13 * `Effect.provide(AWS.Schemas.StopDiscovererHttp)`.
14 * ### Controlling a Discoverer
15 * **Example:** Pause Discovery
16 * ```typescript
17 * // init — bind the operation to the discoverer
18 * const stopDiscoverer = yield* AWS.Schemas.StopDiscoverer(discoverer);
19 *
20 * // runtime
21 * const { State } = yield* stopDiscoverer();
22 * // State === "STOPPED"
23 * ```
24 *
25 * @binding
26 */
27export interface StopDiscoverer extends Binding.Service<
28 StopDiscoverer,
29 "AWS.Schemas.StopDiscoverer",
30 (
31 discoverer: Discoverer,
32 ) => Effect.Effect<
33 () => Effect.Effect<
34 schemas.StopDiscovererResponse,
35 schemas.StopDiscovererError
36 >
37 >
38> {}
39export const StopDiscoverer = Binding.Service<StopDiscoverer>(
40 "AWS.Schemas.StopDiscoverer",
41);