aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
24 lines (23 loc) • 711 B
TypeScript
import { Construct } from 'constructs';
import { 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
*/
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;
}