@aws-sdk/client-sns 3.52.0 → 3.54.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/dist-cjs/endpoints.js +3 -5
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/SNSServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +423 -2
- package/dist-cjs/protocols/Aws_query.js +468 -1820
- package/dist-es/endpoints.js +3 -5
- package/dist-es/index.js +1 -0
- package/dist-es/models/SNSServiceException.js +12 -0
- package/dist-es/models/models_0.js +389 -1
- package/dist-es/protocols/Aws_query.js +999 -1917
- package/dist-types/SNSClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/SNSServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +218 -131
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/SNSClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/SNSServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +158 -127
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +27 -27
|
@@ -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, } 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, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { decodeHTML } from "entities";
|
|
5
5
|
import { parse as xmlParse } from "fast-xml-parser";
|
|
6
|
+
import { AuthorizationErrorException, BatchEntryIdsNotDistinctException, BatchRequestTooLongException, ConcurrentAccessException, EmptyBatchRequestException, EndpointDisabledException, FilterPolicyLimitExceededException, InternalErrorException, InvalidBatchEntryIdException, InvalidParameterException, InvalidParameterValueException, InvalidSecurityException, KMSAccessDeniedException, KMSDisabledException, KMSInvalidStateException, KMSNotFoundException, KMSOptInRequired, KMSThrottlingException, NotFoundException, OptedOutException, PlatformApplicationDisabledException, ResourceNotFoundException, StaleTagException, SubscriptionLimitExceededException, TagLimitExceededException, TagPolicyException, ThrottledException, TooManyEntriesInBatchRequestException, TopicLimitExceededException, UserErrorException, ValidationException, VerificationException, } from "../models/models_0";
|
|
7
|
+
import { SNSServiceException as __BaseException } from "../models/SNSServiceException";
|
|
6
8
|
export var serializeAws_queryAddPermissionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
9
|
var headers, body;
|
|
8
10
|
return __generator(this, function (_a) {
|
|
@@ -422,16 +424,16 @@ export var deserializeAws_queryAddPermissionCommand = function (output, context)
|
|
|
422
424
|
});
|
|
423
425
|
}); };
|
|
424
426
|
var deserializeAws_queryAddPermissionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
425
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
426
|
-
var
|
|
427
|
-
return __generator(this, function (
|
|
428
|
-
switch (
|
|
427
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
428
|
+
var _c;
|
|
429
|
+
return __generator(this, function (_d) {
|
|
430
|
+
switch (_d.label) {
|
|
429
431
|
case 0:
|
|
430
432
|
_a = [__assign({}, output)];
|
|
431
|
-
|
|
433
|
+
_c = {};
|
|
432
434
|
return [4, parseBody(output.body, context)];
|
|
433
435
|
case 1:
|
|
434
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
436
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
435
437
|
errorCode = "UnknownError";
|
|
436
438
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
437
439
|
_b = errorCode;
|
|
@@ -446,40 +448,22 @@ var deserializeAws_queryAddPermissionCommandError = function (output, context) {
|
|
|
446
448
|
case "com.amazonaws.sns#NotFoundException": return [3, 8];
|
|
447
449
|
}
|
|
448
450
|
return [3, 10];
|
|
449
|
-
case 2:
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
case
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
case 4
|
|
456
|
-
|
|
457
|
-
return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
458
|
-
case 5:
|
|
459
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
460
|
-
return [3, 11];
|
|
461
|
-
case 6:
|
|
462
|
-
_e = [{}];
|
|
463
|
-
return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
464
|
-
case 7:
|
|
465
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
466
|
-
return [3, 11];
|
|
467
|
-
case 8:
|
|
468
|
-
_f = [{}];
|
|
469
|
-
return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
470
|
-
case 9:
|
|
471
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
472
|
-
return [3, 11];
|
|
451
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
452
|
+
case 3: throw _d.sent();
|
|
453
|
+
case 4: return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
454
|
+
case 5: throw _d.sent();
|
|
455
|
+
case 6: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
456
|
+
case 7: throw _d.sent();
|
|
457
|
+
case 8: return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
458
|
+
case 9: throw _d.sent();
|
|
473
459
|
case 10:
|
|
474
460
|
parsedBody = parsedOutput.body;
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
response.
|
|
481
|
-
delete response.Message;
|
|
482
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
461
|
+
response = new __BaseException({
|
|
462
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
463
|
+
$fault: "client",
|
|
464
|
+
$metadata: deserializeMetadata(output),
|
|
465
|
+
});
|
|
466
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
483
467
|
}
|
|
484
468
|
});
|
|
485
469
|
}); };
|
|
@@ -502,16 +486,16 @@ export var deserializeAws_queryCheckIfPhoneNumberIsOptedOutCommand = function (o
|
|
|
502
486
|
});
|
|
503
487
|
}); };
|
|
504
488
|
var deserializeAws_queryCheckIfPhoneNumberIsOptedOutCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
505
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
506
|
-
var
|
|
507
|
-
return __generator(this, function (
|
|
508
|
-
switch (
|
|
489
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
490
|
+
var _c;
|
|
491
|
+
return __generator(this, function (_d) {
|
|
492
|
+
switch (_d.label) {
|
|
509
493
|
case 0:
|
|
510
494
|
_a = [__assign({}, output)];
|
|
511
|
-
|
|
495
|
+
_c = {};
|
|
512
496
|
return [4, parseBody(output.body, context)];
|
|
513
497
|
case 1:
|
|
514
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
498
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
515
499
|
errorCode = "UnknownError";
|
|
516
500
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
517
501
|
_b = errorCode;
|
|
@@ -526,40 +510,22 @@ var deserializeAws_queryCheckIfPhoneNumberIsOptedOutCommandError = function (out
|
|
|
526
510
|
case "com.amazonaws.sns#ThrottledException": return [3, 8];
|
|
527
511
|
}
|
|
528
512
|
return [3, 10];
|
|
529
|
-
case 2:
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
case
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
case 4
|
|
536
|
-
|
|
537
|
-
return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
538
|
-
case 5:
|
|
539
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
540
|
-
return [3, 11];
|
|
541
|
-
case 6:
|
|
542
|
-
_e = [{}];
|
|
543
|
-
return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
544
|
-
case 7:
|
|
545
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
546
|
-
return [3, 11];
|
|
547
|
-
case 8:
|
|
548
|
-
_f = [{}];
|
|
549
|
-
return [4, deserializeAws_queryThrottledExceptionResponse(parsedOutput, context)];
|
|
550
|
-
case 9:
|
|
551
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
552
|
-
return [3, 11];
|
|
513
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
514
|
+
case 3: throw _d.sent();
|
|
515
|
+
case 4: return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
516
|
+
case 5: throw _d.sent();
|
|
517
|
+
case 6: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
518
|
+
case 7: throw _d.sent();
|
|
519
|
+
case 8: return [4, deserializeAws_queryThrottledExceptionResponse(parsedOutput, context)];
|
|
520
|
+
case 9: throw _d.sent();
|
|
553
521
|
case 10:
|
|
554
522
|
parsedBody = parsedOutput.body;
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
response.
|
|
561
|
-
delete response.Message;
|
|
562
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
523
|
+
response = new __BaseException({
|
|
524
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
525
|
+
$fault: "client",
|
|
526
|
+
$metadata: deserializeMetadata(output),
|
|
527
|
+
});
|
|
528
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
563
529
|
}
|
|
564
530
|
});
|
|
565
531
|
}); };
|
|
@@ -582,16 +548,16 @@ export var deserializeAws_queryConfirmSubscriptionCommand = function (output, co
|
|
|
582
548
|
});
|
|
583
549
|
}); };
|
|
584
550
|
var deserializeAws_queryConfirmSubscriptionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
585
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
586
|
-
var
|
|
587
|
-
return __generator(this, function (
|
|
588
|
-
switch (
|
|
551
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
552
|
+
var _c;
|
|
553
|
+
return __generator(this, function (_d) {
|
|
554
|
+
switch (_d.label) {
|
|
589
555
|
case 0:
|
|
590
556
|
_a = [__assign({}, output)];
|
|
591
|
-
|
|
557
|
+
_c = {};
|
|
592
558
|
return [4, parseBody(output.body, context)];
|
|
593
559
|
case 1:
|
|
594
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
560
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
595
561
|
errorCode = "UnknownError";
|
|
596
562
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
597
563
|
_b = errorCode;
|
|
@@ -610,52 +576,26 @@ var deserializeAws_queryConfirmSubscriptionCommandError = function (output, cont
|
|
|
610
576
|
case "com.amazonaws.sns#SubscriptionLimitExceededException": return [3, 12];
|
|
611
577
|
}
|
|
612
578
|
return [3, 14];
|
|
613
|
-
case 2:
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
case
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
case 4
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
case
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
case 6:
|
|
626
|
-
_e = [{}];
|
|
627
|
-
return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
628
|
-
case 7:
|
|
629
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
630
|
-
return [3, 15];
|
|
631
|
-
case 8:
|
|
632
|
-
_f = [{}];
|
|
633
|
-
return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
634
|
-
case 9:
|
|
635
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
636
|
-
return [3, 15];
|
|
637
|
-
case 10:
|
|
638
|
-
_g = [{}];
|
|
639
|
-
return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
640
|
-
case 11:
|
|
641
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
642
|
-
return [3, 15];
|
|
643
|
-
case 12:
|
|
644
|
-
_h = [{}];
|
|
645
|
-
return [4, deserializeAws_querySubscriptionLimitExceededExceptionResponse(parsedOutput, context)];
|
|
646
|
-
case 13:
|
|
647
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
648
|
-
return [3, 15];
|
|
579
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
580
|
+
case 3: throw _d.sent();
|
|
581
|
+
case 4: return [4, deserializeAws_queryFilterPolicyLimitExceededExceptionResponse(parsedOutput, context)];
|
|
582
|
+
case 5: throw _d.sent();
|
|
583
|
+
case 6: return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
584
|
+
case 7: throw _d.sent();
|
|
585
|
+
case 8: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
586
|
+
case 9: throw _d.sent();
|
|
587
|
+
case 10: return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
588
|
+
case 11: throw _d.sent();
|
|
589
|
+
case 12: return [4, deserializeAws_querySubscriptionLimitExceededExceptionResponse(parsedOutput, context)];
|
|
590
|
+
case 13: throw _d.sent();
|
|
649
591
|
case 14:
|
|
650
592
|
parsedBody = parsedOutput.body;
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
response.
|
|
657
|
-
delete response.Message;
|
|
658
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
593
|
+
response = new __BaseException({
|
|
594
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
595
|
+
$fault: "client",
|
|
596
|
+
$metadata: deserializeMetadata(output),
|
|
597
|
+
});
|
|
598
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
659
599
|
}
|
|
660
600
|
});
|
|
661
601
|
}); };
|
|
@@ -678,16 +618,16 @@ export var deserializeAws_queryCreatePlatformApplicationCommand = function (outp
|
|
|
678
618
|
});
|
|
679
619
|
}); };
|
|
680
620
|
var deserializeAws_queryCreatePlatformApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
681
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
682
|
-
var
|
|
683
|
-
return __generator(this, function (
|
|
684
|
-
switch (
|
|
621
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
622
|
+
var _c;
|
|
623
|
+
return __generator(this, function (_d) {
|
|
624
|
+
switch (_d.label) {
|
|
685
625
|
case 0:
|
|
686
626
|
_a = [__assign({}, output)];
|
|
687
|
-
|
|
627
|
+
_c = {};
|
|
688
628
|
return [4, parseBody(output.body, context)];
|
|
689
629
|
case 1:
|
|
690
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
630
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
691
631
|
errorCode = "UnknownError";
|
|
692
632
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
693
633
|
_b = errorCode;
|
|
@@ -700,34 +640,20 @@ var deserializeAws_queryCreatePlatformApplicationCommandError = function (output
|
|
|
700
640
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
701
641
|
}
|
|
702
642
|
return [3, 8];
|
|
703
|
-
case 2:
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
case
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
case 4:
|
|
710
|
-
_d = [{}];
|
|
711
|
-
return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
712
|
-
case 5:
|
|
713
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
714
|
-
return [3, 9];
|
|
715
|
-
case 6:
|
|
716
|
-
_e = [{}];
|
|
717
|
-
return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
718
|
-
case 7:
|
|
719
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
720
|
-
return [3, 9];
|
|
643
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
644
|
+
case 3: throw _d.sent();
|
|
645
|
+
case 4: return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
646
|
+
case 5: throw _d.sent();
|
|
647
|
+
case 6: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
648
|
+
case 7: throw _d.sent();
|
|
721
649
|
case 8:
|
|
722
650
|
parsedBody = parsedOutput.body;
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
response.
|
|
729
|
-
delete response.Message;
|
|
730
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
651
|
+
response = new __BaseException({
|
|
652
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
653
|
+
$fault: "client",
|
|
654
|
+
$metadata: deserializeMetadata(output),
|
|
655
|
+
});
|
|
656
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
731
657
|
}
|
|
732
658
|
});
|
|
733
659
|
}); };
|
|
@@ -750,16 +676,16 @@ export var deserializeAws_queryCreatePlatformEndpointCommand = function (output,
|
|
|
750
676
|
});
|
|
751
677
|
}); };
|
|
752
678
|
var deserializeAws_queryCreatePlatformEndpointCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
753
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
754
|
-
var
|
|
755
|
-
return __generator(this, function (
|
|
756
|
-
switch (
|
|
679
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
680
|
+
var _c;
|
|
681
|
+
return __generator(this, function (_d) {
|
|
682
|
+
switch (_d.label) {
|
|
757
683
|
case 0:
|
|
758
684
|
_a = [__assign({}, output)];
|
|
759
|
-
|
|
685
|
+
_c = {};
|
|
760
686
|
return [4, parseBody(output.body, context)];
|
|
761
687
|
case 1:
|
|
762
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
688
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
763
689
|
errorCode = "UnknownError";
|
|
764
690
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
765
691
|
_b = errorCode;
|
|
@@ -774,40 +700,22 @@ var deserializeAws_queryCreatePlatformEndpointCommandError = function (output, c
|
|
|
774
700
|
case "com.amazonaws.sns#NotFoundException": return [3, 8];
|
|
775
701
|
}
|
|
776
702
|
return [3, 10];
|
|
777
|
-
case 2:
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
case
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
case 4
|
|
784
|
-
|
|
785
|
-
return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
786
|
-
case 5:
|
|
787
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
788
|
-
return [3, 11];
|
|
789
|
-
case 6:
|
|
790
|
-
_e = [{}];
|
|
791
|
-
return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
792
|
-
case 7:
|
|
793
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
794
|
-
return [3, 11];
|
|
795
|
-
case 8:
|
|
796
|
-
_f = [{}];
|
|
797
|
-
return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
798
|
-
case 9:
|
|
799
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
800
|
-
return [3, 11];
|
|
703
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
704
|
+
case 3: throw _d.sent();
|
|
705
|
+
case 4: return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
706
|
+
case 5: throw _d.sent();
|
|
707
|
+
case 6: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
708
|
+
case 7: throw _d.sent();
|
|
709
|
+
case 8: return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
710
|
+
case 9: throw _d.sent();
|
|
801
711
|
case 10:
|
|
802
712
|
parsedBody = parsedOutput.body;
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
response.
|
|
809
|
-
delete response.Message;
|
|
810
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
713
|
+
response = new __BaseException({
|
|
714
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
715
|
+
$fault: "client",
|
|
716
|
+
$metadata: deserializeMetadata(output),
|
|
717
|
+
});
|
|
718
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
811
719
|
}
|
|
812
720
|
});
|
|
813
721
|
}); };
|
|
@@ -830,16 +738,16 @@ export var deserializeAws_queryCreateSMSSandboxPhoneNumberCommand = function (ou
|
|
|
830
738
|
});
|
|
831
739
|
}); };
|
|
832
740
|
var deserializeAws_queryCreateSMSSandboxPhoneNumberCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
833
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
834
|
-
var
|
|
835
|
-
return __generator(this, function (
|
|
836
|
-
switch (
|
|
741
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
742
|
+
var _c;
|
|
743
|
+
return __generator(this, function (_d) {
|
|
744
|
+
switch (_d.label) {
|
|
837
745
|
case 0:
|
|
838
746
|
_a = [__assign({}, output)];
|
|
839
|
-
|
|
747
|
+
_c = {};
|
|
840
748
|
return [4, parseBody(output.body, context)];
|
|
841
749
|
case 1:
|
|
842
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
750
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
843
751
|
errorCode = "UnknownError";
|
|
844
752
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
845
753
|
_b = errorCode;
|
|
@@ -858,52 +766,26 @@ var deserializeAws_queryCreateSMSSandboxPhoneNumberCommandError = function (outp
|
|
|
858
766
|
case "com.amazonaws.sns#UserErrorException": return [3, 12];
|
|
859
767
|
}
|
|
860
768
|
return [3, 14];
|
|
861
|
-
case 2:
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
case
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
case 4
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
case
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
case 6:
|
|
874
|
-
_e = [{}];
|
|
875
|
-
return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
876
|
-
case 7:
|
|
877
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
878
|
-
return [3, 15];
|
|
879
|
-
case 8:
|
|
880
|
-
_f = [{}];
|
|
881
|
-
return [4, deserializeAws_queryOptedOutExceptionResponse(parsedOutput, context)];
|
|
882
|
-
case 9:
|
|
883
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
884
|
-
return [3, 15];
|
|
885
|
-
case 10:
|
|
886
|
-
_g = [{}];
|
|
887
|
-
return [4, deserializeAws_queryThrottledExceptionResponse(parsedOutput, context)];
|
|
888
|
-
case 11:
|
|
889
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
890
|
-
return [3, 15];
|
|
891
|
-
case 12:
|
|
892
|
-
_h = [{}];
|
|
893
|
-
return [4, deserializeAws_queryUserErrorExceptionResponse(parsedOutput, context)];
|
|
894
|
-
case 13:
|
|
895
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
896
|
-
return [3, 15];
|
|
769
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
770
|
+
case 3: throw _d.sent();
|
|
771
|
+
case 4: return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
772
|
+
case 5: throw _d.sent();
|
|
773
|
+
case 6: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
774
|
+
case 7: throw _d.sent();
|
|
775
|
+
case 8: return [4, deserializeAws_queryOptedOutExceptionResponse(parsedOutput, context)];
|
|
776
|
+
case 9: throw _d.sent();
|
|
777
|
+
case 10: return [4, deserializeAws_queryThrottledExceptionResponse(parsedOutput, context)];
|
|
778
|
+
case 11: throw _d.sent();
|
|
779
|
+
case 12: return [4, deserializeAws_queryUserErrorExceptionResponse(parsedOutput, context)];
|
|
780
|
+
case 13: throw _d.sent();
|
|
897
781
|
case 14:
|
|
898
782
|
parsedBody = parsedOutput.body;
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
response.
|
|
905
|
-
delete response.Message;
|
|
906
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
783
|
+
response = new __BaseException({
|
|
784
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
785
|
+
$fault: "client",
|
|
786
|
+
$metadata: deserializeMetadata(output),
|
|
787
|
+
});
|
|
788
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
907
789
|
}
|
|
908
790
|
});
|
|
909
791
|
}); };
|
|
@@ -926,16 +808,16 @@ export var deserializeAws_queryCreateTopicCommand = function (output, context) {
|
|
|
926
808
|
});
|
|
927
809
|
}); };
|
|
928
810
|
var deserializeAws_queryCreateTopicCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
929
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
930
|
-
var
|
|
931
|
-
return __generator(this, function (
|
|
932
|
-
switch (
|
|
811
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
812
|
+
var _c;
|
|
813
|
+
return __generator(this, function (_d) {
|
|
814
|
+
switch (_d.label) {
|
|
933
815
|
case 0:
|
|
934
816
|
_a = [__assign({}, output)];
|
|
935
|
-
|
|
817
|
+
_c = {};
|
|
936
818
|
return [4, parseBody(output.body, context)];
|
|
937
819
|
case 1:
|
|
938
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
820
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
939
821
|
errorCode = "UnknownError";
|
|
940
822
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
941
823
|
_b = errorCode;
|
|
@@ -960,70 +842,32 @@ var deserializeAws_queryCreateTopicCommandError = function (output, context) { r
|
|
|
960
842
|
case "com.amazonaws.sns#TopicLimitExceededException": return [3, 18];
|
|
961
843
|
}
|
|
962
844
|
return [3, 20];
|
|
963
|
-
case 2:
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
case
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
case 4
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
case
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
case
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
case
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
case 8:
|
|
982
|
-
_f = [{}];
|
|
983
|
-
return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
984
|
-
case 9:
|
|
985
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
986
|
-
return [3, 21];
|
|
987
|
-
case 10:
|
|
988
|
-
_g = [{}];
|
|
989
|
-
return [4, deserializeAws_queryInvalidSecurityExceptionResponse(parsedOutput, context)];
|
|
990
|
-
case 11:
|
|
991
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
992
|
-
return [3, 21];
|
|
993
|
-
case 12:
|
|
994
|
-
_h = [{}];
|
|
995
|
-
return [4, deserializeAws_queryStaleTagExceptionResponse(parsedOutput, context)];
|
|
996
|
-
case 13:
|
|
997
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
998
|
-
return [3, 21];
|
|
999
|
-
case 14:
|
|
1000
|
-
_j = [{}];
|
|
1001
|
-
return [4, deserializeAws_queryTagLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1002
|
-
case 15:
|
|
1003
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1004
|
-
return [3, 21];
|
|
1005
|
-
case 16:
|
|
1006
|
-
_k = [{}];
|
|
1007
|
-
return [4, deserializeAws_queryTagPolicyExceptionResponse(parsedOutput, context)];
|
|
1008
|
-
case 17:
|
|
1009
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1010
|
-
return [3, 21];
|
|
1011
|
-
case 18:
|
|
1012
|
-
_l = [{}];
|
|
1013
|
-
return [4, deserializeAws_queryTopicLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1014
|
-
case 19:
|
|
1015
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1016
|
-
return [3, 21];
|
|
845
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
846
|
+
case 3: throw _d.sent();
|
|
847
|
+
case 4: return [4, deserializeAws_queryConcurrentAccessExceptionResponse(parsedOutput, context)];
|
|
848
|
+
case 5: throw _d.sent();
|
|
849
|
+
case 6: return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
850
|
+
case 7: throw _d.sent();
|
|
851
|
+
case 8: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
852
|
+
case 9: throw _d.sent();
|
|
853
|
+
case 10: return [4, deserializeAws_queryInvalidSecurityExceptionResponse(parsedOutput, context)];
|
|
854
|
+
case 11: throw _d.sent();
|
|
855
|
+
case 12: return [4, deserializeAws_queryStaleTagExceptionResponse(parsedOutput, context)];
|
|
856
|
+
case 13: throw _d.sent();
|
|
857
|
+
case 14: return [4, deserializeAws_queryTagLimitExceededExceptionResponse(parsedOutput, context)];
|
|
858
|
+
case 15: throw _d.sent();
|
|
859
|
+
case 16: return [4, deserializeAws_queryTagPolicyExceptionResponse(parsedOutput, context)];
|
|
860
|
+
case 17: throw _d.sent();
|
|
861
|
+
case 18: return [4, deserializeAws_queryTopicLimitExceededExceptionResponse(parsedOutput, context)];
|
|
862
|
+
case 19: throw _d.sent();
|
|
1017
863
|
case 20:
|
|
1018
864
|
parsedBody = parsedOutput.body;
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
response.
|
|
1025
|
-
delete response.Message;
|
|
1026
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
865
|
+
response = new __BaseException({
|
|
866
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
867
|
+
$fault: "client",
|
|
868
|
+
$metadata: deserializeMetadata(output),
|
|
869
|
+
});
|
|
870
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1027
871
|
}
|
|
1028
872
|
});
|
|
1029
873
|
}); };
|
|
@@ -1046,16 +890,16 @@ export var deserializeAws_queryDeleteEndpointCommand = function (output, context
|
|
|
1046
890
|
});
|
|
1047
891
|
}); };
|
|
1048
892
|
var deserializeAws_queryDeleteEndpointCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1049
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1050
|
-
var
|
|
1051
|
-
return __generator(this, function (
|
|
1052
|
-
switch (
|
|
893
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
894
|
+
var _c;
|
|
895
|
+
return __generator(this, function (_d) {
|
|
896
|
+
switch (_d.label) {
|
|
1053
897
|
case 0:
|
|
1054
898
|
_a = [__assign({}, output)];
|
|
1055
|
-
|
|
899
|
+
_c = {};
|
|
1056
900
|
return [4, parseBody(output.body, context)];
|
|
1057
901
|
case 1:
|
|
1058
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
902
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1059
903
|
errorCode = "UnknownError";
|
|
1060
904
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1061
905
|
_b = errorCode;
|
|
@@ -1068,34 +912,20 @@ var deserializeAws_queryDeleteEndpointCommandError = function (output, context)
|
|
|
1068
912
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
1069
913
|
}
|
|
1070
914
|
return [3, 8];
|
|
1071
|
-
case 2:
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
case
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
case 4:
|
|
1078
|
-
_d = [{}];
|
|
1079
|
-
return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
1080
|
-
case 5:
|
|
1081
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1082
|
-
return [3, 9];
|
|
1083
|
-
case 6:
|
|
1084
|
-
_e = [{}];
|
|
1085
|
-
return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1086
|
-
case 7:
|
|
1087
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1088
|
-
return [3, 9];
|
|
915
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
916
|
+
case 3: throw _d.sent();
|
|
917
|
+
case 4: return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
918
|
+
case 5: throw _d.sent();
|
|
919
|
+
case 6: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
920
|
+
case 7: throw _d.sent();
|
|
1089
921
|
case 8:
|
|
1090
922
|
parsedBody = parsedOutput.body;
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
response.
|
|
1097
|
-
delete response.Message;
|
|
1098
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
923
|
+
response = new __BaseException({
|
|
924
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
925
|
+
$fault: "client",
|
|
926
|
+
$metadata: deserializeMetadata(output),
|
|
927
|
+
});
|
|
928
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1099
929
|
}
|
|
1100
930
|
});
|
|
1101
931
|
}); };
|
|
@@ -1118,16 +948,16 @@ export var deserializeAws_queryDeletePlatformApplicationCommand = function (outp
|
|
|
1118
948
|
});
|
|
1119
949
|
}); };
|
|
1120
950
|
var deserializeAws_queryDeletePlatformApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1121
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1122
|
-
var
|
|
1123
|
-
return __generator(this, function (
|
|
1124
|
-
switch (
|
|
951
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
952
|
+
var _c;
|
|
953
|
+
return __generator(this, function (_d) {
|
|
954
|
+
switch (_d.label) {
|
|
1125
955
|
case 0:
|
|
1126
956
|
_a = [__assign({}, output)];
|
|
1127
|
-
|
|
957
|
+
_c = {};
|
|
1128
958
|
return [4, parseBody(output.body, context)];
|
|
1129
959
|
case 1:
|
|
1130
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
960
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1131
961
|
errorCode = "UnknownError";
|
|
1132
962
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1133
963
|
_b = errorCode;
|
|
@@ -1140,34 +970,20 @@ var deserializeAws_queryDeletePlatformApplicationCommandError = function (output
|
|
|
1140
970
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
1141
971
|
}
|
|
1142
972
|
return [3, 8];
|
|
1143
|
-
case 2:
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
case
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
case 4:
|
|
1150
|
-
_d = [{}];
|
|
1151
|
-
return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
1152
|
-
case 5:
|
|
1153
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1154
|
-
return [3, 9];
|
|
1155
|
-
case 6:
|
|
1156
|
-
_e = [{}];
|
|
1157
|
-
return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1158
|
-
case 7:
|
|
1159
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1160
|
-
return [3, 9];
|
|
973
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
974
|
+
case 3: throw _d.sent();
|
|
975
|
+
case 4: return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
976
|
+
case 5: throw _d.sent();
|
|
977
|
+
case 6: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
978
|
+
case 7: throw _d.sent();
|
|
1161
979
|
case 8:
|
|
1162
980
|
parsedBody = parsedOutput.body;
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
response.
|
|
1169
|
-
delete response.Message;
|
|
1170
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
981
|
+
response = new __BaseException({
|
|
982
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
983
|
+
$fault: "client",
|
|
984
|
+
$metadata: deserializeMetadata(output),
|
|
985
|
+
});
|
|
986
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1171
987
|
}
|
|
1172
988
|
});
|
|
1173
989
|
}); };
|
|
@@ -1190,16 +1006,16 @@ export var deserializeAws_queryDeleteSMSSandboxPhoneNumberCommand = function (ou
|
|
|
1190
1006
|
});
|
|
1191
1007
|
}); };
|
|
1192
1008
|
var deserializeAws_queryDeleteSMSSandboxPhoneNumberCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1193
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1194
|
-
var
|
|
1195
|
-
return __generator(this, function (
|
|
1196
|
-
switch (
|
|
1009
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1010
|
+
var _c;
|
|
1011
|
+
return __generator(this, function (_d) {
|
|
1012
|
+
switch (_d.label) {
|
|
1197
1013
|
case 0:
|
|
1198
1014
|
_a = [__assign({}, output)];
|
|
1199
|
-
|
|
1015
|
+
_c = {};
|
|
1200
1016
|
return [4, parseBody(output.body, context)];
|
|
1201
1017
|
case 1:
|
|
1202
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1018
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1203
1019
|
errorCode = "UnknownError";
|
|
1204
1020
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1205
1021
|
_b = errorCode;
|
|
@@ -1218,52 +1034,26 @@ var deserializeAws_queryDeleteSMSSandboxPhoneNumberCommandError = function (outp
|
|
|
1218
1034
|
case "com.amazonaws.sns#UserErrorException": return [3, 12];
|
|
1219
1035
|
}
|
|
1220
1036
|
return [3, 14];
|
|
1221
|
-
case 2:
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
case
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
case 4
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
case
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
case 6:
|
|
1234
|
-
_e = [{}];
|
|
1235
|
-
return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1236
|
-
case 7:
|
|
1237
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1238
|
-
return [3, 15];
|
|
1239
|
-
case 8:
|
|
1240
|
-
_f = [{}];
|
|
1241
|
-
return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1242
|
-
case 9:
|
|
1243
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1244
|
-
return [3, 15];
|
|
1245
|
-
case 10:
|
|
1246
|
-
_g = [{}];
|
|
1247
|
-
return [4, deserializeAws_queryThrottledExceptionResponse(parsedOutput, context)];
|
|
1248
|
-
case 11:
|
|
1249
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1250
|
-
return [3, 15];
|
|
1251
|
-
case 12:
|
|
1252
|
-
_h = [{}];
|
|
1253
|
-
return [4, deserializeAws_queryUserErrorExceptionResponse(parsedOutput, context)];
|
|
1254
|
-
case 13:
|
|
1255
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1256
|
-
return [3, 15];
|
|
1037
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
1038
|
+
case 3: throw _d.sent();
|
|
1039
|
+
case 4: return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
1040
|
+
case 5: throw _d.sent();
|
|
1041
|
+
case 6: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1042
|
+
case 7: throw _d.sent();
|
|
1043
|
+
case 8: return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1044
|
+
case 9: throw _d.sent();
|
|
1045
|
+
case 10: return [4, deserializeAws_queryThrottledExceptionResponse(parsedOutput, context)];
|
|
1046
|
+
case 11: throw _d.sent();
|
|
1047
|
+
case 12: return [4, deserializeAws_queryUserErrorExceptionResponse(parsedOutput, context)];
|
|
1048
|
+
case 13: throw _d.sent();
|
|
1257
1049
|
case 14:
|
|
1258
1050
|
parsedBody = parsedOutput.body;
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
response.
|
|
1265
|
-
delete response.Message;
|
|
1266
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1051
|
+
response = new __BaseException({
|
|
1052
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1053
|
+
$fault: "client",
|
|
1054
|
+
$metadata: deserializeMetadata(output),
|
|
1055
|
+
});
|
|
1056
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1267
1057
|
}
|
|
1268
1058
|
});
|
|
1269
1059
|
}); };
|
|
@@ -1286,16 +1076,16 @@ export var deserializeAws_queryDeleteTopicCommand = function (output, context) {
|
|
|
1286
1076
|
});
|
|
1287
1077
|
}); };
|
|
1288
1078
|
var deserializeAws_queryDeleteTopicCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1289
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1290
|
-
var
|
|
1291
|
-
return __generator(this, function (
|
|
1292
|
-
switch (
|
|
1079
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1080
|
+
var _c;
|
|
1081
|
+
return __generator(this, function (_d) {
|
|
1082
|
+
switch (_d.label) {
|
|
1293
1083
|
case 0:
|
|
1294
1084
|
_a = [__assign({}, output)];
|
|
1295
|
-
|
|
1085
|
+
_c = {};
|
|
1296
1086
|
return [4, parseBody(output.body, context)];
|
|
1297
1087
|
case 1:
|
|
1298
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1088
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1299
1089
|
errorCode = "UnknownError";
|
|
1300
1090
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1301
1091
|
_b = errorCode;
|
|
@@ -1316,58 +1106,28 @@ var deserializeAws_queryDeleteTopicCommandError = function (output, context) { r
|
|
|
1316
1106
|
case "com.amazonaws.sns#TagPolicyException": return [3, 14];
|
|
1317
1107
|
}
|
|
1318
1108
|
return [3, 16];
|
|
1319
|
-
case 2:
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
case
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
case 4
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
case
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
case
|
|
1332
|
-
|
|
1333
|
-
return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
1334
|
-
case 7:
|
|
1335
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1336
|
-
return [3, 17];
|
|
1337
|
-
case 8:
|
|
1338
|
-
_f = [{}];
|
|
1339
|
-
return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1340
|
-
case 9:
|
|
1341
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1342
|
-
return [3, 17];
|
|
1343
|
-
case 10:
|
|
1344
|
-
_g = [{}];
|
|
1345
|
-
return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1346
|
-
case 11:
|
|
1347
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1348
|
-
return [3, 17];
|
|
1349
|
-
case 12:
|
|
1350
|
-
_h = [{}];
|
|
1351
|
-
return [4, deserializeAws_queryStaleTagExceptionResponse(parsedOutput, context)];
|
|
1352
|
-
case 13:
|
|
1353
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1354
|
-
return [3, 17];
|
|
1355
|
-
case 14:
|
|
1356
|
-
_j = [{}];
|
|
1357
|
-
return [4, deserializeAws_queryTagPolicyExceptionResponse(parsedOutput, context)];
|
|
1358
|
-
case 15:
|
|
1359
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1360
|
-
return [3, 17];
|
|
1109
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
1110
|
+
case 3: throw _d.sent();
|
|
1111
|
+
case 4: return [4, deserializeAws_queryConcurrentAccessExceptionResponse(parsedOutput, context)];
|
|
1112
|
+
case 5: throw _d.sent();
|
|
1113
|
+
case 6: return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
1114
|
+
case 7: throw _d.sent();
|
|
1115
|
+
case 8: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1116
|
+
case 9: throw _d.sent();
|
|
1117
|
+
case 10: return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1118
|
+
case 11: throw _d.sent();
|
|
1119
|
+
case 12: return [4, deserializeAws_queryStaleTagExceptionResponse(parsedOutput, context)];
|
|
1120
|
+
case 13: throw _d.sent();
|
|
1121
|
+
case 14: return [4, deserializeAws_queryTagPolicyExceptionResponse(parsedOutput, context)];
|
|
1122
|
+
case 15: throw _d.sent();
|
|
1361
1123
|
case 16:
|
|
1362
1124
|
parsedBody = parsedOutput.body;
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
response.
|
|
1369
|
-
delete response.Message;
|
|
1370
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1125
|
+
response = new __BaseException({
|
|
1126
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1127
|
+
$fault: "client",
|
|
1128
|
+
$metadata: deserializeMetadata(output),
|
|
1129
|
+
});
|
|
1130
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1371
1131
|
}
|
|
1372
1132
|
});
|
|
1373
1133
|
}); };
|
|
@@ -1390,16 +1150,16 @@ export var deserializeAws_queryGetEndpointAttributesCommand = function (output,
|
|
|
1390
1150
|
});
|
|
1391
1151
|
}); };
|
|
1392
1152
|
var deserializeAws_queryGetEndpointAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1393
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1394
|
-
var
|
|
1395
|
-
return __generator(this, function (
|
|
1396
|
-
switch (
|
|
1153
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1154
|
+
var _c;
|
|
1155
|
+
return __generator(this, function (_d) {
|
|
1156
|
+
switch (_d.label) {
|
|
1397
1157
|
case 0:
|
|
1398
1158
|
_a = [__assign({}, output)];
|
|
1399
|
-
|
|
1159
|
+
_c = {};
|
|
1400
1160
|
return [4, parseBody(output.body, context)];
|
|
1401
1161
|
case 1:
|
|
1402
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1162
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1403
1163
|
errorCode = "UnknownError";
|
|
1404
1164
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1405
1165
|
_b = errorCode;
|
|
@@ -1414,40 +1174,22 @@ var deserializeAws_queryGetEndpointAttributesCommandError = function (output, co
|
|
|
1414
1174
|
case "com.amazonaws.sns#NotFoundException": return [3, 8];
|
|
1415
1175
|
}
|
|
1416
1176
|
return [3, 10];
|
|
1417
|
-
case 2:
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
case
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
case 4
|
|
1424
|
-
|
|
1425
|
-
return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
1426
|
-
case 5:
|
|
1427
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1428
|
-
return [3, 11];
|
|
1429
|
-
case 6:
|
|
1430
|
-
_e = [{}];
|
|
1431
|
-
return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1432
|
-
case 7:
|
|
1433
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1434
|
-
return [3, 11];
|
|
1435
|
-
case 8:
|
|
1436
|
-
_f = [{}];
|
|
1437
|
-
return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1438
|
-
case 9:
|
|
1439
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1440
|
-
return [3, 11];
|
|
1177
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
1178
|
+
case 3: throw _d.sent();
|
|
1179
|
+
case 4: return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
1180
|
+
case 5: throw _d.sent();
|
|
1181
|
+
case 6: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1182
|
+
case 7: throw _d.sent();
|
|
1183
|
+
case 8: return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1184
|
+
case 9: throw _d.sent();
|
|
1441
1185
|
case 10:
|
|
1442
1186
|
parsedBody = parsedOutput.body;
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
response.
|
|
1449
|
-
delete response.Message;
|
|
1450
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1187
|
+
response = new __BaseException({
|
|
1188
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1189
|
+
$fault: "client",
|
|
1190
|
+
$metadata: deserializeMetadata(output),
|
|
1191
|
+
});
|
|
1192
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1451
1193
|
}
|
|
1452
1194
|
});
|
|
1453
1195
|
}); };
|
|
@@ -1470,16 +1212,16 @@ export var deserializeAws_queryGetPlatformApplicationAttributesCommand = functio
|
|
|
1470
1212
|
});
|
|
1471
1213
|
}); };
|
|
1472
1214
|
var deserializeAws_queryGetPlatformApplicationAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1473
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1474
|
-
var
|
|
1475
|
-
return __generator(this, function (
|
|
1476
|
-
switch (
|
|
1215
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1216
|
+
var _c;
|
|
1217
|
+
return __generator(this, function (_d) {
|
|
1218
|
+
switch (_d.label) {
|
|
1477
1219
|
case 0:
|
|
1478
1220
|
_a = [__assign({}, output)];
|
|
1479
|
-
|
|
1221
|
+
_c = {};
|
|
1480
1222
|
return [4, parseBody(output.body, context)];
|
|
1481
1223
|
case 1:
|
|
1482
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1224
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1483
1225
|
errorCode = "UnknownError";
|
|
1484
1226
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1485
1227
|
_b = errorCode;
|
|
@@ -1494,40 +1236,22 @@ var deserializeAws_queryGetPlatformApplicationAttributesCommandError = function
|
|
|
1494
1236
|
case "com.amazonaws.sns#NotFoundException": return [3, 8];
|
|
1495
1237
|
}
|
|
1496
1238
|
return [3, 10];
|
|
1497
|
-
case 2:
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
case
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
case 4
|
|
1504
|
-
|
|
1505
|
-
return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
1506
|
-
case 5:
|
|
1507
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1508
|
-
return [3, 11];
|
|
1509
|
-
case 6:
|
|
1510
|
-
_e = [{}];
|
|
1511
|
-
return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1512
|
-
case 7:
|
|
1513
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1514
|
-
return [3, 11];
|
|
1515
|
-
case 8:
|
|
1516
|
-
_f = [{}];
|
|
1517
|
-
return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1518
|
-
case 9:
|
|
1519
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1520
|
-
return [3, 11];
|
|
1239
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
1240
|
+
case 3: throw _d.sent();
|
|
1241
|
+
case 4: return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
1242
|
+
case 5: throw _d.sent();
|
|
1243
|
+
case 6: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1244
|
+
case 7: throw _d.sent();
|
|
1245
|
+
case 8: return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1246
|
+
case 9: throw _d.sent();
|
|
1521
1247
|
case 10:
|
|
1522
1248
|
parsedBody = parsedOutput.body;
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
response.
|
|
1529
|
-
delete response.Message;
|
|
1530
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1249
|
+
response = new __BaseException({
|
|
1250
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1251
|
+
$fault: "client",
|
|
1252
|
+
$metadata: deserializeMetadata(output),
|
|
1253
|
+
});
|
|
1254
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1531
1255
|
}
|
|
1532
1256
|
});
|
|
1533
1257
|
}); };
|
|
@@ -1550,16 +1274,16 @@ export var deserializeAws_queryGetSMSAttributesCommand = function (output, conte
|
|
|
1550
1274
|
});
|
|
1551
1275
|
}); };
|
|
1552
1276
|
var deserializeAws_queryGetSMSAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1553
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1554
|
-
var
|
|
1555
|
-
return __generator(this, function (
|
|
1556
|
-
switch (
|
|
1277
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1278
|
+
var _c;
|
|
1279
|
+
return __generator(this, function (_d) {
|
|
1280
|
+
switch (_d.label) {
|
|
1557
1281
|
case 0:
|
|
1558
1282
|
_a = [__assign({}, output)];
|
|
1559
|
-
|
|
1283
|
+
_c = {};
|
|
1560
1284
|
return [4, parseBody(output.body, context)];
|
|
1561
1285
|
case 1:
|
|
1562
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1286
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1563
1287
|
errorCode = "UnknownError";
|
|
1564
1288
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1565
1289
|
_b = errorCode;
|
|
@@ -1574,40 +1298,22 @@ var deserializeAws_queryGetSMSAttributesCommandError = function (output, context
|
|
|
1574
1298
|
case "com.amazonaws.sns#ThrottledException": return [3, 8];
|
|
1575
1299
|
}
|
|
1576
1300
|
return [3, 10];
|
|
1577
|
-
case 2:
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
case
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
case 4
|
|
1584
|
-
|
|
1585
|
-
return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
1586
|
-
case 5:
|
|
1587
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1588
|
-
return [3, 11];
|
|
1589
|
-
case 6:
|
|
1590
|
-
_e = [{}];
|
|
1591
|
-
return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1592
|
-
case 7:
|
|
1593
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1594
|
-
return [3, 11];
|
|
1595
|
-
case 8:
|
|
1596
|
-
_f = [{}];
|
|
1597
|
-
return [4, deserializeAws_queryThrottledExceptionResponse(parsedOutput, context)];
|
|
1598
|
-
case 9:
|
|
1599
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1600
|
-
return [3, 11];
|
|
1301
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
1302
|
+
case 3: throw _d.sent();
|
|
1303
|
+
case 4: return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
1304
|
+
case 5: throw _d.sent();
|
|
1305
|
+
case 6: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1306
|
+
case 7: throw _d.sent();
|
|
1307
|
+
case 8: return [4, deserializeAws_queryThrottledExceptionResponse(parsedOutput, context)];
|
|
1308
|
+
case 9: throw _d.sent();
|
|
1601
1309
|
case 10:
|
|
1602
1310
|
parsedBody = parsedOutput.body;
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
response.
|
|
1609
|
-
delete response.Message;
|
|
1610
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1311
|
+
response = new __BaseException({
|
|
1312
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1313
|
+
$fault: "client",
|
|
1314
|
+
$metadata: deserializeMetadata(output),
|
|
1315
|
+
});
|
|
1316
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1611
1317
|
}
|
|
1612
1318
|
});
|
|
1613
1319
|
}); };
|
|
@@ -1630,16 +1336,16 @@ export var deserializeAws_queryGetSMSSandboxAccountStatusCommand = function (out
|
|
|
1630
1336
|
});
|
|
1631
1337
|
}); };
|
|
1632
1338
|
var deserializeAws_queryGetSMSSandboxAccountStatusCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1633
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1634
|
-
var
|
|
1635
|
-
return __generator(this, function (
|
|
1636
|
-
switch (
|
|
1339
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1340
|
+
var _c;
|
|
1341
|
+
return __generator(this, function (_d) {
|
|
1342
|
+
switch (_d.label) {
|
|
1637
1343
|
case 0:
|
|
1638
1344
|
_a = [__assign({}, output)];
|
|
1639
|
-
|
|
1345
|
+
_c = {};
|
|
1640
1346
|
return [4, parseBody(output.body, context)];
|
|
1641
1347
|
case 1:
|
|
1642
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1348
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1643
1349
|
errorCode = "UnknownError";
|
|
1644
1350
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1645
1351
|
_b = errorCode;
|
|
@@ -1652,34 +1358,20 @@ var deserializeAws_queryGetSMSSandboxAccountStatusCommandError = function (outpu
|
|
|
1652
1358
|
case "com.amazonaws.sns#ThrottledException": return [3, 6];
|
|
1653
1359
|
}
|
|
1654
1360
|
return [3, 8];
|
|
1655
|
-
case 2:
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
case
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
case 4:
|
|
1662
|
-
_d = [{}];
|
|
1663
|
-
return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
1664
|
-
case 5:
|
|
1665
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1666
|
-
return [3, 9];
|
|
1667
|
-
case 6:
|
|
1668
|
-
_e = [{}];
|
|
1669
|
-
return [4, deserializeAws_queryThrottledExceptionResponse(parsedOutput, context)];
|
|
1670
|
-
case 7:
|
|
1671
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1672
|
-
return [3, 9];
|
|
1361
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
1362
|
+
case 3: throw _d.sent();
|
|
1363
|
+
case 4: return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
1364
|
+
case 5: throw _d.sent();
|
|
1365
|
+
case 6: return [4, deserializeAws_queryThrottledExceptionResponse(parsedOutput, context)];
|
|
1366
|
+
case 7: throw _d.sent();
|
|
1673
1367
|
case 8:
|
|
1674
1368
|
parsedBody = parsedOutput.body;
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
response.
|
|
1681
|
-
delete response.Message;
|
|
1682
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1369
|
+
response = new __BaseException({
|
|
1370
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1371
|
+
$fault: "client",
|
|
1372
|
+
$metadata: deserializeMetadata(output),
|
|
1373
|
+
});
|
|
1374
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1683
1375
|
}
|
|
1684
1376
|
});
|
|
1685
1377
|
}); };
|
|
@@ -1702,16 +1394,16 @@ export var deserializeAws_queryGetSubscriptionAttributesCommand = function (outp
|
|
|
1702
1394
|
});
|
|
1703
1395
|
}); };
|
|
1704
1396
|
var deserializeAws_queryGetSubscriptionAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1705
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1706
|
-
var
|
|
1707
|
-
return __generator(this, function (
|
|
1708
|
-
switch (
|
|
1397
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1398
|
+
var _c;
|
|
1399
|
+
return __generator(this, function (_d) {
|
|
1400
|
+
switch (_d.label) {
|
|
1709
1401
|
case 0:
|
|
1710
1402
|
_a = [__assign({}, output)];
|
|
1711
|
-
|
|
1403
|
+
_c = {};
|
|
1712
1404
|
return [4, parseBody(output.body, context)];
|
|
1713
1405
|
case 1:
|
|
1714
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1406
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1715
1407
|
errorCode = "UnknownError";
|
|
1716
1408
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1717
1409
|
_b = errorCode;
|
|
@@ -1726,40 +1418,22 @@ var deserializeAws_queryGetSubscriptionAttributesCommandError = function (output
|
|
|
1726
1418
|
case "com.amazonaws.sns#NotFoundException": return [3, 8];
|
|
1727
1419
|
}
|
|
1728
1420
|
return [3, 10];
|
|
1729
|
-
case 2:
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
case
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
case 4
|
|
1736
|
-
|
|
1737
|
-
return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
1738
|
-
case 5:
|
|
1739
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1740
|
-
return [3, 11];
|
|
1741
|
-
case 6:
|
|
1742
|
-
_e = [{}];
|
|
1743
|
-
return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1744
|
-
case 7:
|
|
1745
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1746
|
-
return [3, 11];
|
|
1747
|
-
case 8:
|
|
1748
|
-
_f = [{}];
|
|
1749
|
-
return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1750
|
-
case 9:
|
|
1751
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1752
|
-
return [3, 11];
|
|
1421
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
1422
|
+
case 3: throw _d.sent();
|
|
1423
|
+
case 4: return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
1424
|
+
case 5: throw _d.sent();
|
|
1425
|
+
case 6: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1426
|
+
case 7: throw _d.sent();
|
|
1427
|
+
case 8: return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1428
|
+
case 9: throw _d.sent();
|
|
1753
1429
|
case 10:
|
|
1754
1430
|
parsedBody = parsedOutput.body;
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
response.
|
|
1761
|
-
delete response.Message;
|
|
1762
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1431
|
+
response = new __BaseException({
|
|
1432
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1433
|
+
$fault: "client",
|
|
1434
|
+
$metadata: deserializeMetadata(output),
|
|
1435
|
+
});
|
|
1436
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1763
1437
|
}
|
|
1764
1438
|
});
|
|
1765
1439
|
}); };
|
|
@@ -1782,16 +1456,16 @@ export var deserializeAws_queryGetTopicAttributesCommand = function (output, con
|
|
|
1782
1456
|
});
|
|
1783
1457
|
}); };
|
|
1784
1458
|
var deserializeAws_queryGetTopicAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1785
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1786
|
-
var
|
|
1787
|
-
return __generator(this, function (
|
|
1788
|
-
switch (
|
|
1459
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1460
|
+
var _c;
|
|
1461
|
+
return __generator(this, function (_d) {
|
|
1462
|
+
switch (_d.label) {
|
|
1789
1463
|
case 0:
|
|
1790
1464
|
_a = [__assign({}, output)];
|
|
1791
|
-
|
|
1465
|
+
_c = {};
|
|
1792
1466
|
return [4, parseBody(output.body, context)];
|
|
1793
1467
|
case 1:
|
|
1794
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1468
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1795
1469
|
errorCode = "UnknownError";
|
|
1796
1470
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1797
1471
|
_b = errorCode;
|
|
@@ -1808,46 +1482,24 @@ var deserializeAws_queryGetTopicAttributesCommandError = function (output, conte
|
|
|
1808
1482
|
case "com.amazonaws.sns#NotFoundException": return [3, 10];
|
|
1809
1483
|
}
|
|
1810
1484
|
return [3, 12];
|
|
1811
|
-
case 2:
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
case
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
case 4
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
case
|
|
1821
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1822
|
-
return [3, 13];
|
|
1823
|
-
case 6:
|
|
1824
|
-
_e = [{}];
|
|
1825
|
-
return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1826
|
-
case 7:
|
|
1827
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1828
|
-
return [3, 13];
|
|
1829
|
-
case 8:
|
|
1830
|
-
_f = [{}];
|
|
1831
|
-
return [4, deserializeAws_queryInvalidSecurityExceptionResponse(parsedOutput, context)];
|
|
1832
|
-
case 9:
|
|
1833
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1834
|
-
return [3, 13];
|
|
1835
|
-
case 10:
|
|
1836
|
-
_g = [{}];
|
|
1837
|
-
return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1838
|
-
case 11:
|
|
1839
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1840
|
-
return [3, 13];
|
|
1485
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
1486
|
+
case 3: throw _d.sent();
|
|
1487
|
+
case 4: return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
1488
|
+
case 5: throw _d.sent();
|
|
1489
|
+
case 6: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1490
|
+
case 7: throw _d.sent();
|
|
1491
|
+
case 8: return [4, deserializeAws_queryInvalidSecurityExceptionResponse(parsedOutput, context)];
|
|
1492
|
+
case 9: throw _d.sent();
|
|
1493
|
+
case 10: return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1494
|
+
case 11: throw _d.sent();
|
|
1841
1495
|
case 12:
|
|
1842
1496
|
parsedBody = parsedOutput.body;
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
response.
|
|
1849
|
-
delete response.Message;
|
|
1850
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1497
|
+
response = new __BaseException({
|
|
1498
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1499
|
+
$fault: "client",
|
|
1500
|
+
$metadata: deserializeMetadata(output),
|
|
1501
|
+
});
|
|
1502
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1851
1503
|
}
|
|
1852
1504
|
});
|
|
1853
1505
|
}); };
|
|
@@ -1870,16 +1522,16 @@ export var deserializeAws_queryListEndpointsByPlatformApplicationCommand = funct
|
|
|
1870
1522
|
});
|
|
1871
1523
|
}); };
|
|
1872
1524
|
var deserializeAws_queryListEndpointsByPlatformApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1873
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1874
|
-
var
|
|
1875
|
-
return __generator(this, function (
|
|
1876
|
-
switch (
|
|
1525
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1526
|
+
var _c;
|
|
1527
|
+
return __generator(this, function (_d) {
|
|
1528
|
+
switch (_d.label) {
|
|
1877
1529
|
case 0:
|
|
1878
1530
|
_a = [__assign({}, output)];
|
|
1879
|
-
|
|
1531
|
+
_c = {};
|
|
1880
1532
|
return [4, parseBody(output.body, context)];
|
|
1881
1533
|
case 1:
|
|
1882
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1534
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1883
1535
|
errorCode = "UnknownError";
|
|
1884
1536
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1885
1537
|
_b = errorCode;
|
|
@@ -1894,40 +1546,22 @@ var deserializeAws_queryListEndpointsByPlatformApplicationCommandError = functio
|
|
|
1894
1546
|
case "com.amazonaws.sns#NotFoundException": return [3, 8];
|
|
1895
1547
|
}
|
|
1896
1548
|
return [3, 10];
|
|
1897
|
-
case 2:
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
case
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
case 4
|
|
1904
|
-
|
|
1905
|
-
return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
1906
|
-
case 5:
|
|
1907
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1908
|
-
return [3, 11];
|
|
1909
|
-
case 6:
|
|
1910
|
-
_e = [{}];
|
|
1911
|
-
return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1912
|
-
case 7:
|
|
1913
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1914
|
-
return [3, 11];
|
|
1915
|
-
case 8:
|
|
1916
|
-
_f = [{}];
|
|
1917
|
-
return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1918
|
-
case 9:
|
|
1919
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1920
|
-
return [3, 11];
|
|
1549
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
1550
|
+
case 3: throw _d.sent();
|
|
1551
|
+
case 4: return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
1552
|
+
case 5: throw _d.sent();
|
|
1553
|
+
case 6: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1554
|
+
case 7: throw _d.sent();
|
|
1555
|
+
case 8: return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1556
|
+
case 9: throw _d.sent();
|
|
1921
1557
|
case 10:
|
|
1922
1558
|
parsedBody = parsedOutput.body;
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
response.
|
|
1929
|
-
delete response.Message;
|
|
1930
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1559
|
+
response = new __BaseException({
|
|
1560
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1561
|
+
$fault: "client",
|
|
1562
|
+
$metadata: deserializeMetadata(output),
|
|
1563
|
+
});
|
|
1564
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
1931
1565
|
}
|
|
1932
1566
|
});
|
|
1933
1567
|
}); };
|
|
@@ -1950,16 +1584,16 @@ export var deserializeAws_queryListOriginationNumbersCommand = function (output,
|
|
|
1950
1584
|
});
|
|
1951
1585
|
}); };
|
|
1952
1586
|
var deserializeAws_queryListOriginationNumbersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1953
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1954
|
-
var
|
|
1955
|
-
return __generator(this, function (
|
|
1956
|
-
switch (
|
|
1587
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1588
|
+
var _c;
|
|
1589
|
+
return __generator(this, function (_d) {
|
|
1590
|
+
switch (_d.label) {
|
|
1957
1591
|
case 0:
|
|
1958
1592
|
_a = [__assign({}, output)];
|
|
1959
|
-
|
|
1593
|
+
_c = {};
|
|
1960
1594
|
return [4, parseBody(output.body, context)];
|
|
1961
1595
|
case 1:
|
|
1962
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1596
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1963
1597
|
errorCode = "UnknownError";
|
|
1964
1598
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1965
1599
|
_b = errorCode;
|
|
@@ -1976,46 +1610,24 @@ var deserializeAws_queryListOriginationNumbersCommandError = function (output, c
|
|
|
1976
1610
|
case "com.amazonaws.sns#ValidationException": return [3, 10];
|
|
1977
1611
|
}
|
|
1978
1612
|
return [3, 12];
|
|
1979
|
-
case 2:
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
case
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
case 4
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
case
|
|
1989
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1990
|
-
return [3, 13];
|
|
1991
|
-
case 6:
|
|
1992
|
-
_e = [{}];
|
|
1993
|
-
return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1994
|
-
case 7:
|
|
1995
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1996
|
-
return [3, 13];
|
|
1997
|
-
case 8:
|
|
1998
|
-
_f = [{}];
|
|
1999
|
-
return [4, deserializeAws_queryThrottledExceptionResponse(parsedOutput, context)];
|
|
2000
|
-
case 9:
|
|
2001
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2002
|
-
return [3, 13];
|
|
2003
|
-
case 10:
|
|
2004
|
-
_g = [{}];
|
|
2005
|
-
return [4, deserializeAws_queryValidationExceptionResponse(parsedOutput, context)];
|
|
2006
|
-
case 11:
|
|
2007
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2008
|
-
return [3, 13];
|
|
1613
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
1614
|
+
case 3: throw _d.sent();
|
|
1615
|
+
case 4: return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
1616
|
+
case 5: throw _d.sent();
|
|
1617
|
+
case 6: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1618
|
+
case 7: throw _d.sent();
|
|
1619
|
+
case 8: return [4, deserializeAws_queryThrottledExceptionResponse(parsedOutput, context)];
|
|
1620
|
+
case 9: throw _d.sent();
|
|
1621
|
+
case 10: return [4, deserializeAws_queryValidationExceptionResponse(parsedOutput, context)];
|
|
1622
|
+
case 11: throw _d.sent();
|
|
2009
1623
|
case 12:
|
|
2010
1624
|
parsedBody = parsedOutput.body;
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
response.
|
|
2017
|
-
delete response.Message;
|
|
2018
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1625
|
+
response = new __BaseException({
|
|
1626
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1627
|
+
$fault: "client",
|
|
1628
|
+
$metadata: deserializeMetadata(output),
|
|
1629
|
+
});
|
|
1630
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
2019
1631
|
}
|
|
2020
1632
|
});
|
|
2021
1633
|
}); };
|
|
@@ -2038,16 +1650,16 @@ export var deserializeAws_queryListPhoneNumbersOptedOutCommand = function (outpu
|
|
|
2038
1650
|
});
|
|
2039
1651
|
}); };
|
|
2040
1652
|
var deserializeAws_queryListPhoneNumbersOptedOutCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2041
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2042
|
-
var
|
|
2043
|
-
return __generator(this, function (
|
|
2044
|
-
switch (
|
|
1653
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1654
|
+
var _c;
|
|
1655
|
+
return __generator(this, function (_d) {
|
|
1656
|
+
switch (_d.label) {
|
|
2045
1657
|
case 0:
|
|
2046
1658
|
_a = [__assign({}, output)];
|
|
2047
|
-
|
|
1659
|
+
_c = {};
|
|
2048
1660
|
return [4, parseBody(output.body, context)];
|
|
2049
1661
|
case 1:
|
|
2050
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1662
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2051
1663
|
errorCode = "UnknownError";
|
|
2052
1664
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2053
1665
|
_b = errorCode;
|
|
@@ -2062,40 +1674,22 @@ var deserializeAws_queryListPhoneNumbersOptedOutCommandError = function (output,
|
|
|
2062
1674
|
case "com.amazonaws.sns#ThrottledException": return [3, 8];
|
|
2063
1675
|
}
|
|
2064
1676
|
return [3, 10];
|
|
2065
|
-
case 2:
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
case
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
case 4
|
|
2072
|
-
|
|
2073
|
-
return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
2074
|
-
case 5:
|
|
2075
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2076
|
-
return [3, 11];
|
|
2077
|
-
case 6:
|
|
2078
|
-
_e = [{}];
|
|
2079
|
-
return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2080
|
-
case 7:
|
|
2081
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2082
|
-
return [3, 11];
|
|
2083
|
-
case 8:
|
|
2084
|
-
_f = [{}];
|
|
2085
|
-
return [4, deserializeAws_queryThrottledExceptionResponse(parsedOutput, context)];
|
|
2086
|
-
case 9:
|
|
2087
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2088
|
-
return [3, 11];
|
|
1677
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
1678
|
+
case 3: throw _d.sent();
|
|
1679
|
+
case 4: return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
1680
|
+
case 5: throw _d.sent();
|
|
1681
|
+
case 6: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1682
|
+
case 7: throw _d.sent();
|
|
1683
|
+
case 8: return [4, deserializeAws_queryThrottledExceptionResponse(parsedOutput, context)];
|
|
1684
|
+
case 9: throw _d.sent();
|
|
2089
1685
|
case 10:
|
|
2090
1686
|
parsedBody = parsedOutput.body;
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
response.
|
|
2097
|
-
delete response.Message;
|
|
2098
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1687
|
+
response = new __BaseException({
|
|
1688
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1689
|
+
$fault: "client",
|
|
1690
|
+
$metadata: deserializeMetadata(output),
|
|
1691
|
+
});
|
|
1692
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
2099
1693
|
}
|
|
2100
1694
|
});
|
|
2101
1695
|
}); };
|
|
@@ -2118,16 +1712,16 @@ export var deserializeAws_queryListPlatformApplicationsCommand = function (outpu
|
|
|
2118
1712
|
});
|
|
2119
1713
|
}); };
|
|
2120
1714
|
var deserializeAws_queryListPlatformApplicationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2121
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2122
|
-
var
|
|
2123
|
-
return __generator(this, function (
|
|
2124
|
-
switch (
|
|
1715
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1716
|
+
var _c;
|
|
1717
|
+
return __generator(this, function (_d) {
|
|
1718
|
+
switch (_d.label) {
|
|
2125
1719
|
case 0:
|
|
2126
1720
|
_a = [__assign({}, output)];
|
|
2127
|
-
|
|
1721
|
+
_c = {};
|
|
2128
1722
|
return [4, parseBody(output.body, context)];
|
|
2129
1723
|
case 1:
|
|
2130
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1724
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2131
1725
|
errorCode = "UnknownError";
|
|
2132
1726
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2133
1727
|
_b = errorCode;
|
|
@@ -2140,34 +1734,20 @@ var deserializeAws_queryListPlatformApplicationsCommandError = function (output,
|
|
|
2140
1734
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
2141
1735
|
}
|
|
2142
1736
|
return [3, 8];
|
|
2143
|
-
case 2:
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
case
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
case 4:
|
|
2150
|
-
_d = [{}];
|
|
2151
|
-
return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
2152
|
-
case 5:
|
|
2153
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2154
|
-
return [3, 9];
|
|
2155
|
-
case 6:
|
|
2156
|
-
_e = [{}];
|
|
2157
|
-
return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2158
|
-
case 7:
|
|
2159
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2160
|
-
return [3, 9];
|
|
1737
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
1738
|
+
case 3: throw _d.sent();
|
|
1739
|
+
case 4: return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
1740
|
+
case 5: throw _d.sent();
|
|
1741
|
+
case 6: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1742
|
+
case 7: throw _d.sent();
|
|
2161
1743
|
case 8:
|
|
2162
1744
|
parsedBody = parsedOutput.body;
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
response.
|
|
2169
|
-
delete response.Message;
|
|
2170
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1745
|
+
response = new __BaseException({
|
|
1746
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1747
|
+
$fault: "client",
|
|
1748
|
+
$metadata: deserializeMetadata(output),
|
|
1749
|
+
});
|
|
1750
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
2171
1751
|
}
|
|
2172
1752
|
});
|
|
2173
1753
|
}); };
|
|
@@ -2190,16 +1770,16 @@ export var deserializeAws_queryListSMSSandboxPhoneNumbersCommand = function (out
|
|
|
2190
1770
|
});
|
|
2191
1771
|
}); };
|
|
2192
1772
|
var deserializeAws_queryListSMSSandboxPhoneNumbersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2193
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2194
|
-
var
|
|
2195
|
-
return __generator(this, function (
|
|
2196
|
-
switch (
|
|
1773
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1774
|
+
var _c;
|
|
1775
|
+
return __generator(this, function (_d) {
|
|
1776
|
+
switch (_d.label) {
|
|
2197
1777
|
case 0:
|
|
2198
1778
|
_a = [__assign({}, output)];
|
|
2199
|
-
|
|
1779
|
+
_c = {};
|
|
2200
1780
|
return [4, parseBody(output.body, context)];
|
|
2201
1781
|
case 1:
|
|
2202
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1782
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2203
1783
|
errorCode = "UnknownError";
|
|
2204
1784
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2205
1785
|
_b = errorCode;
|
|
@@ -2216,46 +1796,24 @@ var deserializeAws_queryListSMSSandboxPhoneNumbersCommandError = function (outpu
|
|
|
2216
1796
|
case "com.amazonaws.sns#ThrottledException": return [3, 10];
|
|
2217
1797
|
}
|
|
2218
1798
|
return [3, 12];
|
|
2219
|
-
case 2:
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
case
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
case 4
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
case
|
|
2229
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2230
|
-
return [3, 13];
|
|
2231
|
-
case 6:
|
|
2232
|
-
_e = [{}];
|
|
2233
|
-
return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2234
|
-
case 7:
|
|
2235
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2236
|
-
return [3, 13];
|
|
2237
|
-
case 8:
|
|
2238
|
-
_f = [{}];
|
|
2239
|
-
return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2240
|
-
case 9:
|
|
2241
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2242
|
-
return [3, 13];
|
|
2243
|
-
case 10:
|
|
2244
|
-
_g = [{}];
|
|
2245
|
-
return [4, deserializeAws_queryThrottledExceptionResponse(parsedOutput, context)];
|
|
2246
|
-
case 11:
|
|
2247
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2248
|
-
return [3, 13];
|
|
1799
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
1800
|
+
case 3: throw _d.sent();
|
|
1801
|
+
case 4: return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
1802
|
+
case 5: throw _d.sent();
|
|
1803
|
+
case 6: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1804
|
+
case 7: throw _d.sent();
|
|
1805
|
+
case 8: return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1806
|
+
case 9: throw _d.sent();
|
|
1807
|
+
case 10: return [4, deserializeAws_queryThrottledExceptionResponse(parsedOutput, context)];
|
|
1808
|
+
case 11: throw _d.sent();
|
|
2249
1809
|
case 12:
|
|
2250
1810
|
parsedBody = parsedOutput.body;
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
response.
|
|
2257
|
-
delete response.Message;
|
|
2258
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1811
|
+
response = new __BaseException({
|
|
1812
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1813
|
+
$fault: "client",
|
|
1814
|
+
$metadata: deserializeMetadata(output),
|
|
1815
|
+
});
|
|
1816
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
2259
1817
|
}
|
|
2260
1818
|
});
|
|
2261
1819
|
}); };
|
|
@@ -2278,16 +1836,16 @@ export var deserializeAws_queryListSubscriptionsCommand = function (output, cont
|
|
|
2278
1836
|
});
|
|
2279
1837
|
}); };
|
|
2280
1838
|
var deserializeAws_queryListSubscriptionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2281
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2282
|
-
var
|
|
2283
|
-
return __generator(this, function (
|
|
2284
|
-
switch (
|
|
1839
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1840
|
+
var _c;
|
|
1841
|
+
return __generator(this, function (_d) {
|
|
1842
|
+
switch (_d.label) {
|
|
2285
1843
|
case 0:
|
|
2286
1844
|
_a = [__assign({}, output)];
|
|
2287
|
-
|
|
1845
|
+
_c = {};
|
|
2288
1846
|
return [4, parseBody(output.body, context)];
|
|
2289
1847
|
case 1:
|
|
2290
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1848
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2291
1849
|
errorCode = "UnknownError";
|
|
2292
1850
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2293
1851
|
_b = errorCode;
|
|
@@ -2300,34 +1858,20 @@ var deserializeAws_queryListSubscriptionsCommandError = function (output, contex
|
|
|
2300
1858
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
2301
1859
|
}
|
|
2302
1860
|
return [3, 8];
|
|
2303
|
-
case 2:
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
case
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
case 4:
|
|
2310
|
-
_d = [{}];
|
|
2311
|
-
return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
2312
|
-
case 5:
|
|
2313
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2314
|
-
return [3, 9];
|
|
2315
|
-
case 6:
|
|
2316
|
-
_e = [{}];
|
|
2317
|
-
return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2318
|
-
case 7:
|
|
2319
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2320
|
-
return [3, 9];
|
|
1861
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
1862
|
+
case 3: throw _d.sent();
|
|
1863
|
+
case 4: return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
1864
|
+
case 5: throw _d.sent();
|
|
1865
|
+
case 6: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1866
|
+
case 7: throw _d.sent();
|
|
2321
1867
|
case 8:
|
|
2322
1868
|
parsedBody = parsedOutput.body;
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
response.
|
|
2329
|
-
delete response.Message;
|
|
2330
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1869
|
+
response = new __BaseException({
|
|
1870
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1871
|
+
$fault: "client",
|
|
1872
|
+
$metadata: deserializeMetadata(output),
|
|
1873
|
+
});
|
|
1874
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
2331
1875
|
}
|
|
2332
1876
|
});
|
|
2333
1877
|
}); };
|
|
@@ -2350,16 +1894,16 @@ export var deserializeAws_queryListSubscriptionsByTopicCommand = function (outpu
|
|
|
2350
1894
|
});
|
|
2351
1895
|
}); };
|
|
2352
1896
|
var deserializeAws_queryListSubscriptionsByTopicCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2353
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2354
|
-
var
|
|
2355
|
-
return __generator(this, function (
|
|
2356
|
-
switch (
|
|
1897
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1898
|
+
var _c;
|
|
1899
|
+
return __generator(this, function (_d) {
|
|
1900
|
+
switch (_d.label) {
|
|
2357
1901
|
case 0:
|
|
2358
1902
|
_a = [__assign({}, output)];
|
|
2359
|
-
|
|
1903
|
+
_c = {};
|
|
2360
1904
|
return [4, parseBody(output.body, context)];
|
|
2361
1905
|
case 1:
|
|
2362
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1906
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2363
1907
|
errorCode = "UnknownError";
|
|
2364
1908
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2365
1909
|
_b = errorCode;
|
|
@@ -2374,40 +1918,22 @@ var deserializeAws_queryListSubscriptionsByTopicCommandError = function (output,
|
|
|
2374
1918
|
case "com.amazonaws.sns#NotFoundException": return [3, 8];
|
|
2375
1919
|
}
|
|
2376
1920
|
return [3, 10];
|
|
2377
|
-
case 2:
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
case
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
case 4
|
|
2384
|
-
|
|
2385
|
-
return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
2386
|
-
case 5:
|
|
2387
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2388
|
-
return [3, 11];
|
|
2389
|
-
case 6:
|
|
2390
|
-
_e = [{}];
|
|
2391
|
-
return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2392
|
-
case 7:
|
|
2393
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2394
|
-
return [3, 11];
|
|
2395
|
-
case 8:
|
|
2396
|
-
_f = [{}];
|
|
2397
|
-
return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
2398
|
-
case 9:
|
|
2399
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2400
|
-
return [3, 11];
|
|
1921
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
1922
|
+
case 3: throw _d.sent();
|
|
1923
|
+
case 4: return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
1924
|
+
case 5: throw _d.sent();
|
|
1925
|
+
case 6: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1926
|
+
case 7: throw _d.sent();
|
|
1927
|
+
case 8: return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1928
|
+
case 9: throw _d.sent();
|
|
2401
1929
|
case 10:
|
|
2402
1930
|
parsedBody = parsedOutput.body;
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
response.
|
|
2409
|
-
delete response.Message;
|
|
2410
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1931
|
+
response = new __BaseException({
|
|
1932
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1933
|
+
$fault: "client",
|
|
1934
|
+
$metadata: deserializeMetadata(output),
|
|
1935
|
+
});
|
|
1936
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
2411
1937
|
}
|
|
2412
1938
|
});
|
|
2413
1939
|
}); };
|
|
@@ -2430,16 +1956,16 @@ export var deserializeAws_queryListTagsForResourceCommand = function (output, co
|
|
|
2430
1956
|
});
|
|
2431
1957
|
}); };
|
|
2432
1958
|
var deserializeAws_queryListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2433
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2434
|
-
var
|
|
2435
|
-
return __generator(this, function (
|
|
2436
|
-
switch (
|
|
1959
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1960
|
+
var _c;
|
|
1961
|
+
return __generator(this, function (_d) {
|
|
1962
|
+
switch (_d.label) {
|
|
2437
1963
|
case 0:
|
|
2438
1964
|
_a = [__assign({}, output)];
|
|
2439
|
-
|
|
1965
|
+
_c = {};
|
|
2440
1966
|
return [4, parseBody(output.body, context)];
|
|
2441
1967
|
case 1:
|
|
2442
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1968
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2443
1969
|
errorCode = "UnknownError";
|
|
2444
1970
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2445
1971
|
_b = errorCode;
|
|
@@ -2456,46 +1982,24 @@ var deserializeAws_queryListTagsForResourceCommandError = function (output, cont
|
|
|
2456
1982
|
case "com.amazonaws.sns#TagPolicyException": return [3, 10];
|
|
2457
1983
|
}
|
|
2458
1984
|
return [3, 12];
|
|
2459
|
-
case 2:
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
case
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
case 4
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
case
|
|
2469
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2470
|
-
return [3, 13];
|
|
2471
|
-
case 6:
|
|
2472
|
-
_e = [{}];
|
|
2473
|
-
return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2474
|
-
case 7:
|
|
2475
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2476
|
-
return [3, 13];
|
|
2477
|
-
case 8:
|
|
2478
|
-
_f = [{}];
|
|
2479
|
-
return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2480
|
-
case 9:
|
|
2481
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2482
|
-
return [3, 13];
|
|
2483
|
-
case 10:
|
|
2484
|
-
_g = [{}];
|
|
2485
|
-
return [4, deserializeAws_queryTagPolicyExceptionResponse(parsedOutput, context)];
|
|
2486
|
-
case 11:
|
|
2487
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2488
|
-
return [3, 13];
|
|
1985
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
1986
|
+
case 3: throw _d.sent();
|
|
1987
|
+
case 4: return [4, deserializeAws_queryConcurrentAccessExceptionResponse(parsedOutput, context)];
|
|
1988
|
+
case 5: throw _d.sent();
|
|
1989
|
+
case 6: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1990
|
+
case 7: throw _d.sent();
|
|
1991
|
+
case 8: return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1992
|
+
case 9: throw _d.sent();
|
|
1993
|
+
case 10: return [4, deserializeAws_queryTagPolicyExceptionResponse(parsedOutput, context)];
|
|
1994
|
+
case 11: throw _d.sent();
|
|
2489
1995
|
case 12:
|
|
2490
1996
|
parsedBody = parsedOutput.body;
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
response.
|
|
2497
|
-
delete response.Message;
|
|
2498
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1997
|
+
response = new __BaseException({
|
|
1998
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1999
|
+
$fault: "client",
|
|
2000
|
+
$metadata: deserializeMetadata(output),
|
|
2001
|
+
});
|
|
2002
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
2499
2003
|
}
|
|
2500
2004
|
});
|
|
2501
2005
|
}); };
|
|
@@ -2518,16 +2022,16 @@ export var deserializeAws_queryListTopicsCommand = function (output, context) {
|
|
|
2518
2022
|
});
|
|
2519
2023
|
}); };
|
|
2520
2024
|
var deserializeAws_queryListTopicsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2521
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2522
|
-
var
|
|
2523
|
-
return __generator(this, function (
|
|
2524
|
-
switch (
|
|
2025
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2026
|
+
var _c;
|
|
2027
|
+
return __generator(this, function (_d) {
|
|
2028
|
+
switch (_d.label) {
|
|
2525
2029
|
case 0:
|
|
2526
2030
|
_a = [__assign({}, output)];
|
|
2527
|
-
|
|
2031
|
+
_c = {};
|
|
2528
2032
|
return [4, parseBody(output.body, context)];
|
|
2529
2033
|
case 1:
|
|
2530
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2034
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2531
2035
|
errorCode = "UnknownError";
|
|
2532
2036
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2533
2037
|
_b = errorCode;
|
|
@@ -2540,34 +2044,20 @@ var deserializeAws_queryListTopicsCommandError = function (output, context) { re
|
|
|
2540
2044
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
2541
2045
|
}
|
|
2542
2046
|
return [3, 8];
|
|
2543
|
-
case 2:
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
case
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
case 4:
|
|
2550
|
-
_d = [{}];
|
|
2551
|
-
return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
2552
|
-
case 5:
|
|
2553
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2554
|
-
return [3, 9];
|
|
2555
|
-
case 6:
|
|
2556
|
-
_e = [{}];
|
|
2557
|
-
return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2558
|
-
case 7:
|
|
2559
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2560
|
-
return [3, 9];
|
|
2047
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
2048
|
+
case 3: throw _d.sent();
|
|
2049
|
+
case 4: return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
2050
|
+
case 5: throw _d.sent();
|
|
2051
|
+
case 6: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2052
|
+
case 7: throw _d.sent();
|
|
2561
2053
|
case 8:
|
|
2562
2054
|
parsedBody = parsedOutput.body;
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
response.
|
|
2569
|
-
delete response.Message;
|
|
2570
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2055
|
+
response = new __BaseException({
|
|
2056
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2057
|
+
$fault: "client",
|
|
2058
|
+
$metadata: deserializeMetadata(output),
|
|
2059
|
+
});
|
|
2060
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
2571
2061
|
}
|
|
2572
2062
|
});
|
|
2573
2063
|
}); };
|
|
@@ -2590,16 +2080,16 @@ export var deserializeAws_queryOptInPhoneNumberCommand = function (output, conte
|
|
|
2590
2080
|
});
|
|
2591
2081
|
}); };
|
|
2592
2082
|
var deserializeAws_queryOptInPhoneNumberCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2593
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2594
|
-
var
|
|
2595
|
-
return __generator(this, function (
|
|
2596
|
-
switch (
|
|
2083
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2084
|
+
var _c;
|
|
2085
|
+
return __generator(this, function (_d) {
|
|
2086
|
+
switch (_d.label) {
|
|
2597
2087
|
case 0:
|
|
2598
2088
|
_a = [__assign({}, output)];
|
|
2599
|
-
|
|
2089
|
+
_c = {};
|
|
2600
2090
|
return [4, parseBody(output.body, context)];
|
|
2601
2091
|
case 1:
|
|
2602
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2092
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2603
2093
|
errorCode = "UnknownError";
|
|
2604
2094
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2605
2095
|
_b = errorCode;
|
|
@@ -2614,40 +2104,22 @@ var deserializeAws_queryOptInPhoneNumberCommandError = function (output, context
|
|
|
2614
2104
|
case "com.amazonaws.sns#ThrottledException": return [3, 8];
|
|
2615
2105
|
}
|
|
2616
2106
|
return [3, 10];
|
|
2617
|
-
case 2:
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
case
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
case 4
|
|
2624
|
-
|
|
2625
|
-
return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
2626
|
-
case 5:
|
|
2627
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2628
|
-
return [3, 11];
|
|
2629
|
-
case 6:
|
|
2630
|
-
_e = [{}];
|
|
2631
|
-
return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2632
|
-
case 7:
|
|
2633
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2634
|
-
return [3, 11];
|
|
2635
|
-
case 8:
|
|
2636
|
-
_f = [{}];
|
|
2637
|
-
return [4, deserializeAws_queryThrottledExceptionResponse(parsedOutput, context)];
|
|
2638
|
-
case 9:
|
|
2639
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2640
|
-
return [3, 11];
|
|
2107
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
2108
|
+
case 3: throw _d.sent();
|
|
2109
|
+
case 4: return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
2110
|
+
case 5: throw _d.sent();
|
|
2111
|
+
case 6: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2112
|
+
case 7: throw _d.sent();
|
|
2113
|
+
case 8: return [4, deserializeAws_queryThrottledExceptionResponse(parsedOutput, context)];
|
|
2114
|
+
case 9: throw _d.sent();
|
|
2641
2115
|
case 10:
|
|
2642
2116
|
parsedBody = parsedOutput.body;
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
response.
|
|
2649
|
-
delete response.Message;
|
|
2650
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2117
|
+
response = new __BaseException({
|
|
2118
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2119
|
+
$fault: "client",
|
|
2120
|
+
$metadata: deserializeMetadata(output),
|
|
2121
|
+
});
|
|
2122
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
2651
2123
|
}
|
|
2652
2124
|
});
|
|
2653
2125
|
}); };
|
|
@@ -2670,16 +2142,16 @@ export var deserializeAws_queryPublishCommand = function (output, context) { ret
|
|
|
2670
2142
|
});
|
|
2671
2143
|
}); };
|
|
2672
2144
|
var deserializeAws_queryPublishCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2673
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2674
|
-
var
|
|
2675
|
-
return __generator(this, function (
|
|
2676
|
-
switch (
|
|
2145
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2146
|
+
var _c;
|
|
2147
|
+
return __generator(this, function (_d) {
|
|
2148
|
+
switch (_d.label) {
|
|
2677
2149
|
case 0:
|
|
2678
2150
|
_a = [__assign({}, output)];
|
|
2679
|
-
|
|
2151
|
+
_c = {};
|
|
2680
2152
|
return [4, parseBody(output.body, context)];
|
|
2681
2153
|
case 1:
|
|
2682
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2154
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2683
2155
|
errorCode = "UnknownError";
|
|
2684
2156
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2685
2157
|
_b = errorCode;
|
|
@@ -2714,100 +2186,42 @@ var deserializeAws_queryPublishCommandError = function (output, context) { retur
|
|
|
2714
2186
|
case "com.amazonaws.sns#PlatformApplicationDisabledException": return [3, 28];
|
|
2715
2187
|
}
|
|
2716
2188
|
return [3, 30];
|
|
2717
|
-
case 2:
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
case
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
case 4
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
case
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
case
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
case
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
case
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
case
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
case
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
case
|
|
2745
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_t.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2746
|
-
return [3, 31];
|
|
2747
|
-
case 12:
|
|
2748
|
-
_h = [{}];
|
|
2749
|
-
return [4, deserializeAws_queryInvalidSecurityExceptionResponse(parsedOutput, context)];
|
|
2750
|
-
case 13:
|
|
2751
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_t.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2752
|
-
return [3, 31];
|
|
2753
|
-
case 14:
|
|
2754
|
-
_j = [{}];
|
|
2755
|
-
return [4, deserializeAws_queryKMSAccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2756
|
-
case 15:
|
|
2757
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_t.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2758
|
-
return [3, 31];
|
|
2759
|
-
case 16:
|
|
2760
|
-
_k = [{}];
|
|
2761
|
-
return [4, deserializeAws_queryKMSDisabledExceptionResponse(parsedOutput, context)];
|
|
2762
|
-
case 17:
|
|
2763
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_t.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2764
|
-
return [3, 31];
|
|
2765
|
-
case 18:
|
|
2766
|
-
_l = [{}];
|
|
2767
|
-
return [4, deserializeAws_queryKMSInvalidStateExceptionResponse(parsedOutput, context)];
|
|
2768
|
-
case 19:
|
|
2769
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_t.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2770
|
-
return [3, 31];
|
|
2771
|
-
case 20:
|
|
2772
|
-
_m = [{}];
|
|
2773
|
-
return [4, deserializeAws_queryKMSNotFoundExceptionResponse(parsedOutput, context)];
|
|
2774
|
-
case 21:
|
|
2775
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _m.concat([(_t.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2776
|
-
return [3, 31];
|
|
2777
|
-
case 22:
|
|
2778
|
-
_o = [{}];
|
|
2779
|
-
return [4, deserializeAws_queryKMSOptInRequiredResponse(parsedOutput, context)];
|
|
2780
|
-
case 23:
|
|
2781
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _o.concat([(_t.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2782
|
-
return [3, 31];
|
|
2783
|
-
case 24:
|
|
2784
|
-
_p = [{}];
|
|
2785
|
-
return [4, deserializeAws_queryKMSThrottlingExceptionResponse(parsedOutput, context)];
|
|
2786
|
-
case 25:
|
|
2787
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _p.concat([(_t.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2788
|
-
return [3, 31];
|
|
2789
|
-
case 26:
|
|
2790
|
-
_q = [{}];
|
|
2791
|
-
return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
2792
|
-
case 27:
|
|
2793
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _q.concat([(_t.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2794
|
-
return [3, 31];
|
|
2795
|
-
case 28:
|
|
2796
|
-
_r = [{}];
|
|
2797
|
-
return [4, deserializeAws_queryPlatformApplicationDisabledExceptionResponse(parsedOutput, context)];
|
|
2798
|
-
case 29:
|
|
2799
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _r.concat([(_t.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2800
|
-
return [3, 31];
|
|
2189
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
2190
|
+
case 3: throw _d.sent();
|
|
2191
|
+
case 4: return [4, deserializeAws_queryEndpointDisabledExceptionResponse(parsedOutput, context)];
|
|
2192
|
+
case 5: throw _d.sent();
|
|
2193
|
+
case 6: return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
2194
|
+
case 7: throw _d.sent();
|
|
2195
|
+
case 8: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2196
|
+
case 9: throw _d.sent();
|
|
2197
|
+
case 10: return [4, deserializeAws_queryInvalidParameterValueExceptionResponse(parsedOutput, context)];
|
|
2198
|
+
case 11: throw _d.sent();
|
|
2199
|
+
case 12: return [4, deserializeAws_queryInvalidSecurityExceptionResponse(parsedOutput, context)];
|
|
2200
|
+
case 13: throw _d.sent();
|
|
2201
|
+
case 14: return [4, deserializeAws_queryKMSAccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2202
|
+
case 15: throw _d.sent();
|
|
2203
|
+
case 16: return [4, deserializeAws_queryKMSDisabledExceptionResponse(parsedOutput, context)];
|
|
2204
|
+
case 17: throw _d.sent();
|
|
2205
|
+
case 18: return [4, deserializeAws_queryKMSInvalidStateExceptionResponse(parsedOutput, context)];
|
|
2206
|
+
case 19: throw _d.sent();
|
|
2207
|
+
case 20: return [4, deserializeAws_queryKMSNotFoundExceptionResponse(parsedOutput, context)];
|
|
2208
|
+
case 21: throw _d.sent();
|
|
2209
|
+
case 22: return [4, deserializeAws_queryKMSOptInRequiredResponse(parsedOutput, context)];
|
|
2210
|
+
case 23: throw _d.sent();
|
|
2211
|
+
case 24: return [4, deserializeAws_queryKMSThrottlingExceptionResponse(parsedOutput, context)];
|
|
2212
|
+
case 25: throw _d.sent();
|
|
2213
|
+
case 26: return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
2214
|
+
case 27: throw _d.sent();
|
|
2215
|
+
case 28: return [4, deserializeAws_queryPlatformApplicationDisabledExceptionResponse(parsedOutput, context)];
|
|
2216
|
+
case 29: throw _d.sent();
|
|
2801
2217
|
case 30:
|
|
2802
2218
|
parsedBody = parsedOutput.body;
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
response.
|
|
2809
|
-
delete response.Message;
|
|
2810
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2219
|
+
response = new __BaseException({
|
|
2220
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2221
|
+
$fault: "client",
|
|
2222
|
+
$metadata: deserializeMetadata(output),
|
|
2223
|
+
});
|
|
2224
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
2811
2225
|
}
|
|
2812
2226
|
});
|
|
2813
2227
|
}); };
|
|
@@ -2830,16 +2244,16 @@ export var deserializeAws_queryPublishBatchCommand = function (output, context)
|
|
|
2830
2244
|
});
|
|
2831
2245
|
}); };
|
|
2832
2246
|
var deserializeAws_queryPublishBatchCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2833
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2834
|
-
var
|
|
2835
|
-
return __generator(this, function (
|
|
2836
|
-
switch (
|
|
2247
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2248
|
+
var _c;
|
|
2249
|
+
return __generator(this, function (_d) {
|
|
2250
|
+
switch (_d.label) {
|
|
2837
2251
|
case 0:
|
|
2838
2252
|
_a = [__assign({}, output)];
|
|
2839
|
-
|
|
2253
|
+
_c = {};
|
|
2840
2254
|
return [4, parseBody(output.body, context)];
|
|
2841
2255
|
case 1:
|
|
2842
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2256
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2843
2257
|
errorCode = "UnknownError";
|
|
2844
2258
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2845
2259
|
_b = errorCode;
|
|
@@ -2884,130 +2298,52 @@ var deserializeAws_queryPublishBatchCommandError = function (output, context) {
|
|
|
2884
2298
|
case "com.amazonaws.sns#TooManyEntriesInBatchRequestException": return [3, 38];
|
|
2885
2299
|
}
|
|
2886
2300
|
return [3, 40];
|
|
2887
|
-
case 2:
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
case
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
case 4
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
case
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
case
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
case
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
case
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
case
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
case
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
case
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
case
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
case
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
case
|
|
2924
|
-
|
|
2925
|
-
return [4, deserializeAws_queryInvalidBatchEntryIdExceptionResponse(parsedOutput, context)];
|
|
2926
|
-
case 15:
|
|
2927
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2928
|
-
return [3, 41];
|
|
2929
|
-
case 16:
|
|
2930
|
-
_k = [{}];
|
|
2931
|
-
return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2932
|
-
case 17:
|
|
2933
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2934
|
-
return [3, 41];
|
|
2935
|
-
case 18:
|
|
2936
|
-
_l = [{}];
|
|
2937
|
-
return [4, deserializeAws_queryInvalidParameterValueExceptionResponse(parsedOutput, context)];
|
|
2938
|
-
case 19:
|
|
2939
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2940
|
-
return [3, 41];
|
|
2941
|
-
case 20:
|
|
2942
|
-
_m = [{}];
|
|
2943
|
-
return [4, deserializeAws_queryInvalidSecurityExceptionResponse(parsedOutput, context)];
|
|
2944
|
-
case 21:
|
|
2945
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _m.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2946
|
-
return [3, 41];
|
|
2947
|
-
case 22:
|
|
2948
|
-
_o = [{}];
|
|
2949
|
-
return [4, deserializeAws_queryKMSAccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2950
|
-
case 23:
|
|
2951
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _o.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2952
|
-
return [3, 41];
|
|
2953
|
-
case 24:
|
|
2954
|
-
_p = [{}];
|
|
2955
|
-
return [4, deserializeAws_queryKMSDisabledExceptionResponse(parsedOutput, context)];
|
|
2956
|
-
case 25:
|
|
2957
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _p.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2958
|
-
return [3, 41];
|
|
2959
|
-
case 26:
|
|
2960
|
-
_q = [{}];
|
|
2961
|
-
return [4, deserializeAws_queryKMSInvalidStateExceptionResponse(parsedOutput, context)];
|
|
2962
|
-
case 27:
|
|
2963
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _q.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2964
|
-
return [3, 41];
|
|
2965
|
-
case 28:
|
|
2966
|
-
_r = [{}];
|
|
2967
|
-
return [4, deserializeAws_queryKMSNotFoundExceptionResponse(parsedOutput, context)];
|
|
2968
|
-
case 29:
|
|
2969
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _r.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2970
|
-
return [3, 41];
|
|
2971
|
-
case 30:
|
|
2972
|
-
_s = [{}];
|
|
2973
|
-
return [4, deserializeAws_queryKMSOptInRequiredResponse(parsedOutput, context)];
|
|
2974
|
-
case 31:
|
|
2975
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _s.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2976
|
-
return [3, 41];
|
|
2977
|
-
case 32:
|
|
2978
|
-
_t = [{}];
|
|
2979
|
-
return [4, deserializeAws_queryKMSThrottlingExceptionResponse(parsedOutput, context)];
|
|
2980
|
-
case 33:
|
|
2981
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _t.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2982
|
-
return [3, 41];
|
|
2983
|
-
case 34:
|
|
2984
|
-
_u = [{}];
|
|
2985
|
-
return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
2986
|
-
case 35:
|
|
2987
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _u.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2988
|
-
return [3, 41];
|
|
2989
|
-
case 36:
|
|
2990
|
-
_v = [{}];
|
|
2991
|
-
return [4, deserializeAws_queryPlatformApplicationDisabledExceptionResponse(parsedOutput, context)];
|
|
2992
|
-
case 37:
|
|
2993
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _v.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2994
|
-
return [3, 41];
|
|
2995
|
-
case 38:
|
|
2996
|
-
_w = [{}];
|
|
2997
|
-
return [4, deserializeAws_queryTooManyEntriesInBatchRequestExceptionResponse(parsedOutput, context)];
|
|
2998
|
-
case 39:
|
|
2999
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _w.concat([(_y.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3000
|
-
return [3, 41];
|
|
2301
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
2302
|
+
case 3: throw _d.sent();
|
|
2303
|
+
case 4: return [4, deserializeAws_queryBatchEntryIdsNotDistinctExceptionResponse(parsedOutput, context)];
|
|
2304
|
+
case 5: throw _d.sent();
|
|
2305
|
+
case 6: return [4, deserializeAws_queryBatchRequestTooLongExceptionResponse(parsedOutput, context)];
|
|
2306
|
+
case 7: throw _d.sent();
|
|
2307
|
+
case 8: return [4, deserializeAws_queryEmptyBatchRequestExceptionResponse(parsedOutput, context)];
|
|
2308
|
+
case 9: throw _d.sent();
|
|
2309
|
+
case 10: return [4, deserializeAws_queryEndpointDisabledExceptionResponse(parsedOutput, context)];
|
|
2310
|
+
case 11: throw _d.sent();
|
|
2311
|
+
case 12: return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
2312
|
+
case 13: throw _d.sent();
|
|
2313
|
+
case 14: return [4, deserializeAws_queryInvalidBatchEntryIdExceptionResponse(parsedOutput, context)];
|
|
2314
|
+
case 15: throw _d.sent();
|
|
2315
|
+
case 16: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2316
|
+
case 17: throw _d.sent();
|
|
2317
|
+
case 18: return [4, deserializeAws_queryInvalidParameterValueExceptionResponse(parsedOutput, context)];
|
|
2318
|
+
case 19: throw _d.sent();
|
|
2319
|
+
case 20: return [4, deserializeAws_queryInvalidSecurityExceptionResponse(parsedOutput, context)];
|
|
2320
|
+
case 21: throw _d.sent();
|
|
2321
|
+
case 22: return [4, deserializeAws_queryKMSAccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2322
|
+
case 23: throw _d.sent();
|
|
2323
|
+
case 24: return [4, deserializeAws_queryKMSDisabledExceptionResponse(parsedOutput, context)];
|
|
2324
|
+
case 25: throw _d.sent();
|
|
2325
|
+
case 26: return [4, deserializeAws_queryKMSInvalidStateExceptionResponse(parsedOutput, context)];
|
|
2326
|
+
case 27: throw _d.sent();
|
|
2327
|
+
case 28: return [4, deserializeAws_queryKMSNotFoundExceptionResponse(parsedOutput, context)];
|
|
2328
|
+
case 29: throw _d.sent();
|
|
2329
|
+
case 30: return [4, deserializeAws_queryKMSOptInRequiredResponse(parsedOutput, context)];
|
|
2330
|
+
case 31: throw _d.sent();
|
|
2331
|
+
case 32: return [4, deserializeAws_queryKMSThrottlingExceptionResponse(parsedOutput, context)];
|
|
2332
|
+
case 33: throw _d.sent();
|
|
2333
|
+
case 34: return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
2334
|
+
case 35: throw _d.sent();
|
|
2335
|
+
case 36: return [4, deserializeAws_queryPlatformApplicationDisabledExceptionResponse(parsedOutput, context)];
|
|
2336
|
+
case 37: throw _d.sent();
|
|
2337
|
+
case 38: return [4, deserializeAws_queryTooManyEntriesInBatchRequestExceptionResponse(parsedOutput, context)];
|
|
2338
|
+
case 39: throw _d.sent();
|
|
3001
2339
|
case 40:
|
|
3002
2340
|
parsedBody = parsedOutput.body;
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
response.
|
|
3009
|
-
delete response.Message;
|
|
3010
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2341
|
+
response = new __BaseException({
|
|
2342
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2343
|
+
$fault: "client",
|
|
2344
|
+
$metadata: deserializeMetadata(output),
|
|
2345
|
+
});
|
|
2346
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
3011
2347
|
}
|
|
3012
2348
|
});
|
|
3013
2349
|
}); };
|
|
@@ -3030,16 +2366,16 @@ export var deserializeAws_queryRemovePermissionCommand = function (output, conte
|
|
|
3030
2366
|
});
|
|
3031
2367
|
}); };
|
|
3032
2368
|
var deserializeAws_queryRemovePermissionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3033
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3034
|
-
var
|
|
3035
|
-
return __generator(this, function (
|
|
3036
|
-
switch (
|
|
2369
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2370
|
+
var _c;
|
|
2371
|
+
return __generator(this, function (_d) {
|
|
2372
|
+
switch (_d.label) {
|
|
3037
2373
|
case 0:
|
|
3038
2374
|
_a = [__assign({}, output)];
|
|
3039
|
-
|
|
2375
|
+
_c = {};
|
|
3040
2376
|
return [4, parseBody(output.body, context)];
|
|
3041
2377
|
case 1:
|
|
3042
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2378
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3043
2379
|
errorCode = "UnknownError";
|
|
3044
2380
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3045
2381
|
_b = errorCode;
|
|
@@ -3054,40 +2390,22 @@ var deserializeAws_queryRemovePermissionCommandError = function (output, context
|
|
|
3054
2390
|
case "com.amazonaws.sns#NotFoundException": return [3, 8];
|
|
3055
2391
|
}
|
|
3056
2392
|
return [3, 10];
|
|
3057
|
-
case 2:
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
case
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
case 4
|
|
3064
|
-
|
|
3065
|
-
return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
3066
|
-
case 5:
|
|
3067
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3068
|
-
return [3, 11];
|
|
3069
|
-
case 6:
|
|
3070
|
-
_e = [{}];
|
|
3071
|
-
return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
3072
|
-
case 7:
|
|
3073
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3074
|
-
return [3, 11];
|
|
3075
|
-
case 8:
|
|
3076
|
-
_f = [{}];
|
|
3077
|
-
return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
3078
|
-
case 9:
|
|
3079
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3080
|
-
return [3, 11];
|
|
2393
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
2394
|
+
case 3: throw _d.sent();
|
|
2395
|
+
case 4: return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
2396
|
+
case 5: throw _d.sent();
|
|
2397
|
+
case 6: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2398
|
+
case 7: throw _d.sent();
|
|
2399
|
+
case 8: return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
2400
|
+
case 9: throw _d.sent();
|
|
3081
2401
|
case 10:
|
|
3082
2402
|
parsedBody = parsedOutput.body;
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
response.
|
|
3089
|
-
delete response.Message;
|
|
3090
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2403
|
+
response = new __BaseException({
|
|
2404
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2405
|
+
$fault: "client",
|
|
2406
|
+
$metadata: deserializeMetadata(output),
|
|
2407
|
+
});
|
|
2408
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
3091
2409
|
}
|
|
3092
2410
|
});
|
|
3093
2411
|
}); };
|
|
@@ -3110,16 +2428,16 @@ export var deserializeAws_querySetEndpointAttributesCommand = function (output,
|
|
|
3110
2428
|
});
|
|
3111
2429
|
}); };
|
|
3112
2430
|
var deserializeAws_querySetEndpointAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3113
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3114
|
-
var
|
|
3115
|
-
return __generator(this, function (
|
|
3116
|
-
switch (
|
|
2431
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2432
|
+
var _c;
|
|
2433
|
+
return __generator(this, function (_d) {
|
|
2434
|
+
switch (_d.label) {
|
|
3117
2435
|
case 0:
|
|
3118
2436
|
_a = [__assign({}, output)];
|
|
3119
|
-
|
|
2437
|
+
_c = {};
|
|
3120
2438
|
return [4, parseBody(output.body, context)];
|
|
3121
2439
|
case 1:
|
|
3122
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2440
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3123
2441
|
errorCode = "UnknownError";
|
|
3124
2442
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3125
2443
|
_b = errorCode;
|
|
@@ -3134,40 +2452,22 @@ var deserializeAws_querySetEndpointAttributesCommandError = function (output, co
|
|
|
3134
2452
|
case "com.amazonaws.sns#NotFoundException": return [3, 8];
|
|
3135
2453
|
}
|
|
3136
2454
|
return [3, 10];
|
|
3137
|
-
case 2:
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
case
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
case 4
|
|
3144
|
-
|
|
3145
|
-
return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
3146
|
-
case 5:
|
|
3147
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3148
|
-
return [3, 11];
|
|
3149
|
-
case 6:
|
|
3150
|
-
_e = [{}];
|
|
3151
|
-
return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
3152
|
-
case 7:
|
|
3153
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3154
|
-
return [3, 11];
|
|
3155
|
-
case 8:
|
|
3156
|
-
_f = [{}];
|
|
3157
|
-
return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
3158
|
-
case 9:
|
|
3159
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3160
|
-
return [3, 11];
|
|
2455
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
2456
|
+
case 3: throw _d.sent();
|
|
2457
|
+
case 4: return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
2458
|
+
case 5: throw _d.sent();
|
|
2459
|
+
case 6: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2460
|
+
case 7: throw _d.sent();
|
|
2461
|
+
case 8: return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
2462
|
+
case 9: throw _d.sent();
|
|
3161
2463
|
case 10:
|
|
3162
2464
|
parsedBody = parsedOutput.body;
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
response.
|
|
3169
|
-
delete response.Message;
|
|
3170
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2465
|
+
response = new __BaseException({
|
|
2466
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2467
|
+
$fault: "client",
|
|
2468
|
+
$metadata: deserializeMetadata(output),
|
|
2469
|
+
});
|
|
2470
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
3171
2471
|
}
|
|
3172
2472
|
});
|
|
3173
2473
|
}); };
|
|
@@ -3190,16 +2490,16 @@ export var deserializeAws_querySetPlatformApplicationAttributesCommand = functio
|
|
|
3190
2490
|
});
|
|
3191
2491
|
}); };
|
|
3192
2492
|
var deserializeAws_querySetPlatformApplicationAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3193
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3194
|
-
var
|
|
3195
|
-
return __generator(this, function (
|
|
3196
|
-
switch (
|
|
2493
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2494
|
+
var _c;
|
|
2495
|
+
return __generator(this, function (_d) {
|
|
2496
|
+
switch (_d.label) {
|
|
3197
2497
|
case 0:
|
|
3198
2498
|
_a = [__assign({}, output)];
|
|
3199
|
-
|
|
2499
|
+
_c = {};
|
|
3200
2500
|
return [4, parseBody(output.body, context)];
|
|
3201
2501
|
case 1:
|
|
3202
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2502
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3203
2503
|
errorCode = "UnknownError";
|
|
3204
2504
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3205
2505
|
_b = errorCode;
|
|
@@ -3214,40 +2514,22 @@ var deserializeAws_querySetPlatformApplicationAttributesCommandError = function
|
|
|
3214
2514
|
case "com.amazonaws.sns#NotFoundException": return [3, 8];
|
|
3215
2515
|
}
|
|
3216
2516
|
return [3, 10];
|
|
3217
|
-
case 2:
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
case
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
case 4
|
|
3224
|
-
|
|
3225
|
-
return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
3226
|
-
case 5:
|
|
3227
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3228
|
-
return [3, 11];
|
|
3229
|
-
case 6:
|
|
3230
|
-
_e = [{}];
|
|
3231
|
-
return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
3232
|
-
case 7:
|
|
3233
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3234
|
-
return [3, 11];
|
|
3235
|
-
case 8:
|
|
3236
|
-
_f = [{}];
|
|
3237
|
-
return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
3238
|
-
case 9:
|
|
3239
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3240
|
-
return [3, 11];
|
|
2517
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
2518
|
+
case 3: throw _d.sent();
|
|
2519
|
+
case 4: return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
2520
|
+
case 5: throw _d.sent();
|
|
2521
|
+
case 6: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2522
|
+
case 7: throw _d.sent();
|
|
2523
|
+
case 8: return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
2524
|
+
case 9: throw _d.sent();
|
|
3241
2525
|
case 10:
|
|
3242
2526
|
parsedBody = parsedOutput.body;
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
response.
|
|
3249
|
-
delete response.Message;
|
|
3250
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2527
|
+
response = new __BaseException({
|
|
2528
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2529
|
+
$fault: "client",
|
|
2530
|
+
$metadata: deserializeMetadata(output),
|
|
2531
|
+
});
|
|
2532
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
3251
2533
|
}
|
|
3252
2534
|
});
|
|
3253
2535
|
}); };
|
|
@@ -3270,16 +2552,16 @@ export var deserializeAws_querySetSMSAttributesCommand = function (output, conte
|
|
|
3270
2552
|
});
|
|
3271
2553
|
}); };
|
|
3272
2554
|
var deserializeAws_querySetSMSAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3273
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3274
|
-
var
|
|
3275
|
-
return __generator(this, function (
|
|
3276
|
-
switch (
|
|
2555
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2556
|
+
var _c;
|
|
2557
|
+
return __generator(this, function (_d) {
|
|
2558
|
+
switch (_d.label) {
|
|
3277
2559
|
case 0:
|
|
3278
2560
|
_a = [__assign({}, output)];
|
|
3279
|
-
|
|
2561
|
+
_c = {};
|
|
3280
2562
|
return [4, parseBody(output.body, context)];
|
|
3281
2563
|
case 1:
|
|
3282
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2564
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3283
2565
|
errorCode = "UnknownError";
|
|
3284
2566
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3285
2567
|
_b = errorCode;
|
|
@@ -3294,40 +2576,22 @@ var deserializeAws_querySetSMSAttributesCommandError = function (output, context
|
|
|
3294
2576
|
case "com.amazonaws.sns#ThrottledException": return [3, 8];
|
|
3295
2577
|
}
|
|
3296
2578
|
return [3, 10];
|
|
3297
|
-
case 2:
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
case
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
case 4
|
|
3304
|
-
|
|
3305
|
-
return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
3306
|
-
case 5:
|
|
3307
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3308
|
-
return [3, 11];
|
|
3309
|
-
case 6:
|
|
3310
|
-
_e = [{}];
|
|
3311
|
-
return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
3312
|
-
case 7:
|
|
3313
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3314
|
-
return [3, 11];
|
|
3315
|
-
case 8:
|
|
3316
|
-
_f = [{}];
|
|
3317
|
-
return [4, deserializeAws_queryThrottledExceptionResponse(parsedOutput, context)];
|
|
3318
|
-
case 9:
|
|
3319
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3320
|
-
return [3, 11];
|
|
2579
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
2580
|
+
case 3: throw _d.sent();
|
|
2581
|
+
case 4: return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
2582
|
+
case 5: throw _d.sent();
|
|
2583
|
+
case 6: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2584
|
+
case 7: throw _d.sent();
|
|
2585
|
+
case 8: return [4, deserializeAws_queryThrottledExceptionResponse(parsedOutput, context)];
|
|
2586
|
+
case 9: throw _d.sent();
|
|
3321
2587
|
case 10:
|
|
3322
2588
|
parsedBody = parsedOutput.body;
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
response.
|
|
3329
|
-
delete response.Message;
|
|
3330
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2589
|
+
response = new __BaseException({
|
|
2590
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2591
|
+
$fault: "client",
|
|
2592
|
+
$metadata: deserializeMetadata(output),
|
|
2593
|
+
});
|
|
2594
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
3331
2595
|
}
|
|
3332
2596
|
});
|
|
3333
2597
|
}); };
|
|
@@ -3350,16 +2614,16 @@ export var deserializeAws_querySetSubscriptionAttributesCommand = function (outp
|
|
|
3350
2614
|
});
|
|
3351
2615
|
}); };
|
|
3352
2616
|
var deserializeAws_querySetSubscriptionAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3353
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3354
|
-
var
|
|
3355
|
-
return __generator(this, function (
|
|
3356
|
-
switch (
|
|
2617
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2618
|
+
var _c;
|
|
2619
|
+
return __generator(this, function (_d) {
|
|
2620
|
+
switch (_d.label) {
|
|
3357
2621
|
case 0:
|
|
3358
2622
|
_a = [__assign({}, output)];
|
|
3359
|
-
|
|
2623
|
+
_c = {};
|
|
3360
2624
|
return [4, parseBody(output.body, context)];
|
|
3361
2625
|
case 1:
|
|
3362
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2626
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3363
2627
|
errorCode = "UnknownError";
|
|
3364
2628
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3365
2629
|
_b = errorCode;
|
|
@@ -3376,46 +2640,24 @@ var deserializeAws_querySetSubscriptionAttributesCommandError = function (output
|
|
|
3376
2640
|
case "com.amazonaws.sns#NotFoundException": return [3, 10];
|
|
3377
2641
|
}
|
|
3378
2642
|
return [3, 12];
|
|
3379
|
-
case 2:
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
case
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
case 4
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
case
|
|
3389
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3390
|
-
return [3, 13];
|
|
3391
|
-
case 6:
|
|
3392
|
-
_e = [{}];
|
|
3393
|
-
return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
3394
|
-
case 7:
|
|
3395
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3396
|
-
return [3, 13];
|
|
3397
|
-
case 8:
|
|
3398
|
-
_f = [{}];
|
|
3399
|
-
return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
3400
|
-
case 9:
|
|
3401
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3402
|
-
return [3, 13];
|
|
3403
|
-
case 10:
|
|
3404
|
-
_g = [{}];
|
|
3405
|
-
return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
3406
|
-
case 11:
|
|
3407
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3408
|
-
return [3, 13];
|
|
2643
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
2644
|
+
case 3: throw _d.sent();
|
|
2645
|
+
case 4: return [4, deserializeAws_queryFilterPolicyLimitExceededExceptionResponse(parsedOutput, context)];
|
|
2646
|
+
case 5: throw _d.sent();
|
|
2647
|
+
case 6: return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
2648
|
+
case 7: throw _d.sent();
|
|
2649
|
+
case 8: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2650
|
+
case 9: throw _d.sent();
|
|
2651
|
+
case 10: return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
2652
|
+
case 11: throw _d.sent();
|
|
3409
2653
|
case 12:
|
|
3410
2654
|
parsedBody = parsedOutput.body;
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
response.
|
|
3417
|
-
delete response.Message;
|
|
3418
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2655
|
+
response = new __BaseException({
|
|
2656
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2657
|
+
$fault: "client",
|
|
2658
|
+
$metadata: deserializeMetadata(output),
|
|
2659
|
+
});
|
|
2660
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
3419
2661
|
}
|
|
3420
2662
|
});
|
|
3421
2663
|
}); };
|
|
@@ -3438,16 +2680,16 @@ export var deserializeAws_querySetTopicAttributesCommand = function (output, con
|
|
|
3438
2680
|
});
|
|
3439
2681
|
}); };
|
|
3440
2682
|
var deserializeAws_querySetTopicAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3441
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3442
|
-
var
|
|
3443
|
-
return __generator(this, function (
|
|
3444
|
-
switch (
|
|
2683
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2684
|
+
var _c;
|
|
2685
|
+
return __generator(this, function (_d) {
|
|
2686
|
+
switch (_d.label) {
|
|
3445
2687
|
case 0:
|
|
3446
2688
|
_a = [__assign({}, output)];
|
|
3447
|
-
|
|
2689
|
+
_c = {};
|
|
3448
2690
|
return [4, parseBody(output.body, context)];
|
|
3449
2691
|
case 1:
|
|
3450
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2692
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3451
2693
|
errorCode = "UnknownError";
|
|
3452
2694
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3453
2695
|
_b = errorCode;
|
|
@@ -3464,46 +2706,24 @@ var deserializeAws_querySetTopicAttributesCommandError = function (output, conte
|
|
|
3464
2706
|
case "com.amazonaws.sns#NotFoundException": return [3, 10];
|
|
3465
2707
|
}
|
|
3466
2708
|
return [3, 12];
|
|
3467
|
-
case 2:
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
case
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
case 4
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
case
|
|
3477
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3478
|
-
return [3, 13];
|
|
3479
|
-
case 6:
|
|
3480
|
-
_e = [{}];
|
|
3481
|
-
return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
3482
|
-
case 7:
|
|
3483
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3484
|
-
return [3, 13];
|
|
3485
|
-
case 8:
|
|
3486
|
-
_f = [{}];
|
|
3487
|
-
return [4, deserializeAws_queryInvalidSecurityExceptionResponse(parsedOutput, context)];
|
|
3488
|
-
case 9:
|
|
3489
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3490
|
-
return [3, 13];
|
|
3491
|
-
case 10:
|
|
3492
|
-
_g = [{}];
|
|
3493
|
-
return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
3494
|
-
case 11:
|
|
3495
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3496
|
-
return [3, 13];
|
|
2709
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
2710
|
+
case 3: throw _d.sent();
|
|
2711
|
+
case 4: return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
2712
|
+
case 5: throw _d.sent();
|
|
2713
|
+
case 6: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2714
|
+
case 7: throw _d.sent();
|
|
2715
|
+
case 8: return [4, deserializeAws_queryInvalidSecurityExceptionResponse(parsedOutput, context)];
|
|
2716
|
+
case 9: throw _d.sent();
|
|
2717
|
+
case 10: return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
2718
|
+
case 11: throw _d.sent();
|
|
3497
2719
|
case 12:
|
|
3498
2720
|
parsedBody = parsedOutput.body;
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
response.
|
|
3505
|
-
delete response.Message;
|
|
3506
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2721
|
+
response = new __BaseException({
|
|
2722
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2723
|
+
$fault: "client",
|
|
2724
|
+
$metadata: deserializeMetadata(output),
|
|
2725
|
+
});
|
|
2726
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
3507
2727
|
}
|
|
3508
2728
|
});
|
|
3509
2729
|
}); };
|
|
@@ -3526,16 +2746,16 @@ export var deserializeAws_querySubscribeCommand = function (output, context) { r
|
|
|
3526
2746
|
});
|
|
3527
2747
|
}); };
|
|
3528
2748
|
var deserializeAws_querySubscribeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3529
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3530
|
-
var
|
|
3531
|
-
return __generator(this, function (
|
|
3532
|
-
switch (
|
|
2749
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2750
|
+
var _c;
|
|
2751
|
+
return __generator(this, function (_d) {
|
|
2752
|
+
switch (_d.label) {
|
|
3533
2753
|
case 0:
|
|
3534
2754
|
_a = [__assign({}, output)];
|
|
3535
|
-
|
|
2755
|
+
_c = {};
|
|
3536
2756
|
return [4, parseBody(output.body, context)];
|
|
3537
2757
|
case 1:
|
|
3538
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2758
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3539
2759
|
errorCode = "UnknownError";
|
|
3540
2760
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3541
2761
|
_b = errorCode;
|
|
@@ -3556,58 +2776,28 @@ var deserializeAws_querySubscribeCommandError = function (output, context) { ret
|
|
|
3556
2776
|
case "com.amazonaws.sns#SubscriptionLimitExceededException": return [3, 14];
|
|
3557
2777
|
}
|
|
3558
2778
|
return [3, 16];
|
|
3559
|
-
case 2:
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
case
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
case 4
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
case
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
case
|
|
3572
|
-
|
|
3573
|
-
return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
3574
|
-
case 7:
|
|
3575
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3576
|
-
return [3, 17];
|
|
3577
|
-
case 8:
|
|
3578
|
-
_f = [{}];
|
|
3579
|
-
return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
3580
|
-
case 9:
|
|
3581
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3582
|
-
return [3, 17];
|
|
3583
|
-
case 10:
|
|
3584
|
-
_g = [{}];
|
|
3585
|
-
return [4, deserializeAws_queryInvalidSecurityExceptionResponse(parsedOutput, context)];
|
|
3586
|
-
case 11:
|
|
3587
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3588
|
-
return [3, 17];
|
|
3589
|
-
case 12:
|
|
3590
|
-
_h = [{}];
|
|
3591
|
-
return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
3592
|
-
case 13:
|
|
3593
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3594
|
-
return [3, 17];
|
|
3595
|
-
case 14:
|
|
3596
|
-
_j = [{}];
|
|
3597
|
-
return [4, deserializeAws_querySubscriptionLimitExceededExceptionResponse(parsedOutput, context)];
|
|
3598
|
-
case 15:
|
|
3599
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3600
|
-
return [3, 17];
|
|
2779
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
2780
|
+
case 3: throw _d.sent();
|
|
2781
|
+
case 4: return [4, deserializeAws_queryFilterPolicyLimitExceededExceptionResponse(parsedOutput, context)];
|
|
2782
|
+
case 5: throw _d.sent();
|
|
2783
|
+
case 6: return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
2784
|
+
case 7: throw _d.sent();
|
|
2785
|
+
case 8: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2786
|
+
case 9: throw _d.sent();
|
|
2787
|
+
case 10: return [4, deserializeAws_queryInvalidSecurityExceptionResponse(parsedOutput, context)];
|
|
2788
|
+
case 11: throw _d.sent();
|
|
2789
|
+
case 12: return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
2790
|
+
case 13: throw _d.sent();
|
|
2791
|
+
case 14: return [4, deserializeAws_querySubscriptionLimitExceededExceptionResponse(parsedOutput, context)];
|
|
2792
|
+
case 15: throw _d.sent();
|
|
3601
2793
|
case 16:
|
|
3602
2794
|
parsedBody = parsedOutput.body;
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
response.
|
|
3609
|
-
delete response.Message;
|
|
3610
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2795
|
+
response = new __BaseException({
|
|
2796
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2797
|
+
$fault: "client",
|
|
2798
|
+
$metadata: deserializeMetadata(output),
|
|
2799
|
+
});
|
|
2800
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
3611
2801
|
}
|
|
3612
2802
|
});
|
|
3613
2803
|
}); };
|
|
@@ -3630,16 +2820,16 @@ export var deserializeAws_queryTagResourceCommand = function (output, context) {
|
|
|
3630
2820
|
});
|
|
3631
2821
|
}); };
|
|
3632
2822
|
var deserializeAws_queryTagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3633
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3634
|
-
var
|
|
3635
|
-
return __generator(this, function (
|
|
3636
|
-
switch (
|
|
2823
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2824
|
+
var _c;
|
|
2825
|
+
return __generator(this, function (_d) {
|
|
2826
|
+
switch (_d.label) {
|
|
3637
2827
|
case 0:
|
|
3638
2828
|
_a = [__assign({}, output)];
|
|
3639
|
-
|
|
2829
|
+
_c = {};
|
|
3640
2830
|
return [4, parseBody(output.body, context)];
|
|
3641
2831
|
case 1:
|
|
3642
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2832
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3643
2833
|
errorCode = "UnknownError";
|
|
3644
2834
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3645
2835
|
_b = errorCode;
|
|
@@ -3660,58 +2850,28 @@ var deserializeAws_queryTagResourceCommandError = function (output, context) { r
|
|
|
3660
2850
|
case "com.amazonaws.sns#TagPolicyException": return [3, 14];
|
|
3661
2851
|
}
|
|
3662
2852
|
return [3, 16];
|
|
3663
|
-
case 2:
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
case
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
case 4
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
case
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
case
|
|
3676
|
-
|
|
3677
|
-
return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
3678
|
-
case 7:
|
|
3679
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3680
|
-
return [3, 17];
|
|
3681
|
-
case 8:
|
|
3682
|
-
_f = [{}];
|
|
3683
|
-
return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3684
|
-
case 9:
|
|
3685
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3686
|
-
return [3, 17];
|
|
3687
|
-
case 10:
|
|
3688
|
-
_g = [{}];
|
|
3689
|
-
return [4, deserializeAws_queryStaleTagExceptionResponse(parsedOutput, context)];
|
|
3690
|
-
case 11:
|
|
3691
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3692
|
-
return [3, 17];
|
|
3693
|
-
case 12:
|
|
3694
|
-
_h = [{}];
|
|
3695
|
-
return [4, deserializeAws_queryTagLimitExceededExceptionResponse(parsedOutput, context)];
|
|
3696
|
-
case 13:
|
|
3697
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3698
|
-
return [3, 17];
|
|
3699
|
-
case 14:
|
|
3700
|
-
_j = [{}];
|
|
3701
|
-
return [4, deserializeAws_queryTagPolicyExceptionResponse(parsedOutput, context)];
|
|
3702
|
-
case 15:
|
|
3703
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3704
|
-
return [3, 17];
|
|
2853
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
2854
|
+
case 3: throw _d.sent();
|
|
2855
|
+
case 4: return [4, deserializeAws_queryConcurrentAccessExceptionResponse(parsedOutput, context)];
|
|
2856
|
+
case 5: throw _d.sent();
|
|
2857
|
+
case 6: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2858
|
+
case 7: throw _d.sent();
|
|
2859
|
+
case 8: return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2860
|
+
case 9: throw _d.sent();
|
|
2861
|
+
case 10: return [4, deserializeAws_queryStaleTagExceptionResponse(parsedOutput, context)];
|
|
2862
|
+
case 11: throw _d.sent();
|
|
2863
|
+
case 12: return [4, deserializeAws_queryTagLimitExceededExceptionResponse(parsedOutput, context)];
|
|
2864
|
+
case 13: throw _d.sent();
|
|
2865
|
+
case 14: return [4, deserializeAws_queryTagPolicyExceptionResponse(parsedOutput, context)];
|
|
2866
|
+
case 15: throw _d.sent();
|
|
3705
2867
|
case 16:
|
|
3706
2868
|
parsedBody = parsedOutput.body;
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
response.
|
|
3713
|
-
delete response.Message;
|
|
3714
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2869
|
+
response = new __BaseException({
|
|
2870
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2871
|
+
$fault: "client",
|
|
2872
|
+
$metadata: deserializeMetadata(output),
|
|
2873
|
+
});
|
|
2874
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
3715
2875
|
}
|
|
3716
2876
|
});
|
|
3717
2877
|
}); };
|
|
@@ -3734,16 +2894,16 @@ export var deserializeAws_queryUnsubscribeCommand = function (output, context) {
|
|
|
3734
2894
|
});
|
|
3735
2895
|
}); };
|
|
3736
2896
|
var deserializeAws_queryUnsubscribeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3737
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3738
|
-
var
|
|
3739
|
-
return __generator(this, function (
|
|
3740
|
-
switch (
|
|
2897
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2898
|
+
var _c;
|
|
2899
|
+
return __generator(this, function (_d) {
|
|
2900
|
+
switch (_d.label) {
|
|
3741
2901
|
case 0:
|
|
3742
2902
|
_a = [__assign({}, output)];
|
|
3743
|
-
|
|
2903
|
+
_c = {};
|
|
3744
2904
|
return [4, parseBody(output.body, context)];
|
|
3745
2905
|
case 1:
|
|
3746
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2906
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3747
2907
|
errorCode = "UnknownError";
|
|
3748
2908
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3749
2909
|
_b = errorCode;
|
|
@@ -3760,46 +2920,24 @@ var deserializeAws_queryUnsubscribeCommandError = function (output, context) { r
|
|
|
3760
2920
|
case "com.amazonaws.sns#NotFoundException": return [3, 10];
|
|
3761
2921
|
}
|
|
3762
2922
|
return [3, 12];
|
|
3763
|
-
case 2:
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
case
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
case 4
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
case
|
|
3773
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3774
|
-
return [3, 13];
|
|
3775
|
-
case 6:
|
|
3776
|
-
_e = [{}];
|
|
3777
|
-
return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
3778
|
-
case 7:
|
|
3779
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3780
|
-
return [3, 13];
|
|
3781
|
-
case 8:
|
|
3782
|
-
_f = [{}];
|
|
3783
|
-
return [4, deserializeAws_queryInvalidSecurityExceptionResponse(parsedOutput, context)];
|
|
3784
|
-
case 9:
|
|
3785
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3786
|
-
return [3, 13];
|
|
3787
|
-
case 10:
|
|
3788
|
-
_g = [{}];
|
|
3789
|
-
return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
3790
|
-
case 11:
|
|
3791
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3792
|
-
return [3, 13];
|
|
2923
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
2924
|
+
case 3: throw _d.sent();
|
|
2925
|
+
case 4: return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
2926
|
+
case 5: throw _d.sent();
|
|
2927
|
+
case 6: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2928
|
+
case 7: throw _d.sent();
|
|
2929
|
+
case 8: return [4, deserializeAws_queryInvalidSecurityExceptionResponse(parsedOutput, context)];
|
|
2930
|
+
case 9: throw _d.sent();
|
|
2931
|
+
case 10: return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
2932
|
+
case 11: throw _d.sent();
|
|
3793
2933
|
case 12:
|
|
3794
2934
|
parsedBody = parsedOutput.body;
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
response.
|
|
3801
|
-
delete response.Message;
|
|
3802
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2935
|
+
response = new __BaseException({
|
|
2936
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2937
|
+
$fault: "client",
|
|
2938
|
+
$metadata: deserializeMetadata(output),
|
|
2939
|
+
});
|
|
2940
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
3803
2941
|
}
|
|
3804
2942
|
});
|
|
3805
2943
|
}); };
|
|
@@ -3822,16 +2960,16 @@ export var deserializeAws_queryUntagResourceCommand = function (output, context)
|
|
|
3822
2960
|
});
|
|
3823
2961
|
}); };
|
|
3824
2962
|
var deserializeAws_queryUntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3825
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3826
|
-
var
|
|
3827
|
-
return __generator(this, function (
|
|
3828
|
-
switch (
|
|
2963
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2964
|
+
var _c;
|
|
2965
|
+
return __generator(this, function (_d) {
|
|
2966
|
+
switch (_d.label) {
|
|
3829
2967
|
case 0:
|
|
3830
2968
|
_a = [__assign({}, output)];
|
|
3831
|
-
|
|
2969
|
+
_c = {};
|
|
3832
2970
|
return [4, parseBody(output.body, context)];
|
|
3833
2971
|
case 1:
|
|
3834
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2972
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3835
2973
|
errorCode = "UnknownError";
|
|
3836
2974
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3837
2975
|
_b = errorCode;
|
|
@@ -3852,58 +2990,28 @@ var deserializeAws_queryUntagResourceCommandError = function (output, context) {
|
|
|
3852
2990
|
case "com.amazonaws.sns#TagPolicyException": return [3, 14];
|
|
3853
2991
|
}
|
|
3854
2992
|
return [3, 16];
|
|
3855
|
-
case 2:
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
case
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
case 4
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
case
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
case
|
|
3868
|
-
|
|
3869
|
-
return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
3870
|
-
case 7:
|
|
3871
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3872
|
-
return [3, 17];
|
|
3873
|
-
case 8:
|
|
3874
|
-
_f = [{}];
|
|
3875
|
-
return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3876
|
-
case 9:
|
|
3877
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3878
|
-
return [3, 17];
|
|
3879
|
-
case 10:
|
|
3880
|
-
_g = [{}];
|
|
3881
|
-
return [4, deserializeAws_queryStaleTagExceptionResponse(parsedOutput, context)];
|
|
3882
|
-
case 11:
|
|
3883
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3884
|
-
return [3, 17];
|
|
3885
|
-
case 12:
|
|
3886
|
-
_h = [{}];
|
|
3887
|
-
return [4, deserializeAws_queryTagLimitExceededExceptionResponse(parsedOutput, context)];
|
|
3888
|
-
case 13:
|
|
3889
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3890
|
-
return [3, 17];
|
|
3891
|
-
case 14:
|
|
3892
|
-
_j = [{}];
|
|
3893
|
-
return [4, deserializeAws_queryTagPolicyExceptionResponse(parsedOutput, context)];
|
|
3894
|
-
case 15:
|
|
3895
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3896
|
-
return [3, 17];
|
|
2993
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
2994
|
+
case 3: throw _d.sent();
|
|
2995
|
+
case 4: return [4, deserializeAws_queryConcurrentAccessExceptionResponse(parsedOutput, context)];
|
|
2996
|
+
case 5: throw _d.sent();
|
|
2997
|
+
case 6: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2998
|
+
case 7: throw _d.sent();
|
|
2999
|
+
case 8: return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3000
|
+
case 9: throw _d.sent();
|
|
3001
|
+
case 10: return [4, deserializeAws_queryStaleTagExceptionResponse(parsedOutput, context)];
|
|
3002
|
+
case 11: throw _d.sent();
|
|
3003
|
+
case 12: return [4, deserializeAws_queryTagLimitExceededExceptionResponse(parsedOutput, context)];
|
|
3004
|
+
case 13: throw _d.sent();
|
|
3005
|
+
case 14: return [4, deserializeAws_queryTagPolicyExceptionResponse(parsedOutput, context)];
|
|
3006
|
+
case 15: throw _d.sent();
|
|
3897
3007
|
case 16:
|
|
3898
3008
|
parsedBody = parsedOutput.body;
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
response.
|
|
3905
|
-
delete response.Message;
|
|
3906
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3009
|
+
response = new __BaseException({
|
|
3010
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3011
|
+
$fault: "client",
|
|
3012
|
+
$metadata: deserializeMetadata(output),
|
|
3013
|
+
});
|
|
3014
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
3907
3015
|
}
|
|
3908
3016
|
});
|
|
3909
3017
|
}); };
|
|
@@ -3926,16 +3034,16 @@ export var deserializeAws_queryVerifySMSSandboxPhoneNumberCommand = function (ou
|
|
|
3926
3034
|
});
|
|
3927
3035
|
}); };
|
|
3928
3036
|
var deserializeAws_queryVerifySMSSandboxPhoneNumberCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3929
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3930
|
-
var
|
|
3931
|
-
return __generator(this, function (
|
|
3932
|
-
switch (
|
|
3037
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3038
|
+
var _c;
|
|
3039
|
+
return __generator(this, function (_d) {
|
|
3040
|
+
switch (_d.label) {
|
|
3933
3041
|
case 0:
|
|
3934
3042
|
_a = [__assign({}, output)];
|
|
3935
|
-
|
|
3043
|
+
_c = {};
|
|
3936
3044
|
return [4, parseBody(output.body, context)];
|
|
3937
3045
|
case 1:
|
|
3938
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3046
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3939
3047
|
errorCode = "UnknownError";
|
|
3940
3048
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3941
3049
|
_b = errorCode;
|
|
@@ -3954,341 +3062,315 @@ var deserializeAws_queryVerifySMSSandboxPhoneNumberCommandError = function (outp
|
|
|
3954
3062
|
case "com.amazonaws.sns#VerificationException": return [3, 12];
|
|
3955
3063
|
}
|
|
3956
3064
|
return [3, 14];
|
|
3957
|
-
case 2:
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
case
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
case 4
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
case
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
case 6:
|
|
3970
|
-
_e = [{}];
|
|
3971
|
-
return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
3972
|
-
case 7:
|
|
3973
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3974
|
-
return [3, 15];
|
|
3975
|
-
case 8:
|
|
3976
|
-
_f = [{}];
|
|
3977
|
-
return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3978
|
-
case 9:
|
|
3979
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3980
|
-
return [3, 15];
|
|
3981
|
-
case 10:
|
|
3982
|
-
_g = [{}];
|
|
3983
|
-
return [4, deserializeAws_queryThrottledExceptionResponse(parsedOutput, context)];
|
|
3984
|
-
case 11:
|
|
3985
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3986
|
-
return [3, 15];
|
|
3987
|
-
case 12:
|
|
3988
|
-
_h = [{}];
|
|
3989
|
-
return [4, deserializeAws_queryVerificationExceptionResponse(parsedOutput, context)];
|
|
3990
|
-
case 13:
|
|
3991
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3992
|
-
return [3, 15];
|
|
3065
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
3066
|
+
case 3: throw _d.sent();
|
|
3067
|
+
case 4: return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
3068
|
+
case 5: throw _d.sent();
|
|
3069
|
+
case 6: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
3070
|
+
case 7: throw _d.sent();
|
|
3071
|
+
case 8: return [4, deserializeAws_queryResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3072
|
+
case 9: throw _d.sent();
|
|
3073
|
+
case 10: return [4, deserializeAws_queryThrottledExceptionResponse(parsedOutput, context)];
|
|
3074
|
+
case 11: throw _d.sent();
|
|
3075
|
+
case 12: return [4, deserializeAws_queryVerificationExceptionResponse(parsedOutput, context)];
|
|
3076
|
+
case 13: throw _d.sent();
|
|
3993
3077
|
case 14:
|
|
3994
3078
|
parsedBody = parsedOutput.body;
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
response.
|
|
4001
|
-
delete response.Message;
|
|
4002
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3079
|
+
response = new __BaseException({
|
|
3080
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3081
|
+
$fault: "client",
|
|
3082
|
+
$metadata: deserializeMetadata(output),
|
|
3083
|
+
});
|
|
3084
|
+
throw __decorateServiceException(response, parsedBody.Error);
|
|
4003
3085
|
}
|
|
4004
3086
|
});
|
|
4005
3087
|
}); };
|
|
4006
3088
|
var deserializeAws_queryAuthorizationErrorExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4007
|
-
var body, deserialized,
|
|
3089
|
+
var body, deserialized, exception;
|
|
4008
3090
|
return __generator(this, function (_a) {
|
|
4009
3091
|
body = parsedOutput.body;
|
|
4010
3092
|
deserialized = deserializeAws_queryAuthorizationErrorException(body.Error, context);
|
|
4011
|
-
|
|
4012
|
-
return [2,
|
|
3093
|
+
exception = new AuthorizationErrorException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3094
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4013
3095
|
});
|
|
4014
3096
|
}); };
|
|
4015
3097
|
var deserializeAws_queryBatchEntryIdsNotDistinctExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4016
|
-
var body, deserialized,
|
|
3098
|
+
var body, deserialized, exception;
|
|
4017
3099
|
return __generator(this, function (_a) {
|
|
4018
3100
|
body = parsedOutput.body;
|
|
4019
3101
|
deserialized = deserializeAws_queryBatchEntryIdsNotDistinctException(body.Error, context);
|
|
4020
|
-
|
|
4021
|
-
return [2,
|
|
3102
|
+
exception = new BatchEntryIdsNotDistinctException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3103
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4022
3104
|
});
|
|
4023
3105
|
}); };
|
|
4024
3106
|
var deserializeAws_queryBatchRequestTooLongExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4025
|
-
var body, deserialized,
|
|
3107
|
+
var body, deserialized, exception;
|
|
4026
3108
|
return __generator(this, function (_a) {
|
|
4027
3109
|
body = parsedOutput.body;
|
|
4028
3110
|
deserialized = deserializeAws_queryBatchRequestTooLongException(body.Error, context);
|
|
4029
|
-
|
|
4030
|
-
return [2,
|
|
3111
|
+
exception = new BatchRequestTooLongException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3112
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4031
3113
|
});
|
|
4032
3114
|
}); };
|
|
4033
3115
|
var deserializeAws_queryConcurrentAccessExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4034
|
-
var body, deserialized,
|
|
3116
|
+
var body, deserialized, exception;
|
|
4035
3117
|
return __generator(this, function (_a) {
|
|
4036
3118
|
body = parsedOutput.body;
|
|
4037
3119
|
deserialized = deserializeAws_queryConcurrentAccessException(body.Error, context);
|
|
4038
|
-
|
|
4039
|
-
return [2,
|
|
3120
|
+
exception = new ConcurrentAccessException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3121
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4040
3122
|
});
|
|
4041
3123
|
}); };
|
|
4042
3124
|
var deserializeAws_queryEmptyBatchRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4043
|
-
var body, deserialized,
|
|
3125
|
+
var body, deserialized, exception;
|
|
4044
3126
|
return __generator(this, function (_a) {
|
|
4045
3127
|
body = parsedOutput.body;
|
|
4046
3128
|
deserialized = deserializeAws_queryEmptyBatchRequestException(body.Error, context);
|
|
4047
|
-
|
|
4048
|
-
return [2,
|
|
3129
|
+
exception = new EmptyBatchRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3130
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4049
3131
|
});
|
|
4050
3132
|
}); };
|
|
4051
3133
|
var deserializeAws_queryEndpointDisabledExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4052
|
-
var body, deserialized,
|
|
3134
|
+
var body, deserialized, exception;
|
|
4053
3135
|
return __generator(this, function (_a) {
|
|
4054
3136
|
body = parsedOutput.body;
|
|
4055
3137
|
deserialized = deserializeAws_queryEndpointDisabledException(body.Error, context);
|
|
4056
|
-
|
|
4057
|
-
return [2,
|
|
3138
|
+
exception = new EndpointDisabledException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3139
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4058
3140
|
});
|
|
4059
3141
|
}); };
|
|
4060
3142
|
var deserializeAws_queryFilterPolicyLimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4061
|
-
var body, deserialized,
|
|
3143
|
+
var body, deserialized, exception;
|
|
4062
3144
|
return __generator(this, function (_a) {
|
|
4063
3145
|
body = parsedOutput.body;
|
|
4064
3146
|
deserialized = deserializeAws_queryFilterPolicyLimitExceededException(body.Error, context);
|
|
4065
|
-
|
|
4066
|
-
return [2,
|
|
3147
|
+
exception = new FilterPolicyLimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3148
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4067
3149
|
});
|
|
4068
3150
|
}); };
|
|
4069
3151
|
var deserializeAws_queryInternalErrorExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4070
|
-
var body, deserialized,
|
|
3152
|
+
var body, deserialized, exception;
|
|
4071
3153
|
return __generator(this, function (_a) {
|
|
4072
3154
|
body = parsedOutput.body;
|
|
4073
3155
|
deserialized = deserializeAws_queryInternalErrorException(body.Error, context);
|
|
4074
|
-
|
|
4075
|
-
return [2,
|
|
3156
|
+
exception = new InternalErrorException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3157
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4076
3158
|
});
|
|
4077
3159
|
}); };
|
|
4078
3160
|
var deserializeAws_queryInvalidBatchEntryIdExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4079
|
-
var body, deserialized,
|
|
3161
|
+
var body, deserialized, exception;
|
|
4080
3162
|
return __generator(this, function (_a) {
|
|
4081
3163
|
body = parsedOutput.body;
|
|
4082
3164
|
deserialized = deserializeAws_queryInvalidBatchEntryIdException(body.Error, context);
|
|
4083
|
-
|
|
4084
|
-
return [2,
|
|
3165
|
+
exception = new InvalidBatchEntryIdException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3166
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4085
3167
|
});
|
|
4086
3168
|
}); };
|
|
4087
3169
|
var deserializeAws_queryInvalidParameterExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4088
|
-
var body, deserialized,
|
|
3170
|
+
var body, deserialized, exception;
|
|
4089
3171
|
return __generator(this, function (_a) {
|
|
4090
3172
|
body = parsedOutput.body;
|
|
4091
3173
|
deserialized = deserializeAws_queryInvalidParameterException(body.Error, context);
|
|
4092
|
-
|
|
4093
|
-
return [2,
|
|
3174
|
+
exception = new InvalidParameterException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3175
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4094
3176
|
});
|
|
4095
3177
|
}); };
|
|
4096
3178
|
var deserializeAws_queryInvalidParameterValueExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4097
|
-
var body, deserialized,
|
|
3179
|
+
var body, deserialized, exception;
|
|
4098
3180
|
return __generator(this, function (_a) {
|
|
4099
3181
|
body = parsedOutput.body;
|
|
4100
3182
|
deserialized = deserializeAws_queryInvalidParameterValueException(body.Error, context);
|
|
4101
|
-
|
|
4102
|
-
return [2,
|
|
3183
|
+
exception = new InvalidParameterValueException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3184
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4103
3185
|
});
|
|
4104
3186
|
}); };
|
|
4105
3187
|
var deserializeAws_queryInvalidSecurityExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4106
|
-
var body, deserialized,
|
|
3188
|
+
var body, deserialized, exception;
|
|
4107
3189
|
return __generator(this, function (_a) {
|
|
4108
3190
|
body = parsedOutput.body;
|
|
4109
3191
|
deserialized = deserializeAws_queryInvalidSecurityException(body.Error, context);
|
|
4110
|
-
|
|
4111
|
-
return [2,
|
|
3192
|
+
exception = new InvalidSecurityException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3193
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4112
3194
|
});
|
|
4113
3195
|
}); };
|
|
4114
3196
|
var deserializeAws_queryKMSAccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4115
|
-
var body, deserialized,
|
|
3197
|
+
var body, deserialized, exception;
|
|
4116
3198
|
return __generator(this, function (_a) {
|
|
4117
3199
|
body = parsedOutput.body;
|
|
4118
3200
|
deserialized = deserializeAws_queryKMSAccessDeniedException(body.Error, context);
|
|
4119
|
-
|
|
4120
|
-
return [2,
|
|
3201
|
+
exception = new KMSAccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3202
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4121
3203
|
});
|
|
4122
3204
|
}); };
|
|
4123
3205
|
var deserializeAws_queryKMSDisabledExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4124
|
-
var body, deserialized,
|
|
3206
|
+
var body, deserialized, exception;
|
|
4125
3207
|
return __generator(this, function (_a) {
|
|
4126
3208
|
body = parsedOutput.body;
|
|
4127
3209
|
deserialized = deserializeAws_queryKMSDisabledException(body.Error, context);
|
|
4128
|
-
|
|
4129
|
-
return [2,
|
|
3210
|
+
exception = new KMSDisabledException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3211
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4130
3212
|
});
|
|
4131
3213
|
}); };
|
|
4132
3214
|
var deserializeAws_queryKMSInvalidStateExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4133
|
-
var body, deserialized,
|
|
3215
|
+
var body, deserialized, exception;
|
|
4134
3216
|
return __generator(this, function (_a) {
|
|
4135
3217
|
body = parsedOutput.body;
|
|
4136
3218
|
deserialized = deserializeAws_queryKMSInvalidStateException(body.Error, context);
|
|
4137
|
-
|
|
4138
|
-
return [2,
|
|
3219
|
+
exception = new KMSInvalidStateException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3220
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4139
3221
|
});
|
|
4140
3222
|
}); };
|
|
4141
3223
|
var deserializeAws_queryKMSNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4142
|
-
var body, deserialized,
|
|
3224
|
+
var body, deserialized, exception;
|
|
4143
3225
|
return __generator(this, function (_a) {
|
|
4144
3226
|
body = parsedOutput.body;
|
|
4145
3227
|
deserialized = deserializeAws_queryKMSNotFoundException(body.Error, context);
|
|
4146
|
-
|
|
4147
|
-
return [2,
|
|
3228
|
+
exception = new KMSNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3229
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4148
3230
|
});
|
|
4149
3231
|
}); };
|
|
4150
3232
|
var deserializeAws_queryKMSOptInRequiredResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4151
|
-
var body, deserialized,
|
|
3233
|
+
var body, deserialized, exception;
|
|
4152
3234
|
return __generator(this, function (_a) {
|
|
4153
3235
|
body = parsedOutput.body;
|
|
4154
3236
|
deserialized = deserializeAws_queryKMSOptInRequired(body.Error, context);
|
|
4155
|
-
|
|
4156
|
-
return [2,
|
|
3237
|
+
exception = new KMSOptInRequired(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3238
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4157
3239
|
});
|
|
4158
3240
|
}); };
|
|
4159
3241
|
var deserializeAws_queryKMSThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4160
|
-
var body, deserialized,
|
|
3242
|
+
var body, deserialized, exception;
|
|
4161
3243
|
return __generator(this, function (_a) {
|
|
4162
3244
|
body = parsedOutput.body;
|
|
4163
3245
|
deserialized = deserializeAws_queryKMSThrottlingException(body.Error, context);
|
|
4164
|
-
|
|
4165
|
-
return [2,
|
|
3246
|
+
exception = new KMSThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3247
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4166
3248
|
});
|
|
4167
3249
|
}); };
|
|
4168
3250
|
var deserializeAws_queryNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4169
|
-
var body, deserialized,
|
|
3251
|
+
var body, deserialized, exception;
|
|
4170
3252
|
return __generator(this, function (_a) {
|
|
4171
3253
|
body = parsedOutput.body;
|
|
4172
3254
|
deserialized = deserializeAws_queryNotFoundException(body.Error, context);
|
|
4173
|
-
|
|
4174
|
-
return [2,
|
|
3255
|
+
exception = new NotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3256
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4175
3257
|
});
|
|
4176
3258
|
}); };
|
|
4177
3259
|
var deserializeAws_queryOptedOutExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4178
|
-
var body, deserialized,
|
|
3260
|
+
var body, deserialized, exception;
|
|
4179
3261
|
return __generator(this, function (_a) {
|
|
4180
3262
|
body = parsedOutput.body;
|
|
4181
3263
|
deserialized = deserializeAws_queryOptedOutException(body.Error, context);
|
|
4182
|
-
|
|
4183
|
-
return [2,
|
|
3264
|
+
exception = new OptedOutException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3265
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4184
3266
|
});
|
|
4185
3267
|
}); };
|
|
4186
3268
|
var deserializeAws_queryPlatformApplicationDisabledExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4187
|
-
var body, deserialized,
|
|
3269
|
+
var body, deserialized, exception;
|
|
4188
3270
|
return __generator(this, function (_a) {
|
|
4189
3271
|
body = parsedOutput.body;
|
|
4190
3272
|
deserialized = deserializeAws_queryPlatformApplicationDisabledException(body.Error, context);
|
|
4191
|
-
|
|
4192
|
-
return [2,
|
|
3273
|
+
exception = new PlatformApplicationDisabledException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3274
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4193
3275
|
});
|
|
4194
3276
|
}); };
|
|
4195
3277
|
var deserializeAws_queryResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4196
|
-
var body, deserialized,
|
|
3278
|
+
var body, deserialized, exception;
|
|
4197
3279
|
return __generator(this, function (_a) {
|
|
4198
3280
|
body = parsedOutput.body;
|
|
4199
3281
|
deserialized = deserializeAws_queryResourceNotFoundException(body.Error, context);
|
|
4200
|
-
|
|
4201
|
-
return [2,
|
|
3282
|
+
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3283
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4202
3284
|
});
|
|
4203
3285
|
}); };
|
|
4204
3286
|
var deserializeAws_queryStaleTagExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4205
|
-
var body, deserialized,
|
|
3287
|
+
var body, deserialized, exception;
|
|
4206
3288
|
return __generator(this, function (_a) {
|
|
4207
3289
|
body = parsedOutput.body;
|
|
4208
3290
|
deserialized = deserializeAws_queryStaleTagException(body.Error, context);
|
|
4209
|
-
|
|
4210
|
-
return [2,
|
|
3291
|
+
exception = new StaleTagException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3292
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4211
3293
|
});
|
|
4212
3294
|
}); };
|
|
4213
3295
|
var deserializeAws_querySubscriptionLimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4214
|
-
var body, deserialized,
|
|
3296
|
+
var body, deserialized, exception;
|
|
4215
3297
|
return __generator(this, function (_a) {
|
|
4216
3298
|
body = parsedOutput.body;
|
|
4217
3299
|
deserialized = deserializeAws_querySubscriptionLimitExceededException(body.Error, context);
|
|
4218
|
-
|
|
4219
|
-
return [2,
|
|
3300
|
+
exception = new SubscriptionLimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3301
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4220
3302
|
});
|
|
4221
3303
|
}); };
|
|
4222
3304
|
var deserializeAws_queryTagLimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4223
|
-
var body, deserialized,
|
|
3305
|
+
var body, deserialized, exception;
|
|
4224
3306
|
return __generator(this, function (_a) {
|
|
4225
3307
|
body = parsedOutput.body;
|
|
4226
3308
|
deserialized = deserializeAws_queryTagLimitExceededException(body.Error, context);
|
|
4227
|
-
|
|
4228
|
-
return [2,
|
|
3309
|
+
exception = new TagLimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3310
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4229
3311
|
});
|
|
4230
3312
|
}); };
|
|
4231
3313
|
var deserializeAws_queryTagPolicyExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4232
|
-
var body, deserialized,
|
|
3314
|
+
var body, deserialized, exception;
|
|
4233
3315
|
return __generator(this, function (_a) {
|
|
4234
3316
|
body = parsedOutput.body;
|
|
4235
3317
|
deserialized = deserializeAws_queryTagPolicyException(body.Error, context);
|
|
4236
|
-
|
|
4237
|
-
return [2,
|
|
3318
|
+
exception = new TagPolicyException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3319
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4238
3320
|
});
|
|
4239
3321
|
}); };
|
|
4240
3322
|
var deserializeAws_queryThrottledExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4241
|
-
var body, deserialized,
|
|
3323
|
+
var body, deserialized, exception;
|
|
4242
3324
|
return __generator(this, function (_a) {
|
|
4243
3325
|
body = parsedOutput.body;
|
|
4244
3326
|
deserialized = deserializeAws_queryThrottledException(body.Error, context);
|
|
4245
|
-
|
|
4246
|
-
return [2,
|
|
3327
|
+
exception = new ThrottledException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3328
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4247
3329
|
});
|
|
4248
3330
|
}); };
|
|
4249
3331
|
var deserializeAws_queryTooManyEntriesInBatchRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4250
|
-
var body, deserialized,
|
|
3332
|
+
var body, deserialized, exception;
|
|
4251
3333
|
return __generator(this, function (_a) {
|
|
4252
3334
|
body = parsedOutput.body;
|
|
4253
3335
|
deserialized = deserializeAws_queryTooManyEntriesInBatchRequestException(body.Error, context);
|
|
4254
|
-
|
|
4255
|
-
return [2,
|
|
3336
|
+
exception = new TooManyEntriesInBatchRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3337
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4256
3338
|
});
|
|
4257
3339
|
}); };
|
|
4258
3340
|
var deserializeAws_queryTopicLimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4259
|
-
var body, deserialized,
|
|
3341
|
+
var body, deserialized, exception;
|
|
4260
3342
|
return __generator(this, function (_a) {
|
|
4261
3343
|
body = parsedOutput.body;
|
|
4262
3344
|
deserialized = deserializeAws_queryTopicLimitExceededException(body.Error, context);
|
|
4263
|
-
|
|
4264
|
-
return [2,
|
|
3345
|
+
exception = new TopicLimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3346
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4265
3347
|
});
|
|
4266
3348
|
}); };
|
|
4267
3349
|
var deserializeAws_queryUserErrorExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4268
|
-
var body, deserialized,
|
|
3350
|
+
var body, deserialized, exception;
|
|
4269
3351
|
return __generator(this, function (_a) {
|
|
4270
3352
|
body = parsedOutput.body;
|
|
4271
3353
|
deserialized = deserializeAws_queryUserErrorException(body.Error, context);
|
|
4272
|
-
|
|
4273
|
-
return [2,
|
|
3354
|
+
exception = new UserErrorException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3355
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4274
3356
|
});
|
|
4275
3357
|
}); };
|
|
4276
3358
|
var deserializeAws_queryValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4277
|
-
var body, deserialized,
|
|
3359
|
+
var body, deserialized, exception;
|
|
4278
3360
|
return __generator(this, function (_a) {
|
|
4279
3361
|
body = parsedOutput.body;
|
|
4280
3362
|
deserialized = deserializeAws_queryValidationException(body.Error, context);
|
|
4281
|
-
|
|
4282
|
-
return [2,
|
|
3363
|
+
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3364
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4283
3365
|
});
|
|
4284
3366
|
}); };
|
|
4285
3367
|
var deserializeAws_queryVerificationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4286
|
-
var body, deserialized,
|
|
3368
|
+
var body, deserialized, exception;
|
|
4287
3369
|
return __generator(this, function (_a) {
|
|
4288
3370
|
body = parsedOutput.body;
|
|
4289
3371
|
deserialized = deserializeAws_queryVerificationException(body.Error, context);
|
|
4290
|
-
|
|
4291
|
-
return [2,
|
|
3372
|
+
exception = new VerificationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3373
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4292
3374
|
});
|
|
4293
3375
|
}); };
|
|
4294
3376
|
var serializeAws_queryActionsList = function (input, context) {
|