Create a schema from events on an event bus using Schema Discovery - Amazon EventBridge
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Create a schema from events on an event bus using Schema Discovery

EventBridge can infer schemas by discovering events. To infer schemas, you turn on event discovery on an event bus and every unique schema is added to the schema registry, including those for cross-account events. Schemas discovered by EventBridge appear in Discovered schemas registry on the Schemas page.

If the contents of events on the event bus change, EventBridge creates new versions of the related EventBridge schema.

Considerations when starting schema discovery on an event bus

Take into account the following considerations before enabling schema discover on an event bus:

  • Enabling event discovery on an event bus can incur a cost. The first five million processed events in each month are free.

  • EventBridge infers schemas from cross-account events by default but you can disable it by updating the cross-account property. For more information, see Discoverers in the EventBridge Schema Registry API Reference.

Note

Archives and schema discovery are not supported for event buses encrypted using a customer managed key. To enable archives or schema discovery on an event bus, choose to use an Amazon owned key. For more information, see Encryption at rest for event buses.

To start or stop schema discovery on an event bus (console)
  1. Open the Amazon EventBridge console at https://console.amazonaws.cn/events/.

  2. In the navigation pane, choose Event buses.

  3. Select the event bus on which you want to start or stop schema discovery.

  4. Do one of the following:

    • To start schema discovery, choose Start discovery.

    • To stop schema discovery, choose Delete discovery.

To start or stop schema discovery on an event bus (Amazon CLI)