@aws-sdk/client-health 3.52.0 → 3.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
7
+
8
+
9
+ ### Features
10
+
11
+ * **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))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-health
package/dist-cjs/index.js CHANGED
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HealthServiceException = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  tslib_1.__exportStar(require("./Health"), exports);
5
6
  tslib_1.__exportStar(require("./HealthClient"), exports);
6
7
  tslib_1.__exportStar(require("./commands"), exports);
7
8
  tslib_1.__exportStar(require("./models"), exports);
8
9
  tslib_1.__exportStar(require("./pagination"), exports);
10
+ var HealthServiceException_1 = require("./models/HealthServiceException");
11
+ Object.defineProperty(exports, "HealthServiceException", { enumerable: true, get: function () { return HealthServiceException_1.HealthServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HealthServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class HealthServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, HealthServiceException.prototype);
9
+ }
10
+ }
11
+ exports.HealthServiceException = HealthServiceException;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DescribeHealthServiceStatusForOrganizationResponse = exports.DescribeEventTypesResponse = exports.EventType = exports.DescribeEventTypesRequest = exports.EventTypeFilter = exports.DescribeEventsForOrganizationResponse = exports.OrganizationEvent = exports.DescribeEventsForOrganizationRequest = exports.OrganizationEventFilter = exports.DescribeEventsResponse = exports.DescribeEventsRequest = exports.DescribeEventDetailsForOrganizationResponse = exports.OrganizationEventDetails = exports.OrganizationEventDetailsErrorItem = exports.DescribeEventDetailsForOrganizationRequest = exports.DescribeEventDetailsResponse = exports.EventDetails = exports.EventDescription = exports.Event = exports.EventDetailsErrorItem = exports.DescribeEventDetailsRequest = exports.DescribeEventAggregatesResponse = exports.EventAggregate = exports.DescribeEventAggregatesRequest = exports.EventFilter = exports.EventTypeCategory = exports.EventStatusCode = exports.EventAggregateField = exports.DescribeEntityAggregatesResponse = exports.EntityAggregate = exports.DescribeEntityAggregatesRequest = exports.DescribeAffectedEntitiesForOrganizationResponse = exports.OrganizationAffectedEntitiesErrorItem = exports.DescribeAffectedEntitiesForOrganizationRequest = exports.EventAccountFilter = exports.DescribeAffectedEntitiesResponse = exports.DescribeAffectedEntitiesRequest = exports.EntityFilter = exports.DateTimeRange = exports.DescribeAffectedAccountsForOrganizationResponse = exports.EventScopeCode = exports.DescribeAffectedAccountsForOrganizationRequest = exports.AffectedEntity = exports.EntityStatusCode = void 0;
3
+ exports.ConcurrentModificationException = exports.DescribeHealthServiceStatusForOrganizationResponse = exports.DescribeEventTypesResponse = exports.EventType = exports.DescribeEventTypesRequest = exports.EventTypeFilter = exports.DescribeEventsForOrganizationResponse = exports.OrganizationEvent = exports.DescribeEventsForOrganizationRequest = exports.OrganizationEventFilter = exports.DescribeEventsResponse = exports.DescribeEventsRequest = exports.DescribeEventDetailsForOrganizationResponse = exports.OrganizationEventDetails = exports.OrganizationEventDetailsErrorItem = exports.DescribeEventDetailsForOrganizationRequest = exports.DescribeEventDetailsResponse = exports.EventDetails = exports.EventDescription = exports.Event = exports.EventDetailsErrorItem = exports.DescribeEventDetailsRequest = exports.DescribeEventAggregatesResponse = exports.EventAggregate = exports.DescribeEventAggregatesRequest = exports.EventFilter = exports.EventTypeCategory = exports.EventStatusCode = exports.EventAggregateField = exports.DescribeEntityAggregatesResponse = exports.EntityAggregate = exports.DescribeEntityAggregatesRequest = exports.DescribeAffectedEntitiesForOrganizationResponse = exports.OrganizationAffectedEntitiesErrorItem = exports.DescribeAffectedEntitiesForOrganizationRequest = exports.EventAccountFilter = exports.UnsupportedLocale = exports.DescribeAffectedEntitiesResponse = exports.DescribeAffectedEntitiesRequest = exports.EntityFilter = exports.DateTimeRange = exports.InvalidPaginationToken = exports.DescribeAffectedAccountsForOrganizationResponse = exports.EventScopeCode = exports.DescribeAffectedAccountsForOrganizationRequest = exports.AffectedEntity = exports.EntityStatusCode = void 0;
4
+ const HealthServiceException_1 = require("./HealthServiceException");
4
5
  var EntityStatusCode;
5
6
  (function (EntityStatusCode) {
6
7
  EntityStatusCode["IMPAIRED"] = "IMPAIRED";
@@ -31,6 +32,19 @@ var DescribeAffectedAccountsForOrganizationResponse;
31
32
  ...obj,
32
33
  });
33
34
  })(DescribeAffectedAccountsForOrganizationResponse = exports.DescribeAffectedAccountsForOrganizationResponse || (exports.DescribeAffectedAccountsForOrganizationResponse = {}));
35
+ class InvalidPaginationToken extends HealthServiceException_1.HealthServiceException {
36
+ constructor(opts) {
37
+ super({
38
+ name: "InvalidPaginationToken",
39
+ $fault: "client",
40
+ ...opts,
41
+ });
42
+ this.name = "InvalidPaginationToken";
43
+ this.$fault = "client";
44
+ Object.setPrototypeOf(this, InvalidPaginationToken.prototype);
45
+ }
46
+ }
47
+ exports.InvalidPaginationToken = InvalidPaginationToken;
34
48
  var DateTimeRange;
35
49
  (function (DateTimeRange) {
36
50
  DateTimeRange.filterSensitiveLog = (obj) => ({
@@ -55,6 +69,19 @@ var DescribeAffectedEntitiesResponse;
55
69
  ...obj,
56
70
  });
57
71
  })(DescribeAffectedEntitiesResponse = exports.DescribeAffectedEntitiesResponse || (exports.DescribeAffectedEntitiesResponse = {}));
72
+ class UnsupportedLocale extends HealthServiceException_1.HealthServiceException {
73
+ constructor(opts) {
74
+ super({
75
+ name: "UnsupportedLocale",
76
+ $fault: "client",
77
+ ...opts,
78
+ });
79
+ this.name = "UnsupportedLocale";
80
+ this.$fault = "client";
81
+ Object.setPrototypeOf(this, UnsupportedLocale.prototype);
82
+ }
83
+ }
84
+ exports.UnsupportedLocale = UnsupportedLocale;
58
85
  var EventAccountFilter;
59
86
  (function (EventAccountFilter) {
60
87
  EventAccountFilter.filterSensitiveLog = (obj) => ({
@@ -264,3 +291,16 @@ var DescribeHealthServiceStatusForOrganizationResponse;
264
291
  ...obj,
265
292
  });
266
293
  })(DescribeHealthServiceStatusForOrganizationResponse = exports.DescribeHealthServiceStatusForOrganizationResponse || (exports.DescribeHealthServiceStatusForOrganizationResponse = {}));
294
+ class ConcurrentModificationException extends HealthServiceException_1.HealthServiceException {
295
+ constructor(opts) {
296
+ super({
297
+ name: "ConcurrentModificationException",
298
+ $fault: "client",
299
+ ...opts,
300
+ });
301
+ this.name = "ConcurrentModificationException";
302
+ this.$fault = "client";
303
+ Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
304
+ }
305
+ }
306
+ exports.ConcurrentModificationException = ConcurrentModificationException;