

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# Amazon Chime SDK 메시징용 EventBridge로 자동화를 통한 장애 알림 생성
<a name="event-bridge-events"></a>

Amazon Chime SDK는 프로세서 Lambda 함수를 호출하는 중 오류가 발생할 때 이벤트를 제공합니다. 이벤트는 채널 흐름을 생성할 때 프로세서에 지정된 `Fallback` 작업에 관계없이 전송됩니다. 간단한 규칙을 작성하여 이러한 이벤트를 지정하고, 이러한 이벤트 중 하나라도 규칙과 일치할 때 수행할 자동화된 작업을 지정할 수 있습니다. 자세한 내용은 [Amazon EventBridge 사용 설명서](https://docs.aws.amazon.com/eventbridge/latest/userguide/)를 참조하세요. 이와 같은 오류가 발생하면 구성한 `Fallback` 작업에 따라 채널의 구성원이 메시지를 보낼 수 없거나 메시지가 처리 없이 채널을 통해 전달됩니다. `Fallback` 작업에 대한 자세한 내용은 Amazon Chime SDK API 참조에서 [https://docs.aws.amazon.com/chime-sdk/latest/APIReference/API_messaging-chime_Processor.html](https://docs.aws.amazon.com/chime-sdk/latest/APIReference/API_messaging-chime_Processor.html)를 참조하세요.

이 예시는 일반적인 장애 이벤트를 보여줍니다.

```
{
    "version": "0",
    "id": "{{12345678-1234-1234-1234-111122223333}}",
    "detail-type": "Chime ChannelFlow Processing Status",
    "source": "aws.chime",
    "account": "{{111122223333}}",
    "time": "{{yyyy-mm-ddThh:mm:ssZ}}",
    "region": "{{region}}",
    "resources": [],
    "detail": {
        "eventType": "ProcessorInvocationFailure",
        "appInstanceArn": "arn:aws:chime:{{region}}:{{AWSAccountId}}:app-instance/{{AppInstanceId}}",
        "channelArn": "arn:aws:chime:{{region}}:{{AWSAccountId}}:app-instance/{{AppInstanceId}}/channel/{{ChannelId}}",
        "messageId": "{{298efac7298efac7298efac7298efac7298efac7298efac7298efac7298efac7}}",
        "processorResourceArn": "arn:aws:lambda:{{region}}:{{AWSAccountId}}:function:ChannelFlowLambda",
        "failureReason": "User is not authorized to perform: lambda:InvokeFunction on resource: arn:aws:lambda:{{region}}:{{AppInstanceId}}:function:ChannelFlowLambda because no resource-based policy allows the lambda:InvokeFunction action"
      }
}
```