AlarmMuteRule
Source:
src/AWS/CloudWatch/AlarmMuteRule.ts
A CloudWatch alarm mute rule — suppresses alarm actions on a recurring schedule (e.g. maintenance windows) instead of manually disabling and re-enabling alarm actions.
Creating Mute Rules
Section titled “Creating Mute Rules”const rule = yield* AlarmMuteRule("NightlyMute", { Rule: { Schedule: { Expression: "0 2 * * SUN", Duration: "PT1H", }, },});Reading Mute Rules at Runtime
Section titled “Reading Mute Rules at Runtime”// init — bind the rule to the function (see GetAlarmMuteRule)const getAlarmMuteRule = yield* AWS.CloudWatch.GetAlarmMuteRule(rule);
// runtimeconst result = yield* getAlarmMuteRule();const schedule = result.Rule?.Schedule;