Skip to content

Discoverer

Source: src/AWS/Schemas/Discoverer.ts

An EventBridge schema discoverer — automatically infers schemas from the events flowing through an event bus and publishes them (versioned) to the AWS-managed discovered-schemas registry.

Discover Schemas on an Event Bus

const bus = yield* AWS.EventBridge.EventBus("AppBus", {});
const discoverer = yield* AWS.Schemas.Discoverer("AppDiscoverer", {
sourceArn: bus.eventBusArn,
description: "Discovers schemas for application events",
});

Stopped Discoverer

const discoverer = yield* AWS.Schemas.Discoverer("PausedDiscoverer", {
sourceArn: bus.eventBusArn,
state: "STOPPED",
});

The discoverer is provisioned but paused; set state: "STARTED" (or omit it) to resume discovery.