@aws-sdk/client-backup-gateway 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-backup-gateway
package/dist-cjs/index.js CHANGED
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BackupGatewayServiceException = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  tslib_1.__exportStar(require("./BackupGateway"), exports);
5
6
  tslib_1.__exportStar(require("./BackupGatewayClient"), 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 BackupGatewayServiceException_1 = require("./models/BackupGatewayServiceException");
11
+ Object.defineProperty(exports, "BackupGatewayServiceException", { enumerable: true, get: function () { return BackupGatewayServiceException_1.BackupGatewayServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BackupGatewayServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class BackupGatewayServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, BackupGatewayServiceException.prototype);
9
+ }
10
+ }
11
+ exports.BackupGatewayServiceException = BackupGatewayServiceException;
@@ -1,7 +1,23 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UntagResourceOutput = exports.UntagResourceInput = exports.TagResourceOutput = exports.TagResourceInput = exports.ListVirtualMachinesOutput = exports.VirtualMachine = exports.ListVirtualMachinesInput = exports.ListTagsForResourceOutput = exports.ListTagsForResourceInput = exports.UpdateHypervisorOutput = exports.UpdateHypervisorInput = exports.ListHypervisorsOutput = exports.Hypervisor = exports.HypervisorState = exports.ListHypervisorsInput = exports.ImportHypervisorConfigurationOutput = exports.ImportHypervisorConfigurationInput = exports.DeleteHypervisorOutput = exports.DeleteHypervisorInput = exports.UpdateGatewayInformationOutput = exports.UpdateGatewayInformationInput = exports.TestHypervisorConfigurationOutput = exports.TestHypervisorConfigurationInput = exports.PutMaintenanceStartTimeOutput = exports.PutMaintenanceStartTimeInput = exports.ListGatewaysOutput = exports.Gateway = exports.ListGatewaysInput = exports.DisassociateGatewayFromServerOutput = exports.DisassociateGatewayFromServerInput = exports.DeleteGatewayOutput = exports.DeleteGatewayInput = exports.CreateGatewayOutput = exports.CreateGatewayInput = exports.Tag = exports.GatewayType = exports.AssociateGatewayToServerOutput = exports.AssociateGatewayToServerInput = void 0;
3
+ exports.UntagResourceOutput = exports.UntagResourceInput = exports.TagResourceOutput = exports.TagResourceInput = exports.ListVirtualMachinesOutput = exports.VirtualMachine = exports.ListVirtualMachinesInput = exports.ListTagsForResourceOutput = exports.ListTagsForResourceInput = exports.UpdateHypervisorOutput = exports.UpdateHypervisorInput = exports.ListHypervisorsOutput = exports.Hypervisor = exports.HypervisorState = exports.ListHypervisorsInput = exports.ImportHypervisorConfigurationOutput = exports.ImportHypervisorConfigurationInput = exports.DeleteHypervisorOutput = exports.DeleteHypervisorInput = exports.UpdateGatewayInformationOutput = exports.UpdateGatewayInformationInput = exports.TestHypervisorConfigurationOutput = exports.TestHypervisorConfigurationInput = exports.PutMaintenanceStartTimeOutput = exports.PutMaintenanceStartTimeInput = exports.ListGatewaysOutput = exports.Gateway = exports.ListGatewaysInput = exports.DisassociateGatewayFromServerOutput = exports.DisassociateGatewayFromServerInput = exports.ResourceNotFoundException = exports.DeleteGatewayOutput = exports.DeleteGatewayInput = exports.CreateGatewayOutput = exports.CreateGatewayInput = exports.Tag = exports.GatewayType = exports.ValidationException = exports.InternalServerException = exports.ConflictException = exports.AssociateGatewayToServerOutput = exports.AssociateGatewayToServerInput = exports.AccessDeniedException = void 0;
4
4
  const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ const BackupGatewayServiceException_1 = require("./BackupGatewayServiceException");
6
+ class AccessDeniedException extends BackupGatewayServiceException_1.BackupGatewayServiceException {
7
+ constructor(opts) {
8
+ super({
9
+ name: "AccessDeniedException",
10
+ $fault: "client",
11
+ ...opts,
12
+ });
13
+ this.name = "AccessDeniedException";
14
+ this.$fault = "client";
15
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
16
+ this.ErrorCode = opts.ErrorCode;
17
+ this.Message = opts.Message;
18
+ }
19
+ }
20
+ exports.AccessDeniedException = AccessDeniedException;
5
21
  var AssociateGatewayToServerInput;
6
22
  (function (AssociateGatewayToServerInput) {
7
23
  AssociateGatewayToServerInput.filterSensitiveLog = (obj) => ({
@@ -14,6 +30,51 @@ var AssociateGatewayToServerOutput;
14
30
  ...obj,
15
31
  });
16
32
  })(AssociateGatewayToServerOutput = exports.AssociateGatewayToServerOutput || (exports.AssociateGatewayToServerOutput = {}));
33
+ class ConflictException extends BackupGatewayServiceException_1.BackupGatewayServiceException {
34
+ constructor(opts) {
35
+ super({
36
+ name: "ConflictException",
37
+ $fault: "client",
38
+ ...opts,
39
+ });
40
+ this.name = "ConflictException";
41
+ this.$fault = "client";
42
+ Object.setPrototypeOf(this, ConflictException.prototype);
43
+ this.ErrorCode = opts.ErrorCode;
44
+ this.Message = opts.Message;
45
+ }
46
+ }
47
+ exports.ConflictException = ConflictException;
48
+ class InternalServerException extends BackupGatewayServiceException_1.BackupGatewayServiceException {
49
+ constructor(opts) {
50
+ super({
51
+ name: "InternalServerException",
52
+ $fault: "server",
53
+ ...opts,
54
+ });
55
+ this.name = "InternalServerException";
56
+ this.$fault = "server";
57
+ Object.setPrototypeOf(this, InternalServerException.prototype);
58
+ this.ErrorCode = opts.ErrorCode;
59
+ this.Message = opts.Message;
60
+ }
61
+ }
62
+ exports.InternalServerException = InternalServerException;
63
+ class ValidationException extends BackupGatewayServiceException_1.BackupGatewayServiceException {
64
+ constructor(opts) {
65
+ super({
66
+ name: "ValidationException",
67
+ $fault: "client",
68
+ ...opts,
69
+ });
70
+ this.name = "ValidationException";
71
+ this.$fault = "client";
72
+ Object.setPrototypeOf(this, ValidationException.prototype);
73
+ this.ErrorCode = opts.ErrorCode;
74
+ this.Message = opts.Message;
75
+ }
76
+ }
77
+ exports.ValidationException = ValidationException;
17
78
  var GatewayType;
18
79
  (function (GatewayType) {
19
80
  GatewayType["BACKUP_VM"] = "BACKUP_VM";
@@ -48,6 +109,21 @@ var DeleteGatewayOutput;
48
109
  ...obj,
49
110
  });
50
111
  })(DeleteGatewayOutput = exports.DeleteGatewayOutput || (exports.DeleteGatewayOutput = {}));
112
+ class ResourceNotFoundException extends BackupGatewayServiceException_1.BackupGatewayServiceException {
113
+ constructor(opts) {
114
+ super({
115
+ name: "ResourceNotFoundException",
116
+ $fault: "client",
117
+ ...opts,
118
+ });
119
+ this.name = "ResourceNotFoundException";
120
+ this.$fault = "client";
121
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
122
+ this.ErrorCode = opts.ErrorCode;
123
+ this.Message = opts.Message;
124
+ }
125
+ }
126
+ exports.ResourceNotFoundException = ResourceNotFoundException;
51
127
  var DisassociateGatewayFromServerInput;
52
128
  (function (DisassociateGatewayFromServerInput) {
53
129
  DisassociateGatewayFromServerInput.filterSensitiveLog = (obj) => ({