UNPKG

cdk-monitoring-constructs

Version:

[![NPM version](https://badge.fury.io/js/cdk-monitoring-constructs.svg)](https://badge.fury.io/js/cdk-monitoring-constructs) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.github.cdklabs/cdkmonitoringconstructs/badge.svg)](https://m

32 lines (31 loc) 1.21 kB
import { ITopic } from "aws-cdk-lib/aws-sns"; import { AlarmActionStrategyProps, IAlarmActionStrategy } from "./IAlarmActionStrategy"; export declare function notifySns(onAlarmTopic: ITopic, onOkTopic?: ITopic, onInsufficientDataTopic?: ITopic): IAlarmActionStrategy; export interface SnsAlarmActionStrategyProps { /** * Target topic used when the alarm is triggered. */ readonly onAlarmTopic: ITopic; /** * Optional target topic for when the alarm goes into the OK state. * * @default - no notification sent */ readonly onOkTopic?: ITopic; /** * Optional target topic for when the alarm goes into the INSUFFICIENT_DATA state. * * @default - no notification sent */ readonly onInsufficientDataTopic?: ITopic; } /** * Alarm action strategy that sends a notification to the specified SNS topic. */ export declare class SnsAlarmActionStrategy implements IAlarmActionStrategy { protected readonly onAlarmTopic: ITopic; protected readonly onOkTopic?: ITopic; protected readonly onInsufficientDataTopic?: ITopic; constructor(props: SnsAlarmActionStrategyProps); addAlarmActions(props: AlarmActionStrategyProps): void; }