From 96f0974ca4dd4988fd6e8782310d5ae2c07cd265 Mon Sep 17 00:00:00 2001 From: Rob Bass Date: Tue, 30 Jun 2020 15:15:23 +0100 Subject: [PATCH] feat(aws-cloudwatch): add comparison operators closes #8808 --- packages/@aws-cdk/aws-cloudwatch/lib/alarm.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/@aws-cdk/aws-cloudwatch/lib/alarm.ts b/packages/@aws-cdk/aws-cloudwatch/lib/alarm.ts index a422b99daa0db..299220eb8d42f 100644 --- a/packages/@aws-cdk/aws-cloudwatch/lib/alarm.ts +++ b/packages/@aws-cdk/aws-cloudwatch/lib/alarm.ts @@ -51,6 +51,18 @@ export enum ComparisonOperator { * Used only for alarms based on anomaly detection models */ LESS_THAN_LOWER_OR_GREATER_THAN_UPPER_THRESHOLD = 'LessThanLowerOrGreaterThanUpperThreshold', + + /** + * Specified statistic is greater than the anomaly model band. + * Used only for alarms based on anomaly detection models + */ + GREATER_THAN_UPPER_THRESHOLD = 'GreaterThanUpperThreshold', + + /** + * Specified statistic is lower than the anomaly model band. + * Used only for alarms based on anomaly detection models + */ + LESS_THAN_LOWER_THRESHOLD = 'LessThanLowerThreshold', } const OPERATOR_SYMBOLS: {[key: string]: string} = {