@aws-sdk/client-cloudwatch 3.145.0 → 3.153.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist-cjs/CloudWatch.js +30 -0
  3. package/dist-cjs/commands/ListManagedInsightRulesCommand.js +36 -0
  4. package/dist-cjs/commands/PutManagedInsightRulesCommand.js +36 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/models/models_0.js +30 -2
  7. package/dist-cjs/pagination/DescribeAnomalyDetectorsPaginator.js +36 -0
  8. package/dist-cjs/pagination/ListManagedInsightRulesPaginator.js +36 -0
  9. package/dist-cjs/pagination/index.js +2 -0
  10. package/dist-cjs/protocols/Aws_query.js +230 -2
  11. package/dist-es/CloudWatch.js +30 -0
  12. package/dist-es/commands/ListManagedInsightRulesCommand.js +39 -0
  13. package/dist-es/commands/PutManagedInsightRulesCommand.js +39 -0
  14. package/dist-es/commands/index.js +2 -0
  15. package/dist-es/models/models_0.js +7 -0
  16. package/dist-es/pagination/DescribeAnomalyDetectorsPaginator.js +75 -0
  17. package/dist-es/pagination/ListManagedInsightRulesPaginator.js +75 -0
  18. package/dist-es/pagination/index.js +2 -0
  19. package/dist-es/protocols/Aws_query.js +345 -72
  20. package/dist-types/CloudWatch.d.ts +48 -4
  21. package/dist-types/CloudWatchClient.d.ts +4 -2
  22. package/dist-types/commands/DeleteAnomalyDetectorCommand.d.ts +9 -1
  23. package/dist-types/commands/ListManagedInsightRulesCommand.d.ts +41 -0
  24. package/dist-types/commands/PutManagedInsightRulesCommand.d.ts +51 -0
  25. package/dist-types/commands/PutMetricDataCommand.d.ts +3 -3
  26. package/dist-types/commands/index.d.ts +2 -0
  27. package/dist-types/models/models_0.d.ts +242 -14
  28. package/dist-types/pagination/DescribeAnomalyDetectorsPaginator.d.ts +4 -0
  29. package/dist-types/pagination/ListManagedInsightRulesPaginator.d.ts +4 -0
  30. package/dist-types/pagination/index.d.ts +2 -0
  31. package/dist-types/protocols/Aws_query.d.ts +6 -0
  32. package/dist-types/ts3.4/CloudWatch.d.ts +10 -0
  33. package/dist-types/ts3.4/CloudWatchClient.d.ts +4 -2
  34. package/dist-types/ts3.4/commands/ListManagedInsightRulesCommand.d.ts +17 -0
  35. package/dist-types/ts3.4/commands/PutManagedInsightRulesCommand.d.ts +17 -0
  36. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  37. package/dist-types/ts3.4/models/models_0.d.ts +63 -0
  38. package/dist-types/ts3.4/pagination/DescribeAnomalyDetectorsPaginator.d.ts +4 -0
  39. package/dist-types/ts3.4/pagination/ListManagedInsightRulesPaginator.d.ts +4 -0
  40. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  41. package/dist-types/ts3.4/protocols/Aws_query.d.ts +6 -0
  42. package/package.json +3 -3
@@ -21,6 +21,7 @@ import { GetMetricStatisticsCommandInput, GetMetricStatisticsCommandOutput } fro
21
21
  import { GetMetricStreamCommandInput, GetMetricStreamCommandOutput } from "./commands/GetMetricStreamCommand";
22
22
  import { GetMetricWidgetImageCommandInput, GetMetricWidgetImageCommandOutput } from "./commands/GetMetricWidgetImageCommand";
23
23
  import { ListDashboardsCommandInput, ListDashboardsCommandOutput } from "./commands/ListDashboardsCommand";
24
+ import { ListManagedInsightRulesCommandInput, ListManagedInsightRulesCommandOutput } from "./commands/ListManagedInsightRulesCommand";
24
25
  import { ListMetricsCommandInput, ListMetricsCommandOutput } from "./commands/ListMetricsCommand";
25
26
  import { ListMetricStreamsCommandInput, ListMetricStreamsCommandOutput } from "./commands/ListMetricStreamsCommand";
26
27
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
@@ -28,6 +29,7 @@ import { PutAnomalyDetectorCommandInput, PutAnomalyDetectorCommandOutput } from
28
29
  import { PutCompositeAlarmCommandInput, PutCompositeAlarmCommandOutput } from "./commands/PutCompositeAlarmCommand";
29
30
  import { PutDashboardCommandInput, PutDashboardCommandOutput } from "./commands/PutDashboardCommand";
30
31
  import { PutInsightRuleCommandInput, PutInsightRuleCommandOutput } from "./commands/PutInsightRuleCommand";
32
+ import { PutManagedInsightRulesCommandInput, PutManagedInsightRulesCommandOutput } from "./commands/PutManagedInsightRulesCommand";
31
33
  import { PutMetricAlarmCommandInput, PutMetricAlarmCommandOutput } from "./commands/PutMetricAlarmCommand";
32
34
  import { PutMetricDataCommandInput, PutMetricDataCommandOutput } from "./commands/PutMetricDataCommand";
33
35
  import { PutMetricStreamCommandInput, PutMetricStreamCommandOutput } from "./commands/PutMetricStreamCommand";
@@ -76,7 +78,15 @@ export declare class CloudWatch extends CloudWatchClient {
76
78
  deleteAlarms(args: DeleteAlarmsCommandInput, cb: (err: any, data?: DeleteAlarmsCommandOutput) => void): void;
77
79
  deleteAlarms(args: DeleteAlarmsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAlarmsCommandOutput) => void): void;
78
80
  /**
79
- * <p>Deletes the specified anomaly detection model from your account.</p>
81
+ * <p>
82
+ * Deletes the specified anomaly detection model
83
+ * from your account.
84
+ * For more information
85
+ * about
86
+ * how to delete an anomaly detection model,
87
+ * see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Create_Anomaly_Detection_Alarm.html#Delete_Anomaly_Detection_Model">Deleting an anomaly detection model</a>
88
+ * in the <i>CloudWatch User Guide</i>.
89
+ * </p>
80
90
  */
81
91
  deleteAnomalyDetector(args: DeleteAnomalyDetectorCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAnomalyDetectorCommandOutput>;
82
92
  deleteAnomalyDetector(args: DeleteAnomalyDetectorCommandInput, cb: (err: any, data?: DeleteAnomalyDetectorCommandOutput) => void): void;
@@ -392,6 +402,18 @@ export declare class CloudWatch extends CloudWatchClient {
392
402
  listDashboards(args: ListDashboardsCommandInput, options?: __HttpHandlerOptions): Promise<ListDashboardsCommandOutput>;
393
403
  listDashboards(args: ListDashboardsCommandInput, cb: (err: any, data?: ListDashboardsCommandOutput) => void): void;
394
404
  listDashboards(args: ListDashboardsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDashboardsCommandOutput) => void): void;
405
+ /**
406
+ * <p>
407
+ * Returns a list
408
+ * that contains the number
409
+ * of managed Contributor Insights rules
410
+ * in your account.
411
+ *
412
+ * </p>
413
+ */
414
+ listManagedInsightRules(args: ListManagedInsightRulesCommandInput, options?: __HttpHandlerOptions): Promise<ListManagedInsightRulesCommandOutput>;
415
+ listManagedInsightRules(args: ListManagedInsightRulesCommandInput, cb: (err: any, data?: ListManagedInsightRulesCommandOutput) => void): void;
416
+ listManagedInsightRules(args: ListManagedInsightRulesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListManagedInsightRulesCommandOutput) => void): void;
395
417
  /**
396
418
  * <p>List the specified metrics. You can use the returned metrics with
397
419
  * <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html">GetMetricData</a> or
@@ -507,6 +529,28 @@ export declare class CloudWatch extends CloudWatchClient {
507
529
  putInsightRule(args: PutInsightRuleCommandInput, options?: __HttpHandlerOptions): Promise<PutInsightRuleCommandOutput>;
508
530
  putInsightRule(args: PutInsightRuleCommandInput, cb: (err: any, data?: PutInsightRuleCommandOutput) => void): void;
509
531
  putInsightRule(args: PutInsightRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutInsightRuleCommandOutput) => void): void;
532
+ /**
533
+ * <p>
534
+ * Creates a managed Contributor Insights rule
535
+ * for a specified Amazon Web Services resource.
536
+ * When you enable a managed rule,
537
+ * you create a Contributor Insights rule
538
+ * that collects data
539
+ * from Amazon Web Services services.
540
+ * You cannot edit these rules
541
+ * with <code>PutInsightRule</code>.
542
+ * The rules can be enabled, disabled, and deleted using <code>EnableInsightRules</code>, <code>DisableInsightRules</code>, and <code>DeleteInsightRules</code>.
543
+ * If a previously created managed rule is currently disabled,
544
+ * a subsequent call
545
+ * to this API will re-enable it.
546
+ * Use <code>ListManagedInsightRules</code>
547
+ * to describe all available rules.
548
+ *
549
+ * </p>
550
+ */
551
+ putManagedInsightRules(args: PutManagedInsightRulesCommandInput, options?: __HttpHandlerOptions): Promise<PutManagedInsightRulesCommandOutput>;
552
+ putManagedInsightRules(args: PutManagedInsightRulesCommandInput, cb: (err: any, data?: PutManagedInsightRulesCommandOutput) => void): void;
553
+ putManagedInsightRules(args: PutManagedInsightRulesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutManagedInsightRulesCommandOutput) => void): void;
510
554
  /**
511
555
  * <p>Creates or updates an alarm and associates it with the specified metric, metric math expression,
512
556
  * or anomaly detection model.</p>
@@ -588,14 +632,14 @@ export declare class CloudWatch extends CloudWatchClient {
588
632
  * the <code>Values</code> and <code>Counts</code> method enables you to publish up to 150 values per metric
589
633
  * with one <code>PutMetricData</code> request, and
590
634
  * supports retrieving percentile statistics on this data.</p>
591
- * <p>Each <code>PutMetricData</code> request is limited to 40 KB in size for HTTP POST requests. You can
635
+ * <p>Each <code>PutMetricData</code> request is limited to 1 MB in size for HTTP POST requests. You can
592
636
  * send a payload compressed by gzip. Each request
593
- * is also limited to no more than 20 different metrics.</p>
637
+ * is also limited to no more than 1000 different metrics.</p>
594
638
  * <p>Although the <code>Value</code> parameter accepts numbers of type
595
639
  * <code>Double</code>, CloudWatch rejects values that are either too small
596
640
  * or too large. Values must be in the range of -2^360 to 2^360. In addition, special values (for example, NaN, +Infinity,
597
641
  * -Infinity) are not supported.</p>
598
- * <p>You can use up to 10 dimensions per metric to further clarify what data the metric collects. Each dimension
642
+ * <p>You can use up to 30 dimensions per metric to further clarify what data the metric collects. Each dimension
599
643
  * consists of a Name and Value pair. For more information about specifying dimensions, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html">Publishing Metrics</a> in the
600
644
  * <i>Amazon CloudWatch User Guide</i>.</p>
601
645
  *
@@ -27,6 +27,7 @@ import { GetMetricStatisticsCommandInput, GetMetricStatisticsCommandOutput } fro
27
27
  import { GetMetricStreamCommandInput, GetMetricStreamCommandOutput } from "./commands/GetMetricStreamCommand";
28
28
  import { GetMetricWidgetImageCommandInput, GetMetricWidgetImageCommandOutput } from "./commands/GetMetricWidgetImageCommand";
29
29
  import { ListDashboardsCommandInput, ListDashboardsCommandOutput } from "./commands/ListDashboardsCommand";
30
+ import { ListManagedInsightRulesCommandInput, ListManagedInsightRulesCommandOutput } from "./commands/ListManagedInsightRulesCommand";
30
31
  import { ListMetricsCommandInput, ListMetricsCommandOutput } from "./commands/ListMetricsCommand";
31
32
  import { ListMetricStreamsCommandInput, ListMetricStreamsCommandOutput } from "./commands/ListMetricStreamsCommand";
32
33
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
@@ -34,6 +35,7 @@ import { PutAnomalyDetectorCommandInput, PutAnomalyDetectorCommandOutput } from
34
35
  import { PutCompositeAlarmCommandInput, PutCompositeAlarmCommandOutput } from "./commands/PutCompositeAlarmCommand";
35
36
  import { PutDashboardCommandInput, PutDashboardCommandOutput } from "./commands/PutDashboardCommand";
36
37
  import { PutInsightRuleCommandInput, PutInsightRuleCommandOutput } from "./commands/PutInsightRuleCommand";
38
+ import { PutManagedInsightRulesCommandInput, PutManagedInsightRulesCommandOutput } from "./commands/PutManagedInsightRulesCommand";
37
39
  import { PutMetricAlarmCommandInput, PutMetricAlarmCommandOutput } from "./commands/PutMetricAlarmCommand";
38
40
  import { PutMetricDataCommandInput, PutMetricDataCommandOutput } from "./commands/PutMetricDataCommand";
39
41
  import { PutMetricStreamCommandInput, PutMetricStreamCommandOutput } from "./commands/PutMetricStreamCommand";
@@ -42,8 +44,8 @@ import { StartMetricStreamsCommandInput, StartMetricStreamsCommandOutput } from
42
44
  import { StopMetricStreamsCommandInput, StopMetricStreamsCommandOutput } from "./commands/StopMetricStreamsCommand";
43
45
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
44
46
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
45
- export declare type ServiceInputTypes = DeleteAlarmsCommandInput | DeleteAnomalyDetectorCommandInput | DeleteDashboardsCommandInput | DeleteInsightRulesCommandInput | DeleteMetricStreamCommandInput | DescribeAlarmHistoryCommandInput | DescribeAlarmsCommandInput | DescribeAlarmsForMetricCommandInput | DescribeAnomalyDetectorsCommandInput | DescribeInsightRulesCommandInput | DisableAlarmActionsCommandInput | DisableInsightRulesCommandInput | EnableAlarmActionsCommandInput | EnableInsightRulesCommandInput | GetDashboardCommandInput | GetInsightRuleReportCommandInput | GetMetricDataCommandInput | GetMetricStatisticsCommandInput | GetMetricStreamCommandInput | GetMetricWidgetImageCommandInput | ListDashboardsCommandInput | ListMetricStreamsCommandInput | ListMetricsCommandInput | ListTagsForResourceCommandInput | PutAnomalyDetectorCommandInput | PutCompositeAlarmCommandInput | PutDashboardCommandInput | PutInsightRuleCommandInput | PutMetricAlarmCommandInput | PutMetricDataCommandInput | PutMetricStreamCommandInput | SetAlarmStateCommandInput | StartMetricStreamsCommandInput | StopMetricStreamsCommandInput | TagResourceCommandInput | UntagResourceCommandInput;
46
- export declare type ServiceOutputTypes = DeleteAlarmsCommandOutput | DeleteAnomalyDetectorCommandOutput | DeleteDashboardsCommandOutput | DeleteInsightRulesCommandOutput | DeleteMetricStreamCommandOutput | DescribeAlarmHistoryCommandOutput | DescribeAlarmsCommandOutput | DescribeAlarmsForMetricCommandOutput | DescribeAnomalyDetectorsCommandOutput | DescribeInsightRulesCommandOutput | DisableAlarmActionsCommandOutput | DisableInsightRulesCommandOutput | EnableAlarmActionsCommandOutput | EnableInsightRulesCommandOutput | GetDashboardCommandOutput | GetInsightRuleReportCommandOutput | GetMetricDataCommandOutput | GetMetricStatisticsCommandOutput | GetMetricStreamCommandOutput | GetMetricWidgetImageCommandOutput | ListDashboardsCommandOutput | ListMetricStreamsCommandOutput | ListMetricsCommandOutput | ListTagsForResourceCommandOutput | PutAnomalyDetectorCommandOutput | PutCompositeAlarmCommandOutput | PutDashboardCommandOutput | PutInsightRuleCommandOutput | PutMetricAlarmCommandOutput | PutMetricDataCommandOutput | PutMetricStreamCommandOutput | SetAlarmStateCommandOutput | StartMetricStreamsCommandOutput | StopMetricStreamsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput;
47
+ export declare type ServiceInputTypes = DeleteAlarmsCommandInput | DeleteAnomalyDetectorCommandInput | DeleteDashboardsCommandInput | DeleteInsightRulesCommandInput | DeleteMetricStreamCommandInput | DescribeAlarmHistoryCommandInput | DescribeAlarmsCommandInput | DescribeAlarmsForMetricCommandInput | DescribeAnomalyDetectorsCommandInput | DescribeInsightRulesCommandInput | DisableAlarmActionsCommandInput | DisableInsightRulesCommandInput | EnableAlarmActionsCommandInput | EnableInsightRulesCommandInput | GetDashboardCommandInput | GetInsightRuleReportCommandInput | GetMetricDataCommandInput | GetMetricStatisticsCommandInput | GetMetricStreamCommandInput | GetMetricWidgetImageCommandInput | ListDashboardsCommandInput | ListManagedInsightRulesCommandInput | ListMetricStreamsCommandInput | ListMetricsCommandInput | ListTagsForResourceCommandInput | PutAnomalyDetectorCommandInput | PutCompositeAlarmCommandInput | PutDashboardCommandInput | PutInsightRuleCommandInput | PutManagedInsightRulesCommandInput | PutMetricAlarmCommandInput | PutMetricDataCommandInput | PutMetricStreamCommandInput | SetAlarmStateCommandInput | StartMetricStreamsCommandInput | StopMetricStreamsCommandInput | TagResourceCommandInput | UntagResourceCommandInput;
48
+ export declare type ServiceOutputTypes = DeleteAlarmsCommandOutput | DeleteAnomalyDetectorCommandOutput | DeleteDashboardsCommandOutput | DeleteInsightRulesCommandOutput | DeleteMetricStreamCommandOutput | DescribeAlarmHistoryCommandOutput | DescribeAlarmsCommandOutput | DescribeAlarmsForMetricCommandOutput | DescribeAnomalyDetectorsCommandOutput | DescribeInsightRulesCommandOutput | DisableAlarmActionsCommandOutput | DisableInsightRulesCommandOutput | EnableAlarmActionsCommandOutput | EnableInsightRulesCommandOutput | GetDashboardCommandOutput | GetInsightRuleReportCommandOutput | GetMetricDataCommandOutput | GetMetricStatisticsCommandOutput | GetMetricStreamCommandOutput | GetMetricWidgetImageCommandOutput | ListDashboardsCommandOutput | ListManagedInsightRulesCommandOutput | ListMetricStreamsCommandOutput | ListMetricsCommandOutput | ListTagsForResourceCommandOutput | PutAnomalyDetectorCommandOutput | PutCompositeAlarmCommandOutput | PutDashboardCommandOutput | PutInsightRuleCommandOutput | PutManagedInsightRulesCommandOutput | PutMetricAlarmCommandOutput | PutMetricDataCommandOutput | PutMetricStreamCommandOutput | SetAlarmStateCommandOutput | StartMetricStreamsCommandOutput | StopMetricStreamsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput;
47
49
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
48
50
  /**
49
51
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -7,7 +7,15 @@ export interface DeleteAnomalyDetectorCommandInput extends DeleteAnomalyDetector
7
7
  export interface DeleteAnomalyDetectorCommandOutput extends DeleteAnomalyDetectorOutput, __MetadataBearer {
8
8
  }
9
9
  /**
10
- * <p>Deletes the specified anomaly detection model from your account.</p>
10
+ * <p>
11
+ * Deletes the specified anomaly detection model
12
+ * from your account.
13
+ * For more information
14
+ * about
15
+ * how to delete an anomaly detection model,
16
+ * see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Create_Anomaly_Detection_Alarm.html#Delete_Anomaly_Detection_Model">Deleting an anomaly detection model</a>
17
+ * in the <i>CloudWatch User Guide</i>.
18
+ * </p>
11
19
  * @example
12
20
  * Use a bare-bones client and the command you need to make an API call.
13
21
  * ```javascript
@@ -0,0 +1,41 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { CloudWatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchClient";
4
+ import { ListManagedInsightRulesInput, ListManagedInsightRulesOutput } from "../models/models_0";
5
+ export interface ListManagedInsightRulesCommandInput extends ListManagedInsightRulesInput {
6
+ }
7
+ export interface ListManagedInsightRulesCommandOutput extends ListManagedInsightRulesOutput, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>
11
+ * Returns a list
12
+ * that contains the number
13
+ * of managed Contributor Insights rules
14
+ * in your account.
15
+ *
16
+ * </p>
17
+ * @example
18
+ * Use a bare-bones client and the command you need to make an API call.
19
+ * ```javascript
20
+ * import { CloudWatchClient, ListManagedInsightRulesCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
21
+ * // const { CloudWatchClient, ListManagedInsightRulesCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
22
+ * const client = new CloudWatchClient(config);
23
+ * const command = new ListManagedInsightRulesCommand(input);
24
+ * const response = await client.send(command);
25
+ * ```
26
+ *
27
+ * @see {@link ListManagedInsightRulesCommandInput} for command's `input` shape.
28
+ * @see {@link ListManagedInsightRulesCommandOutput} for command's `response` shape.
29
+ * @see {@link CloudWatchClientResolvedConfig | config} for CloudWatchClient's `config` shape.
30
+ *
31
+ */
32
+ export declare class ListManagedInsightRulesCommand extends $Command<ListManagedInsightRulesCommandInput, ListManagedInsightRulesCommandOutput, CloudWatchClientResolvedConfig> {
33
+ readonly input: ListManagedInsightRulesCommandInput;
34
+ constructor(input: ListManagedInsightRulesCommandInput);
35
+ /**
36
+ * @internal
37
+ */
38
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudWatchClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListManagedInsightRulesCommandInput, ListManagedInsightRulesCommandOutput>;
39
+ private serialize;
40
+ private deserialize;
41
+ }
@@ -0,0 +1,51 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { CloudWatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchClient";
4
+ import { PutManagedInsightRulesInput, PutManagedInsightRulesOutput } from "../models/models_0";
5
+ export interface PutManagedInsightRulesCommandInput extends PutManagedInsightRulesInput {
6
+ }
7
+ export interface PutManagedInsightRulesCommandOutput extends PutManagedInsightRulesOutput, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>
11
+ * Creates a managed Contributor Insights rule
12
+ * for a specified Amazon Web Services resource.
13
+ * When you enable a managed rule,
14
+ * you create a Contributor Insights rule
15
+ * that collects data
16
+ * from Amazon Web Services services.
17
+ * You cannot edit these rules
18
+ * with <code>PutInsightRule</code>.
19
+ * The rules can be enabled, disabled, and deleted using <code>EnableInsightRules</code>, <code>DisableInsightRules</code>, and <code>DeleteInsightRules</code>.
20
+ * If a previously created managed rule is currently disabled,
21
+ * a subsequent call
22
+ * to this API will re-enable it.
23
+ * Use <code>ListManagedInsightRules</code>
24
+ * to describe all available rules.
25
+ *
26
+ * </p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { CloudWatchClient, PutManagedInsightRulesCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
31
+ * // const { CloudWatchClient, PutManagedInsightRulesCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
32
+ * const client = new CloudWatchClient(config);
33
+ * const command = new PutManagedInsightRulesCommand(input);
34
+ * const response = await client.send(command);
35
+ * ```
36
+ *
37
+ * @see {@link PutManagedInsightRulesCommandInput} for command's `input` shape.
38
+ * @see {@link PutManagedInsightRulesCommandOutput} for command's `response` shape.
39
+ * @see {@link CloudWatchClientResolvedConfig | config} for CloudWatchClient's `config` shape.
40
+ *
41
+ */
42
+ export declare class PutManagedInsightRulesCommand extends $Command<PutManagedInsightRulesCommandInput, PutManagedInsightRulesCommandOutput, CloudWatchClientResolvedConfig> {
43
+ readonly input: PutManagedInsightRulesCommandInput;
44
+ constructor(input: PutManagedInsightRulesCommandInput);
45
+ /**
46
+ * @internal
47
+ */
48
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudWatchClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutManagedInsightRulesCommandInput, PutManagedInsightRulesCommandOutput>;
49
+ private serialize;
50
+ private deserialize;
51
+ }
@@ -18,14 +18,14 @@ export interface PutMetricDataCommandOutput extends __MetadataBearer {
18
18
  * the <code>Values</code> and <code>Counts</code> method enables you to publish up to 150 values per metric
19
19
  * with one <code>PutMetricData</code> request, and
20
20
  * supports retrieving percentile statistics on this data.</p>
21
- * <p>Each <code>PutMetricData</code> request is limited to 40 KB in size for HTTP POST requests. You can
21
+ * <p>Each <code>PutMetricData</code> request is limited to 1 MB in size for HTTP POST requests. You can
22
22
  * send a payload compressed by gzip. Each request
23
- * is also limited to no more than 20 different metrics.</p>
23
+ * is also limited to no more than 1000 different metrics.</p>
24
24
  * <p>Although the <code>Value</code> parameter accepts numbers of type
25
25
  * <code>Double</code>, CloudWatch rejects values that are either too small
26
26
  * or too large. Values must be in the range of -2^360 to 2^360. In addition, special values (for example, NaN, +Infinity,
27
27
  * -Infinity) are not supported.</p>
28
- * <p>You can use up to 10 dimensions per metric to further clarify what data the metric collects. Each dimension
28
+ * <p>You can use up to 30 dimensions per metric to further clarify what data the metric collects. Each dimension
29
29
  * consists of a Name and Value pair. For more information about specifying dimensions, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html">Publishing Metrics</a> in the
30
30
  * <i>Amazon CloudWatch User Guide</i>.</p>
31
31
  *
@@ -19,6 +19,7 @@ export * from "./GetMetricStatisticsCommand";
19
19
  export * from "./GetMetricStreamCommand";
20
20
  export * from "./GetMetricWidgetImageCommand";
21
21
  export * from "./ListDashboardsCommand";
22
+ export * from "./ListManagedInsightRulesCommand";
22
23
  export * from "./ListMetricStreamsCommand";
23
24
  export * from "./ListMetricsCommand";
24
25
  export * from "./ListTagsForResourceCommand";
@@ -26,6 +27,7 @@ export * from "./PutAnomalyDetectorCommand";
26
27
  export * from "./PutCompositeAlarmCommand";
27
28
  export * from "./PutDashboardCommand";
28
29
  export * from "./PutInsightRuleCommand";
30
+ export * from "./PutManagedInsightRulesCommand";
29
31
  export * from "./PutMetricAlarmCommand";
30
32
  export * from "./PutMetricDataCommand";
31
33
  export * from "./PutMetricStreamCommand";
@@ -79,7 +79,7 @@ export interface AnomalyDetectorConfiguration {
79
79
  * your metrics, you are creating a new variation of that metric. For example, many Amazon EC2 metrics publish
80
80
  * <code>InstanceId</code> as a dimension name, and the actual instance ID as the value for that dimension.</p>
81
81
  * <p>You
82
- * can assign up to 10 dimensions to a metric.</p>
82
+ * can assign up to 30 dimensions to a metric.</p>
83
83
  */
84
84
  export interface Dimension {
85
85
  /**
@@ -1242,6 +1242,12 @@ export interface InsightRule {
1242
1242
  * Rule Syntax</a>.</p>
1243
1243
  */
1244
1244
  Definition: string | undefined;
1245
+ /**
1246
+ * <p>
1247
+ * An optional built-in rule that Amazon Web Services manages.
1248
+ * </p>
1249
+ */
1250
+ ManagedRule?: boolean;
1245
1251
  }
1246
1252
  export interface DescribeInsightRulesOutput {
1247
1253
  /**
@@ -1814,7 +1820,7 @@ export declare enum MetricStreamOutputFormat {
1814
1820
  }
1815
1821
  /**
1816
1822
  * <p>This object contains the information for one metric that is to be streamed with
1817
- * additional statistics.</p>
1823
+ * additional statistics.</p>
1818
1824
  */
1819
1825
  export interface MetricStreamStatisticsMetric {
1820
1826
  /**
@@ -1837,15 +1843,15 @@ export interface MetricStreamStatisticsMetric {
1837
1843
  export interface MetricStreamStatisticsConfiguration {
1838
1844
  /**
1839
1845
  * <p>An array of metric name and namespace pairs that stream the additional statistics listed
1840
- * in the value of the <code>AdditionalStatistics</code> parameter. There can be as many as
1841
- * 100 pairs in the array.</p>
1846
+ * in the value of the <code>AdditionalStatistics</code> parameter. There can be as many as
1847
+ * 100 pairs in the array.</p>
1842
1848
  * <p>All metrics that match the combination of metric name and namespace will be streamed
1843
- * with the additional statistics, no matter their dimensions.</p>
1849
+ * with the additional statistics, no matter their dimensions.</p>
1844
1850
  */
1845
1851
  IncludeMetrics: MetricStreamStatisticsMetric[] | undefined;
1846
1852
  /**
1847
1853
  * <p>The list of additional statistics that are to be streamed for the metrics listed
1848
- * in the <code>IncludeMetrics</code> array in this structure. This list can include as many as 20 statistics.</p>
1854
+ * in the <code>IncludeMetrics</code> array in this structure. This list can include as many as 20 statistics.</p>
1849
1855
  * <p>If the <code>OutputFormat</code> for the stream is <code>opentelemetry0.7</code>, the only
1850
1856
  * valid values are <code>p<i>??</i>
1851
1857
  * </code> percentile statistics such as <code>p90</code>, <code>p99</code> and so on.</p>
@@ -1853,7 +1859,7 @@ export interface MetricStreamStatisticsConfiguration {
1853
1859
  * the valid values include the abbreviations for all of the statistics listed in
1854
1860
  * <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.html">
1855
1861
  * CloudWatch statistics definitions</a>. For example, this includes
1856
- * <code>tm98, </code>
1862
+ * <code>tm98, </code>
1857
1863
  * <code>wm90</code>, <code>PR(:300)</code>, and so on.</p>
1858
1864
  */
1859
1865
  AdditionalStatistics: string[] | undefined;
@@ -1902,11 +1908,10 @@ export interface GetMetricStreamOutput {
1902
1908
  */
1903
1909
  LastUpdateDate?: Date;
1904
1910
  /**
1905
- * <p>The output format for the stream. Valid values are <code>json</code>
1906
- * and <code>opentelemetry0.7</code>. For more information about metric stream
1907
- * output formats, see
1908
- * <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-metric-streams-formats.html">
1909
- * Metric streams output formats</a>.</p>
1911
+ * <p>The output format for the stream.
1912
+ * Valid values are <code>json</code> and <code>opentelemetry0.7</code>.
1913
+ * For more information about metric stream output formats,
1914
+ * see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-metric-streams-formats.html">Metric streams output formats</a>.</p>
1910
1915
  */
1911
1916
  OutputFormat?: MetricStreamOutputFormat | string;
1912
1917
  /**
@@ -2005,6 +2010,123 @@ export interface ListDashboardsOutput {
2005
2010
  */
2006
2011
  NextToken?: string;
2007
2012
  }
2013
+ export interface ListManagedInsightRulesInput {
2014
+ /**
2015
+ * <p>
2016
+ * The ARN
2017
+ * of an Amazon Web Services resource
2018
+ * that has managed Contributor Insights rules.
2019
+ * </p>
2020
+ */
2021
+ ResourceARN: string | undefined;
2022
+ /**
2023
+ * <p>
2024
+ * Include this value
2025
+ * to get
2026
+ * the next set
2027
+ * of rules
2028
+ * if the value was returned
2029
+ * by the previous operation.
2030
+ * </p>
2031
+ */
2032
+ NextToken?: string;
2033
+ /**
2034
+ * <p>
2035
+ * The maximum number
2036
+ * of results
2037
+ * to return
2038
+ * in one operation.
2039
+ * If you omit this parameter,
2040
+ * the default number is used.
2041
+ * The default number is <code>100</code>.
2042
+ * </p>
2043
+ */
2044
+ MaxResults?: number;
2045
+ }
2046
+ /**
2047
+ * <p>
2048
+ * The status
2049
+ * of a managed Contributor Insights rule.
2050
+ * </p>
2051
+ */
2052
+ export interface ManagedRuleState {
2053
+ /**
2054
+ * <p>
2055
+ * The name
2056
+ * of the Contributor Insights rule
2057
+ * that contains data
2058
+ * for the specified Amazon Web Services resource.
2059
+ * </p>
2060
+ */
2061
+ RuleName: string | undefined;
2062
+ /**
2063
+ * <p>
2064
+ * Indicates whether the rule is enabled or disabled.
2065
+ * </p>
2066
+ */
2067
+ State: string | undefined;
2068
+ }
2069
+ /**
2070
+ * <p>
2071
+ * Contains information
2072
+ * about managed Contributor Insights rules,
2073
+ * as returned
2074
+ * by <code>ListManagedInsightRules</code>.
2075
+ *
2076
+ * </p>
2077
+ */
2078
+ export interface ManagedRuleDescription {
2079
+ /**
2080
+ * <p>
2081
+ * The template name
2082
+ * for the managed rule.
2083
+ * Used
2084
+ * to enable managed rules using <code>PutManagedInsightRules</code>.
2085
+ * </p>
2086
+ */
2087
+ TemplateName?: string;
2088
+ /**
2089
+ * <p>
2090
+ * If a managed rule is enabled,
2091
+ * this is the ARN
2092
+ * for the related Amazon Web Services resource.
2093
+ * </p>
2094
+ */
2095
+ ResourceARN?: string;
2096
+ /**
2097
+ * <p>
2098
+ * Describes the state
2099
+ * of a managed rule.
2100
+ * If present,
2101
+ * it contains information
2102
+ * about the Contributor Insights rule
2103
+ * that contains information
2104
+ * about the related Amazon Web Services resource.
2105
+ * </p>
2106
+ */
2107
+ RuleState?: ManagedRuleState;
2108
+ }
2109
+ export interface ListManagedInsightRulesOutput {
2110
+ /**
2111
+ * <p>
2112
+ * The managed rules
2113
+ * that are available
2114
+ * for the specified Amazon Web Services resource.
2115
+ * </p>
2116
+ */
2117
+ ManagedRules?: ManagedRuleDescription[];
2118
+ /**
2119
+ * <p>
2120
+ * Include this value
2121
+ * to get
2122
+ * the next set
2123
+ * of rules
2124
+ * if the value was returned
2125
+ * by the previous operation.
2126
+ * </p>
2127
+ */
2128
+ NextToken?: string;
2129
+ }
2008
2130
  export declare enum RecentlyActive {
2009
2131
  PT3H = "PT3H"
2010
2132
  }
@@ -2487,6 +2609,84 @@ export interface PutInsightRuleInput {
2487
2609
  }
2488
2610
  export interface PutInsightRuleOutput {
2489
2611
  }
2612
+ /**
2613
+ * <p>
2614
+ * Contains the information
2615
+ * that's required
2616
+ * to enable a managed Contributor Insights rule
2617
+ * for an Amazon Web Services resource.
2618
+ *
2619
+ * </p>
2620
+ */
2621
+ export interface ManagedRule {
2622
+ /**
2623
+ * <p>
2624
+ * The template name
2625
+ * for the managed Contributor Insights rule,
2626
+ * as returned
2627
+ * by <code>ListManagedInsightRules</code>.
2628
+ * </p>
2629
+ */
2630
+ TemplateName: string | undefined;
2631
+ /**
2632
+ * <p>
2633
+ * The ARN
2634
+ * of an Amazon Web Services resource
2635
+ * that has managed Contributor Insights rules.
2636
+ * </p>
2637
+ */
2638
+ ResourceARN: string | undefined;
2639
+ /**
2640
+ * <p>
2641
+ * A list
2642
+ * of key-value pairs
2643
+ * that you can associate
2644
+ * with a managed Contributor Insights rule.
2645
+ * You can associate as many as 50 tags
2646
+ * with a rule.
2647
+ * Tags can help you organize and categorize your resources.
2648
+ * You also can use them
2649
+ * to scope user permissions
2650
+ * by granting a user permission
2651
+ * to access or change only the resources
2652
+ * that have certain tag values.
2653
+ * To associate tags
2654
+ * with a rule,
2655
+ * you must have the <code>cloudwatch:TagResource</code> permission
2656
+ * in addition
2657
+ * to the <code>cloudwatch:PutInsightRule</code> permission.
2658
+ * If you are using this operation
2659
+ * to update an existing Contributor Insights rule,
2660
+ * any tags
2661
+ * that you specify
2662
+ * in this parameter are ignored.
2663
+ * To change the tags
2664
+ * of an existing rule,
2665
+ * use <code>TagResource</code>.
2666
+ * </p>
2667
+ */
2668
+ Tags?: Tag[];
2669
+ }
2670
+ export interface PutManagedInsightRulesInput {
2671
+ /**
2672
+ * <p>
2673
+ * A list
2674
+ * of <code>ManagedRules</code>
2675
+ * to enable.
2676
+ * </p>
2677
+ */
2678
+ ManagedRules: ManagedRule[] | undefined;
2679
+ }
2680
+ export interface PutManagedInsightRulesOutput {
2681
+ /**
2682
+ * <p>
2683
+ * An array
2684
+ * that lists the rules
2685
+ * that could not be enabled.
2686
+ * </p>
2687
+ */
2688
+ Failures?: PartialFailure[];
2689
+ }
2490
2690
  export interface PutMetricAlarmInput {
2491
2691
  /**
2492
2692
  * <p>The name for the alarm. This name must be unique within the Region.</p>
@@ -2631,7 +2831,7 @@ export interface PutMetricAlarmInput {
2631
2831
  * works as intended.</p>
2632
2832
  * <p>However, if the metric is published with multiple types of units and you don't specify a unit, the alarm's
2633
2833
  * behavior is not defined and
2634
- * it behaves predictably.</p>
2834
+ * it behaves unpredictably.</p>
2635
2835
  * <p>We recommend omitting <code>Unit</code> so that you don't inadvertently
2636
2836
  * specify an incorrect unit that is not published for this metric. Doing so
2637
2837
  * causes the alarm to be stuck in the <code>INSUFFICIENT DATA</code> state.</p>
@@ -2816,7 +3016,7 @@ export interface PutMetricDataInput {
2816
3016
  */
2817
3017
  Namespace: string | undefined;
2818
3018
  /**
2819
- * <p>The data for the metric. The array can include no more than 20 metrics per call.</p>
3019
+ * <p>The data for the metric. The array can include no more than 1000 metrics per call.</p>
2820
3020
  */
2821
3021
  MetricData: MetricDatum[] | undefined;
2822
3022
  }
@@ -3266,6 +3466,22 @@ export declare const ListDashboardsInputFilterSensitiveLog: (obj: ListDashboards
3266
3466
  * @internal
3267
3467
  */
3268
3468
  export declare const ListDashboardsOutputFilterSensitiveLog: (obj: ListDashboardsOutput) => any;
3469
+ /**
3470
+ * @internal
3471
+ */
3472
+ export declare const ListManagedInsightRulesInputFilterSensitiveLog: (obj: ListManagedInsightRulesInput) => any;
3473
+ /**
3474
+ * @internal
3475
+ */
3476
+ export declare const ManagedRuleStateFilterSensitiveLog: (obj: ManagedRuleState) => any;
3477
+ /**
3478
+ * @internal
3479
+ */
3480
+ export declare const ManagedRuleDescriptionFilterSensitiveLog: (obj: ManagedRuleDescription) => any;
3481
+ /**
3482
+ * @internal
3483
+ */
3484
+ export declare const ListManagedInsightRulesOutputFilterSensitiveLog: (obj: ListManagedInsightRulesOutput) => any;
3269
3485
  /**
3270
3486
  * @internal
3271
3487
  */
@@ -3326,6 +3542,18 @@ export declare const PutInsightRuleInputFilterSensitiveLog: (obj: PutInsightRule
3326
3542
  * @internal
3327
3543
  */
3328
3544
  export declare const PutInsightRuleOutputFilterSensitiveLog: (obj: PutInsightRuleOutput) => any;
3545
+ /**
3546
+ * @internal
3547
+ */
3548
+ export declare const ManagedRuleFilterSensitiveLog: (obj: ManagedRule) => any;
3549
+ /**
3550
+ * @internal
3551
+ */
3552
+ export declare const PutManagedInsightRulesInputFilterSensitiveLog: (obj: PutManagedInsightRulesInput) => any;
3553
+ /**
3554
+ * @internal
3555
+ */
3556
+ export declare const PutManagedInsightRulesOutputFilterSensitiveLog: (obj: PutManagedInsightRulesOutput) => any;
3329
3557
  /**
3330
3558
  * @internal
3331
3559
  */
@@ -0,0 +1,4 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import { DescribeAnomalyDetectorsCommandInput, DescribeAnomalyDetectorsCommandOutput } from "../commands/DescribeAnomalyDetectorsCommand";
3
+ import { CloudWatchPaginationConfiguration } from "./Interfaces";
4
+ export declare function paginateDescribeAnomalyDetectors(config: CloudWatchPaginationConfiguration, input: DescribeAnomalyDetectorsCommandInput, ...additionalArguments: any): Paginator<DescribeAnomalyDetectorsCommandOutput>;
@@ -0,0 +1,4 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import { ListManagedInsightRulesCommandInput, ListManagedInsightRulesCommandOutput } from "../commands/ListManagedInsightRulesCommand";
3
+ import { CloudWatchPaginationConfiguration } from "./Interfaces";
4
+ export declare function paginateListManagedInsightRules(config: CloudWatchPaginationConfiguration, input: ListManagedInsightRulesCommandInput, ...additionalArguments: any): Paginator<ListManagedInsightRulesCommandOutput>;
@@ -1,8 +1,10 @@
1
1
  export * from "./DescribeAlarmHistoryPaginator";
2
2
  export * from "./DescribeAlarmsPaginator";
3
+ export * from "./DescribeAnomalyDetectorsPaginator";
3
4
  export * from "./DescribeInsightRulesPaginator";
4
5
  export * from "./GetMetricDataPaginator";
5
6
  export * from "./Interfaces";
6
7
  export * from "./ListDashboardsPaginator";
8
+ export * from "./ListManagedInsightRulesPaginator";
7
9
  export * from "./ListMetricStreamsPaginator";
8
10
  export * from "./ListMetricsPaginator";