This topic explains how to create, view, and delete schemas in the EventBridge console.
Prerequisites
Activate EventBridge and grant permissions
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
-
Log on to the EventBridge console.
-
In the navigation pane on the left, click Schemas.
-
In the top menu bar, select a region.
-
On the Schemas page, click the Custom Schema Groups tab, and then click Create Schema.
-
In the Create Schema panel, enter the schema ID, schema description, and schema content, select a compatibility mode, and click OK.
NoteThe compatibility mode affects whether changes to schema fields are accepted.
View a schema
-
Log on to the EventBridge console.
-
In the navigation pane on the left, click Schemas.
-
In the top menu bar, select a region.
-
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
-
Log on to the EventBridge console.
-
In the navigation pane on the left, click Schemas.
-
In the top menu bar, select a region.
-
On the Schemas page, click the Custom Schema Groups tab, find the target schema, and click Edit in the Actions column.
-
In the Modify Schema panel, modify the schema description or schema content, and click OK.
Delete a schema
-
Log on to the EventBridge console.
-
In the navigation pane on the left, click Schemas.
-
In the top menu bar, select a region.
-
On the Schemas page, click the Custom Schema Groups tab, find the target schema, and click Delete in the Actions column.
-
In the Show prompt dialog box, read the message, and then click Confirm.
WarningDeleted schemas cannot be recovered.
Register a schema version
EventBridge does not create a new version if its content is identical to the previous version.
-
Log on to the EventBridge console.
-
In the navigation pane on the left, click Schemas.
-
In the top menu bar, select a region.
-
On the Schemas page, click the Custom Schema Groups tab, find the target schema, and click Details in the Actions column.
-
On the Schema Details page, click the Versions tab and click Register New Version.
-
In the Register New Version panel, enter the Content, and click OK.
View a schema version
-
Log on to the EventBridge console.
-
In the navigation pane on the left, click Schemas.
-
In the top menu bar, select a region.
-
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, 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
-
Log on to the EventBridge console.
-
In the navigation pane on the left, click Schemas.
-
In the top menu bar, select a region.
-
On the Schemas page, click the Custom Schema Groups tab, find the target schema, and click Details in the Actions column.
-
On the Schema Details page, click the Versions tab, find the target version, and click Delete in the Actions column.
-
In the Show prompt dialog box, read the message, and then click Confirm.
WarningDeleted schema versions cannot be recovered.