Skip to content

StopDiscoverer

Source: src/AWS/Schemas/StopDiscoverer.ts

Runtime binding for schemas:StopDiscoverer.

Pauses schema discovery on the bound Discoverer — e.g. an ops function halting discovery during a noisy backfill so junk schemas are not published to the discovered-schemas registry. The discoverer id is injected from the binding. Provide the implementation with Effect.provide(AWS.Schemas.StopDiscovererHttp).

// init — bind the operation to the discoverer
const stopDiscoverer = yield* AWS.Schemas.StopDiscoverer(discoverer);
// runtime
const { State } = yield* stopDiscoverer();
// State === "STOPPED"