Manage schemas

更新时间:
复制 MD 格式

Create, view, edit, and delete schemas and schema versions in the EventBridge console.

Prerequisites

Activate EventBridge and grant permissions

Note

Schemas from official cloud service event sources are read-only. You cannot create, modify, or delete them in the console.

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.

    The Schema Details page displays 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 Tooltip 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.

    The Version Details page displays the basic information and 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 Tooltip dialog box, read the message, and then click Confirm.

    Warning

    Deleted schema versions cannot be recovered.