@aws-sdk/client-cloudcontrol 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 +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/CloudControlServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +296 -1
- package/dist-cjs/protocols/Aws_json1_0.js +195 -751
- package/dist-es/index.js +1 -0
- package/dist-es/models/CloudControlServiceException.js +12 -0
- package/dist-es/models/models_0.js +275 -1
- package/dist-es/protocols/Aws_json1_0.js +350 -735
- package/dist-types/CloudControlClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/CloudControlServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +149 -64
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/CloudControlClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/CloudControlServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +107 -64
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +28 -28
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
|
+
import { CloudControlServiceException as __BaseException } from "../models/CloudControlServiceException";
|
|
6
|
+
import { AlreadyExistsException, ClientTokenConflictException, ConcurrentModificationException, ConcurrentOperationException, GeneralServiceException, HandlerFailureException, HandlerInternalFailureException, InvalidCredentialsException, InvalidRequestException, NetworkFailureException, NotStabilizedException, NotUpdatableException, PrivateTypeException, RequestTokenNotFoundException, ResourceConflictException, ResourceNotFoundException, ServiceInternalErrorException, ServiceLimitExceededException, ThrottlingException, TypeNotFoundException, UnsupportedActionException, } from "../models/models_0";
|
|
5
7
|
export var serializeAws_json1_0CancelResourceRequestCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6
8
|
var headers, body;
|
|
7
9
|
return __generator(this, function (_a) {
|
|
@@ -109,16 +111,16 @@ export var deserializeAws_json1_0CancelResourceRequestCommand = function (output
|
|
|
109
111
|
});
|
|
110
112
|
}); };
|
|
111
113
|
var deserializeAws_json1_0CancelResourceRequestCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
112
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
113
|
-
var
|
|
114
|
-
return __generator(this, function (
|
|
115
|
-
switch (
|
|
114
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
115
|
+
var _c;
|
|
116
|
+
return __generator(this, function (_d) {
|
|
117
|
+
switch (_d.label) {
|
|
116
118
|
case 0:
|
|
117
119
|
_a = [__assign({}, output)];
|
|
118
|
-
|
|
120
|
+
_c = {};
|
|
119
121
|
return [4, parseBody(output.body, context)];
|
|
120
122
|
case 1:
|
|
121
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
123
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
122
124
|
errorCode = "UnknownError";
|
|
123
125
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
124
126
|
_b = errorCode;
|
|
@@ -129,28 +131,18 @@ var deserializeAws_json1_0CancelResourceRequestCommandError = function (output,
|
|
|
129
131
|
case "com.amazonaws.cloudcontrol#RequestTokenNotFoundException": return [3, 4];
|
|
130
132
|
}
|
|
131
133
|
return [3, 6];
|
|
132
|
-
case 2:
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
case
|
|
136
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
137
|
-
return [3, 7];
|
|
138
|
-
case 4:
|
|
139
|
-
_d = [{}];
|
|
140
|
-
return [4, deserializeAws_json1_0RequestTokenNotFoundExceptionResponse(parsedOutput, context)];
|
|
141
|
-
case 5:
|
|
142
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
143
|
-
return [3, 7];
|
|
134
|
+
case 2: return [4, deserializeAws_json1_0ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
135
|
+
case 3: throw _d.sent();
|
|
136
|
+
case 4: return [4, deserializeAws_json1_0RequestTokenNotFoundExceptionResponse(parsedOutput, context)];
|
|
137
|
+
case 5: throw _d.sent();
|
|
144
138
|
case 6:
|
|
145
139
|
parsedBody = parsedOutput.body;
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
response
|
|
152
|
-
delete response.Message;
|
|
153
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
140
|
+
response = new __BaseException({
|
|
141
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
142
|
+
$fault: "client",
|
|
143
|
+
$metadata: deserializeMetadata(output),
|
|
144
|
+
});
|
|
145
|
+
throw __decorateServiceException(response, parsedBody);
|
|
154
146
|
}
|
|
155
147
|
});
|
|
156
148
|
}); };
|
|
@@ -173,16 +165,16 @@ export var deserializeAws_json1_0CreateResourceCommand = function (output, conte
|
|
|
173
165
|
});
|
|
174
166
|
}); };
|
|
175
167
|
var deserializeAws_json1_0CreateResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
176
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
177
|
-
var
|
|
178
|
-
return __generator(this, function (
|
|
179
|
-
switch (
|
|
168
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
169
|
+
var _c;
|
|
170
|
+
return __generator(this, function (_d) {
|
|
171
|
+
switch (_d.label) {
|
|
180
172
|
case 0:
|
|
181
173
|
_a = [__assign({}, output)];
|
|
182
|
-
|
|
174
|
+
_c = {};
|
|
183
175
|
return [4, parseBody(output.body, context)];
|
|
184
176
|
case 1:
|
|
185
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
177
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
186
178
|
errorCode = "UnknownError";
|
|
187
179
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
188
180
|
_b = errorCode;
|
|
@@ -227,130 +219,52 @@ var deserializeAws_json1_0CreateResourceCommandError = function (output, context
|
|
|
227
219
|
case "com.amazonaws.cloudcontrol#UnsupportedActionException": return [3, 38];
|
|
228
220
|
}
|
|
229
221
|
return [3, 40];
|
|
230
|
-
case 2:
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
case
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
case 4
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
case
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
case
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
case
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
case
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
case
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
case
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
case
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
case
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
case
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
case
|
|
267
|
-
|
|
268
|
-
return [4, deserializeAws_json1_0InvalidCredentialsExceptionResponse(parsedOutput, context)];
|
|
269
|
-
case 15:
|
|
270
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
271
|
-
return [3, 41];
|
|
272
|
-
case 16:
|
|
273
|
-
_k = [{}];
|
|
274
|
-
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
275
|
-
case 17:
|
|
276
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
277
|
-
return [3, 41];
|
|
278
|
-
case 18:
|
|
279
|
-
_l = [{}];
|
|
280
|
-
return [4, deserializeAws_json1_0NetworkFailureExceptionResponse(parsedOutput, context)];
|
|
281
|
-
case 19:
|
|
282
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
283
|
-
return [3, 41];
|
|
284
|
-
case 20:
|
|
285
|
-
_m = [{}];
|
|
286
|
-
return [4, deserializeAws_json1_0NotStabilizedExceptionResponse(parsedOutput, context)];
|
|
287
|
-
case 21:
|
|
288
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _m.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
289
|
-
return [3, 41];
|
|
290
|
-
case 22:
|
|
291
|
-
_o = [{}];
|
|
292
|
-
return [4, deserializeAws_json1_0NotUpdatableExceptionResponse(parsedOutput, context)];
|
|
293
|
-
case 23:
|
|
294
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _o.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
295
|
-
return [3, 41];
|
|
296
|
-
case 24:
|
|
297
|
-
_p = [{}];
|
|
298
|
-
return [4, deserializeAws_json1_0PrivateTypeExceptionResponse(parsedOutput, context)];
|
|
299
|
-
case 25:
|
|
300
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _p.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
301
|
-
return [3, 41];
|
|
302
|
-
case 26:
|
|
303
|
-
_q = [{}];
|
|
304
|
-
return [4, deserializeAws_json1_0ResourceConflictExceptionResponse(parsedOutput, context)];
|
|
305
|
-
case 27:
|
|
306
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _q.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
307
|
-
return [3, 41];
|
|
308
|
-
case 28:
|
|
309
|
-
_r = [{}];
|
|
310
|
-
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
311
|
-
case 29:
|
|
312
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _r.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
313
|
-
return [3, 41];
|
|
314
|
-
case 30:
|
|
315
|
-
_s = [{}];
|
|
316
|
-
return [4, deserializeAws_json1_0ServiceInternalErrorExceptionResponse(parsedOutput, context)];
|
|
317
|
-
case 31:
|
|
318
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _s.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
319
|
-
return [3, 41];
|
|
320
|
-
case 32:
|
|
321
|
-
_t = [{}];
|
|
322
|
-
return [4, deserializeAws_json1_0ServiceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
323
|
-
case 33:
|
|
324
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _t.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
325
|
-
return [3, 41];
|
|
326
|
-
case 34:
|
|
327
|
-
_u = [{}];
|
|
328
|
-
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
329
|
-
case 35:
|
|
330
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _u.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
331
|
-
return [3, 41];
|
|
332
|
-
case 36:
|
|
333
|
-
_v = [{}];
|
|
334
|
-
return [4, deserializeAws_json1_0TypeNotFoundExceptionResponse(parsedOutput, context)];
|
|
335
|
-
case 37:
|
|
336
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _v.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
337
|
-
return [3, 41];
|
|
338
|
-
case 38:
|
|
339
|
-
_w = [{}];
|
|
340
|
-
return [4, deserializeAws_json1_0UnsupportedActionExceptionResponse(parsedOutput, context)];
|
|
341
|
-
case 39:
|
|
342
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _w.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
343
|
-
return [3, 41];
|
|
222
|
+
case 2: return [4, deserializeAws_json1_0AlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
223
|
+
case 3: throw _d.sent();
|
|
224
|
+
case 4: return [4, deserializeAws_json1_0ClientTokenConflictExceptionResponse(parsedOutput, context)];
|
|
225
|
+
case 5: throw _d.sent();
|
|
226
|
+
case 6: return [4, deserializeAws_json1_0ConcurrentOperationExceptionResponse(parsedOutput, context)];
|
|
227
|
+
case 7: throw _d.sent();
|
|
228
|
+
case 8: return [4, deserializeAws_json1_0GeneralServiceExceptionResponse(parsedOutput, context)];
|
|
229
|
+
case 9: throw _d.sent();
|
|
230
|
+
case 10: return [4, deserializeAws_json1_0HandlerFailureExceptionResponse(parsedOutput, context)];
|
|
231
|
+
case 11: throw _d.sent();
|
|
232
|
+
case 12: return [4, deserializeAws_json1_0HandlerInternalFailureExceptionResponse(parsedOutput, context)];
|
|
233
|
+
case 13: throw _d.sent();
|
|
234
|
+
case 14: return [4, deserializeAws_json1_0InvalidCredentialsExceptionResponse(parsedOutput, context)];
|
|
235
|
+
case 15: throw _d.sent();
|
|
236
|
+
case 16: return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
237
|
+
case 17: throw _d.sent();
|
|
238
|
+
case 18: return [4, deserializeAws_json1_0NetworkFailureExceptionResponse(parsedOutput, context)];
|
|
239
|
+
case 19: throw _d.sent();
|
|
240
|
+
case 20: return [4, deserializeAws_json1_0NotStabilizedExceptionResponse(parsedOutput, context)];
|
|
241
|
+
case 21: throw _d.sent();
|
|
242
|
+
case 22: return [4, deserializeAws_json1_0NotUpdatableExceptionResponse(parsedOutput, context)];
|
|
243
|
+
case 23: throw _d.sent();
|
|
244
|
+
case 24: return [4, deserializeAws_json1_0PrivateTypeExceptionResponse(parsedOutput, context)];
|
|
245
|
+
case 25: throw _d.sent();
|
|
246
|
+
case 26: return [4, deserializeAws_json1_0ResourceConflictExceptionResponse(parsedOutput, context)];
|
|
247
|
+
case 27: throw _d.sent();
|
|
248
|
+
case 28: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
249
|
+
case 29: throw _d.sent();
|
|
250
|
+
case 30: return [4, deserializeAws_json1_0ServiceInternalErrorExceptionResponse(parsedOutput, context)];
|
|
251
|
+
case 31: throw _d.sent();
|
|
252
|
+
case 32: return [4, deserializeAws_json1_0ServiceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
253
|
+
case 33: throw _d.sent();
|
|
254
|
+
case 34: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
255
|
+
case 35: throw _d.sent();
|
|
256
|
+
case 36: return [4, deserializeAws_json1_0TypeNotFoundExceptionResponse(parsedOutput, context)];
|
|
257
|
+
case 37: throw _d.sent();
|
|
258
|
+
case 38: return [4, deserializeAws_json1_0UnsupportedActionExceptionResponse(parsedOutput, context)];
|
|
259
|
+
case 39: throw _d.sent();
|
|
344
260
|
case 40:
|
|
345
261
|
parsedBody = parsedOutput.body;
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
response
|
|
352
|
-
delete response.Message;
|
|
353
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
262
|
+
response = new __BaseException({
|
|
263
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
264
|
+
$fault: "client",
|
|
265
|
+
$metadata: deserializeMetadata(output),
|
|
266
|
+
});
|
|
267
|
+
throw __decorateServiceException(response, parsedBody);
|
|
354
268
|
}
|
|
355
269
|
});
|
|
356
270
|
}); };
|
|
@@ -373,16 +287,16 @@ export var deserializeAws_json1_0DeleteResourceCommand = function (output, conte
|
|
|
373
287
|
});
|
|
374
288
|
}); };
|
|
375
289
|
var deserializeAws_json1_0DeleteResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
376
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
377
|
-
var
|
|
378
|
-
return __generator(this, function (
|
|
379
|
-
switch (
|
|
290
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
291
|
+
var _c;
|
|
292
|
+
return __generator(this, function (_d) {
|
|
293
|
+
switch (_d.label) {
|
|
380
294
|
case 0:
|
|
381
295
|
_a = [__assign({}, output)];
|
|
382
|
-
|
|
296
|
+
_c = {};
|
|
383
297
|
return [4, parseBody(output.body, context)];
|
|
384
298
|
case 1:
|
|
385
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
299
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
386
300
|
errorCode = "UnknownError";
|
|
387
301
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
388
302
|
_b = errorCode;
|
|
@@ -427,130 +341,52 @@ var deserializeAws_json1_0DeleteResourceCommandError = function (output, context
|
|
|
427
341
|
case "com.amazonaws.cloudcontrol#UnsupportedActionException": return [3, 38];
|
|
428
342
|
}
|
|
429
343
|
return [3, 40];
|
|
430
|
-
case 2:
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
case
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
case 4
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
case
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
case
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
case
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
case
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
case
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
case
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
case
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
case
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
case
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
case
|
|
467
|
-
|
|
468
|
-
return [4, deserializeAws_json1_0InvalidCredentialsExceptionResponse(parsedOutput, context)];
|
|
469
|
-
case 15:
|
|
470
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
471
|
-
return [3, 41];
|
|
472
|
-
case 16:
|
|
473
|
-
_k = [{}];
|
|
474
|
-
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
475
|
-
case 17:
|
|
476
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
477
|
-
return [3, 41];
|
|
478
|
-
case 18:
|
|
479
|
-
_l = [{}];
|
|
480
|
-
return [4, deserializeAws_json1_0NetworkFailureExceptionResponse(parsedOutput, context)];
|
|
481
|
-
case 19:
|
|
482
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
483
|
-
return [3, 41];
|
|
484
|
-
case 20:
|
|
485
|
-
_m = [{}];
|
|
486
|
-
return [4, deserializeAws_json1_0NotStabilizedExceptionResponse(parsedOutput, context)];
|
|
487
|
-
case 21:
|
|
488
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _m.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
489
|
-
return [3, 41];
|
|
490
|
-
case 22:
|
|
491
|
-
_o = [{}];
|
|
492
|
-
return [4, deserializeAws_json1_0NotUpdatableExceptionResponse(parsedOutput, context)];
|
|
493
|
-
case 23:
|
|
494
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _o.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
495
|
-
return [3, 41];
|
|
496
|
-
case 24:
|
|
497
|
-
_p = [{}];
|
|
498
|
-
return [4, deserializeAws_json1_0PrivateTypeExceptionResponse(parsedOutput, context)];
|
|
499
|
-
case 25:
|
|
500
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _p.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
501
|
-
return [3, 41];
|
|
502
|
-
case 26:
|
|
503
|
-
_q = [{}];
|
|
504
|
-
return [4, deserializeAws_json1_0ResourceConflictExceptionResponse(parsedOutput, context)];
|
|
505
|
-
case 27:
|
|
506
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _q.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
507
|
-
return [3, 41];
|
|
508
|
-
case 28:
|
|
509
|
-
_r = [{}];
|
|
510
|
-
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
511
|
-
case 29:
|
|
512
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _r.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
513
|
-
return [3, 41];
|
|
514
|
-
case 30:
|
|
515
|
-
_s = [{}];
|
|
516
|
-
return [4, deserializeAws_json1_0ServiceInternalErrorExceptionResponse(parsedOutput, context)];
|
|
517
|
-
case 31:
|
|
518
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _s.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
519
|
-
return [3, 41];
|
|
520
|
-
case 32:
|
|
521
|
-
_t = [{}];
|
|
522
|
-
return [4, deserializeAws_json1_0ServiceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
523
|
-
case 33:
|
|
524
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _t.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
525
|
-
return [3, 41];
|
|
526
|
-
case 34:
|
|
527
|
-
_u = [{}];
|
|
528
|
-
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
529
|
-
case 35:
|
|
530
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _u.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
531
|
-
return [3, 41];
|
|
532
|
-
case 36:
|
|
533
|
-
_v = [{}];
|
|
534
|
-
return [4, deserializeAws_json1_0TypeNotFoundExceptionResponse(parsedOutput, context)];
|
|
535
|
-
case 37:
|
|
536
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _v.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
537
|
-
return [3, 41];
|
|
538
|
-
case 38:
|
|
539
|
-
_w = [{}];
|
|
540
|
-
return [4, deserializeAws_json1_0UnsupportedActionExceptionResponse(parsedOutput, context)];
|
|
541
|
-
case 39:
|
|
542
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _w.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
543
|
-
return [3, 41];
|
|
344
|
+
case 2: return [4, deserializeAws_json1_0AlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
345
|
+
case 3: throw _d.sent();
|
|
346
|
+
case 4: return [4, deserializeAws_json1_0ClientTokenConflictExceptionResponse(parsedOutput, context)];
|
|
347
|
+
case 5: throw _d.sent();
|
|
348
|
+
case 6: return [4, deserializeAws_json1_0ConcurrentOperationExceptionResponse(parsedOutput, context)];
|
|
349
|
+
case 7: throw _d.sent();
|
|
350
|
+
case 8: return [4, deserializeAws_json1_0GeneralServiceExceptionResponse(parsedOutput, context)];
|
|
351
|
+
case 9: throw _d.sent();
|
|
352
|
+
case 10: return [4, deserializeAws_json1_0HandlerFailureExceptionResponse(parsedOutput, context)];
|
|
353
|
+
case 11: throw _d.sent();
|
|
354
|
+
case 12: return [4, deserializeAws_json1_0HandlerInternalFailureExceptionResponse(parsedOutput, context)];
|
|
355
|
+
case 13: throw _d.sent();
|
|
356
|
+
case 14: return [4, deserializeAws_json1_0InvalidCredentialsExceptionResponse(parsedOutput, context)];
|
|
357
|
+
case 15: throw _d.sent();
|
|
358
|
+
case 16: return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
359
|
+
case 17: throw _d.sent();
|
|
360
|
+
case 18: return [4, deserializeAws_json1_0NetworkFailureExceptionResponse(parsedOutput, context)];
|
|
361
|
+
case 19: throw _d.sent();
|
|
362
|
+
case 20: return [4, deserializeAws_json1_0NotStabilizedExceptionResponse(parsedOutput, context)];
|
|
363
|
+
case 21: throw _d.sent();
|
|
364
|
+
case 22: return [4, deserializeAws_json1_0NotUpdatableExceptionResponse(parsedOutput, context)];
|
|
365
|
+
case 23: throw _d.sent();
|
|
366
|
+
case 24: return [4, deserializeAws_json1_0PrivateTypeExceptionResponse(parsedOutput, context)];
|
|
367
|
+
case 25: throw _d.sent();
|
|
368
|
+
case 26: return [4, deserializeAws_json1_0ResourceConflictExceptionResponse(parsedOutput, context)];
|
|
369
|
+
case 27: throw _d.sent();
|
|
370
|
+
case 28: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
371
|
+
case 29: throw _d.sent();
|
|
372
|
+
case 30: return [4, deserializeAws_json1_0ServiceInternalErrorExceptionResponse(parsedOutput, context)];
|
|
373
|
+
case 31: throw _d.sent();
|
|
374
|
+
case 32: return [4, deserializeAws_json1_0ServiceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
375
|
+
case 33: throw _d.sent();
|
|
376
|
+
case 34: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
377
|
+
case 35: throw _d.sent();
|
|
378
|
+
case 36: return [4, deserializeAws_json1_0TypeNotFoundExceptionResponse(parsedOutput, context)];
|
|
379
|
+
case 37: throw _d.sent();
|
|
380
|
+
case 38: return [4, deserializeAws_json1_0UnsupportedActionExceptionResponse(parsedOutput, context)];
|
|
381
|
+
case 39: throw _d.sent();
|
|
544
382
|
case 40:
|
|
545
383
|
parsedBody = parsedOutput.body;
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
response
|
|
552
|
-
delete response.Message;
|
|
553
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
384
|
+
response = new __BaseException({
|
|
385
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
386
|
+
$fault: "client",
|
|
387
|
+
$metadata: deserializeMetadata(output),
|
|
388
|
+
});
|
|
389
|
+
throw __decorateServiceException(response, parsedBody);
|
|
554
390
|
}
|
|
555
391
|
});
|
|
556
392
|
}); };
|
|
@@ -573,16 +409,16 @@ export var deserializeAws_json1_0GetResourceCommand = function (output, context)
|
|
|
573
409
|
});
|
|
574
410
|
}); };
|
|
575
411
|
var deserializeAws_json1_0GetResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
576
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
577
|
-
var
|
|
578
|
-
return __generator(this, function (
|
|
579
|
-
switch (
|
|
412
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
413
|
+
var _c;
|
|
414
|
+
return __generator(this, function (_d) {
|
|
415
|
+
switch (_d.label) {
|
|
580
416
|
case 0:
|
|
581
417
|
_a = [__assign({}, output)];
|
|
582
|
-
|
|
418
|
+
_c = {};
|
|
583
419
|
return [4, parseBody(output.body, context)];
|
|
584
420
|
case 1:
|
|
585
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
421
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
586
422
|
errorCode = "UnknownError";
|
|
587
423
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
588
424
|
_b = errorCode;
|
|
@@ -623,118 +459,48 @@ var deserializeAws_json1_0GetResourceCommandError = function (output, context) {
|
|
|
623
459
|
case "com.amazonaws.cloudcontrol#UnsupportedActionException": return [3, 34];
|
|
624
460
|
}
|
|
625
461
|
return [3, 36];
|
|
626
|
-
case 2:
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
case
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
case 4
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
case
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
case
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
case
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
case
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
case
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
case
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
case
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
case
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
case
|
|
660
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_w.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
661
|
-
return [3, 37];
|
|
662
|
-
case 14:
|
|
663
|
-
_j = [{}];
|
|
664
|
-
return [4, deserializeAws_json1_0NetworkFailureExceptionResponse(parsedOutput, context)];
|
|
665
|
-
case 15:
|
|
666
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_w.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
667
|
-
return [3, 37];
|
|
668
|
-
case 16:
|
|
669
|
-
_k = [{}];
|
|
670
|
-
return [4, deserializeAws_json1_0NotStabilizedExceptionResponse(parsedOutput, context)];
|
|
671
|
-
case 17:
|
|
672
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_w.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
673
|
-
return [3, 37];
|
|
674
|
-
case 18:
|
|
675
|
-
_l = [{}];
|
|
676
|
-
return [4, deserializeAws_json1_0NotUpdatableExceptionResponse(parsedOutput, context)];
|
|
677
|
-
case 19:
|
|
678
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_w.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
679
|
-
return [3, 37];
|
|
680
|
-
case 20:
|
|
681
|
-
_m = [{}];
|
|
682
|
-
return [4, deserializeAws_json1_0PrivateTypeExceptionResponse(parsedOutput, context)];
|
|
683
|
-
case 21:
|
|
684
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _m.concat([(_w.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
685
|
-
return [3, 37];
|
|
686
|
-
case 22:
|
|
687
|
-
_o = [{}];
|
|
688
|
-
return [4, deserializeAws_json1_0ResourceConflictExceptionResponse(parsedOutput, context)];
|
|
689
|
-
case 23:
|
|
690
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _o.concat([(_w.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
691
|
-
return [3, 37];
|
|
692
|
-
case 24:
|
|
693
|
-
_p = [{}];
|
|
694
|
-
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
695
|
-
case 25:
|
|
696
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _p.concat([(_w.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
697
|
-
return [3, 37];
|
|
698
|
-
case 26:
|
|
699
|
-
_q = [{}];
|
|
700
|
-
return [4, deserializeAws_json1_0ServiceInternalErrorExceptionResponse(parsedOutput, context)];
|
|
701
|
-
case 27:
|
|
702
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _q.concat([(_w.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
703
|
-
return [3, 37];
|
|
704
|
-
case 28:
|
|
705
|
-
_r = [{}];
|
|
706
|
-
return [4, deserializeAws_json1_0ServiceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
707
|
-
case 29:
|
|
708
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _r.concat([(_w.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
709
|
-
return [3, 37];
|
|
710
|
-
case 30:
|
|
711
|
-
_s = [{}];
|
|
712
|
-
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
713
|
-
case 31:
|
|
714
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _s.concat([(_w.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
715
|
-
return [3, 37];
|
|
716
|
-
case 32:
|
|
717
|
-
_t = [{}];
|
|
718
|
-
return [4, deserializeAws_json1_0TypeNotFoundExceptionResponse(parsedOutput, context)];
|
|
719
|
-
case 33:
|
|
720
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _t.concat([(_w.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
721
|
-
return [3, 37];
|
|
722
|
-
case 34:
|
|
723
|
-
_u = [{}];
|
|
724
|
-
return [4, deserializeAws_json1_0UnsupportedActionExceptionResponse(parsedOutput, context)];
|
|
725
|
-
case 35:
|
|
726
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _u.concat([(_w.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
727
|
-
return [3, 37];
|
|
462
|
+
case 2: return [4, deserializeAws_json1_0AlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
463
|
+
case 3: throw _d.sent();
|
|
464
|
+
case 4: return [4, deserializeAws_json1_0GeneralServiceExceptionResponse(parsedOutput, context)];
|
|
465
|
+
case 5: throw _d.sent();
|
|
466
|
+
case 6: return [4, deserializeAws_json1_0HandlerFailureExceptionResponse(parsedOutput, context)];
|
|
467
|
+
case 7: throw _d.sent();
|
|
468
|
+
case 8: return [4, deserializeAws_json1_0HandlerInternalFailureExceptionResponse(parsedOutput, context)];
|
|
469
|
+
case 9: throw _d.sent();
|
|
470
|
+
case 10: return [4, deserializeAws_json1_0InvalidCredentialsExceptionResponse(parsedOutput, context)];
|
|
471
|
+
case 11: throw _d.sent();
|
|
472
|
+
case 12: return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
473
|
+
case 13: throw _d.sent();
|
|
474
|
+
case 14: return [4, deserializeAws_json1_0NetworkFailureExceptionResponse(parsedOutput, context)];
|
|
475
|
+
case 15: throw _d.sent();
|
|
476
|
+
case 16: return [4, deserializeAws_json1_0NotStabilizedExceptionResponse(parsedOutput, context)];
|
|
477
|
+
case 17: throw _d.sent();
|
|
478
|
+
case 18: return [4, deserializeAws_json1_0NotUpdatableExceptionResponse(parsedOutput, context)];
|
|
479
|
+
case 19: throw _d.sent();
|
|
480
|
+
case 20: return [4, deserializeAws_json1_0PrivateTypeExceptionResponse(parsedOutput, context)];
|
|
481
|
+
case 21: throw _d.sent();
|
|
482
|
+
case 22: return [4, deserializeAws_json1_0ResourceConflictExceptionResponse(parsedOutput, context)];
|
|
483
|
+
case 23: throw _d.sent();
|
|
484
|
+
case 24: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
485
|
+
case 25: throw _d.sent();
|
|
486
|
+
case 26: return [4, deserializeAws_json1_0ServiceInternalErrorExceptionResponse(parsedOutput, context)];
|
|
487
|
+
case 27: throw _d.sent();
|
|
488
|
+
case 28: return [4, deserializeAws_json1_0ServiceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
489
|
+
case 29: throw _d.sent();
|
|
490
|
+
case 30: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
491
|
+
case 31: throw _d.sent();
|
|
492
|
+
case 32: return [4, deserializeAws_json1_0TypeNotFoundExceptionResponse(parsedOutput, context)];
|
|
493
|
+
case 33: throw _d.sent();
|
|
494
|
+
case 34: return [4, deserializeAws_json1_0UnsupportedActionExceptionResponse(parsedOutput, context)];
|
|
495
|
+
case 35: throw _d.sent();
|
|
728
496
|
case 36:
|
|
729
497
|
parsedBody = parsedOutput.body;
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
response
|
|
736
|
-
delete response.Message;
|
|
737
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
498
|
+
response = new __BaseException({
|
|
499
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
500
|
+
$fault: "client",
|
|
501
|
+
$metadata: deserializeMetadata(output),
|
|
502
|
+
});
|
|
503
|
+
throw __decorateServiceException(response, parsedBody);
|
|
738
504
|
}
|
|
739
505
|
});
|
|
740
506
|
}); };
|
|
@@ -757,16 +523,16 @@ export var deserializeAws_json1_0GetResourceRequestStatusCommand = function (out
|
|
|
757
523
|
});
|
|
758
524
|
}); };
|
|
759
525
|
var deserializeAws_json1_0GetResourceRequestStatusCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
760
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
761
|
-
var
|
|
762
|
-
return __generator(this, function (
|
|
763
|
-
switch (
|
|
526
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
527
|
+
var _c;
|
|
528
|
+
return __generator(this, function (_d) {
|
|
529
|
+
switch (_d.label) {
|
|
764
530
|
case 0:
|
|
765
531
|
_a = [__assign({}, output)];
|
|
766
|
-
|
|
532
|
+
_c = {};
|
|
767
533
|
return [4, parseBody(output.body, context)];
|
|
768
534
|
case 1:
|
|
769
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
535
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
770
536
|
errorCode = "UnknownError";
|
|
771
537
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
772
538
|
_b = errorCode;
|
|
@@ -775,22 +541,16 @@ var deserializeAws_json1_0GetResourceRequestStatusCommandError = function (outpu
|
|
|
775
541
|
case "com.amazonaws.cloudcontrol#RequestTokenNotFoundException": return [3, 2];
|
|
776
542
|
}
|
|
777
543
|
return [3, 4];
|
|
778
|
-
case 2:
|
|
779
|
-
|
|
780
|
-
return [4, deserializeAws_json1_0RequestTokenNotFoundExceptionResponse(parsedOutput, context)];
|
|
781
|
-
case 3:
|
|
782
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
783
|
-
return [3, 5];
|
|
544
|
+
case 2: return [4, deserializeAws_json1_0RequestTokenNotFoundExceptionResponse(parsedOutput, context)];
|
|
545
|
+
case 3: throw _d.sent();
|
|
784
546
|
case 4:
|
|
785
547
|
parsedBody = parsedOutput.body;
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
response
|
|
792
|
-
delete response.Message;
|
|
793
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
548
|
+
response = new __BaseException({
|
|
549
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
550
|
+
$fault: "client",
|
|
551
|
+
$metadata: deserializeMetadata(output),
|
|
552
|
+
});
|
|
553
|
+
throw __decorateServiceException(response, parsedBody);
|
|
794
554
|
}
|
|
795
555
|
});
|
|
796
556
|
}); };
|
|
@@ -813,7 +573,7 @@ export var deserializeAws_json1_0ListResourceRequestsCommand = function (output,
|
|
|
813
573
|
});
|
|
814
574
|
}); };
|
|
815
575
|
var deserializeAws_json1_0ListResourceRequestsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
816
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
576
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
817
577
|
var _b;
|
|
818
578
|
return __generator(this, function (_c) {
|
|
819
579
|
switch (_c.label) {
|
|
@@ -828,13 +588,14 @@ var deserializeAws_json1_0ListResourceRequestsCommandError = function (output, c
|
|
|
828
588
|
switch (errorCode) {
|
|
829
589
|
default:
|
|
830
590
|
parsedBody = parsedOutput.body;
|
|
831
|
-
|
|
832
|
-
|
|
591
|
+
response = new __BaseException({
|
|
592
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
593
|
+
$fault: "client",
|
|
594
|
+
$metadata: deserializeMetadata(output),
|
|
595
|
+
});
|
|
596
|
+
throw __decorateServiceException(response, parsedBody);
|
|
833
597
|
}
|
|
834
|
-
|
|
835
|
-
response.message = message;
|
|
836
|
-
delete response.Message;
|
|
837
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
598
|
+
return [2];
|
|
838
599
|
}
|
|
839
600
|
});
|
|
840
601
|
}); };
|
|
@@ -857,16 +618,16 @@ export var deserializeAws_json1_0ListResourcesCommand = function (output, contex
|
|
|
857
618
|
});
|
|
858
619
|
}); };
|
|
859
620
|
var deserializeAws_json1_0ListResourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
860
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
861
|
-
var
|
|
862
|
-
return __generator(this, function (
|
|
863
|
-
switch (
|
|
621
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
622
|
+
var _c;
|
|
623
|
+
return __generator(this, function (_d) {
|
|
624
|
+
switch (_d.label) {
|
|
864
625
|
case 0:
|
|
865
626
|
_a = [__assign({}, output)];
|
|
866
|
-
|
|
627
|
+
_c = {};
|
|
867
628
|
return [4, parseBody(output.body, context)];
|
|
868
629
|
case 1:
|
|
869
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
630
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
870
631
|
errorCode = "UnknownError";
|
|
871
632
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
872
633
|
_b = errorCode;
|
|
@@ -907,118 +668,48 @@ var deserializeAws_json1_0ListResourcesCommandError = function (output, context)
|
|
|
907
668
|
case "com.amazonaws.cloudcontrol#UnsupportedActionException": return [3, 34];
|
|
908
669
|
}
|
|
909
670
|
return [3, 36];
|
|
910
|
-
case 2:
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
case
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
case 4
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
case
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
case
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
case
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
case
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
case
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
case
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
case
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
case
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
case
|
|
944
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_w.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
945
|
-
return [3, 37];
|
|
946
|
-
case 14:
|
|
947
|
-
_j = [{}];
|
|
948
|
-
return [4, deserializeAws_json1_0NetworkFailureExceptionResponse(parsedOutput, context)];
|
|
949
|
-
case 15:
|
|
950
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_w.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
951
|
-
return [3, 37];
|
|
952
|
-
case 16:
|
|
953
|
-
_k = [{}];
|
|
954
|
-
return [4, deserializeAws_json1_0NotStabilizedExceptionResponse(parsedOutput, context)];
|
|
955
|
-
case 17:
|
|
956
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_w.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
957
|
-
return [3, 37];
|
|
958
|
-
case 18:
|
|
959
|
-
_l = [{}];
|
|
960
|
-
return [4, deserializeAws_json1_0NotUpdatableExceptionResponse(parsedOutput, context)];
|
|
961
|
-
case 19:
|
|
962
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_w.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
963
|
-
return [3, 37];
|
|
964
|
-
case 20:
|
|
965
|
-
_m = [{}];
|
|
966
|
-
return [4, deserializeAws_json1_0PrivateTypeExceptionResponse(parsedOutput, context)];
|
|
967
|
-
case 21:
|
|
968
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _m.concat([(_w.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
969
|
-
return [3, 37];
|
|
970
|
-
case 22:
|
|
971
|
-
_o = [{}];
|
|
972
|
-
return [4, deserializeAws_json1_0ResourceConflictExceptionResponse(parsedOutput, context)];
|
|
973
|
-
case 23:
|
|
974
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _o.concat([(_w.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
975
|
-
return [3, 37];
|
|
976
|
-
case 24:
|
|
977
|
-
_p = [{}];
|
|
978
|
-
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
979
|
-
case 25:
|
|
980
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _p.concat([(_w.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
981
|
-
return [3, 37];
|
|
982
|
-
case 26:
|
|
983
|
-
_q = [{}];
|
|
984
|
-
return [4, deserializeAws_json1_0ServiceInternalErrorExceptionResponse(parsedOutput, context)];
|
|
985
|
-
case 27:
|
|
986
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _q.concat([(_w.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
987
|
-
return [3, 37];
|
|
988
|
-
case 28:
|
|
989
|
-
_r = [{}];
|
|
990
|
-
return [4, deserializeAws_json1_0ServiceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
991
|
-
case 29:
|
|
992
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _r.concat([(_w.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
993
|
-
return [3, 37];
|
|
994
|
-
case 30:
|
|
995
|
-
_s = [{}];
|
|
996
|
-
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
997
|
-
case 31:
|
|
998
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _s.concat([(_w.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
999
|
-
return [3, 37];
|
|
1000
|
-
case 32:
|
|
1001
|
-
_t = [{}];
|
|
1002
|
-
return [4, deserializeAws_json1_0TypeNotFoundExceptionResponse(parsedOutput, context)];
|
|
1003
|
-
case 33:
|
|
1004
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _t.concat([(_w.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1005
|
-
return [3, 37];
|
|
1006
|
-
case 34:
|
|
1007
|
-
_u = [{}];
|
|
1008
|
-
return [4, deserializeAws_json1_0UnsupportedActionExceptionResponse(parsedOutput, context)];
|
|
1009
|
-
case 35:
|
|
1010
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _u.concat([(_w.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1011
|
-
return [3, 37];
|
|
671
|
+
case 2: return [4, deserializeAws_json1_0AlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
672
|
+
case 3: throw _d.sent();
|
|
673
|
+
case 4: return [4, deserializeAws_json1_0GeneralServiceExceptionResponse(parsedOutput, context)];
|
|
674
|
+
case 5: throw _d.sent();
|
|
675
|
+
case 6: return [4, deserializeAws_json1_0HandlerFailureExceptionResponse(parsedOutput, context)];
|
|
676
|
+
case 7: throw _d.sent();
|
|
677
|
+
case 8: return [4, deserializeAws_json1_0HandlerInternalFailureExceptionResponse(parsedOutput, context)];
|
|
678
|
+
case 9: throw _d.sent();
|
|
679
|
+
case 10: return [4, deserializeAws_json1_0InvalidCredentialsExceptionResponse(parsedOutput, context)];
|
|
680
|
+
case 11: throw _d.sent();
|
|
681
|
+
case 12: return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
682
|
+
case 13: throw _d.sent();
|
|
683
|
+
case 14: return [4, deserializeAws_json1_0NetworkFailureExceptionResponse(parsedOutput, context)];
|
|
684
|
+
case 15: throw _d.sent();
|
|
685
|
+
case 16: return [4, deserializeAws_json1_0NotStabilizedExceptionResponse(parsedOutput, context)];
|
|
686
|
+
case 17: throw _d.sent();
|
|
687
|
+
case 18: return [4, deserializeAws_json1_0NotUpdatableExceptionResponse(parsedOutput, context)];
|
|
688
|
+
case 19: throw _d.sent();
|
|
689
|
+
case 20: return [4, deserializeAws_json1_0PrivateTypeExceptionResponse(parsedOutput, context)];
|
|
690
|
+
case 21: throw _d.sent();
|
|
691
|
+
case 22: return [4, deserializeAws_json1_0ResourceConflictExceptionResponse(parsedOutput, context)];
|
|
692
|
+
case 23: throw _d.sent();
|
|
693
|
+
case 24: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
694
|
+
case 25: throw _d.sent();
|
|
695
|
+
case 26: return [4, deserializeAws_json1_0ServiceInternalErrorExceptionResponse(parsedOutput, context)];
|
|
696
|
+
case 27: throw _d.sent();
|
|
697
|
+
case 28: return [4, deserializeAws_json1_0ServiceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
698
|
+
case 29: throw _d.sent();
|
|
699
|
+
case 30: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
700
|
+
case 31: throw _d.sent();
|
|
701
|
+
case 32: return [4, deserializeAws_json1_0TypeNotFoundExceptionResponse(parsedOutput, context)];
|
|
702
|
+
case 33: throw _d.sent();
|
|
703
|
+
case 34: return [4, deserializeAws_json1_0UnsupportedActionExceptionResponse(parsedOutput, context)];
|
|
704
|
+
case 35: throw _d.sent();
|
|
1012
705
|
case 36:
|
|
1013
706
|
parsedBody = parsedOutput.body;
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
response
|
|
1020
|
-
delete response.Message;
|
|
1021
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
707
|
+
response = new __BaseException({
|
|
708
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
709
|
+
$fault: "client",
|
|
710
|
+
$metadata: deserializeMetadata(output),
|
|
711
|
+
});
|
|
712
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1022
713
|
}
|
|
1023
714
|
});
|
|
1024
715
|
}); };
|
|
@@ -1041,16 +732,16 @@ export var deserializeAws_json1_0UpdateResourceCommand = function (output, conte
|
|
|
1041
732
|
});
|
|
1042
733
|
}); };
|
|
1043
734
|
var deserializeAws_json1_0UpdateResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1044
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1045
|
-
var
|
|
1046
|
-
return __generator(this, function (
|
|
1047
|
-
switch (
|
|
735
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
736
|
+
var _c;
|
|
737
|
+
return __generator(this, function (_d) {
|
|
738
|
+
switch (_d.label) {
|
|
1048
739
|
case 0:
|
|
1049
740
|
_a = [__assign({}, output)];
|
|
1050
|
-
|
|
741
|
+
_c = {};
|
|
1051
742
|
return [4, parseBody(output.body, context)];
|
|
1052
743
|
case 1:
|
|
1053
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
744
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1054
745
|
errorCode = "UnknownError";
|
|
1055
746
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1056
747
|
_b = errorCode;
|
|
@@ -1095,320 +786,242 @@ var deserializeAws_json1_0UpdateResourceCommandError = function (output, context
|
|
|
1095
786
|
case "com.amazonaws.cloudcontrol#UnsupportedActionException": return [3, 38];
|
|
1096
787
|
}
|
|
1097
788
|
return [3, 40];
|
|
1098
|
-
case 2:
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
case
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
case 4
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
case
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
case
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
case
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
case
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
case
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
case
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
case
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
case
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
case
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
case
|
|
1135
|
-
|
|
1136
|
-
return [4, deserializeAws_json1_0InvalidCredentialsExceptionResponse(parsedOutput, context)];
|
|
1137
|
-
case 15:
|
|
1138
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1139
|
-
return [3, 41];
|
|
1140
|
-
case 16:
|
|
1141
|
-
_k = [{}];
|
|
1142
|
-
return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1143
|
-
case 17:
|
|
1144
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1145
|
-
return [3, 41];
|
|
1146
|
-
case 18:
|
|
1147
|
-
_l = [{}];
|
|
1148
|
-
return [4, deserializeAws_json1_0NetworkFailureExceptionResponse(parsedOutput, context)];
|
|
1149
|
-
case 19:
|
|
1150
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1151
|
-
return [3, 41];
|
|
1152
|
-
case 20:
|
|
1153
|
-
_m = [{}];
|
|
1154
|
-
return [4, deserializeAws_json1_0NotStabilizedExceptionResponse(parsedOutput, context)];
|
|
1155
|
-
case 21:
|
|
1156
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _m.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1157
|
-
return [3, 41];
|
|
1158
|
-
case 22:
|
|
1159
|
-
_o = [{}];
|
|
1160
|
-
return [4, deserializeAws_json1_0NotUpdatableExceptionResponse(parsedOutput, context)];
|
|
1161
|
-
case 23:
|
|
1162
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _o.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1163
|
-
return [3, 41];
|
|
1164
|
-
case 24:
|
|
1165
|
-
_p = [{}];
|
|
1166
|
-
return [4, deserializeAws_json1_0PrivateTypeExceptionResponse(parsedOutput, context)];
|
|
1167
|
-
case 25:
|
|
1168
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _p.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1169
|
-
return [3, 41];
|
|
1170
|
-
case 26:
|
|
1171
|
-
_q = [{}];
|
|
1172
|
-
return [4, deserializeAws_json1_0ResourceConflictExceptionResponse(parsedOutput, context)];
|
|
1173
|
-
case 27:
|
|
1174
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _q.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1175
|
-
return [3, 41];
|
|
1176
|
-
case 28:
|
|
1177
|
-
_r = [{}];
|
|
1178
|
-
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1179
|
-
case 29:
|
|
1180
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _r.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1181
|
-
return [3, 41];
|
|
1182
|
-
case 30:
|
|
1183
|
-
_s = [{}];
|
|
1184
|
-
return [4, deserializeAws_json1_0ServiceInternalErrorExceptionResponse(parsedOutput, context)];
|
|
1185
|
-
case 31:
|
|
1186
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _s.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1187
|
-
return [3, 41];
|
|
1188
|
-
case 32:
|
|
1189
|
-
_t = [{}];
|
|
1190
|
-
return [4, deserializeAws_json1_0ServiceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1191
|
-
case 33:
|
|
1192
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _t.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1193
|
-
return [3, 41];
|
|
1194
|
-
case 34:
|
|
1195
|
-
_u = [{}];
|
|
1196
|
-
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1197
|
-
case 35:
|
|
1198
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _u.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1199
|
-
return [3, 41];
|
|
1200
|
-
case 36:
|
|
1201
|
-
_v = [{}];
|
|
1202
|
-
return [4, deserializeAws_json1_0TypeNotFoundExceptionResponse(parsedOutput, context)];
|
|
1203
|
-
case 37:
|
|
1204
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _v.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1205
|
-
return [3, 41];
|
|
1206
|
-
case 38:
|
|
1207
|
-
_w = [{}];
|
|
1208
|
-
return [4, deserializeAws_json1_0UnsupportedActionExceptionResponse(parsedOutput, context)];
|
|
1209
|
-
case 39:
|
|
1210
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _w.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1211
|
-
return [3, 41];
|
|
789
|
+
case 2: return [4, deserializeAws_json1_0AlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
790
|
+
case 3: throw _d.sent();
|
|
791
|
+
case 4: return [4, deserializeAws_json1_0ClientTokenConflictExceptionResponse(parsedOutput, context)];
|
|
792
|
+
case 5: throw _d.sent();
|
|
793
|
+
case 6: return [4, deserializeAws_json1_0ConcurrentOperationExceptionResponse(parsedOutput, context)];
|
|
794
|
+
case 7: throw _d.sent();
|
|
795
|
+
case 8: return [4, deserializeAws_json1_0GeneralServiceExceptionResponse(parsedOutput, context)];
|
|
796
|
+
case 9: throw _d.sent();
|
|
797
|
+
case 10: return [4, deserializeAws_json1_0HandlerFailureExceptionResponse(parsedOutput, context)];
|
|
798
|
+
case 11: throw _d.sent();
|
|
799
|
+
case 12: return [4, deserializeAws_json1_0HandlerInternalFailureExceptionResponse(parsedOutput, context)];
|
|
800
|
+
case 13: throw _d.sent();
|
|
801
|
+
case 14: return [4, deserializeAws_json1_0InvalidCredentialsExceptionResponse(parsedOutput, context)];
|
|
802
|
+
case 15: throw _d.sent();
|
|
803
|
+
case 16: return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
804
|
+
case 17: throw _d.sent();
|
|
805
|
+
case 18: return [4, deserializeAws_json1_0NetworkFailureExceptionResponse(parsedOutput, context)];
|
|
806
|
+
case 19: throw _d.sent();
|
|
807
|
+
case 20: return [4, deserializeAws_json1_0NotStabilizedExceptionResponse(parsedOutput, context)];
|
|
808
|
+
case 21: throw _d.sent();
|
|
809
|
+
case 22: return [4, deserializeAws_json1_0NotUpdatableExceptionResponse(parsedOutput, context)];
|
|
810
|
+
case 23: throw _d.sent();
|
|
811
|
+
case 24: return [4, deserializeAws_json1_0PrivateTypeExceptionResponse(parsedOutput, context)];
|
|
812
|
+
case 25: throw _d.sent();
|
|
813
|
+
case 26: return [4, deserializeAws_json1_0ResourceConflictExceptionResponse(parsedOutput, context)];
|
|
814
|
+
case 27: throw _d.sent();
|
|
815
|
+
case 28: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
816
|
+
case 29: throw _d.sent();
|
|
817
|
+
case 30: return [4, deserializeAws_json1_0ServiceInternalErrorExceptionResponse(parsedOutput, context)];
|
|
818
|
+
case 31: throw _d.sent();
|
|
819
|
+
case 32: return [4, deserializeAws_json1_0ServiceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
820
|
+
case 33: throw _d.sent();
|
|
821
|
+
case 34: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
822
|
+
case 35: throw _d.sent();
|
|
823
|
+
case 36: return [4, deserializeAws_json1_0TypeNotFoundExceptionResponse(parsedOutput, context)];
|
|
824
|
+
case 37: throw _d.sent();
|
|
825
|
+
case 38: return [4, deserializeAws_json1_0UnsupportedActionExceptionResponse(parsedOutput, context)];
|
|
826
|
+
case 39: throw _d.sent();
|
|
1212
827
|
case 40:
|
|
1213
828
|
parsedBody = parsedOutput.body;
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
response
|
|
1220
|
-
delete response.Message;
|
|
1221
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
829
|
+
response = new __BaseException({
|
|
830
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
831
|
+
$fault: "client",
|
|
832
|
+
$metadata: deserializeMetadata(output),
|
|
833
|
+
});
|
|
834
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1222
835
|
}
|
|
1223
836
|
});
|
|
1224
837
|
}); };
|
|
1225
838
|
var deserializeAws_json1_0AlreadyExistsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1226
|
-
var body, deserialized,
|
|
839
|
+
var body, deserialized, exception;
|
|
1227
840
|
return __generator(this, function (_a) {
|
|
1228
841
|
body = parsedOutput.body;
|
|
1229
842
|
deserialized = deserializeAws_json1_0AlreadyExistsException(body, context);
|
|
1230
|
-
|
|
1231
|
-
return [2,
|
|
843
|
+
exception = new AlreadyExistsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
844
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1232
845
|
});
|
|
1233
846
|
}); };
|
|
1234
847
|
var deserializeAws_json1_0ClientTokenConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1235
|
-
var body, deserialized,
|
|
848
|
+
var body, deserialized, exception;
|
|
1236
849
|
return __generator(this, function (_a) {
|
|
1237
850
|
body = parsedOutput.body;
|
|
1238
851
|
deserialized = deserializeAws_json1_0ClientTokenConflictException(body, context);
|
|
1239
|
-
|
|
1240
|
-
return [2,
|
|
852
|
+
exception = new ClientTokenConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
853
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1241
854
|
});
|
|
1242
855
|
}); };
|
|
1243
856
|
var deserializeAws_json1_0ConcurrentModificationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1244
|
-
var body, deserialized,
|
|
857
|
+
var body, deserialized, exception;
|
|
1245
858
|
return __generator(this, function (_a) {
|
|
1246
859
|
body = parsedOutput.body;
|
|
1247
860
|
deserialized = deserializeAws_json1_0ConcurrentModificationException(body, context);
|
|
1248
|
-
|
|
1249
|
-
return [2,
|
|
861
|
+
exception = new ConcurrentModificationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
862
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1250
863
|
});
|
|
1251
864
|
}); };
|
|
1252
865
|
var deserializeAws_json1_0ConcurrentOperationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1253
|
-
var body, deserialized,
|
|
866
|
+
var body, deserialized, exception;
|
|
1254
867
|
return __generator(this, function (_a) {
|
|
1255
868
|
body = parsedOutput.body;
|
|
1256
869
|
deserialized = deserializeAws_json1_0ConcurrentOperationException(body, context);
|
|
1257
|
-
|
|
1258
|
-
return [2,
|
|
870
|
+
exception = new ConcurrentOperationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
871
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1259
872
|
});
|
|
1260
873
|
}); };
|
|
1261
874
|
var deserializeAws_json1_0GeneralServiceExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1262
|
-
var body, deserialized,
|
|
875
|
+
var body, deserialized, exception;
|
|
1263
876
|
return __generator(this, function (_a) {
|
|
1264
877
|
body = parsedOutput.body;
|
|
1265
878
|
deserialized = deserializeAws_json1_0GeneralServiceException(body, context);
|
|
1266
|
-
|
|
1267
|
-
return [2,
|
|
879
|
+
exception = new GeneralServiceException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
880
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1268
881
|
});
|
|
1269
882
|
}); };
|
|
1270
883
|
var deserializeAws_json1_0HandlerFailureExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1271
|
-
var body, deserialized,
|
|
884
|
+
var body, deserialized, exception;
|
|
1272
885
|
return __generator(this, function (_a) {
|
|
1273
886
|
body = parsedOutput.body;
|
|
1274
887
|
deserialized = deserializeAws_json1_0HandlerFailureException(body, context);
|
|
1275
|
-
|
|
1276
|
-
return [2,
|
|
888
|
+
exception = new HandlerFailureException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
889
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1277
890
|
});
|
|
1278
891
|
}); };
|
|
1279
892
|
var deserializeAws_json1_0HandlerInternalFailureExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1280
|
-
var body, deserialized,
|
|
893
|
+
var body, deserialized, exception;
|
|
1281
894
|
return __generator(this, function (_a) {
|
|
1282
895
|
body = parsedOutput.body;
|
|
1283
896
|
deserialized = deserializeAws_json1_0HandlerInternalFailureException(body, context);
|
|
1284
|
-
|
|
1285
|
-
return [2,
|
|
897
|
+
exception = new HandlerInternalFailureException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
898
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1286
899
|
});
|
|
1287
900
|
}); };
|
|
1288
901
|
var deserializeAws_json1_0InvalidCredentialsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1289
|
-
var body, deserialized,
|
|
902
|
+
var body, deserialized, exception;
|
|
1290
903
|
return __generator(this, function (_a) {
|
|
1291
904
|
body = parsedOutput.body;
|
|
1292
905
|
deserialized = deserializeAws_json1_0InvalidCredentialsException(body, context);
|
|
1293
|
-
|
|
1294
|
-
return [2,
|
|
906
|
+
exception = new InvalidCredentialsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
907
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1295
908
|
});
|
|
1296
909
|
}); };
|
|
1297
910
|
var deserializeAws_json1_0InvalidRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1298
|
-
var body, deserialized,
|
|
911
|
+
var body, deserialized, exception;
|
|
1299
912
|
return __generator(this, function (_a) {
|
|
1300
913
|
body = parsedOutput.body;
|
|
1301
914
|
deserialized = deserializeAws_json1_0InvalidRequestException(body, context);
|
|
1302
|
-
|
|
1303
|
-
return [2,
|
|
915
|
+
exception = new InvalidRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
916
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1304
917
|
});
|
|
1305
918
|
}); };
|
|
1306
919
|
var deserializeAws_json1_0NetworkFailureExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1307
|
-
var body, deserialized,
|
|
920
|
+
var body, deserialized, exception;
|
|
1308
921
|
return __generator(this, function (_a) {
|
|
1309
922
|
body = parsedOutput.body;
|
|
1310
923
|
deserialized = deserializeAws_json1_0NetworkFailureException(body, context);
|
|
1311
|
-
|
|
1312
|
-
return [2,
|
|
924
|
+
exception = new NetworkFailureException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
925
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1313
926
|
});
|
|
1314
927
|
}); };
|
|
1315
928
|
var deserializeAws_json1_0NotStabilizedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1316
|
-
var body, deserialized,
|
|
929
|
+
var body, deserialized, exception;
|
|
1317
930
|
return __generator(this, function (_a) {
|
|
1318
931
|
body = parsedOutput.body;
|
|
1319
932
|
deserialized = deserializeAws_json1_0NotStabilizedException(body, context);
|
|
1320
|
-
|
|
1321
|
-
return [2,
|
|
933
|
+
exception = new NotStabilizedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
934
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1322
935
|
});
|
|
1323
936
|
}); };
|
|
1324
937
|
var deserializeAws_json1_0NotUpdatableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1325
|
-
var body, deserialized,
|
|
938
|
+
var body, deserialized, exception;
|
|
1326
939
|
return __generator(this, function (_a) {
|
|
1327
940
|
body = parsedOutput.body;
|
|
1328
941
|
deserialized = deserializeAws_json1_0NotUpdatableException(body, context);
|
|
1329
|
-
|
|
1330
|
-
return [2,
|
|
942
|
+
exception = new NotUpdatableException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
943
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1331
944
|
});
|
|
1332
945
|
}); };
|
|
1333
946
|
var deserializeAws_json1_0PrivateTypeExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1334
|
-
var body, deserialized,
|
|
947
|
+
var body, deserialized, exception;
|
|
1335
948
|
return __generator(this, function (_a) {
|
|
1336
949
|
body = parsedOutput.body;
|
|
1337
950
|
deserialized = deserializeAws_json1_0PrivateTypeException(body, context);
|
|
1338
|
-
|
|
1339
|
-
return [2,
|
|
951
|
+
exception = new PrivateTypeException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
952
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1340
953
|
});
|
|
1341
954
|
}); };
|
|
1342
955
|
var deserializeAws_json1_0RequestTokenNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1343
|
-
var body, deserialized,
|
|
956
|
+
var body, deserialized, exception;
|
|
1344
957
|
return __generator(this, function (_a) {
|
|
1345
958
|
body = parsedOutput.body;
|
|
1346
959
|
deserialized = deserializeAws_json1_0RequestTokenNotFoundException(body, context);
|
|
1347
|
-
|
|
1348
|
-
return [2,
|
|
960
|
+
exception = new RequestTokenNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
961
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1349
962
|
});
|
|
1350
963
|
}); };
|
|
1351
964
|
var deserializeAws_json1_0ResourceConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1352
|
-
var body, deserialized,
|
|
965
|
+
var body, deserialized, exception;
|
|
1353
966
|
return __generator(this, function (_a) {
|
|
1354
967
|
body = parsedOutput.body;
|
|
1355
968
|
deserialized = deserializeAws_json1_0ResourceConflictException(body, context);
|
|
1356
|
-
|
|
1357
|
-
return [2,
|
|
969
|
+
exception = new ResourceConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
970
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1358
971
|
});
|
|
1359
972
|
}); };
|
|
1360
973
|
var deserializeAws_json1_0ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1361
|
-
var body, deserialized,
|
|
974
|
+
var body, deserialized, exception;
|
|
1362
975
|
return __generator(this, function (_a) {
|
|
1363
976
|
body = parsedOutput.body;
|
|
1364
977
|
deserialized = deserializeAws_json1_0ResourceNotFoundException(body, context);
|
|
1365
|
-
|
|
1366
|
-
return [2,
|
|
978
|
+
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
979
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1367
980
|
});
|
|
1368
981
|
}); };
|
|
1369
982
|
var deserializeAws_json1_0ServiceInternalErrorExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1370
|
-
var body, deserialized,
|
|
983
|
+
var body, deserialized, exception;
|
|
1371
984
|
return __generator(this, function (_a) {
|
|
1372
985
|
body = parsedOutput.body;
|
|
1373
986
|
deserialized = deserializeAws_json1_0ServiceInternalErrorException(body, context);
|
|
1374
|
-
|
|
1375
|
-
return [2,
|
|
987
|
+
exception = new ServiceInternalErrorException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
988
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1376
989
|
});
|
|
1377
990
|
}); };
|
|
1378
991
|
var deserializeAws_json1_0ServiceLimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1379
|
-
var body, deserialized,
|
|
992
|
+
var body, deserialized, exception;
|
|
1380
993
|
return __generator(this, function (_a) {
|
|
1381
994
|
body = parsedOutput.body;
|
|
1382
995
|
deserialized = deserializeAws_json1_0ServiceLimitExceededException(body, context);
|
|
1383
|
-
|
|
1384
|
-
return [2,
|
|
996
|
+
exception = new ServiceLimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
997
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1385
998
|
});
|
|
1386
999
|
}); };
|
|
1387
1000
|
var deserializeAws_json1_0ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1388
|
-
var body, deserialized,
|
|
1001
|
+
var body, deserialized, exception;
|
|
1389
1002
|
return __generator(this, function (_a) {
|
|
1390
1003
|
body = parsedOutput.body;
|
|
1391
1004
|
deserialized = deserializeAws_json1_0ThrottlingException(body, context);
|
|
1392
|
-
|
|
1393
|
-
return [2,
|
|
1005
|
+
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1006
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1394
1007
|
});
|
|
1395
1008
|
}); };
|
|
1396
1009
|
var deserializeAws_json1_0TypeNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1397
|
-
var body, deserialized,
|
|
1010
|
+
var body, deserialized, exception;
|
|
1398
1011
|
return __generator(this, function (_a) {
|
|
1399
1012
|
body = parsedOutput.body;
|
|
1400
1013
|
deserialized = deserializeAws_json1_0TypeNotFoundException(body, context);
|
|
1401
|
-
|
|
1402
|
-
return [2,
|
|
1014
|
+
exception = new TypeNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1015
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1403
1016
|
});
|
|
1404
1017
|
}); };
|
|
1405
1018
|
var deserializeAws_json1_0UnsupportedActionExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1406
|
-
var body, deserialized,
|
|
1019
|
+
var body, deserialized, exception;
|
|
1407
1020
|
return __generator(this, function (_a) {
|
|
1408
1021
|
body = parsedOutput.body;
|
|
1409
1022
|
deserialized = deserializeAws_json1_0UnsupportedActionException(body, context);
|
|
1410
|
-
|
|
1411
|
-
return [2,
|
|
1023
|
+
exception = new UnsupportedActionException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1024
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1412
1025
|
});
|
|
1413
1026
|
}); };
|
|
1414
1027
|
var serializeAws_json1_0CancelResourceRequestInput = function (input, context) {
|
|
@@ -1621,7 +1234,7 @@ var deserializeAws_json1_0ResourceDescription = function (output, context) {
|
|
|
1621
1234
|
};
|
|
1622
1235
|
};
|
|
1623
1236
|
var deserializeAws_json1_0ResourceDescriptions = function (output, context) {
|
|
1624
|
-
|
|
1237
|
+
var retVal = (output || [])
|
|
1625
1238
|
.filter(function (e) { return e != null; })
|
|
1626
1239
|
.map(function (entry) {
|
|
1627
1240
|
if (entry === null) {
|
|
@@ -1629,6 +1242,7 @@ var deserializeAws_json1_0ResourceDescriptions = function (output, context) {
|
|
|
1629
1242
|
}
|
|
1630
1243
|
return deserializeAws_json1_0ResourceDescription(entry, context);
|
|
1631
1244
|
});
|
|
1245
|
+
return retVal;
|
|
1632
1246
|
};
|
|
1633
1247
|
var deserializeAws_json1_0ResourceNotFoundException = function (output, context) {
|
|
1634
1248
|
return {
|
|
@@ -1636,7 +1250,7 @@ var deserializeAws_json1_0ResourceNotFoundException = function (output, context)
|
|
|
1636
1250
|
};
|
|
1637
1251
|
};
|
|
1638
1252
|
var deserializeAws_json1_0ResourceRequestStatusSummaries = function (output, context) {
|
|
1639
|
-
|
|
1253
|
+
var retVal = (output || [])
|
|
1640
1254
|
.filter(function (e) { return e != null; })
|
|
1641
1255
|
.map(function (entry) {
|
|
1642
1256
|
if (entry === null) {
|
|
@@ -1644,6 +1258,7 @@ var deserializeAws_json1_0ResourceRequestStatusSummaries = function (output, con
|
|
|
1644
1258
|
}
|
|
1645
1259
|
return deserializeAws_json1_0ProgressEvent(entry, context);
|
|
1646
1260
|
});
|
|
1261
|
+
return retVal;
|
|
1647
1262
|
};
|
|
1648
1263
|
var deserializeAws_json1_0ServiceInternalErrorException = function (output, context) {
|
|
1649
1264
|
return {
|