本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
使用規則將事件傳送至 Amazon EventBridge 以取得 Amazon Chime SDK 訊息
當錯誤阻止 Amazon Lex V2 機器人呼叫 EventBridge 事件時,Amazon Chime SDK 會交付 EventBridge 事件。 Amazon Lex 您可以建立識別這些事件的 EventBridge 規則,並在規則相符時自動採取動作。如需詳細資訊,請參閱《Amazon EventBridge 使用者指南》中的 Amazon EventBridge 規則。
下列範例顯示典型的失敗事件。
{ version: '0', id: '
12345678-1234-1234-1234-111122223333
', 'detail-type': 'Chime Messaging AppInstanceBot Lex Failure
', source: 'aws.chime', account: 'aws-account-id
', time: 'yyyy-mm-ddThh:mm:ssZ
', region: "region
", resources: [], detail: { resourceArn: 'arn:aws:chime:region
:aws-account-id
:app-instance/app-instance-id
/bot/app-instance-bot-id
', failureReason: "1 validation error detected: Value at 'text' failed to satisfy constraint: Member must have length less than or equal to 1024 (Service: LexRuntimeV2, Status Code: 400, Request ID:request-id
)" } }