24 lines
760 B
TypeScript
24 lines
760 B
TypeScript
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;
|
|
}
|