@aws-sdk/client-cloudwatch 3.39.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.
Files changed (59) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/dist-cjs/endpoints.js +140 -23
  3. package/dist-cjs/models/models_0.js +44 -27
  4. package/dist-cjs/protocols/Aws_query.js +146 -0
  5. package/dist-cjs/runtimeConfig.browser.js +6 -3
  6. package/dist-cjs/runtimeConfig.js +5 -3
  7. package/dist-es/endpoints.js +140 -23
  8. package/dist-es/models/models_0.js +29 -16
  9. package/dist-es/protocols/Aws_query.js +322 -158
  10. package/dist-es/runtimeConfig.browser.js +3 -2
  11. package/dist-es/runtimeConfig.js +3 -3
  12. package/dist-types/CloudWatch.d.ts +19 -5
  13. package/dist-types/CloudWatchClient.d.ts +8 -0
  14. package/dist-types/commands/DeleteAlarmsCommand.d.ts +1 -1
  15. package/dist-types/commands/DeleteAnomalyDetectorCommand.d.ts +1 -1
  16. package/dist-types/commands/DeleteDashboardsCommand.d.ts +1 -1
  17. package/dist-types/commands/DeleteInsightRulesCommand.d.ts +1 -1
  18. package/dist-types/commands/DeleteMetricStreamCommand.d.ts +1 -1
  19. package/dist-types/commands/DescribeAlarmHistoryCommand.d.ts +4 -1
  20. package/dist-types/commands/DescribeAlarmsCommand.d.ts +4 -1
  21. package/dist-types/commands/DescribeAlarmsForMetricCommand.d.ts +1 -1
  22. package/dist-types/commands/DescribeAnomalyDetectorsCommand.d.ts +8 -4
  23. package/dist-types/commands/DescribeInsightRulesCommand.d.ts +1 -1
  24. package/dist-types/commands/DisableAlarmActionsCommand.d.ts +1 -1
  25. package/dist-types/commands/DisableInsightRulesCommand.d.ts +1 -1
  26. package/dist-types/commands/EnableAlarmActionsCommand.d.ts +1 -1
  27. package/dist-types/commands/EnableInsightRulesCommand.d.ts +1 -1
  28. package/dist-types/commands/GetDashboardCommand.d.ts +1 -1
  29. package/dist-types/commands/GetInsightRuleReportCommand.d.ts +1 -1
  30. package/dist-types/commands/GetMetricDataCommand.d.ts +1 -1
  31. package/dist-types/commands/GetMetricStatisticsCommand.d.ts +1 -1
  32. package/dist-types/commands/GetMetricStreamCommand.d.ts +1 -1
  33. package/dist-types/commands/GetMetricWidgetImageCommand.d.ts +1 -1
  34. package/dist-types/commands/ListDashboardsCommand.d.ts +1 -1
  35. package/dist-types/commands/ListMetricStreamsCommand.d.ts +1 -1
  36. package/dist-types/commands/ListMetricsCommand.d.ts +1 -1
  37. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  38. package/dist-types/commands/PutAnomalyDetectorCommand.d.ts +1 -1
  39. package/dist-types/commands/PutCompositeAlarmCommand.d.ts +5 -1
  40. package/dist-types/commands/PutDashboardCommand.d.ts +1 -1
  41. package/dist-types/commands/PutInsightRuleCommand.d.ts +1 -1
  42. package/dist-types/commands/PutMetricAlarmCommand.d.ts +2 -2
  43. package/dist-types/commands/PutMetricDataCommand.d.ts +1 -1
  44. package/dist-types/commands/PutMetricStreamCommand.d.ts +2 -2
  45. package/dist-types/commands/SetAlarmStateCommand.d.ts +1 -1
  46. package/dist-types/commands/StartMetricStreamsCommand.d.ts +1 -1
  47. package/dist-types/commands/StopMetricStreamsCommand.d.ts +1 -1
  48. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  49. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  50. package/dist-types/models/models_0.d.ts +432 -189
  51. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  52. package/dist-types/runtimeConfig.d.ts +2 -0
  53. package/dist-types/runtimeConfig.native.d.ts +2 -0
  54. package/dist-types/ts3.4/CloudWatchClient.d.ts +4 -0
  55. package/dist-types/ts3.4/models/models_0.d.ts +109 -67
  56. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  57. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  58. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  59. package/package.json +24 -24
package/CHANGELOG.md CHANGED
@@ -3,6 +3,50 @@
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
+
17
+ # [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **clients:** merge default variants by comparing tags ([#3044](https://github.com/aws/aws-sdk-js-v3/issues/3044)) ([d65a310](https://github.com/aws/aws-sdk-js-v3/commit/d65a310ed5a471e72633a18ae6f3c98390e20783))
23
+
24
+
25
+
26
+
27
+
28
+ # [3.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
29
+
30
+
31
+ ### Features
32
+
33
+ * **clients:** update clients as of 2021/11/11 ([#3015](https://github.com/aws/aws-sdk-js-v3/issues/3015)) ([3d82c4e](https://github.com/aws/aws-sdk-js-v3/commit/3d82c4e3c4d174533f46ce35495cf5cffabdb35a))
34
+
35
+
36
+
37
+
38
+
39
+ # [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
40
+
41
+
42
+ ### Features
43
+
44
+ * **clients:** populate variants in endpoints hashes ([#2974](https://github.com/aws/aws-sdk-js-v3/issues/2974)) ([0dd68ef](https://github.com/aws/aws-sdk-js-v3/commit/0dd68ef8b04ea0e96e43b05a9a10221e433fdf86))
45
+
46
+
47
+
48
+
49
+
6
50
  # [3.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
7
51
 
8
52
  **Note:** Version bump only for package @aws-sdk/client-cloudwatch
@@ -3,29 +3,77 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultRegionInfoProvider = void 0;
4
4
  const config_resolver_1 = require("@aws-sdk/config-resolver");
5
5
  const regionHash = {
6
- "fips-us-east-1": {
7
- hostname: "monitoring-fips.us-east-1.amazonaws.com",
8
- signingRegion: "us-east-1",
6
+ "us-east-1": {
7
+ variants: [
8
+ {
9
+ hostname: "monitoring.us-east-1.amazonaws.com",
10
+ tags: [],
11
+ },
12
+ {
13
+ hostname: "monitoring-fips.us-east-1.amazonaws.com",
14
+ tags: ["fips"],
15
+ },
16
+ ],
9
17
  },
10
- "fips-us-east-2": {
11
- hostname: "monitoring-fips.us-east-2.amazonaws.com",
12
- signingRegion: "us-east-2",
18
+ "us-east-2": {
19
+ variants: [
20
+ {
21
+ hostname: "monitoring.us-east-2.amazonaws.com",
22
+ tags: [],
23
+ },
24
+ {
25
+ hostname: "monitoring-fips.us-east-2.amazonaws.com",
26
+ tags: ["fips"],
27
+ },
28
+ ],
13
29
  },
14
- "fips-us-gov-east-1": {
15
- hostname: "monitoring.us-gov-east-1.amazonaws.com",
16
- signingRegion: "us-gov-east-1",
30
+ "us-gov-east-1": {
31
+ variants: [
32
+ {
33
+ hostname: "monitoring.us-gov-east-1.amazonaws.com",
34
+ tags: [],
35
+ },
36
+ {
37
+ hostname: "monitoring.us-gov-east-1.amazonaws.com",
38
+ tags: ["fips"],
39
+ },
40
+ ],
17
41
  },
18
- "fips-us-gov-west-1": {
19
- hostname: "monitoring.us-gov-west-1.amazonaws.com",
20
- signingRegion: "us-gov-west-1",
42
+ "us-gov-west-1": {
43
+ variants: [
44
+ {
45
+ hostname: "monitoring.us-gov-west-1.amazonaws.com",
46
+ tags: [],
47
+ },
48
+ {
49
+ hostname: "monitoring.us-gov-west-1.amazonaws.com",
50
+ tags: ["fips"],
51
+ },
52
+ ],
21
53
  },
22
- "fips-us-west-1": {
23
- hostname: "monitoring-fips.us-west-1.amazonaws.com",
24
- signingRegion: "us-west-1",
54
+ "us-west-1": {
55
+ variants: [
56
+ {
57
+ hostname: "monitoring.us-west-1.amazonaws.com",
58
+ tags: [],
59
+ },
60
+ {
61
+ hostname: "monitoring-fips.us-west-1.amazonaws.com",
62
+ tags: ["fips"],
63
+ },
64
+ ],
25
65
  },
26
- "fips-us-west-2": {
27
- hostname: "monitoring-fips.us-west-2.amazonaws.com",
28
- signingRegion: "us-west-2",
66
+ "us-west-2": {
67
+ variants: [
68
+ {
69
+ hostname: "monitoring.us-west-2.amazonaws.com",
70
+ tags: [],
71
+ },
72
+ {
73
+ hostname: "monitoring-fips.us-west-2.amazonaws.com",
74
+ tags: ["fips"],
75
+ },
76
+ ],
29
77
  },
30
78
  };
31
79
  const partitionHash = {
@@ -58,27 +106,96 @@ const partitionHash = {
58
106
  "us-west-2",
59
107
  ],
60
108
  regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
61
- hostname: "monitoring.{region}.amazonaws.com",
109
+ variants: [
110
+ {
111
+ hostname: "monitoring.{region}.amazonaws.com",
112
+ tags: [],
113
+ },
114
+ {
115
+ hostname: "monitoring-fips.{region}.amazonaws.com",
116
+ tags: ["fips"],
117
+ },
118
+ {
119
+ hostname: "monitoring-fips.{region}.api.aws",
120
+ tags: ["dualstack", "fips"],
121
+ },
122
+ {
123
+ hostname: "monitoring.{region}.api.aws",
124
+ tags: ["dualstack"],
125
+ },
126
+ ],
62
127
  },
63
128
  "aws-cn": {
64
129
  regions: ["cn-north-1", "cn-northwest-1"],
65
130
  regionRegex: "^cn\\-\\w+\\-\\d+$",
66
- hostname: "monitoring.{region}.amazonaws.com.cn",
131
+ variants: [
132
+ {
133
+ hostname: "monitoring.{region}.amazonaws.com.cn",
134
+ tags: [],
135
+ },
136
+ {
137
+ hostname: "monitoring-fips.{region}.amazonaws.com.cn",
138
+ tags: ["fips"],
139
+ },
140
+ {
141
+ hostname: "monitoring-fips.{region}.api.amazonwebservices.com.cn",
142
+ tags: ["dualstack", "fips"],
143
+ },
144
+ {
145
+ hostname: "monitoring.{region}.api.amazonwebservices.com.cn",
146
+ tags: ["dualstack"],
147
+ },
148
+ ],
67
149
  },
68
150
  "aws-iso": {
69
151
  regions: ["us-iso-east-1", "us-iso-west-1"],
70
152
  regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
71
- hostname: "monitoring.{region}.c2s.ic.gov",
153
+ variants: [
154
+ {
155
+ hostname: "monitoring.{region}.c2s.ic.gov",
156
+ tags: [],
157
+ },
158
+ {
159
+ hostname: "monitoring-fips.{region}.c2s.ic.gov",
160
+ tags: ["fips"],
161
+ },
162
+ ],
72
163
  },
73
164
  "aws-iso-b": {
74
165
  regions: ["us-isob-east-1"],
75
166
  regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
76
- hostname: "monitoring.{region}.sc2s.sgov.gov",
167
+ variants: [
168
+ {
169
+ hostname: "monitoring.{region}.sc2s.sgov.gov",
170
+ tags: [],
171
+ },
172
+ {
173
+ hostname: "monitoring-fips.{region}.sc2s.sgov.gov",
174
+ tags: ["fips"],
175
+ },
176
+ ],
77
177
  },
78
178
  "aws-us-gov": {
79
179
  regions: ["fips-us-gov-east-1", "fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
80
180
  regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
81
- hostname: "monitoring.{region}.amazonaws.com",
181
+ variants: [
182
+ {
183
+ hostname: "monitoring.{region}.amazonaws.com",
184
+ tags: [],
185
+ },
186
+ {
187
+ hostname: "monitoring.{region}.amazonaws.com",
188
+ tags: ["fips"],
189
+ },
190
+ {
191
+ hostname: "monitoring-fips.{region}.api.aws",
192
+ tags: ["dualstack", "fips"],
193
+ },
194
+ {
195
+ hostname: "monitoring.{region}.api.aws",
196
+ tags: ["dualstack"],
197
+ },
198
+ ],
82
199
  },
83
200
  };
84
201
  const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {
@@ -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;
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
+ const config_resolver_1 = require("@aws-sdk/config-resolver");
7
8
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
8
9
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
9
10
  const middleware_retry_1 = require("@aws-sdk/middleware-retry");
@@ -13,7 +14,7 @@ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
13
14
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
14
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
15
16
  const getRuntimeConfig = (config) => {
16
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
17
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
18
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
18
19
  return {
19
20
  ...clientSharedValues,
@@ -30,8 +31,10 @@ const getRuntimeConfig = (config) => {
30
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)),
31
32
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
32
33
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
33
- utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : util_utf8_browser_1.fromUtf8,
34
- utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : util_utf8_browser_1.toUtf8,
34
+ 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)),
35
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
36
+ utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
37
+ utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
35
38
  };
36
39
  };
37
40
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -17,7 +17,7 @@ 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
19
  const getRuntimeConfig = (config) => {
20
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
20
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
21
21
  smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
22
22
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
23
23
  return {
@@ -35,8 +35,10 @@ const getRuntimeConfig = (config) => {
35
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),
36
36
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
37
37
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
38
- utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : util_utf8_node_1.fromUtf8,
39
- utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : util_utf8_node_1.toUtf8,
38
+ 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),
39
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
40
+ utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
41
+ utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
40
42
  };
41
43
  };
42
44
  exports.getRuntimeConfig = getRuntimeConfig;