@aws-sdk/client-cloudwatch 3.150.0 → 3.159.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.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/CloudWatch.js +30 -0
- package/dist-cjs/commands/ListManagedInsightRulesCommand.js +36 -0
- package/dist-cjs/commands/PutManagedInsightRulesCommand.js +36 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +30 -2
- package/dist-cjs/pagination/DescribeAnomalyDetectorsPaginator.js +36 -0
- package/dist-cjs/pagination/ListManagedInsightRulesPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_query.js +230 -2
- package/dist-es/CloudWatch.js +30 -0
- package/dist-es/commands/ListManagedInsightRulesCommand.js +39 -0
- package/dist-es/commands/PutManagedInsightRulesCommand.js +39 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +7 -0
- package/dist-es/pagination/DescribeAnomalyDetectorsPaginator.js +75 -0
- package/dist-es/pagination/ListManagedInsightRulesPaginator.js +75 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_query.js +345 -72
- package/dist-types/CloudWatch.d.ts +36 -0
- package/dist-types/CloudWatchClient.d.ts +4 -2
- package/dist-types/commands/ListManagedInsightRulesCommand.d.ts +41 -0
- package/dist-types/commands/PutManagedInsightRulesCommand.d.ts +51 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +240 -12
- package/dist-types/pagination/DescribeAnomalyDetectorsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListManagedInsightRulesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_query.d.ts +6 -0
- package/dist-types/ts3.4/CloudWatch.d.ts +10 -0
- package/dist-types/ts3.4/CloudWatchClient.d.ts +4 -2
- package/dist-types/ts3.4/commands/ListManagedInsightRulesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutManagedInsightRulesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +63 -0
- package/dist-types/ts3.4/pagination/DescribeAnomalyDetectorsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListManagedInsightRulesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_query.d.ts +6 -0
- package/package.json +28 -28
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.159.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.158.0...v3.159.0) (2022-08-26)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-cloudwatch
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.154.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.153.0...v3.154.0) (2022-08-19)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-cloudwatch
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.153.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.152.0...v3.153.0) (2022-08-18)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **client-cloudwatch:** Add support for managed Contributor Insights Rules ([101b4c2](https://github.com/aws/aws-sdk-js-v3/commit/101b4c2f298f5ad209687a53267fc4b9cf325352))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.150.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.149.0...v3.150.0) (2022-08-15)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @aws-sdk/client-cloudwatch
|
package/dist-cjs/CloudWatch.js
CHANGED
|
@@ -23,6 +23,7 @@ const GetMetricStatisticsCommand_1 = require("./commands/GetMetricStatisticsComm
|
|
|
23
23
|
const GetMetricStreamCommand_1 = require("./commands/GetMetricStreamCommand");
|
|
24
24
|
const GetMetricWidgetImageCommand_1 = require("./commands/GetMetricWidgetImageCommand");
|
|
25
25
|
const ListDashboardsCommand_1 = require("./commands/ListDashboardsCommand");
|
|
26
|
+
const ListManagedInsightRulesCommand_1 = require("./commands/ListManagedInsightRulesCommand");
|
|
26
27
|
const ListMetricsCommand_1 = require("./commands/ListMetricsCommand");
|
|
27
28
|
const ListMetricStreamsCommand_1 = require("./commands/ListMetricStreamsCommand");
|
|
28
29
|
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
@@ -30,6 +31,7 @@ const PutAnomalyDetectorCommand_1 = require("./commands/PutAnomalyDetectorComman
|
|
|
30
31
|
const PutCompositeAlarmCommand_1 = require("./commands/PutCompositeAlarmCommand");
|
|
31
32
|
const PutDashboardCommand_1 = require("./commands/PutDashboardCommand");
|
|
32
33
|
const PutInsightRuleCommand_1 = require("./commands/PutInsightRuleCommand");
|
|
34
|
+
const PutManagedInsightRulesCommand_1 = require("./commands/PutManagedInsightRulesCommand");
|
|
33
35
|
const PutMetricAlarmCommand_1 = require("./commands/PutMetricAlarmCommand");
|
|
34
36
|
const PutMetricDataCommand_1 = require("./commands/PutMetricDataCommand");
|
|
35
37
|
const PutMetricStreamCommand_1 = require("./commands/PutMetricStreamCommand");
|
|
@@ -333,6 +335,20 @@ class CloudWatch extends CloudWatchClient_1.CloudWatchClient {
|
|
|
333
335
|
return this.send(command, optionsOrCb);
|
|
334
336
|
}
|
|
335
337
|
}
|
|
338
|
+
listManagedInsightRules(args, optionsOrCb, cb) {
|
|
339
|
+
const command = new ListManagedInsightRulesCommand_1.ListManagedInsightRulesCommand(args);
|
|
340
|
+
if (typeof optionsOrCb === "function") {
|
|
341
|
+
this.send(command, optionsOrCb);
|
|
342
|
+
}
|
|
343
|
+
else if (typeof cb === "function") {
|
|
344
|
+
if (typeof optionsOrCb !== "object")
|
|
345
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
346
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
347
|
+
}
|
|
348
|
+
else {
|
|
349
|
+
return this.send(command, optionsOrCb);
|
|
350
|
+
}
|
|
351
|
+
}
|
|
336
352
|
listMetrics(args, optionsOrCb, cb) {
|
|
337
353
|
const command = new ListMetricsCommand_1.ListMetricsCommand(args);
|
|
338
354
|
if (typeof optionsOrCb === "function") {
|
|
@@ -431,6 +447,20 @@ class CloudWatch extends CloudWatchClient_1.CloudWatchClient {
|
|
|
431
447
|
return this.send(command, optionsOrCb);
|
|
432
448
|
}
|
|
433
449
|
}
|
|
450
|
+
putManagedInsightRules(args, optionsOrCb, cb) {
|
|
451
|
+
const command = new PutManagedInsightRulesCommand_1.PutManagedInsightRulesCommand(args);
|
|
452
|
+
if (typeof optionsOrCb === "function") {
|
|
453
|
+
this.send(command, optionsOrCb);
|
|
454
|
+
}
|
|
455
|
+
else if (typeof cb === "function") {
|
|
456
|
+
if (typeof optionsOrCb !== "object")
|
|
457
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
458
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
459
|
+
}
|
|
460
|
+
else {
|
|
461
|
+
return this.send(command, optionsOrCb);
|
|
462
|
+
}
|
|
463
|
+
}
|
|
434
464
|
putMetricAlarm(args, optionsOrCb, cb) {
|
|
435
465
|
const command = new PutMetricAlarmCommand_1.PutMetricAlarmCommand(args);
|
|
436
466
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListManagedInsightRulesCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_query_1 = require("../protocols/Aws_query");
|
|
8
|
+
class ListManagedInsightRulesCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "CloudWatchClient";
|
|
18
|
+
const commandName = "ListManagedInsightRulesCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.ListManagedInsightRulesInputFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.ListManagedInsightRulesOutputFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_query_1.serializeAws_queryListManagedInsightRulesCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_query_1.deserializeAws_queryListManagedInsightRulesCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.ListManagedInsightRulesCommand = ListManagedInsightRulesCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PutManagedInsightRulesCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_query_1 = require("../protocols/Aws_query");
|
|
8
|
+
class PutManagedInsightRulesCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "CloudWatchClient";
|
|
18
|
+
const commandName = "PutManagedInsightRulesCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.PutManagedInsightRulesInputFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.PutManagedInsightRulesOutputFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_query_1.serializeAws_queryPutManagedInsightRulesCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_query_1.deserializeAws_queryPutManagedInsightRulesCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.PutManagedInsightRulesCommand = PutManagedInsightRulesCommand;
|
|
@@ -22,6 +22,7 @@ tslib_1.__exportStar(require("./GetMetricStatisticsCommand"), exports);
|
|
|
22
22
|
tslib_1.__exportStar(require("./GetMetricStreamCommand"), exports);
|
|
23
23
|
tslib_1.__exportStar(require("./GetMetricWidgetImageCommand"), exports);
|
|
24
24
|
tslib_1.__exportStar(require("./ListDashboardsCommand"), exports);
|
|
25
|
+
tslib_1.__exportStar(require("./ListManagedInsightRulesCommand"), exports);
|
|
25
26
|
tslib_1.__exportStar(require("./ListMetricStreamsCommand"), exports);
|
|
26
27
|
tslib_1.__exportStar(require("./ListMetricsCommand"), exports);
|
|
27
28
|
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
@@ -29,6 +30,7 @@ tslib_1.__exportStar(require("./PutAnomalyDetectorCommand"), exports);
|
|
|
29
30
|
tslib_1.__exportStar(require("./PutCompositeAlarmCommand"), exports);
|
|
30
31
|
tslib_1.__exportStar(require("./PutDashboardCommand"), exports);
|
|
31
32
|
tslib_1.__exportStar(require("./PutInsightRuleCommand"), exports);
|
|
33
|
+
tslib_1.__exportStar(require("./PutManagedInsightRulesCommand"), exports);
|
|
32
34
|
tslib_1.__exportStar(require("./PutMetricAlarmCommand"), exports);
|
|
33
35
|
tslib_1.__exportStar(require("./PutMetricDataCommand"), exports);
|
|
34
36
|
tslib_1.__exportStar(require("./PutMetricStreamCommand"), exports);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DescribeAlarmsForMetricOutputFilterSensitiveLog = exports.DescribeAlarmsForMetricInputFilterSensitiveLog = exports.DescribeAlarmsOutputFilterSensitiveLog = exports.MetricAlarmFilterSensitiveLog = exports.DescribeAlarmsInputFilterSensitiveLog = exports.DescribeAlarmHistoryOutputFilterSensitiveLog = exports.DescribeAlarmHistoryInputFilterSensitiveLog = exports.DeleteMetricStreamOutputFilterSensitiveLog = exports.DeleteMetricStreamInputFilterSensitiveLog = exports.DeleteInsightRulesOutputFilterSensitiveLog = exports.DeleteInsightRulesInputFilterSensitiveLog = exports.DeleteDashboardsOutputFilterSensitiveLog = exports.DeleteDashboardsInputFilterSensitiveLog = exports.DeleteAnomalyDetectorOutputFilterSensitiveLog = exports.DeleteAnomalyDetectorInputFilterSensitiveLog = exports.DeleteAlarmsInputFilterSensitiveLog = exports.DatapointFilterSensitiveLog = exports.DashboardValidationMessageFilterSensitiveLog = exports.DashboardEntryFilterSensitiveLog = exports.CompositeAlarmFilterSensitiveLog = exports.PartialFailureFilterSensitiveLog = exports.AnomalyDetectorFilterSensitiveLog = exports.SingleMetricAnomalyDetectorFilterSensitiveLog = exports.MetricMathAnomalyDetectorFilterSensitiveLog = exports.MetricDataQueryFilterSensitiveLog = exports.MetricStatFilterSensitiveLog = exports.MetricFilterSensitiveLog = exports.DimensionFilterSensitiveLog = exports.AnomalyDetectorConfigurationFilterSensitiveLog = exports.RangeFilterSensitiveLog = exports.AlarmHistoryItemFilterSensitiveLog = exports.InvalidFormatFault = exports.LimitExceededFault = exports.RecentlyActive = exports.MetricStreamOutputFormat = exports.StatusCode = exports.LimitExceededException = exports.InvalidNextToken = exports.ScanBy = exports.ResourceNotFoundException = exports.MissingRequiredParameterException = exports.InvalidParameterValueException = exports.InvalidParameterCombinationException = exports.InternalServiceFault = exports.ResourceNotFound = exports.DashboardNotFoundError = exports.DashboardInvalidInputError = exports.ConcurrentModificationException = exports.AnomalyDetectorType = exports.ActionsSuppressedBy = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.UntagResourceOutputFilterSensitiveLog = exports.UntagResourceInputFilterSensitiveLog = exports.TagResourceOutputFilterSensitiveLog = exports.TagResourceInputFilterSensitiveLog = exports.StopMetricStreamsOutputFilterSensitiveLog = exports.StopMetricStreamsInputFilterSensitiveLog = exports.StartMetricStreamsOutputFilterSensitiveLog = exports.StartMetricStreamsInputFilterSensitiveLog = exports.SetAlarmStateInputFilterSensitiveLog = exports.PutMetricStreamOutputFilterSensitiveLog = exports.PutMetricStreamInputFilterSensitiveLog = exports.PutMetricDataInputFilterSensitiveLog = exports.MetricDatumFilterSensitiveLog = exports.StatisticSetFilterSensitiveLog = exports.PutMetricAlarmInputFilterSensitiveLog = void 0;
|
|
4
|
+
exports.PutCompositeAlarmInputFilterSensitiveLog = exports.PutAnomalyDetectorOutputFilterSensitiveLog = exports.PutAnomalyDetectorInputFilterSensitiveLog = exports.ListTagsForResourceOutputFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.ListTagsForResourceInputFilterSensitiveLog = exports.ListMetricStreamsOutputFilterSensitiveLog = exports.MetricStreamEntryFilterSensitiveLog = exports.ListMetricStreamsInputFilterSensitiveLog = exports.ListMetricsOutputFilterSensitiveLog = exports.ListMetricsInputFilterSensitiveLog = exports.ListManagedInsightRulesOutputFilterSensitiveLog = exports.ManagedRuleDescriptionFilterSensitiveLog = exports.ManagedRuleStateFilterSensitiveLog = exports.ListManagedInsightRulesInputFilterSensitiveLog = exports.ListDashboardsOutputFilterSensitiveLog = exports.ListDashboardsInputFilterSensitiveLog = exports.GetMetricWidgetImageOutputFilterSensitiveLog = exports.GetMetricWidgetImageInputFilterSensitiveLog = exports.GetMetricStreamOutputFilterSensitiveLog = exports.MetricStreamStatisticsConfigurationFilterSensitiveLog = exports.MetricStreamStatisticsMetricFilterSensitiveLog = exports.MetricStreamFilterFilterSensitiveLog = exports.GetMetricStreamInputFilterSensitiveLog = exports.GetMetricStatisticsOutputFilterSensitiveLog = exports.GetMetricStatisticsInputFilterSensitiveLog = exports.GetMetricDataOutputFilterSensitiveLog = exports.MetricDataResultFilterSensitiveLog = exports.MessageDataFilterSensitiveLog = exports.GetMetricDataInputFilterSensitiveLog = exports.LabelOptionsFilterSensitiveLog = exports.GetInsightRuleReportOutputFilterSensitiveLog = exports.InsightRuleMetricDatapointFilterSensitiveLog = exports.InsightRuleContributorFilterSensitiveLog = exports.InsightRuleContributorDatapointFilterSensitiveLog = exports.GetInsightRuleReportInputFilterSensitiveLog = exports.GetDashboardOutputFilterSensitiveLog = exports.GetDashboardInputFilterSensitiveLog = exports.EnableInsightRulesOutputFilterSensitiveLog = exports.EnableInsightRulesInputFilterSensitiveLog = exports.EnableAlarmActionsInputFilterSensitiveLog = exports.DisableInsightRulesOutputFilterSensitiveLog = exports.DisableInsightRulesInputFilterSensitiveLog = exports.DisableAlarmActionsInputFilterSensitiveLog = exports.DimensionFilterFilterSensitiveLog = exports.DescribeInsightRulesOutputFilterSensitiveLog = exports.InsightRuleFilterSensitiveLog = exports.DescribeInsightRulesInputFilterSensitiveLog = exports.DescribeAnomalyDetectorsOutputFilterSensitiveLog = exports.DescribeAnomalyDetectorsInputFilterSensitiveLog = void 0;
|
|
5
|
+
exports.UntagResourceOutputFilterSensitiveLog = exports.UntagResourceInputFilterSensitiveLog = exports.TagResourceOutputFilterSensitiveLog = exports.TagResourceInputFilterSensitiveLog = exports.StopMetricStreamsOutputFilterSensitiveLog = exports.StopMetricStreamsInputFilterSensitiveLog = exports.StartMetricStreamsOutputFilterSensitiveLog = exports.StartMetricStreamsInputFilterSensitiveLog = exports.SetAlarmStateInputFilterSensitiveLog = exports.PutMetricStreamOutputFilterSensitiveLog = exports.PutMetricStreamInputFilterSensitiveLog = exports.PutMetricDataInputFilterSensitiveLog = exports.MetricDatumFilterSensitiveLog = exports.StatisticSetFilterSensitiveLog = exports.PutMetricAlarmInputFilterSensitiveLog = exports.PutManagedInsightRulesOutputFilterSensitiveLog = exports.PutManagedInsightRulesInputFilterSensitiveLog = exports.ManagedRuleFilterSensitiveLog = exports.PutInsightRuleOutputFilterSensitiveLog = exports.PutInsightRuleInputFilterSensitiveLog = exports.PutDashboardOutputFilterSensitiveLog = exports.PutDashboardInputFilterSensitiveLog = void 0;
|
|
6
6
|
const CloudWatchServiceException_1 = require("./CloudWatchServiceException");
|
|
7
7
|
var ActionsSuppressedBy;
|
|
8
8
|
(function (ActionsSuppressedBy) {
|
|
@@ -475,6 +475,22 @@ const ListDashboardsOutputFilterSensitiveLog = (obj) => ({
|
|
|
475
475
|
...obj,
|
|
476
476
|
});
|
|
477
477
|
exports.ListDashboardsOutputFilterSensitiveLog = ListDashboardsOutputFilterSensitiveLog;
|
|
478
|
+
const ListManagedInsightRulesInputFilterSensitiveLog = (obj) => ({
|
|
479
|
+
...obj,
|
|
480
|
+
});
|
|
481
|
+
exports.ListManagedInsightRulesInputFilterSensitiveLog = ListManagedInsightRulesInputFilterSensitiveLog;
|
|
482
|
+
const ManagedRuleStateFilterSensitiveLog = (obj) => ({
|
|
483
|
+
...obj,
|
|
484
|
+
});
|
|
485
|
+
exports.ManagedRuleStateFilterSensitiveLog = ManagedRuleStateFilterSensitiveLog;
|
|
486
|
+
const ManagedRuleDescriptionFilterSensitiveLog = (obj) => ({
|
|
487
|
+
...obj,
|
|
488
|
+
});
|
|
489
|
+
exports.ManagedRuleDescriptionFilterSensitiveLog = ManagedRuleDescriptionFilterSensitiveLog;
|
|
490
|
+
const ListManagedInsightRulesOutputFilterSensitiveLog = (obj) => ({
|
|
491
|
+
...obj,
|
|
492
|
+
});
|
|
493
|
+
exports.ListManagedInsightRulesOutputFilterSensitiveLog = ListManagedInsightRulesOutputFilterSensitiveLog;
|
|
478
494
|
const ListMetricsInputFilterSensitiveLog = (obj) => ({
|
|
479
495
|
...obj,
|
|
480
496
|
});
|
|
@@ -535,6 +551,18 @@ const PutInsightRuleOutputFilterSensitiveLog = (obj) => ({
|
|
|
535
551
|
...obj,
|
|
536
552
|
});
|
|
537
553
|
exports.PutInsightRuleOutputFilterSensitiveLog = PutInsightRuleOutputFilterSensitiveLog;
|
|
554
|
+
const ManagedRuleFilterSensitiveLog = (obj) => ({
|
|
555
|
+
...obj,
|
|
556
|
+
});
|
|
557
|
+
exports.ManagedRuleFilterSensitiveLog = ManagedRuleFilterSensitiveLog;
|
|
558
|
+
const PutManagedInsightRulesInputFilterSensitiveLog = (obj) => ({
|
|
559
|
+
...obj,
|
|
560
|
+
});
|
|
561
|
+
exports.PutManagedInsightRulesInputFilterSensitiveLog = PutManagedInsightRulesInputFilterSensitiveLog;
|
|
562
|
+
const PutManagedInsightRulesOutputFilterSensitiveLog = (obj) => ({
|
|
563
|
+
...obj,
|
|
564
|
+
});
|
|
565
|
+
exports.PutManagedInsightRulesOutputFilterSensitiveLog = PutManagedInsightRulesOutputFilterSensitiveLog;
|
|
538
566
|
const PutMetricAlarmInputFilterSensitiveLog = (obj) => ({
|
|
539
567
|
...obj,
|
|
540
568
|
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateDescribeAnomalyDetectors = void 0;
|
|
4
|
+
const CloudWatch_1 = require("../CloudWatch");
|
|
5
|
+
const CloudWatchClient_1 = require("../CloudWatchClient");
|
|
6
|
+
const DescribeAnomalyDetectorsCommand_1 = require("../commands/DescribeAnomalyDetectorsCommand");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new DescribeAnomalyDetectorsCommand_1.DescribeAnomalyDetectorsCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.describeAnomalyDetectors(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateDescribeAnomalyDetectors(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["MaxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof CloudWatch_1.CloudWatch) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof CloudWatchClient_1.CloudWatchClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected CloudWatch | CloudWatchClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
const prevToken = token;
|
|
31
|
+
token = page.NextToken;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
exports.paginateDescribeAnomalyDetectors = paginateDescribeAnomalyDetectors;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListManagedInsightRules = void 0;
|
|
4
|
+
const CloudWatch_1 = require("../CloudWatch");
|
|
5
|
+
const CloudWatchClient_1 = require("../CloudWatchClient");
|
|
6
|
+
const ListManagedInsightRulesCommand_1 = require("../commands/ListManagedInsightRulesCommand");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListManagedInsightRulesCommand_1.ListManagedInsightRulesCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listManagedInsightRules(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListManagedInsightRules(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["MaxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof CloudWatch_1.CloudWatch) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof CloudWatchClient_1.CloudWatchClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected CloudWatch | CloudWatchClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
const prevToken = token;
|
|
31
|
+
token = page.NextToken;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
exports.paginateListManagedInsightRules = paginateListManagedInsightRules;
|
|
@@ -3,9 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./DescribeAlarmHistoryPaginator"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./DescribeAlarmsPaginator"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./DescribeAnomalyDetectorsPaginator"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./DescribeInsightRulesPaginator"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./GetMetricDataPaginator"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./ListDashboardsPaginator"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./ListManagedInsightRulesPaginator"), exports);
|
|
10
12
|
tslib_1.__exportStar(require("./ListMetricStreamsPaginator"), exports);
|
|
11
13
|
tslib_1.__exportStar(require("./ListMetricsPaginator"), exports);
|