

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# ルールを使用して Amazon Chime SDK メッセージング用の Amazon EventBridge にイベントを送信する
<a name="event-bridge-alerts"></a>

Amazon Chime SDK は、エラーが原因で Amazon Lex V2 ボットを呼び出せなくなった場合、EventBridge イベントを配信します。それらのイベントを認識し、ルールが一致したときに自動的にアクションを実行する EventBridge ルールを作成できます。詳細については、「Amazon EventBridge ユーザーガイド」の「[Amazon EventBridge ルール](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-rules.html)」を参照してください。

次の例は、一般的な失敗イベントを示しています。

```
{
  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}})"
  }
}
```