@aws-sdk/client-sagemaker-runtime 3.50.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,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.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
+
17
+ # [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-sagemaker-runtime
20
+
21
+
22
+
23
+
24
+
25
+ # [3.51.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.50.0...v3.51.0) (2022-02-12)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-sagemaker-runtime
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.50.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.49.0...v3.50.0) (2022-02-08)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-sagemaker-runtime
package/dist-cjs/index.js CHANGED
@@ -1,7 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SageMakerRuntimeServiceException = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  tslib_1.__exportStar(require("./SageMakerRuntime"), exports);
5
6
  tslib_1.__exportStar(require("./SageMakerRuntimeClient"), exports);
6
7
  tslib_1.__exportStar(require("./commands"), exports);
7
8
  tslib_1.__exportStar(require("./models"), exports);
9
+ var SageMakerRuntimeServiceException_1 = require("./models/SageMakerRuntimeServiceException");
10
+ Object.defineProperty(exports, "SageMakerRuntimeServiceException", { enumerable: true, get: function () { return SageMakerRuntimeServiceException_1.SageMakerRuntimeServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SageMakerRuntimeServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class SageMakerRuntimeServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, SageMakerRuntimeServiceException.prototype);
9
+ }
10
+ }
11
+ exports.SageMakerRuntimeServiceException = SageMakerRuntimeServiceException;
@@ -1,7 +1,36 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InvokeEndpointAsyncOutput = exports.InvokeEndpointAsyncInput = exports.InvokeEndpointOutput = exports.InvokeEndpointInput = void 0;
3
+ exports.InvokeEndpointAsyncOutput = exports.InvokeEndpointAsyncInput = exports.ValidationError = exports.ServiceUnavailable = exports.ModelNotReadyException = exports.ModelError = exports.InvokeEndpointOutput = exports.InvokeEndpointInput = exports.InternalFailure = exports.InternalDependencyException = void 0;
4
4
  const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ const SageMakerRuntimeServiceException_1 = require("./SageMakerRuntimeServiceException");
6
+ class InternalDependencyException extends SageMakerRuntimeServiceException_1.SageMakerRuntimeServiceException {
7
+ constructor(opts) {
8
+ super({
9
+ name: "InternalDependencyException",
10
+ $fault: "server",
11
+ ...opts,
12
+ });
13
+ this.name = "InternalDependencyException";
14
+ this.$fault = "server";
15
+ Object.setPrototypeOf(this, InternalDependencyException.prototype);
16
+ this.Message = opts.Message;
17
+ }
18
+ }
19
+ exports.InternalDependencyException = InternalDependencyException;
20
+ class InternalFailure extends SageMakerRuntimeServiceException_1.SageMakerRuntimeServiceException {
21
+ constructor(opts) {
22
+ super({
23
+ name: "InternalFailure",
24
+ $fault: "server",
25
+ ...opts,
26
+ });
27
+ this.name = "InternalFailure";
28
+ this.$fault = "server";
29
+ Object.setPrototypeOf(this, InternalFailure.prototype);
30
+ this.Message = opts.Message;
31
+ }
32
+ }
33
+ exports.InternalFailure = InternalFailure;
5
34
  var InvokeEndpointInput;
6
35
  (function (InvokeEndpointInput) {
7
36
  InvokeEndpointInput.filterSensitiveLog = (obj) => ({
@@ -18,6 +47,65 @@ var InvokeEndpointOutput;
18
47
  ...(obj.CustomAttributes && { CustomAttributes: smithy_client_1.SENSITIVE_STRING }),
19
48
  });
20
49
  })(InvokeEndpointOutput = exports.InvokeEndpointOutput || (exports.InvokeEndpointOutput = {}));
50
+ class ModelError extends SageMakerRuntimeServiceException_1.SageMakerRuntimeServiceException {
51
+ constructor(opts) {
52
+ super({
53
+ name: "ModelError",
54
+ $fault: "client",
55
+ ...opts,
56
+ });
57
+ this.name = "ModelError";
58
+ this.$fault = "client";
59
+ Object.setPrototypeOf(this, ModelError.prototype);
60
+ this.Message = opts.Message;
61
+ this.OriginalStatusCode = opts.OriginalStatusCode;
62
+ this.OriginalMessage = opts.OriginalMessage;
63
+ this.LogStreamArn = opts.LogStreamArn;
64
+ }
65
+ }
66
+ exports.ModelError = ModelError;
67
+ class ModelNotReadyException extends SageMakerRuntimeServiceException_1.SageMakerRuntimeServiceException {
68
+ constructor(opts) {
69
+ super({
70
+ name: "ModelNotReadyException",
71
+ $fault: "client",
72
+ ...opts,
73
+ });
74
+ this.name = "ModelNotReadyException";
75
+ this.$fault = "client";
76
+ Object.setPrototypeOf(this, ModelNotReadyException.prototype);
77
+ this.Message = opts.Message;
78
+ }
79
+ }
80
+ exports.ModelNotReadyException = ModelNotReadyException;
81
+ class ServiceUnavailable extends SageMakerRuntimeServiceException_1.SageMakerRuntimeServiceException {
82
+ constructor(opts) {
83
+ super({
84
+ name: "ServiceUnavailable",
85
+ $fault: "server",
86
+ ...opts,
87
+ });
88
+ this.name = "ServiceUnavailable";
89
+ this.$fault = "server";
90
+ Object.setPrototypeOf(this, ServiceUnavailable.prototype);
91
+ this.Message = opts.Message;
92
+ }
93
+ }
94
+ exports.ServiceUnavailable = ServiceUnavailable;
95
+ class ValidationError extends SageMakerRuntimeServiceException_1.SageMakerRuntimeServiceException {
96
+ constructor(opts) {
97
+ super({
98
+ name: "ValidationError",
99
+ $fault: "client",
100
+ ...opts,
101
+ });
102
+ this.name = "ValidationError";
103
+ this.$fault = "client";
104
+ Object.setPrototypeOf(this, ValidationError.prototype);
105
+ this.Message = opts.Message;
106
+ }
107
+ }
108
+ exports.ValidationError = ValidationError;
21
109
  var InvokeEndpointAsyncInput;
22
110
  (function (InvokeEndpointAsyncInput) {
23
111
  InvokeEndpointAsyncInput.filterSensitiveLog = (obj) => ({
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.deserializeAws_restJson1InvokeEndpointAsyncCommand = exports.deserializeAws_restJson1InvokeEndpointCommand = exports.serializeAws_restJson1InvokeEndpointAsyncCommand = exports.serializeAws_restJson1InvokeEndpointCommand = void 0;
4
4
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const SageMakerRuntimeServiceException_1 = require("../models/SageMakerRuntimeServiceException");
6
8
  const serializeAws_restJson1InvokeEndpointCommand = async (input, context) => {
7
9
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
8
10
  const headers = {
@@ -119,67 +121,31 @@ const deserializeAws_restJson1InvokeEndpointCommandError = async (output, contex
119
121
  switch (errorCode) {
120
122
  case "InternalDependencyException":
121
123
  case "com.amazonaws.sagemakerruntime#InternalDependencyException":
122
- response = {
123
- ...(await deserializeAws_restJson1InternalDependencyExceptionResponse(parsedOutput, context)),
124
- name: errorCode,
125
- $metadata: deserializeMetadata(output),
126
- };
127
- break;
124
+ throw await deserializeAws_restJson1InternalDependencyExceptionResponse(parsedOutput, context);
128
125
  case "InternalFailure":
129
126
  case "com.amazonaws.sagemakerruntime#InternalFailure":
130
- response = {
131
- ...(await deserializeAws_restJson1InternalFailureResponse(parsedOutput, context)),
132
- name: errorCode,
133
- $metadata: deserializeMetadata(output),
134
- };
135
- break;
127
+ throw await deserializeAws_restJson1InternalFailureResponse(parsedOutput, context);
136
128
  case "ModelError":
137
129
  case "com.amazonaws.sagemakerruntime#ModelError":
138
- response = {
139
- ...(await deserializeAws_restJson1ModelErrorResponse(parsedOutput, context)),
140
- name: errorCode,
141
- $metadata: deserializeMetadata(output),
142
- };
143
- break;
130
+ throw await deserializeAws_restJson1ModelErrorResponse(parsedOutput, context);
144
131
  case "ModelNotReadyException":
145
132
  case "com.amazonaws.sagemakerruntime#ModelNotReadyException":
146
- response = {
147
- ...(await deserializeAws_restJson1ModelNotReadyExceptionResponse(parsedOutput, context)),
148
- name: errorCode,
149
- $metadata: deserializeMetadata(output),
150
- };
151
- break;
133
+ throw await deserializeAws_restJson1ModelNotReadyExceptionResponse(parsedOutput, context);
152
134
  case "ServiceUnavailable":
153
135
  case "com.amazonaws.sagemakerruntime#ServiceUnavailable":
154
- response = {
155
- ...(await deserializeAws_restJson1ServiceUnavailableResponse(parsedOutput, context)),
156
- name: errorCode,
157
- $metadata: deserializeMetadata(output),
158
- };
159
- break;
136
+ throw await deserializeAws_restJson1ServiceUnavailableResponse(parsedOutput, context);
160
137
  case "ValidationError":
161
138
  case "com.amazonaws.sagemakerruntime#ValidationError":
162
- response = {
163
- ...(await deserializeAws_restJson1ValidationErrorResponse(parsedOutput, context)),
164
- name: errorCode,
165
- $metadata: deserializeMetadata(output),
166
- };
167
- break;
139
+ throw await deserializeAws_restJson1ValidationErrorResponse(parsedOutput, context);
168
140
  default:
169
141
  const parsedBody = parsedOutput.body;
170
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
171
- response = {
172
- ...parsedBody,
173
- name: `${errorCode}`,
174
- message: parsedBody.message || parsedBody.Message || errorCode,
142
+ response = new SageMakerRuntimeServiceException_1.SageMakerRuntimeServiceException({
143
+ name: parsedBody.code || parsedBody.Code || errorCode,
175
144
  $fault: "client",
176
145
  $metadata: deserializeMetadata(output),
177
- };
146
+ });
147
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
178
148
  }
179
- const message = response.message || response.Message || errorCode;
180
- response.message = message;
181
- delete response.Message;
182
- return Promise.reject(Object.assign(new Error(message), response));
183
149
  };
184
150
  const deserializeAws_restJson1InvokeEndpointAsyncCommand = async (output, context) => {
185
151
  if (output.statusCode !== 202 && output.statusCode >= 300) {
@@ -211,80 +177,49 @@ const deserializeAws_restJson1InvokeEndpointAsyncCommandError = async (output, c
211
177
  switch (errorCode) {
212
178
  case "InternalFailure":
213
179
  case "com.amazonaws.sagemakerruntime#InternalFailure":
214
- response = {
215
- ...(await deserializeAws_restJson1InternalFailureResponse(parsedOutput, context)),
216
- name: errorCode,
217
- $metadata: deserializeMetadata(output),
218
- };
219
- break;
180
+ throw await deserializeAws_restJson1InternalFailureResponse(parsedOutput, context);
220
181
  case "ServiceUnavailable":
221
182
  case "com.amazonaws.sagemakerruntime#ServiceUnavailable":
222
- response = {
223
- ...(await deserializeAws_restJson1ServiceUnavailableResponse(parsedOutput, context)),
224
- name: errorCode,
225
- $metadata: deserializeMetadata(output),
226
- };
227
- break;
183
+ throw await deserializeAws_restJson1ServiceUnavailableResponse(parsedOutput, context);
228
184
  case "ValidationError":
229
185
  case "com.amazonaws.sagemakerruntime#ValidationError":
230
- response = {
231
- ...(await deserializeAws_restJson1ValidationErrorResponse(parsedOutput, context)),
232
- name: errorCode,
233
- $metadata: deserializeMetadata(output),
234
- };
235
- break;
186
+ throw await deserializeAws_restJson1ValidationErrorResponse(parsedOutput, context);
236
187
  default:
237
188
  const parsedBody = parsedOutput.body;
238
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
239
- response = {
240
- ...parsedBody,
241
- name: `${errorCode}`,
242
- message: parsedBody.message || parsedBody.Message || errorCode,
189
+ response = new SageMakerRuntimeServiceException_1.SageMakerRuntimeServiceException({
190
+ name: parsedBody.code || parsedBody.Code || errorCode,
243
191
  $fault: "client",
244
192
  $metadata: deserializeMetadata(output),
245
- };
193
+ });
194
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
246
195
  }
247
- const message = response.message || response.Message || errorCode;
248
- response.message = message;
249
- delete response.Message;
250
- return Promise.reject(Object.assign(new Error(message), response));
251
196
  };
252
197
  const deserializeAws_restJson1InternalDependencyExceptionResponse = async (parsedOutput, context) => {
253
- const contents = {
254
- name: "InternalDependencyException",
255
- $fault: "server",
256
- $metadata: deserializeMetadata(parsedOutput),
257
- Message: undefined,
258
- };
198
+ const contents = {};
259
199
  const data = parsedOutput.body;
260
200
  if (data.Message !== undefined && data.Message !== null) {
261
201
  contents.Message = smithy_client_1.expectString(data.Message);
262
202
  }
263
- return contents;
203
+ const exception = new models_0_1.InternalDependencyException({
204
+ $metadata: deserializeMetadata(parsedOutput),
205
+ ...contents,
206
+ });
207
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
264
208
  };
265
209
  const deserializeAws_restJson1InternalFailureResponse = async (parsedOutput, context) => {
266
- const contents = {
267
- name: "InternalFailure",
268
- $fault: "server",
269
- $metadata: deserializeMetadata(parsedOutput),
270
- Message: undefined,
271
- };
210
+ const contents = {};
272
211
  const data = parsedOutput.body;
273
212
  if (data.Message !== undefined && data.Message !== null) {
274
213
  contents.Message = smithy_client_1.expectString(data.Message);
275
214
  }
276
- return contents;
215
+ const exception = new models_0_1.InternalFailure({
216
+ $metadata: deserializeMetadata(parsedOutput),
217
+ ...contents,
218
+ });
219
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
277
220
  };
278
221
  const deserializeAws_restJson1ModelErrorResponse = async (parsedOutput, context) => {
279
- const contents = {
280
- name: "ModelError",
281
- $fault: "client",
282
- $metadata: deserializeMetadata(parsedOutput),
283
- LogStreamArn: undefined,
284
- Message: undefined,
285
- OriginalMessage: undefined,
286
- OriginalStatusCode: undefined,
287
- };
222
+ const contents = {};
288
223
  const data = parsedOutput.body;
289
224
  if (data.LogStreamArn !== undefined && data.LogStreamArn !== null) {
290
225
  contents.LogStreamArn = smithy_client_1.expectString(data.LogStreamArn);
@@ -298,46 +233,47 @@ const deserializeAws_restJson1ModelErrorResponse = async (parsedOutput, context)
298
233
  if (data.OriginalStatusCode !== undefined && data.OriginalStatusCode !== null) {
299
234
  contents.OriginalStatusCode = smithy_client_1.expectInt32(data.OriginalStatusCode);
300
235
  }
301
- return contents;
236
+ const exception = new models_0_1.ModelError({
237
+ $metadata: deserializeMetadata(parsedOutput),
238
+ ...contents,
239
+ });
240
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
302
241
  };
303
242
  const deserializeAws_restJson1ModelNotReadyExceptionResponse = async (parsedOutput, context) => {
304
- const contents = {
305
- name: "ModelNotReadyException",
306
- $fault: "client",
307
- $metadata: deserializeMetadata(parsedOutput),
308
- Message: undefined,
309
- };
243
+ const contents = {};
310
244
  const data = parsedOutput.body;
311
245
  if (data.Message !== undefined && data.Message !== null) {
312
246
  contents.Message = smithy_client_1.expectString(data.Message);
313
247
  }
314
- return contents;
248
+ const exception = new models_0_1.ModelNotReadyException({
249
+ $metadata: deserializeMetadata(parsedOutput),
250
+ ...contents,
251
+ });
252
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
315
253
  };
316
254
  const deserializeAws_restJson1ServiceUnavailableResponse = async (parsedOutput, context) => {
317
- const contents = {
318
- name: "ServiceUnavailable",
319
- $fault: "server",
320
- $metadata: deserializeMetadata(parsedOutput),
321
- Message: undefined,
322
- };
255
+ const contents = {};
323
256
  const data = parsedOutput.body;
324
257
  if (data.Message !== undefined && data.Message !== null) {
325
258
  contents.Message = smithy_client_1.expectString(data.Message);
326
259
  }
327
- return contents;
260
+ const exception = new models_0_1.ServiceUnavailable({
261
+ $metadata: deserializeMetadata(parsedOutput),
262
+ ...contents,
263
+ });
264
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
328
265
  };
329
266
  const deserializeAws_restJson1ValidationErrorResponse = async (parsedOutput, context) => {
330
- const contents = {
331
- name: "ValidationError",
332
- $fault: "client",
333
- $metadata: deserializeMetadata(parsedOutput),
334
- Message: undefined,
335
- };
267
+ const contents = {};
336
268
  const data = parsedOutput.body;
337
269
  if (data.Message !== undefined && data.Message !== null) {
338
270
  contents.Message = smithy_client_1.expectString(data.Message);
339
271
  }
340
- return contents;
272
+ const exception = new models_0_1.ValidationError({
273
+ $metadata: deserializeMetadata(parsedOutput),
274
+ ...contents,
275
+ });
276
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
341
277
  };
342
278
  const deserializeMetadata = (output) => {
343
279
  var _a;
package/dist-es/index.js CHANGED
@@ -2,3 +2,4 @@ export * from "./SageMakerRuntime";
2
2
  export * from "./SageMakerRuntimeClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
+ export { SageMakerRuntimeServiceException } from "./models/SageMakerRuntimeServiceException";
@@ -0,0 +1,12 @@
1
+ import { __extends } from "tslib";
2
+ import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
+ var SageMakerRuntimeServiceException = (function (_super) {
4
+ __extends(SageMakerRuntimeServiceException, _super);
5
+ function SageMakerRuntimeServiceException(options) {
6
+ var _this = _super.call(this, options) || this;
7
+ Object.setPrototypeOf(_this, SageMakerRuntimeServiceException.prototype);
8
+ return _this;
9
+ }
10
+ return SageMakerRuntimeServiceException;
11
+ }(__ServiceException));
12
+ export { SageMakerRuntimeServiceException };
@@ -1,5 +1,32 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __extends } from "tslib";
2
2
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
3
+ import { SageMakerRuntimeServiceException as __BaseException } from "./SageMakerRuntimeServiceException";
4
+ var InternalDependencyException = (function (_super) {
5
+ __extends(InternalDependencyException, _super);
6
+ function InternalDependencyException(opts) {
7
+ var _this = _super.call(this, __assign({ name: "InternalDependencyException", $fault: "server" }, opts)) || this;
8
+ _this.name = "InternalDependencyException";
9
+ _this.$fault = "server";
10
+ Object.setPrototypeOf(_this, InternalDependencyException.prototype);
11
+ _this.Message = opts.Message;
12
+ return _this;
13
+ }
14
+ return InternalDependencyException;
15
+ }(__BaseException));
16
+ export { InternalDependencyException };
17
+ var InternalFailure = (function (_super) {
18
+ __extends(InternalFailure, _super);
19
+ function InternalFailure(opts) {
20
+ var _this = _super.call(this, __assign({ name: "InternalFailure", $fault: "server" }, opts)) || this;
21
+ _this.name = "InternalFailure";
22
+ _this.$fault = "server";
23
+ Object.setPrototypeOf(_this, InternalFailure.prototype);
24
+ _this.Message = opts.Message;
25
+ return _this;
26
+ }
27
+ return InternalFailure;
28
+ }(__BaseException));
29
+ export { InternalFailure };
3
30
  export var InvokeEndpointInput;
4
31
  (function (InvokeEndpointInput) {
5
32
  InvokeEndpointInput.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.Body && { Body: SENSITIVE_STRING })), (obj.CustomAttributes && { CustomAttributes: SENSITIVE_STRING }))); };
@@ -8,6 +35,61 @@ export var InvokeEndpointOutput;
8
35
  (function (InvokeEndpointOutput) {
9
36
  InvokeEndpointOutput.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.Body && { Body: SENSITIVE_STRING })), (obj.CustomAttributes && { CustomAttributes: SENSITIVE_STRING }))); };
10
37
  })(InvokeEndpointOutput || (InvokeEndpointOutput = {}));
38
+ var ModelError = (function (_super) {
39
+ __extends(ModelError, _super);
40
+ function ModelError(opts) {
41
+ var _this = _super.call(this, __assign({ name: "ModelError", $fault: "client" }, opts)) || this;
42
+ _this.name = "ModelError";
43
+ _this.$fault = "client";
44
+ Object.setPrototypeOf(_this, ModelError.prototype);
45
+ _this.Message = opts.Message;
46
+ _this.OriginalStatusCode = opts.OriginalStatusCode;
47
+ _this.OriginalMessage = opts.OriginalMessage;
48
+ _this.LogStreamArn = opts.LogStreamArn;
49
+ return _this;
50
+ }
51
+ return ModelError;
52
+ }(__BaseException));
53
+ export { ModelError };
54
+ var ModelNotReadyException = (function (_super) {
55
+ __extends(ModelNotReadyException, _super);
56
+ function ModelNotReadyException(opts) {
57
+ var _this = _super.call(this, __assign({ name: "ModelNotReadyException", $fault: "client" }, opts)) || this;
58
+ _this.name = "ModelNotReadyException";
59
+ _this.$fault = "client";
60
+ Object.setPrototypeOf(_this, ModelNotReadyException.prototype);
61
+ _this.Message = opts.Message;
62
+ return _this;
63
+ }
64
+ return ModelNotReadyException;
65
+ }(__BaseException));
66
+ export { ModelNotReadyException };
67
+ var ServiceUnavailable = (function (_super) {
68
+ __extends(ServiceUnavailable, _super);
69
+ function ServiceUnavailable(opts) {
70
+ var _this = _super.call(this, __assign({ name: "ServiceUnavailable", $fault: "server" }, opts)) || this;
71
+ _this.name = "ServiceUnavailable";
72
+ _this.$fault = "server";
73
+ Object.setPrototypeOf(_this, ServiceUnavailable.prototype);
74
+ _this.Message = opts.Message;
75
+ return _this;
76
+ }
77
+ return ServiceUnavailable;
78
+ }(__BaseException));
79
+ export { ServiceUnavailable };
80
+ var ValidationError = (function (_super) {
81
+ __extends(ValidationError, _super);
82
+ function ValidationError(opts) {
83
+ var _this = _super.call(this, __assign({ name: "ValidationError", $fault: "client" }, opts)) || this;
84
+ _this.name = "ValidationError";
85
+ _this.$fault = "client";
86
+ Object.setPrototypeOf(_this, ValidationError.prototype);
87
+ _this.Message = opts.Message;
88
+ return _this;
89
+ }
90
+ return ValidationError;
91
+ }(__BaseException));
92
+ export { ValidationError };
11
93
  export var InvokeEndpointAsyncInput;
12
94
  (function (InvokeEndpointAsyncInput) {
13
95
  InvokeEndpointAsyncInput.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.CustomAttributes && { CustomAttributes: SENSITIVE_STRING }))); };