From c87f09a693c8abf1aa21288d8814c08f2dd5b9ea Mon Sep 17 00:00:00 2001 From: Rico Huijbers Date: Thu, 14 Feb 2019 13:18:26 +0100 Subject: [PATCH] fix(cloudwatch): fix name of 'MetricAlarmProps' (#1765) Fixes #1760. BREAKING CHANGE: Rename 'MetricAarmProps' => 'MetricAlarmProps'. --- packages/@aws-cdk/aws-cloudwatch/lib/alarm.ts | 4 ++-- packages/@aws-cdk/aws-cloudwatch/lib/metric.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/@aws-cdk/aws-cloudwatch/lib/alarm.ts b/packages/@aws-cdk/aws-cloudwatch/lib/alarm.ts index 6791c825f9854..706f05d3cf368 100644 --- a/packages/@aws-cdk/aws-cloudwatch/lib/alarm.ts +++ b/packages/@aws-cdk/aws-cloudwatch/lib/alarm.ts @@ -1,13 +1,13 @@ import { Construct, Token } from '@aws-cdk/cdk'; import { CfnAlarm } from './cloudwatch.generated'; import { HorizontalAnnotation } from './graph'; -import { Dimension, Metric, MetricAarmProps, Statistic, Unit } from './metric'; +import { Dimension, Metric, MetricAlarmProps, Statistic, Unit } from './metric'; import { parseStatistic } from './util.statistic'; /** * Properties for Alarms */ -export interface AlarmProps extends MetricAarmProps { +export interface AlarmProps extends MetricAlarmProps { /** * The metric to add the alarm on * diff --git a/packages/@aws-cdk/aws-cloudwatch/lib/metric.ts b/packages/@aws-cdk/aws-cloudwatch/lib/metric.ts index 69511ec5e7008..7d36a33148ce3 100644 --- a/packages/@aws-cdk/aws-cloudwatch/lib/metric.ts +++ b/packages/@aws-cdk/aws-cloudwatch/lib/metric.ts @@ -148,7 +148,7 @@ export class Metric { * Combines both properties that may adjust the metric (aggregation) as well * as alarm properties. */ - public newAlarm(scope: cdk.Construct, id: string, props: MetricAarmProps): Alarm { + public newAlarm(scope: cdk.Construct, id: string, props: MetricAlarmProps): Alarm { return new Alarm(scope, id, { metric: this.with({ statistic: props.statistic, @@ -296,7 +296,7 @@ export interface MetricCustomization { /** * Properties needed to make an alarm from a metric */ -export interface MetricAarmProps { +export interface MetricAlarmProps { /** * The period over which the specified statistic is applied. *