結論
pattern.json
{
"detail": {
"appId": ["YOUR_APP_ID"],
"branchName": ["YOUR_BRANCH_NAME"],
"jobStatus": ["SUCCEED", "FAILED", "STARTED"]
},
"detail-type": ["Amplify Deployment Status Change"],
"source": ["aws.amplify"]
}
"appId": ["YOUR_APP_ID"],
と
"branchName": ["YOUR_BRANCH_NAME"],
を編集するだけです。
ソース
Amolifyのコンソールから通知を有効化します。
作成されたEventBridgeのルールを参考にすることでイベントパターンが確認できます。
おわりに
CloudTrailから探そうと思っていましたが、もっと簡単な方法がありました。
解決してよかったです。