Skip to content

GetAlarmMuteRule

Source: src/AWS/CloudWatch/GetAlarmMuteRule.ts

Runtime binding for cloudwatch:GetAlarmMuteRule — read the configuration of the bound AlarmMuteRule; the rule name is injected automatically.

Provide CloudWatch.GetAlarmMuteRuleHttp on the hosting Lambda Function to satisfy the requirement.

// init — grants cloudwatch:GetAlarmMuteRule on the rule
const getAlarmMuteRule = yield* AWS.CloudWatch.GetAlarmMuteRule(muteRule);
// runtime
const result = yield* getAlarmMuteRule();
const schedule = result.Rule?.Schedule;