Skip to content

Commit ecb34bb

Browse files
authored
docs(iot): fix CloudWatch Metric example (#26784)
This example gets replicated to the CloudWatch Metrics documentation, where it is wrong. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent e264a2f commit ecb34bb

File tree

1 file changed

+1
-1
lines changed
  • packages/@aws-cdk/aws-iot-actions-alpha

1 file changed

+1
-1
lines changed

packages/@aws-cdk/aws-iot-actions-alpha/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ import * as cloudwatch from 'aws-cdk-lib/aws-cloudwatch';
192192
const metric = new cloudwatch.Metric({
193193
namespace: 'MyNamespace',
194194
metricName: 'MyMetric',
195-
dimensions: { MyDimension: 'MyDimensionValue' },
195+
dimensionsMap: { MyDimension: 'MyDimensionValue' },
196196
});
197197
const alarm = new cloudwatch.Alarm(this, 'MyAlarm', {
198198
metric: metric,

0 commit comments

Comments
 (0)