@aws-sdk/client-cloudwatch 3.52.0 → 3.54.1

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,33 @@
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.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-cloudwatch
9
+
10
+
11
+
12
+
13
+
14
+ # [3.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-cloudwatch
17
+
18
+
19
+
20
+
21
+
22
+ # [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
23
+
24
+
25
+ ### Features
26
+
27
+ * **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-cloudwatch
package/dist-cjs/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CloudWatchServiceException = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  tslib_1.__exportStar(require("./CloudWatch"), exports);
5
6
  tslib_1.__exportStar(require("./CloudWatchClient"), exports);
@@ -7,3 +8,5 @@ tslib_1.__exportStar(require("./commands"), exports);
7
8
  tslib_1.__exportStar(require("./models"), exports);
8
9
  tslib_1.__exportStar(require("./pagination"), exports);
9
10
  tslib_1.__exportStar(require("./waiters"), exports);
11
+ var CloudWatchServiceException_1 = require("./models/CloudWatchServiceException");
12
+ Object.defineProperty(exports, "CloudWatchServiceException", { enumerable: true, get: function () { return CloudWatchServiceException_1.CloudWatchServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CloudWatchServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class CloudWatchServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, CloudWatchServiceException.prototype);
9
+ }
10
+ }
11
+ exports.CloudWatchServiceException = CloudWatchServiceException;
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
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;
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
+ const CloudWatchServiceException_1 = require("./CloudWatchServiceException");
5
7
  var AlarmHistoryItem;
6
8
  (function (AlarmHistoryItem) {
7
9
  AlarmHistoryItem.filterSensitiveLog = (obj) => ({
@@ -79,6 +81,20 @@ var CompositeAlarm;
79
81
  ...obj,
80
82
  });
81
83
  })(CompositeAlarm = exports.CompositeAlarm || (exports.CompositeAlarm = {}));
84
+ class ConcurrentModificationException extends CloudWatchServiceException_1.CloudWatchServiceException {
85
+ constructor(opts) {
86
+ super({
87
+ name: "ConcurrentModificationException",
88
+ $fault: "client",
89
+ ...opts,
90
+ });
91
+ this.name = "ConcurrentModificationException";
92
+ this.$fault = "client";
93
+ Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
94
+ this.Message = opts.Message;
95
+ }
96
+ }
97
+ exports.ConcurrentModificationException = ConcurrentModificationException;
82
98
  var DashboardEntry;
83
99
  (function (DashboardEntry) {
84
100
  DashboardEntry.filterSensitiveLog = (obj) => ({
@@ -91,6 +107,33 @@ var DashboardValidationMessage;
91
107
  ...obj,
92
108
  });
93
109
  })(DashboardValidationMessage = exports.DashboardValidationMessage || (exports.DashboardValidationMessage = {}));
110
+ class DashboardInvalidInputError extends CloudWatchServiceException_1.CloudWatchServiceException {
111
+ constructor(opts) {
112
+ super({
113
+ name: "DashboardInvalidInputError",
114
+ $fault: "client",
115
+ ...opts,
116
+ });
117
+ this.name = "DashboardInvalidInputError";
118
+ this.$fault = "client";
119
+ Object.setPrototypeOf(this, DashboardInvalidInputError.prototype);
120
+ this.dashboardValidationMessages = opts.dashboardValidationMessages;
121
+ }
122
+ }
123
+ exports.DashboardInvalidInputError = DashboardInvalidInputError;
124
+ class DashboardNotFoundError extends CloudWatchServiceException_1.CloudWatchServiceException {
125
+ constructor(opts) {
126
+ super({
127
+ name: "DashboardNotFoundError",
128
+ $fault: "client",
129
+ ...opts,
130
+ });
131
+ this.name = "DashboardNotFoundError";
132
+ this.$fault = "client";
133
+ Object.setPrototypeOf(this, DashboardNotFoundError.prototype);
134
+ }
135
+ }
136
+ exports.DashboardNotFoundError = DashboardNotFoundError;
94
137
  var Datapoint;
95
138
  (function (Datapoint) {
96
139
  Datapoint.filterSensitiveLog = (obj) => ({
@@ -103,6 +146,19 @@ var DeleteAlarmsInput;
103
146
  ...obj,
104
147
  });
105
148
  })(DeleteAlarmsInput = exports.DeleteAlarmsInput || (exports.DeleteAlarmsInput = {}));
149
+ class ResourceNotFound extends CloudWatchServiceException_1.CloudWatchServiceException {
150
+ constructor(opts) {
151
+ super({
152
+ name: "ResourceNotFound",
153
+ $fault: "client",
154
+ ...opts,
155
+ });
156
+ this.name = "ResourceNotFound";
157
+ this.$fault = "client";
158
+ Object.setPrototypeOf(this, ResourceNotFound.prototype);
159
+ }
160
+ }
161
+ exports.ResourceNotFound = ResourceNotFound;
106
162
  var DeleteAnomalyDetectorInput;
107
163
  (function (DeleteAnomalyDetectorInput) {
108
164
  DeleteAnomalyDetectorInput.filterSensitiveLog = (obj) => ({
@@ -115,6 +171,75 @@ var DeleteAnomalyDetectorOutput;
115
171
  ...obj,
116
172
  });
117
173
  })(DeleteAnomalyDetectorOutput = exports.DeleteAnomalyDetectorOutput || (exports.DeleteAnomalyDetectorOutput = {}));
174
+ class InternalServiceFault extends CloudWatchServiceException_1.CloudWatchServiceException {
175
+ constructor(opts) {
176
+ super({
177
+ name: "InternalServiceFault",
178
+ $fault: "server",
179
+ ...opts,
180
+ });
181
+ this.name = "InternalServiceFault";
182
+ this.$fault = "server";
183
+ Object.setPrototypeOf(this, InternalServiceFault.prototype);
184
+ this.Message = opts.Message;
185
+ }
186
+ }
187
+ exports.InternalServiceFault = InternalServiceFault;
188
+ class InvalidParameterCombinationException extends CloudWatchServiceException_1.CloudWatchServiceException {
189
+ constructor(opts) {
190
+ super({
191
+ name: "InvalidParameterCombinationException",
192
+ $fault: "client",
193
+ ...opts,
194
+ });
195
+ this.name = "InvalidParameterCombinationException";
196
+ this.$fault = "client";
197
+ Object.setPrototypeOf(this, InvalidParameterCombinationException.prototype);
198
+ }
199
+ }
200
+ exports.InvalidParameterCombinationException = InvalidParameterCombinationException;
201
+ class InvalidParameterValueException extends CloudWatchServiceException_1.CloudWatchServiceException {
202
+ constructor(opts) {
203
+ super({
204
+ name: "InvalidParameterValueException",
205
+ $fault: "client",
206
+ ...opts,
207
+ });
208
+ this.name = "InvalidParameterValueException";
209
+ this.$fault = "client";
210
+ Object.setPrototypeOf(this, InvalidParameterValueException.prototype);
211
+ }
212
+ }
213
+ exports.InvalidParameterValueException = InvalidParameterValueException;
214
+ class MissingRequiredParameterException extends CloudWatchServiceException_1.CloudWatchServiceException {
215
+ constructor(opts) {
216
+ super({
217
+ name: "MissingRequiredParameterException",
218
+ $fault: "client",
219
+ ...opts,
220
+ });
221
+ this.name = "MissingRequiredParameterException";
222
+ this.$fault = "client";
223
+ Object.setPrototypeOf(this, MissingRequiredParameterException.prototype);
224
+ }
225
+ }
226
+ exports.MissingRequiredParameterException = MissingRequiredParameterException;
227
+ class ResourceNotFoundException extends CloudWatchServiceException_1.CloudWatchServiceException {
228
+ constructor(opts) {
229
+ super({
230
+ name: "ResourceNotFoundException",
231
+ $fault: "client",
232
+ ...opts,
233
+ });
234
+ this.name = "ResourceNotFoundException";
235
+ this.$fault = "client";
236
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
237
+ this.ResourceType = opts.ResourceType;
238
+ this.ResourceId = opts.ResourceId;
239
+ this.Message = opts.Message;
240
+ }
241
+ }
242
+ exports.ResourceNotFoundException = ResourceNotFoundException;
118
243
  var DeleteDashboardsInput;
119
244
  (function (DeleteDashboardsInput) {
120
245
  DeleteDashboardsInput.filterSensitiveLog = (obj) => ({
@@ -168,6 +293,19 @@ var DescribeAlarmHistoryOutput;
168
293
  ...obj,
169
294
  });
170
295
  })(DescribeAlarmHistoryOutput = exports.DescribeAlarmHistoryOutput || (exports.DescribeAlarmHistoryOutput = {}));
296
+ class InvalidNextToken extends CloudWatchServiceException_1.CloudWatchServiceException {
297
+ constructor(opts) {
298
+ super({
299
+ name: "InvalidNextToken",
300
+ $fault: "client",
301
+ ...opts,
302
+ });
303
+ this.name = "InvalidNextToken";
304
+ this.$fault = "client";
305
+ Object.setPrototypeOf(this, InvalidNextToken.prototype);
306
+ }
307
+ }
308
+ exports.InvalidNextToken = InvalidNextToken;
171
309
  var DescribeAlarmsInput;
172
310
  (function (DescribeAlarmsInput) {
173
311
  DescribeAlarmsInput.filterSensitiveLog = (obj) => ({
@@ -270,6 +408,20 @@ var EnableInsightRulesOutput;
270
408
  ...obj,
271
409
  });
272
410
  })(EnableInsightRulesOutput = exports.EnableInsightRulesOutput || (exports.EnableInsightRulesOutput = {}));
411
+ class LimitExceededException extends CloudWatchServiceException_1.CloudWatchServiceException {
412
+ constructor(opts) {
413
+ super({
414
+ name: "LimitExceededException",
415
+ $fault: "client",
416
+ ...opts,
417
+ });
418
+ this.name = "LimitExceededException";
419
+ this.$fault = "client";
420
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
421
+ this.Message = opts.Message;
422
+ }
423
+ }
424
+ exports.LimitExceededException = LimitExceededException;
273
425
  var GetDashboardInput;
274
426
  (function (GetDashboardInput) {
275
427
  GetDashboardInput.filterSensitiveLog = (obj) => ({
@@ -471,6 +623,19 @@ var PutAnomalyDetectorOutput;
471
623
  ...obj,
472
624
  });
473
625
  })(PutAnomalyDetectorOutput = exports.PutAnomalyDetectorOutput || (exports.PutAnomalyDetectorOutput = {}));
626
+ class LimitExceededFault extends CloudWatchServiceException_1.CloudWatchServiceException {
627
+ constructor(opts) {
628
+ super({
629
+ name: "LimitExceededFault",
630
+ $fault: "client",
631
+ ...opts,
632
+ });
633
+ this.name = "LimitExceededFault";
634
+ this.$fault = "client";
635
+ Object.setPrototypeOf(this, LimitExceededFault.prototype);
636
+ }
637
+ }
638
+ exports.LimitExceededFault = LimitExceededFault;
474
639
  var PutCompositeAlarmInput;
475
640
  (function (PutCompositeAlarmInput) {
476
641
  PutCompositeAlarmInput.filterSensitiveLog = (obj) => ({
@@ -537,6 +702,19 @@ var PutMetricStreamOutput;
537
702
  ...obj,
538
703
  });
539
704
  })(PutMetricStreamOutput = exports.PutMetricStreamOutput || (exports.PutMetricStreamOutput = {}));
705
+ class InvalidFormatFault extends CloudWatchServiceException_1.CloudWatchServiceException {
706
+ constructor(opts) {
707
+ super({
708
+ name: "InvalidFormatFault",
709
+ $fault: "client",
710
+ ...opts,
711
+ });
712
+ this.name = "InvalidFormatFault";
713
+ this.$fault = "client";
714
+ Object.setPrototypeOf(this, InvalidFormatFault.prototype);
715
+ }
716
+ }
717
+ exports.InvalidFormatFault = InvalidFormatFault;
540
718
  var SetAlarmStateInput;
541
719
  (function (SetAlarmStateInput) {
542
720
  SetAlarmStateInput.filterSensitiveLog = (obj) => ({