本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
Amazon EventBridge 活動詳細參考
EventBridge 本身發出以下事件。與任何其他 AWS 服務一樣,這些事件會自動傳送至預設事件匯流排。
如需包含在所有事件中之中繼資料欄位的定義,請參閱事件元數據字段參考。
已排程事件
以下是Scheduled Event
事件的詳細信息字段。
source
和detail-type
欄位會包含在內,因為它們包含 EventBridge 事件的特定值。如需包含在所有事件中的其他中繼資料欄位的定義,請參閱事件元數據字段參考。
{ . . ., "detail-type": "Scheduled Event", "source": "aws.events", . . ., "detail": {} }
detail-type
-
識別事件的類型。
對於此事件,此值為
Scheduled Event
。必要:是
source
-
識別產生事件的服務。對於 EventBridge 事件,此值為
aws.events
。必要:是
detail
-
包含事JSON件相關資訊的物件。產生事件的服務會決定此欄位的內容。
必要:是
此物件中沒有
Scheduled Event
事件的必填欄位。
範例 排程事件事件範例
{ "version": "0", "id": "89d1a02d-5ec7-412e-82f5-13505f849b41", "detail-type": "Scheduled Event", "source": "aws.events", "account": "123456789012", "time": "2016-12-30T18:44:49Z", "region": "us-east-1", "resources": ["arn:aws:events:us-east-1:123456789012:rule/SampleRule"], "detail": {} }
架構已建立
以下是Schema Created
事件的詳細信息字段。
建立結構描述時, EventBridge 會同時傳送Schema Created
和Schema Version Created
事件。
source
和detail-type
欄位會包含在內,因為它們包含 EventBridge 事件的特定值。如需包含在所有事件中的其他中繼資料欄位的定義,請參閱事件元數據字段參考。
{ . . ., "detail-type": "Schema Created", "source": "aws.schemas", . . ., "detail": { "SchemaName" : "String", "SchemaType" : "String", "RegistryName" : "String", "CreationDate" : "DateTime", "Version" : "Number" } }
detail-type
-
識別事件的類型。
對於此事件,此值為
Schema Created
。必要:是
source
-
識別產生事件的服務。對於 EventBridge 事件,此值為
aws.schemas
。必要:是
detail
-
包含事JSON件相關資訊的物件。產生事件的服務會決定此欄位的內容。
必要:是
對於此事件,此資料包括:
SchemaName
-
結構描述的名稱。
必要:是
SchemaType
-
結構描述的類型。
有效值:
OpenApi3
|JSONSchemaDraft4
必要:是
RegistryName
-
包含結構描述的登錄檔的名稱。
必要:是
CreationDate
-
建立結構描述的日期。
必要:是
Version
-
此結構描述的版本。
對於
Schema Created
事件,此值將永遠是1
。必要:是
範例架構已建立事件
{ "version": "0", "id": "01234567-0123-0123-0123-012345678901", "detail-type": "Schema Created", "source": "aws.schemas", "account": "123456789012", "time": "2019-05-31T21:49:54Z", "region": "us-east-1", "resources": ["arn:aws:schemas:us-east-1::schema/myRegistry/mySchema"], "detail": { "SchemaName": "mySchema", "SchemaType": "OpenApi3", "RegistryName": "myRegistry", "CreationDate": "2019-11-29T20:08:55Z", "Version": "1" } }
架構版本已建立
以下是Schema Version Created
事件的詳細信息字段。
建立結構描述時, EventBridge 會同時傳送Schema Created
和Schema Version Created
事件。
source
和detail-type
欄位會包含在內,因為它們包含 EventBridge 事件的特定值。如需包含在所有事件中的其他中繼資料欄位的定義,請參閱事件元數據字段參考。
{ . . ., "detail-type": "Schema Version Created", "source": "aws.schemas", . . ., "detail": { "SchemaName" : "String", "SchemaType" : "String", "RegistryName" : "String", "CreationDate" : "DateTime", "Version" : "Number" } }
detail-type
-
識別事件的類型。
對於此事件,此值為
Schema Version Created
。必要:是
source
-
識別產生事件的服務。對於 EventBridge 事件,此值為
aws.schemas
。必要:是
detail
-
包含事JSON件相關資訊的物件。產生事件的服務會決定此欄位的內容。
必要:是
對於此事件,此資料包括:
SchemaName
-
結構描述的名稱。
必要:是
SchemaType
-
結構描述的類型。
有效值:
OpenApi3
|JSONSchemaDraft4
必要:是
RegistryName
-
包含結構描述的登錄檔的名稱。
必要:是
CreationDate
-
建立結構描述版本的日期。
必要:是
Version
-
此結構描述的版本。
必要:是
範例架構版本已建立事件
{ "version": "0", "id": "01234567-0123-0123-0123-012345678901", "detail-type": "Schema Version Created", "source": "aws.schemas", "account": "123456789012", "time": "2019-05-31T21:49:54Z", "region": "us-east-1", "resources": ["arn:aws:schemas:us-east-1::schema/myRegistry/mySchema"], "detail": { "SchemaName": "mySchema", "SchemaType": "OpenApi3", "RegistryName": "myRegistry", "CreationDate": "2019-11-29T20:08:55Z", "Version": "5" } }