@aws-sdk/client-cloudsearch 3.52.0 → 3.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/CloudSearchServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +123 -2
- package/dist-cjs/protocols/Aws_query.js +247 -1002
- package/dist-es/index.js +1 -0
- package/dist-es/models/CloudSearchServiceException.js +12 -0
- package/dist-es/models/models_0.js +114 -1
- package/dist-es/protocols/Aws_query.js +573 -1091
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/CloudSearchServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +58 -25
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/CloudSearchServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +42 -25
- package/package.json +25 -25
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read, __values } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTime as __parseRfc3339DateTime, serializeFloat as __serializeFloat, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTime as __parseRfc3339DateTime, serializeFloat as __serializeFloat, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { decodeHTML } from "entities";
|
|
5
5
|
import { parse as xmlParse } from "fast-xml-parser";
|
|
6
|
+
import { CloudSearchServiceException as __BaseException } from "../models/CloudSearchServiceException";
|
|
7
|
+
import { BaseException, DisabledOperationException, InternalException, InvalidTypeException, LimitExceededException, ResourceAlreadyExistsException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
|
|
6
8
|
export var serializeAws_queryBuildSuggestersCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
9
|
var headers, body;
|
|
8
10
|
return __generator(this, function (_a) {
|
|
@@ -285,16 +287,16 @@ export var deserializeAws_queryBuildSuggestersCommand = function (output, contex
|
|
|
285
287
|
});
|
|
286
288
|
}); };
|
|
287
289
|
var deserializeAws_queryBuildSuggestersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
288
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
289
|
-
var
|
|
290
|
-
return __generator(this, function (
|
|
291
|
-
switch (
|
|
290
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
291
|
+
var _c;
|
|
292
|
+
return __generator(this, function (_d) {
|
|
293
|
+
switch (_d.label) {
|
|
292
294
|
case 0:
|
|
293
295
|
_a = [__assign({}, output)];
|
|
294
|
-
|
|
296
|
+
_c = {};
|
|
295
297
|
return [4, parseBody(output.body, context)];
|
|
296
298
|
case 1:
|
|
297
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
299
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
298
300
|
errorCode = "UnknownError";
|
|
299
301
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
300
302
|
_b = errorCode;
|
|
@@ -309,40 +311,22 @@ var deserializeAws_queryBuildSuggestersCommandError = function (output, context)
|
|
|
309
311
|
case "com.amazonaws.cloudsearch#ValidationException": return [3, 8];
|
|
310
312
|
}
|
|
311
313
|
return [3, 10];
|
|
312
|
-
case 2:
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
case
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
case 4
|
|
319
|
-
|
|
320
|
-
return [4, deserializeAws_queryInternalExceptionResponse(parsedOutput, context)];
|
|
321
|
-
case 5:
|
|
322
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
323
|
-
return [3, 11];
|
|
324
|
-
case 6:
|
|
325
|
-
_e = [{}];
|
|
326
|
-
return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
327
|
-
case 7:
|
|
328
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
329
|
-
return [3, 11];
|
|
330
|
-
case 8:
|
|
331
|
-
_f = [{}];
|
|
332
|
-
return [4, deserializeAws_queryValidationExceptionResponse(parsedOutput, context)];
|
|
333
|
-
case 9:
|
|
334
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
335
|
-
return [3, 11];
|
|
314
|
+
case 2: return [4, deserializeAws_queryBaseExceptionResponse(parsedOutput, context)];
|
|
315
|
+
case 3: throw _d.sent();
|
|
316
|
+
case 4: return [4, deserializeAws_queryInternalExceptionResponse(parsedOutput, context)];
|
|
317
|
+
case 5: throw _d.sent();
|
|
318
|
+
case 6: return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
319
|
+
case 7: throw _d.sent();
|
|
320
|
+
case 8: return [4, deserializeAws_queryValidationExceptionResponse(parsedOutput, context)];
|
|
321
|
+
case 9: throw _d.sent();
|
|
336
322
|
case 10:
|
|
337
323
|
parsedBody = parsedOutput.body;
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
response.
|
|
344
|
-
delete response.Message;
|
|
345
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
324
|
+
response = new __BaseException({
|
|
325
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
326
|
+
$fault: "client",
|
|
327
|
+
$metadata: deserializeMetadata(output),
|
|
328
|
+
});
|
|
329
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
346
330
|
}
|
|
347
331
|
});
|
|
348
332
|
}); };
|
|
@@ -365,16 +349,16 @@ export var deserializeAws_queryCreateDomainCommand = function (output, context)
|
|
|
365
349
|
});
|
|
366
350
|
}); };
|
|
367
351
|
var deserializeAws_queryCreateDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
368
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
369
|
-
var
|
|
370
|
-
return __generator(this, function (
|
|
371
|
-
switch (
|
|
352
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
353
|
+
var _c;
|
|
354
|
+
return __generator(this, function (_d) {
|
|
355
|
+
switch (_d.label) {
|
|
372
356
|
case 0:
|
|
373
357
|
_a = [__assign({}, output)];
|
|
374
|
-
|
|
358
|
+
_c = {};
|
|
375
359
|
return [4, parseBody(output.body, context)];
|
|
376
360
|
case 1:
|
|
377
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
361
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
378
362
|
errorCode = "UnknownError";
|
|
379
363
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
380
364
|
_b = errorCode;
|
|
@@ -391,46 +375,24 @@ var deserializeAws_queryCreateDomainCommandError = function (output, context) {
|
|
|
391
375
|
case "com.amazonaws.cloudsearch#ValidationException": return [3, 10];
|
|
392
376
|
}
|
|
393
377
|
return [3, 12];
|
|
394
|
-
case 2:
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
case
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
case 4
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
case
|
|
404
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
405
|
-
return [3, 13];
|
|
406
|
-
case 6:
|
|
407
|
-
_e = [{}];
|
|
408
|
-
return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
409
|
-
case 7:
|
|
410
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
411
|
-
return [3, 13];
|
|
412
|
-
case 8:
|
|
413
|
-
_f = [{}];
|
|
414
|
-
return [4, deserializeAws_queryResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
415
|
-
case 9:
|
|
416
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
417
|
-
return [3, 13];
|
|
418
|
-
case 10:
|
|
419
|
-
_g = [{}];
|
|
420
|
-
return [4, deserializeAws_queryValidationExceptionResponse(parsedOutput, context)];
|
|
421
|
-
case 11:
|
|
422
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
423
|
-
return [3, 13];
|
|
378
|
+
case 2: return [4, deserializeAws_queryBaseExceptionResponse(parsedOutput, context)];
|
|
379
|
+
case 3: throw _d.sent();
|
|
380
|
+
case 4: return [4, deserializeAws_queryInternalExceptionResponse(parsedOutput, context)];
|
|
381
|
+
case 5: throw _d.sent();
|
|
382
|
+
case 6: return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
383
|
+
case 7: throw _d.sent();
|
|
384
|
+
case 8: return [4, deserializeAws_queryResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
385
|
+
case 9: throw _d.sent();
|
|
386
|
+
case 10: return [4, deserializeAws_queryValidationExceptionResponse(parsedOutput, context)];
|
|
387
|
+
case 11: throw _d.sent();
|
|
424
388
|
case 12:
|
|
425
389
|
parsedBody = parsedOutput.body;
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
response.
|
|
432
|
-
delete response.Message;
|
|
433
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
390
|
+
response = new __BaseException({
|
|
391
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
392
|
+
$fault: "client",
|
|
393
|
+
$metadata: deserializeMetadata(output),
|
|
394
|
+
});
|
|
395
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
434
396
|
}
|
|
435
397
|
});
|
|
436
398
|
}); };
|
|
@@ -453,16 +415,16 @@ export var deserializeAws_queryDefineAnalysisSchemeCommand = function (output, c
|
|
|
453
415
|
});
|
|
454
416
|
}); };
|
|
455
417
|
var deserializeAws_queryDefineAnalysisSchemeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
456
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
457
|
-
var
|
|
458
|
-
return __generator(this, function (
|
|
459
|
-
switch (
|
|
418
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
419
|
+
var _c;
|
|
420
|
+
return __generator(this, function (_d) {
|
|
421
|
+
switch (_d.label) {
|
|
460
422
|
case 0:
|
|
461
423
|
_a = [__assign({}, output)];
|
|
462
|
-
|
|
424
|
+
_c = {};
|
|
463
425
|
return [4, parseBody(output.body, context)];
|
|
464
426
|
case 1:
|
|
465
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
427
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
466
428
|
errorCode = "UnknownError";
|
|
467
429
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
468
430
|
_b = errorCode;
|
|
@@ -481,52 +443,26 @@ var deserializeAws_queryDefineAnalysisSchemeCommandError = function (output, con
|
|
|
481
443
|
case "com.amazonaws.cloudsearch#ValidationException": return [3, 12];
|
|
482
444
|
}
|
|
483
445
|
return [3, 14];
|
|
484
|
-
case 2:
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
case
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
case 4
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
case
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
case 6:
|
|
497
|
-
_e = [{}];
|
|
498
|
-
return [4, deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context)];
|
|
499
|
-
case 7:
|
|
500
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
501
|
-
return [3, 15];
|
|
502
|
-
case 8:
|
|
503
|
-
_f = [{}];
|
|
504
|
-
return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
505
|
-
case 9:
|
|
506
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
507
|
-
return [3, 15];
|
|
508
|
-
case 10:
|
|
509
|
-
_g = [{}];
|
|
510
|
-
return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
511
|
-
case 11:
|
|
512
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
513
|
-
return [3, 15];
|
|
514
|
-
case 12:
|
|
515
|
-
_h = [{}];
|
|
516
|
-
return [4, deserializeAws_queryValidationExceptionResponse(parsedOutput, context)];
|
|
517
|
-
case 13:
|
|
518
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
519
|
-
return [3, 15];
|
|
446
|
+
case 2: return [4, deserializeAws_queryBaseExceptionResponse(parsedOutput, context)];
|
|
447
|
+
case 3: throw _d.sent();
|
|
448
|
+
case 4: return [4, deserializeAws_queryInternalExceptionResponse(parsedOutput, context)];
|
|
449
|
+
case 5: throw _d.sent();
|
|
450
|
+
case 6: return [4, deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context)];
|
|
451
|
+
case 7: throw _d.sent();
|
|
452
|
+
case 8: return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
453
|
+
case 9: throw _d.sent();
|
|
454
|
+
case 10: return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
455
|
+
case 11: throw _d.sent();
|
|
456
|
+
case 12: return [4, deserializeAws_queryValidationExceptionResponse(parsedOutput, context)];
|
|
457
|
+
case 13: throw _d.sent();
|
|
520
458
|
case 14:
|
|
521
459
|
parsedBody = parsedOutput.body;
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
response.
|
|
528
|
-
delete response.Message;
|
|
529
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
460
|
+
response = new __BaseException({
|
|
461
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
462
|
+
$fault: "client",
|
|
463
|
+
$metadata: deserializeMetadata(output),
|
|
464
|
+
});
|
|
465
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
530
466
|
}
|
|
531
467
|
});
|
|
532
468
|
}); };
|
|
@@ -549,16 +485,16 @@ export var deserializeAws_queryDefineExpressionCommand = function (output, conte
|
|
|
549
485
|
});
|
|
550
486
|
}); };
|
|
551
487
|
var deserializeAws_queryDefineExpressionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
552
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
553
|
-
var
|
|
554
|
-
return __generator(this, function (
|
|
555
|
-
switch (
|
|
488
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
489
|
+
var _c;
|
|
490
|
+
return __generator(this, function (_d) {
|
|
491
|
+
switch (_d.label) {
|
|
556
492
|
case 0:
|
|
557
493
|
_a = [__assign({}, output)];
|
|
558
|
-
|
|
494
|
+
_c = {};
|
|
559
495
|
return [4, parseBody(output.body, context)];
|
|
560
496
|
case 1:
|
|
561
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
497
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
562
498
|
errorCode = "UnknownError";
|
|
563
499
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
564
500
|
_b = errorCode;
|
|
@@ -577,52 +513,26 @@ var deserializeAws_queryDefineExpressionCommandError = function (output, context
|
|
|
577
513
|
case "com.amazonaws.cloudsearch#ValidationException": return [3, 12];
|
|
578
514
|
}
|
|
579
515
|
return [3, 14];
|
|
580
|
-
case 2:
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
case
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
case 4
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
case
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
case 6:
|
|
593
|
-
_e = [{}];
|
|
594
|
-
return [4, deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context)];
|
|
595
|
-
case 7:
|
|
596
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
597
|
-
return [3, 15];
|
|
598
|
-
case 8:
|
|
599
|
-
_f = [{}];
|
|
600
|
-
return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
601
|
-
case 9:
|
|
602
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
603
|
-
return [3, 15];
|
|
604
|
-
case 10:
|
|
605
|
-
_g = [{}];
|
|
606
|
-
return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
607
|
-
case 11:
|
|
608
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
609
|
-
return [3, 15];
|
|
610
|
-
case 12:
|
|
611
|
-
_h = [{}];
|
|
612
|
-
return [4, deserializeAws_queryValidationExceptionResponse(parsedOutput, context)];
|
|
613
|
-
case 13:
|
|
614
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
615
|
-
return [3, 15];
|
|
516
|
+
case 2: return [4, deserializeAws_queryBaseExceptionResponse(parsedOutput, context)];
|
|
517
|
+
case 3: throw _d.sent();
|
|
518
|
+
case 4: return [4, deserializeAws_queryInternalExceptionResponse(parsedOutput, context)];
|
|
519
|
+
case 5: throw _d.sent();
|
|
520
|
+
case 6: return [4, deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context)];
|
|
521
|
+
case 7: throw _d.sent();
|
|
522
|
+
case 8: return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
523
|
+
case 9: throw _d.sent();
|
|
524
|
+
case 10: return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
525
|
+
case 11: throw _d.sent();
|
|
526
|
+
case 12: return [4, deserializeAws_queryValidationExceptionResponse(parsedOutput, context)];
|
|
527
|
+
case 13: throw _d.sent();
|
|
616
528
|
case 14:
|
|
617
529
|
parsedBody = parsedOutput.body;
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
response.
|
|
624
|
-
delete response.Message;
|
|
625
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
530
|
+
response = new __BaseException({
|
|
531
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
532
|
+
$fault: "client",
|
|
533
|
+
$metadata: deserializeMetadata(output),
|
|
534
|
+
});
|
|
535
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
626
536
|
}
|
|
627
537
|
});
|
|
628
538
|
}); };
|
|
@@ -645,16 +555,16 @@ export var deserializeAws_queryDefineIndexFieldCommand = function (output, conte
|
|
|
645
555
|
});
|
|
646
556
|
}); };
|
|
647
557
|
var deserializeAws_queryDefineIndexFieldCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
648
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
649
|
-
var
|
|
650
|
-
return __generator(this, function (
|
|
651
|
-
switch (
|
|
558
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
559
|
+
var _c;
|
|
560
|
+
return __generator(this, function (_d) {
|
|
561
|
+
switch (_d.label) {
|
|
652
562
|
case 0:
|
|
653
563
|
_a = [__assign({}, output)];
|
|
654
|
-
|
|
564
|
+
_c = {};
|
|
655
565
|
return [4, parseBody(output.body, context)];
|
|
656
566
|
case 1:
|
|
657
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
567
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
658
568
|
errorCode = "UnknownError";
|
|
659
569
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
660
570
|
_b = errorCode;
|
|
@@ -673,52 +583,26 @@ var deserializeAws_queryDefineIndexFieldCommandError = function (output, context
|
|
|
673
583
|
case "com.amazonaws.cloudsearch#ValidationException": return [3, 12];
|
|
674
584
|
}
|
|
675
585
|
return [3, 14];
|
|
676
|
-
case 2:
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
case
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
case 4
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
case
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
case 6:
|
|
689
|
-
_e = [{}];
|
|
690
|
-
return [4, deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context)];
|
|
691
|
-
case 7:
|
|
692
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
693
|
-
return [3, 15];
|
|
694
|
-
case 8:
|
|
695
|
-
_f = [{}];
|
|
696
|
-
return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
697
|
-
case 9:
|
|
698
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
699
|
-
return [3, 15];
|
|
700
|
-
case 10:
|
|
701
|
-
_g = [{}];
|
|
702
|
-
return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
703
|
-
case 11:
|
|
704
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
705
|
-
return [3, 15];
|
|
706
|
-
case 12:
|
|
707
|
-
_h = [{}];
|
|
708
|
-
return [4, deserializeAws_queryValidationExceptionResponse(parsedOutput, context)];
|
|
709
|
-
case 13:
|
|
710
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
711
|
-
return [3, 15];
|
|
586
|
+
case 2: return [4, deserializeAws_queryBaseExceptionResponse(parsedOutput, context)];
|
|
587
|
+
case 3: throw _d.sent();
|
|
588
|
+
case 4: return [4, deserializeAws_queryInternalExceptionResponse(parsedOutput, context)];
|
|
589
|
+
case 5: throw _d.sent();
|
|
590
|
+
case 6: return [4, deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context)];
|
|
591
|
+
case 7: throw _d.sent();
|
|
592
|
+
case 8: return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
593
|
+
case 9: throw _d.sent();
|
|
594
|
+
case 10: return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
595
|
+
case 11: throw _d.sent();
|
|
596
|
+
case 12: return [4, deserializeAws_queryValidationExceptionResponse(parsedOutput, context)];
|
|
597
|
+
case 13: throw _d.sent();
|
|
712
598
|
case 14:
|
|
713
599
|
parsedBody = parsedOutput.body;
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
response.
|
|
720
|
-
delete response.Message;
|
|
721
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
600
|
+
response = new __BaseException({
|
|
601
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
602
|
+
$fault: "client",
|
|
603
|
+
$metadata: deserializeMetadata(output),
|
|
604
|
+
});
|
|
605
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
722
606
|
}
|
|
723
607
|
});
|
|
724
608
|
}); };
|
|
@@ -741,16 +625,16 @@ export var deserializeAws_queryDefineSuggesterCommand = function (output, contex
|
|
|
741
625
|
});
|
|
742
626
|
}); };
|
|
743
627
|
var deserializeAws_queryDefineSuggesterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
744
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
745
|
-
var
|
|
746
|
-
return __generator(this, function (
|
|
747
|
-
switch (
|
|
628
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
629
|
+
var _c;
|
|
630
|
+
return __generator(this, function (_d) {
|
|
631
|
+
switch (_d.label) {
|
|
748
632
|
case 0:
|
|
749
633
|
_a = [__assign({}, output)];
|
|
750
|
-
|
|
634
|
+
_c = {};
|
|
751
635
|
return [4, parseBody(output.body, context)];
|
|
752
636
|
case 1:
|
|
753
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
637
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
754
638
|
errorCode = "UnknownError";
|
|
755
639
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
756
640
|
_b = errorCode;
|
|
@@ -769,52 +653,26 @@ var deserializeAws_queryDefineSuggesterCommandError = function (output, context)
|
|
|
769
653
|
case "com.amazonaws.cloudsearch#ValidationException": return [3, 12];
|
|
770
654
|
}
|
|
771
655
|
return [3, 14];
|
|
772
|
-
case 2:
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
case
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
case 4
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
case
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
case 6:
|
|
785
|
-
_e = [{}];
|
|
786
|
-
return [4, deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context)];
|
|
787
|
-
case 7:
|
|
788
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
789
|
-
return [3, 15];
|
|
790
|
-
case 8:
|
|
791
|
-
_f = [{}];
|
|
792
|
-
return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
793
|
-
case 9:
|
|
794
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
795
|
-
return [3, 15];
|
|
796
|
-
case 10:
|
|
797
|
-
_g = [{}];
|
|
798
|
-
return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
799
|
-
case 11:
|
|
800
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
801
|
-
return [3, 15];
|
|
802
|
-
case 12:
|
|
803
|
-
_h = [{}];
|
|
804
|
-
return [4, deserializeAws_queryValidationExceptionResponse(parsedOutput, context)];
|
|
805
|
-
case 13:
|
|
806
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
807
|
-
return [3, 15];
|
|
656
|
+
case 2: return [4, deserializeAws_queryBaseExceptionResponse(parsedOutput, context)];
|
|
657
|
+
case 3: throw _d.sent();
|
|
658
|
+
case 4: return [4, deserializeAws_queryInternalExceptionResponse(parsedOutput, context)];
|
|
659
|
+
case 5: throw _d.sent();
|
|
660
|
+
case 6: return [4, deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context)];
|
|
661
|
+
case 7: throw _d.sent();
|
|
662
|
+
case 8: return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
663
|
+
case 9: throw _d.sent();
|
|
664
|
+
case 10: return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
665
|
+
case 11: throw _d.sent();
|
|
666
|
+
case 12: return [4, deserializeAws_queryValidationExceptionResponse(parsedOutput, context)];
|
|
667
|
+
case 13: throw _d.sent();
|
|
808
668
|
case 14:
|
|
809
669
|
parsedBody = parsedOutput.body;
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
response.
|
|
816
|
-
delete response.Message;
|
|
817
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
670
|
+
response = new __BaseException({
|
|
671
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
672
|
+
$fault: "client",
|
|
673
|
+
$metadata: deserializeMetadata(output),
|
|
674
|
+
});
|
|
675
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
818
676
|
}
|
|
819
677
|
});
|
|
820
678
|
}); };
|
|
@@ -837,16 +695,16 @@ export var deserializeAws_queryDeleteAnalysisSchemeCommand = function (output, c
|
|
|
837
695
|
});
|
|
838
696
|
}); };
|
|
839
697
|
var deserializeAws_queryDeleteAnalysisSchemeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
840
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
841
|
-
var
|
|
842
|
-
return __generator(this, function (
|
|
843
|
-
switch (
|
|
698
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
699
|
+
var _c;
|
|
700
|
+
return __generator(this, function (_d) {
|
|
701
|
+
switch (_d.label) {
|
|
844
702
|
case 0:
|
|
845
703
|
_a = [__assign({}, output)];
|
|
846
|
-
|
|
704
|
+
_c = {};
|
|
847
705
|
return [4, parseBody(output.body, context)];
|
|
848
706
|
case 1:
|
|
849
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
707
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
850
708
|
errorCode = "UnknownError";
|
|
851
709
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
852
710
|
_b = errorCode;
|
|
@@ -863,46 +721,24 @@ var deserializeAws_queryDeleteAnalysisSchemeCommandError = function (output, con
|
|
|
863
721
|
case "com.amazonaws.cloudsearch#ValidationException": return [3, 10];
|
|
864
722
|
}
|
|
865
723
|
return [3, 12];
|
|
866
|
-
case 2:
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
case
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
case 4
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
case
|
|
876
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
877
|
-
return [3, 13];
|
|
878
|
-
case 6:
|
|
879
|
-
_e = [{}];
|
|
880
|
-
return [4, deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context)];
|
|
881
|
-
case 7:
|
|
882
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
883
|
-
return [3, 13];
|
|
884
|
-
case 8:
|
|
885
|
-
_f = [{}];
|
|
886
|
-
return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
887
|
-
case 9:
|
|
888
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
889
|
-
return [3, 13];
|
|
890
|
-
case 10:
|
|
891
|
-
_g = [{}];
|
|
892
|
-
return [4, deserializeAws_queryValidationExceptionResponse(parsedOutput, context)];
|
|
893
|
-
case 11:
|
|
894
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
895
|
-
return [3, 13];
|
|
724
|
+
case 2: return [4, deserializeAws_queryBaseExceptionResponse(parsedOutput, context)];
|
|
725
|
+
case 3: throw _d.sent();
|
|
726
|
+
case 4: return [4, deserializeAws_queryInternalExceptionResponse(parsedOutput, context)];
|
|
727
|
+
case 5: throw _d.sent();
|
|
728
|
+
case 6: return [4, deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context)];
|
|
729
|
+
case 7: throw _d.sent();
|
|
730
|
+
case 8: return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
731
|
+
case 9: throw _d.sent();
|
|
732
|
+
case 10: return [4, deserializeAws_queryValidationExceptionResponse(parsedOutput, context)];
|
|
733
|
+
case 11: throw _d.sent();
|
|
896
734
|
case 12:
|
|
897
735
|
parsedBody = parsedOutput.body;
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
response.
|
|
904
|
-
delete response.Message;
|
|
905
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
736
|
+
response = new __BaseException({
|
|
737
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
738
|
+
$fault: "client",
|
|
739
|
+
$metadata: deserializeMetadata(output),
|
|
740
|
+
});
|
|
741
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
906
742
|
}
|
|
907
743
|
});
|
|
908
744
|
}); };
|
|
@@ -925,16 +761,16 @@ export var deserializeAws_queryDeleteDomainCommand = function (output, context)
|
|
|
925
761
|
});
|
|
926
762
|
}); };
|
|
927
763
|
var deserializeAws_queryDeleteDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
928
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
929
|
-
var
|
|
930
|
-
return __generator(this, function (
|
|
931
|
-
switch (
|
|
764
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
765
|
+
var _c;
|
|
766
|
+
return __generator(this, function (_d) {
|
|
767
|
+
switch (_d.label) {
|
|
932
768
|
case 0:
|
|
933
769
|
_a = [__assign({}, output)];
|
|
934
|
-
|
|
770
|
+
_c = {};
|
|
935
771
|
return [4, parseBody(output.body, context)];
|
|
936
772
|
case 1:
|
|
937
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
773
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
938
774
|
errorCode = "UnknownError";
|
|
939
775
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
940
776
|
_b = errorCode;
|
|
@@ -945,28 +781,18 @@ var deserializeAws_queryDeleteDomainCommandError = function (output, context) {
|
|
|
945
781
|
case "com.amazonaws.cloudsearch#InternalException": return [3, 4];
|
|
946
782
|
}
|
|
947
783
|
return [3, 6];
|
|
948
|
-
case 2:
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
case
|
|
952
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
953
|
-
return [3, 7];
|
|
954
|
-
case 4:
|
|
955
|
-
_d = [{}];
|
|
956
|
-
return [4, deserializeAws_queryInternalExceptionResponse(parsedOutput, context)];
|
|
957
|
-
case 5:
|
|
958
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
959
|
-
return [3, 7];
|
|
784
|
+
case 2: return [4, deserializeAws_queryBaseExceptionResponse(parsedOutput, context)];
|
|
785
|
+
case 3: throw _d.sent();
|
|
786
|
+
case 4: return [4, deserializeAws_queryInternalExceptionResponse(parsedOutput, context)];
|
|
787
|
+
case 5: throw _d.sent();
|
|
960
788
|
case 6:
|
|
961
789
|
parsedBody = parsedOutput.body;
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
response.
|
|
968
|
-
delete response.Message;
|
|
969
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
790
|
+
response = new __BaseException({
|
|
791
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
792
|
+
$fault: "client",
|
|
793
|
+
$metadata: deserializeMetadata(output),
|
|
794
|
+
});
|
|
795
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
970
796
|
}
|
|
971
797
|
});
|
|
972
798
|
}); };
|
|
@@ -989,16 +815,16 @@ export var deserializeAws_queryDeleteExpressionCommand = function (output, conte
|
|
|
989
815
|
});
|
|
990
816
|
}); };
|
|
991
817
|
var deserializeAws_queryDeleteExpressionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
992
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
993
|
-
var
|
|
994
|
-
return __generator(this, function (
|
|
995
|
-
switch (
|
|
818
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
819
|
+
var _c;
|
|
820
|
+
return __generator(this, function (_d) {
|
|
821
|
+
switch (_d.label) {
|
|
996
822
|
case 0:
|
|
997
823
|
_a = [__assign({}, output)];
|
|
998
|
-
|
|
824
|
+
_c = {};
|
|
999
825
|
return [4, parseBody(output.body, context)];
|
|
1000
826
|
case 1:
|
|
1001
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
827
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1002
828
|
errorCode = "UnknownError";
|
|
1003
829
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1004
830
|
_b = errorCode;
|
|
@@ -1015,46 +841,24 @@ var deserializeAws_queryDeleteExpressionCommandError = function (output, context
|
|
|
1015
841
|
case "com.amazonaws.cloudsearch#ValidationException": return [3, 10];
|
|
1016
842
|
}
|
|
1017
843
|
return [3, 12];
|
|
1018
|
-
case 2:
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
case
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
case 4
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
case
|
|
1028
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1029
|
-
return [3, 13];
|
|
1030
|
-
case 6:
|
|
1031
|
-
_e = [{}];
|
|
1032
|
-
return [4, deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context)];
|
|
1033
|
-
case 7:
|
|
1034
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1035
|
-
return [3, 13];
|
|
1036
|
-
case 8:
|
|
1037
|
-
_f = [{}];
|
|
1038
|
-
return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1039
|
-
case 9:
|
|
1040
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1041
|
-
return [3, 13];
|
|
1042
|
-
case 10:
|
|
1043
|
-
_g = [{}];
|
|
1044
|
-
return [4, deserializeAws_queryValidationExceptionResponse(parsedOutput, context)];
|
|
1045
|
-
case 11:
|
|
1046
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1047
|
-
return [3, 13];
|
|
844
|
+
case 2: return [4, deserializeAws_queryBaseExceptionResponse(parsedOutput, context)];
|
|
845
|
+
case 3: throw _d.sent();
|
|
846
|
+
case 4: return [4, deserializeAws_queryInternalExceptionResponse(parsedOutput, context)];
|
|
847
|
+
case 5: throw _d.sent();
|
|
848
|
+
case 6: return [4, deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context)];
|
|
849
|
+
case 7: throw _d.sent();
|
|
850
|
+
case 8: return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
851
|
+
case 9: throw _d.sent();
|
|
852
|
+
case 10: return [4, deserializeAws_queryValidationExceptionResponse(parsedOutput, context)];
|
|
853
|
+
case 11: throw _d.sent();
|
|
1048
854
|
case 12:
|
|
1049
855
|
parsedBody = parsedOutput.body;
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
response.
|
|
1056
|
-
delete response.Message;
|
|
1057
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
856
|
+
response = new __BaseException({
|
|
857
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
858
|
+
$fault: "client",
|
|
859
|
+
$metadata: deserializeMetadata(output),
|
|
860
|
+
});
|
|
861
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1058
862
|
}
|
|
1059
863
|
});
|
|
1060
864
|
}); };
|
|
@@ -1077,16 +881,16 @@ export var deserializeAws_queryDeleteIndexFieldCommand = function (output, conte
|
|
|
1077
881
|
});
|
|
1078
882
|
}); };
|
|
1079
883
|
var deserializeAws_queryDeleteIndexFieldCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1080
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1081
|
-
var
|
|
1082
|
-
return __generator(this, function (
|
|
1083
|
-
switch (
|
|
884
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
885
|
+
var _c;
|
|
886
|
+
return __generator(this, function (_d) {
|
|
887
|
+
switch (_d.label) {
|
|
1084
888
|
case 0:
|
|
1085
889
|
_a = [__assign({}, output)];
|
|
1086
|
-
|
|
890
|
+
_c = {};
|
|
1087
891
|
return [4, parseBody(output.body, context)];
|
|
1088
892
|
case 1:
|
|
1089
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
893
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1090
894
|
errorCode = "UnknownError";
|
|
1091
895
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1092
896
|
_b = errorCode;
|
|
@@ -1103,46 +907,24 @@ var deserializeAws_queryDeleteIndexFieldCommandError = function (output, context
|
|
|
1103
907
|
case "com.amazonaws.cloudsearch#ValidationException": return [3, 10];
|
|
1104
908
|
}
|
|
1105
909
|
return [3, 12];
|
|
1106
|
-
case 2:
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
case
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
case 4
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
case
|
|
1116
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1117
|
-
return [3, 13];
|
|
1118
|
-
case 6:
|
|
1119
|
-
_e = [{}];
|
|
1120
|
-
return [4, deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context)];
|
|
1121
|
-
case 7:
|
|
1122
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1123
|
-
return [3, 13];
|
|
1124
|
-
case 8:
|
|
1125
|
-
_f = [{}];
|
|
1126
|
-
return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1127
|
-
case 9:
|
|
1128
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1129
|
-
return [3, 13];
|
|
1130
|
-
case 10:
|
|
1131
|
-
_g = [{}];
|
|
1132
|
-
return [4, deserializeAws_queryValidationExceptionResponse(parsedOutput, context)];
|
|
1133
|
-
case 11:
|
|
1134
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1135
|
-
return [3, 13];
|
|
910
|
+
case 2: return [4, deserializeAws_queryBaseExceptionResponse(parsedOutput, context)];
|
|
911
|
+
case 3: throw _d.sent();
|
|
912
|
+
case 4: return [4, deserializeAws_queryInternalExceptionResponse(parsedOutput, context)];
|
|
913
|
+
case 5: throw _d.sent();
|
|
914
|
+
case 6: return [4, deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context)];
|
|
915
|
+
case 7: throw _d.sent();
|
|
916
|
+
case 8: return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
917
|
+
case 9: throw _d.sent();
|
|
918
|
+
case 10: return [4, deserializeAws_queryValidationExceptionResponse(parsedOutput, context)];
|
|
919
|
+
case 11: throw _d.sent();
|
|
1136
920
|
case 12:
|
|
1137
921
|
parsedBody = parsedOutput.body;
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
response.
|
|
1144
|
-
delete response.Message;
|
|
1145
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
922
|
+
response = new __BaseException({
|
|
923
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
924
|
+
$fault: "client",
|
|
925
|
+
$metadata: deserializeMetadata(output),
|
|
926
|
+
});
|
|
927
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1146
928
|
}
|
|
1147
929
|
});
|
|
1148
930
|
}); };
|
|
@@ -1165,16 +947,16 @@ export var deserializeAws_queryDeleteSuggesterCommand = function (output, contex
|
|
|
1165
947
|
});
|
|
1166
948
|
}); };
|
|
1167
949
|
var deserializeAws_queryDeleteSuggesterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1168
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1169
|
-
var
|
|
1170
|
-
return __generator(this, function (
|
|
1171
|
-
switch (
|
|
950
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
951
|
+
var _c;
|
|
952
|
+
return __generator(this, function (_d) {
|
|
953
|
+
switch (_d.label) {
|
|
1172
954
|
case 0:
|
|
1173
955
|
_a = [__assign({}, output)];
|
|
1174
|
-
|
|
956
|
+
_c = {};
|
|
1175
957
|
return [4, parseBody(output.body, context)];
|
|
1176
958
|
case 1:
|
|
1177
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
959
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1178
960
|
errorCode = "UnknownError";
|
|
1179
961
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1180
962
|
_b = errorCode;
|
|
@@ -1191,46 +973,24 @@ var deserializeAws_queryDeleteSuggesterCommandError = function (output, context)
|
|
|
1191
973
|
case "com.amazonaws.cloudsearch#ValidationException": return [3, 10];
|
|
1192
974
|
}
|
|
1193
975
|
return [3, 12];
|
|
1194
|
-
case 2:
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
case
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
case 4
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
case
|
|
1204
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1205
|
-
return [3, 13];
|
|
1206
|
-
case 6:
|
|
1207
|
-
_e = [{}];
|
|
1208
|
-
return [4, deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context)];
|
|
1209
|
-
case 7:
|
|
1210
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1211
|
-
return [3, 13];
|
|
1212
|
-
case 8:
|
|
1213
|
-
_f = [{}];
|
|
1214
|
-
return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1215
|
-
case 9:
|
|
1216
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1217
|
-
return [3, 13];
|
|
1218
|
-
case 10:
|
|
1219
|
-
_g = [{}];
|
|
1220
|
-
return [4, deserializeAws_queryValidationExceptionResponse(parsedOutput, context)];
|
|
1221
|
-
case 11:
|
|
1222
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1223
|
-
return [3, 13];
|
|
976
|
+
case 2: return [4, deserializeAws_queryBaseExceptionResponse(parsedOutput, context)];
|
|
977
|
+
case 3: throw _d.sent();
|
|
978
|
+
case 4: return [4, deserializeAws_queryInternalExceptionResponse(parsedOutput, context)];
|
|
979
|
+
case 5: throw _d.sent();
|
|
980
|
+
case 6: return [4, deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context)];
|
|
981
|
+
case 7: throw _d.sent();
|
|
982
|
+
case 8: return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
983
|
+
case 9: throw _d.sent();
|
|
984
|
+
case 10: return [4, deserializeAws_queryValidationExceptionResponse(parsedOutput, context)];
|
|
985
|
+
case 11: throw _d.sent();
|
|
1224
986
|
case 12:
|
|
1225
987
|
parsedBody = parsedOutput.body;
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
response.
|
|
1232
|
-
delete response.Message;
|
|
1233
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
988
|
+
response = new __BaseException({
|
|
989
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
990
|
+
$fault: "client",
|
|
991
|
+
$metadata: deserializeMetadata(output),
|
|
992
|
+
});
|
|
993
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1234
994
|
}
|
|
1235
995
|
});
|
|
1236
996
|
}); };
|
|
@@ -1253,16 +1013,16 @@ export var deserializeAws_queryDescribeAnalysisSchemesCommand = function (output
|
|
|
1253
1013
|
});
|
|
1254
1014
|
}); };
|
|
1255
1015
|
var deserializeAws_queryDescribeAnalysisSchemesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1256
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1257
|
-
var
|
|
1258
|
-
return __generator(this, function (
|
|
1259
|
-
switch (
|
|
1016
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1017
|
+
var _c;
|
|
1018
|
+
return __generator(this, function (_d) {
|
|
1019
|
+
switch (_d.label) {
|
|
1260
1020
|
case 0:
|
|
1261
1021
|
_a = [__assign({}, output)];
|
|
1262
|
-
|
|
1022
|
+
_c = {};
|
|
1263
1023
|
return [4, parseBody(output.body, context)];
|
|
1264
1024
|
case 1:
|
|
1265
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1025
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1266
1026
|
errorCode = "UnknownError";
|
|
1267
1027
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1268
1028
|
_b = errorCode;
|
|
@@ -1275,34 +1035,20 @@ var deserializeAws_queryDescribeAnalysisSchemesCommandError = function (output,
|
|
|
1275
1035
|
case "com.amazonaws.cloudsearch#ResourceNotFoundException": return [3, 6];
|
|
1276
1036
|
}
|
|
1277
1037
|
return [3, 8];
|
|
1278
|
-
case 2:
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
case
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
case 4:
|
|
1285
|
-
_d = [{}];
|
|
1286
|
-
return [4, deserializeAws_queryInternalExceptionResponse(parsedOutput, context)];
|
|
1287
|
-
case 5:
|
|
1288
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1289
|
-
return [3, 9];
|
|
1290
|
-
case 6:
|
|
1291
|
-
_e = [{}];
|
|
1292
|
-
return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1293
|
-
case 7:
|
|
1294
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1295
|
-
return [3, 9];
|
|
1038
|
+
case 2: return [4, deserializeAws_queryBaseExceptionResponse(parsedOutput, context)];
|
|
1039
|
+
case 3: throw _d.sent();
|
|
1040
|
+
case 4: return [4, deserializeAws_queryInternalExceptionResponse(parsedOutput, context)];
|
|
1041
|
+
case 5: throw _d.sent();
|
|
1042
|
+
case 6: return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1043
|
+
case 7: throw _d.sent();
|
|
1296
1044
|
case 8:
|
|
1297
1045
|
parsedBody = parsedOutput.body;
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
response.
|
|
1304
|
-
delete response.Message;
|
|
1305
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1046
|
+
response = new __BaseException({
|
|
1047
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1048
|
+
$fault: "client",
|
|
1049
|
+
$metadata: deserializeMetadata(output),
|
|
1050
|
+
});
|
|
1051
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1306
1052
|
}
|
|
1307
1053
|
});
|
|
1308
1054
|
}); };
|
|
@@ -1325,16 +1071,16 @@ export var deserializeAws_queryDescribeAvailabilityOptionsCommand = function (ou
|
|
|
1325
1071
|
});
|
|
1326
1072
|
}); };
|
|
1327
1073
|
var deserializeAws_queryDescribeAvailabilityOptionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1328
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1329
|
-
var
|
|
1330
|
-
return __generator(this, function (
|
|
1331
|
-
switch (
|
|
1074
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1075
|
+
var _c;
|
|
1076
|
+
return __generator(this, function (_d) {
|
|
1077
|
+
switch (_d.label) {
|
|
1332
1078
|
case 0:
|
|
1333
1079
|
_a = [__assign({}, output)];
|
|
1334
|
-
|
|
1080
|
+
_c = {};
|
|
1335
1081
|
return [4, parseBody(output.body, context)];
|
|
1336
1082
|
case 1:
|
|
1337
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1083
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1338
1084
|
errorCode = "UnknownError";
|
|
1339
1085
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1340
1086
|
_b = errorCode;
|
|
@@ -1353,52 +1099,26 @@ var deserializeAws_queryDescribeAvailabilityOptionsCommandError = function (outp
|
|
|
1353
1099
|
case "com.amazonaws.cloudsearch#ResourceNotFoundException": return [3, 12];
|
|
1354
1100
|
}
|
|
1355
1101
|
return [3, 14];
|
|
1356
|
-
case 2:
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
case
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
case 4
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
case
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
case 6:
|
|
1369
|
-
_e = [{}];
|
|
1370
|
-
return [4, deserializeAws_queryInternalExceptionResponse(parsedOutput, context)];
|
|
1371
|
-
case 7:
|
|
1372
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1373
|
-
return [3, 15];
|
|
1374
|
-
case 8:
|
|
1375
|
-
_f = [{}];
|
|
1376
|
-
return [4, deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context)];
|
|
1377
|
-
case 9:
|
|
1378
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1379
|
-
return [3, 15];
|
|
1380
|
-
case 10:
|
|
1381
|
-
_g = [{}];
|
|
1382
|
-
return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1383
|
-
case 11:
|
|
1384
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1385
|
-
return [3, 15];
|
|
1386
|
-
case 12:
|
|
1387
|
-
_h = [{}];
|
|
1388
|
-
return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1389
|
-
case 13:
|
|
1390
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1391
|
-
return [3, 15];
|
|
1102
|
+
case 2: return [4, deserializeAws_queryBaseExceptionResponse(parsedOutput, context)];
|
|
1103
|
+
case 3: throw _d.sent();
|
|
1104
|
+
case 4: return [4, deserializeAws_queryDisabledOperationExceptionResponse(parsedOutput, context)];
|
|
1105
|
+
case 5: throw _d.sent();
|
|
1106
|
+
case 6: return [4, deserializeAws_queryInternalExceptionResponse(parsedOutput, context)];
|
|
1107
|
+
case 7: throw _d.sent();
|
|
1108
|
+
case 8: return [4, deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context)];
|
|
1109
|
+
case 9: throw _d.sent();
|
|
1110
|
+
case 10: return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1111
|
+
case 11: throw _d.sent();
|
|
1112
|
+
case 12: return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1113
|
+
case 13: throw _d.sent();
|
|
1392
1114
|
case 14:
|
|
1393
1115
|
parsedBody = parsedOutput.body;
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
response.
|
|
1400
|
-
delete response.Message;
|
|
1401
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1116
|
+
response = new __BaseException({
|
|
1117
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1118
|
+
$fault: "client",
|
|
1119
|
+
$metadata: deserializeMetadata(output),
|
|
1120
|
+
});
|
|
1121
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1402
1122
|
}
|
|
1403
1123
|
});
|
|
1404
1124
|
}); };
|
|
@@ -1421,16 +1141,16 @@ export var deserializeAws_queryDescribeDomainEndpointOptionsCommand = function (
|
|
|
1421
1141
|
});
|
|
1422
1142
|
}); };
|
|
1423
1143
|
var deserializeAws_queryDescribeDomainEndpointOptionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1424
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1425
|
-
var
|
|
1426
|
-
return __generator(this, function (
|
|
1427
|
-
switch (
|
|
1144
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1145
|
+
var _c;
|
|
1146
|
+
return __generator(this, function (_d) {
|
|
1147
|
+
switch (_d.label) {
|
|
1428
1148
|
case 0:
|
|
1429
1149
|
_a = [__assign({}, output)];
|
|
1430
|
-
|
|
1150
|
+
_c = {};
|
|
1431
1151
|
return [4, parseBody(output.body, context)];
|
|
1432
1152
|
case 1:
|
|
1433
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1153
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1434
1154
|
errorCode = "UnknownError";
|
|
1435
1155
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1436
1156
|
_b = errorCode;
|
|
@@ -1447,46 +1167,24 @@ var deserializeAws_queryDescribeDomainEndpointOptionsCommandError = function (ou
|
|
|
1447
1167
|
case "com.amazonaws.cloudsearch#ResourceNotFoundException": return [3, 10];
|
|
1448
1168
|
}
|
|
1449
1169
|
return [3, 12];
|
|
1450
|
-
case 2:
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
case
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
case 4
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
case
|
|
1460
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1461
|
-
return [3, 13];
|
|
1462
|
-
case 6:
|
|
1463
|
-
_e = [{}];
|
|
1464
|
-
return [4, deserializeAws_queryInternalExceptionResponse(parsedOutput, context)];
|
|
1465
|
-
case 7:
|
|
1466
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1467
|
-
return [3, 13];
|
|
1468
|
-
case 8:
|
|
1469
|
-
_f = [{}];
|
|
1470
|
-
return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1471
|
-
case 9:
|
|
1472
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1473
|
-
return [3, 13];
|
|
1474
|
-
case 10:
|
|
1475
|
-
_g = [{}];
|
|
1476
|
-
return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1477
|
-
case 11:
|
|
1478
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1479
|
-
return [3, 13];
|
|
1170
|
+
case 2: return [4, deserializeAws_queryBaseExceptionResponse(parsedOutput, context)];
|
|
1171
|
+
case 3: throw _d.sent();
|
|
1172
|
+
case 4: return [4, deserializeAws_queryDisabledOperationExceptionResponse(parsedOutput, context)];
|
|
1173
|
+
case 5: throw _d.sent();
|
|
1174
|
+
case 6: return [4, deserializeAws_queryInternalExceptionResponse(parsedOutput, context)];
|
|
1175
|
+
case 7: throw _d.sent();
|
|
1176
|
+
case 8: return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1177
|
+
case 9: throw _d.sent();
|
|
1178
|
+
case 10: return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1179
|
+
case 11: throw _d.sent();
|
|
1480
1180
|
case 12:
|
|
1481
1181
|
parsedBody = parsedOutput.body;
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
response.
|
|
1488
|
-
delete response.Message;
|
|
1489
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1182
|
+
response = new __BaseException({
|
|
1183
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1184
|
+
$fault: "client",
|
|
1185
|
+
$metadata: deserializeMetadata(output),
|
|
1186
|
+
});
|
|
1187
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1490
1188
|
}
|
|
1491
1189
|
});
|
|
1492
1190
|
}); };
|
|
@@ -1509,16 +1207,16 @@ export var deserializeAws_queryDescribeDomainsCommand = function (output, contex
|
|
|
1509
1207
|
});
|
|
1510
1208
|
}); };
|
|
1511
1209
|
var deserializeAws_queryDescribeDomainsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1512
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1513
|
-
var
|
|
1514
|
-
return __generator(this, function (
|
|
1515
|
-
switch (
|
|
1210
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1211
|
+
var _c;
|
|
1212
|
+
return __generator(this, function (_d) {
|
|
1213
|
+
switch (_d.label) {
|
|
1516
1214
|
case 0:
|
|
1517
1215
|
_a = [__assign({}, output)];
|
|
1518
|
-
|
|
1216
|
+
_c = {};
|
|
1519
1217
|
return [4, parseBody(output.body, context)];
|
|
1520
1218
|
case 1:
|
|
1521
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1219
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1522
1220
|
errorCode = "UnknownError";
|
|
1523
1221
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1524
1222
|
_b = errorCode;
|
|
@@ -1529,28 +1227,18 @@ var deserializeAws_queryDescribeDomainsCommandError = function (output, context)
|
|
|
1529
1227
|
case "com.amazonaws.cloudsearch#InternalException": return [3, 4];
|
|
1530
1228
|
}
|
|
1531
1229
|
return [3, 6];
|
|
1532
|
-
case 2:
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
case
|
|
1536
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1537
|
-
return [3, 7];
|
|
1538
|
-
case 4:
|
|
1539
|
-
_d = [{}];
|
|
1540
|
-
return [4, deserializeAws_queryInternalExceptionResponse(parsedOutput, context)];
|
|
1541
|
-
case 5:
|
|
1542
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1543
|
-
return [3, 7];
|
|
1230
|
+
case 2: return [4, deserializeAws_queryBaseExceptionResponse(parsedOutput, context)];
|
|
1231
|
+
case 3: throw _d.sent();
|
|
1232
|
+
case 4: return [4, deserializeAws_queryInternalExceptionResponse(parsedOutput, context)];
|
|
1233
|
+
case 5: throw _d.sent();
|
|
1544
1234
|
case 6:
|
|
1545
1235
|
parsedBody = parsedOutput.body;
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
response.
|
|
1552
|
-
delete response.Message;
|
|
1553
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1236
|
+
response = new __BaseException({
|
|
1237
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1238
|
+
$fault: "client",
|
|
1239
|
+
$metadata: deserializeMetadata(output),
|
|
1240
|
+
});
|
|
1241
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1554
1242
|
}
|
|
1555
1243
|
});
|
|
1556
1244
|
}); };
|
|
@@ -1573,16 +1261,16 @@ export var deserializeAws_queryDescribeExpressionsCommand = function (output, co
|
|
|
1573
1261
|
});
|
|
1574
1262
|
}); };
|
|
1575
1263
|
var deserializeAws_queryDescribeExpressionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1576
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1577
|
-
var
|
|
1578
|
-
return __generator(this, function (
|
|
1579
|
-
switch (
|
|
1264
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1265
|
+
var _c;
|
|
1266
|
+
return __generator(this, function (_d) {
|
|
1267
|
+
switch (_d.label) {
|
|
1580
1268
|
case 0:
|
|
1581
1269
|
_a = [__assign({}, output)];
|
|
1582
|
-
|
|
1270
|
+
_c = {};
|
|
1583
1271
|
return [4, parseBody(output.body, context)];
|
|
1584
1272
|
case 1:
|
|
1585
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1273
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1586
1274
|
errorCode = "UnknownError";
|
|
1587
1275
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1588
1276
|
_b = errorCode;
|
|
@@ -1595,34 +1283,20 @@ var deserializeAws_queryDescribeExpressionsCommandError = function (output, cont
|
|
|
1595
1283
|
case "com.amazonaws.cloudsearch#ResourceNotFoundException": return [3, 6];
|
|
1596
1284
|
}
|
|
1597
1285
|
return [3, 8];
|
|
1598
|
-
case 2:
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
case
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
case 4:
|
|
1605
|
-
_d = [{}];
|
|
1606
|
-
return [4, deserializeAws_queryInternalExceptionResponse(parsedOutput, context)];
|
|
1607
|
-
case 5:
|
|
1608
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1609
|
-
return [3, 9];
|
|
1610
|
-
case 6:
|
|
1611
|
-
_e = [{}];
|
|
1612
|
-
return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1613
|
-
case 7:
|
|
1614
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1615
|
-
return [3, 9];
|
|
1286
|
+
case 2: return [4, deserializeAws_queryBaseExceptionResponse(parsedOutput, context)];
|
|
1287
|
+
case 3: throw _d.sent();
|
|
1288
|
+
case 4: return [4, deserializeAws_queryInternalExceptionResponse(parsedOutput, context)];
|
|
1289
|
+
case 5: throw _d.sent();
|
|
1290
|
+
case 6: return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1291
|
+
case 7: throw _d.sent();
|
|
1616
1292
|
case 8:
|
|
1617
1293
|
parsedBody = parsedOutput.body;
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
response.
|
|
1624
|
-
delete response.Message;
|
|
1625
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1294
|
+
response = new __BaseException({
|
|
1295
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1296
|
+
$fault: "client",
|
|
1297
|
+
$metadata: deserializeMetadata(output),
|
|
1298
|
+
});
|
|
1299
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1626
1300
|
}
|
|
1627
1301
|
});
|
|
1628
1302
|
}); };
|
|
@@ -1645,16 +1319,16 @@ export var deserializeAws_queryDescribeIndexFieldsCommand = function (output, co
|
|
|
1645
1319
|
});
|
|
1646
1320
|
}); };
|
|
1647
1321
|
var deserializeAws_queryDescribeIndexFieldsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1648
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1649
|
-
var
|
|
1650
|
-
return __generator(this, function (
|
|
1651
|
-
switch (
|
|
1322
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1323
|
+
var _c;
|
|
1324
|
+
return __generator(this, function (_d) {
|
|
1325
|
+
switch (_d.label) {
|
|
1652
1326
|
case 0:
|
|
1653
1327
|
_a = [__assign({}, output)];
|
|
1654
|
-
|
|
1328
|
+
_c = {};
|
|
1655
1329
|
return [4, parseBody(output.body, context)];
|
|
1656
1330
|
case 1:
|
|
1657
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1331
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1658
1332
|
errorCode = "UnknownError";
|
|
1659
1333
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1660
1334
|
_b = errorCode;
|
|
@@ -1667,34 +1341,20 @@ var deserializeAws_queryDescribeIndexFieldsCommandError = function (output, cont
|
|
|
1667
1341
|
case "com.amazonaws.cloudsearch#ResourceNotFoundException": return [3, 6];
|
|
1668
1342
|
}
|
|
1669
1343
|
return [3, 8];
|
|
1670
|
-
case 2:
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
case
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
case 4:
|
|
1677
|
-
_d = [{}];
|
|
1678
|
-
return [4, deserializeAws_queryInternalExceptionResponse(parsedOutput, context)];
|
|
1679
|
-
case 5:
|
|
1680
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1681
|
-
return [3, 9];
|
|
1682
|
-
case 6:
|
|
1683
|
-
_e = [{}];
|
|
1684
|
-
return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1685
|
-
case 7:
|
|
1686
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1687
|
-
return [3, 9];
|
|
1344
|
+
case 2: return [4, deserializeAws_queryBaseExceptionResponse(parsedOutput, context)];
|
|
1345
|
+
case 3: throw _d.sent();
|
|
1346
|
+
case 4: return [4, deserializeAws_queryInternalExceptionResponse(parsedOutput, context)];
|
|
1347
|
+
case 5: throw _d.sent();
|
|
1348
|
+
case 6: return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1349
|
+
case 7: throw _d.sent();
|
|
1688
1350
|
case 8:
|
|
1689
1351
|
parsedBody = parsedOutput.body;
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
response.
|
|
1696
|
-
delete response.Message;
|
|
1697
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1352
|
+
response = new __BaseException({
|
|
1353
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1354
|
+
$fault: "client",
|
|
1355
|
+
$metadata: deserializeMetadata(output),
|
|
1356
|
+
});
|
|
1357
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1698
1358
|
}
|
|
1699
1359
|
});
|
|
1700
1360
|
}); };
|
|
@@ -1717,16 +1377,16 @@ export var deserializeAws_queryDescribeScalingParametersCommand = function (outp
|
|
|
1717
1377
|
});
|
|
1718
1378
|
}); };
|
|
1719
1379
|
var deserializeAws_queryDescribeScalingParametersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1720
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1721
|
-
var
|
|
1722
|
-
return __generator(this, function (
|
|
1723
|
-
switch (
|
|
1380
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1381
|
+
var _c;
|
|
1382
|
+
return __generator(this, function (_d) {
|
|
1383
|
+
switch (_d.label) {
|
|
1724
1384
|
case 0:
|
|
1725
1385
|
_a = [__assign({}, output)];
|
|
1726
|
-
|
|
1386
|
+
_c = {};
|
|
1727
1387
|
return [4, parseBody(output.body, context)];
|
|
1728
1388
|
case 1:
|
|
1729
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1389
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1730
1390
|
errorCode = "UnknownError";
|
|
1731
1391
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1732
1392
|
_b = errorCode;
|
|
@@ -1739,34 +1399,20 @@ var deserializeAws_queryDescribeScalingParametersCommandError = function (output
|
|
|
1739
1399
|
case "com.amazonaws.cloudsearch#ResourceNotFoundException": return [3, 6];
|
|
1740
1400
|
}
|
|
1741
1401
|
return [3, 8];
|
|
1742
|
-
case 2:
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
case
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
case 4:
|
|
1749
|
-
_d = [{}];
|
|
1750
|
-
return [4, deserializeAws_queryInternalExceptionResponse(parsedOutput, context)];
|
|
1751
|
-
case 5:
|
|
1752
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1753
|
-
return [3, 9];
|
|
1754
|
-
case 6:
|
|
1755
|
-
_e = [{}];
|
|
1756
|
-
return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1757
|
-
case 7:
|
|
1758
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1759
|
-
return [3, 9];
|
|
1402
|
+
case 2: return [4, deserializeAws_queryBaseExceptionResponse(parsedOutput, context)];
|
|
1403
|
+
case 3: throw _d.sent();
|
|
1404
|
+
case 4: return [4, deserializeAws_queryInternalExceptionResponse(parsedOutput, context)];
|
|
1405
|
+
case 5: throw _d.sent();
|
|
1406
|
+
case 6: return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1407
|
+
case 7: throw _d.sent();
|
|
1760
1408
|
case 8:
|
|
1761
1409
|
parsedBody = parsedOutput.body;
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
response.
|
|
1768
|
-
delete response.Message;
|
|
1769
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1410
|
+
response = new __BaseException({
|
|
1411
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1412
|
+
$fault: "client",
|
|
1413
|
+
$metadata: deserializeMetadata(output),
|
|
1414
|
+
});
|
|
1415
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1770
1416
|
}
|
|
1771
1417
|
});
|
|
1772
1418
|
}); };
|
|
@@ -1789,16 +1435,16 @@ export var deserializeAws_queryDescribeServiceAccessPoliciesCommand = function (
|
|
|
1789
1435
|
});
|
|
1790
1436
|
}); };
|
|
1791
1437
|
var deserializeAws_queryDescribeServiceAccessPoliciesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1792
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1793
|
-
var
|
|
1794
|
-
return __generator(this, function (
|
|
1795
|
-
switch (
|
|
1438
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1439
|
+
var _c;
|
|
1440
|
+
return __generator(this, function (_d) {
|
|
1441
|
+
switch (_d.label) {
|
|
1796
1442
|
case 0:
|
|
1797
1443
|
_a = [__assign({}, output)];
|
|
1798
|
-
|
|
1444
|
+
_c = {};
|
|
1799
1445
|
return [4, parseBody(output.body, context)];
|
|
1800
1446
|
case 1:
|
|
1801
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1447
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1802
1448
|
errorCode = "UnknownError";
|
|
1803
1449
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1804
1450
|
_b = errorCode;
|
|
@@ -1811,34 +1457,20 @@ var deserializeAws_queryDescribeServiceAccessPoliciesCommandError = function (ou
|
|
|
1811
1457
|
case "com.amazonaws.cloudsearch#ResourceNotFoundException": return [3, 6];
|
|
1812
1458
|
}
|
|
1813
1459
|
return [3, 8];
|
|
1814
|
-
case 2:
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
case
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
case 4:
|
|
1821
|
-
_d = [{}];
|
|
1822
|
-
return [4, deserializeAws_queryInternalExceptionResponse(parsedOutput, context)];
|
|
1823
|
-
case 5:
|
|
1824
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1825
|
-
return [3, 9];
|
|
1826
|
-
case 6:
|
|
1827
|
-
_e = [{}];
|
|
1828
|
-
return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1829
|
-
case 7:
|
|
1830
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1831
|
-
return [3, 9];
|
|
1460
|
+
case 2: return [4, deserializeAws_queryBaseExceptionResponse(parsedOutput, context)];
|
|
1461
|
+
case 3: throw _d.sent();
|
|
1462
|
+
case 4: return [4, deserializeAws_queryInternalExceptionResponse(parsedOutput, context)];
|
|
1463
|
+
case 5: throw _d.sent();
|
|
1464
|
+
case 6: return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1465
|
+
case 7: throw _d.sent();
|
|
1832
1466
|
case 8:
|
|
1833
1467
|
parsedBody = parsedOutput.body;
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
response.
|
|
1840
|
-
delete response.Message;
|
|
1841
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1468
|
+
response = new __BaseException({
|
|
1469
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1470
|
+
$fault: "client",
|
|
1471
|
+
$metadata: deserializeMetadata(output),
|
|
1472
|
+
});
|
|
1473
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1842
1474
|
}
|
|
1843
1475
|
});
|
|
1844
1476
|
}); };
|
|
@@ -1861,16 +1493,16 @@ export var deserializeAws_queryDescribeSuggestersCommand = function (output, con
|
|
|
1861
1493
|
});
|
|
1862
1494
|
}); };
|
|
1863
1495
|
var deserializeAws_queryDescribeSuggestersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1864
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1865
|
-
var
|
|
1866
|
-
return __generator(this, function (
|
|
1867
|
-
switch (
|
|
1496
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1497
|
+
var _c;
|
|
1498
|
+
return __generator(this, function (_d) {
|
|
1499
|
+
switch (_d.label) {
|
|
1868
1500
|
case 0:
|
|
1869
1501
|
_a = [__assign({}, output)];
|
|
1870
|
-
|
|
1502
|
+
_c = {};
|
|
1871
1503
|
return [4, parseBody(output.body, context)];
|
|
1872
1504
|
case 1:
|
|
1873
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1505
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1874
1506
|
errorCode = "UnknownError";
|
|
1875
1507
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1876
1508
|
_b = errorCode;
|
|
@@ -1883,34 +1515,20 @@ var deserializeAws_queryDescribeSuggestersCommandError = function (output, conte
|
|
|
1883
1515
|
case "com.amazonaws.cloudsearch#ResourceNotFoundException": return [3, 6];
|
|
1884
1516
|
}
|
|
1885
1517
|
return [3, 8];
|
|
1886
|
-
case 2:
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
case
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
case 4:
|
|
1893
|
-
_d = [{}];
|
|
1894
|
-
return [4, deserializeAws_queryInternalExceptionResponse(parsedOutput, context)];
|
|
1895
|
-
case 5:
|
|
1896
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1897
|
-
return [3, 9];
|
|
1898
|
-
case 6:
|
|
1899
|
-
_e = [{}];
|
|
1900
|
-
return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1901
|
-
case 7:
|
|
1902
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1903
|
-
return [3, 9];
|
|
1518
|
+
case 2: return [4, deserializeAws_queryBaseExceptionResponse(parsedOutput, context)];
|
|
1519
|
+
case 3: throw _d.sent();
|
|
1520
|
+
case 4: return [4, deserializeAws_queryInternalExceptionResponse(parsedOutput, context)];
|
|
1521
|
+
case 5: throw _d.sent();
|
|
1522
|
+
case 6: return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1523
|
+
case 7: throw _d.sent();
|
|
1904
1524
|
case 8:
|
|
1905
1525
|
parsedBody = parsedOutput.body;
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
response.
|
|
1912
|
-
delete response.Message;
|
|
1913
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1526
|
+
response = new __BaseException({
|
|
1527
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1528
|
+
$fault: "client",
|
|
1529
|
+
$metadata: deserializeMetadata(output),
|
|
1530
|
+
});
|
|
1531
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1914
1532
|
}
|
|
1915
1533
|
});
|
|
1916
1534
|
}); };
|
|
@@ -1933,16 +1551,16 @@ export var deserializeAws_queryIndexDocumentsCommand = function (output, context
|
|
|
1933
1551
|
});
|
|
1934
1552
|
}); };
|
|
1935
1553
|
var deserializeAws_queryIndexDocumentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1936
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1937
|
-
var
|
|
1938
|
-
return __generator(this, function (
|
|
1939
|
-
switch (
|
|
1554
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1555
|
+
var _c;
|
|
1556
|
+
return __generator(this, function (_d) {
|
|
1557
|
+
switch (_d.label) {
|
|
1940
1558
|
case 0:
|
|
1941
1559
|
_a = [__assign({}, output)];
|
|
1942
|
-
|
|
1560
|
+
_c = {};
|
|
1943
1561
|
return [4, parseBody(output.body, context)];
|
|
1944
1562
|
case 1:
|
|
1945
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1563
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1946
1564
|
errorCode = "UnknownError";
|
|
1947
1565
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1948
1566
|
_b = errorCode;
|
|
@@ -1957,40 +1575,22 @@ var deserializeAws_queryIndexDocumentsCommandError = function (output, context)
|
|
|
1957
1575
|
case "com.amazonaws.cloudsearch#ValidationException": return [3, 8];
|
|
1958
1576
|
}
|
|
1959
1577
|
return [3, 10];
|
|
1960
|
-
case 2:
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
case
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
case 4
|
|
1967
|
-
|
|
1968
|
-
return [4, deserializeAws_queryInternalExceptionResponse(parsedOutput, context)];
|
|
1969
|
-
case 5:
|
|
1970
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1971
|
-
return [3, 11];
|
|
1972
|
-
case 6:
|
|
1973
|
-
_e = [{}];
|
|
1974
|
-
return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1975
|
-
case 7:
|
|
1976
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1977
|
-
return [3, 11];
|
|
1978
|
-
case 8:
|
|
1979
|
-
_f = [{}];
|
|
1980
|
-
return [4, deserializeAws_queryValidationExceptionResponse(parsedOutput, context)];
|
|
1981
|
-
case 9:
|
|
1982
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1983
|
-
return [3, 11];
|
|
1578
|
+
case 2: return [4, deserializeAws_queryBaseExceptionResponse(parsedOutput, context)];
|
|
1579
|
+
case 3: throw _d.sent();
|
|
1580
|
+
case 4: return [4, deserializeAws_queryInternalExceptionResponse(parsedOutput, context)];
|
|
1581
|
+
case 5: throw _d.sent();
|
|
1582
|
+
case 6: return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1583
|
+
case 7: throw _d.sent();
|
|
1584
|
+
case 8: return [4, deserializeAws_queryValidationExceptionResponse(parsedOutput, context)];
|
|
1585
|
+
case 9: throw _d.sent();
|
|
1984
1586
|
case 10:
|
|
1985
1587
|
parsedBody = parsedOutput.body;
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
response.
|
|
1992
|
-
delete response.Message;
|
|
1993
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1588
|
+
response = new __BaseException({
|
|
1589
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1590
|
+
$fault: "client",
|
|
1591
|
+
$metadata: deserializeMetadata(output),
|
|
1592
|
+
});
|
|
1593
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1994
1594
|
}
|
|
1995
1595
|
});
|
|
1996
1596
|
}); };
|
|
@@ -2013,16 +1613,16 @@ export var deserializeAws_queryListDomainNamesCommand = function (output, contex
|
|
|
2013
1613
|
});
|
|
2014
1614
|
}); };
|
|
2015
1615
|
var deserializeAws_queryListDomainNamesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2016
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2017
|
-
var
|
|
2018
|
-
return __generator(this, function (
|
|
2019
|
-
switch (
|
|
1616
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1617
|
+
var _c;
|
|
1618
|
+
return __generator(this, function (_d) {
|
|
1619
|
+
switch (_d.label) {
|
|
2020
1620
|
case 0:
|
|
2021
1621
|
_a = [__assign({}, output)];
|
|
2022
|
-
|
|
1622
|
+
_c = {};
|
|
2023
1623
|
return [4, parseBody(output.body, context)];
|
|
2024
1624
|
case 1:
|
|
2025
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1625
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2026
1626
|
errorCode = "UnknownError";
|
|
2027
1627
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2028
1628
|
_b = errorCode;
|
|
@@ -2031,22 +1631,16 @@ var deserializeAws_queryListDomainNamesCommandError = function (output, context)
|
|
|
2031
1631
|
case "com.amazonaws.cloudsearch#BaseException": return [3, 2];
|
|
2032
1632
|
}
|
|
2033
1633
|
return [3, 4];
|
|
2034
|
-
case 2:
|
|
2035
|
-
|
|
2036
|
-
return [4, deserializeAws_queryBaseExceptionResponse(parsedOutput, context)];
|
|
2037
|
-
case 3:
|
|
2038
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2039
|
-
return [3, 5];
|
|
1634
|
+
case 2: return [4, deserializeAws_queryBaseExceptionResponse(parsedOutput, context)];
|
|
1635
|
+
case 3: throw _d.sent();
|
|
2040
1636
|
case 4:
|
|
2041
1637
|
parsedBody = parsedOutput.body;
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
response.
|
|
2048
|
-
delete response.Message;
|
|
2049
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1638
|
+
response = new __BaseException({
|
|
1639
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1640
|
+
$fault: "client",
|
|
1641
|
+
$metadata: deserializeMetadata(output),
|
|
1642
|
+
});
|
|
1643
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
2050
1644
|
}
|
|
2051
1645
|
});
|
|
2052
1646
|
}); };
|
|
@@ -2069,16 +1663,16 @@ export var deserializeAws_queryUpdateAvailabilityOptionsCommand = function (outp
|
|
|
2069
1663
|
});
|
|
2070
1664
|
}); };
|
|
2071
1665
|
var deserializeAws_queryUpdateAvailabilityOptionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2072
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2073
|
-
var
|
|
2074
|
-
return __generator(this, function (
|
|
2075
|
-
switch (
|
|
1666
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1667
|
+
var _c;
|
|
1668
|
+
return __generator(this, function (_d) {
|
|
1669
|
+
switch (_d.label) {
|
|
2076
1670
|
case 0:
|
|
2077
1671
|
_a = [__assign({}, output)];
|
|
2078
|
-
|
|
1672
|
+
_c = {};
|
|
2079
1673
|
return [4, parseBody(output.body, context)];
|
|
2080
1674
|
case 1:
|
|
2081
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1675
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2082
1676
|
errorCode = "UnknownError";
|
|
2083
1677
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2084
1678
|
_b = errorCode;
|
|
@@ -2099,58 +1693,28 @@ var deserializeAws_queryUpdateAvailabilityOptionsCommandError = function (output
|
|
|
2099
1693
|
case "com.amazonaws.cloudsearch#ValidationException": return [3, 14];
|
|
2100
1694
|
}
|
|
2101
1695
|
return [3, 16];
|
|
2102
|
-
case 2:
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
case
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
case 4
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
case
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
case
|
|
2115
|
-
|
|
2116
|
-
return [4, deserializeAws_queryInternalExceptionResponse(parsedOutput, context)];
|
|
2117
|
-
case 7:
|
|
2118
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2119
|
-
return [3, 17];
|
|
2120
|
-
case 8:
|
|
2121
|
-
_f = [{}];
|
|
2122
|
-
return [4, deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context)];
|
|
2123
|
-
case 9:
|
|
2124
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2125
|
-
return [3, 17];
|
|
2126
|
-
case 10:
|
|
2127
|
-
_g = [{}];
|
|
2128
|
-
return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
2129
|
-
case 11:
|
|
2130
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2131
|
-
return [3, 17];
|
|
2132
|
-
case 12:
|
|
2133
|
-
_h = [{}];
|
|
2134
|
-
return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2135
|
-
case 13:
|
|
2136
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2137
|
-
return [3, 17];
|
|
2138
|
-
case 14:
|
|
2139
|
-
_j = [{}];
|
|
2140
|
-
return [4, deserializeAws_queryValidationExceptionResponse(parsedOutput, context)];
|
|
2141
|
-
case 15:
|
|
2142
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2143
|
-
return [3, 17];
|
|
1696
|
+
case 2: return [4, deserializeAws_queryBaseExceptionResponse(parsedOutput, context)];
|
|
1697
|
+
case 3: throw _d.sent();
|
|
1698
|
+
case 4: return [4, deserializeAws_queryDisabledOperationExceptionResponse(parsedOutput, context)];
|
|
1699
|
+
case 5: throw _d.sent();
|
|
1700
|
+
case 6: return [4, deserializeAws_queryInternalExceptionResponse(parsedOutput, context)];
|
|
1701
|
+
case 7: throw _d.sent();
|
|
1702
|
+
case 8: return [4, deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context)];
|
|
1703
|
+
case 9: throw _d.sent();
|
|
1704
|
+
case 10: return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1705
|
+
case 11: throw _d.sent();
|
|
1706
|
+
case 12: return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1707
|
+
case 13: throw _d.sent();
|
|
1708
|
+
case 14: return [4, deserializeAws_queryValidationExceptionResponse(parsedOutput, context)];
|
|
1709
|
+
case 15: throw _d.sent();
|
|
2144
1710
|
case 16:
|
|
2145
1711
|
parsedBody = parsedOutput.body;
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
response.
|
|
2152
|
-
delete response.Message;
|
|
2153
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1712
|
+
response = new __BaseException({
|
|
1713
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1714
|
+
$fault: "client",
|
|
1715
|
+
$metadata: deserializeMetadata(output),
|
|
1716
|
+
});
|
|
1717
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
2154
1718
|
}
|
|
2155
1719
|
});
|
|
2156
1720
|
}); };
|
|
@@ -2173,16 +1737,16 @@ export var deserializeAws_queryUpdateDomainEndpointOptionsCommand = function (ou
|
|
|
2173
1737
|
});
|
|
2174
1738
|
}); };
|
|
2175
1739
|
var deserializeAws_queryUpdateDomainEndpointOptionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2176
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2177
|
-
var
|
|
2178
|
-
return __generator(this, function (
|
|
2179
|
-
switch (
|
|
1740
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1741
|
+
var _c;
|
|
1742
|
+
return __generator(this, function (_d) {
|
|
1743
|
+
switch (_d.label) {
|
|
2180
1744
|
case 0:
|
|
2181
1745
|
_a = [__assign({}, output)];
|
|
2182
|
-
|
|
1746
|
+
_c = {};
|
|
2183
1747
|
return [4, parseBody(output.body, context)];
|
|
2184
1748
|
case 1:
|
|
2185
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1749
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2186
1750
|
errorCode = "UnknownError";
|
|
2187
1751
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2188
1752
|
_b = errorCode;
|
|
@@ -2203,58 +1767,28 @@ var deserializeAws_queryUpdateDomainEndpointOptionsCommandError = function (outp
|
|
|
2203
1767
|
case "com.amazonaws.cloudsearch#ValidationException": return [3, 14];
|
|
2204
1768
|
}
|
|
2205
1769
|
return [3, 16];
|
|
2206
|
-
case 2:
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
case
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
case 4
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
case
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
case
|
|
2219
|
-
|
|
2220
|
-
return [4, deserializeAws_queryInternalExceptionResponse(parsedOutput, context)];
|
|
2221
|
-
case 7:
|
|
2222
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2223
|
-
return [3, 17];
|
|
2224
|
-
case 8:
|
|
2225
|
-
_f = [{}];
|
|
2226
|
-
return [4, deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context)];
|
|
2227
|
-
case 9:
|
|
2228
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2229
|
-
return [3, 17];
|
|
2230
|
-
case 10:
|
|
2231
|
-
_g = [{}];
|
|
2232
|
-
return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
2233
|
-
case 11:
|
|
2234
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2235
|
-
return [3, 17];
|
|
2236
|
-
case 12:
|
|
2237
|
-
_h = [{}];
|
|
2238
|
-
return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2239
|
-
case 13:
|
|
2240
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2241
|
-
return [3, 17];
|
|
2242
|
-
case 14:
|
|
2243
|
-
_j = [{}];
|
|
2244
|
-
return [4, deserializeAws_queryValidationExceptionResponse(parsedOutput, context)];
|
|
2245
|
-
case 15:
|
|
2246
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2247
|
-
return [3, 17];
|
|
1770
|
+
case 2: return [4, deserializeAws_queryBaseExceptionResponse(parsedOutput, context)];
|
|
1771
|
+
case 3: throw _d.sent();
|
|
1772
|
+
case 4: return [4, deserializeAws_queryDisabledOperationExceptionResponse(parsedOutput, context)];
|
|
1773
|
+
case 5: throw _d.sent();
|
|
1774
|
+
case 6: return [4, deserializeAws_queryInternalExceptionResponse(parsedOutput, context)];
|
|
1775
|
+
case 7: throw _d.sent();
|
|
1776
|
+
case 8: return [4, deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context)];
|
|
1777
|
+
case 9: throw _d.sent();
|
|
1778
|
+
case 10: return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1779
|
+
case 11: throw _d.sent();
|
|
1780
|
+
case 12: return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1781
|
+
case 13: throw _d.sent();
|
|
1782
|
+
case 14: return [4, deserializeAws_queryValidationExceptionResponse(parsedOutput, context)];
|
|
1783
|
+
case 15: throw _d.sent();
|
|
2248
1784
|
case 16:
|
|
2249
1785
|
parsedBody = parsedOutput.body;
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
response.
|
|
2256
|
-
delete response.Message;
|
|
2257
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1786
|
+
response = new __BaseException({
|
|
1787
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1788
|
+
$fault: "client",
|
|
1789
|
+
$metadata: deserializeMetadata(output),
|
|
1790
|
+
});
|
|
1791
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
2258
1792
|
}
|
|
2259
1793
|
});
|
|
2260
1794
|
}); };
|
|
@@ -2277,16 +1811,16 @@ export var deserializeAws_queryUpdateScalingParametersCommand = function (output
|
|
|
2277
1811
|
});
|
|
2278
1812
|
}); };
|
|
2279
1813
|
var deserializeAws_queryUpdateScalingParametersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2280
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2281
|
-
var
|
|
2282
|
-
return __generator(this, function (
|
|
2283
|
-
switch (
|
|
1814
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1815
|
+
var _c;
|
|
1816
|
+
return __generator(this, function (_d) {
|
|
1817
|
+
switch (_d.label) {
|
|
2284
1818
|
case 0:
|
|
2285
1819
|
_a = [__assign({}, output)];
|
|
2286
|
-
|
|
1820
|
+
_c = {};
|
|
2287
1821
|
return [4, parseBody(output.body, context)];
|
|
2288
1822
|
case 1:
|
|
2289
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1823
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2290
1824
|
errorCode = "UnknownError";
|
|
2291
1825
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2292
1826
|
_b = errorCode;
|
|
@@ -2305,52 +1839,26 @@ var deserializeAws_queryUpdateScalingParametersCommandError = function (output,
|
|
|
2305
1839
|
case "com.amazonaws.cloudsearch#ValidationException": return [3, 12];
|
|
2306
1840
|
}
|
|
2307
1841
|
return [3, 14];
|
|
2308
|
-
case 2:
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
case
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
case 4
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
case
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
case 6:
|
|
2321
|
-
_e = [{}];
|
|
2322
|
-
return [4, deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context)];
|
|
2323
|
-
case 7:
|
|
2324
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2325
|
-
return [3, 15];
|
|
2326
|
-
case 8:
|
|
2327
|
-
_f = [{}];
|
|
2328
|
-
return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
2329
|
-
case 9:
|
|
2330
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2331
|
-
return [3, 15];
|
|
2332
|
-
case 10:
|
|
2333
|
-
_g = [{}];
|
|
2334
|
-
return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2335
|
-
case 11:
|
|
2336
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2337
|
-
return [3, 15];
|
|
2338
|
-
case 12:
|
|
2339
|
-
_h = [{}];
|
|
2340
|
-
return [4, deserializeAws_queryValidationExceptionResponse(parsedOutput, context)];
|
|
2341
|
-
case 13:
|
|
2342
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2343
|
-
return [3, 15];
|
|
1842
|
+
case 2: return [4, deserializeAws_queryBaseExceptionResponse(parsedOutput, context)];
|
|
1843
|
+
case 3: throw _d.sent();
|
|
1844
|
+
case 4: return [4, deserializeAws_queryInternalExceptionResponse(parsedOutput, context)];
|
|
1845
|
+
case 5: throw _d.sent();
|
|
1846
|
+
case 6: return [4, deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context)];
|
|
1847
|
+
case 7: throw _d.sent();
|
|
1848
|
+
case 8: return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1849
|
+
case 9: throw _d.sent();
|
|
1850
|
+
case 10: return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1851
|
+
case 11: throw _d.sent();
|
|
1852
|
+
case 12: return [4, deserializeAws_queryValidationExceptionResponse(parsedOutput, context)];
|
|
1853
|
+
case 13: throw _d.sent();
|
|
2344
1854
|
case 14:
|
|
2345
1855
|
parsedBody = parsedOutput.body;
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
response.
|
|
2352
|
-
delete response.Message;
|
|
2353
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1856
|
+
response = new __BaseException({
|
|
1857
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1858
|
+
$fault: "client",
|
|
1859
|
+
$metadata: deserializeMetadata(output),
|
|
1860
|
+
});
|
|
1861
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
2354
1862
|
}
|
|
2355
1863
|
});
|
|
2356
1864
|
}); };
|
|
@@ -2373,16 +1881,16 @@ export var deserializeAws_queryUpdateServiceAccessPoliciesCommand = function (ou
|
|
|
2373
1881
|
});
|
|
2374
1882
|
}); };
|
|
2375
1883
|
var deserializeAws_queryUpdateServiceAccessPoliciesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2376
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2377
|
-
var
|
|
2378
|
-
return __generator(this, function (
|
|
2379
|
-
switch (
|
|
1884
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1885
|
+
var _c;
|
|
1886
|
+
return __generator(this, function (_d) {
|
|
1887
|
+
switch (_d.label) {
|
|
2380
1888
|
case 0:
|
|
2381
1889
|
_a = [__assign({}, output)];
|
|
2382
|
-
|
|
1890
|
+
_c = {};
|
|
2383
1891
|
return [4, parseBody(output.body, context)];
|
|
2384
1892
|
case 1:
|
|
2385
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1893
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2386
1894
|
errorCode = "UnknownError";
|
|
2387
1895
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2388
1896
|
_b = errorCode;
|
|
@@ -2401,125 +1909,99 @@ var deserializeAws_queryUpdateServiceAccessPoliciesCommandError = function (outp
|
|
|
2401
1909
|
case "com.amazonaws.cloudsearch#ValidationException": return [3, 12];
|
|
2402
1910
|
}
|
|
2403
1911
|
return [3, 14];
|
|
2404
|
-
case 2:
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
case
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
case 4
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
case
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
case 6:
|
|
2417
|
-
_e = [{}];
|
|
2418
|
-
return [4, deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context)];
|
|
2419
|
-
case 7:
|
|
2420
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2421
|
-
return [3, 15];
|
|
2422
|
-
case 8:
|
|
2423
|
-
_f = [{}];
|
|
2424
|
-
return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
2425
|
-
case 9:
|
|
2426
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2427
|
-
return [3, 15];
|
|
2428
|
-
case 10:
|
|
2429
|
-
_g = [{}];
|
|
2430
|
-
return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2431
|
-
case 11:
|
|
2432
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2433
|
-
return [3, 15];
|
|
2434
|
-
case 12:
|
|
2435
|
-
_h = [{}];
|
|
2436
|
-
return [4, deserializeAws_queryValidationExceptionResponse(parsedOutput, context)];
|
|
2437
|
-
case 13:
|
|
2438
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2439
|
-
return [3, 15];
|
|
1912
|
+
case 2: return [4, deserializeAws_queryBaseExceptionResponse(parsedOutput, context)];
|
|
1913
|
+
case 3: throw _d.sent();
|
|
1914
|
+
case 4: return [4, deserializeAws_queryInternalExceptionResponse(parsedOutput, context)];
|
|
1915
|
+
case 5: throw _d.sent();
|
|
1916
|
+
case 6: return [4, deserializeAws_queryInvalidTypeExceptionResponse(parsedOutput, context)];
|
|
1917
|
+
case 7: throw _d.sent();
|
|
1918
|
+
case 8: return [4, deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1919
|
+
case 9: throw _d.sent();
|
|
1920
|
+
case 10: return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1921
|
+
case 11: throw _d.sent();
|
|
1922
|
+
case 12: return [4, deserializeAws_queryValidationExceptionResponse(parsedOutput, context)];
|
|
1923
|
+
case 13: throw _d.sent();
|
|
2440
1924
|
case 14:
|
|
2441
1925
|
parsedBody = parsedOutput.body;
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
response.
|
|
2448
|
-
delete response.Message;
|
|
2449
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1926
|
+
response = new __BaseException({
|
|
1927
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1928
|
+
$fault: "client",
|
|
1929
|
+
$metadata: deserializeMetadata(output),
|
|
1930
|
+
});
|
|
1931
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
2450
1932
|
}
|
|
2451
1933
|
});
|
|
2452
1934
|
}); };
|
|
2453
1935
|
var deserializeAws_queryBaseExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2454
|
-
var body, deserialized,
|
|
1936
|
+
var body, deserialized, exception;
|
|
2455
1937
|
return __generator(this, function (_a) {
|
|
2456
1938
|
body = parsedOutput.body;
|
|
2457
1939
|
deserialized = deserializeAws_queryBaseException(body.Error, context);
|
|
2458
|
-
|
|
2459
|
-
return [2,
|
|
1940
|
+
exception = new BaseException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1941
|
+
return [2, __decorateServiceException(exception, body)];
|
|
2460
1942
|
});
|
|
2461
1943
|
}); };
|
|
2462
1944
|
var deserializeAws_queryDisabledOperationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2463
|
-
var body, deserialized,
|
|
1945
|
+
var body, deserialized, exception;
|
|
2464
1946
|
return __generator(this, function (_a) {
|
|
2465
1947
|
body = parsedOutput.body;
|
|
2466
1948
|
deserialized = deserializeAws_queryDisabledOperationException(body.Error, context);
|
|
2467
|
-
|
|
2468
|
-
return [2,
|
|
1949
|
+
exception = new DisabledOperationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1950
|
+
return [2, __decorateServiceException(exception, body)];
|
|
2469
1951
|
});
|
|
2470
1952
|
}); };
|
|
2471
1953
|
var deserializeAws_queryInternalExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2472
|
-
var body, deserialized,
|
|
1954
|
+
var body, deserialized, exception;
|
|
2473
1955
|
return __generator(this, function (_a) {
|
|
2474
1956
|
body = parsedOutput.body;
|
|
2475
1957
|
deserialized = deserializeAws_queryInternalException(body.Error, context);
|
|
2476
|
-
|
|
2477
|
-
return [2,
|
|
1958
|
+
exception = new InternalException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1959
|
+
return [2, __decorateServiceException(exception, body)];
|
|
2478
1960
|
});
|
|
2479
1961
|
}); };
|
|
2480
1962
|
var deserializeAws_queryInvalidTypeExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2481
|
-
var body, deserialized,
|
|
1963
|
+
var body, deserialized, exception;
|
|
2482
1964
|
return __generator(this, function (_a) {
|
|
2483
1965
|
body = parsedOutput.body;
|
|
2484
1966
|
deserialized = deserializeAws_queryInvalidTypeException(body.Error, context);
|
|
2485
|
-
|
|
2486
|
-
return [2,
|
|
1967
|
+
exception = new InvalidTypeException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1968
|
+
return [2, __decorateServiceException(exception, body)];
|
|
2487
1969
|
});
|
|
2488
1970
|
}); };
|
|
2489
1971
|
var deserializeAws_queryLimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2490
|
-
var body, deserialized,
|
|
1972
|
+
var body, deserialized, exception;
|
|
2491
1973
|
return __generator(this, function (_a) {
|
|
2492
1974
|
body = parsedOutput.body;
|
|
2493
1975
|
deserialized = deserializeAws_queryLimitExceededException(body.Error, context);
|
|
2494
|
-
|
|
2495
|
-
return [2,
|
|
1976
|
+
exception = new LimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1977
|
+
return [2, __decorateServiceException(exception, body)];
|
|
2496
1978
|
});
|
|
2497
1979
|
}); };
|
|
2498
1980
|
var deserializeAws_queryResourceAlreadyExistsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2499
|
-
var body, deserialized,
|
|
1981
|
+
var body, deserialized, exception;
|
|
2500
1982
|
return __generator(this, function (_a) {
|
|
2501
1983
|
body = parsedOutput.body;
|
|
2502
1984
|
deserialized = deserializeAws_queryResourceAlreadyExistsException(body.Error, context);
|
|
2503
|
-
|
|
2504
|
-
return [2,
|
|
1985
|
+
exception = new ResourceAlreadyExistsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1986
|
+
return [2, __decorateServiceException(exception, body)];
|
|
2505
1987
|
});
|
|
2506
1988
|
}); };
|
|
2507
1989
|
var deserializeAws_queryResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2508
|
-
var body, deserialized,
|
|
1990
|
+
var body, deserialized, exception;
|
|
2509
1991
|
return __generator(this, function (_a) {
|
|
2510
1992
|
body = parsedOutput.body;
|
|
2511
1993
|
deserialized = deserializeAws_queryResourceNotFoundException(body.Error, context);
|
|
2512
|
-
|
|
2513
|
-
return [2,
|
|
1994
|
+
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1995
|
+
return [2, __decorateServiceException(exception, body)];
|
|
2514
1996
|
});
|
|
2515
1997
|
}); };
|
|
2516
1998
|
var deserializeAws_queryValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2517
|
-
var body, deserialized,
|
|
1999
|
+
var body, deserialized, exception;
|
|
2518
2000
|
return __generator(this, function (_a) {
|
|
2519
2001
|
body = parsedOutput.body;
|
|
2520
2002
|
deserialized = deserializeAws_queryValidationException(body.Error, context);
|
|
2521
|
-
|
|
2522
|
-
return [2,
|
|
2003
|
+
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
2004
|
+
return [2, __decorateServiceException(exception, body)];
|
|
2523
2005
|
});
|
|
2524
2006
|
}); };
|
|
2525
2007
|
var serializeAws_queryAnalysisOptions = function (input, context) {
|