Skip to content

EnableAlarmActions

Source: src/AWS/CloudWatch/EnableAlarmActions.ts

Runtime binding for cloudwatch:EnableAlarmActions — re-enable the actions of the bound alarms after they were suppressed with DisableAlarmActions. Bind it to one or more Alarm / CompositeAlarm resources; the alarm names are injected automatically.

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

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