Skip to content

Commit c87f09a

Browse files
authored
fix(cloudwatch): fix name of 'MetricAlarmProps' (#1765)
Fixes #1760. BREAKING CHANGE: Rename 'MetricAarmProps' => 'MetricAlarmProps'.
1 parent 26dbf1d commit c87f09a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/@aws-cdk/aws-cloudwatch/lib/alarm.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { Construct, Token } from '@aws-cdk/cdk';
22
import { CfnAlarm } from './cloudwatch.generated';
33
import { HorizontalAnnotation } from './graph';
4-
import { Dimension, Metric, MetricAarmProps, Statistic, Unit } from './metric';
4+
import { Dimension, Metric, MetricAlarmProps, Statistic, Unit } from './metric';
55
import { parseStatistic } from './util.statistic';
66

77
/**
88
* Properties for Alarms
99
*/
10-
export interface AlarmProps extends MetricAarmProps {
10+
export interface AlarmProps extends MetricAlarmProps {
1111
/**
1212
* The metric to add the alarm on
1313
*

packages/@aws-cdk/aws-cloudwatch/lib/metric.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export class Metric {
148148
* Combines both properties that may adjust the metric (aggregation) as well
149149
* as alarm properties.
150150
*/
151-
public newAlarm(scope: cdk.Construct, id: string, props: MetricAarmProps): Alarm {
151+
public newAlarm(scope: cdk.Construct, id: string, props: MetricAlarmProps): Alarm {
152152
return new Alarm(scope, id, {
153153
metric: this.with({
154154
statistic: props.statistic,
@@ -296,7 +296,7 @@ export interface MetricCustomization {
296296
/**
297297
* Properties needed to make an alarm from a metric
298298
*/
299-
export interface MetricAarmProps {
299+
export interface MetricAlarmProps {
300300
/**
301301
* The period over which the specified statistic is applied.
302302
*

0 commit comments

Comments
 (0)