UNPKG

104 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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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-resource-cloudwatch-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 * `AWS::CloudWatch::CompositeAlarm.ActionsSuppressor`
1001 *
1002 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-compositealarm.html#cfn-cloudwatch-compositealarm-actionssuppressor
1003 */
1004 readonly actionsSuppressor?: string;
1005 /**
1006 * `AWS::CloudWatch::CompositeAlarm.ActionsSuppressorExtensionPeriod`
1007 *
1008 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-compositealarm.html#cfn-cloudwatch-compositealarm-actionssuppressorextensionperiod
1009 */
1010 readonly actionsSuppressorExtensionPeriod?: number;
1011 /**
1012 * `AWS::CloudWatch::CompositeAlarm.ActionsSuppressorWaitPeriod`
1013 *
1014 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-compositealarm.html#cfn-cloudwatch-compositealarm-actionssuppressorwaitperiod
1015 */
1016 readonly actionsSuppressorWaitPeriod?: number;
1017 /**
1018 * 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* .
1019 *
1020 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-compositealarm.html#cfn-cloudwatch-compositealarm-alarmactions
1021 */
1022 readonly alarmActions?: string[];
1023 /**
1024 * The description for the composite alarm.
1025 *
1026 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-compositealarm.html#cfn-cloudwatch-compositealarm-alarmdescription
1027 */
1028 readonly alarmDescription?: string;
1029 /**
1030 * 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* .
1031 *
1032 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-compositealarm.html#cfn-cloudwatch-compositealarm-insufficientdataactions
1033 */
1034 readonly insufficientDataActions?: string[];
1035 /**
1036 * 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* .
1037 *
1038 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-compositealarm.html#cfn-cloudwatch-compositealarm-okactions
1039 */
1040 readonly okActions?: string[];
1041}
1042/**
1043 * A CloudFormation `AWS::CloudWatch::CompositeAlarm`
1044 *
1045 * 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.
1046 *
1047 * The alarms specified in a composite alarm's rule expression can include metric alarms and other composite alarms.
1048 *
1049 * 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.
1050 *
1051 * Currently, the only alarm actions that can be taken by composite alarms are notifying SNS topics.
1052 *
1053 * 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.
1054 *
1055 * When you update an existing alarm, its state is left unchanged, but the update completely overwrites the previous configuration of the alarm.
1056 *
1057 * @cloudformationResource AWS::CloudWatch::CompositeAlarm
1058 * @stability external
1059 *
1060 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-compositealarm.html
1061 */
1062export declare class CfnCompositeAlarm extends cdk.CfnResource implements cdk.IInspectable {
1063 /**
1064 * The CloudFormation resource type name for this resource class.
1065 */
1066 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CloudWatch::CompositeAlarm";
1067 /**
1068 * A factory method that creates a new instance of this class from an object
1069 * containing the CloudFormation properties of this resource.
1070 * Used in the @aws-cdk/cloudformation-include module.
1071 *
1072 * @internal
1073 */
1074 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnCompositeAlarm;
1075 /**
1076 * The ARN of the composite alarm, such as `arn:aws:cloudwatch:us-west-2:123456789012:alarm/CompositeAlarmName` .
1077 * @cloudformationAttribute Arn
1078 */
1079 readonly attrArn: string;
1080 /**
1081 * The name for the composite alarm. This name must be unique within your AWS account.
1082 *
1083 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-compositealarm.html#cfn-cloudwatch-compositealarm-alarmname
1084 */
1085 alarmName: string;
1086 /**
1087 * 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.
1088 *
1089 * You can use either alarm names or ARNs to reference the other alarms that are to be evaluated.
1090 *
1091 * Functions can include the following:
1092 *
1093 * - ALARM("alarm-name or alarm-ARN") is TRUE if the named alarm is in ALARM state.
1094 * - OK("alarm-name or alarm-ARN") is TRUE if the named alarm is in OK state.
1095 * - INSUFFICIENT_DATA("alarm-name or alarm-ARN") is TRUE if the named alarm is in INSUFFICIENT_DATA state.
1096 * - TRUE always evaluates to TRUE.
1097 * - FALSE always evaluates to FALSE.
1098 *
1099 * TRUE and FALSE are useful for testing a complex AlarmRule structure, and for testing your alarm actions.
1100 *
1101 * 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* .
1102 *
1103 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-compositealarm.html#cfn-cloudwatch-compositealarm-alarmrule
1104 */
1105 alarmRule: string;
1106 /**
1107 * Indicates whether actions should be executed during any changes to the alarm state of the composite alarm. The default is TRUE.
1108 *
1109 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-compositealarm.html#cfn-cloudwatch-compositealarm-actionsenabled
1110 */
1111 actionsEnabled: boolean | cdk.IResolvable | undefined;
1112 /**
1113 * `AWS::CloudWatch::CompositeAlarm.ActionsSuppressor`
1114 *
1115 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-compositealarm.html#cfn-cloudwatch-compositealarm-actionssuppressor
1116 */
1117 actionsSuppressor: string | undefined;
1118 /**
1119 * `AWS::CloudWatch::CompositeAlarm.ActionsSuppressorExtensionPeriod`
1120 *
1121 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-compositealarm.html#cfn-cloudwatch-compositealarm-actionssuppressorextensionperiod
1122 */
1123 actionsSuppressorExtensionPeriod: number | undefined;
1124 /**
1125 * `AWS::CloudWatch::CompositeAlarm.ActionsSuppressorWaitPeriod`
1126 *
1127 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-compositealarm.html#cfn-cloudwatch-compositealarm-actionssuppressorwaitperiod
1128 */
1129 actionsSuppressorWaitPeriod: number | undefined;
1130 /**
1131 * 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* .
1132 *
1133 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-compositealarm.html#cfn-cloudwatch-compositealarm-alarmactions
1134 */
1135 alarmActions: string[] | undefined;
1136 /**
1137 * The description for the composite alarm.
1138 *
1139 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-compositealarm.html#cfn-cloudwatch-compositealarm-alarmdescription
1140 */
1141 alarmDescription: string | undefined;
1142 /**
1143 * 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* .
1144 *
1145 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-compositealarm.html#cfn-cloudwatch-compositealarm-insufficientdataactions
1146 */
1147 insufficientDataActions: string[] | undefined;
1148 /**
1149 * 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* .
1150 *
1151 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-compositealarm.html#cfn-cloudwatch-compositealarm-okactions
1152 */
1153 okActions: string[] | undefined;
1154 /**
1155 * Create a new `AWS::CloudWatch::CompositeAlarm`.
1156 *
1157 * @param scope - scope in which this resource is defined
1158 * @param id - scoped id of the resource
1159 * @param props - resource properties
1160 */
1161 constructor(scope: cdk.Construct, id: string, props: CfnCompositeAlarmProps);
1162 /**
1163 * Examines the CloudFormation resource and discloses attributes.
1164 *
1165 * @param inspector - tree inspector to collect and process attributes
1166 *
1167 */
1168 inspect(inspector: cdk.TreeInspector): void;
1169 protected get cfnProperties(): {
1170 [key: string]: any;
1171 };
1172 protected renderProperties(props: {
1173 [key: string]: any;
1174 }): {
1175 [key: string]: any;
1176 };
1177}
1178/**
1179 * Properties for defining a `CfnDashboard`
1180 *
1181 * @struct
1182 * @stability external
1183 *
1184 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-dashboard.html
1185 */
1186export interface CfnDashboardProps {
1187 /**
1188 * The detailed information about the dashboard in JSON format, including the widgets to include and their location on the dashboard. This parameter is required.
1189 *
1190 * 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) .
1191 *
1192 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-dashboard.html#cfn-cloudwatch-dashboard-dashboardbody
1193 */
1194 readonly dashboardBody: string;
1195 /**
1196 * 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.
1197 *
1198 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-dashboard.html#cfn-cloudwatch-dashboard-dashboardname
1199 */
1200 readonly dashboardName?: string;
1201}
1202/**
1203 * A CloudFormation `AWS::CloudWatch::Dashboard`
1204 *
1205 * 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.
1206 *
1207 * All dashboards in your account are global, not region-specific.
1208 *
1209 * @cloudformationResource AWS::CloudWatch::Dashboard
1210 * @stability external
1211 *
1212 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-dashboard.html
1213 */
1214export declare class CfnDashboard extends cdk.CfnResource implements cdk.IInspectable {
1215 /**
1216 * The CloudFormation resource type name for this resource class.
1217 */
1218 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CloudWatch::Dashboard";
1219 /**
1220 * A factory method that creates a new instance of this class from an object
1221 * containing the CloudFormation properties of this resource.
1222 * Used in the @aws-cdk/cloudformation-include module.
1223 *
1224 * @internal
1225 */
1226 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnDashboard;
1227 /**
1228 * The detailed information about the dashboard in JSON format, including the widgets to include and their location on the dashboard. This parameter is required.
1229 *
1230 * 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) .
1231 *
1232 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-dashboard.html#cfn-cloudwatch-dashboard-dashboardbody
1233 */
1234 dashboardBody: string;
1235 /**
1236 * 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.
1237 *
1238 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-dashboard.html#cfn-cloudwatch-dashboard-dashboardname
1239 */
1240 dashboardName: string | undefined;
1241 /**
1242 * Create a new `AWS::CloudWatch::Dashboard`.
1243 *
1244 * @param scope - scope in which this resource is defined
1245 * @param id - scoped id of the resource
1246 * @param props - resource properties
1247 */
1248 constructor(scope: cdk.Construct, id: string, props: CfnDashboardProps);
1249 /**
1250 * Examines the CloudFormation resource and discloses attributes.
1251 *
1252 * @param inspector - tree inspector to collect and process attributes
1253 *
1254 */
1255 inspect(inspector: cdk.TreeInspector): void;
1256 protected get cfnProperties(): {
1257 [key: string]: any;
1258 };
1259 protected renderProperties(props: {
1260 [key: string]: any;
1261 }): {
1262 [key: string]: any;
1263 };
1264}
1265/**
1266 * Properties for defining a `CfnInsightRule`
1267 *
1268 * @struct
1269 * @stability external
1270 *
1271 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-insightrule.html
1272 */
1273export interface CfnInsightRuleProps {
1274 /**
1275 * 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* .
1276 *
1277 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-insightrule.html#cfn-cloudwatch-insightrule-rulebody
1278 */
1279 readonly ruleBody: string;
1280 /**
1281 * The name of the rule.
1282 *
1283 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-insightrule.html#cfn-cloudwatch-insightrule-rulename
1284 */
1285 readonly ruleName: string;
1286 /**
1287 * The current state of the rule. Valid values are `ENABLED` and `DISABLED` .
1288 *
1289 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-insightrule.html#cfn-cloudwatch-insightrule-rulestate
1290 */
1291 readonly ruleState: string;
1292 /**
1293 * A list of key-value pairs to associate with the Contributor Insights rule. You can associate as many as 50 tags with a rule.
1294 *
1295 * 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) .
1296 *
1297 * To be able to associate tags with a rule, you must have the `cloudwatch:TagResource` permission in addition to the `cloudwatch:PutInsightRule` permission.
1298 *
1299 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-insightrule.html#cfn-cloudwatch-insightrule-tags
1300 */
1301 readonly tags?: Array<cdk.CfnTag | cdk.IResolvable> | cdk.IResolvable;
1302}
1303/**
1304 * A CloudFormation `AWS::CloudWatch::InsightRule`
1305 *
1306 * 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* .
1307 *
1308 * @cloudformationResource AWS::CloudWatch::InsightRule
1309 * @stability external
1310 *
1311 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-insightrule.html
1312 */
1313export declare class CfnInsightRule extends cdk.CfnResource implements cdk.IInspectable {
1314 /**
1315 * The CloudFormation resource type name for this resource class.
1316 */
1317 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CloudWatch::InsightRule";
1318 /**
1319 * A factory method that creates a new instance of this class from an object
1320 * containing the CloudFormation properties of this resource.
1321 * Used in the @aws-cdk/cloudformation-include module.
1322 *
1323 * @internal
1324 */
1325 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnInsightRule;
1326 /**
1327 * The ARN of the Contributor Insights rule, such as `arn:aws:cloudwatch:us-west-2:123456789012:insight-rule/MyInsightRuleName` .
1328 * @cloudformationAttribute Arn
1329 */
1330 readonly attrArn: string;
1331 /**
1332 * The name of the Contributor Insights rule.
1333 * @cloudformationAttribute RuleName
1334 */
1335 readonly attrRuleName: string;
1336 /**
1337 * 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* .
1338 *
1339 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-insightrule.html#cfn-cloudwatch-insightrule-rulebody
1340 */
1341 ruleBody: string;
1342 /**
1343 * The name of the rule.
1344 *
1345 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-insightrule.html#cfn-cloudwatch-insightrule-rulename
1346 */
1347 ruleName: string;
1348 /**
1349 * The current state of the rule. Valid values are `ENABLED` and `DISABLED` .
1350 *
1351 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-insightrule.html#cfn-cloudwatch-insightrule-rulestate
1352 */
1353 ruleState: string;
1354 /**
1355 * A list of key-value pairs to associate with the Contributor Insights rule. You can associate as many as 50 tags with a rule.
1356 *
1357 * 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) .
1358 *
1359 * To be able to associate tags with a rule, you must have the `cloudwatch:TagResource` permission in addition to the `cloudwatch:PutInsightRule` permission.
1360 *
1361 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-insightrule.html#cfn-cloudwatch-insightrule-tags
1362 */
1363 readonly tags: cdk.TagManager;
1364 /**
1365 * Create a new `AWS::CloudWatch::InsightRule`.
1366 *
1367 * @param scope - scope in which this resource is defined
1368 * @param id - scoped id of the resource
1369 * @param props - resource properties
1370 */
1371 constructor(scope: cdk.Construct, id: string, props: CfnInsightRuleProps);
1372 /**
1373 * Examines the CloudFormation resource and discloses attributes.
1374 *
1375 * @param inspector - tree inspector to collect and process attributes
1376 *
1377 */
1378 inspect(inspector: cdk.TreeInspector): void;
1379 protected get cfnProperties(): {
1380 [key: string]: any;
1381 };
1382 protected renderProperties(props: {
1383 [key: string]: any;
1384 }): {
1385 [key: string]: any;
1386 };
1387}
1388/**
1389 * Properties for defining a `CfnMetricStream`
1390 *
1391 * @struct
1392 * @stability external
1393 *
1394 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html
1395 */
1396export interface CfnMetricStreamProps {
1397 /**
1398 * 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.
1399 *
1400 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-firehosearn
1401 */
1402 readonly firehoseArn: string;
1403 /**
1404 * 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) .
1405 *
1406 * This parameter is required.
1407 *
1408 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-outputformat
1409 */
1410 readonly outputFormat: string;
1411 /**
1412 * 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.
1413 *
1414 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-rolearn
1415 */
1416 readonly roleArn: string;
1417 /**
1418 * 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.
1419 *
1420 * 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.
1421 *
1422 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-excludefilters
1423 */
1424 readonly excludeFilters?: Array<CfnMetricStream.MetricStreamFilterProperty | cdk.IResolvable> | cdk.IResolvable;
1425 /**
1426 * 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.
1427 *
1428 * 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.
1429 *
1430 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-includefilters
1431 */
1432 readonly includeFilters?: Array<CfnMetricStream.MetricStreamFilterProperty | cdk.IResolvable> | cdk.IResolvable;
1433 /**
1434 * 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.
1435 *
1436 * If you are updating a metric stream, specify the name of that stream here.
1437 *
1438 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-name
1439 */
1440 readonly name?: string;
1441 /**
1442 * 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.
1443 *
1444 * 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??)* .
1445 *
1446 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-statisticsconfigurations
1447 */
1448 readonly statisticsConfigurations?: Array<CfnMetricStream.MetricStreamStatisticsConfigurationProperty | cdk.IResolvable> | cdk.IResolvable;
1449 /**
1450 * An array of key-value pairs to apply to the metric stream.
1451 *
1452 * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
1453 *
1454 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-tags
1455 */
1456 readonly tags?: cdk.CfnTag[];
1457}
1458/**
1459 * A CloudFormation `AWS::CloudWatch::MetricStream`
1460 *
1461 * 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) .
1462 *
1463 * 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.
1464 *
1465 * When you create or update a metric stream, you choose one of the following:
1466 *
1467 * - Stream metrics from all metric namespaces in the account.
1468 * - Stream metrics from all metric namespaces in the account, except for the namespaces that you list in `ExcludeFilters` .
1469 * - Stream metrics from only the metric namespaces that you list in `IncludeFilters` .
1470 *
1471 * 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.
1472 *
1473 * @cloudformationResource AWS::CloudWatch::MetricStream
1474 * @stability external
1475 *
1476 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html
1477 */
1478export declare class CfnMetricStream extends cdk.CfnResource implements cdk.IInspectable {
1479 /**
1480 * The CloudFormation resource type name for this resource class.
1481 */
1482 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CloudWatch::MetricStream";
1483 /**
1484 * A factory method that creates a new instance of this class from an object
1485 * containing the CloudFormation properties of this resource.
1486 * Used in the @aws-cdk/cloudformation-include module.
1487 *
1488 * @internal
1489 */
1490 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnMetricStream;
1491 /**
1492 * The ARN of the metric stream.
1493 * @cloudformationAttribute Arn
1494 */
1495 readonly attrArn: string;
1496 /**
1497 * The date that the metric stream was originally created.
1498 * @cloudformationAttribute CreationDate
1499 */
1500 readonly attrCreationDate: string;
1501 /**
1502 * The date that the metric stream was most recently updated.
1503 * @cloudformationAttribute LastUpdateDate
1504 */
1505 readonly attrLastUpdateDate: string;
1506 /**
1507 * The state of the metric stream, either `running` or `stopped` .
1508 * @cloudformationAttribute State
1509 */
1510 readonly attrState: string;
1511 /**
1512 * 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.
1513 *
1514 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-firehosearn
1515 */
1516 firehoseArn: string;
1517 /**
1518 * 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) .
1519 *
1520 * This parameter is required.
1521 *
1522 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-outputformat
1523 */
1524 outputFormat: string;
1525 /**
1526 * 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.
1527 *
1528 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-rolearn
1529 */
1530 roleArn: string;
1531 /**
1532 * 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.
1533 *
1534 * 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.
1535 *
1536 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-excludefilters
1537 */
1538 excludeFilters: Array<CfnMetricStream.MetricStreamFilterProperty | cdk.IResolvable> | cdk.IResolvable | undefined;
1539 /**
1540 * 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.
1541 *
1542 * 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.
1543 *
1544 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-includefilters
1545 */
1546 includeFilters: Array<CfnMetricStream.MetricStreamFilterProperty | cdk.IResolvable> | cdk.IResolvable | undefined;
1547 /**
1548 * 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.
1549 *
1550 * If you are updating a metric stream, specify the name of that stream here.
1551 *
1552 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-name
1553 */
1554 name: string | undefined;
1555 /**
1556 * 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.
1557 *
1558 * 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??)* .
1559 *
1560 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-statisticsconfigurations
1561 */
1562 statisticsConfigurations: Array<CfnMetricStream.MetricStreamStatisticsConfigurationProperty | cdk.IResolvable> | cdk.IResolvable | undefined;
1563 /**
1564 * An array of key-value pairs to apply to the metric stream.
1565 *
1566 * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
1567 *
1568 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-metricstream.html#cfn-cloudwatch-metricstream-tags
1569 */
1570 readonly tags: cdk.TagManager;
1571 /**
1572 * Create a new `AWS::CloudWatch::MetricStream`.
1573 *
1574 * @param scope - scope in which this resource is defined
1575 * @param id - scoped id of the resource
1576 * @param props - resource properties
1577 */
1578 constructor(scope: cdk.Construct, id: string, props: CfnMetricStreamProps);
1579 /**
1580 * Examines the CloudFormation resource and discloses attributes.
1581 *
1582 * @param inspector - tree inspector to collect and process attributes
1583 *
1584 */
1585 inspect(inspector: cdk.TreeInspector): void;
1586 protected get cfnProperties(): {
1587 [key: string]: any;
1588 };
1589 protected renderProperties(props: {
1590 [key: string]: any;
1591 }): {
1592 [key: string]: any;
1593 };
1594}
1595export declare namespace CfnMetricStream {
1596 /**
1597 * This structure contains the name of one of the metric namespaces that is listed in a filter of a metric stream.
1598 *
1599 * @struct
1600 * @stability external
1601 *
1602 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-metricstream-metricstreamfilter.html
1603 */
1604 interface MetricStreamFilterProperty {
1605 /**
1606 * The name of the metric namespace in the filter.
1607 *
1608 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-metricstream-metricstreamfilter.html#cfn-cloudwatch-metricstream-metricstreamfilter-namespace
1609 */
1610 readonly namespace: string;
1611 }
1612}
1613export declare namespace CfnMetricStream {
1614 /**
1615 * This structure specifies a list of additional statistics to stream, and the metrics to stream those additional statistics for.
1616 *
1617 * All metrics that match the combination of metric name and namespace will be streamed with the additional statistics, no matter their dimensions.
1618 *
1619 * @struct
1620 * @stability external
1621 *
1622 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-metricstream-metricstreamstatisticsconfiguration.html
1623 */
1624 interface MetricStreamStatisticsConfigurationProperty {
1625 /**
1626 * The additional statistics to stream for the metrics listed in `IncludeMetrics` .
1627 *
1628 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-metricstream-metricstreamstatisticsconfiguration.html#cfn-cloudwatch-metricstream-metricstreamstatisticsconfiguration-additionalstatistics
1629 */
1630 readonly additionalStatistics: string[];
1631 /**
1632 * An array that defines the metrics that are to have additional statistics streamed.
1633 *
1634 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-metricstream-metricstreamstatisticsconfiguration.html#cfn-cloudwatch-metricstream-metricstreamstatisticsconfiguration-includemetrics
1635 */
1636 readonly includeMetrics: Array<CfnMetricStream.MetricStreamStatisticsMetricProperty | cdk.IResolvable> | cdk.IResolvable;
1637 }
1638}
1639export declare namespace CfnMetricStream {
1640 /**
1641 * A structure that specifies the metric name and namespace for one metric that is going to have additional statistics included in the stream.
1642 *
1643 * @struct
1644 * @stability external
1645 *
1646 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-metricstream-metricstreamstatisticsmetric.html
1647 */
1648 interface MetricStreamStatisticsMetricProperty {
1649 /**
1650 * The name of the metric.
1651 *
1652 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-metricstream-metricstreamstatisticsmetric.html#cfn-cloudwatch-metricstream-metricstreamstatisticsmetric-metricname
1653 */
1654 readonly metricName: string;
1655 /**
1656 * The namespace of the metric.
1657 *
1658 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-metricstream-metricstreamstatisticsmetric.html#cfn-cloudwatch-metricstream-metricstreamstatisticsmetric-namespace
1659 */
1660 readonly namespace: string;
1661 }
1662}