@aws-sdk/client-backup 3.987.0 → 3.989.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.
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BackupServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class BackupServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, BackupServiceException.prototype);
10
+ }
11
+ }
12
+ exports.BackupServiceException = BackupServiceException;
@@ -0,0 +1,218 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DependencyFailureException = exports.LimitExceededException = exports.ConflictException = exports.InvalidResourceStateException = exports.ServiceUnavailableException = exports.ResourceNotFoundException = exports.MissingParameterValueException = exports.InvalidRequestException = exports.InvalidParameterValueException = exports.AlreadyExistsException = void 0;
4
+ const BackupServiceException_1 = require("./BackupServiceException");
5
+ class AlreadyExistsException extends BackupServiceException_1.BackupServiceException {
6
+ name = "AlreadyExistsException";
7
+ $fault = "client";
8
+ Code;
9
+ Message;
10
+ CreatorRequestId;
11
+ Arn;
12
+ Type;
13
+ Context;
14
+ constructor(opts) {
15
+ super({
16
+ name: "AlreadyExistsException",
17
+ $fault: "client",
18
+ ...opts,
19
+ });
20
+ Object.setPrototypeOf(this, AlreadyExistsException.prototype);
21
+ this.Code = opts.Code;
22
+ this.Message = opts.Message;
23
+ this.CreatorRequestId = opts.CreatorRequestId;
24
+ this.Arn = opts.Arn;
25
+ this.Type = opts.Type;
26
+ this.Context = opts.Context;
27
+ }
28
+ }
29
+ exports.AlreadyExistsException = AlreadyExistsException;
30
+ class InvalidParameterValueException extends BackupServiceException_1.BackupServiceException {
31
+ name = "InvalidParameterValueException";
32
+ $fault = "client";
33
+ Code;
34
+ Message;
35
+ Type;
36
+ Context;
37
+ constructor(opts) {
38
+ super({
39
+ name: "InvalidParameterValueException",
40
+ $fault: "client",
41
+ ...opts,
42
+ });
43
+ Object.setPrototypeOf(this, InvalidParameterValueException.prototype);
44
+ this.Code = opts.Code;
45
+ this.Message = opts.Message;
46
+ this.Type = opts.Type;
47
+ this.Context = opts.Context;
48
+ }
49
+ }
50
+ exports.InvalidParameterValueException = InvalidParameterValueException;
51
+ class InvalidRequestException extends BackupServiceException_1.BackupServiceException {
52
+ name = "InvalidRequestException";
53
+ $fault = "client";
54
+ Code;
55
+ Message;
56
+ Type;
57
+ Context;
58
+ constructor(opts) {
59
+ super({
60
+ name: "InvalidRequestException",
61
+ $fault: "client",
62
+ ...opts,
63
+ });
64
+ Object.setPrototypeOf(this, InvalidRequestException.prototype);
65
+ this.Code = opts.Code;
66
+ this.Message = opts.Message;
67
+ this.Type = opts.Type;
68
+ this.Context = opts.Context;
69
+ }
70
+ }
71
+ exports.InvalidRequestException = InvalidRequestException;
72
+ class MissingParameterValueException extends BackupServiceException_1.BackupServiceException {
73
+ name = "MissingParameterValueException";
74
+ $fault = "client";
75
+ Code;
76
+ Message;
77
+ Type;
78
+ Context;
79
+ constructor(opts) {
80
+ super({
81
+ name: "MissingParameterValueException",
82
+ $fault: "client",
83
+ ...opts,
84
+ });
85
+ Object.setPrototypeOf(this, MissingParameterValueException.prototype);
86
+ this.Code = opts.Code;
87
+ this.Message = opts.Message;
88
+ this.Type = opts.Type;
89
+ this.Context = opts.Context;
90
+ }
91
+ }
92
+ exports.MissingParameterValueException = MissingParameterValueException;
93
+ class ResourceNotFoundException extends BackupServiceException_1.BackupServiceException {
94
+ name = "ResourceNotFoundException";
95
+ $fault = "client";
96
+ Code;
97
+ Message;
98
+ Type;
99
+ Context;
100
+ constructor(opts) {
101
+ super({
102
+ name: "ResourceNotFoundException",
103
+ $fault: "client",
104
+ ...opts,
105
+ });
106
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
107
+ this.Code = opts.Code;
108
+ this.Message = opts.Message;
109
+ this.Type = opts.Type;
110
+ this.Context = opts.Context;
111
+ }
112
+ }
113
+ exports.ResourceNotFoundException = ResourceNotFoundException;
114
+ class ServiceUnavailableException extends BackupServiceException_1.BackupServiceException {
115
+ name = "ServiceUnavailableException";
116
+ $fault = "server";
117
+ Code;
118
+ Message;
119
+ Type;
120
+ Context;
121
+ constructor(opts) {
122
+ super({
123
+ name: "ServiceUnavailableException",
124
+ $fault: "server",
125
+ ...opts,
126
+ });
127
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
128
+ this.Code = opts.Code;
129
+ this.Message = opts.Message;
130
+ this.Type = opts.Type;
131
+ this.Context = opts.Context;
132
+ }
133
+ }
134
+ exports.ServiceUnavailableException = ServiceUnavailableException;
135
+ class InvalidResourceStateException extends BackupServiceException_1.BackupServiceException {
136
+ name = "InvalidResourceStateException";
137
+ $fault = "client";
138
+ Code;
139
+ Message;
140
+ Type;
141
+ Context;
142
+ constructor(opts) {
143
+ super({
144
+ name: "InvalidResourceStateException",
145
+ $fault: "client",
146
+ ...opts,
147
+ });
148
+ Object.setPrototypeOf(this, InvalidResourceStateException.prototype);
149
+ this.Code = opts.Code;
150
+ this.Message = opts.Message;
151
+ this.Type = opts.Type;
152
+ this.Context = opts.Context;
153
+ }
154
+ }
155
+ exports.InvalidResourceStateException = InvalidResourceStateException;
156
+ class ConflictException extends BackupServiceException_1.BackupServiceException {
157
+ name = "ConflictException";
158
+ $fault = "client";
159
+ Code;
160
+ Message;
161
+ Type;
162
+ Context;
163
+ constructor(opts) {
164
+ super({
165
+ name: "ConflictException",
166
+ $fault: "client",
167
+ ...opts,
168
+ });
169
+ Object.setPrototypeOf(this, ConflictException.prototype);
170
+ this.Code = opts.Code;
171
+ this.Message = opts.Message;
172
+ this.Type = opts.Type;
173
+ this.Context = opts.Context;
174
+ }
175
+ }
176
+ exports.ConflictException = ConflictException;
177
+ class LimitExceededException extends BackupServiceException_1.BackupServiceException {
178
+ name = "LimitExceededException";
179
+ $fault = "client";
180
+ Code;
181
+ Message;
182
+ Type;
183
+ Context;
184
+ constructor(opts) {
185
+ super({
186
+ name: "LimitExceededException",
187
+ $fault: "client",
188
+ ...opts,
189
+ });
190
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
191
+ this.Code = opts.Code;
192
+ this.Message = opts.Message;
193
+ this.Type = opts.Type;
194
+ this.Context = opts.Context;
195
+ }
196
+ }
197
+ exports.LimitExceededException = LimitExceededException;
198
+ class DependencyFailureException extends BackupServiceException_1.BackupServiceException {
199
+ name = "DependencyFailureException";
200
+ $fault = "server";
201
+ Code;
202
+ Message;
203
+ Type;
204
+ Context;
205
+ constructor(opts) {
206
+ super({
207
+ name: "DependencyFailureException",
208
+ $fault: "server",
209
+ ...opts,
210
+ });
211
+ Object.setPrototypeOf(this, DependencyFailureException.prototype);
212
+ this.Code = opts.Code;
213
+ this.Message = opts.Message;
214
+ this.Type = opts.Type;
215
+ this.Context = opts.Context;
216
+ }
217
+ }
218
+ exports.DependencyFailureException = DependencyFailureException;
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
9
9
  const util_utf8_1 = require("@smithy/util-utf8");
10
10
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
11
11
  const endpointResolver_1 = require("./endpoint/endpointResolver");
12
+ const schemas_0_1 = require("./schemas/schemas_0");
12
13
  const getRuntimeConfig = (config) => {
13
14
  return {
14
15
  apiVersion: "2018-11-15",
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
29
30
  protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
30
31
  protocolSettings: config?.protocolSettings ?? {
31
32
  defaultNamespace: "com.amazonaws.backup",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  version: "2018-11-15",
33
35
  serviceTarget: "CryoControllerUserManager",
34
36
  },