UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

24 lines (23 loc) 760 B
import type { Construct } from 'constructs'; import type { IAlarm } from './alarm-base'; /** * Interface for objects that can be the targets of CloudWatch alarm actions */ export interface IAlarmAction { /** * Return the properties required to send alarm actions to this CloudWatch alarm. * * @param scope root Construct that allows creating new Constructs * @param alarm CloudWatch alarm that the action will target [disable-awslint:prefer-ref-interface] */ bind(scope: Construct, alarm: IAlarm): AlarmActionConfig; } /** * Properties for an alarm action */ export interface AlarmActionConfig { /** * Return the ARN that should be used for a CloudWatch Alarm action */ readonly alarmActionArn: string; }