@aws-sdk/client-s3outposts 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-s3outposts
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-s3outposts
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-s3outposts
package/dist-cjs/index.js CHANGED
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.S3OutpostsServiceException = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  tslib_1.__exportStar(require("./S3Outposts"), exports);
5
6
  tslib_1.__exportStar(require("./S3OutpostsClient"), 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 S3OutpostsServiceException_1 = require("./models/S3OutpostsServiceException");
11
+ Object.defineProperty(exports, "S3OutpostsServiceException", { enumerable: true, get: function () { return S3OutpostsServiceException_1.S3OutpostsServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.S3OutpostsServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class S3OutpostsServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, S3OutpostsServiceException.prototype);
9
+ }
10
+ }
11
+ exports.S3OutpostsServiceException = S3OutpostsServiceException;
@@ -1,6 +1,35 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListEndpointsResult = exports.ListEndpointsRequest = exports.Endpoint = exports.EndpointStatus = exports.NetworkInterface = exports.DeleteEndpointRequest = exports.CreateEndpointResult = exports.CreateEndpointRequest = exports.EndpointAccessType = void 0;
3
+ exports.ListEndpointsResult = exports.ListEndpointsRequest = exports.Endpoint = exports.EndpointStatus = exports.NetworkInterface = exports.DeleteEndpointRequest = exports.ValidationException = exports.ResourceNotFoundException = exports.InternalServerException = exports.CreateEndpointResult = exports.CreateEndpointRequest = exports.EndpointAccessType = exports.ConflictException = exports.AccessDeniedException = void 0;
4
+ const S3OutpostsServiceException_1 = require("./S3OutpostsServiceException");
5
+ class AccessDeniedException extends S3OutpostsServiceException_1.S3OutpostsServiceException {
6
+ constructor(opts) {
7
+ super({
8
+ name: "AccessDeniedException",
9
+ $fault: "client",
10
+ ...opts,
11
+ });
12
+ this.name = "AccessDeniedException";
13
+ this.$fault = "client";
14
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
15
+ this.Message = opts.Message;
16
+ }
17
+ }
18
+ exports.AccessDeniedException = AccessDeniedException;
19
+ class ConflictException extends S3OutpostsServiceException_1.S3OutpostsServiceException {
20
+ constructor(opts) {
21
+ super({
22
+ name: "ConflictException",
23
+ $fault: "client",
24
+ ...opts,
25
+ });
26
+ this.name = "ConflictException";
27
+ this.$fault = "client";
28
+ Object.setPrototypeOf(this, ConflictException.prototype);
29
+ this.Message = opts.Message;
30
+ }
31
+ }
32
+ exports.ConflictException = ConflictException;
4
33
  var EndpointAccessType;
5
34
  (function (EndpointAccessType) {
6
35
  EndpointAccessType["CUSTOMER_OWNED_IP"] = "CustomerOwnedIp";
@@ -18,6 +47,48 @@ var CreateEndpointResult;
18
47
  ...obj,
19
48
  });
20
49
  })(CreateEndpointResult = exports.CreateEndpointResult || (exports.CreateEndpointResult = {}));
50
+ class InternalServerException extends S3OutpostsServiceException_1.S3OutpostsServiceException {
51
+ constructor(opts) {
52
+ super({
53
+ name: "InternalServerException",
54
+ $fault: "server",
55
+ ...opts,
56
+ });
57
+ this.name = "InternalServerException";
58
+ this.$fault = "server";
59
+ Object.setPrototypeOf(this, InternalServerException.prototype);
60
+ this.Message = opts.Message;
61
+ }
62
+ }
63
+ exports.InternalServerException = InternalServerException;
64
+ class ResourceNotFoundException extends S3OutpostsServiceException_1.S3OutpostsServiceException {
65
+ constructor(opts) {
66
+ super({
67
+ name: "ResourceNotFoundException",
68
+ $fault: "client",
69
+ ...opts,
70
+ });
71
+ this.name = "ResourceNotFoundException";
72
+ this.$fault = "client";
73
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
74
+ this.Message = opts.Message;
75
+ }
76
+ }
77
+ exports.ResourceNotFoundException = ResourceNotFoundException;
78
+ class ValidationException extends S3OutpostsServiceException_1.S3OutpostsServiceException {
79
+ constructor(opts) {
80
+ super({
81
+ name: "ValidationException",
82
+ $fault: "client",
83
+ ...opts,
84
+ });
85
+ this.name = "ValidationException";
86
+ this.$fault = "client";
87
+ Object.setPrototypeOf(this, ValidationException.prototype);
88
+ this.Message = opts.Message;
89
+ }
90
+ }
91
+ exports.ValidationException = ValidationException;
21
92
  var DeleteEndpointRequest;
22
93
  (function (DeleteEndpointRequest) {
23
94
  DeleteEndpointRequest.filterSensitiveLog = (obj) => ({
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.deserializeAws_restJson1ListEndpointsCommand = exports.deserializeAws_restJson1DeleteEndpointCommand = exports.deserializeAws_restJson1CreateEndpointCommand = exports.serializeAws_restJson1ListEndpointsCommand = exports.serializeAws_restJson1DeleteEndpointCommand = exports.serializeAws_restJson1CreateEndpointCommand = 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 S3OutpostsServiceException_1 = require("../models/S3OutpostsServiceException");
6
8
  const serializeAws_restJson1CreateEndpointCommand = async (input, context) => {
7
9
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
8
10
  const headers = {
@@ -98,59 +100,28 @@ const deserializeAws_restJson1CreateEndpointCommandError = async (output, contex
98
100
  switch (errorCode) {
99
101
  case "AccessDeniedException":
100
102
  case "com.amazonaws.s3outposts#AccessDeniedException":
101
- response = {
102
- ...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
103
- name: errorCode,
104
- $metadata: deserializeMetadata(output),
105
- };
106
- break;
103
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
107
104
  case "ConflictException":
108
105
  case "com.amazonaws.s3outposts#ConflictException":
109
- response = {
110
- ...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
111
- name: errorCode,
112
- $metadata: deserializeMetadata(output),
113
- };
114
- break;
106
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
115
107
  case "InternalServerException":
116
108
  case "com.amazonaws.s3outposts#InternalServerException":
117
- response = {
118
- ...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
119
- name: errorCode,
120
- $metadata: deserializeMetadata(output),
121
- };
122
- break;
109
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
123
110
  case "ResourceNotFoundException":
124
111
  case "com.amazonaws.s3outposts#ResourceNotFoundException":
125
- response = {
126
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
127
- name: errorCode,
128
- $metadata: deserializeMetadata(output),
129
- };
130
- break;
112
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
131
113
  case "ValidationException":
132
114
  case "com.amazonaws.s3outposts#ValidationException":
133
- response = {
134
- ...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
135
- name: errorCode,
136
- $metadata: deserializeMetadata(output),
137
- };
138
- break;
115
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
139
116
  default:
140
117
  const parsedBody = parsedOutput.body;
141
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
142
- response = {
143
- ...parsedBody,
144
- name: `${errorCode}`,
145
- message: parsedBody.message || parsedBody.Message || errorCode,
118
+ response = new S3OutpostsServiceException_1.S3OutpostsServiceException({
119
+ name: parsedBody.code || parsedBody.Code || errorCode,
146
120
  $fault: "client",
147
121
  $metadata: deserializeMetadata(output),
148
- };
122
+ });
123
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
149
124
  }
150
- const message = response.message || response.Message || errorCode;
151
- response.message = message;
152
- delete response.Message;
153
- return Promise.reject(Object.assign(new Error(message), response));
154
125
  };
155
126
  const deserializeAws_restJson1DeleteEndpointCommand = async (output, context) => {
156
127
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -174,51 +145,25 @@ const deserializeAws_restJson1DeleteEndpointCommandError = async (output, contex
174
145
  switch (errorCode) {
175
146
  case "AccessDeniedException":
176
147
  case "com.amazonaws.s3outposts#AccessDeniedException":
177
- response = {
178
- ...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
179
- name: errorCode,
180
- $metadata: deserializeMetadata(output),
181
- };
182
- break;
148
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
183
149
  case "InternalServerException":
184
150
  case "com.amazonaws.s3outposts#InternalServerException":
185
- response = {
186
- ...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
187
- name: errorCode,
188
- $metadata: deserializeMetadata(output),
189
- };
190
- break;
151
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
191
152
  case "ResourceNotFoundException":
192
153
  case "com.amazonaws.s3outposts#ResourceNotFoundException":
193
- response = {
194
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
195
- name: errorCode,
196
- $metadata: deserializeMetadata(output),
197
- };
198
- break;
154
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
199
155
  case "ValidationException":
200
156
  case "com.amazonaws.s3outposts#ValidationException":
201
- response = {
202
- ...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
203
- name: errorCode,
204
- $metadata: deserializeMetadata(output),
205
- };
206
- break;
157
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
207
158
  default:
208
159
  const parsedBody = parsedOutput.body;
209
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
210
- response = {
211
- ...parsedBody,
212
- name: `${errorCode}`,
213
- message: parsedBody.message || parsedBody.Message || errorCode,
160
+ response = new S3OutpostsServiceException_1.S3OutpostsServiceException({
161
+ name: parsedBody.code || parsedBody.Code || errorCode,
214
162
  $fault: "client",
215
163
  $metadata: deserializeMetadata(output),
216
- };
164
+ });
165
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
217
166
  }
218
- const message = response.message || response.Message || errorCode;
219
- response.message = message;
220
- delete response.Message;
221
- return Promise.reject(Object.assign(new Error(message), response));
222
167
  };
223
168
  const deserializeAws_restJson1ListEndpointsCommand = async (output, context) => {
224
169
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -250,116 +195,85 @@ const deserializeAws_restJson1ListEndpointsCommandError = async (output, context
250
195
  switch (errorCode) {
251
196
  case "AccessDeniedException":
252
197
  case "com.amazonaws.s3outposts#AccessDeniedException":
253
- response = {
254
- ...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
255
- name: errorCode,
256
- $metadata: deserializeMetadata(output),
257
- };
258
- break;
198
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
259
199
  case "InternalServerException":
260
200
  case "com.amazonaws.s3outposts#InternalServerException":
261
- response = {
262
- ...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
263
- name: errorCode,
264
- $metadata: deserializeMetadata(output),
265
- };
266
- break;
201
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
267
202
  case "ResourceNotFoundException":
268
203
  case "com.amazonaws.s3outposts#ResourceNotFoundException":
269
- response = {
270
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
271
- name: errorCode,
272
- $metadata: deserializeMetadata(output),
273
- };
274
- break;
204
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
275
205
  case "ValidationException":
276
206
  case "com.amazonaws.s3outposts#ValidationException":
277
- response = {
278
- ...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
279
- name: errorCode,
280
- $metadata: deserializeMetadata(output),
281
- };
282
- break;
207
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
283
208
  default:
284
209
  const parsedBody = parsedOutput.body;
285
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
286
- response = {
287
- ...parsedBody,
288
- name: `${errorCode}`,
289
- message: parsedBody.message || parsedBody.Message || errorCode,
210
+ response = new S3OutpostsServiceException_1.S3OutpostsServiceException({
211
+ name: parsedBody.code || parsedBody.Code || errorCode,
290
212
  $fault: "client",
291
213
  $metadata: deserializeMetadata(output),
292
- };
214
+ });
215
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
293
216
  }
294
- const message = response.message || response.Message || errorCode;
295
- response.message = message;
296
- delete response.Message;
297
- return Promise.reject(Object.assign(new Error(message), response));
298
217
  };
299
218
  const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
300
- const contents = {
301
- name: "AccessDeniedException",
302
- $fault: "client",
303
- $metadata: deserializeMetadata(parsedOutput),
304
- Message: undefined,
305
- };
219
+ const contents = {};
306
220
  const data = parsedOutput.body;
307
221
  if (data.Message !== undefined && data.Message !== null) {
308
222
  contents.Message = smithy_client_1.expectString(data.Message);
309
223
  }
310
- return contents;
224
+ const exception = new models_0_1.AccessDeniedException({
225
+ $metadata: deserializeMetadata(parsedOutput),
226
+ ...contents,
227
+ });
228
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
311
229
  };
312
230
  const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
313
- const contents = {
314
- name: "ConflictException",
315
- $fault: "client",
316
- $metadata: deserializeMetadata(parsedOutput),
317
- Message: undefined,
318
- };
231
+ const contents = {};
319
232
  const data = parsedOutput.body;
320
233
  if (data.Message !== undefined && data.Message !== null) {
321
234
  contents.Message = smithy_client_1.expectString(data.Message);
322
235
  }
323
- return contents;
236
+ const exception = new models_0_1.ConflictException({
237
+ $metadata: deserializeMetadata(parsedOutput),
238
+ ...contents,
239
+ });
240
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
324
241
  };
325
242
  const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
326
- const contents = {
327
- name: "InternalServerException",
328
- $fault: "server",
329
- $metadata: deserializeMetadata(parsedOutput),
330
- Message: undefined,
331
- };
243
+ const contents = {};
332
244
  const data = parsedOutput.body;
333
245
  if (data.Message !== undefined && data.Message !== null) {
334
246
  contents.Message = smithy_client_1.expectString(data.Message);
335
247
  }
336
- return contents;
248
+ const exception = new models_0_1.InternalServerException({
249
+ $metadata: deserializeMetadata(parsedOutput),
250
+ ...contents,
251
+ });
252
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
337
253
  };
338
254
  const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
339
- const contents = {
340
- name: "ResourceNotFoundException",
341
- $fault: "client",
342
- $metadata: deserializeMetadata(parsedOutput),
343
- Message: undefined,
344
- };
255
+ const contents = {};
345
256
  const data = parsedOutput.body;
346
257
  if (data.Message !== undefined && data.Message !== null) {
347
258
  contents.Message = smithy_client_1.expectString(data.Message);
348
259
  }
349
- return contents;
260
+ const exception = new models_0_1.ResourceNotFoundException({
261
+ $metadata: deserializeMetadata(parsedOutput),
262
+ ...contents,
263
+ });
264
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
350
265
  };
351
266
  const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
352
- const contents = {
353
- name: "ValidationException",
354
- $fault: "client",
355
- $metadata: deserializeMetadata(parsedOutput),
356
- Message: undefined,
357
- };
267
+ const contents = {};
358
268
  const data = parsedOutput.body;
359
269
  if (data.Message !== undefined && data.Message !== null) {
360
270
  contents.Message = smithy_client_1.expectString(data.Message);
361
271
  }
362
- return contents;
272
+ const exception = new models_0_1.ValidationException({
273
+ $metadata: deserializeMetadata(parsedOutput),
274
+ ...contents,
275
+ });
276
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
363
277
  };
364
278
  const deserializeAws_restJson1Endpoint = (output, context) => {
365
279
  return {
@@ -381,7 +295,7 @@ const deserializeAws_restJson1Endpoint = (output, context) => {
381
295
  };
382
296
  };
383
297
  const deserializeAws_restJson1Endpoints = (output, context) => {
384
- return (output || [])
298
+ const retVal = (output || [])
385
299
  .filter((e) => e != null)
386
300
  .map((entry) => {
387
301
  if (entry === null) {
@@ -389,6 +303,7 @@ const deserializeAws_restJson1Endpoints = (output, context) => {
389
303
  }
390
304
  return deserializeAws_restJson1Endpoint(entry, context);
391
305
  });
306
+ return retVal;
392
307
  };
393
308
  const deserializeAws_restJson1NetworkInterface = (output, context) => {
394
309
  return {
@@ -396,7 +311,7 @@ const deserializeAws_restJson1NetworkInterface = (output, context) => {
396
311
  };
397
312
  };
398
313
  const deserializeAws_restJson1NetworkInterfaces = (output, context) => {
399
- return (output || [])
314
+ const retVal = (output || [])
400
315
  .filter((e) => e != null)
401
316
  .map((entry) => {
402
317
  if (entry === null) {
@@ -404,6 +319,7 @@ const deserializeAws_restJson1NetworkInterfaces = (output, context) => {
404
319
  }
405
320
  return deserializeAws_restJson1NetworkInterface(entry, context);
406
321
  });
322
+ return retVal;
407
323
  };
408
324
  const deserializeMetadata = (output) => {
409
325
  var _a;
package/dist-es/index.js CHANGED
@@ -3,3 +3,4 @@ export * from "./S3OutpostsClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { S3OutpostsServiceException } from "./models/S3OutpostsServiceException";
@@ -0,0 +1,12 @@
1
+ import { __extends } from "tslib";
2
+ import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
+ var S3OutpostsServiceException = (function (_super) {
4
+ __extends(S3OutpostsServiceException, _super);
5
+ function S3OutpostsServiceException(options) {
6
+ var _this = _super.call(this, options) || this;
7
+ Object.setPrototypeOf(_this, S3OutpostsServiceException.prototype);
8
+ return _this;
9
+ }
10
+ return S3OutpostsServiceException;
11
+ }(__ServiceException));
12
+ export { S3OutpostsServiceException };
@@ -1,4 +1,31 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __extends } from "tslib";
2
+ import { S3OutpostsServiceException as __BaseException } from "./S3OutpostsServiceException";
3
+ var AccessDeniedException = (function (_super) {
4
+ __extends(AccessDeniedException, _super);
5
+ function AccessDeniedException(opts) {
6
+ var _this = _super.call(this, __assign({ name: "AccessDeniedException", $fault: "client" }, opts)) || this;
7
+ _this.name = "AccessDeniedException";
8
+ _this.$fault = "client";
9
+ Object.setPrototypeOf(_this, AccessDeniedException.prototype);
10
+ _this.Message = opts.Message;
11
+ return _this;
12
+ }
13
+ return AccessDeniedException;
14
+ }(__BaseException));
15
+ export { AccessDeniedException };
16
+ var ConflictException = (function (_super) {
17
+ __extends(ConflictException, _super);
18
+ function ConflictException(opts) {
19
+ var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this;
20
+ _this.name = "ConflictException";
21
+ _this.$fault = "client";
22
+ Object.setPrototypeOf(_this, ConflictException.prototype);
23
+ _this.Message = opts.Message;
24
+ return _this;
25
+ }
26
+ return ConflictException;
27
+ }(__BaseException));
28
+ export { ConflictException };
2
29
  export var EndpointAccessType;
3
30
  (function (EndpointAccessType) {
4
31
  EndpointAccessType["CUSTOMER_OWNED_IP"] = "CustomerOwnedIp";
@@ -12,6 +39,45 @@ export var CreateEndpointResult;
12
39
  (function (CreateEndpointResult) {
13
40
  CreateEndpointResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
14
41
  })(CreateEndpointResult || (CreateEndpointResult = {}));
42
+ var InternalServerException = (function (_super) {
43
+ __extends(InternalServerException, _super);
44
+ function InternalServerException(opts) {
45
+ var _this = _super.call(this, __assign({ name: "InternalServerException", $fault: "server" }, opts)) || this;
46
+ _this.name = "InternalServerException";
47
+ _this.$fault = "server";
48
+ Object.setPrototypeOf(_this, InternalServerException.prototype);
49
+ _this.Message = opts.Message;
50
+ return _this;
51
+ }
52
+ return InternalServerException;
53
+ }(__BaseException));
54
+ export { InternalServerException };
55
+ var ResourceNotFoundException = (function (_super) {
56
+ __extends(ResourceNotFoundException, _super);
57
+ function ResourceNotFoundException(opts) {
58
+ var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
59
+ _this.name = "ResourceNotFoundException";
60
+ _this.$fault = "client";
61
+ Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
62
+ _this.Message = opts.Message;
63
+ return _this;
64
+ }
65
+ return ResourceNotFoundException;
66
+ }(__BaseException));
67
+ export { ResourceNotFoundException };
68
+ var ValidationException = (function (_super) {
69
+ __extends(ValidationException, _super);
70
+ function ValidationException(opts) {
71
+ var _this = _super.call(this, __assign({ name: "ValidationException", $fault: "client" }, opts)) || this;
72
+ _this.name = "ValidationException";
73
+ _this.$fault = "client";
74
+ Object.setPrototypeOf(_this, ValidationException.prototype);
75
+ _this.Message = opts.Message;
76
+ return _this;
77
+ }
78
+ return ValidationException;
79
+ }(__BaseException));
80
+ export { ValidationException };
15
81
  export var DeleteEndpointRequest;
16
82
  (function (DeleteEndpointRequest) {
17
83
  DeleteEndpointRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };