@aws-sdk/client-cloudwatch 3.150.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.
- package/CHANGELOG.md +11 -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 +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.153.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.152.0...v3.153.0) (2022-08-18)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-cloudwatch:** Add support for managed Contributor Insights Rules ([101b4c2](https://github.com/aws/aws-sdk-js-v3/commit/101b4c2f298f5ad209687a53267fc4b9cf325352))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.150.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.149.0...v3.150.0) (2022-08-15)
|
|
7
18
|
|
|
8
19
|
**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);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.deserializeAws_queryUntagResourceCommand = exports.deserializeAws_queryTagResourceCommand = exports.deserializeAws_queryStopMetricStreamsCommand = exports.deserializeAws_queryStartMetricStreamsCommand = exports.deserializeAws_querySetAlarmStateCommand = exports.deserializeAws_queryPutMetricStreamCommand = exports.deserializeAws_queryPutMetricDataCommand = exports.deserializeAws_queryPutMetricAlarmCommand = exports.deserializeAws_queryPutInsightRuleCommand = exports.deserializeAws_queryPutDashboardCommand = exports.deserializeAws_queryPutCompositeAlarmCommand = exports.deserializeAws_queryPutAnomalyDetectorCommand = exports.deserializeAws_queryListTagsForResourceCommand = exports.deserializeAws_queryListMetricStreamsCommand = exports.deserializeAws_queryListMetricsCommand = exports.deserializeAws_queryListDashboardsCommand = exports.deserializeAws_queryGetMetricWidgetImageCommand = exports.deserializeAws_queryGetMetricStreamCommand = exports.deserializeAws_queryGetMetricStatisticsCommand = exports.deserializeAws_queryGetMetricDataCommand = exports.deserializeAws_queryGetInsightRuleReportCommand = exports.deserializeAws_queryGetDashboardCommand = void 0;
|
|
3
|
+
exports.deserializeAws_queryDisableInsightRulesCommand = exports.deserializeAws_queryDisableAlarmActionsCommand = exports.deserializeAws_queryDescribeInsightRulesCommand = exports.deserializeAws_queryDescribeAnomalyDetectorsCommand = exports.deserializeAws_queryDescribeAlarmsForMetricCommand = exports.deserializeAws_queryDescribeAlarmsCommand = exports.deserializeAws_queryDescribeAlarmHistoryCommand = exports.deserializeAws_queryDeleteMetricStreamCommand = exports.deserializeAws_queryDeleteInsightRulesCommand = exports.deserializeAws_queryDeleteDashboardsCommand = exports.deserializeAws_queryDeleteAnomalyDetectorCommand = exports.deserializeAws_queryDeleteAlarmsCommand = exports.serializeAws_queryUntagResourceCommand = exports.serializeAws_queryTagResourceCommand = exports.serializeAws_queryStopMetricStreamsCommand = exports.serializeAws_queryStartMetricStreamsCommand = exports.serializeAws_querySetAlarmStateCommand = exports.serializeAws_queryPutMetricStreamCommand = exports.serializeAws_queryPutMetricDataCommand = exports.serializeAws_queryPutMetricAlarmCommand = exports.serializeAws_queryPutManagedInsightRulesCommand = exports.serializeAws_queryPutInsightRuleCommand = exports.serializeAws_queryPutDashboardCommand = exports.serializeAws_queryPutCompositeAlarmCommand = exports.serializeAws_queryPutAnomalyDetectorCommand = exports.serializeAws_queryListTagsForResourceCommand = exports.serializeAws_queryListMetricStreamsCommand = exports.serializeAws_queryListMetricsCommand = exports.serializeAws_queryListManagedInsightRulesCommand = exports.serializeAws_queryListDashboardsCommand = exports.serializeAws_queryGetMetricWidgetImageCommand = exports.serializeAws_queryGetMetricStreamCommand = exports.serializeAws_queryGetMetricStatisticsCommand = exports.serializeAws_queryGetMetricDataCommand = exports.serializeAws_queryGetInsightRuleReportCommand = exports.serializeAws_queryGetDashboardCommand = exports.serializeAws_queryEnableInsightRulesCommand = exports.serializeAws_queryEnableAlarmActionsCommand = exports.serializeAws_queryDisableInsightRulesCommand = exports.serializeAws_queryDisableAlarmActionsCommand = exports.serializeAws_queryDescribeInsightRulesCommand = exports.serializeAws_queryDescribeAnomalyDetectorsCommand = exports.serializeAws_queryDescribeAlarmsForMetricCommand = exports.serializeAws_queryDescribeAlarmsCommand = exports.serializeAws_queryDescribeAlarmHistoryCommand = exports.serializeAws_queryDeleteMetricStreamCommand = exports.serializeAws_queryDeleteInsightRulesCommand = exports.serializeAws_queryDeleteDashboardsCommand = exports.serializeAws_queryDeleteAnomalyDetectorCommand = exports.serializeAws_queryDeleteAlarmsCommand = void 0;
|
|
4
|
+
exports.deserializeAws_queryUntagResourceCommand = exports.deserializeAws_queryTagResourceCommand = exports.deserializeAws_queryStopMetricStreamsCommand = exports.deserializeAws_queryStartMetricStreamsCommand = exports.deserializeAws_querySetAlarmStateCommand = exports.deserializeAws_queryPutMetricStreamCommand = exports.deserializeAws_queryPutMetricDataCommand = exports.deserializeAws_queryPutMetricAlarmCommand = exports.deserializeAws_queryPutManagedInsightRulesCommand = exports.deserializeAws_queryPutInsightRuleCommand = exports.deserializeAws_queryPutDashboardCommand = exports.deserializeAws_queryPutCompositeAlarmCommand = exports.deserializeAws_queryPutAnomalyDetectorCommand = exports.deserializeAws_queryListTagsForResourceCommand = exports.deserializeAws_queryListMetricStreamsCommand = exports.deserializeAws_queryListMetricsCommand = exports.deserializeAws_queryListManagedInsightRulesCommand = exports.deserializeAws_queryListDashboardsCommand = exports.deserializeAws_queryGetMetricWidgetImageCommand = exports.deserializeAws_queryGetMetricStreamCommand = exports.deserializeAws_queryGetMetricStatisticsCommand = exports.deserializeAws_queryGetMetricDataCommand = exports.deserializeAws_queryGetInsightRuleReportCommand = exports.deserializeAws_queryGetDashboardCommand = exports.deserializeAws_queryEnableInsightRulesCommand = exports.deserializeAws_queryEnableAlarmActionsCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const entities_1 = require("entities");
|
|
@@ -281,6 +281,19 @@ const serializeAws_queryListDashboardsCommand = async (input, context) => {
|
|
|
281
281
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
282
282
|
};
|
|
283
283
|
exports.serializeAws_queryListDashboardsCommand = serializeAws_queryListDashboardsCommand;
|
|
284
|
+
const serializeAws_queryListManagedInsightRulesCommand = async (input, context) => {
|
|
285
|
+
const headers = {
|
|
286
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
287
|
+
};
|
|
288
|
+
let body;
|
|
289
|
+
body = buildFormUrlencodedString({
|
|
290
|
+
...serializeAws_queryListManagedInsightRulesInput(input, context),
|
|
291
|
+
Action: "ListManagedInsightRules",
|
|
292
|
+
Version: "2010-08-01",
|
|
293
|
+
});
|
|
294
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
295
|
+
};
|
|
296
|
+
exports.serializeAws_queryListManagedInsightRulesCommand = serializeAws_queryListManagedInsightRulesCommand;
|
|
284
297
|
const serializeAws_queryListMetricsCommand = async (input, context) => {
|
|
285
298
|
const headers = {
|
|
286
299
|
"content-type": "application/x-www-form-urlencoded",
|
|
@@ -372,6 +385,19 @@ const serializeAws_queryPutInsightRuleCommand = async (input, context) => {
|
|
|
372
385
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
373
386
|
};
|
|
374
387
|
exports.serializeAws_queryPutInsightRuleCommand = serializeAws_queryPutInsightRuleCommand;
|
|
388
|
+
const serializeAws_queryPutManagedInsightRulesCommand = async (input, context) => {
|
|
389
|
+
const headers = {
|
|
390
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
391
|
+
};
|
|
392
|
+
let body;
|
|
393
|
+
body = buildFormUrlencodedString({
|
|
394
|
+
...serializeAws_queryPutManagedInsightRulesInput(input, context),
|
|
395
|
+
Action: "PutManagedInsightRules",
|
|
396
|
+
Version: "2010-08-01",
|
|
397
|
+
});
|
|
398
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
399
|
+
};
|
|
400
|
+
exports.serializeAws_queryPutManagedInsightRulesCommand = serializeAws_queryPutManagedInsightRulesCommand;
|
|
375
401
|
const serializeAws_queryPutMetricAlarmCommand = async (input, context) => {
|
|
376
402
|
const headers = {
|
|
377
403
|
"content-type": "application/x-www-form-urlencoded",
|
|
@@ -1238,6 +1264,46 @@ const deserializeAws_queryListDashboardsCommandError = async (output, context) =
|
|
|
1238
1264
|
});
|
|
1239
1265
|
}
|
|
1240
1266
|
};
|
|
1267
|
+
const deserializeAws_queryListManagedInsightRulesCommand = async (output, context) => {
|
|
1268
|
+
if (output.statusCode >= 300) {
|
|
1269
|
+
return deserializeAws_queryListManagedInsightRulesCommandError(output, context);
|
|
1270
|
+
}
|
|
1271
|
+
const data = await parseBody(output.body, context);
|
|
1272
|
+
let contents = {};
|
|
1273
|
+
contents = deserializeAws_queryListManagedInsightRulesOutput(data.ListManagedInsightRulesResult, context);
|
|
1274
|
+
const response = {
|
|
1275
|
+
$metadata: deserializeMetadata(output),
|
|
1276
|
+
...contents,
|
|
1277
|
+
};
|
|
1278
|
+
return Promise.resolve(response);
|
|
1279
|
+
};
|
|
1280
|
+
exports.deserializeAws_queryListManagedInsightRulesCommand = deserializeAws_queryListManagedInsightRulesCommand;
|
|
1281
|
+
const deserializeAws_queryListManagedInsightRulesCommandError = async (output, context) => {
|
|
1282
|
+
const parsedOutput = {
|
|
1283
|
+
...output,
|
|
1284
|
+
body: await parseBody(output.body, context),
|
|
1285
|
+
};
|
|
1286
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1287
|
+
switch (errorCode) {
|
|
1288
|
+
case "InvalidNextToken":
|
|
1289
|
+
case "com.amazonaws.cloudwatch#InvalidNextToken":
|
|
1290
|
+
throw await deserializeAws_queryInvalidNextTokenResponse(parsedOutput, context);
|
|
1291
|
+
case "InvalidParameterValueException":
|
|
1292
|
+
case "com.amazonaws.cloudwatch#InvalidParameterValueException":
|
|
1293
|
+
throw await deserializeAws_queryInvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1294
|
+
case "MissingRequiredParameterException":
|
|
1295
|
+
case "com.amazonaws.cloudwatch#MissingRequiredParameterException":
|
|
1296
|
+
throw await deserializeAws_queryMissingRequiredParameterExceptionResponse(parsedOutput, context);
|
|
1297
|
+
default:
|
|
1298
|
+
const parsedBody = parsedOutput.body;
|
|
1299
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1300
|
+
output,
|
|
1301
|
+
parsedBody: parsedBody.Error,
|
|
1302
|
+
exceptionCtor: CloudWatchServiceException_1.CloudWatchServiceException,
|
|
1303
|
+
errorCode,
|
|
1304
|
+
});
|
|
1305
|
+
}
|
|
1306
|
+
};
|
|
1241
1307
|
const deserializeAws_queryListMetricsCommand = async (output, context) => {
|
|
1242
1308
|
if (output.statusCode >= 300) {
|
|
1243
1309
|
return deserializeAws_queryListMetricsCommandError(output, context);
|
|
@@ -1512,6 +1578,43 @@ const deserializeAws_queryPutInsightRuleCommandError = async (output, context) =
|
|
|
1512
1578
|
});
|
|
1513
1579
|
}
|
|
1514
1580
|
};
|
|
1581
|
+
const deserializeAws_queryPutManagedInsightRulesCommand = async (output, context) => {
|
|
1582
|
+
if (output.statusCode >= 300) {
|
|
1583
|
+
return deserializeAws_queryPutManagedInsightRulesCommandError(output, context);
|
|
1584
|
+
}
|
|
1585
|
+
const data = await parseBody(output.body, context);
|
|
1586
|
+
let contents = {};
|
|
1587
|
+
contents = deserializeAws_queryPutManagedInsightRulesOutput(data.PutManagedInsightRulesResult, context);
|
|
1588
|
+
const response = {
|
|
1589
|
+
$metadata: deserializeMetadata(output),
|
|
1590
|
+
...contents,
|
|
1591
|
+
};
|
|
1592
|
+
return Promise.resolve(response);
|
|
1593
|
+
};
|
|
1594
|
+
exports.deserializeAws_queryPutManagedInsightRulesCommand = deserializeAws_queryPutManagedInsightRulesCommand;
|
|
1595
|
+
const deserializeAws_queryPutManagedInsightRulesCommandError = async (output, context) => {
|
|
1596
|
+
const parsedOutput = {
|
|
1597
|
+
...output,
|
|
1598
|
+
body: await parseBody(output.body, context),
|
|
1599
|
+
};
|
|
1600
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1601
|
+
switch (errorCode) {
|
|
1602
|
+
case "InvalidParameterValueException":
|
|
1603
|
+
case "com.amazonaws.cloudwatch#InvalidParameterValueException":
|
|
1604
|
+
throw await deserializeAws_queryInvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1605
|
+
case "MissingRequiredParameterException":
|
|
1606
|
+
case "com.amazonaws.cloudwatch#MissingRequiredParameterException":
|
|
1607
|
+
throw await deserializeAws_queryMissingRequiredParameterExceptionResponse(parsedOutput, context);
|
|
1608
|
+
default:
|
|
1609
|
+
const parsedBody = parsedOutput.body;
|
|
1610
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1611
|
+
output,
|
|
1612
|
+
parsedBody: parsedBody.Error,
|
|
1613
|
+
exceptionCtor: CloudWatchServiceException_1.CloudWatchServiceException,
|
|
1614
|
+
errorCode,
|
|
1615
|
+
});
|
|
1616
|
+
}
|
|
1617
|
+
};
|
|
1515
1618
|
const deserializeAws_queryPutMetricAlarmCommand = async (output, context) => {
|
|
1516
1619
|
if (output.statusCode >= 300) {
|
|
1517
1620
|
return deserializeAws_queryPutMetricAlarmCommandError(output, context);
|
|
@@ -2525,6 +2628,19 @@ const serializeAws_queryListDashboardsInput = (input, context) => {
|
|
|
2525
2628
|
}
|
|
2526
2629
|
return entries;
|
|
2527
2630
|
};
|
|
2631
|
+
const serializeAws_queryListManagedInsightRulesInput = (input, context) => {
|
|
2632
|
+
const entries = {};
|
|
2633
|
+
if (input.ResourceARN != null) {
|
|
2634
|
+
entries["ResourceARN"] = input.ResourceARN;
|
|
2635
|
+
}
|
|
2636
|
+
if (input.NextToken != null) {
|
|
2637
|
+
entries["NextToken"] = input.NextToken;
|
|
2638
|
+
}
|
|
2639
|
+
if (input.MaxResults != null) {
|
|
2640
|
+
entries["MaxResults"] = input.MaxResults;
|
|
2641
|
+
}
|
|
2642
|
+
return entries;
|
|
2643
|
+
};
|
|
2528
2644
|
const serializeAws_queryListMetricsInput = (input, context) => {
|
|
2529
2645
|
const entries = {};
|
|
2530
2646
|
if (input.Namespace != null) {
|
|
@@ -2565,6 +2681,38 @@ const serializeAws_queryListTagsForResourceInput = (input, context) => {
|
|
|
2565
2681
|
}
|
|
2566
2682
|
return entries;
|
|
2567
2683
|
};
|
|
2684
|
+
const serializeAws_queryManagedRule = (input, context) => {
|
|
2685
|
+
const entries = {};
|
|
2686
|
+
if (input.TemplateName != null) {
|
|
2687
|
+
entries["TemplateName"] = input.TemplateName;
|
|
2688
|
+
}
|
|
2689
|
+
if (input.ResourceARN != null) {
|
|
2690
|
+
entries["ResourceARN"] = input.ResourceARN;
|
|
2691
|
+
}
|
|
2692
|
+
if (input.Tags != null) {
|
|
2693
|
+
const memberEntries = serializeAws_queryTagList(input.Tags, context);
|
|
2694
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
2695
|
+
const loc = `Tags.${key}`;
|
|
2696
|
+
entries[loc] = value;
|
|
2697
|
+
});
|
|
2698
|
+
}
|
|
2699
|
+
return entries;
|
|
2700
|
+
};
|
|
2701
|
+
const serializeAws_queryManagedRules = (input, context) => {
|
|
2702
|
+
const entries = {};
|
|
2703
|
+
let counter = 1;
|
|
2704
|
+
for (const entry of input) {
|
|
2705
|
+
if (entry === null) {
|
|
2706
|
+
continue;
|
|
2707
|
+
}
|
|
2708
|
+
const memberEntries = serializeAws_queryManagedRule(entry, context);
|
|
2709
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
2710
|
+
entries[`member.${counter}.${key}`] = value;
|
|
2711
|
+
});
|
|
2712
|
+
counter++;
|
|
2713
|
+
}
|
|
2714
|
+
return entries;
|
|
2715
|
+
};
|
|
2568
2716
|
const serializeAws_queryMetric = (input, context) => {
|
|
2569
2717
|
const entries = {};
|
|
2570
2718
|
if (input.Namespace != null) {
|
|
@@ -2947,6 +3095,17 @@ const serializeAws_queryPutInsightRuleInput = (input, context) => {
|
|
|
2947
3095
|
}
|
|
2948
3096
|
return entries;
|
|
2949
3097
|
};
|
|
3098
|
+
const serializeAws_queryPutManagedInsightRulesInput = (input, context) => {
|
|
3099
|
+
const entries = {};
|
|
3100
|
+
if (input.ManagedRules != null) {
|
|
3101
|
+
const memberEntries = serializeAws_queryManagedRules(input.ManagedRules, context);
|
|
3102
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3103
|
+
const loc = `ManagedRules.${key}`;
|
|
3104
|
+
entries[loc] = value;
|
|
3105
|
+
});
|
|
3106
|
+
}
|
|
3107
|
+
return entries;
|
|
3108
|
+
};
|
|
2950
3109
|
const serializeAws_queryPutMetricAlarmInput = (input, context) => {
|
|
2951
3110
|
const entries = {};
|
|
2952
3111
|
if (input.AlarmName != null) {
|
|
@@ -3962,6 +4121,7 @@ const deserializeAws_queryInsightRule = (output, context) => {
|
|
|
3962
4121
|
State: undefined,
|
|
3963
4122
|
Schema: undefined,
|
|
3964
4123
|
Definition: undefined,
|
|
4124
|
+
ManagedRule: undefined,
|
|
3965
4125
|
};
|
|
3966
4126
|
if (output["Name"] !== undefined) {
|
|
3967
4127
|
contents.Name = (0, smithy_client_1.expectString)(output["Name"]);
|
|
@@ -3975,6 +4135,9 @@ const deserializeAws_queryInsightRule = (output, context) => {
|
|
|
3975
4135
|
if (output["Definition"] !== undefined) {
|
|
3976
4136
|
contents.Definition = (0, smithy_client_1.expectString)(output["Definition"]);
|
|
3977
4137
|
}
|
|
4138
|
+
if (output["ManagedRule"] !== undefined) {
|
|
4139
|
+
contents.ManagedRule = (0, smithy_client_1.parseBoolean)(output["ManagedRule"]);
|
|
4140
|
+
}
|
|
3978
4141
|
return contents;
|
|
3979
4142
|
};
|
|
3980
4143
|
const deserializeAws_queryInsightRuleContributor = (output, context) => {
|
|
@@ -4171,6 +4334,22 @@ const deserializeAws_queryListDashboardsOutput = (output, context) => {
|
|
|
4171
4334
|
}
|
|
4172
4335
|
return contents;
|
|
4173
4336
|
};
|
|
4337
|
+
const deserializeAws_queryListManagedInsightRulesOutput = (output, context) => {
|
|
4338
|
+
const contents = {
|
|
4339
|
+
ManagedRules: undefined,
|
|
4340
|
+
NextToken: undefined,
|
|
4341
|
+
};
|
|
4342
|
+
if (output.ManagedRules === "") {
|
|
4343
|
+
contents.ManagedRules = [];
|
|
4344
|
+
}
|
|
4345
|
+
else if (output["ManagedRules"] !== undefined && output["ManagedRules"]["member"] !== undefined) {
|
|
4346
|
+
contents.ManagedRules = deserializeAws_queryManagedRuleDescriptions((0, smithy_client_1.getArrayIfSingleItem)(output["ManagedRules"]["member"]), context);
|
|
4347
|
+
}
|
|
4348
|
+
if (output["NextToken"] !== undefined) {
|
|
4349
|
+
contents.NextToken = (0, smithy_client_1.expectString)(output["NextToken"]);
|
|
4350
|
+
}
|
|
4351
|
+
return contents;
|
|
4352
|
+
};
|
|
4174
4353
|
const deserializeAws_queryListMetricsOutput = (output, context) => {
|
|
4175
4354
|
const contents = {
|
|
4176
4355
|
Metrics: undefined,
|
|
@@ -4215,6 +4394,43 @@ const deserializeAws_queryListTagsForResourceOutput = (output, context) => {
|
|
|
4215
4394
|
}
|
|
4216
4395
|
return contents;
|
|
4217
4396
|
};
|
|
4397
|
+
const deserializeAws_queryManagedRuleDescription = (output, context) => {
|
|
4398
|
+
const contents = {
|
|
4399
|
+
TemplateName: undefined,
|
|
4400
|
+
ResourceARN: undefined,
|
|
4401
|
+
RuleState: undefined,
|
|
4402
|
+
};
|
|
4403
|
+
if (output["TemplateName"] !== undefined) {
|
|
4404
|
+
contents.TemplateName = (0, smithy_client_1.expectString)(output["TemplateName"]);
|
|
4405
|
+
}
|
|
4406
|
+
if (output["ResourceARN"] !== undefined) {
|
|
4407
|
+
contents.ResourceARN = (0, smithy_client_1.expectString)(output["ResourceARN"]);
|
|
4408
|
+
}
|
|
4409
|
+
if (output["RuleState"] !== undefined) {
|
|
4410
|
+
contents.RuleState = deserializeAws_queryManagedRuleState(output["RuleState"], context);
|
|
4411
|
+
}
|
|
4412
|
+
return contents;
|
|
4413
|
+
};
|
|
4414
|
+
const deserializeAws_queryManagedRuleDescriptions = (output, context) => {
|
|
4415
|
+
return (output || [])
|
|
4416
|
+
.filter((e) => e != null)
|
|
4417
|
+
.map((entry) => {
|
|
4418
|
+
return deserializeAws_queryManagedRuleDescription(entry, context);
|
|
4419
|
+
});
|
|
4420
|
+
};
|
|
4421
|
+
const deserializeAws_queryManagedRuleState = (output, context) => {
|
|
4422
|
+
const contents = {
|
|
4423
|
+
RuleName: undefined,
|
|
4424
|
+
State: undefined,
|
|
4425
|
+
};
|
|
4426
|
+
if (output["RuleName"] !== undefined) {
|
|
4427
|
+
contents.RuleName = (0, smithy_client_1.expectString)(output["RuleName"]);
|
|
4428
|
+
}
|
|
4429
|
+
if (output["State"] !== undefined) {
|
|
4430
|
+
contents.State = (0, smithy_client_1.expectString)(output["State"]);
|
|
4431
|
+
}
|
|
4432
|
+
return contents;
|
|
4433
|
+
};
|
|
4218
4434
|
const deserializeAws_queryMessageData = (output, context) => {
|
|
4219
4435
|
const contents = {
|
|
4220
4436
|
Code: undefined,
|
|
@@ -4676,6 +4892,18 @@ const deserializeAws_queryPutInsightRuleOutput = (output, context) => {
|
|
|
4676
4892
|
const contents = {};
|
|
4677
4893
|
return contents;
|
|
4678
4894
|
};
|
|
4895
|
+
const deserializeAws_queryPutManagedInsightRulesOutput = (output, context) => {
|
|
4896
|
+
const contents = {
|
|
4897
|
+
Failures: undefined,
|
|
4898
|
+
};
|
|
4899
|
+
if (output.Failures === "") {
|
|
4900
|
+
contents.Failures = [];
|
|
4901
|
+
}
|
|
4902
|
+
else if (output["Failures"] !== undefined && output["Failures"]["member"] !== undefined) {
|
|
4903
|
+
contents.Failures = deserializeAws_queryBatchFailures((0, smithy_client_1.getArrayIfSingleItem)(output["Failures"]["member"]), context);
|
|
4904
|
+
}
|
|
4905
|
+
return contents;
|
|
4906
|
+
};
|
|
4679
4907
|
const deserializeAws_queryPutMetricStreamOutput = (output, context) => {
|
|
4680
4908
|
const contents = {
|
|
4681
4909
|
Arn: undefined,
|