@aws-sdk/client-cloudwatch 3.42.0 → 3.43.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 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.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** update clients as of 11/28/2021 ([#3072](https://github.com/aws/aws-sdk-js-v3/issues/3072)) ([2ad1622](https://github.com/aws/aws-sdk-js-v3/commit/2ad1622ba8586b926fe508055211803bb29e3976))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
7
18
 
8
19
 
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EnableInsightRulesInput = exports.EnableAlarmActionsInput = exports.DisableInsightRulesOutput = exports.DisableInsightRulesInput = exports.DisableAlarmActionsInput = exports.DimensionFilter = exports.DescribeInsightRulesOutput = exports.InsightRule = exports.DescribeInsightRulesInput = exports.DescribeAnomalyDetectorsOutput = exports.DescribeAnomalyDetectorsInput = exports.DescribeAlarmsForMetricOutput = exports.DescribeAlarmsForMetricInput = exports.DescribeAlarmsOutput = exports.MetricAlarm = exports.MetricDataQuery = exports.MetricStat = exports.Metric = exports.DescribeAlarmsInput = exports.InvalidNextToken = exports.DescribeAlarmHistoryOutput = exports.DescribeAlarmHistoryInput = exports.ScanBy = exports.DeleteMetricStreamOutput = exports.DeleteMetricStreamInput = exports.DeleteInsightRulesOutput = exports.DeleteInsightRulesInput = exports.DeleteDashboardsOutput = exports.DeleteDashboardsInput = exports.ResourceNotFoundException = exports.MissingRequiredParameterException = exports.InvalidParameterValueException = exports.InternalServiceFault = exports.DeleteAnomalyDetectorOutput = exports.DeleteAnomalyDetectorInput = exports.ResourceNotFound = exports.DeleteAlarmsInput = exports.Datapoint = exports.DashboardNotFoundError = exports.DashboardInvalidInputError = exports.DashboardValidationMessage = exports.DashboardEntry = exports.ConcurrentModificationException = exports.CompositeAlarm = exports.PartialFailure = exports.AnomalyDetector = exports.Dimension = exports.AnomalyDetectorConfiguration = exports.Range = exports.AlarmHistoryItem = void 0;
4
- exports.InvalidFormatFault = exports.PutMetricStreamOutput = exports.PutMetricStreamInput = exports.PutMetricDataInput = exports.MetricDatum = exports.StatisticSet = exports.PutMetricAlarmInput = exports.PutInsightRuleOutput = exports.PutInsightRuleInput = exports.PutDashboardOutput = exports.PutDashboardInput = exports.PutCompositeAlarmInput = exports.LimitExceededFault = exports.PutAnomalyDetectorOutput = exports.PutAnomalyDetectorInput = exports.ListTagsForResourceOutput = exports.Tag = exports.ListTagsForResourceInput = exports.ListMetricStreamsOutput = exports.MetricStreamEntry = exports.ListMetricStreamsInput = exports.ListMetricsOutput = exports.ListMetricsInput = exports.RecentlyActive = exports.ListDashboardsOutput = exports.ListDashboardsInput = exports.GetMetricWidgetImageOutput = exports.GetMetricWidgetImageInput = exports.GetMetricStreamOutput = exports.MetricStreamOutputFormat = exports.MetricStreamFilter = exports.GetMetricStreamInput = exports.InvalidParameterCombinationException = exports.GetMetricStatisticsOutput = exports.GetMetricStatisticsInput = exports.GetMetricDataOutput = exports.MetricDataResult = exports.StatusCode = exports.MessageData = exports.GetMetricDataInput = exports.LabelOptions = exports.GetInsightRuleReportOutput = exports.InsightRuleMetricDatapoint = exports.InsightRuleContributor = exports.InsightRuleContributorDatapoint = exports.GetInsightRuleReportInput = exports.GetDashboardOutput = exports.GetDashboardInput = exports.LimitExceededException = exports.EnableInsightRulesOutput = void 0;
5
- exports.UntagResourceOutput = exports.UntagResourceInput = exports.TagResourceOutput = exports.TagResourceInput = exports.StopMetricStreamsOutput = exports.StopMetricStreamsInput = exports.StartMetricStreamsOutput = exports.StartMetricStreamsInput = exports.SetAlarmStateInput = void 0;
3
+ exports.DisableAlarmActionsInput = exports.DimensionFilter = exports.DescribeInsightRulesOutput = exports.InsightRule = exports.DescribeInsightRulesInput = exports.DescribeAnomalyDetectorsOutput = exports.DescribeAnomalyDetectorsInput = exports.DescribeAlarmsForMetricOutput = exports.DescribeAlarmsForMetricInput = exports.DescribeAlarmsOutput = exports.MetricAlarm = exports.DescribeAlarmsInput = exports.InvalidNextToken = exports.DescribeAlarmHistoryOutput = exports.DescribeAlarmHistoryInput = exports.ScanBy = exports.DeleteMetricStreamOutput = exports.DeleteMetricStreamInput = exports.DeleteInsightRulesOutput = exports.DeleteInsightRulesInput = exports.DeleteDashboardsOutput = exports.DeleteDashboardsInput = exports.ResourceNotFoundException = exports.MissingRequiredParameterException = exports.InvalidParameterValueException = exports.InvalidParameterCombinationException = exports.InternalServiceFault = exports.DeleteAnomalyDetectorOutput = exports.DeleteAnomalyDetectorInput = exports.ResourceNotFound = exports.DeleteAlarmsInput = exports.Datapoint = exports.DashboardNotFoundError = exports.DashboardInvalidInputError = exports.DashboardValidationMessage = exports.DashboardEntry = exports.ConcurrentModificationException = exports.CompositeAlarm = exports.PartialFailure = exports.AnomalyDetectorType = exports.AnomalyDetector = exports.SingleMetricAnomalyDetector = exports.MetricMathAnomalyDetector = exports.MetricDataQuery = exports.MetricStat = exports.Metric = exports.Dimension = exports.AnomalyDetectorConfiguration = exports.Range = exports.AlarmHistoryItem = void 0;
4
+ exports.PutMetricDataInput = exports.MetricDatum = exports.StatisticSet = exports.PutMetricAlarmInput = exports.PutInsightRuleOutput = exports.PutInsightRuleInput = exports.PutDashboardOutput = exports.PutDashboardInput = exports.PutCompositeAlarmInput = exports.LimitExceededFault = exports.PutAnomalyDetectorOutput = exports.PutAnomalyDetectorInput = exports.ListTagsForResourceOutput = exports.Tag = exports.ListTagsForResourceInput = exports.ListMetricStreamsOutput = exports.MetricStreamEntry = exports.ListMetricStreamsInput = exports.ListMetricsOutput = exports.ListMetricsInput = exports.RecentlyActive = exports.ListDashboardsOutput = exports.ListDashboardsInput = exports.GetMetricWidgetImageOutput = exports.GetMetricWidgetImageInput = exports.GetMetricStreamOutput = exports.MetricStreamOutputFormat = exports.MetricStreamFilter = exports.GetMetricStreamInput = exports.GetMetricStatisticsOutput = exports.GetMetricStatisticsInput = exports.GetMetricDataOutput = exports.MetricDataResult = exports.StatusCode = exports.MessageData = exports.GetMetricDataInput = exports.LabelOptions = exports.GetInsightRuleReportOutput = exports.InsightRuleMetricDatapoint = exports.InsightRuleContributor = exports.InsightRuleContributorDatapoint = exports.GetInsightRuleReportInput = exports.GetDashboardOutput = exports.GetDashboardInput = exports.LimitExceededException = exports.EnableInsightRulesOutput = exports.EnableInsightRulesInput = exports.EnableAlarmActionsInput = exports.DisableInsightRulesOutput = exports.DisableInsightRulesInput = void 0;
5
+ exports.UntagResourceOutput = exports.UntagResourceInput = exports.TagResourceOutput = exports.TagResourceInput = exports.StopMetricStreamsOutput = exports.StopMetricStreamsInput = exports.StartMetricStreamsOutput = exports.StartMetricStreamsInput = exports.SetAlarmStateInput = exports.InvalidFormatFault = exports.PutMetricStreamOutput = exports.PutMetricStreamInput = void 0;
6
6
  var AlarmHistoryItem;
7
7
  (function (AlarmHistoryItem) {
8
8
  AlarmHistoryItem.filterSensitiveLog = (obj) => ({
@@ -27,12 +27,47 @@ var Dimension;
27
27
  ...obj,
28
28
  });
29
29
  })(Dimension = exports.Dimension || (exports.Dimension = {}));
30
+ var Metric;
31
+ (function (Metric) {
32
+ Metric.filterSensitiveLog = (obj) => ({
33
+ ...obj,
34
+ });
35
+ })(Metric = exports.Metric || (exports.Metric = {}));
36
+ var MetricStat;
37
+ (function (MetricStat) {
38
+ MetricStat.filterSensitiveLog = (obj) => ({
39
+ ...obj,
40
+ });
41
+ })(MetricStat = exports.MetricStat || (exports.MetricStat = {}));
42
+ var MetricDataQuery;
43
+ (function (MetricDataQuery) {
44
+ MetricDataQuery.filterSensitiveLog = (obj) => ({
45
+ ...obj,
46
+ });
47
+ })(MetricDataQuery = exports.MetricDataQuery || (exports.MetricDataQuery = {}));
48
+ var MetricMathAnomalyDetector;
49
+ (function (MetricMathAnomalyDetector) {
50
+ MetricMathAnomalyDetector.filterSensitiveLog = (obj) => ({
51
+ ...obj,
52
+ });
53
+ })(MetricMathAnomalyDetector = exports.MetricMathAnomalyDetector || (exports.MetricMathAnomalyDetector = {}));
54
+ var SingleMetricAnomalyDetector;
55
+ (function (SingleMetricAnomalyDetector) {
56
+ SingleMetricAnomalyDetector.filterSensitiveLog = (obj) => ({
57
+ ...obj,
58
+ });
59
+ })(SingleMetricAnomalyDetector = exports.SingleMetricAnomalyDetector || (exports.SingleMetricAnomalyDetector = {}));
30
60
  var AnomalyDetector;
31
61
  (function (AnomalyDetector) {
32
62
  AnomalyDetector.filterSensitiveLog = (obj) => ({
33
63
  ...obj,
34
64
  });
35
65
  })(AnomalyDetector = exports.AnomalyDetector || (exports.AnomalyDetector = {}));
66
+ var AnomalyDetectorType;
67
+ (function (AnomalyDetectorType) {
68
+ AnomalyDetectorType["METRIC_MATH"] = "METRIC_MATH";
69
+ AnomalyDetectorType["SINGLE_METRIC"] = "SINGLE_METRIC";
70
+ })(AnomalyDetectorType = exports.AnomalyDetectorType || (exports.AnomalyDetectorType = {}));
36
71
  var PartialFailure;
37
72
  (function (PartialFailure) {
38
73
  PartialFailure.filterSensitiveLog = (obj) => ({
@@ -111,6 +146,12 @@ var InternalServiceFault;
111
146
  ...obj,
112
147
  });
113
148
  })(InternalServiceFault = exports.InternalServiceFault || (exports.InternalServiceFault = {}));
149
+ var InvalidParameterCombinationException;
150
+ (function (InvalidParameterCombinationException) {
151
+ InvalidParameterCombinationException.filterSensitiveLog = (obj) => ({
152
+ ...obj,
153
+ });
154
+ })(InvalidParameterCombinationException = exports.InvalidParameterCombinationException || (exports.InvalidParameterCombinationException = {}));
114
155
  var InvalidParameterValueException;
115
156
  (function (InvalidParameterValueException) {
116
157
  InvalidParameterValueException.filterSensitiveLog = (obj) => ({
@@ -194,24 +235,6 @@ var DescribeAlarmsInput;
194
235
  ...obj,
195
236
  });
196
237
  })(DescribeAlarmsInput = exports.DescribeAlarmsInput || (exports.DescribeAlarmsInput = {}));
197
- var Metric;
198
- (function (Metric) {
199
- Metric.filterSensitiveLog = (obj) => ({
200
- ...obj,
201
- });
202
- })(Metric = exports.Metric || (exports.Metric = {}));
203
- var MetricStat;
204
- (function (MetricStat) {
205
- MetricStat.filterSensitiveLog = (obj) => ({
206
- ...obj,
207
- });
208
- })(MetricStat = exports.MetricStat || (exports.MetricStat = {}));
209
- var MetricDataQuery;
210
- (function (MetricDataQuery) {
211
- MetricDataQuery.filterSensitiveLog = (obj) => ({
212
- ...obj,
213
- });
214
- })(MetricDataQuery = exports.MetricDataQuery || (exports.MetricDataQuery = {}));
215
238
  var MetricAlarm;
216
239
  (function (MetricAlarm) {
217
240
  MetricAlarm.filterSensitiveLog = (obj) => ({
@@ -404,12 +427,6 @@ var GetMetricStatisticsOutput;
404
427
  ...obj,
405
428
  });
406
429
  })(GetMetricStatisticsOutput = exports.GetMetricStatisticsOutput || (exports.GetMetricStatisticsOutput = {}));
407
- var InvalidParameterCombinationException;
408
- (function (InvalidParameterCombinationException) {
409
- InvalidParameterCombinationException.filterSensitiveLog = (obj) => ({
410
- ...obj,
411
- });
412
- })(InvalidParameterCombinationException = exports.InvalidParameterCombinationException || (exports.InvalidParameterCombinationException = {}));
413
430
  var GetMetricStreamInput;
414
431
  (function (GetMetricStreamInput) {
415
432
  GetMetricStreamInput.filterSensitiveLog = (obj) => ({
@@ -549,6 +549,14 @@ const deserializeAws_queryDeleteAnomalyDetectorCommandError = async (output, con
549
549
  $metadata: deserializeMetadata(output),
550
550
  };
551
551
  break;
552
+ case "InvalidParameterCombinationException":
553
+ case "com.amazonaws.cloudwatch#InvalidParameterCombinationException":
554
+ response = {
555
+ ...(await deserializeAws_queryInvalidParameterCombinationExceptionResponse(parsedOutput, context)),
556
+ name: errorCode,
557
+ $metadata: deserializeMetadata(output),
558
+ };
559
+ break;
552
560
  case "InvalidParameterValueException":
553
561
  case "com.amazonaws.cloudwatch#InvalidParameterValueException":
554
562
  response = {
@@ -942,6 +950,14 @@ const deserializeAws_queryDescribeAnomalyDetectorsCommandError = async (output,
942
950
  $metadata: deserializeMetadata(output),
943
951
  };
944
952
  break;
953
+ case "InvalidParameterCombinationException":
954
+ case "com.amazonaws.cloudwatch#InvalidParameterCombinationException":
955
+ response = {
956
+ ...(await deserializeAws_queryInvalidParameterCombinationExceptionResponse(parsedOutput, context)),
957
+ name: errorCode,
958
+ $metadata: deserializeMetadata(output),
959
+ };
960
+ break;
945
961
  case "InvalidParameterValueException":
946
962
  case "com.amazonaws.cloudwatch#InvalidParameterValueException":
947
963
  response = {
@@ -1840,6 +1856,14 @@ const deserializeAws_queryPutAnomalyDetectorCommandError = async (output, contex
1840
1856
  $metadata: deserializeMetadata(output),
1841
1857
  };
1842
1858
  break;
1859
+ case "InvalidParameterCombinationException":
1860
+ case "com.amazonaws.cloudwatch#InvalidParameterCombinationException":
1861
+ response = {
1862
+ ...(await deserializeAws_queryInvalidParameterCombinationExceptionResponse(parsedOutput, context)),
1863
+ name: errorCode,
1864
+ $metadata: deserializeMetadata(output),
1865
+ };
1866
+ break;
1843
1867
  case "InvalidParameterValueException":
1844
1868
  case "com.amazonaws.cloudwatch#InvalidParameterValueException":
1845
1869
  response = {
@@ -2749,6 +2773,18 @@ const serializeAws_queryAnomalyDetectorExcludedTimeRanges = (input, context) =>
2749
2773
  }
2750
2774
  return entries;
2751
2775
  };
2776
+ const serializeAws_queryAnomalyDetectorTypes = (input, context) => {
2777
+ const entries = {};
2778
+ let counter = 1;
2779
+ for (const entry of input) {
2780
+ if (entry === null) {
2781
+ continue;
2782
+ }
2783
+ entries[`member.${counter}`] = entry;
2784
+ counter++;
2785
+ }
2786
+ return entries;
2787
+ };
2752
2788
  const serializeAws_queryCounts = (input, context) => {
2753
2789
  const entries = {};
2754
2790
  let counter = 1;
@@ -2802,6 +2838,20 @@ const serializeAws_queryDeleteAnomalyDetectorInput = (input, context) => {
2802
2838
  if (input.Stat !== undefined && input.Stat !== null) {
2803
2839
  entries["Stat"] = input.Stat;
2804
2840
  }
2841
+ if (input.SingleMetricAnomalyDetector !== undefined && input.SingleMetricAnomalyDetector !== null) {
2842
+ const memberEntries = serializeAws_querySingleMetricAnomalyDetector(input.SingleMetricAnomalyDetector, context);
2843
+ Object.entries(memberEntries).forEach(([key, value]) => {
2844
+ const loc = `SingleMetricAnomalyDetector.${key}`;
2845
+ entries[loc] = value;
2846
+ });
2847
+ }
2848
+ if (input.MetricMathAnomalyDetector !== undefined && input.MetricMathAnomalyDetector !== null) {
2849
+ const memberEntries = serializeAws_queryMetricMathAnomalyDetector(input.MetricMathAnomalyDetector, context);
2850
+ Object.entries(memberEntries).forEach(([key, value]) => {
2851
+ const loc = `MetricMathAnomalyDetector.${key}`;
2852
+ entries[loc] = value;
2853
+ });
2854
+ }
2805
2855
  return entries;
2806
2856
  };
2807
2857
  const serializeAws_queryDeleteDashboardsInput = (input, context) => {
@@ -2954,6 +3004,13 @@ const serializeAws_queryDescribeAnomalyDetectorsInput = (input, context) => {
2954
3004
  entries[loc] = value;
2955
3005
  });
2956
3006
  }
3007
+ if (input.AnomalyDetectorTypes !== undefined && input.AnomalyDetectorTypes !== null) {
3008
+ const memberEntries = serializeAws_queryAnomalyDetectorTypes(input.AnomalyDetectorTypes, context);
3009
+ Object.entries(memberEntries).forEach(([key, value]) => {
3010
+ const loc = `AnomalyDetectorTypes.${key}`;
3011
+ entries[loc] = value;
3012
+ });
3013
+ }
2957
3014
  return entries;
2958
3015
  };
2959
3016
  const serializeAws_queryDescribeInsightRulesInput = (input, context) => {
@@ -3405,6 +3462,17 @@ const serializeAws_queryMetricDatum = (input, context) => {
3405
3462
  }
3406
3463
  return entries;
3407
3464
  };
3465
+ const serializeAws_queryMetricMathAnomalyDetector = (input, context) => {
3466
+ const entries = {};
3467
+ if (input.MetricDataQueries !== undefined && input.MetricDataQueries !== null) {
3468
+ const memberEntries = serializeAws_queryMetricDataQueries(input.MetricDataQueries, context);
3469
+ Object.entries(memberEntries).forEach(([key, value]) => {
3470
+ const loc = `MetricDataQueries.${key}`;
3471
+ entries[loc] = value;
3472
+ });
3473
+ }
3474
+ return entries;
3475
+ };
3408
3476
  const serializeAws_queryMetricStat = (input, context) => {
3409
3477
  const entries = {};
3410
3478
  if (input.Metric !== undefined && input.Metric !== null) {
@@ -3484,6 +3552,20 @@ const serializeAws_queryPutAnomalyDetectorInput = (input, context) => {
3484
3552
  entries[loc] = value;
3485
3553
  });
3486
3554
  }
3555
+ if (input.SingleMetricAnomalyDetector !== undefined && input.SingleMetricAnomalyDetector !== null) {
3556
+ const memberEntries = serializeAws_querySingleMetricAnomalyDetector(input.SingleMetricAnomalyDetector, context);
3557
+ Object.entries(memberEntries).forEach(([key, value]) => {
3558
+ const loc = `SingleMetricAnomalyDetector.${key}`;
3559
+ entries[loc] = value;
3560
+ });
3561
+ }
3562
+ if (input.MetricMathAnomalyDetector !== undefined && input.MetricMathAnomalyDetector !== null) {
3563
+ const memberEntries = serializeAws_queryMetricMathAnomalyDetector(input.MetricMathAnomalyDetector, context);
3564
+ Object.entries(memberEntries).forEach(([key, value]) => {
3565
+ const loc = `MetricMathAnomalyDetector.${key}`;
3566
+ entries[loc] = value;
3567
+ });
3568
+ }
3487
3569
  return entries;
3488
3570
  };
3489
3571
  const serializeAws_queryPutCompositeAlarmInput = (input, context) => {
@@ -3743,6 +3825,26 @@ const serializeAws_querySetAlarmStateInput = (input, context) => {
3743
3825
  }
3744
3826
  return entries;
3745
3827
  };
3828
+ const serializeAws_querySingleMetricAnomalyDetector = (input, context) => {
3829
+ const entries = {};
3830
+ if (input.Namespace !== undefined && input.Namespace !== null) {
3831
+ entries["Namespace"] = input.Namespace;
3832
+ }
3833
+ if (input.MetricName !== undefined && input.MetricName !== null) {
3834
+ entries["MetricName"] = input.MetricName;
3835
+ }
3836
+ if (input.Dimensions !== undefined && input.Dimensions !== null) {
3837
+ const memberEntries = serializeAws_queryDimensions(input.Dimensions, context);
3838
+ Object.entries(memberEntries).forEach(([key, value]) => {
3839
+ const loc = `Dimensions.${key}`;
3840
+ entries[loc] = value;
3841
+ });
3842
+ }
3843
+ if (input.Stat !== undefined && input.Stat !== null) {
3844
+ entries["Stat"] = input.Stat;
3845
+ }
3846
+ return entries;
3847
+ };
3746
3848
  const serializeAws_queryStartMetricStreamsInput = (input, context) => {
3747
3849
  const entries = {};
3748
3850
  if (input.Names !== undefined && input.Names !== null) {
@@ -3917,6 +4019,8 @@ const deserializeAws_queryAnomalyDetector = (output, context) => {
3917
4019
  Stat: undefined,
3918
4020
  Configuration: undefined,
3919
4021
  StateValue: undefined,
4022
+ SingleMetricAnomalyDetector: undefined,
4023
+ MetricMathAnomalyDetector: undefined,
3920
4024
  };
3921
4025
  if (output["Namespace"] !== undefined) {
3922
4026
  contents.Namespace = smithy_client_1.expectString(output["Namespace"]);
@@ -3939,6 +4043,12 @@ const deserializeAws_queryAnomalyDetector = (output, context) => {
3939
4043
  if (output["StateValue"] !== undefined) {
3940
4044
  contents.StateValue = smithy_client_1.expectString(output["StateValue"]);
3941
4045
  }
4046
+ if (output["SingleMetricAnomalyDetector"] !== undefined) {
4047
+ contents.SingleMetricAnomalyDetector = deserializeAws_querySingleMetricAnomalyDetector(output["SingleMetricAnomalyDetector"], context);
4048
+ }
4049
+ if (output["MetricMathAnomalyDetector"] !== undefined) {
4050
+ contents.MetricMathAnomalyDetector = deserializeAws_queryMetricMathAnomalyDetector(output["MetricMathAnomalyDetector"], context);
4051
+ }
3942
4052
  return contents;
3943
4053
  };
3944
4054
  const deserializeAws_queryAnomalyDetectorConfiguration = (output, context) => {
@@ -5080,6 +5190,18 @@ const deserializeAws_queryMetricDataResults = (output, context) => {
5080
5190
  return deserializeAws_queryMetricDataResult(entry, context);
5081
5191
  });
5082
5192
  };
5193
+ const deserializeAws_queryMetricMathAnomalyDetector = (output, context) => {
5194
+ const contents = {
5195
+ MetricDataQueries: undefined,
5196
+ };
5197
+ if (output.MetricDataQueries === "") {
5198
+ contents.MetricDataQueries = [];
5199
+ }
5200
+ if (output["MetricDataQueries"] !== undefined && output["MetricDataQueries"]["member"] !== undefined) {
5201
+ contents.MetricDataQueries = deserializeAws_queryMetricDataQueries(smithy_client_1.getArrayIfSingleItem(output["MetricDataQueries"]["member"]), context);
5202
+ }
5203
+ return contents;
5204
+ };
5083
5205
  const deserializeAws_queryMetrics = (output, context) => {
5084
5206
  return (output || [])
5085
5207
  .filter((e) => e != null)
@@ -5282,6 +5404,30 @@ const deserializeAws_queryResourceNotFoundException = (output, context) => {
5282
5404
  }
5283
5405
  return contents;
5284
5406
  };
5407
+ const deserializeAws_querySingleMetricAnomalyDetector = (output, context) => {
5408
+ const contents = {
5409
+ Namespace: undefined,
5410
+ MetricName: undefined,
5411
+ Dimensions: undefined,
5412
+ Stat: undefined,
5413
+ };
5414
+ if (output["Namespace"] !== undefined) {
5415
+ contents.Namespace = smithy_client_1.expectString(output["Namespace"]);
5416
+ }
5417
+ if (output["MetricName"] !== undefined) {
5418
+ contents.MetricName = smithy_client_1.expectString(output["MetricName"]);
5419
+ }
5420
+ if (output.Dimensions === "") {
5421
+ contents.Dimensions = [];
5422
+ }
5423
+ if (output["Dimensions"] !== undefined && output["Dimensions"]["member"] !== undefined) {
5424
+ contents.Dimensions = deserializeAws_queryDimensions(smithy_client_1.getArrayIfSingleItem(output["Dimensions"]["member"]), context);
5425
+ }
5426
+ if (output["Stat"] !== undefined) {
5427
+ contents.Stat = smithy_client_1.expectString(output["Stat"]);
5428
+ }
5429
+ return contents;
5430
+ };
5285
5431
  const deserializeAws_queryStartMetricStreamsOutput = (output, context) => {
5286
5432
  const contents = {};
5287
5433
  return contents;
@@ -15,10 +15,35 @@ export var Dimension;
15
15
  (function (Dimension) {
16
16
  Dimension.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
17
17
  })(Dimension || (Dimension = {}));
18
+ export var Metric;
19
+ (function (Metric) {
20
+ Metric.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
21
+ })(Metric || (Metric = {}));
22
+ export var MetricStat;
23
+ (function (MetricStat) {
24
+ MetricStat.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
25
+ })(MetricStat || (MetricStat = {}));
26
+ export var MetricDataQuery;
27
+ (function (MetricDataQuery) {
28
+ MetricDataQuery.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
29
+ })(MetricDataQuery || (MetricDataQuery = {}));
30
+ export var MetricMathAnomalyDetector;
31
+ (function (MetricMathAnomalyDetector) {
32
+ MetricMathAnomalyDetector.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
33
+ })(MetricMathAnomalyDetector || (MetricMathAnomalyDetector = {}));
34
+ export var SingleMetricAnomalyDetector;
35
+ (function (SingleMetricAnomalyDetector) {
36
+ SingleMetricAnomalyDetector.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
37
+ })(SingleMetricAnomalyDetector || (SingleMetricAnomalyDetector = {}));
18
38
  export var AnomalyDetector;
19
39
  (function (AnomalyDetector) {
20
40
  AnomalyDetector.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
21
41
  })(AnomalyDetector || (AnomalyDetector = {}));
42
+ export var AnomalyDetectorType;
43
+ (function (AnomalyDetectorType) {
44
+ AnomalyDetectorType["METRIC_MATH"] = "METRIC_MATH";
45
+ AnomalyDetectorType["SINGLE_METRIC"] = "SINGLE_METRIC";
46
+ })(AnomalyDetectorType || (AnomalyDetectorType = {}));
22
47
  export var PartialFailure;
23
48
  (function (PartialFailure) {
24
49
  PartialFailure.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -71,6 +96,10 @@ export var InternalServiceFault;
71
96
  (function (InternalServiceFault) {
72
97
  InternalServiceFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
73
98
  })(InternalServiceFault || (InternalServiceFault = {}));
99
+ export var InvalidParameterCombinationException;
100
+ (function (InvalidParameterCombinationException) {
101
+ InvalidParameterCombinationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
102
+ })(InvalidParameterCombinationException || (InvalidParameterCombinationException = {}));
74
103
  export var InvalidParameterValueException;
75
104
  (function (InvalidParameterValueException) {
76
105
  InvalidParameterValueException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -128,18 +157,6 @@ export var DescribeAlarmsInput;
128
157
  (function (DescribeAlarmsInput) {
129
158
  DescribeAlarmsInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
130
159
  })(DescribeAlarmsInput || (DescribeAlarmsInput = {}));
131
- export var Metric;
132
- (function (Metric) {
133
- Metric.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
134
- })(Metric || (Metric = {}));
135
- export var MetricStat;
136
- (function (MetricStat) {
137
- MetricStat.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
138
- })(MetricStat || (MetricStat = {}));
139
- export var MetricDataQuery;
140
- (function (MetricDataQuery) {
141
- MetricDataQuery.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
142
- })(MetricDataQuery || (MetricDataQuery = {}));
143
160
  export var MetricAlarm;
144
161
  (function (MetricAlarm) {
145
162
  MetricAlarm.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -270,10 +287,6 @@ export var GetMetricStatisticsOutput;
270
287
  (function (GetMetricStatisticsOutput) {
271
288
  GetMetricStatisticsOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
272
289
  })(GetMetricStatisticsOutput || (GetMetricStatisticsOutput = {}));
273
- export var InvalidParameterCombinationException;
274
- (function (InvalidParameterCombinationException) {
275
- InvalidParameterCombinationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
276
- })(InvalidParameterCombinationException || (InvalidParameterCombinationException = {}));
277
290
  export var GetMetricStreamInput;
278
291
  (function (GetMetricStreamInput) {
279
292
  GetMetricStreamInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };