UNPKG

102 kBTypeScriptView Raw
1import * as cdk from '@aws-cdk/core';
2import * as cfn_parse from '@aws-cdk/core/lib/helpers-internal';
3/**
4 * Properties for defining a `CfnAlarm`
5 *
6 * @struct
7 * @stability external
8 *
9 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html
10 */
11export interface CfnAlarmProps {
12 /**
13 * The arithmetic operation to use when comparing the specified statistic and threshold. The specified statistic value is used as the first operand.
14 *
15 * You can specify the following values: `GreaterThanThreshold` , `GreaterThanOrEqualToThreshold` , `LessThanThreshold` , or `LessThanOrEqualToThreshold` .
16 *
17 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-comparisonoperator
18 */
19 readonly comparisonOperator: string;
20 /**
21 * The number of periods over which data is compared to the specified threshold. If you are setting an alarm that requires that a number of consecutive data points be breaching to trigger the alarm, this value specifies that number. If you are setting an "M out of N" alarm, this value is the N, and `DatapointsToAlarm` is the M.
22 *
23 * For more information, see [Evaluating an Alarm](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html#alarm-evaluation) in the *Amazon CloudWatch User Guide* .
24 *
25 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-evaluationperiods
26 */
27 readonly evaluationPeriods: number;
28 /**
29 * Indicates whether actions should be executed during any changes to the alarm state. The default is TRUE.
30 *
31 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-actionsenabled
32 */
33 readonly actionsEnabled?: boolean | cdk.IResolvable;
34 /**
35 * The list of actions to execute when this alarm transitions into an ALARM state from any other state. Specify each action as an Amazon Resource Name (ARN). For more information about creating alarms and the actions that you can specify, see [PutMetricAlarm](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_PutMetricAlarm.html) in the *Amazon CloudWatch API Reference* .
36 *
37 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-alarmactions
38 */
39 readonly alarmActions?: string[];
40 /**
41 * The description of the alarm.
42 *
43 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-alarmdescription
44 */
45 readonly alarmDescription?: string;
46 /**
47 * The name of the alarm. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the alarm name.
48 *
49 * > If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
50 *
51 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-alarmname
52 */
53 readonly alarmName?: string;
54 /**
55 * The number of datapoints that must be breaching to trigger the alarm. This is used only if you are setting an "M out of N" alarm. In that case, this value is the M, and the value that you set for `EvaluationPeriods` is the N value. For more information, see [Evaluating an Alarm](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html#alarm-evaluation) in the *Amazon CloudWatch User Guide* .
56 *
57 * If you omit this parameter, CloudWatch uses the same value here that you set for `EvaluationPeriods` , and the alarm goes to alarm state if that many consecutive periods are breaching.
58 *
59 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarm-datapointstoalarm
60 */
61 readonly datapointsToAlarm?: number;
62 /**
63 * The dimensions for the metric associated with the alarm. For an alarm based on a math expression, you can't specify `Dimensions` . Instead, you use `Metrics` .
64 *
65 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-dimension
66 */
67 readonly dimensions?: Array<CfnAlarm.DimensionProperty | cdk.IResolvable> | cdk.IResolvable;
68 /**
69 * Used only for alarms based on percentiles. If `ignore` , the alarm state does not change during periods with too few data points to be statistically significant. If `evaluate` or this parameter is not used, the alarm is always evaluated and possibly changes state no matter how many data points are available.
70 *
71 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-evaluatelowsamplecountpercentile
72 */
73 readonly evaluateLowSampleCountPercentile?: string;
74 /**
75 * The percentile statistic for the metric associated with the alarm. Specify a value between p0.0 and p100.
76 *
77 * For an alarm based on a metric, you must specify either `Statistic` or `ExtendedStatistic` but not both.
78 *
79 * For an alarm based on a math expression, you can't specify `ExtendedStatistic` . Instead, you use `Metrics` .
80 *
81 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-extendedstatistic
82 */
83 readonly extendedStatistic?: string;
84 /**
85 * The actions to execute when this alarm transitions to the `INSUFFICIENT_DATA` state from any other state. Each action is specified as an Amazon Resource Name (ARN).
86 *
87 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-insufficientdataactions
88 */
89 readonly insufficientDataActions?: string[];
90 /**
91 * The name of the metric associated with the alarm. This is required for an alarm based on a metric. For an alarm based on a math expression, you use `Metrics` instead and you can't specify `MetricName` .
92 *
93 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-metricname
94 */
95 readonly metricName?: string;
96 /**
97 * An array that enables you to create an alarm based on the result of a metric math expression. Each item in the array either retrieves a metric or performs a math expression.
98 *
99 * If you specify the `Metrics` parameter, you cannot specify `MetricName` , `Dimensions` , `Period` , `Namespace` , `Statistic` , `ExtendedStatistic` , or `Unit` .
100 *
101 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarm-metrics
102 */
103 readonly metrics?: Array<CfnAlarm.MetricDataQueryProperty | cdk.IResolvable> | cdk.IResolvable;
104 /**
105 * The namespace of the metric associated with the alarm. This is required for an alarm based on a metric. For an alarm based on a math expression, you can't specify `Namespace` and you use `Metrics` instead.
106 *
107 * For a list of namespaces for metrics from AWS services, see [AWS Services That Publish CloudWatch Metrics.](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/aws-services-cloudwatch-metrics.html)
108 *
109 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-namespace
110 */
111 readonly namespace?: string;
112 /**
113 * The actions to execute when this alarm transitions to the `OK` state from any other state. Each action is specified as an Amazon Resource Name (ARN).
114 *
115 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-okactions
116 */
117 readonly okActions?: string[];
118 /**
119 * The period, in seconds, over which the statistic is applied. This is required for an alarm based on a metric. Valid values are 10, 30, 60, and any multiple of 60.
120 *
121 * For an alarm based on a math expression, you can't specify `Period` , and instead you use the `Metrics` parameter.
122 *
123 * *Minimum:* 10
124 *
125 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-period
126 */
127 readonly period?: number;
128 /**
129 * The statistic for the metric associated with the alarm, other than percentile. For percentile statistics, use `ExtendedStatistic` .
130 *
131 * For an alarm based on a metric, you must specify either `Statistic` or `ExtendedStatistic` but not both.
132 *
133 * For an alarm based on a math expression, you can't specify `Statistic` . Instead, you use `Metrics` .
134 *
135 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-statistic
136 */
137 readonly statistic?: string;
138 /**
139 * The value to compare with the specified statistic.
140 *
141 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-threshold
142 */
143 readonly threshold?: number;
144 /**
145 * In an alarm based on an anomaly detection model, this is the ID of the `ANOMALY_DETECTION_BAND` function used as the threshold for the alarm.
146 *
147 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-dynamic-threshold
148 */
149 readonly thresholdMetricId?: string;
150 /**
151 * Sets how this alarm is to handle missing data points. Valid values are `breaching` , `notBreaching` , `ignore` , and `missing` . For more information, see [Configuring How CloudWatch Alarms Treat Missing Data](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html#alarms-and-missing-data) in the *Amazon CloudWatch User Guide* .
152 *
153 * If you omit this parameter, the default behavior of `missing` is used.
154 *
155 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-treatmissingdata
156 */
157 readonly treatMissingData?: string;
158 /**
159 * The unit of the metric associated with the alarm. Specify this only if you are creating an alarm based on a single metric. Do not specify this if you are specifying a `Metrics` array.
160 *
161 * You can specify the following values: Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, or None.
162 *
163 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-unit
164 */
165 readonly unit?: string;
166}
167/**
168 * A CloudFormation `AWS::CloudWatch::Alarm`
169 *
170 * The `AWS::CloudWatch::Alarm` type specifies an alarm and associates it with the specified metric or metric math expression.
171 *
172 * When this operation creates an alarm, the alarm state is immediately set to `INSUFFICIENT_DATA` . The alarm is then evaluated and its state is set appropriately. Any actions associated with the new state are then executed.
173 *
174 * When you update an existing alarm, its state is left unchanged, but the update completely overwrites the previous configuration of the alarm.
175 *
176 * @cloudformationResource AWS::CloudWatch::Alarm
177 * @stability external
178 *
179 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html
180 */
181export declare class CfnAlarm extends cdk.CfnResource implements cdk.IInspectable {
182 /**
183 * The CloudFormation resource type name for this resource class.
184 */
185 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CloudWatch::Alarm";
186 /**
187 * A factory method that creates a new instance of this class from an object
188 * containing the CloudFormation properties of this resource.
189 * Used in the @aws-cdk/cloudformation-include module.
190 *
191 * @internal
192 */
193 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnAlarm;
194 /**
195 * The ARN of the CloudWatch alarm, such as `arn:aws:cloudwatch:us-west-2:123456789012:alarm:myCloudWatchAlarm-CPUAlarm-UXMMZK36R55Z` .
196 * @cloudformationAttribute Arn
197 */
198 readonly attrArn: string;
199 /**
200 * The arithmetic operation to use when comparing the specified statistic and threshold. The specified statistic value is used as the first operand.
201 *
202 * You can specify the following values: `GreaterThanThreshold` , `GreaterThanOrEqualToThreshold` , `LessThanThreshold` , or `LessThanOrEqualToThreshold` .
203 *
204 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-comparisonoperator
205 */
206 comparisonOperator: string;
207 /**
208 * The number of periods over which data is compared to the specified threshold. If you are setting an alarm that requires that a number of consecutive data points be breaching to trigger the alarm, this value specifies that number. If you are setting an "M out of N" alarm, this value is the N, and `DatapointsToAlarm` is the M.
209 *
210 * For more information, see [Evaluating an Alarm](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html#alarm-evaluation) in the *Amazon CloudWatch User Guide* .
211 *
212 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-evaluationperiods
213 */
214 evaluationPeriods: number;
215 /**
216 * Indicates whether actions should be executed during any changes to the alarm state. The default is TRUE.
217 *
218 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-actionsenabled
219 */
220 actionsEnabled: boolean | cdk.IResolvable | undefined;
221 /**
222 * The list of actions to execute when this alarm transitions into an ALARM state from any other state. Specify each action as an Amazon Resource Name (ARN). For more information about creating alarms and the actions that you can specify, see [PutMetricAlarm](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_PutMetricAlarm.html) in the *Amazon CloudWatch API Reference* .
223 *
224 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-alarmactions
225 */
226 alarmActions: string[] | undefined;
227 /**
228 * The description of the alarm.
229 *
230 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-alarmdescription
231 */
232 alarmDescription: string | undefined;
233 /**
234 * The name of the alarm. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the alarm name.
235 *
236 * > If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
237 *
238 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-alarmname
239 */
240 alarmName: string | undefined;
241 /**
242 * The number of datapoints that must be breaching to trigger the alarm. This is used only if you are setting an "M out of N" alarm. In that case, this value is the M, and the value that you set for `EvaluationPeriods` is the N value. For more information, see [Evaluating an Alarm](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html#alarm-evaluation) in the *Amazon CloudWatch User Guide* .
243 *
244 * If you omit this parameter, CloudWatch uses the same value here that you set for `EvaluationPeriods` , and the alarm goes to alarm state if that many consecutive periods are breaching.
245 *
246 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarm-datapointstoalarm
247 */
248 datapointsToAlarm: number | undefined;
249 /**
250 * The dimensions for the metric associated with the alarm. For an alarm based on a math expression, you can't specify `Dimensions` . Instead, you use `Metrics` .
251 *
252 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-dimension
253 */
254 dimensions: Array<CfnAlarm.DimensionProperty | cdk.IResolvable> | cdk.IResolvable | undefined;
255 /**
256 * Used only for alarms based on percentiles. If `ignore` , the alarm state does not change during periods with too few data points to be statistically significant. If `evaluate` or this parameter is not used, the alarm is always evaluated and possibly changes state no matter how many data points are available.
257 *
258 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-evaluatelowsamplecountpercentile
259 */
260 evaluateLowSampleCountPercentile: string | undefined;
261 /**
262 * The percentile statistic for the metric associated with the alarm. Specify a value between p0.0 and p100.
263 *
264 * For an alarm based on a metric, you must specify either `Statistic` or `ExtendedStatistic` but not both.
265 *
266 * For an alarm based on a math expression, you can't specify `ExtendedStatistic` . Instead, you use `Metrics` .
267 *
268 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-extendedstatistic
269 */
270 extendedStatistic: string | undefined;
271 /**
272 * The actions to execute when this alarm transitions to the `INSUFFICIENT_DATA` state from any other state. Each action is specified as an Amazon Resource Name (ARN).
273 *
274 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-insufficientdataactions
275 */
276 insufficientDataActions: string[] | undefined;
277 /**
278 * The name of the metric associated with the alarm. This is required for an alarm based on a metric. For an alarm based on a math expression, you use `Metrics` instead and you can't specify `MetricName` .
279 *
280 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-metricname
281 */
282 metricName: string | undefined;
283 /**
284 * An array that enables you to create an alarm based on the result of a metric math expression. Each item in the array either retrieves a metric or performs a math expression.
285 *
286 * If you specify the `Metrics` parameter, you cannot specify `MetricName` , `Dimensions` , `Period` , `Namespace` , `Statistic` , `ExtendedStatistic` , or `Unit` .
287 *
288 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarm-metrics
289 */
290 metrics: Array<CfnAlarm.MetricDataQueryProperty | cdk.IResolvable> | cdk.IResolvable | undefined;
291 /**
292 * The namespace of the metric associated with the alarm. This is required for an alarm based on a metric. For an alarm based on a math expression, you can't specify `Namespace` and you use `Metrics` instead.
293 *
294 * For a list of namespaces for metrics from AWS services, see [AWS Services That Publish CloudWatch Metrics.](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/aws-services-cloudwatch-metrics.html)
295 *
296 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-namespace
297 */
298 namespace: string | undefined;
299 /**
300 * The actions to execute when this alarm transitions to the `OK` state from any other state. Each action is specified as an Amazon Resource Name (ARN).
301 *
302 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-okactions
303 */
304 okActions: string[] | undefined;
305 /**
306 * The period, in seconds, over which the statistic is applied. This is required for an alarm based on a metric. Valid values are 10, 30, 60, and any multiple of 60.
307 *
308 * For an alarm based on a math expression, you can't specify `Period` , and instead you use the `Metrics` parameter.
309 *
310 * *Minimum:* 10
311 *
312 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-period
313 */
314 period: number | undefined;
315 /**
316 * The statistic for the metric associated with the alarm, other than percentile. For percentile statistics, use `ExtendedStatistic` .
317 *
318 * For an alarm based on a metric, you must specify either `Statistic` or `ExtendedStatistic` but not both.
319 *
320 * For an alarm based on a math expression, you can't specify `Statistic` . Instead, you use `Metrics` .
321 *
322 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-statistic
323 */
324 statistic: string | undefined;
325 /**
326 * The value to compare with the specified statistic.
327 *
328 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-threshold
329 */
330 threshold: number | undefined;
331 /**
332 * In an alarm based on an anomaly detection model, this is the ID of the `ANOMALY_DETECTION_BAND` function used as the threshold for the alarm.
333 *
334 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-dynamic-threshold
335 */
336 thresholdMetricId: string | undefined;
337 /**
338 * Sets how this alarm is to handle missing data points. Valid values are `breaching` , `notBreaching` , `ignore` , and `missing` . For more information, see [Configuring How CloudWatch Alarms Treat Missing Data](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html#alarms-and-missing-data) in the *Amazon CloudWatch User Guide* .
339 *
340 * If you omit this parameter, the default behavior of `missing` is used.
341 *
342 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-treatmissingdata
343 */
344 treatMissingData: string | undefined;
345 /**
346 * The unit of the metric associated with the alarm. Specify this only if you are creating an alarm based on a single metric. Do not specify this if you are specifying a `Metrics` array.
347 *
348 * You can specify the following values: Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, or None.
349 *
350 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-alarm.html#cfn-cloudwatch-alarms-unit
351 */
352 unit: string | undefined;
353 /**
354 * Create a new `AWS::CloudWatch::Alarm`.
355 *
356 * @param scope - scope in which this resource is defined
357 * @param id - scoped id of the resource
358 * @param props - resource properties
359 */
360 constructor(scope: cdk.Construct, id: string, props: CfnAlarmProps);
361 /**
362 * Examines the CloudFormation resource and discloses attributes.
363 *
364 * @param inspector - tree inspector to collect and process attributes
365 *
366 */
367 inspect(inspector: cdk.TreeInspector): void;
368 protected get cfnProperties(): {
369 [key: string]: any;
370 };
371 protected renderProperties(props: {
372 [key: string]: any;
373 }): {
374 [key: string]: any;
375 };
376}
377export declare namespace CfnAlarm {
378 /**
379 * Dimension is an embedded property of the `AWS::CloudWatch::Alarm` type. Dimensions are name/value pairs that can be associated with a CloudWatch metric. You can specify a maximum of 10 dimensions for a given metric.
380 *
381 * @struct
382 * @stability external
383 *
384 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-dimension.html
385 */
386 interface DimensionProperty {
387 /**
388 * The name of the dimension, from 1–255 characters in length. This dimension name must have been included when the metric was published.
389 *
390 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-dimension.html#cfn-cloudwatch-alarm-dimension-name
391 */
392 readonly name: string;
393 /**
394 * The value for the dimension, from 1–255 characters in length.
395 *
396 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cw-dimension.html#cfn-cloudwatch-alarm-dimension-value
397 */
398 readonly value: string;
399 }
400}
401export declare namespace CfnAlarm {
402 /**
403 * The `Metric` property type represents a specific metric. `Metric` is a property of the [MetricStat](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metricstat.html) property type.
404 *
405 * @struct
406 * @stability external
407 *
408 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metric.html
409 */
410 interface MetricProperty {
411 /**
412 * The metric dimensions that you want to be used for the metric that the alarm will watch..
413 *
414 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metric.html#cfn-cloudwatch-alarm-metric-dimensions
415 */
416 readonly dimensions?: Array<CfnAlarm.DimensionProperty | cdk.IResolvable> | cdk.IResolvable;
417 /**
418 * The name of the metric that you want the alarm to watch. This is a required field.
419 *
420 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metric.html#cfn-cloudwatch-alarm-metric-metricname
421 */
422 readonly metricName?: string;
423 /**
424 * The namespace of the metric that the alarm will watch.
425 *
426 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metric.html#cfn-cloudwatch-alarm-metric-namespace
427 */
428 readonly namespace?: string;
429 }
430}
431export declare namespace CfnAlarm {
432 /**
433 * The `MetricDataQuery` property type specifies the metric data to return, and whether this call is just retrieving a batch set of data for one metric, or is performing a math expression on metric data.
434 *
435 * Any expression used must return a single time series. For more information, see [Metric Math Syntax and Functions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax) in the *Amazon CloudWatch User Guide* .
436 *
437 * @struct
438 * @stability external
439 *
440 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metricdataquery.html
441 */
442 interface MetricDataQueryProperty {
443 /**
444 * The ID of the account where the metrics are located, if this is a cross-account alarm.
445 *
446 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metricdataquery.html#cfn-cloudwatch-alarm-metricdataquery-accountid
447 */
448 readonly accountId?: string;
449 /**
450 * The math expression to be performed on the returned data, if this object is performing a math expression. This expression can use the `Id` of the other metrics to refer to those metrics, and can also use the `Id` of other expressions to use the result of those expressions. For more information about metric math expressions, see [Metric Math Syntax and Functions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax) in the *Amazon CloudWatch User Guide* .
451 *
452 * Within each MetricDataQuery object, you must specify either `Expression` or `MetricStat` but not both.
453 *
454 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metricdataquery.html#cfn-cloudwatch-alarm-metricdataquery-expression
455 */
456 readonly expression?: string;
457 /**
458 * A short name used to tie this object to the results in the response. This name must be unique within a single call to `GetMetricData` . If you are performing math expressions on this set of data, this name represents that data and can serve as a variable in the mathematical expression. The valid characters are letters, numbers, and underscore. The first character must be a lowercase letter.
459 *
460 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metricdataquery.html#cfn-cloudwatch-alarm-metricdataquery-id
461 */
462 readonly id: string;
463 /**
464 * A human-readable label for this metric or expression. This is especially useful if this is an expression, so that you know what the value represents. If the metric or expression is shown in a CloudWatch dashboard widget, the label is shown. If `Label` is omitted, CloudWatch generates a default.
465 *
466 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metricdataquery.html#cfn-cloudwatch-alarm-metricdataquery-label
467 */
468 readonly label?: string;
469 /**
470 * The metric to be returned, along with statistics, period, and units. Use this parameter only if this object is retrieving a metric and not performing a math expression on returned data.
471 *
472 * Within one MetricDataQuery object, you must specify either `Expression` or `MetricStat` but not both.
473 *
474 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metricdataquery.html#cfn-cloudwatch-alarm-metricdataquery-metricstat
475 */
476 readonly metricStat?: CfnAlarm.MetricStatProperty | cdk.IResolvable;
477 /**
478 * The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a `PutMetricData` operation that includes a `StorageResolution of 1 second` .
479 */
480 readonly period?: number;
481 /**
482 * This option indicates whether to return the timestamps and raw data values of this metric.
483 *
484 * When you create an alarm based on a metric math expression, specify `True` for this value for only the one math expression that the alarm is based on. You must specify `False` for `ReturnData` for all the other metrics and expressions used in the alarm.
485 *
486 * This field is required.
487 *
488 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metricdataquery.html#cfn-cloudwatch-alarm-metricdataquery-returndata
489 */
490 readonly returnData?: boolean | cdk.IResolvable;
491 }
492}
493export declare namespace CfnAlarm {
494 /**
495 * This structure defines the metric to be returned, along with the statistics, period, and units.
496 *
497 * `MetricStat` is a property of the [MetricDataQuery](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metricdataquery.html) property type.
498 *
499 * @struct
500 * @stability external
501 *
502 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metricstat.html
503 */
504 interface MetricStatProperty {
505 /**
506 * The metric to return, including the metric name, namespace, and dimensions.
507 *
508 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metricstat.html#cfn-cloudwatch-alarm-metricstat-metric
509 */
510 readonly metric: CfnAlarm.MetricProperty | cdk.IResolvable;
511 /**
512 * The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a `PutMetricData` call that includes a `StorageResolution` of 1 second.
513 *
514 * If the `StartTime` parameter specifies a time stamp that is greater than 3 hours ago, you must specify the period as follows or no data points in that time range is returned:
515 *
516 * - Start time between 3 hours and 15 days ago - Use a multiple of 60 seconds (1 minute).
517 * - Start time between 15 and 63 days ago - Use a multiple of 300 seconds (5 minutes).
518 * - Start time greater than 63 days ago - Use a multiple of 3600 seconds (1 hour).
519 *
520 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metricstat.html#cfn-cloudwatch-alarm-metricstat-period
521 */
522 readonly period: number;
523 /**
524 * The statistic to return. It can include any CloudWatch statistic or extended statistic. For a list of valid values, see the table in [Statistics](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Statistic) in the *Amazon CloudWatch User Guide* .
525 *
526 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metricstat.html#cfn-cloudwatch-alarm-metricstat-stat
527 */
528 readonly stat: string;
529 /**
530 * The unit to use for the returned data points.
531 *
532 * Valid values are: Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, or None.
533 *
534 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-alarm-metricstat.html#cfn-cloudwatch-alarm-metricstat-unit
535 */
536 readonly unit?: string;
537 }
538}
539/**
540 * Properties for defining a `CfnAnomalyDetector`
541 *
542 * @struct
543 * @stability external
544 *
545 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html
546 */
547export interface CfnAnomalyDetectorProps {
548 /**
549 * Specifies details about how the anomaly detection model is to be trained, including time ranges to exclude when training and updating the model. The configuration can also include the time zone to use for the metric.
550 *
551 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html#cfn-cloudwatch-anomalydetector-configuration
552 */
553 readonly configuration?: CfnAnomalyDetector.ConfigurationProperty | cdk.IResolvable;
554 /**
555 * The dimensions of the metric associated with the anomaly detection band.
556 *
557 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html#cfn-cloudwatch-anomalydetector-dimensions
558 */
559 readonly dimensions?: Array<CfnAnomalyDetector.DimensionProperty | cdk.IResolvable> | cdk.IResolvable;
560 /**
561 * The CloudWatch metric math expression for this anomaly detector.
562 *
563 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html#cfn-cloudwatch-anomalydetector-metricmathanomalydetector
564 */
565 readonly metricMathAnomalyDetector?: CfnAnomalyDetector.MetricMathAnomalyDetectorProperty | cdk.IResolvable;
566 /**
567 * The name of the metric associated with the anomaly detection band.
568 *
569 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html#cfn-cloudwatch-anomalydetector-metricname
570 */
571 readonly metricName?: string;
572 /**
573 * The namespace of the metric associated with the anomaly detection band.
574 *
575 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html#cfn-cloudwatch-anomalydetector-namespace
576 */
577 readonly namespace?: string;
578 /**
579 * The CloudWatch metric and statistic for this anomaly detector.
580 *
581 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html#cfn-cloudwatch-anomalydetector-singlemetricanomalydetector
582 */
583 readonly singleMetricAnomalyDetector?: CfnAnomalyDetector.SingleMetricAnomalyDetectorProperty | cdk.IResolvable;
584 /**
585 * The statistic of the metric associated with the anomaly detection band.
586 *
587 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html#cfn-cloudwatch-anomalydetector-stat
588 */
589 readonly stat?: string;
590}
591/**
592 * A CloudFormation `AWS::CloudWatch::AnomalyDetector`
593 *
594 * The `AWS::CloudWatch::AnomalyDetector` type specifies an anomaly detection band for a certain metric and statistic. The band represents the expected "normal" range for the metric values. Anomaly detection bands can be used for visualization of a metric's expected values, and for alarms.
595 *
596 * @cloudformationResource AWS::CloudWatch::AnomalyDetector
597 * @stability external
598 *
599 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html
600 */
601export declare class CfnAnomalyDetector extends cdk.CfnResource implements cdk.IInspectable {
602 /**
603 * The CloudFormation resource type name for this resource class.
604 */
605 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CloudWatch::AnomalyDetector";
606 /**
607 * A factory method that creates a new instance of this class from an object
608 * containing the CloudFormation properties of this resource.
609 * Used in the @aws-cdk/cloudformation-include module.
610 *
611 * @internal
612 */
613 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnAnomalyDetector;
614 /**
615 * Specifies details about how the anomaly detection model is to be trained, including time ranges to exclude when training and updating the model. The configuration can also include the time zone to use for the metric.
616 *
617 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html#cfn-cloudwatch-anomalydetector-configuration
618 */
619 configuration: CfnAnomalyDetector.ConfigurationProperty | cdk.IResolvable | undefined;
620 /**
621 * The dimensions of the metric associated with the anomaly detection band.
622 *
623 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html#cfn-cloudwatch-anomalydetector-dimensions
624 */
625 dimensions: Array<CfnAnomalyDetector.DimensionProperty | cdk.IResolvable> | cdk.IResolvable | undefined;
626 /**
627 * The CloudWatch metric math expression for this anomaly detector.
628 *
629 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html#cfn-cloudwatch-anomalydetector-metricmathanomalydetector
630 */
631 metricMathAnomalyDetector: CfnAnomalyDetector.MetricMathAnomalyDetectorProperty | cdk.IResolvable | undefined;
632 /**
633 * The name of the metric associated with the anomaly detection band.
634 *
635 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html#cfn-cloudwatch-anomalydetector-metricname
636 */
637 metricName: string | undefined;
638 /**
639 * The namespace of the metric associated with the anomaly detection band.
640 *
641 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html#cfn-cloudwatch-anomalydetector-namespace
642 */
643 namespace: string | undefined;
644 /**
645 * The CloudWatch metric and statistic for this anomaly detector.
646 *
647 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html#cfn-cloudwatch-anomalydetector-singlemetricanomalydetector
648 */
649 singleMetricAnomalyDetector: CfnAnomalyDetector.SingleMetricAnomalyDetectorProperty | cdk.IResolvable | undefined;
650 /**
651 * The statistic of the metric associated with the anomaly detection band.
652 *
653 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-anomalydetector.html#cfn-cloudwatch-anomalydetector-stat
654 */
655 stat: string | undefined;
656 /**
657 * Create a new `AWS::CloudWatch::AnomalyDetector`.
658 *
659 * @param scope - scope in which this resource is defined
660 * @param id - scoped id of the resource
661 * @param props - resource properties
662 */
663 constructor(scope: cdk.Construct, id: string, props?: CfnAnomalyDetectorProps);
664 /**
665 * Examines the CloudFormation resource and discloses attributes.
666 *
667 * @param inspector - tree inspector to collect and process attributes
668 *
669 */
670 inspect(inspector: cdk.TreeInspector): void;
671 protected get cfnProperties(): {
672 [key: string]: any;
673 };
674 protected renderProperties(props: {
675 [key: string]: any;
676 }): {
677 [key: string]: any;
678 };
679}
680export declare namespace CfnAnomalyDetector {
681 /**
682 * Specifies details about how the anomaly detection model is to be trained, including time ranges to exclude when training and updating the model. The configuration can also include the time zone to use for the metric.
683 *
684 * @struct
685 * @stability external
686 *
687 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-configuration.html
688 */
689 interface ConfigurationProperty {
690 /**
691 * Specifies an array of time ranges to exclude from use when the anomaly detection model is trained and updated. Use this to make sure that events that could cause unusual values for the metric, such as deployments, aren't used when CloudWatch creates or updates the model.
692 *
693 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-configuration.html#cfn-cloudwatch-anomalydetector-configuration-excludedtimeranges
694 */
695 readonly excludedTimeRanges?: Array<CfnAnomalyDetector.RangeProperty | cdk.IResolvable> | cdk.IResolvable;
696 /**
697 * The time zone to use for the metric. This is useful to enable the model to automatically account for daylight savings time changes if the metric is sensitive to such time changes.
698 *
699 * To specify a time zone, use the name of the time zone as specified in the standard tz database. For more information, see [tz database](https://docs.aws.amazon.com/https://en.wikipedia.org/wiki/Tz_database) .
700 *
701 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-configuration.html#cfn-cloudwatch-anomalydetector-configuration-metrictimezone
702 */
703 readonly metricTimeZone?: string;
704 }
705}
706export declare namespace CfnAnomalyDetector {
707 /**
708 * A dimension is a name/value pair that is part of the identity of a metric. Because dimensions are part of the unique identifier for a metric, whenever you add a unique name/value pair to one of your metrics, you are creating a new variation of that metric. For example, many Amazon EC2 metrics publish `InstanceId` as a dimension name, and the actual instance ID as the value for that dimension.
709 *
710 * You can assign up to 10 dimensions to a metric.
711 *
712 * @struct
713 * @stability external
714 *
715 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-dimension.html
716 */
717 interface DimensionProperty {
718 /**
719 * The name of the dimension.
720 *
721 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-dimension.html#cfn-cloudwatch-anomalydetector-dimension-name
722 */
723 readonly name: string;
724 /**
725 * The value of the dimension. Dimension values must contain only ASCII characters and must include at least one non-whitespace character.
726 *
727 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-dimension.html#cfn-cloudwatch-anomalydetector-dimension-value
728 */
729 readonly value: string;
730 }
731}
732export declare namespace CfnAnomalyDetector {
733 /**
734 * Represents a specific metric.
735 *
736 * @struct
737 * @stability external
738 *
739 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-metric.html
740 */
741 interface MetricProperty {
742 /**
743 * The dimensions for the metric.
744 *
745 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-metric.html#cfn-cloudwatch-anomalydetector-metric-dimensions
746 */
747 readonly dimensions?: Array<CfnAnomalyDetector.DimensionProperty | cdk.IResolvable> | cdk.IResolvable;
748 /**
749 * The name of the metric. This is a required field.
750 *
751 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-metric.html#cfn-cloudwatch-anomalydetector-metric-metricname
752 */
753 readonly metricName: string;
754 /**
755 * The namespace of the metric.
756 *
757 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-metric.html#cfn-cloudwatch-anomalydetector-metric-namespace
758 */
759 readonly namespace: string;
760 }
761}
762export declare namespace CfnAnomalyDetector {
763 /**
764 * This structure is used in both `GetMetricData` and `PutMetricAlarm` . The supported use of this structure is different for those two operations.
765 *
766 * When used in `GetMetricData` , it indicates the metric data to return, and whether this call is just retrieving a batch set of data for one metric, or is performing a Metrics Insights query or a math expression. A single `GetMetricData` call can include up to 500 `MetricDataQuery` structures.
767 *
768 * When used in `PutMetricAlarm` , it enables you to create an alarm based on a metric math expression. Each `MetricDataQuery` in the array specifies either a metric to retrieve, or a math expression to be performed on retrieved metrics. A single `PutMetricAlarm` call can include up to 20 `MetricDataQuery` structures in the array. The 20 structures can include as many as 10 structures that contain a `MetricStat` parameter to retrieve a metric, and as many as 10 structures that contain the `Expression` parameter to perform a math expression. Of those `Expression` structures, one must have `True` as the value for `ReturnData` . The result of this expression is the value the alarm watches.
769 *
770 * Any expression used in a `PutMetricAlarm` operation must return a single time series. For more information, see [Metric Math Syntax and Functions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax) in the *Amazon CloudWatch User Guide* .
771 *
772 * Some of the parameters of this structure also have different uses whether you are using this structure in a `GetMetricData` operation or a `PutMetricAlarm` operation. These differences are explained in the following parameter list.
773 *
774 * @struct
775 * @stability external
776 *
777 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-metricdataquery.html
778 */
779 interface MetricDataQueryProperty {
780 /**
781 * The ID of the account where the metrics are located, if this is a cross-account alarm.
782 *
783 * Use this field only for `PutMetricAlarm` operations. It is not used in `GetMetricData` operations.
784 *
785 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-metricdataquery.html#cfn-cloudwatch-anomalydetector-metricdataquery-accountid
786 */
787 readonly accountId?: string;
788 /**
789 * This field can contain either a Metrics Insights query, or a metric math expression to be performed on the returned data. For more information about Metrics Insights queries, see [Metrics Insights query components and syntax](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch-metrics-insights-querylanguage) in the *Amazon CloudWatch User Guide* .
790 *
791 * A math expression can use the `Id` of the other metrics or queries to refer to those metrics, and can also use the `Id` of other expressions to use the result of those expressions. For more information about metric math expressions, see [Metric Math Syntax and Functions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax) in the *Amazon CloudWatch User Guide* .
792 *
793 * Within each MetricDataQuery object, you must specify either `Expression` or `MetricStat` but not both.
794 *
795 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-metricdataquery.html#cfn-cloudwatch-anomalydetector-metricdataquery-expression
796 */
797 readonly expression?: string;
798 /**
799 * A short name used to tie this object to the results in the response. This name must be unique within a single call to `GetMetricData` . If you are performing math expressions on this set of data, this name represents that data and can serve as a variable in the mathematical expression. The valid characters are letters, numbers, and underscore. The first character must be a lowercase letter.
800 *
801 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-metricdataquery.html#cfn-cloudwatch-anomalydetector-metricdataquery-id
802 */
803 readonly id: string;
804 /**
805 * A human-readable label for this metric or expression. This is especially useful if this is an expression, so that you know what the value represents. If the metric or expression is shown in a CloudWatch dashboard widget, the label is shown. If Label is omitted, CloudWatch generates a default.
806 *
807 * You can put dynamic expressions into a label, so that it is more descriptive. For more information, see [Using Dynamic Labels](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html) .
808 *
809 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-metricdataquery.html#cfn-cloudwatch-anomalydetector-metricdataquery-label
810 */
811 readonly label?: string;
812 /**
813 * The metric to be returned, along with statistics, period, and units. Use this parameter only if this object is retrieving a metric and not performing a math expression on returned data.
814 *
815 * Within one MetricDataQuery object, you must specify either `Expression` or `MetricStat` but not both.
816 *
817 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-metricdataquery.html#cfn-cloudwatch-anomalydetector-metricdataquery-metricstat
818 */
819 readonly metricStat?: CfnAnomalyDetector.MetricStatProperty | cdk.IResolvable;
820 /**
821 * The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a `PutMetricData` operation that includes a `StorageResolution of 1 second` .
822 *
823 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-metricdataquery.html#cfn-cloudwatch-anomalydetector-metricdataquery-period
824 */
825 readonly period?: number;
826 /**
827 * When used in `GetMetricData` , this option indicates whether to return the timestamps and raw data values of this metric. If you are performing this call just to do math expressions and do not also need the raw data returned, you can specify `False` . If you omit this, the default of `True` is used.
828 *
829 * When used in `PutMetricAlarm` , specify `True` for the one expression result to use as the alarm. For all other metrics and expressions in the same `PutMetricAlarm` operation, specify `ReturnData` as False.
830 *
831 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-metricdataquery.html#cfn-cloudwatch-anomalydetector-metricdataquery-returndata
832 */
833 readonly returnData?: boolean | cdk.IResolvable;
834 }
835}
836export declare namespace CfnAnomalyDetector {
837 /**
838 * Indicates the CloudWatch math expression that provides the time series the anomaly detector uses as input. The designated math expression must return a single time series.
839 *
840 * @struct
841 * @stability external
842 *
843 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-metricmathanomalydetector.html
844 */
845 interface MetricMathAnomalyDetectorProperty {
846 /**
847 * An array of metric data query structures that enables you to create an anomaly detector based on the result of a metric math expression. Each item in `MetricDataQueries` gets a metric or performs a math expression. One item in `MetricDataQueries` is the expression that provides the time series that the anomaly detector uses as input. Designate the expression by setting `ReturnData` to `True` for this object in the array. For all other expressions and metrics, set `ReturnData` to `False` . The designated expression must return a single time series.
848 *
849 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-metricmathanomalydetector.html#cfn-cloudwatch-anomalydetector-metricmathanomalydetector-metricdataqueries
850 */
851 readonly metricDataQueries?: Array<CfnAnomalyDetector.MetricDataQueryProperty | cdk.IResolvable> | cdk.IResolvable;
852 }
853}
854export declare namespace CfnAnomalyDetector {
855 /**
856 * This structure defines the metric to be returned, along with the statistics, period, and units.
857 *
858 * @struct
859 * @stability external
860 *
861 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-metricstat.html
862 */
863 interface MetricStatProperty {
864 /**
865 * The metric to return, including the metric name, namespace, and dimensions.
866 *
867 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-metricstat.html#cfn-cloudwatch-anomalydetector-metricstat-metric
868 */
869 readonly metric: CfnAnomalyDetector.MetricProperty | cdk.IResolvable;
870 /**
871 * The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a `PutMetricData` call that includes a `StorageResolution` of 1 second.
872 *
873 * If the `StartTime` parameter specifies a time stamp that is greater than 3 hours ago, you must specify the period as follows or no data points in that time range is returned:
874 *
875 * - Start time between 3 hours and 15 days ago - Use a multiple of 60 seconds (1 minute).
876 * - Start time between 15 and 63 days ago - Use a multiple of 300 seconds (5 minutes).
877 * - Start time greater than 63 days ago - Use a multiple of 3600 seconds (1 hour).
878 *
879 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-metricstat.html#cfn-cloudwatch-anomalydetector-metricstat-period
880 */
881 readonly period: number;
882 /**
883 * The statistic to return. It can include any CloudWatch statistic or extended statistic.
884 *
885 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-metricstat.html#cfn-cloudwatch-anomalydetector-metricstat-stat
886 */
887 readonly stat: string;
888 /**
889 * When you are using a `Put` operation, this defines what unit you want to use when storing the metric.
890 *
891 * In a `Get` operation, if you omit `Unit` then all data that was collected with any unit is returned, along with the corresponding units that were specified when the data was reported to CloudWatch. If you specify a unit, the operation returns only data that was collected with that unit specified. If you specify a unit that does not match the data collected, the results of the operation are null. CloudWatch does not perform unit conversions.
892 *
893 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-metricstat.html#cfn-cloudwatch-anomalydetector-metricstat-unit
894 */
895 readonly unit?: string;
896 }
897}
898export declare namespace CfnAnomalyDetector {
899 /**
900 * Each `Range` specifies one range of days or times to exclude from use for training or updating an anomaly detection model.
901 *
902 * @struct
903 * @stability external
904 *
905 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-range.html
906 */
907 interface RangeProperty {
908 /**
909 * The end time of the range to exclude. The format is `yyyy-MM-dd'T'HH:mm:ss` . For example, `2019-07-01T23:59:59` .
910 *
911 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-range.html#cfn-cloudwatch-anomalydetector-range-endtime
912 */
913 readonly endTime: string;
914 /**
915 * The start time of the range to exclude. The format is `yyyy-MM-dd'T'HH:mm:ss` . For example, `2019-07-01T23:59:59` .
916 *
917 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-range.html#cfn-cloudwatch-anomalydetector-range-starttime
918 */
919 readonly startTime: string;
920 }
921}
922export declare namespace CfnAnomalyDetector {
923 /**
924 * Designates the CloudWatch metric and statistic that provides the time series the anomaly detector uses as input.
925 *
926 * @struct
927 * @stability external
928 *
929 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-singlemetricanomalydetector.html
930 */
931 interface SingleMetricAnomalyDetectorProperty {
932 /**
933 * The metric dimensions to create the anomaly detection model for.
934 *
935 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-singlemetricanomalydetector.html#cfn-cloudwatch-anomalydetector-singlemetricanomalydetector-dimensions
936 */
937 readonly dimensions?: Array<CfnAnomalyDetector.DimensionProperty | cdk.IResolvable> | cdk.IResolvable;
938 /**
939 * The name of the metric to create the anomaly detection model for.
940 *
941 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-singlemetricanomalydetector.html#cfn-cloudwatch-anomalydetector-singlemetricanomalydetector-metricname
942 */
943 readonly metricName?: string;
944 /**
945 * The namespace of the metric to create the anomaly detection model for.
946 *
947 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-singlemetricanomalydetector.html#cfn-cloudwatch-anomalydetector-singlemetricanomalydetector-namespace
948 */
949 readonly namespace?: string;
950 /**
951 * The statistic to use for the metric and anomaly detection model.
952 *
953 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-singlemetricanomalydetector.html#cfn-cloudwatch-anomalydetector-singlemetricanomalydetector-stat
954 */
955 readonly stat?: string;
956 }
957}
958/**
959 * Properties for defining a `CfnCompositeAlarm`
960 *
961 * @struct
962 * @stability external
963 *
964 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-compositealarm.html
965 */
966export interface CfnCompositeAlarmProps {
967 /**
968 * The name for the composite alarm. This name must be unique within your AWS account.
969 *
970 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-compositealarm.html#cfn-cloudwatch-compositealarm-alarmname
971 */
972 readonly alarmName: string;
973 /**
974 * An expression that specifies which other alarms are to be evaluated to determine this composite alarm's state. For each alarm that you reference, you designate a function that specifies whether that alarm needs to be in ALARM state, OK state, or INSUFFICIENT_DATA state. You can use operators (AND, OR and NOT) to combine multiple functions in a single expression. You can use parenthesis to logically group the functions in your expression.
975 *
976 * You can use either alarm names or ARNs to reference the other alarms that are to be evaluated.
977 *
978 * Functions can include the following:
979 *
980 * - ALARM("alarm-name or alarm-ARN") is TRUE if the named alarm is in ALARM state.
981 * - OK("alarm-name or alarm-ARN") is TRUE if the named alarm is in OK state.
982 * - INSUFFICIENT_DATA("alarm-name or alarm-ARN") is TRUE if the named alarm is in INSUFFICIENT_DATA state.
983 * - TRUE always evaluates to TRUE.
984 * - FALSE always evaluates to FALSE.
985 *
986 * TRUE and FALSE are useful for testing a complex AlarmRule structure, and for testing your alarm actions.
987 *
988 * For more information about `AlarmRule` syntax, see [PutCompositeAlarm](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_PutCompositeAlarm.html) in the *Amazon CloudWatch API Reference* .
989 *
990 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-compositealarm.html#cfn-cloudwatch-compositealarm-alarmrule
991 */
992 readonly alarmRule: string;
993 /**
994 * Indicates whether actions should be executed during any changes to the alarm state of the composite alarm. The default is TRUE.
995 *
996 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-compositealarm.html#cfn-cloudwatch-compositealarm-actionsenabled
997 */
998 readonly actionsEnabled?: boolean | cdk.IResolvable;
999 /**
1000 * The actions to execute when this alarm transitions to the ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN). For more information about creating alarms and the actions that you can specify, see [PutCompositeAlarm](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_PutCompositeAlarm.html) in the *Amazon CloudWatch API Reference* .
1001 *
1002 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-compositealarm.html#cfn-cloudwatch-compositealarm-alarmactions
1003 */
1004 readonly alarmActions?: string[];
1005 /**
1006 * The description for the composite alarm.
1007 *
1008 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-compositealarm.html#cfn-cloudwatch-compositealarm-alarmdescription
1009 */
1010 readonly alarmDescription?: string;
1011 /**
1012 * The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN). For more information about creating alarms and the actions that you can specify, see [PutCompositeAlarm](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_PutCompositeAlarm.html) in the *Amazon CloudWatch API Reference* .
1013 *
1014 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-compositealarm.html#cfn-cloudwatch-compositealarm-insufficientdataactions
1015 */
1016 readonly insufficientDataActions?: string[];
1017 /**
1018 * The actions to execute when this alarm transitions to the OK state from any other state. Each action is specified as an Amazon Resource Name (ARN). For more information about creating alarms and the actions that you can specify, see [PutCompositeAlarm](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_PutCompositeAlarm.html) in the *Amazon CloudWatch API Reference* .
1019 *
1020 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-compositealarm.html#cfn-cloudwatch-compositealarm-okactions
1021 */
1022 readonly okActions?: string[];
1023}
1024/**
1025 * A CloudFormation `AWS::CloudWatch::CompositeAlarm`
1026 *
1027 * The `AWS::CloudWatch::CompositeAlarm` type creates or updates a composite alarm. When you create a composite alarm, you specify a rule expression for the alarm that takes into account the alarm states of other alarms that you have created. The composite alarm goes into ALARM state only if all conditions of the rule are met.
1028 *
1029 * The alarms specified in a composite alarm's rule expression can include metric alarms and other composite alarms.
1030 *
1031 * Using composite alarms can reduce alarm noise. You can create multiple metric alarms, and also create a composite alarm and set up alerts only for the composite alarm. For example, you could create a composite alarm that goes into ALARM state only when more than one of the underlying metric alarms are in ALARM state.
1032 *
1033 * Currently, the only alarm actions that can be taken by composite alarms are notifying SNS topics.
1034 *
1035 * When this operation creates an alarm, the alarm state is immediately set to INSUFFICIENT_DATA. The alarm is then evaluated and its state is set appropriately. Any actions associated with the new state are then executed. For a composite alarm, this initial time after creation is the only time that the alarm can be in INSUFFICIENT_DATA state.
1036 *
1037 * When you update an existing alarm, its state is left unchanged, but the update completely overwrites the previous configuration of the alarm.
1038 *
1039 * @cloudformationResource AWS::CloudWatch::CompositeAlarm
1040 * @stability external
1041 *
1042 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-compositealarm.html
1043 */
1044export declare class CfnCompositeAlarm extends cdk.CfnResource implements cdk.IInspectable {
1045 /**
1046 * The CloudFormation resource type name for this resource class.
1047 */
1048 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CloudWatch::CompositeAlarm";
1049 /**
1050 * A factory method that creates a new instance of this class from an object
1051 * containing the CloudFormation properties of this resource.
1052 * Used in the @aws-cdk/cloudformation-include module.
1053 *
1054 * @internal
1055 */
1056 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnCompositeAlarm;
1057 /**
1058 * The ARN of the composite alarm, such as `arn:aws:cloudwatch:us-west-2:123456789012:alarm/CompositeAlarmName` .
1059 * @cloudformationAttribute Arn
1060 */
1061 readonly attrArn: string;
1062 /**
1063 * The name for the composite alarm. This name must be unique within your AWS account.
1064 *
1065 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-compositealarm.html#cfn-cloudwatch-compositealarm-alarmname
1066 */
1067 alarmName: string;
1068 /**
1069 * An expression that specifies which other alarms are to be evaluated to determine this composite alarm's state. For each alarm that you reference, you designate a function that specifies whether that alarm needs to be in ALARM state, OK state, or INSUFFICIENT_DATA state. You can use operators (AND, OR and NOT) to combine multiple functions in a single expression. You can use parenthesis to logically group the functions in your expression.
1070 *
1071 * You can use either alarm names or ARNs to reference the other alarms that are to be evaluated.
1072 *
1073 * Functions can include the following:
1074 *
1075 * - ALARM("alarm-name or alarm-ARN") is TRUE if the named alarm is in ALARM state.
1076 * - OK("alarm-name or alarm-ARN") is TRUE if the named alarm is in OK state.
1077 * - INSUFFICIENT_DATA("alarm-name or alarm-ARN") is TRUE if the named alarm is in INSUFFICIENT_DATA state.
1078 * - TRUE always evaluates to TRUE.
1079 * - FALSE always evaluates to FALSE.
1080 *
1081 * TRUE and FALSE are useful for testing a complex AlarmRule structure, and for testing your alarm actions.
1082 *
1083 * For more information about `AlarmRule` syntax, see [PutCompositeAlarm](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_PutCompositeAlarm.html) in the *Amazon CloudWatch API Reference* .
1084 *
1085 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-compositealarm.html#cfn-cloudwatch-compositealarm-alarmrule
1086 */
1087 alarmRule: string;
1088 /**
1089 * Indicates whether actions should be executed during any changes to the alarm state of the composite alarm. The default is TRUE.
1090 *
1091 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-compositealarm.html#cfn-cloudwatch-compositealarm-actionsenabled
1092 */
1093 actionsEnabled: boolean | cdk.IResolvable | undefined;
1094 /**
1095 * The actions to execute when this alarm transitions to the ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN). For more information about creating alarms and the actions that you can specify, see [PutCompositeAlarm](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_PutCompositeAlarm.html) in the *Amazon CloudWatch API Reference* .
1096 *
1097 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-compositealarm.html#cfn-cloudwatch-compositealarm-alarmactions
1098 */
1099 alarmActions: string[] | undefined;
1100 /**
1101 * The description for the composite alarm.
1102 *
1103 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-compositealarm.html#cfn-cloudwatch-compositealarm-alarmdescription
1104 */
1105 alarmDescription: string | undefined;
1106 /**
1107 * The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN). For more information about creating alarms and the actions that you can specify, see [PutCompositeAlarm](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_PutCompositeAlarm.html) in the *Amazon CloudWatch API Reference* .
1108 *
1109 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-compositealarm.html#cfn-cloudwatch-compositealarm-insufficientdataactions
1110 */
1111 insufficientDataActions: string[] | undefined;
1112 /**
1113 * The actions to execute when this alarm transitions to the OK state from any other state. Each action is specified as an Amazon Resource Name (ARN). For more information about creating alarms and the actions that you can specify, see [PutCompositeAlarm](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_PutCompositeAlarm.html) in the *Amazon CloudWatch API Reference* .
1114 *
1115 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-compositealarm.html#cfn-cloudwatch-compositealarm-okactions
1116 */
1117 okActions: string[] | undefined;
1118 /**
1119 * Create a new `AWS::CloudWatch::CompositeAlarm`.
1120 *
1121 * @param scope - scope in which this resource is defined
1122 * @param id - scoped id of the resource
1123 * @param props - resource properties
1124 */
1125 constructor(scope: cdk.Construct, id: string, props: CfnCompositeAlarmProps);
1126 /**
1127 * Examines the CloudFormation resource and discloses attributes.
1128 *
1129 * @param inspector - tree inspector to collect and process attributes
1130 *
1131 */
1132 inspect(inspector: cdk.TreeInspector): void;
1133 protected get cfnProperties(): {
1134 [key: string]: any;
1135 };
1136 protected renderProperties(props: {
1137 [key: string]: any;
1138 }): {
1139 [key: string]: any;
1140 };
1141}
1142/**
1143 * Properties for defining a `CfnDashboard`
1144 *
1145 * @struct
1146 * @stability external
1147 *
1148 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-dashboard.html
1149 */
1150export interface CfnDashboardProps {
1151 /**
1152 * The detailed information about the dashboard in JSON format, including the widgets to include and their location on the dashboard. This parameter is required.
1153 *
1154 * For more information about the syntax, see [Dashboard Body Structure and Syntax](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/CloudWatch-Dashboard-Body-Structure.html) .
1155 *
1156 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-dashboard.html#cfn-cloudwatch-dashboard-dashboardbody
1157 */
1158 readonly dashboardBody: string;
1159 /**
1160 * The name of the dashboard. The name must be between 1 and 255 characters. If you do not specify a name, one will be generated automatically.
1161 *
1162 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-dashboard.html#cfn-cloudwatch-dashboard-dashboardname
1163 */
1164 readonly dashboardName?: string;
1165}
1166/**
1167 * A CloudFormation `AWS::CloudWatch::Dashboard`
1168 *
1169 * The `AWS::CloudWatch::Dashboard` resource specifies an Amazon CloudWatch dashboard. A dashboard is a customizable home page in the CloudWatch console that you can use to monitor your AWS resources in a single view.
1170 *
1171 * All dashboards in your account are global, not region-specific.
1172 *
1173 * @cloudformationResource AWS::CloudWatch::Dashboard
1174 * @stability external
1175 *
1176 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-dashboard.html
1177 */
1178export declare class CfnDashboard extends cdk.CfnResource implements cdk.IInspectable {
1179 /**
1180 * The CloudFormation resource type name for this resource class.
1181 */
1182 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CloudWatch::Dashboard";
1183 /**
1184 * A factory method that creates a new instance of this class from an object
1185 * containing the CloudFormation properties of this resource.
1186 * Used in the @aws-cdk/cloudformation-include module.
1187 *
1188 * @internal
1189 */
1190 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnDashboard;
1191 /**
1192 * The detailed information about the dashboard in JSON format, including the widgets to include and their location on the dashboard. This parameter is required.
1193 *
1194 * For more information about the syntax, see [Dashboard Body Structure and Syntax](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/CloudWatch-Dashboard-Body-Structure.html) .
1195 *
1196 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-dashboard.html#cfn-cloudwatch-dashboard-dashboardbody
1197 */
1198 dashboardBody: string;
1199 /**
1200 * The name of the dashboard. The name must be between 1 and 255 characters. If you do not specify a name, one will be generated automatically.
1201 *
1202 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-dashboard.html#cfn-cloudwatch-dashboard-dashboardname
1203 */
1204 dashboardName: string | undefined;
1205 /**
1206 * Create a new `AWS::CloudWatch::Dashboard`.
1207 *
1208 * @param scope - scope in which this resource is defined
1209 * @param id - scoped id of the resource
1210 * @param props - resource properties
1211 */
1212 constructor(scope: cdk.Construct, id: string, props: CfnDashboardProps);
1213 /**
1214 * Examines the CloudFormation resource and discloses attributes.
1215 *
1216 * @param inspector - tree inspector to collect and process attributes
1217 *
1218 */
1219 inspect(inspector: cdk.TreeInspector): void;
1220 protected get cfnProperties(): {
1221 [key: string]: any;
1222 };
1223 protected renderProperties(props: {
1224 [key: string]: any;
1225 }): {
1226 [key: string]: any;
1227 };
1228}
1229/**
1230 * Properties for defining a `CfnInsightRule`
1231 *
1232 * @struct
1233 * @stability external
1234 *
1235 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-insightrule.html
1236 */
1237export interface CfnInsightRuleProps {
1238 /**
1239 * The definition of the rule, as a JSON object. For details about the syntax, see [Contributor Insights Rule Syntax](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights-RuleSyntax.html) in the *Amazon CloudWatch User Guide* .
1240 *
1241 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-insightrule.html#cfn-cloudwatch-insightrule-rulebody
1242 */
1243 readonly ruleBody: string;
1244 /**
1245 * The name of the rule.
1246 *
1247 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-insightrule.html#cfn-cloudwatch-insightrule-rulename
1248 */
1249 readonly ruleName: string;
1250 /**
1251 * The current state of the rule. Valid values are `ENABLED` and `DISABLED` .
1252 *
1253 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-insightrule.html#cfn-cloudwatch-insightrule-rulestate
1254 */
1255 readonly ruleState: string;
1256 /**
1257 * A list of key-value pairs to associate with the Contributor Insights rule. You can associate as many as 50 tags with a rule.
1258 *
1259 * Tags can help you organize and categorize your resources. For more information, see [Tagging Your Amazon CloudWatch Resources](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Tagging.html) .
1260 *
1261 * To be able to associate tags with a rule, you must have the `cloudwatch:TagResource` permission in addition to the `cloudwatch:PutInsightRule` permission.
1262 *
1263 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-insightrule.html#cfn-cloudwatch-insightrule-tags
1264 */
1265 readonly tags?: Array<cdk.CfnTag | cdk.IResolvable> | cdk.IResolvable;
1266}
1267/**
1268 * A CloudFormation `AWS::CloudWatch::InsightRule`
1269 *
1270 * Creates or updates a Contributor Insights rule. Rules evaluate log events in a CloudWatch Logs log group, enabling you to find contributor data for the log events in that log group. For more information, see [Using Contributor Insights to Analyze High-Cardinality Data](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights.html) in the *Amazon CloudWatch User Guide* .
1271 *
1272 * @cloudformationResource AWS::CloudWatch::InsightRule
1273 * @stability external
1274 *
1275 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-insightrule.html
1276 */
1277export declare class CfnInsightRule extends cdk.CfnResource implements cdk.IInspectable {
1278 /**
1279 * The CloudFormation resource type name for this resource class.
1280 */
1281 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CloudWatch::InsightRule";
1282 /**
1283 * A factory method that creates a new instance of this class from an object
1284 * containing the CloudFormation properties of this resource.
1285 * Used in the @aws-cdk/cloudformation-include module.
1286 *
1287 * @internal
1288 */
1289 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnInsightRule;
1290 /**
1291 * The ARN of the Contributor Insights rule, such as `arn:aws:cloudwatch:us-west-2:123456789012:insight-rule/MyInsightRuleName` .
1292 * @cloudformationAttribute Arn
1293 */
1294 readonly attrArn: string;
1295 /**
1296 * The name of the Contributor Insights rule.
1297 * @cloudformationAttribute RuleName
1298 */
1299 readonly attrRuleName: string;
1300 /**
1301 * The definition of the rule, as a JSON object. For details about the syntax, see [Contributor Insights Rule Syntax](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ContributorInsights-RuleSyntax.html) in the *Amazon CloudWatch User Guide* .
1302 *
1303 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-insightrule.html#cfn-cloudwatch-insightrule-rulebody
1304 */
1305 ruleBody: string;
1306 /**
1307 * The name of the rule.
1308 *
1309 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-insightrule.html#cfn-cloudwatch-insightrule-rulename
1310 */
1311 ruleName: string;
1312 /**
1313 * The current state of the rule. Valid values are `ENABLED` and `DISABLED` .
1314 *
1315 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-insightrule.html#cfn-cloudwatch-insightrule-rulestate
1316 */
1317 ruleState: string;
1318 /**
1319 * A list of key-value pairs to associate with the Contributor Insights rule. You can associate as many as 50 tags with a rule.
1320 *
1321 * Tags can help you organize and categorize your resources. For more information, see [Tagging Your Amazon CloudWatch Resources](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Tagging.html) .
1322 *
1323 * To be able to associate tags with a rule, you must have the `cloudwatch:TagResource` permission in addition to the `cloudwatch:PutInsightRule` permission.
1324 *
1325 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-insightrule.html#cfn-cloudwatch-insightrule-tags
1326 */
1327 readonly tags: cdk.TagManager;
1328 /**
1329 * Create a new `AWS::CloudWatch::InsightRule`.
1330 *
1331 * @param scope - scope in which this resource is defined
1332 * @param id - scoped id of the resource
1333 * @param props - resource properties
1334 */
1335 constructor(scope: cdk.Construct, id: string, props: CfnInsightRuleProps);
1336 /**
1337 * Examines the CloudFormation resource and discloses attributes.
1338 *
1339 * @param inspector - tree inspector to collect and process attributes
1340 *
1341 */
1342 inspect(inspector: cdk.TreeInspector): void;
1343 protected get cfnProperties(): {
1344 [key: string]: any;
1345 };
1346 protected renderProperties(props: {
1347 [key: string]: any;
1348 }): {
1349 [key: string]: any;
1350 };
1351}
1352/**
1353 * Properties for defining a `CfnMetricStream`
1354 *
1355 * @struct
1356 * @stability external
1357 *
1358 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html
1359 */
1360export interface CfnMetricStreamProps {
1361 /**
1362 * The ARN of the Amazon Kinesis Firehose delivery stream to use for this metric stream. This Amazon Kinesis Firehose delivery stream must already exist and must be in the same account as the metric stream.
1363 *
1364 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-firehosearn
1365 */
1366 readonly firehoseArn: string;
1367 /**
1368 * The output format for the stream. Valid values are `json` and `opentelemetry0.7` For more information about metric stream output formats, see [Metric streams output formats](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-metric-streams-formats.html) .
1369 *
1370 * This parameter is required.
1371 *
1372 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-outputformat
1373 */
1374 readonly outputFormat: string;
1375 /**
1376 * The ARN of an IAM role that this metric stream will use to access Amazon Kinesis Firehose resources. This IAM role must already exist and must be in the same account as the metric stream. This IAM role must include the `firehose:PutRecord` and `firehose:PutRecordBatch` permissions.
1377 *
1378 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-rolearn
1379 */
1380 readonly roleArn: string;
1381 /**
1382 * If you specify this parameter, the stream sends metrics from all metric namespaces except for the namespaces that you specify here. You cannot specify both `IncludeFilters` and `ExcludeFilters` in the same metric stream.
1383 *
1384 * When you modify the `IncludeFilters` or `ExcludeFilters` of an existing metric stream in any way, the metric stream is effectively restarted, so after such a change you will get only the datapoints that have a timestamp after the time of the update.
1385 *
1386 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-excludefilters
1387 */
1388 readonly excludeFilters?: Array<CfnMetricStream.MetricStreamFilterProperty | cdk.IResolvable> | cdk.IResolvable;
1389 /**
1390 * If you specify this parameter, the stream sends only the metrics from the metric namespaces that you specify here. You cannot specify both `IncludeFilters` and `ExcludeFilters` in the same metric stream.
1391 *
1392 * When you modify the `IncludeFilters` or `ExcludeFilters` of an existing metric stream in any way, the metric stream is effectively restarted, so after such a change you will get only the datapoints that have a timestamp after the time of the update.
1393 *
1394 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-includefilters
1395 */
1396 readonly includeFilters?: Array<CfnMetricStream.MetricStreamFilterProperty | cdk.IResolvable> | cdk.IResolvable;
1397 /**
1398 * If you are creating a new metric stream, this is the name for the new stream. The name must be different than the names of other metric streams in this account and Region.
1399 *
1400 * If you are updating a metric stream, specify the name of that stream here.
1401 *
1402 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-name
1403 */
1404 readonly name?: string;
1405 /**
1406 * By default, a metric stream always sends the MAX, MIN, SUM, and SAMPLECOUNT statistics for each metric that is streamed. You can use this parameter to have the metric stream also send additional statistics in the stream. This array can have up to 100 members.
1407 *
1408 * For each entry in this array, you specify one or more metrics and the list of additional statistics to stream for those metrics. The additional statistics that you can stream depend on the stream's `OutputFormat` . If the `OutputFormat` is `json` , you can stream any additional statistic that is supported by CloudWatch , listed in [CloudWatch statistics definitions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.html) . If the `OutputFormat` is `opentelemetry0` .7, you can stream percentile statistics *(p??)* .
1409 *
1410 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-statisticsconfigurations
1411 */
1412 readonly statisticsConfigurations?: Array<CfnMetricStream.MetricStreamStatisticsConfigurationProperty | cdk.IResolvable> | cdk.IResolvable;
1413 /**
1414 * An array of key-value pairs to apply to the metric stream.
1415 *
1416 * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
1417 *
1418 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-tags
1419 */
1420 readonly tags?: cdk.CfnTag[];
1421}
1422/**
1423 * A CloudFormation `AWS::CloudWatch::MetricStream`
1424 *
1425 * Creates or updates a metric stream. Metrics streams can automatically stream CloudWatch metrics to AWS destinations including Amazon S3 and to many third-party solutions. For more information, see [Metric streams](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Metric-Streams.html) .
1426 *
1427 * To create a metric stream, you must be logged on to an account that has the `iam:PassRole` permission and either the *CloudWatchFullAccess* policy or the `cloudwatch:PutMetricStream` permission.
1428 *
1429 * When you create or update a metric stream, you choose one of the following:
1430 *
1431 * - Stream metrics from all metric namespaces in the account.
1432 * - Stream metrics from all metric namespaces in the account, except for the namespaces that you list in `ExcludeFilters` .
1433 * - Stream metrics from only the metric namespaces that you list in `IncludeFilters` .
1434 *
1435 * When you create a metric stream, the stream is created in the `running` state. If you update an existing metric stream, the state does not change.
1436 *
1437 * @cloudformationResource AWS::CloudWatch::MetricStream
1438 * @stability external
1439 *
1440 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html
1441 */
1442export declare class CfnMetricStream extends cdk.CfnResource implements cdk.IInspectable {
1443 /**
1444 * The CloudFormation resource type name for this resource class.
1445 */
1446 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CloudWatch::MetricStream";
1447 /**
1448 * A factory method that creates a new instance of this class from an object
1449 * containing the CloudFormation properties of this resource.
1450 * Used in the @aws-cdk/cloudformation-include module.
1451 *
1452 * @internal
1453 */
1454 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnMetricStream;
1455 /**
1456 * The ARN of the metric stream.
1457 * @cloudformationAttribute Arn
1458 */
1459 readonly attrArn: string;
1460 /**
1461 * The date that the metric stream was originally created.
1462 * @cloudformationAttribute CreationDate
1463 */
1464 readonly attrCreationDate: string;
1465 /**
1466 * The date that the metric stream was most recently updated.
1467 * @cloudformationAttribute LastUpdateDate
1468 */
1469 readonly attrLastUpdateDate: string;
1470 /**
1471 * The state of the metric stream, either `running` or `stopped` .
1472 * @cloudformationAttribute State
1473 */
1474 readonly attrState: string;
1475 /**
1476 * The ARN of the Amazon Kinesis Firehose delivery stream to use for this metric stream. This Amazon Kinesis Firehose delivery stream must already exist and must be in the same account as the metric stream.
1477 *
1478 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-firehosearn
1479 */
1480 firehoseArn: string;
1481 /**
1482 * The output format for the stream. Valid values are `json` and `opentelemetry0.7` For more information about metric stream output formats, see [Metric streams output formats](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-metric-streams-formats.html) .
1483 *
1484 * This parameter is required.
1485 *
1486 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-outputformat
1487 */
1488 outputFormat: string;
1489 /**
1490 * The ARN of an IAM role that this metric stream will use to access Amazon Kinesis Firehose resources. This IAM role must already exist and must be in the same account as the metric stream. This IAM role must include the `firehose:PutRecord` and `firehose:PutRecordBatch` permissions.
1491 *
1492 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-rolearn
1493 */
1494 roleArn: string;
1495 /**
1496 * If you specify this parameter, the stream sends metrics from all metric namespaces except for the namespaces that you specify here. You cannot specify both `IncludeFilters` and `ExcludeFilters` in the same metric stream.
1497 *
1498 * When you modify the `IncludeFilters` or `ExcludeFilters` of an existing metric stream in any way, the metric stream is effectively restarted, so after such a change you will get only the datapoints that have a timestamp after the time of the update.
1499 *
1500 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-excludefilters
1501 */
1502 excludeFilters: Array<CfnMetricStream.MetricStreamFilterProperty | cdk.IResolvable> | cdk.IResolvable | undefined;
1503 /**
1504 * If you specify this parameter, the stream sends only the metrics from the metric namespaces that you specify here. You cannot specify both `IncludeFilters` and `ExcludeFilters` in the same metric stream.
1505 *
1506 * When you modify the `IncludeFilters` or `ExcludeFilters` of an existing metric stream in any way, the metric stream is effectively restarted, so after such a change you will get only the datapoints that have a timestamp after the time of the update.
1507 *
1508 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-includefilters
1509 */
1510 includeFilters: Array<CfnMetricStream.MetricStreamFilterProperty | cdk.IResolvable> | cdk.IResolvable | undefined;
1511 /**
1512 * If you are creating a new metric stream, this is the name for the new stream. The name must be different than the names of other metric streams in this account and Region.
1513 *
1514 * If you are updating a metric stream, specify the name of that stream here.
1515 *
1516 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-name
1517 */
1518 name: string | undefined;
1519 /**
1520 * By default, a metric stream always sends the MAX, MIN, SUM, and SAMPLECOUNT statistics for each metric that is streamed. You can use this parameter to have the metric stream also send additional statistics in the stream. This array can have up to 100 members.
1521 *
1522 * For each entry in this array, you specify one or more metrics and the list of additional statistics to stream for those metrics. The additional statistics that you can stream depend on the stream's `OutputFormat` . If the `OutputFormat` is `json` , you can stream any additional statistic that is supported by CloudWatch , listed in [CloudWatch statistics definitions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.html) . If the `OutputFormat` is `opentelemetry0` .7, you can stream percentile statistics *(p??)* .
1523 *
1524 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-statisticsconfigurations
1525 */
1526 statisticsConfigurations: Array<CfnMetricStream.MetricStreamStatisticsConfigurationProperty | cdk.IResolvable> | cdk.IResolvable | undefined;
1527 /**
1528 * An array of key-value pairs to apply to the metric stream.
1529 *
1530 * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
1531 *
1532 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-tags
1533 */
1534 readonly tags: cdk.TagManager;
1535 /**
1536 * Create a new `AWS::CloudWatch::MetricStream`.
1537 *
1538 * @param scope - scope in which this resource is defined
1539 * @param id - scoped id of the resource
1540 * @param props - resource properties
1541 */
1542 constructor(scope: cdk.Construct, id: string, props: CfnMetricStreamProps);
1543 /**
1544 * Examines the CloudFormation resource and discloses attributes.
1545 *
1546 * @param inspector - tree inspector to collect and process attributes
1547 *
1548 */
1549 inspect(inspector: cdk.TreeInspector): void;
1550 protected get cfnProperties(): {
1551 [key: string]: any;
1552 };
1553 protected renderProperties(props: {
1554 [key: string]: any;
1555 }): {
1556 [key: string]: any;
1557 };
1558}
1559export declare namespace CfnMetricStream {
1560 /**
1561 * This structure contains the name of one of the metric namespaces that is listed in a filter of a metric stream.
1562 *
1563 * @struct
1564 * @stability external
1565 *
1566 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-metricstream-metricstreamfilter.html
1567 */
1568 interface MetricStreamFilterProperty {
1569 /**
1570 * The name of the metric namespace in the filter.
1571 *
1572 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-metricstream-metricstreamfilter.html#cfn-cloudwatch-metricstream-metricstreamfilter-namespace
1573 */
1574 readonly namespace: string;
1575 }
1576}
1577export declare namespace CfnMetricStream {
1578 /**
1579 * This structure specifies a list of additional statistics to stream, and the metrics to stream those additional statistics for.
1580 *
1581 * All metrics that match the combination of metric name and namespace will be streamed with the additional statistics, no matter their dimensions.
1582 *
1583 * @struct
1584 * @stability external
1585 *
1586 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-metricstream-metricstreamstatisticsconfiguration.html
1587 */
1588 interface MetricStreamStatisticsConfigurationProperty {
1589 /**
1590 * The additional statistics to stream for the metrics listed in `IncludeMetrics` .
1591 *
1592 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-metricstream-metricstreamstatisticsconfiguration.html#cfn-cloudwatch-metricstream-metricstreamstatisticsconfiguration-additionalstatistics
1593 */
1594 readonly additionalStatistics: string[];
1595 /**
1596 * An array that defines the metrics that are to have additional statistics streamed.
1597 *
1598 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-metricstream-metricstreamstatisticsconfiguration.html#cfn-cloudwatch-metricstream-metricstreamstatisticsconfiguration-includemetrics
1599 */
1600 readonly includeMetrics: Array<CfnMetricStream.MetricStreamStatisticsMetricProperty | cdk.IResolvable> | cdk.IResolvable;
1601 }
1602}
1603export declare namespace CfnMetricStream {
1604 /**
1605 * A structure that specifies the metric name and namespace for one metric that is going to have additional statistics included in the stream.
1606 *
1607 * @struct
1608 * @stability external
1609 *
1610 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-metricstream-metricstreamstatisticsmetric.html
1611 */
1612 interface MetricStreamStatisticsMetricProperty {
1613 /**
1614 * The name of the metric.
1615 *
1616 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-metricstream-metricstreamstatisticsmetric.html#cfn-cloudwatch-metricstream-metricstreamstatisticsmetric-metricname
1617 */
1618 readonly metricName: string;
1619 /**
1620 * The namespace of the metric.
1621 *
1622 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-metricstream-metricstreamstatisticsmetric.html#cfn-cloudwatch-metricstream-metricstreamstatisticsmetric-namespace
1623 */
1624 readonly namespace: string;
1625 }
1626}