@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
@@ -1,29 +1,77 @@
1
1
  import { __assign, __awaiter, __generator } from "tslib";
2
2
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
3
  var regionHash = {
4
- "fips-us-east-1": {
5
- hostname: "monitoring-fips.us-east-1.amazonaws.com",
6
- signingRegion: "us-east-1",
4
+ "us-east-1": {
5
+ variants: [
6
+ {
7
+ hostname: "monitoring.us-east-1.amazonaws.com",
8
+ tags: [],
9
+ },
10
+ {
11
+ hostname: "monitoring-fips.us-east-1.amazonaws.com",
12
+ tags: ["fips"],
13
+ },
14
+ ],
7
15
  },
8
- "fips-us-east-2": {
9
- hostname: "monitoring-fips.us-east-2.amazonaws.com",
10
- signingRegion: "us-east-2",
16
+ "us-east-2": {
17
+ variants: [
18
+ {
19
+ hostname: "monitoring.us-east-2.amazonaws.com",
20
+ tags: [],
21
+ },
22
+ {
23
+ hostname: "monitoring-fips.us-east-2.amazonaws.com",
24
+ tags: ["fips"],
25
+ },
26
+ ],
11
27
  },
12
- "fips-us-gov-east-1": {
13
- hostname: "monitoring.us-gov-east-1.amazonaws.com",
14
- signingRegion: "us-gov-east-1",
28
+ "us-gov-east-1": {
29
+ variants: [
30
+ {
31
+ hostname: "monitoring.us-gov-east-1.amazonaws.com",
32
+ tags: [],
33
+ },
34
+ {
35
+ hostname: "monitoring.us-gov-east-1.amazonaws.com",
36
+ tags: ["fips"],
37
+ },
38
+ ],
15
39
  },
16
- "fips-us-gov-west-1": {
17
- hostname: "monitoring.us-gov-west-1.amazonaws.com",
18
- signingRegion: "us-gov-west-1",
40
+ "us-gov-west-1": {
41
+ variants: [
42
+ {
43
+ hostname: "monitoring.us-gov-west-1.amazonaws.com",
44
+ tags: [],
45
+ },
46
+ {
47
+ hostname: "monitoring.us-gov-west-1.amazonaws.com",
48
+ tags: ["fips"],
49
+ },
50
+ ],
19
51
  },
20
- "fips-us-west-1": {
21
- hostname: "monitoring-fips.us-west-1.amazonaws.com",
22
- signingRegion: "us-west-1",
52
+ "us-west-1": {
53
+ variants: [
54
+ {
55
+ hostname: "monitoring.us-west-1.amazonaws.com",
56
+ tags: [],
57
+ },
58
+ {
59
+ hostname: "monitoring-fips.us-west-1.amazonaws.com",
60
+ tags: ["fips"],
61
+ },
62
+ ],
23
63
  },
24
- "fips-us-west-2": {
25
- hostname: "monitoring-fips.us-west-2.amazonaws.com",
26
- signingRegion: "us-west-2",
64
+ "us-west-2": {
65
+ variants: [
66
+ {
67
+ hostname: "monitoring.us-west-2.amazonaws.com",
68
+ tags: [],
69
+ },
70
+ {
71
+ hostname: "monitoring-fips.us-west-2.amazonaws.com",
72
+ tags: ["fips"],
73
+ },
74
+ ],
27
75
  },
28
76
  };
29
77
  var partitionHash = {
@@ -56,27 +104,96 @@ var partitionHash = {
56
104
  "us-west-2",
57
105
  ],
58
106
  regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
59
- hostname: "monitoring.{region}.amazonaws.com",
107
+ variants: [
108
+ {
109
+ hostname: "monitoring.{region}.amazonaws.com",
110
+ tags: [],
111
+ },
112
+ {
113
+ hostname: "monitoring-fips.{region}.amazonaws.com",
114
+ tags: ["fips"],
115
+ },
116
+ {
117
+ hostname: "monitoring-fips.{region}.api.aws",
118
+ tags: ["dualstack", "fips"],
119
+ },
120
+ {
121
+ hostname: "monitoring.{region}.api.aws",
122
+ tags: ["dualstack"],
123
+ },
124
+ ],
60
125
  },
61
126
  "aws-cn": {
62
127
  regions: ["cn-north-1", "cn-northwest-1"],
63
128
  regionRegex: "^cn\\-\\w+\\-\\d+$",
64
- hostname: "monitoring.{region}.amazonaws.com.cn",
129
+ variants: [
130
+ {
131
+ hostname: "monitoring.{region}.amazonaws.com.cn",
132
+ tags: [],
133
+ },
134
+ {
135
+ hostname: "monitoring-fips.{region}.amazonaws.com.cn",
136
+ tags: ["fips"],
137
+ },
138
+ {
139
+ hostname: "monitoring-fips.{region}.api.amazonwebservices.com.cn",
140
+ tags: ["dualstack", "fips"],
141
+ },
142
+ {
143
+ hostname: "monitoring.{region}.api.amazonwebservices.com.cn",
144
+ tags: ["dualstack"],
145
+ },
146
+ ],
65
147
  },
66
148
  "aws-iso": {
67
149
  regions: ["us-iso-east-1", "us-iso-west-1"],
68
150
  regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
69
- hostname: "monitoring.{region}.c2s.ic.gov",
151
+ variants: [
152
+ {
153
+ hostname: "monitoring.{region}.c2s.ic.gov",
154
+ tags: [],
155
+ },
156
+ {
157
+ hostname: "monitoring-fips.{region}.c2s.ic.gov",
158
+ tags: ["fips"],
159
+ },
160
+ ],
70
161
  },
71
162
  "aws-iso-b": {
72
163
  regions: ["us-isob-east-1"],
73
164
  regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
74
- hostname: "monitoring.{region}.sc2s.sgov.gov",
165
+ variants: [
166
+ {
167
+ hostname: "monitoring.{region}.sc2s.sgov.gov",
168
+ tags: [],
169
+ },
170
+ {
171
+ hostname: "monitoring-fips.{region}.sc2s.sgov.gov",
172
+ tags: ["fips"],
173
+ },
174
+ ],
75
175
  },
76
176
  "aws-us-gov": {
77
177
  regions: ["fips-us-gov-east-1", "fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
78
178
  regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
79
- hostname: "monitoring.{region}.amazonaws.com",
179
+ variants: [
180
+ {
181
+ hostname: "monitoring.{region}.amazonaws.com",
182
+ tags: [],
183
+ },
184
+ {
185
+ hostname: "monitoring.{region}.amazonaws.com",
186
+ tags: ["fips"],
187
+ },
188
+ {
189
+ hostname: "monitoring-fips.{region}.api.aws",
190
+ tags: ["dualstack", "fips"],
191
+ },
192
+ {
193
+ hostname: "monitoring.{region}.api.aws",
194
+ tags: ["dualstack"],
195
+ },
196
+ ],
80
197
  },
81
198
  };
82
199
  export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
@@ -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)); };