@aws-sdk/client-cloudwatch 3.42.0 → 3.47.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,57 @@
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.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
12
+ * Support awsQueryError trait ([#3174](https://github.com/aws/aws-sdk-js-v3/issues/3174)) ([351bd3a](https://github.com/aws/aws-sdk-js-v3/commit/351bd3a40ad37be79d823d6a0e4e48304728ea6f))
13
+
14
+
15
+
16
+
17
+
18
+ # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
24
+
25
+
26
+ ### Features
27
+
28
+ * **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
29
+ * end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
30
+
31
+
32
+
33
+
34
+
35
+ # [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
36
+
37
+
38
+ ### Features
39
+
40
+ * **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
41
+
42
+
43
+
44
+
45
+
46
+ # [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
47
+
48
+
49
+ ### Features
50
+
51
+ * **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))
52
+
53
+
54
+
55
+
56
+
6
57
  # [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
7
58
 
8
59
 
@@ -5,10 +5,6 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
5
5
  const regionHash = {
6
6
  "us-east-1": {
7
7
  variants: [
8
- {
9
- hostname: "monitoring.us-east-1.amazonaws.com",
10
- tags: [],
11
- },
12
8
  {
13
9
  hostname: "monitoring-fips.us-east-1.amazonaws.com",
14
10
  tags: ["fips"],
@@ -17,10 +13,6 @@ const regionHash = {
17
13
  },
18
14
  "us-east-2": {
19
15
  variants: [
20
- {
21
- hostname: "monitoring.us-east-2.amazonaws.com",
22
- tags: [],
23
- },
24
16
  {
25
17
  hostname: "monitoring-fips.us-east-2.amazonaws.com",
26
18
  tags: ["fips"],
@@ -29,10 +21,6 @@ const regionHash = {
29
21
  },
30
22
  "us-gov-east-1": {
31
23
  variants: [
32
- {
33
- hostname: "monitoring.us-gov-east-1.amazonaws.com",
34
- tags: [],
35
- },
36
24
  {
37
25
  hostname: "monitoring.us-gov-east-1.amazonaws.com",
38
26
  tags: ["fips"],
@@ -41,10 +29,6 @@ const regionHash = {
41
29
  },
42
30
  "us-gov-west-1": {
43
31
  variants: [
44
- {
45
- hostname: "monitoring.us-gov-west-1.amazonaws.com",
46
- tags: [],
47
- },
48
32
  {
49
33
  hostname: "monitoring.us-gov-west-1.amazonaws.com",
50
34
  tags: ["fips"],
@@ -53,10 +37,6 @@ const regionHash = {
53
37
  },
54
38
  "us-west-1": {
55
39
  variants: [
56
- {
57
- hostname: "monitoring.us-west-1.amazonaws.com",
58
- tags: [],
59
- },
60
40
  {
61
41
  hostname: "monitoring-fips.us-west-1.amazonaws.com",
62
42
  tags: ["fips"],
@@ -65,10 +45,6 @@ const regionHash = {
65
45
  },
66
46
  "us-west-2": {
67
47
  variants: [
68
- {
69
- hostname: "monitoring.us-west-2.amazonaws.com",
70
- tags: [],
71
- },
72
48
  {
73
49
  hostname: "monitoring-fips.us-west-2.amazonaws.com",
74
50
  tags: ["fips"],
@@ -87,6 +63,7 @@ const partitionHash = {
87
63
  "ap-south-1",
88
64
  "ap-southeast-1",
89
65
  "ap-southeast-2",
66
+ "ap-southeast-3",
90
67
  "ca-central-1",
91
68
  "eu-central-1",
92
69
  "eu-north-1",
@@ -1,8 +1,7 @@
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.InsightRuleContributor = exports.InsightRuleContributorDatapoint = exports.GetInsightRuleReportInput = exports.GetDashboardOutput = exports.GetDashboardInput = exports.EnableInsightRulesOutput = 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.DescribeAlarmsInput = exports.DescribeAlarmHistoryOutput = exports.DescribeAlarmHistoryInput = exports.ScanBy = exports.DeleteMetricStreamOutput = exports.DeleteMetricStreamInput = exports.DeleteInsightRulesOutput = exports.DeleteInsightRulesInput = exports.DeleteDashboardsOutput = exports.DeleteDashboardsInput = exports.DeleteAnomalyDetectorOutput = exports.DeleteAnomalyDetectorInput = exports.DeleteAlarmsInput = exports.Datapoint = exports.DashboardValidationMessage = exports.DashboardEntry = 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.UntagResourceOutput = exports.UntagResourceInput = exports.TagResourceOutput = exports.TagResourceInput = exports.StopMetricStreamsOutput = exports.StopMetricStreamsInput = exports.StartMetricStreamsOutput = exports.StartMetricStreamsInput = exports.SetAlarmStateInput = exports.PutMetricStreamOutput = exports.PutMetricStreamInput = exports.PutMetricDataInput = exports.MetricDatum = exports.StatisticSet = exports.PutMetricAlarmInput = exports.PutInsightRuleOutput = exports.PutInsightRuleInput = exports.PutDashboardOutput = exports.PutDashboardInput = exports.PutCompositeAlarmInput = 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 = void 0;
6
5
  var AlarmHistoryItem;
7
6
  (function (AlarmHistoryItem) {
8
7
  AlarmHistoryItem.filterSensitiveLog = (obj) => ({
@@ -27,12 +26,47 @@ var Dimension;
27
26
  ...obj,
28
27
  });
29
28
  })(Dimension = exports.Dimension || (exports.Dimension = {}));
29
+ var Metric;
30
+ (function (Metric) {
31
+ Metric.filterSensitiveLog = (obj) => ({
32
+ ...obj,
33
+ });
34
+ })(Metric = exports.Metric || (exports.Metric = {}));
35
+ var MetricStat;
36
+ (function (MetricStat) {
37
+ MetricStat.filterSensitiveLog = (obj) => ({
38
+ ...obj,
39
+ });
40
+ })(MetricStat = exports.MetricStat || (exports.MetricStat = {}));
41
+ var MetricDataQuery;
42
+ (function (MetricDataQuery) {
43
+ MetricDataQuery.filterSensitiveLog = (obj) => ({
44
+ ...obj,
45
+ });
46
+ })(MetricDataQuery = exports.MetricDataQuery || (exports.MetricDataQuery = {}));
47
+ var MetricMathAnomalyDetector;
48
+ (function (MetricMathAnomalyDetector) {
49
+ MetricMathAnomalyDetector.filterSensitiveLog = (obj) => ({
50
+ ...obj,
51
+ });
52
+ })(MetricMathAnomalyDetector = exports.MetricMathAnomalyDetector || (exports.MetricMathAnomalyDetector = {}));
53
+ var SingleMetricAnomalyDetector;
54
+ (function (SingleMetricAnomalyDetector) {
55
+ SingleMetricAnomalyDetector.filterSensitiveLog = (obj) => ({
56
+ ...obj,
57
+ });
58
+ })(SingleMetricAnomalyDetector = exports.SingleMetricAnomalyDetector || (exports.SingleMetricAnomalyDetector = {}));
30
59
  var AnomalyDetector;
31
60
  (function (AnomalyDetector) {
32
61
  AnomalyDetector.filterSensitiveLog = (obj) => ({
33
62
  ...obj,
34
63
  });
35
64
  })(AnomalyDetector = exports.AnomalyDetector || (exports.AnomalyDetector = {}));
65
+ var AnomalyDetectorType;
66
+ (function (AnomalyDetectorType) {
67
+ AnomalyDetectorType["METRIC_MATH"] = "METRIC_MATH";
68
+ AnomalyDetectorType["SINGLE_METRIC"] = "SINGLE_METRIC";
69
+ })(AnomalyDetectorType = exports.AnomalyDetectorType || (exports.AnomalyDetectorType = {}));
36
70
  var PartialFailure;
37
71
  (function (PartialFailure) {
38
72
  PartialFailure.filterSensitiveLog = (obj) => ({
@@ -45,12 +79,6 @@ var CompositeAlarm;
45
79
  ...obj,
46
80
  });
47
81
  })(CompositeAlarm = exports.CompositeAlarm || (exports.CompositeAlarm = {}));
48
- var ConcurrentModificationException;
49
- (function (ConcurrentModificationException) {
50
- ConcurrentModificationException.filterSensitiveLog = (obj) => ({
51
- ...obj,
52
- });
53
- })(ConcurrentModificationException = exports.ConcurrentModificationException || (exports.ConcurrentModificationException = {}));
54
82
  var DashboardEntry;
55
83
  (function (DashboardEntry) {
56
84
  DashboardEntry.filterSensitiveLog = (obj) => ({
@@ -63,18 +91,6 @@ var DashboardValidationMessage;
63
91
  ...obj,
64
92
  });
65
93
  })(DashboardValidationMessage = exports.DashboardValidationMessage || (exports.DashboardValidationMessage = {}));
66
- var DashboardInvalidInputError;
67
- (function (DashboardInvalidInputError) {
68
- DashboardInvalidInputError.filterSensitiveLog = (obj) => ({
69
- ...obj,
70
- });
71
- })(DashboardInvalidInputError = exports.DashboardInvalidInputError || (exports.DashboardInvalidInputError = {}));
72
- var DashboardNotFoundError;
73
- (function (DashboardNotFoundError) {
74
- DashboardNotFoundError.filterSensitiveLog = (obj) => ({
75
- ...obj,
76
- });
77
- })(DashboardNotFoundError = exports.DashboardNotFoundError || (exports.DashboardNotFoundError = {}));
78
94
  var Datapoint;
79
95
  (function (Datapoint) {
80
96
  Datapoint.filterSensitiveLog = (obj) => ({
@@ -87,12 +103,6 @@ var DeleteAlarmsInput;
87
103
  ...obj,
88
104
  });
89
105
  })(DeleteAlarmsInput = exports.DeleteAlarmsInput || (exports.DeleteAlarmsInput = {}));
90
- var ResourceNotFound;
91
- (function (ResourceNotFound) {
92
- ResourceNotFound.filterSensitiveLog = (obj) => ({
93
- ...obj,
94
- });
95
- })(ResourceNotFound = exports.ResourceNotFound || (exports.ResourceNotFound = {}));
96
106
  var DeleteAnomalyDetectorInput;
97
107
  (function (DeleteAnomalyDetectorInput) {
98
108
  DeleteAnomalyDetectorInput.filterSensitiveLog = (obj) => ({
@@ -105,30 +115,6 @@ var DeleteAnomalyDetectorOutput;
105
115
  ...obj,
106
116
  });
107
117
  })(DeleteAnomalyDetectorOutput = exports.DeleteAnomalyDetectorOutput || (exports.DeleteAnomalyDetectorOutput = {}));
108
- var InternalServiceFault;
109
- (function (InternalServiceFault) {
110
- InternalServiceFault.filterSensitiveLog = (obj) => ({
111
- ...obj,
112
- });
113
- })(InternalServiceFault = exports.InternalServiceFault || (exports.InternalServiceFault = {}));
114
- var InvalidParameterValueException;
115
- (function (InvalidParameterValueException) {
116
- InvalidParameterValueException.filterSensitiveLog = (obj) => ({
117
- ...obj,
118
- });
119
- })(InvalidParameterValueException = exports.InvalidParameterValueException || (exports.InvalidParameterValueException = {}));
120
- var MissingRequiredParameterException;
121
- (function (MissingRequiredParameterException) {
122
- MissingRequiredParameterException.filterSensitiveLog = (obj) => ({
123
- ...obj,
124
- });
125
- })(MissingRequiredParameterException = exports.MissingRequiredParameterException || (exports.MissingRequiredParameterException = {}));
126
- var ResourceNotFoundException;
127
- (function (ResourceNotFoundException) {
128
- ResourceNotFoundException.filterSensitiveLog = (obj) => ({
129
- ...obj,
130
- });
131
- })(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
132
118
  var DeleteDashboardsInput;
133
119
  (function (DeleteDashboardsInput) {
134
120
  DeleteDashboardsInput.filterSensitiveLog = (obj) => ({
@@ -182,36 +168,12 @@ var DescribeAlarmHistoryOutput;
182
168
  ...obj,
183
169
  });
184
170
  })(DescribeAlarmHistoryOutput = exports.DescribeAlarmHistoryOutput || (exports.DescribeAlarmHistoryOutput = {}));
185
- var InvalidNextToken;
186
- (function (InvalidNextToken) {
187
- InvalidNextToken.filterSensitiveLog = (obj) => ({
188
- ...obj,
189
- });
190
- })(InvalidNextToken = exports.InvalidNextToken || (exports.InvalidNextToken = {}));
191
171
  var DescribeAlarmsInput;
192
172
  (function (DescribeAlarmsInput) {
193
173
  DescribeAlarmsInput.filterSensitiveLog = (obj) => ({
194
174
  ...obj,
195
175
  });
196
176
  })(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
177
  var MetricAlarm;
216
178
  (function (MetricAlarm) {
217
179
  MetricAlarm.filterSensitiveLog = (obj) => ({
@@ -308,12 +270,6 @@ var EnableInsightRulesOutput;
308
270
  ...obj,
309
271
  });
310
272
  })(EnableInsightRulesOutput = exports.EnableInsightRulesOutput || (exports.EnableInsightRulesOutput = {}));
311
- var LimitExceededException;
312
- (function (LimitExceededException) {
313
- LimitExceededException.filterSensitiveLog = (obj) => ({
314
- ...obj,
315
- });
316
- })(LimitExceededException = exports.LimitExceededException || (exports.LimitExceededException = {}));
317
273
  var GetDashboardInput;
318
274
  (function (GetDashboardInput) {
319
275
  GetDashboardInput.filterSensitiveLog = (obj) => ({
@@ -404,12 +360,6 @@ var GetMetricStatisticsOutput;
404
360
  ...obj,
405
361
  });
406
362
  })(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
363
  var GetMetricStreamInput;
414
364
  (function (GetMetricStreamInput) {
415
365
  GetMetricStreamInput.filterSensitiveLog = (obj) => ({
@@ -521,12 +471,6 @@ var PutAnomalyDetectorOutput;
521
471
  ...obj,
522
472
  });
523
473
  })(PutAnomalyDetectorOutput = exports.PutAnomalyDetectorOutput || (exports.PutAnomalyDetectorOutput = {}));
524
- var LimitExceededFault;
525
- (function (LimitExceededFault) {
526
- LimitExceededFault.filterSensitiveLog = (obj) => ({
527
- ...obj,
528
- });
529
- })(LimitExceededFault = exports.LimitExceededFault || (exports.LimitExceededFault = {}));
530
474
  var PutCompositeAlarmInput;
531
475
  (function (PutCompositeAlarmInput) {
532
476
  PutCompositeAlarmInput.filterSensitiveLog = (obj) => ({
@@ -593,12 +537,6 @@ var PutMetricStreamOutput;
593
537
  ...obj,
594
538
  });
595
539
  })(PutMetricStreamOutput = exports.PutMetricStreamOutput || (exports.PutMetricStreamOutput = {}));
596
- var InvalidFormatFault;
597
- (function (InvalidFormatFault) {
598
- InvalidFormatFault.filterSensitiveLog = (obj) => ({
599
- ...obj,
600
- });
601
- })(InvalidFormatFault = exports.InvalidFormatFault || (exports.InvalidFormatFault = {}));
602
540
  var SetAlarmStateInput;
603
541
  (function (SetAlarmStateInput) {
604
542
  SetAlarmStateInput.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;
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
13
13
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
14
14
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
15
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
17
+ const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
16
18
  const getRuntimeConfig = (config) => {
17
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
+ const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
21
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
18
22
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
19
23
  return {
20
24
  ...clientSharedValues,
21
25
  ...config,
22
26
  runtime: "browser",
27
+ defaultsMode,
23
28
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
24
29
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
25
30
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
27
32
  defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
28
33
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
29
34
  region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
30
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
31
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
35
+ requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
32
37
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
33
38
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
34
39
  useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
@@ -16,14 +16,17 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
16
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
19
+ const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
19
20
  const getRuntimeConfig = (config) => {
20
21
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
21
- smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
22
+ const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
23
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
22
24
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
23
25
  return {
24
26
  ...clientSharedValues,
25
27
  ...config,
26
28
  runtime: "node",
29
+ defaultsMode,
27
30
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
28
31
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
29
32
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
@@ -31,8 +34,11 @@ const getRuntimeConfig = (config) => {
31
34
  defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
32
35
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
33
36
  region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
34
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
35
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
37
+ requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
38
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
39
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
40
+ default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
41
+ }),
36
42
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
37
43
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
38
44
  useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),