Slide 18
Slide 18 text
18
2. 通知の実装
● メッセージ整形の部分
# AHAからのメッセージを整形
ShapingAWSHealthMessage:
Type: Pass
Parameters:
Subject.$: "States.Format('{}-{}-{}', $.detail.eventTypeCode, $.region, $.account)"
Message.$: "States.Format('AWSHealth Event\n\nAccountID: {}\nRegion:
{}\nServiceName: {}\neventScopeCode: {}\neventTypeCategory: {}\neventTypeCode: {}\nstartTime:
{}\nlastUpdatedTime: {}\nDescription: {}', $.account, $.region, $.detail.service,
$.detail.eventScopeCode, $.detail.eventTypeCategory, $.detail.eventTypeCode, $.detail.startTime,
$.detail.lastUpdatedTime, $.detail.eventDescription)"
ResultPath: $.generate
Next: ChoiceHealthEventScopeCode