1 | import { IAlarm } from './alarm-base';
|
2 | import { Construct } from '@aws-cdk/core';
|
3 | /**
|
4 | * Interface for objects that can be the targets of CloudWatch alarm actions
|
5 | */
|
6 | export interface IAlarmAction {
|
7 | /**
|
8 | * Return the properties required to send alarm actions to this CloudWatch alarm.
|
9 | *
|
10 | * @param scope root Construct that allows creating new Constructs
|
11 | * @param alarm CloudWatch alarm that the action will target
|
12 | */
|
13 | bind(scope: Construct, alarm: IAlarm): AlarmActionConfig;
|
14 | }
|
15 | /**
|
16 | * Properties for an alarm action
|
17 | */
|
18 | export interface AlarmActionConfig {
|
19 | /**
|
20 | * Return the ARN that should be used for a CloudWatch Alarm action
|
21 | */
|
22 | readonly alarmActionArn: string;
|
23 | }
|