Skip to content

DisableAlarmActions

Source: src/AWS/CloudWatch/DisableAlarmActions.ts

Runtime binding for cloudwatch:DisableAlarmActions — suppress the actions of the bound alarms (e.g. during a deploy or maintenance window). Bind it to one or more Alarm / CompositeAlarm resources; the alarm names are injected automatically. Re-enable with EnableAlarmActions.

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

// init — grants cloudwatch:DisableAlarmActions on the alarm
const disableAlarmActions = yield* AWS.CloudWatch.DisableAlarmActions(alarm);
// runtime
yield* disableAlarmActions();