Manage schemas

更新时间:
复制 MD 格式

This topic explains how to create, view, and delete schemas in the EventBridge console.

Prerequisites

Activate EventBridge and grant permissions

Note

For schemas from official cloud service event sources, you can only view their details in the console. You cannot create, modify, or delete them.

Create a schema

  1. Log on to the EventBridge console.

  2. In the navigation pane on the left, click Schemas.

  3. In the top menu bar, select a region.

  4. On the Schemas page, click the Custom Schema Groups tab, and then click Create Schema.

  5. In the Create Schema panel, enter the schema ID, schema description, and schema content, select a compatibility mode, and click OK.

    Note

    The compatibility mode affects whether changes to schema fields are accepted.

View a schema

  1. Log on to the EventBridge console.

  2. In the navigation pane on the left, click Schemas.

  3. In the top menu bar, select a region.

  4. On the Schemas page, click the Custom Schema Groups tab or the Schema Groups for Cloud Service Events tab, find the target schema, and click Details in the Actions column.

    On the Schema Details page, you can view the basic information, schema content, and version list.

Edit a schema

  1. Log on to the EventBridge console.

  2. In the navigation pane on the left, click Schemas.

  3. In the top menu bar, select a region.

  4. On the Schemas page, click the Custom Schema Groups tab, find the target schema, and click Edit in the Actions column.

  5. In the Modify Schema panel, modify the schema description or schema content, and click OK.

Delete a schema

  1. Log on to the EventBridge console.

  2. In the navigation pane on the left, click Schemas.

  3. In the top menu bar, select a region.

  4. On the Schemas page, click the Custom Schema Groups tab, find the target schema, and click Delete in the Actions column.

  5. In the Show prompt dialog box, read the message, and then click Confirm.

    Warning

    Deleted schemas cannot be recovered.

Register a schema version

Important

EventBridge does not create a new version if its content is identical to the previous version.

  1. Log on to the EventBridge console.

  2. In the navigation pane on the left, click Schemas.

  3. In the top menu bar, select a region.

  4. On the Schemas page, click the Custom Schema Groups tab, find the target schema, and click Details in the Actions column.

  5. On the Schema Details page, click the Versions tab and click Register New Version.

  6. In the Register New Version panel, enter the Content, and click OK.

View a schema version

  1. Log on to the EventBridge console.

  2. In the navigation pane on the left, click Schemas.

  3. In the top menu bar, select a region.

  4. On the Schemas page, click the Custom Schema Groups tab or the Schema Groups for Cloud Service Events tab, find the target schema, and click Details in the Actions column.

  5. On the Schema Details page, click the Versions tab, find the target version, and click Details in the Actions column.

    On the Version Details page, you can view the basic information and the schema version definition.

Delete a schema version

  1. Log on to the EventBridge console.

  2. In the navigation pane on the left, click Schemas.

  3. In the top menu bar, select a region.

  4. On the Schemas page, click the Custom Schema Groups tab, find the target schema, and click Details in the Actions column.

  5. On the Schema Details page, click the Versions tab, find the target version, and click Delete in the Actions column.

  6. In the Show prompt dialog box, read the message, and then click Confirm.

    Warning

    Deleted schema versions cannot be recovered.