@aws-sdk/client-sns 3.179.0 → 3.181.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/dist-cjs/protocols/Aws_query.js +270 -262
- package/dist-es/protocols/Aws_query.js +311 -296
- package/package.json +6 -6
|
@@ -451,19 +451,19 @@ var deserializeAws_queryAddPermissionCommandError = function (output, context) {
|
|
|
451
451
|
case 0:
|
|
452
452
|
_a = [__assign({}, output)];
|
|
453
453
|
_c = {};
|
|
454
|
-
return [4,
|
|
454
|
+
return [4, parseErrorBody(output.body, context)];
|
|
455
455
|
case 1:
|
|
456
456
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
457
457
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
458
458
|
_b = errorCode;
|
|
459
459
|
switch (_b) {
|
|
460
|
-
case "
|
|
460
|
+
case "AuthorizationError": return [3, 2];
|
|
461
461
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
462
|
-
case "
|
|
462
|
+
case "InternalError": return [3, 4];
|
|
463
463
|
case "com.amazonaws.sns#InternalErrorException": return [3, 4];
|
|
464
|
-
case "
|
|
464
|
+
case "InvalidParameter": return [3, 6];
|
|
465
465
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
466
|
-
case "
|
|
466
|
+
case "NotFound": return [3, 8];
|
|
467
467
|
case "com.amazonaws.sns#NotFoundException": return [3, 8];
|
|
468
468
|
}
|
|
469
469
|
return [3, 10];
|
|
@@ -514,19 +514,19 @@ var deserializeAws_queryCheckIfPhoneNumberIsOptedOutCommandError = function (out
|
|
|
514
514
|
case 0:
|
|
515
515
|
_a = [__assign({}, output)];
|
|
516
516
|
_c = {};
|
|
517
|
-
return [4,
|
|
517
|
+
return [4, parseErrorBody(output.body, context)];
|
|
518
518
|
case 1:
|
|
519
519
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
520
520
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
521
521
|
_b = errorCode;
|
|
522
522
|
switch (_b) {
|
|
523
|
-
case "
|
|
523
|
+
case "AuthorizationError": return [3, 2];
|
|
524
524
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
525
|
-
case "
|
|
525
|
+
case "InternalError": return [3, 4];
|
|
526
526
|
case "com.amazonaws.sns#InternalErrorException": return [3, 4];
|
|
527
|
-
case "
|
|
527
|
+
case "InvalidParameter": return [3, 6];
|
|
528
528
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
529
|
-
case "
|
|
529
|
+
case "Throttled": return [3, 8];
|
|
530
530
|
case "com.amazonaws.sns#ThrottledException": return [3, 8];
|
|
531
531
|
}
|
|
532
532
|
return [3, 10];
|
|
@@ -577,23 +577,23 @@ var deserializeAws_queryConfirmSubscriptionCommandError = function (output, cont
|
|
|
577
577
|
case 0:
|
|
578
578
|
_a = [__assign({}, output)];
|
|
579
579
|
_c = {};
|
|
580
|
-
return [4,
|
|
580
|
+
return [4, parseErrorBody(output.body, context)];
|
|
581
581
|
case 1:
|
|
582
582
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
583
583
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
584
584
|
_b = errorCode;
|
|
585
585
|
switch (_b) {
|
|
586
|
-
case "
|
|
586
|
+
case "AuthorizationError": return [3, 2];
|
|
587
587
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
588
|
-
case "
|
|
588
|
+
case "FilterPolicyLimitExceeded": return [3, 4];
|
|
589
589
|
case "com.amazonaws.sns#FilterPolicyLimitExceededException": return [3, 4];
|
|
590
|
-
case "
|
|
590
|
+
case "InternalError": return [3, 6];
|
|
591
591
|
case "com.amazonaws.sns#InternalErrorException": return [3, 6];
|
|
592
|
-
case "
|
|
592
|
+
case "InvalidParameter": return [3, 8];
|
|
593
593
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 8];
|
|
594
|
-
case "
|
|
594
|
+
case "NotFound": return [3, 10];
|
|
595
595
|
case "com.amazonaws.sns#NotFoundException": return [3, 10];
|
|
596
|
-
case "
|
|
596
|
+
case "SubscriptionLimitExceeded": return [3, 12];
|
|
597
597
|
case "com.amazonaws.sns#SubscriptionLimitExceededException": return [3, 12];
|
|
598
598
|
}
|
|
599
599
|
return [3, 14];
|
|
@@ -648,17 +648,17 @@ var deserializeAws_queryCreatePlatformApplicationCommandError = function (output
|
|
|
648
648
|
case 0:
|
|
649
649
|
_a = [__assign({}, output)];
|
|
650
650
|
_c = {};
|
|
651
|
-
return [4,
|
|
651
|
+
return [4, parseErrorBody(output.body, context)];
|
|
652
652
|
case 1:
|
|
653
653
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
654
654
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
655
655
|
_b = errorCode;
|
|
656
656
|
switch (_b) {
|
|
657
|
-
case "
|
|
657
|
+
case "AuthorizationError": return [3, 2];
|
|
658
658
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
659
|
-
case "
|
|
659
|
+
case "InternalError": return [3, 4];
|
|
660
660
|
case "com.amazonaws.sns#InternalErrorException": return [3, 4];
|
|
661
|
-
case "
|
|
661
|
+
case "InvalidParameter": return [3, 6];
|
|
662
662
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
663
663
|
}
|
|
664
664
|
return [3, 8];
|
|
@@ -707,19 +707,19 @@ var deserializeAws_queryCreatePlatformEndpointCommandError = function (output, c
|
|
|
707
707
|
case 0:
|
|
708
708
|
_a = [__assign({}, output)];
|
|
709
709
|
_c = {};
|
|
710
|
-
return [4,
|
|
710
|
+
return [4, parseErrorBody(output.body, context)];
|
|
711
711
|
case 1:
|
|
712
712
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
713
713
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
714
714
|
_b = errorCode;
|
|
715
715
|
switch (_b) {
|
|
716
|
-
case "
|
|
716
|
+
case "AuthorizationError": return [3, 2];
|
|
717
717
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
718
|
-
case "
|
|
718
|
+
case "InternalError": return [3, 4];
|
|
719
719
|
case "com.amazonaws.sns#InternalErrorException": return [3, 4];
|
|
720
|
-
case "
|
|
720
|
+
case "InvalidParameter": return [3, 6];
|
|
721
721
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
722
|
-
case "
|
|
722
|
+
case "NotFound": return [3, 8];
|
|
723
723
|
case "com.amazonaws.sns#NotFoundException": return [3, 8];
|
|
724
724
|
}
|
|
725
725
|
return [3, 10];
|
|
@@ -770,23 +770,23 @@ var deserializeAws_queryCreateSMSSandboxPhoneNumberCommandError = function (outp
|
|
|
770
770
|
case 0:
|
|
771
771
|
_a = [__assign({}, output)];
|
|
772
772
|
_c = {};
|
|
773
|
-
return [4,
|
|
773
|
+
return [4, parseErrorBody(output.body, context)];
|
|
774
774
|
case 1:
|
|
775
775
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
776
776
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
777
777
|
_b = errorCode;
|
|
778
778
|
switch (_b) {
|
|
779
|
-
case "
|
|
779
|
+
case "AuthorizationError": return [3, 2];
|
|
780
780
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
781
|
-
case "
|
|
781
|
+
case "InternalError": return [3, 4];
|
|
782
782
|
case "com.amazonaws.sns#InternalErrorException": return [3, 4];
|
|
783
|
-
case "
|
|
783
|
+
case "InvalidParameter": return [3, 6];
|
|
784
784
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
785
|
-
case "
|
|
785
|
+
case "OptedOut": return [3, 8];
|
|
786
786
|
case "com.amazonaws.sns#OptedOutException": return [3, 8];
|
|
787
|
-
case "
|
|
787
|
+
case "Throttled": return [3, 10];
|
|
788
788
|
case "com.amazonaws.sns#ThrottledException": return [3, 10];
|
|
789
|
-
case "
|
|
789
|
+
case "UserError": return [3, 12];
|
|
790
790
|
case "com.amazonaws.sns#UserErrorException": return [3, 12];
|
|
791
791
|
}
|
|
792
792
|
return [3, 14];
|
|
@@ -841,29 +841,29 @@ var deserializeAws_queryCreateTopicCommandError = function (output, context) { r
|
|
|
841
841
|
case 0:
|
|
842
842
|
_a = [__assign({}, output)];
|
|
843
843
|
_c = {};
|
|
844
|
-
return [4,
|
|
844
|
+
return [4, parseErrorBody(output.body, context)];
|
|
845
845
|
case 1:
|
|
846
846
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
847
847
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
848
848
|
_b = errorCode;
|
|
849
849
|
switch (_b) {
|
|
850
|
-
case "
|
|
850
|
+
case "AuthorizationError": return [3, 2];
|
|
851
851
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
852
|
-
case "
|
|
852
|
+
case "ConcurrentAccess": return [3, 4];
|
|
853
853
|
case "com.amazonaws.sns#ConcurrentAccessException": return [3, 4];
|
|
854
|
-
case "
|
|
854
|
+
case "InternalError": return [3, 6];
|
|
855
855
|
case "com.amazonaws.sns#InternalErrorException": return [3, 6];
|
|
856
|
-
case "
|
|
856
|
+
case "InvalidParameter": return [3, 8];
|
|
857
857
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 8];
|
|
858
|
-
case "
|
|
858
|
+
case "InvalidSecurity": return [3, 10];
|
|
859
859
|
case "com.amazonaws.sns#InvalidSecurityException": return [3, 10];
|
|
860
|
-
case "
|
|
860
|
+
case "StaleTag": return [3, 12];
|
|
861
861
|
case "com.amazonaws.sns#StaleTagException": return [3, 12];
|
|
862
|
-
case "
|
|
862
|
+
case "TagLimitExceeded": return [3, 14];
|
|
863
863
|
case "com.amazonaws.sns#TagLimitExceededException": return [3, 14];
|
|
864
|
-
case "
|
|
864
|
+
case "TagPolicy": return [3, 16];
|
|
865
865
|
case "com.amazonaws.sns#TagPolicyException": return [3, 16];
|
|
866
|
-
case "
|
|
866
|
+
case "TopicLimitExceeded": return [3, 18];
|
|
867
867
|
case "com.amazonaws.sns#TopicLimitExceededException": return [3, 18];
|
|
868
868
|
}
|
|
869
869
|
return [3, 20];
|
|
@@ -924,17 +924,17 @@ var deserializeAws_queryDeleteEndpointCommandError = function (output, context)
|
|
|
924
924
|
case 0:
|
|
925
925
|
_a = [__assign({}, output)];
|
|
926
926
|
_c = {};
|
|
927
|
-
return [4,
|
|
927
|
+
return [4, parseErrorBody(output.body, context)];
|
|
928
928
|
case 1:
|
|
929
929
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
930
930
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
931
931
|
_b = errorCode;
|
|
932
932
|
switch (_b) {
|
|
933
|
-
case "
|
|
933
|
+
case "AuthorizationError": return [3, 2];
|
|
934
934
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
935
|
-
case "
|
|
935
|
+
case "InternalError": return [3, 4];
|
|
936
936
|
case "com.amazonaws.sns#InternalErrorException": return [3, 4];
|
|
937
|
-
case "
|
|
937
|
+
case "InvalidParameter": return [3, 6];
|
|
938
938
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
939
939
|
}
|
|
940
940
|
return [3, 8];
|
|
@@ -983,17 +983,17 @@ var deserializeAws_queryDeletePlatformApplicationCommandError = function (output
|
|
|
983
983
|
case 0:
|
|
984
984
|
_a = [__assign({}, output)];
|
|
985
985
|
_c = {};
|
|
986
|
-
return [4,
|
|
986
|
+
return [4, parseErrorBody(output.body, context)];
|
|
987
987
|
case 1:
|
|
988
988
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
989
989
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
990
990
|
_b = errorCode;
|
|
991
991
|
switch (_b) {
|
|
992
|
-
case "
|
|
992
|
+
case "AuthorizationError": return [3, 2];
|
|
993
993
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
994
|
-
case "
|
|
994
|
+
case "InternalError": return [3, 4];
|
|
995
995
|
case "com.amazonaws.sns#InternalErrorException": return [3, 4];
|
|
996
|
-
case "
|
|
996
|
+
case "InvalidParameter": return [3, 6];
|
|
997
997
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
998
998
|
}
|
|
999
999
|
return [3, 8];
|
|
@@ -1042,23 +1042,23 @@ var deserializeAws_queryDeleteSMSSandboxPhoneNumberCommandError = function (outp
|
|
|
1042
1042
|
case 0:
|
|
1043
1043
|
_a = [__assign({}, output)];
|
|
1044
1044
|
_c = {};
|
|
1045
|
-
return [4,
|
|
1045
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1046
1046
|
case 1:
|
|
1047
1047
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1048
1048
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1049
1049
|
_b = errorCode;
|
|
1050
1050
|
switch (_b) {
|
|
1051
|
-
case "
|
|
1051
|
+
case "AuthorizationError": return [3, 2];
|
|
1052
1052
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
1053
|
-
case "
|
|
1053
|
+
case "InternalError": return [3, 4];
|
|
1054
1054
|
case "com.amazonaws.sns#InternalErrorException": return [3, 4];
|
|
1055
|
-
case "
|
|
1055
|
+
case "InvalidParameter": return [3, 6];
|
|
1056
1056
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
1057
|
-
case "
|
|
1057
|
+
case "ResourceNotFound": return [3, 8];
|
|
1058
1058
|
case "com.amazonaws.sns#ResourceNotFoundException": return [3, 8];
|
|
1059
|
-
case "
|
|
1059
|
+
case "Throttled": return [3, 10];
|
|
1060
1060
|
case "com.amazonaws.sns#ThrottledException": return [3, 10];
|
|
1061
|
-
case "
|
|
1061
|
+
case "UserError": return [3, 12];
|
|
1062
1062
|
case "com.amazonaws.sns#UserErrorException": return [3, 12];
|
|
1063
1063
|
}
|
|
1064
1064
|
return [3, 14];
|
|
@@ -1113,25 +1113,25 @@ var deserializeAws_queryDeleteTopicCommandError = function (output, context) { r
|
|
|
1113
1113
|
case 0:
|
|
1114
1114
|
_a = [__assign({}, output)];
|
|
1115
1115
|
_c = {};
|
|
1116
|
-
return [4,
|
|
1116
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1117
1117
|
case 1:
|
|
1118
1118
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1119
1119
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1120
1120
|
_b = errorCode;
|
|
1121
1121
|
switch (_b) {
|
|
1122
|
-
case "
|
|
1122
|
+
case "AuthorizationError": return [3, 2];
|
|
1123
1123
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
1124
|
-
case "
|
|
1124
|
+
case "ConcurrentAccess": return [3, 4];
|
|
1125
1125
|
case "com.amazonaws.sns#ConcurrentAccessException": return [3, 4];
|
|
1126
|
-
case "
|
|
1126
|
+
case "InternalError": return [3, 6];
|
|
1127
1127
|
case "com.amazonaws.sns#InternalErrorException": return [3, 6];
|
|
1128
|
-
case "
|
|
1128
|
+
case "InvalidParameter": return [3, 8];
|
|
1129
1129
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 8];
|
|
1130
|
-
case "
|
|
1130
|
+
case "NotFound": return [3, 10];
|
|
1131
1131
|
case "com.amazonaws.sns#NotFoundException": return [3, 10];
|
|
1132
|
-
case "
|
|
1132
|
+
case "StaleTag": return [3, 12];
|
|
1133
1133
|
case "com.amazonaws.sns#StaleTagException": return [3, 12];
|
|
1134
|
-
case "
|
|
1134
|
+
case "TagPolicy": return [3, 14];
|
|
1135
1135
|
case "com.amazonaws.sns#TagPolicyException": return [3, 14];
|
|
1136
1136
|
}
|
|
1137
1137
|
return [3, 16];
|
|
@@ -1188,21 +1188,21 @@ var deserializeAws_queryGetDataProtectionPolicyCommandError = function (output,
|
|
|
1188
1188
|
case 0:
|
|
1189
1189
|
_a = [__assign({}, output)];
|
|
1190
1190
|
_c = {};
|
|
1191
|
-
return [4,
|
|
1191
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1192
1192
|
case 1:
|
|
1193
1193
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1194
1194
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1195
1195
|
_b = errorCode;
|
|
1196
1196
|
switch (_b) {
|
|
1197
|
-
case "
|
|
1197
|
+
case "AuthorizationError": return [3, 2];
|
|
1198
1198
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
1199
|
-
case "
|
|
1199
|
+
case "InternalError": return [3, 4];
|
|
1200
1200
|
case "com.amazonaws.sns#InternalErrorException": return [3, 4];
|
|
1201
|
-
case "
|
|
1201
|
+
case "InvalidParameter": return [3, 6];
|
|
1202
1202
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
1203
|
-
case "
|
|
1203
|
+
case "InvalidSecurity": return [3, 8];
|
|
1204
1204
|
case "com.amazonaws.sns#InvalidSecurityException": return [3, 8];
|
|
1205
|
-
case "
|
|
1205
|
+
case "NotFound": return [3, 10];
|
|
1206
1206
|
case "com.amazonaws.sns#NotFoundException": return [3, 10];
|
|
1207
1207
|
}
|
|
1208
1208
|
return [3, 12];
|
|
@@ -1255,19 +1255,19 @@ var deserializeAws_queryGetEndpointAttributesCommandError = function (output, co
|
|
|
1255
1255
|
case 0:
|
|
1256
1256
|
_a = [__assign({}, output)];
|
|
1257
1257
|
_c = {};
|
|
1258
|
-
return [4,
|
|
1258
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1259
1259
|
case 1:
|
|
1260
1260
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1261
1261
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1262
1262
|
_b = errorCode;
|
|
1263
1263
|
switch (_b) {
|
|
1264
|
-
case "
|
|
1264
|
+
case "AuthorizationError": return [3, 2];
|
|
1265
1265
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
1266
|
-
case "
|
|
1266
|
+
case "InternalError": return [3, 4];
|
|
1267
1267
|
case "com.amazonaws.sns#InternalErrorException": return [3, 4];
|
|
1268
|
-
case "
|
|
1268
|
+
case "InvalidParameter": return [3, 6];
|
|
1269
1269
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
1270
|
-
case "
|
|
1270
|
+
case "NotFound": return [3, 8];
|
|
1271
1271
|
case "com.amazonaws.sns#NotFoundException": return [3, 8];
|
|
1272
1272
|
}
|
|
1273
1273
|
return [3, 10];
|
|
@@ -1318,19 +1318,19 @@ var deserializeAws_queryGetPlatformApplicationAttributesCommandError = function
|
|
|
1318
1318
|
case 0:
|
|
1319
1319
|
_a = [__assign({}, output)];
|
|
1320
1320
|
_c = {};
|
|
1321
|
-
return [4,
|
|
1321
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1322
1322
|
case 1:
|
|
1323
1323
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1324
1324
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1325
1325
|
_b = errorCode;
|
|
1326
1326
|
switch (_b) {
|
|
1327
|
-
case "
|
|
1327
|
+
case "AuthorizationError": return [3, 2];
|
|
1328
1328
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
1329
|
-
case "
|
|
1329
|
+
case "InternalError": return [3, 4];
|
|
1330
1330
|
case "com.amazonaws.sns#InternalErrorException": return [3, 4];
|
|
1331
|
-
case "
|
|
1331
|
+
case "InvalidParameter": return [3, 6];
|
|
1332
1332
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
1333
|
-
case "
|
|
1333
|
+
case "NotFound": return [3, 8];
|
|
1334
1334
|
case "com.amazonaws.sns#NotFoundException": return [3, 8];
|
|
1335
1335
|
}
|
|
1336
1336
|
return [3, 10];
|
|
@@ -1381,19 +1381,19 @@ var deserializeAws_queryGetSMSAttributesCommandError = function (output, context
|
|
|
1381
1381
|
case 0:
|
|
1382
1382
|
_a = [__assign({}, output)];
|
|
1383
1383
|
_c = {};
|
|
1384
|
-
return [4,
|
|
1384
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1385
1385
|
case 1:
|
|
1386
1386
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1387
1387
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1388
1388
|
_b = errorCode;
|
|
1389
1389
|
switch (_b) {
|
|
1390
|
-
case "
|
|
1390
|
+
case "AuthorizationError": return [3, 2];
|
|
1391
1391
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
1392
|
-
case "
|
|
1392
|
+
case "InternalError": return [3, 4];
|
|
1393
1393
|
case "com.amazonaws.sns#InternalErrorException": return [3, 4];
|
|
1394
|
-
case "
|
|
1394
|
+
case "InvalidParameter": return [3, 6];
|
|
1395
1395
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
1396
|
-
case "
|
|
1396
|
+
case "Throttled": return [3, 8];
|
|
1397
1397
|
case "com.amazonaws.sns#ThrottledException": return [3, 8];
|
|
1398
1398
|
}
|
|
1399
1399
|
return [3, 10];
|
|
@@ -1444,17 +1444,17 @@ var deserializeAws_queryGetSMSSandboxAccountStatusCommandError = function (outpu
|
|
|
1444
1444
|
case 0:
|
|
1445
1445
|
_a = [__assign({}, output)];
|
|
1446
1446
|
_c = {};
|
|
1447
|
-
return [4,
|
|
1447
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1448
1448
|
case 1:
|
|
1449
1449
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1450
1450
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1451
1451
|
_b = errorCode;
|
|
1452
1452
|
switch (_b) {
|
|
1453
|
-
case "
|
|
1453
|
+
case "AuthorizationError": return [3, 2];
|
|
1454
1454
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
1455
|
-
case "
|
|
1455
|
+
case "InternalError": return [3, 4];
|
|
1456
1456
|
case "com.amazonaws.sns#InternalErrorException": return [3, 4];
|
|
1457
|
-
case "
|
|
1457
|
+
case "Throttled": return [3, 6];
|
|
1458
1458
|
case "com.amazonaws.sns#ThrottledException": return [3, 6];
|
|
1459
1459
|
}
|
|
1460
1460
|
return [3, 8];
|
|
@@ -1503,19 +1503,19 @@ var deserializeAws_queryGetSubscriptionAttributesCommandError = function (output
|
|
|
1503
1503
|
case 0:
|
|
1504
1504
|
_a = [__assign({}, output)];
|
|
1505
1505
|
_c = {};
|
|
1506
|
-
return [4,
|
|
1506
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1507
1507
|
case 1:
|
|
1508
1508
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1509
1509
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1510
1510
|
_b = errorCode;
|
|
1511
1511
|
switch (_b) {
|
|
1512
|
-
case "
|
|
1512
|
+
case "AuthorizationError": return [3, 2];
|
|
1513
1513
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
1514
|
-
case "
|
|
1514
|
+
case "InternalError": return [3, 4];
|
|
1515
1515
|
case "com.amazonaws.sns#InternalErrorException": return [3, 4];
|
|
1516
|
-
case "
|
|
1516
|
+
case "InvalidParameter": return [3, 6];
|
|
1517
1517
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
1518
|
-
case "
|
|
1518
|
+
case "NotFound": return [3, 8];
|
|
1519
1519
|
case "com.amazonaws.sns#NotFoundException": return [3, 8];
|
|
1520
1520
|
}
|
|
1521
1521
|
return [3, 10];
|
|
@@ -1566,21 +1566,21 @@ var deserializeAws_queryGetTopicAttributesCommandError = function (output, conte
|
|
|
1566
1566
|
case 0:
|
|
1567
1567
|
_a = [__assign({}, output)];
|
|
1568
1568
|
_c = {};
|
|
1569
|
-
return [4,
|
|
1569
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1570
1570
|
case 1:
|
|
1571
1571
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1572
1572
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1573
1573
|
_b = errorCode;
|
|
1574
1574
|
switch (_b) {
|
|
1575
|
-
case "
|
|
1575
|
+
case "AuthorizationError": return [3, 2];
|
|
1576
1576
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
1577
|
-
case "
|
|
1577
|
+
case "InternalError": return [3, 4];
|
|
1578
1578
|
case "com.amazonaws.sns#InternalErrorException": return [3, 4];
|
|
1579
|
-
case "
|
|
1579
|
+
case "InvalidParameter": return [3, 6];
|
|
1580
1580
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
1581
|
-
case "
|
|
1581
|
+
case "InvalidSecurity": return [3, 8];
|
|
1582
1582
|
case "com.amazonaws.sns#InvalidSecurityException": return [3, 8];
|
|
1583
|
-
case "
|
|
1583
|
+
case "NotFound": return [3, 10];
|
|
1584
1584
|
case "com.amazonaws.sns#NotFoundException": return [3, 10];
|
|
1585
1585
|
}
|
|
1586
1586
|
return [3, 12];
|
|
@@ -1633,19 +1633,19 @@ var deserializeAws_queryListEndpointsByPlatformApplicationCommandError = functio
|
|
|
1633
1633
|
case 0:
|
|
1634
1634
|
_a = [__assign({}, output)];
|
|
1635
1635
|
_c = {};
|
|
1636
|
-
return [4,
|
|
1636
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1637
1637
|
case 1:
|
|
1638
1638
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1639
1639
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1640
1640
|
_b = errorCode;
|
|
1641
1641
|
switch (_b) {
|
|
1642
|
-
case "
|
|
1642
|
+
case "AuthorizationError": return [3, 2];
|
|
1643
1643
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
1644
|
-
case "
|
|
1644
|
+
case "InternalError": return [3, 4];
|
|
1645
1645
|
case "com.amazonaws.sns#InternalErrorException": return [3, 4];
|
|
1646
|
-
case "
|
|
1646
|
+
case "InvalidParameter": return [3, 6];
|
|
1647
1647
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
1648
|
-
case "
|
|
1648
|
+
case "NotFound": return [3, 8];
|
|
1649
1649
|
case "com.amazonaws.sns#NotFoundException": return [3, 8];
|
|
1650
1650
|
}
|
|
1651
1651
|
return [3, 10];
|
|
@@ -1696,19 +1696,19 @@ var deserializeAws_queryListOriginationNumbersCommandError = function (output, c
|
|
|
1696
1696
|
case 0:
|
|
1697
1697
|
_a = [__assign({}, output)];
|
|
1698
1698
|
_c = {};
|
|
1699
|
-
return [4,
|
|
1699
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1700
1700
|
case 1:
|
|
1701
1701
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1702
1702
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1703
1703
|
_b = errorCode;
|
|
1704
1704
|
switch (_b) {
|
|
1705
|
-
case "
|
|
1705
|
+
case "AuthorizationError": return [3, 2];
|
|
1706
1706
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
1707
|
-
case "
|
|
1707
|
+
case "InternalError": return [3, 4];
|
|
1708
1708
|
case "com.amazonaws.sns#InternalErrorException": return [3, 4];
|
|
1709
|
-
case "
|
|
1709
|
+
case "InvalidParameter": return [3, 6];
|
|
1710
1710
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
1711
|
-
case "
|
|
1711
|
+
case "Throttled": return [3, 8];
|
|
1712
1712
|
case "com.amazonaws.sns#ThrottledException": return [3, 8];
|
|
1713
1713
|
case "ValidationException": return [3, 10];
|
|
1714
1714
|
case "com.amazonaws.sns#ValidationException": return [3, 10];
|
|
@@ -1763,19 +1763,19 @@ var deserializeAws_queryListPhoneNumbersOptedOutCommandError = function (output,
|
|
|
1763
1763
|
case 0:
|
|
1764
1764
|
_a = [__assign({}, output)];
|
|
1765
1765
|
_c = {};
|
|
1766
|
-
return [4,
|
|
1766
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1767
1767
|
case 1:
|
|
1768
1768
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1769
1769
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1770
1770
|
_b = errorCode;
|
|
1771
1771
|
switch (_b) {
|
|
1772
|
-
case "
|
|
1772
|
+
case "AuthorizationError": return [3, 2];
|
|
1773
1773
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
1774
|
-
case "
|
|
1774
|
+
case "InternalError": return [3, 4];
|
|
1775
1775
|
case "com.amazonaws.sns#InternalErrorException": return [3, 4];
|
|
1776
|
-
case "
|
|
1776
|
+
case "InvalidParameter": return [3, 6];
|
|
1777
1777
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
1778
|
-
case "
|
|
1778
|
+
case "Throttled": return [3, 8];
|
|
1779
1779
|
case "com.amazonaws.sns#ThrottledException": return [3, 8];
|
|
1780
1780
|
}
|
|
1781
1781
|
return [3, 10];
|
|
@@ -1826,17 +1826,17 @@ var deserializeAws_queryListPlatformApplicationsCommandError = function (output,
|
|
|
1826
1826
|
case 0:
|
|
1827
1827
|
_a = [__assign({}, output)];
|
|
1828
1828
|
_c = {};
|
|
1829
|
-
return [4,
|
|
1829
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1830
1830
|
case 1:
|
|
1831
1831
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1832
1832
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1833
1833
|
_b = errorCode;
|
|
1834
1834
|
switch (_b) {
|
|
1835
|
-
case "
|
|
1835
|
+
case "AuthorizationError": return [3, 2];
|
|
1836
1836
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
1837
|
-
case "
|
|
1837
|
+
case "InternalError": return [3, 4];
|
|
1838
1838
|
case "com.amazonaws.sns#InternalErrorException": return [3, 4];
|
|
1839
|
-
case "
|
|
1839
|
+
case "InvalidParameter": return [3, 6];
|
|
1840
1840
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
1841
1841
|
}
|
|
1842
1842
|
return [3, 8];
|
|
@@ -1885,21 +1885,21 @@ var deserializeAws_queryListSMSSandboxPhoneNumbersCommandError = function (outpu
|
|
|
1885
1885
|
case 0:
|
|
1886
1886
|
_a = [__assign({}, output)];
|
|
1887
1887
|
_c = {};
|
|
1888
|
-
return [4,
|
|
1888
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1889
1889
|
case 1:
|
|
1890
1890
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1891
1891
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1892
1892
|
_b = errorCode;
|
|
1893
1893
|
switch (_b) {
|
|
1894
|
-
case "
|
|
1894
|
+
case "AuthorizationError": return [3, 2];
|
|
1895
1895
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
1896
|
-
case "
|
|
1896
|
+
case "InternalError": return [3, 4];
|
|
1897
1897
|
case "com.amazonaws.sns#InternalErrorException": return [3, 4];
|
|
1898
|
-
case "
|
|
1898
|
+
case "InvalidParameter": return [3, 6];
|
|
1899
1899
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
1900
|
-
case "
|
|
1900
|
+
case "ResourceNotFound": return [3, 8];
|
|
1901
1901
|
case "com.amazonaws.sns#ResourceNotFoundException": return [3, 8];
|
|
1902
|
-
case "
|
|
1902
|
+
case "Throttled": return [3, 10];
|
|
1903
1903
|
case "com.amazonaws.sns#ThrottledException": return [3, 10];
|
|
1904
1904
|
}
|
|
1905
1905
|
return [3, 12];
|
|
@@ -1952,17 +1952,17 @@ var deserializeAws_queryListSubscriptionsCommandError = function (output, contex
|
|
|
1952
1952
|
case 0:
|
|
1953
1953
|
_a = [__assign({}, output)];
|
|
1954
1954
|
_c = {};
|
|
1955
|
-
return [4,
|
|
1955
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1956
1956
|
case 1:
|
|
1957
1957
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1958
1958
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1959
1959
|
_b = errorCode;
|
|
1960
1960
|
switch (_b) {
|
|
1961
|
-
case "
|
|
1961
|
+
case "AuthorizationError": return [3, 2];
|
|
1962
1962
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
1963
|
-
case "
|
|
1963
|
+
case "InternalError": return [3, 4];
|
|
1964
1964
|
case "com.amazonaws.sns#InternalErrorException": return [3, 4];
|
|
1965
|
-
case "
|
|
1965
|
+
case "InvalidParameter": return [3, 6];
|
|
1966
1966
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
1967
1967
|
}
|
|
1968
1968
|
return [3, 8];
|
|
@@ -2011,19 +2011,19 @@ var deserializeAws_queryListSubscriptionsByTopicCommandError = function (output,
|
|
|
2011
2011
|
case 0:
|
|
2012
2012
|
_a = [__assign({}, output)];
|
|
2013
2013
|
_c = {};
|
|
2014
|
-
return [4,
|
|
2014
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2015
2015
|
case 1:
|
|
2016
2016
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2017
2017
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2018
2018
|
_b = errorCode;
|
|
2019
2019
|
switch (_b) {
|
|
2020
|
-
case "
|
|
2020
|
+
case "AuthorizationError": return [3, 2];
|
|
2021
2021
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
2022
|
-
case "
|
|
2022
|
+
case "InternalError": return [3, 4];
|
|
2023
2023
|
case "com.amazonaws.sns#InternalErrorException": return [3, 4];
|
|
2024
|
-
case "
|
|
2024
|
+
case "InvalidParameter": return [3, 6];
|
|
2025
2025
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
2026
|
-
case "
|
|
2026
|
+
case "NotFound": return [3, 8];
|
|
2027
2027
|
case "com.amazonaws.sns#NotFoundException": return [3, 8];
|
|
2028
2028
|
}
|
|
2029
2029
|
return [3, 10];
|
|
@@ -2074,21 +2074,21 @@ var deserializeAws_queryListTagsForResourceCommandError = function (output, cont
|
|
|
2074
2074
|
case 0:
|
|
2075
2075
|
_a = [__assign({}, output)];
|
|
2076
2076
|
_c = {};
|
|
2077
|
-
return [4,
|
|
2077
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2078
2078
|
case 1:
|
|
2079
2079
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2080
2080
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2081
2081
|
_b = errorCode;
|
|
2082
2082
|
switch (_b) {
|
|
2083
|
-
case "
|
|
2083
|
+
case "AuthorizationError": return [3, 2];
|
|
2084
2084
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
2085
|
-
case "
|
|
2085
|
+
case "ConcurrentAccess": return [3, 4];
|
|
2086
2086
|
case "com.amazonaws.sns#ConcurrentAccessException": return [3, 4];
|
|
2087
|
-
case "
|
|
2087
|
+
case "InvalidParameter": return [3, 6];
|
|
2088
2088
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
2089
|
-
case "
|
|
2089
|
+
case "ResourceNotFound": return [3, 8];
|
|
2090
2090
|
case "com.amazonaws.sns#ResourceNotFoundException": return [3, 8];
|
|
2091
|
-
case "
|
|
2091
|
+
case "TagPolicy": return [3, 10];
|
|
2092
2092
|
case "com.amazonaws.sns#TagPolicyException": return [3, 10];
|
|
2093
2093
|
}
|
|
2094
2094
|
return [3, 12];
|
|
@@ -2141,17 +2141,17 @@ var deserializeAws_queryListTopicsCommandError = function (output, context) { re
|
|
|
2141
2141
|
case 0:
|
|
2142
2142
|
_a = [__assign({}, output)];
|
|
2143
2143
|
_c = {};
|
|
2144
|
-
return [4,
|
|
2144
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2145
2145
|
case 1:
|
|
2146
2146
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2147
2147
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2148
2148
|
_b = errorCode;
|
|
2149
2149
|
switch (_b) {
|
|
2150
|
-
case "
|
|
2150
|
+
case "AuthorizationError": return [3, 2];
|
|
2151
2151
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
2152
|
-
case "
|
|
2152
|
+
case "InternalError": return [3, 4];
|
|
2153
2153
|
case "com.amazonaws.sns#InternalErrorException": return [3, 4];
|
|
2154
|
-
case "
|
|
2154
|
+
case "InvalidParameter": return [3, 6];
|
|
2155
2155
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
2156
2156
|
}
|
|
2157
2157
|
return [3, 8];
|
|
@@ -2200,19 +2200,19 @@ var deserializeAws_queryOptInPhoneNumberCommandError = function (output, context
|
|
|
2200
2200
|
case 0:
|
|
2201
2201
|
_a = [__assign({}, output)];
|
|
2202
2202
|
_c = {};
|
|
2203
|
-
return [4,
|
|
2203
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2204
2204
|
case 1:
|
|
2205
2205
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2206
2206
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2207
2207
|
_b = errorCode;
|
|
2208
2208
|
switch (_b) {
|
|
2209
|
-
case "
|
|
2209
|
+
case "AuthorizationError": return [3, 2];
|
|
2210
2210
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
2211
|
-
case "
|
|
2211
|
+
case "InternalError": return [3, 4];
|
|
2212
2212
|
case "com.amazonaws.sns#InternalErrorException": return [3, 4];
|
|
2213
|
-
case "
|
|
2213
|
+
case "InvalidParameter": return [3, 6];
|
|
2214
2214
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
2215
|
-
case "
|
|
2215
|
+
case "Throttled": return [3, 8];
|
|
2216
2216
|
case "com.amazonaws.sns#ThrottledException": return [3, 8];
|
|
2217
2217
|
}
|
|
2218
2218
|
return [3, 10];
|
|
@@ -2263,39 +2263,39 @@ var deserializeAws_queryPublishCommandError = function (output, context) { retur
|
|
|
2263
2263
|
case 0:
|
|
2264
2264
|
_a = [__assign({}, output)];
|
|
2265
2265
|
_c = {};
|
|
2266
|
-
return [4,
|
|
2266
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2267
2267
|
case 1:
|
|
2268
2268
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2269
2269
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2270
2270
|
_b = errorCode;
|
|
2271
2271
|
switch (_b) {
|
|
2272
|
-
case "
|
|
2272
|
+
case "AuthorizationError": return [3, 2];
|
|
2273
2273
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
2274
|
-
case "
|
|
2274
|
+
case "EndpointDisabled": return [3, 4];
|
|
2275
2275
|
case "com.amazonaws.sns#EndpointDisabledException": return [3, 4];
|
|
2276
|
-
case "
|
|
2276
|
+
case "InternalError": return [3, 6];
|
|
2277
2277
|
case "com.amazonaws.sns#InternalErrorException": return [3, 6];
|
|
2278
|
-
case "
|
|
2278
|
+
case "InvalidParameter": return [3, 8];
|
|
2279
2279
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 8];
|
|
2280
|
-
case "
|
|
2281
|
-
case "com.amazonaws.sns#
|
|
2282
|
-
case "
|
|
2283
|
-
case "com.amazonaws.sns#
|
|
2284
|
-
case "
|
|
2285
|
-
case "com.amazonaws.sns#
|
|
2286
|
-
case "
|
|
2287
|
-
case "com.amazonaws.sns#
|
|
2288
|
-
case "
|
|
2289
|
-
case "com.amazonaws.sns#
|
|
2290
|
-
case "
|
|
2291
|
-
case "com.amazonaws.sns#
|
|
2292
|
-
case "
|
|
2293
|
-
case "com.amazonaws.sns#
|
|
2294
|
-
case "
|
|
2295
|
-
case "com.amazonaws.sns#
|
|
2296
|
-
case "
|
|
2297
|
-
case "com.amazonaws.sns#
|
|
2298
|
-
case "
|
|
2280
|
+
case "InvalidSecurity": return [3, 10];
|
|
2281
|
+
case "com.amazonaws.sns#InvalidSecurityException": return [3, 10];
|
|
2282
|
+
case "KMSAccessDenied": return [3, 12];
|
|
2283
|
+
case "com.amazonaws.sns#KMSAccessDeniedException": return [3, 12];
|
|
2284
|
+
case "KMSDisabled": return [3, 14];
|
|
2285
|
+
case "com.amazonaws.sns#KMSDisabledException": return [3, 14];
|
|
2286
|
+
case "KMSInvalidState": return [3, 16];
|
|
2287
|
+
case "com.amazonaws.sns#KMSInvalidStateException": return [3, 16];
|
|
2288
|
+
case "KMSNotFound": return [3, 18];
|
|
2289
|
+
case "com.amazonaws.sns#KMSNotFoundException": return [3, 18];
|
|
2290
|
+
case "KMSOptInRequired": return [3, 20];
|
|
2291
|
+
case "com.amazonaws.sns#KMSOptInRequired": return [3, 20];
|
|
2292
|
+
case "KMSThrottling": return [3, 22];
|
|
2293
|
+
case "com.amazonaws.sns#KMSThrottlingException": return [3, 22];
|
|
2294
|
+
case "NotFound": return [3, 24];
|
|
2295
|
+
case "com.amazonaws.sns#NotFoundException": return [3, 24];
|
|
2296
|
+
case "ParameterValueInvalid": return [3, 26];
|
|
2297
|
+
case "com.amazonaws.sns#InvalidParameterValueException": return [3, 26];
|
|
2298
|
+
case "PlatformApplicationDisabled": return [3, 28];
|
|
2299
2299
|
case "com.amazonaws.sns#PlatformApplicationDisabledException": return [3, 28];
|
|
2300
2300
|
case "ValidationException": return [3, 30];
|
|
2301
2301
|
case "com.amazonaws.sns#ValidationException": return [3, 30];
|
|
@@ -2309,23 +2309,23 @@ var deserializeAws_queryPublishCommandError = function (output, context) { retur
|
|
|
2309
2309
|
case 7: throw _d.sent();
|
|
2310
2310
|
case 8: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2311
2311
|
case 9: throw _d.sent();
|
|
2312
|
-
case 10: return [4,
|
|
2312
|
+
case 10: return [4, deserializeAws_queryInvalidSecurityExceptionResponse(parsedOutput, context)];
|
|
2313
2313
|
case 11: throw _d.sent();
|
|
2314
|
-
case 12: return [4,
|
|
2314
|
+
case 12: return [4, deserializeAws_queryKMSAccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2315
2315
|
case 13: throw _d.sent();
|
|
2316
|
-
case 14: return [4,
|
|
2316
|
+
case 14: return [4, deserializeAws_queryKMSDisabledExceptionResponse(parsedOutput, context)];
|
|
2317
2317
|
case 15: throw _d.sent();
|
|
2318
|
-
case 16: return [4,
|
|
2318
|
+
case 16: return [4, deserializeAws_queryKMSInvalidStateExceptionResponse(parsedOutput, context)];
|
|
2319
2319
|
case 17: throw _d.sent();
|
|
2320
|
-
case 18: return [4,
|
|
2320
|
+
case 18: return [4, deserializeAws_queryKMSNotFoundExceptionResponse(parsedOutput, context)];
|
|
2321
2321
|
case 19: throw _d.sent();
|
|
2322
|
-
case 20: return [4,
|
|
2322
|
+
case 20: return [4, deserializeAws_queryKMSOptInRequiredResponse(parsedOutput, context)];
|
|
2323
2323
|
case 21: throw _d.sent();
|
|
2324
|
-
case 22: return [4,
|
|
2324
|
+
case 22: return [4, deserializeAws_queryKMSThrottlingExceptionResponse(parsedOutput, context)];
|
|
2325
2325
|
case 23: throw _d.sent();
|
|
2326
|
-
case 24: return [4,
|
|
2326
|
+
case 24: return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
2327
2327
|
case 25: throw _d.sent();
|
|
2328
|
-
case 26: return [4,
|
|
2328
|
+
case 26: return [4, deserializeAws_queryInvalidParameterValueExceptionResponse(parsedOutput, context)];
|
|
2329
2329
|
case 27: throw _d.sent();
|
|
2330
2330
|
case 28: return [4, deserializeAws_queryPlatformApplicationDisabledExceptionResponse(parsedOutput, context)];
|
|
2331
2331
|
case 29: throw _d.sent();
|
|
@@ -2370,49 +2370,49 @@ var deserializeAws_queryPublishBatchCommandError = function (output, context) {
|
|
|
2370
2370
|
case 0:
|
|
2371
2371
|
_a = [__assign({}, output)];
|
|
2372
2372
|
_c = {};
|
|
2373
|
-
return [4,
|
|
2373
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2374
2374
|
case 1:
|
|
2375
2375
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2376
2376
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2377
2377
|
_b = errorCode;
|
|
2378
2378
|
switch (_b) {
|
|
2379
|
-
case "
|
|
2379
|
+
case "AuthorizationError": return [3, 2];
|
|
2380
2380
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
2381
|
-
case "
|
|
2381
|
+
case "BatchEntryIdsNotDistinct": return [3, 4];
|
|
2382
2382
|
case "com.amazonaws.sns#BatchEntryIdsNotDistinctException": return [3, 4];
|
|
2383
|
-
case "
|
|
2383
|
+
case "BatchRequestTooLong": return [3, 6];
|
|
2384
2384
|
case "com.amazonaws.sns#BatchRequestTooLongException": return [3, 6];
|
|
2385
|
-
case "
|
|
2385
|
+
case "EmptyBatchRequest": return [3, 8];
|
|
2386
2386
|
case "com.amazonaws.sns#EmptyBatchRequestException": return [3, 8];
|
|
2387
|
-
case "
|
|
2387
|
+
case "EndpointDisabled": return [3, 10];
|
|
2388
2388
|
case "com.amazonaws.sns#EndpointDisabledException": return [3, 10];
|
|
2389
|
-
case "
|
|
2389
|
+
case "InternalError": return [3, 12];
|
|
2390
2390
|
case "com.amazonaws.sns#InternalErrorException": return [3, 12];
|
|
2391
|
-
case "
|
|
2391
|
+
case "InvalidBatchEntryId": return [3, 14];
|
|
2392
2392
|
case "com.amazonaws.sns#InvalidBatchEntryIdException": return [3, 14];
|
|
2393
|
-
case "
|
|
2393
|
+
case "InvalidParameter": return [3, 16];
|
|
2394
2394
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 16];
|
|
2395
|
-
case "
|
|
2396
|
-
case "com.amazonaws.sns#
|
|
2397
|
-
case "
|
|
2398
|
-
case "com.amazonaws.sns#
|
|
2399
|
-
case "
|
|
2400
|
-
case "com.amazonaws.sns#
|
|
2401
|
-
case "
|
|
2402
|
-
case "com.amazonaws.sns#
|
|
2403
|
-
case "
|
|
2404
|
-
case "com.amazonaws.sns#
|
|
2405
|
-
case "
|
|
2406
|
-
case "com.amazonaws.sns#
|
|
2407
|
-
case "
|
|
2408
|
-
case "com.amazonaws.sns#
|
|
2409
|
-
case "
|
|
2410
|
-
case "com.amazonaws.sns#
|
|
2411
|
-
case "
|
|
2412
|
-
case "com.amazonaws.sns#
|
|
2413
|
-
case "
|
|
2395
|
+
case "InvalidSecurity": return [3, 18];
|
|
2396
|
+
case "com.amazonaws.sns#InvalidSecurityException": return [3, 18];
|
|
2397
|
+
case "KMSAccessDenied": return [3, 20];
|
|
2398
|
+
case "com.amazonaws.sns#KMSAccessDeniedException": return [3, 20];
|
|
2399
|
+
case "KMSDisabled": return [3, 22];
|
|
2400
|
+
case "com.amazonaws.sns#KMSDisabledException": return [3, 22];
|
|
2401
|
+
case "KMSInvalidState": return [3, 24];
|
|
2402
|
+
case "com.amazonaws.sns#KMSInvalidStateException": return [3, 24];
|
|
2403
|
+
case "KMSNotFound": return [3, 26];
|
|
2404
|
+
case "com.amazonaws.sns#KMSNotFoundException": return [3, 26];
|
|
2405
|
+
case "KMSOptInRequired": return [3, 28];
|
|
2406
|
+
case "com.amazonaws.sns#KMSOptInRequired": return [3, 28];
|
|
2407
|
+
case "KMSThrottling": return [3, 30];
|
|
2408
|
+
case "com.amazonaws.sns#KMSThrottlingException": return [3, 30];
|
|
2409
|
+
case "NotFound": return [3, 32];
|
|
2410
|
+
case "com.amazonaws.sns#NotFoundException": return [3, 32];
|
|
2411
|
+
case "ParameterValueInvalid": return [3, 34];
|
|
2412
|
+
case "com.amazonaws.sns#InvalidParameterValueException": return [3, 34];
|
|
2413
|
+
case "PlatformApplicationDisabled": return [3, 36];
|
|
2414
2414
|
case "com.amazonaws.sns#PlatformApplicationDisabledException": return [3, 36];
|
|
2415
|
-
case "
|
|
2415
|
+
case "TooManyEntriesInBatchRequest": return [3, 38];
|
|
2416
2416
|
case "com.amazonaws.sns#TooManyEntriesInBatchRequestException": return [3, 38];
|
|
2417
2417
|
case "ValidationException": return [3, 40];
|
|
2418
2418
|
case "com.amazonaws.sns#ValidationException": return [3, 40];
|
|
@@ -2434,23 +2434,23 @@ var deserializeAws_queryPublishBatchCommandError = function (output, context) {
|
|
|
2434
2434
|
case 15: throw _d.sent();
|
|
2435
2435
|
case 16: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2436
2436
|
case 17: throw _d.sent();
|
|
2437
|
-
case 18: return [4,
|
|
2437
|
+
case 18: return [4, deserializeAws_queryInvalidSecurityExceptionResponse(parsedOutput, context)];
|
|
2438
2438
|
case 19: throw _d.sent();
|
|
2439
|
-
case 20: return [4,
|
|
2439
|
+
case 20: return [4, deserializeAws_queryKMSAccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2440
2440
|
case 21: throw _d.sent();
|
|
2441
|
-
case 22: return [4,
|
|
2441
|
+
case 22: return [4, deserializeAws_queryKMSDisabledExceptionResponse(parsedOutput, context)];
|
|
2442
2442
|
case 23: throw _d.sent();
|
|
2443
|
-
case 24: return [4,
|
|
2443
|
+
case 24: return [4, deserializeAws_queryKMSInvalidStateExceptionResponse(parsedOutput, context)];
|
|
2444
2444
|
case 25: throw _d.sent();
|
|
2445
|
-
case 26: return [4,
|
|
2445
|
+
case 26: return [4, deserializeAws_queryKMSNotFoundExceptionResponse(parsedOutput, context)];
|
|
2446
2446
|
case 27: throw _d.sent();
|
|
2447
|
-
case 28: return [4,
|
|
2447
|
+
case 28: return [4, deserializeAws_queryKMSOptInRequiredResponse(parsedOutput, context)];
|
|
2448
2448
|
case 29: throw _d.sent();
|
|
2449
|
-
case 30: return [4,
|
|
2449
|
+
case 30: return [4, deserializeAws_queryKMSThrottlingExceptionResponse(parsedOutput, context)];
|
|
2450
2450
|
case 31: throw _d.sent();
|
|
2451
|
-
case 32: return [4,
|
|
2451
|
+
case 32: return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
2452
2452
|
case 33: throw _d.sent();
|
|
2453
|
-
case 34: return [4,
|
|
2453
|
+
case 34: return [4, deserializeAws_queryInvalidParameterValueExceptionResponse(parsedOutput, context)];
|
|
2454
2454
|
case 35: throw _d.sent();
|
|
2455
2455
|
case 36: return [4, deserializeAws_queryPlatformApplicationDisabledExceptionResponse(parsedOutput, context)];
|
|
2456
2456
|
case 37: throw _d.sent();
|
|
@@ -2497,21 +2497,21 @@ var deserializeAws_queryPutDataProtectionPolicyCommandError = function (output,
|
|
|
2497
2497
|
case 0:
|
|
2498
2498
|
_a = [__assign({}, output)];
|
|
2499
2499
|
_c = {};
|
|
2500
|
-
return [4,
|
|
2500
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2501
2501
|
case 1:
|
|
2502
2502
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2503
2503
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2504
2504
|
_b = errorCode;
|
|
2505
2505
|
switch (_b) {
|
|
2506
|
-
case "
|
|
2506
|
+
case "AuthorizationError": return [3, 2];
|
|
2507
2507
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
2508
|
-
case "
|
|
2508
|
+
case "InternalError": return [3, 4];
|
|
2509
2509
|
case "com.amazonaws.sns#InternalErrorException": return [3, 4];
|
|
2510
|
-
case "
|
|
2510
|
+
case "InvalidParameter": return [3, 6];
|
|
2511
2511
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
2512
|
-
case "
|
|
2512
|
+
case "InvalidSecurity": return [3, 8];
|
|
2513
2513
|
case "com.amazonaws.sns#InvalidSecurityException": return [3, 8];
|
|
2514
|
-
case "
|
|
2514
|
+
case "NotFound": return [3, 10];
|
|
2515
2515
|
case "com.amazonaws.sns#NotFoundException": return [3, 10];
|
|
2516
2516
|
}
|
|
2517
2517
|
return [3, 12];
|
|
@@ -2564,19 +2564,19 @@ var deserializeAws_queryRemovePermissionCommandError = function (output, context
|
|
|
2564
2564
|
case 0:
|
|
2565
2565
|
_a = [__assign({}, output)];
|
|
2566
2566
|
_c = {};
|
|
2567
|
-
return [4,
|
|
2567
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2568
2568
|
case 1:
|
|
2569
2569
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2570
2570
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2571
2571
|
_b = errorCode;
|
|
2572
2572
|
switch (_b) {
|
|
2573
|
-
case "
|
|
2573
|
+
case "AuthorizationError": return [3, 2];
|
|
2574
2574
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
2575
|
-
case "
|
|
2575
|
+
case "InternalError": return [3, 4];
|
|
2576
2576
|
case "com.amazonaws.sns#InternalErrorException": return [3, 4];
|
|
2577
|
-
case "
|
|
2577
|
+
case "InvalidParameter": return [3, 6];
|
|
2578
2578
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
2579
|
-
case "
|
|
2579
|
+
case "NotFound": return [3, 8];
|
|
2580
2580
|
case "com.amazonaws.sns#NotFoundException": return [3, 8];
|
|
2581
2581
|
}
|
|
2582
2582
|
return [3, 10];
|
|
@@ -2627,19 +2627,19 @@ var deserializeAws_querySetEndpointAttributesCommandError = function (output, co
|
|
|
2627
2627
|
case 0:
|
|
2628
2628
|
_a = [__assign({}, output)];
|
|
2629
2629
|
_c = {};
|
|
2630
|
-
return [4,
|
|
2630
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2631
2631
|
case 1:
|
|
2632
2632
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2633
2633
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2634
2634
|
_b = errorCode;
|
|
2635
2635
|
switch (_b) {
|
|
2636
|
-
case "
|
|
2636
|
+
case "AuthorizationError": return [3, 2];
|
|
2637
2637
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
2638
|
-
case "
|
|
2638
|
+
case "InternalError": return [3, 4];
|
|
2639
2639
|
case "com.amazonaws.sns#InternalErrorException": return [3, 4];
|
|
2640
|
-
case "
|
|
2640
|
+
case "InvalidParameter": return [3, 6];
|
|
2641
2641
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
2642
|
-
case "
|
|
2642
|
+
case "NotFound": return [3, 8];
|
|
2643
2643
|
case "com.amazonaws.sns#NotFoundException": return [3, 8];
|
|
2644
2644
|
}
|
|
2645
2645
|
return [3, 10];
|
|
@@ -2690,19 +2690,19 @@ var deserializeAws_querySetPlatformApplicationAttributesCommandError = function
|
|
|
2690
2690
|
case 0:
|
|
2691
2691
|
_a = [__assign({}, output)];
|
|
2692
2692
|
_c = {};
|
|
2693
|
-
return [4,
|
|
2693
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2694
2694
|
case 1:
|
|
2695
2695
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2696
2696
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2697
2697
|
_b = errorCode;
|
|
2698
2698
|
switch (_b) {
|
|
2699
|
-
case "
|
|
2699
|
+
case "AuthorizationError": return [3, 2];
|
|
2700
2700
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
2701
|
-
case "
|
|
2701
|
+
case "InternalError": return [3, 4];
|
|
2702
2702
|
case "com.amazonaws.sns#InternalErrorException": return [3, 4];
|
|
2703
|
-
case "
|
|
2703
|
+
case "InvalidParameter": return [3, 6];
|
|
2704
2704
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
2705
|
-
case "
|
|
2705
|
+
case "NotFound": return [3, 8];
|
|
2706
2706
|
case "com.amazonaws.sns#NotFoundException": return [3, 8];
|
|
2707
2707
|
}
|
|
2708
2708
|
return [3, 10];
|
|
@@ -2753,19 +2753,19 @@ var deserializeAws_querySetSMSAttributesCommandError = function (output, context
|
|
|
2753
2753
|
case 0:
|
|
2754
2754
|
_a = [__assign({}, output)];
|
|
2755
2755
|
_c = {};
|
|
2756
|
-
return [4,
|
|
2756
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2757
2757
|
case 1:
|
|
2758
2758
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2759
2759
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2760
2760
|
_b = errorCode;
|
|
2761
2761
|
switch (_b) {
|
|
2762
|
-
case "
|
|
2762
|
+
case "AuthorizationError": return [3, 2];
|
|
2763
2763
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
2764
|
-
case "
|
|
2764
|
+
case "InternalError": return [3, 4];
|
|
2765
2765
|
case "com.amazonaws.sns#InternalErrorException": return [3, 4];
|
|
2766
|
-
case "
|
|
2766
|
+
case "InvalidParameter": return [3, 6];
|
|
2767
2767
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
2768
|
-
case "
|
|
2768
|
+
case "Throttled": return [3, 8];
|
|
2769
2769
|
case "com.amazonaws.sns#ThrottledException": return [3, 8];
|
|
2770
2770
|
}
|
|
2771
2771
|
return [3, 10];
|
|
@@ -2816,21 +2816,21 @@ var deserializeAws_querySetSubscriptionAttributesCommandError = function (output
|
|
|
2816
2816
|
case 0:
|
|
2817
2817
|
_a = [__assign({}, output)];
|
|
2818
2818
|
_c = {};
|
|
2819
|
-
return [4,
|
|
2819
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2820
2820
|
case 1:
|
|
2821
2821
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2822
2822
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2823
2823
|
_b = errorCode;
|
|
2824
2824
|
switch (_b) {
|
|
2825
|
-
case "
|
|
2825
|
+
case "AuthorizationError": return [3, 2];
|
|
2826
2826
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
2827
|
-
case "
|
|
2827
|
+
case "FilterPolicyLimitExceeded": return [3, 4];
|
|
2828
2828
|
case "com.amazonaws.sns#FilterPolicyLimitExceededException": return [3, 4];
|
|
2829
|
-
case "
|
|
2829
|
+
case "InternalError": return [3, 6];
|
|
2830
2830
|
case "com.amazonaws.sns#InternalErrorException": return [3, 6];
|
|
2831
|
-
case "
|
|
2831
|
+
case "InvalidParameter": return [3, 8];
|
|
2832
2832
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 8];
|
|
2833
|
-
case "
|
|
2833
|
+
case "NotFound": return [3, 10];
|
|
2834
2834
|
case "com.amazonaws.sns#NotFoundException": return [3, 10];
|
|
2835
2835
|
}
|
|
2836
2836
|
return [3, 12];
|
|
@@ -2883,21 +2883,21 @@ var deserializeAws_querySetTopicAttributesCommandError = function (output, conte
|
|
|
2883
2883
|
case 0:
|
|
2884
2884
|
_a = [__assign({}, output)];
|
|
2885
2885
|
_c = {};
|
|
2886
|
-
return [4,
|
|
2886
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2887
2887
|
case 1:
|
|
2888
2888
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2889
2889
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2890
2890
|
_b = errorCode;
|
|
2891
2891
|
switch (_b) {
|
|
2892
|
-
case "
|
|
2892
|
+
case "AuthorizationError": return [3, 2];
|
|
2893
2893
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
2894
|
-
case "
|
|
2894
|
+
case "InternalError": return [3, 4];
|
|
2895
2895
|
case "com.amazonaws.sns#InternalErrorException": return [3, 4];
|
|
2896
|
-
case "
|
|
2896
|
+
case "InvalidParameter": return [3, 6];
|
|
2897
2897
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
2898
|
-
case "
|
|
2898
|
+
case "InvalidSecurity": return [3, 8];
|
|
2899
2899
|
case "com.amazonaws.sns#InvalidSecurityException": return [3, 8];
|
|
2900
|
-
case "
|
|
2900
|
+
case "NotFound": return [3, 10];
|
|
2901
2901
|
case "com.amazonaws.sns#NotFoundException": return [3, 10];
|
|
2902
2902
|
}
|
|
2903
2903
|
return [3, 12];
|
|
@@ -2950,25 +2950,25 @@ var deserializeAws_querySubscribeCommandError = function (output, context) { ret
|
|
|
2950
2950
|
case 0:
|
|
2951
2951
|
_a = [__assign({}, output)];
|
|
2952
2952
|
_c = {};
|
|
2953
|
-
return [4,
|
|
2953
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2954
2954
|
case 1:
|
|
2955
2955
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2956
2956
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2957
2957
|
_b = errorCode;
|
|
2958
2958
|
switch (_b) {
|
|
2959
|
-
case "
|
|
2959
|
+
case "AuthorizationError": return [3, 2];
|
|
2960
2960
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
2961
|
-
case "
|
|
2961
|
+
case "FilterPolicyLimitExceeded": return [3, 4];
|
|
2962
2962
|
case "com.amazonaws.sns#FilterPolicyLimitExceededException": return [3, 4];
|
|
2963
|
-
case "
|
|
2963
|
+
case "InternalError": return [3, 6];
|
|
2964
2964
|
case "com.amazonaws.sns#InternalErrorException": return [3, 6];
|
|
2965
|
-
case "
|
|
2965
|
+
case "InvalidParameter": return [3, 8];
|
|
2966
2966
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 8];
|
|
2967
|
-
case "
|
|
2967
|
+
case "InvalidSecurity": return [3, 10];
|
|
2968
2968
|
case "com.amazonaws.sns#InvalidSecurityException": return [3, 10];
|
|
2969
|
-
case "
|
|
2969
|
+
case "NotFound": return [3, 12];
|
|
2970
2970
|
case "com.amazonaws.sns#NotFoundException": return [3, 12];
|
|
2971
|
-
case "
|
|
2971
|
+
case "SubscriptionLimitExceeded": return [3, 14];
|
|
2972
2972
|
case "com.amazonaws.sns#SubscriptionLimitExceededException": return [3, 14];
|
|
2973
2973
|
}
|
|
2974
2974
|
return [3, 16];
|
|
@@ -3025,25 +3025,25 @@ var deserializeAws_queryTagResourceCommandError = function (output, context) { r
|
|
|
3025
3025
|
case 0:
|
|
3026
3026
|
_a = [__assign({}, output)];
|
|
3027
3027
|
_c = {};
|
|
3028
|
-
return [4,
|
|
3028
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3029
3029
|
case 1:
|
|
3030
3030
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3031
3031
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3032
3032
|
_b = errorCode;
|
|
3033
3033
|
switch (_b) {
|
|
3034
|
-
case "
|
|
3034
|
+
case "AuthorizationError": return [3, 2];
|
|
3035
3035
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
3036
|
-
case "
|
|
3036
|
+
case "ConcurrentAccess": return [3, 4];
|
|
3037
3037
|
case "com.amazonaws.sns#ConcurrentAccessException": return [3, 4];
|
|
3038
|
-
case "
|
|
3038
|
+
case "InvalidParameter": return [3, 6];
|
|
3039
3039
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
3040
|
-
case "
|
|
3040
|
+
case "ResourceNotFound": return [3, 8];
|
|
3041
3041
|
case "com.amazonaws.sns#ResourceNotFoundException": return [3, 8];
|
|
3042
|
-
case "
|
|
3042
|
+
case "StaleTag": return [3, 10];
|
|
3043
3043
|
case "com.amazonaws.sns#StaleTagException": return [3, 10];
|
|
3044
|
-
case "
|
|
3044
|
+
case "TagLimitExceeded": return [3, 12];
|
|
3045
3045
|
case "com.amazonaws.sns#TagLimitExceededException": return [3, 12];
|
|
3046
|
-
case "
|
|
3046
|
+
case "TagPolicy": return [3, 14];
|
|
3047
3047
|
case "com.amazonaws.sns#TagPolicyException": return [3, 14];
|
|
3048
3048
|
}
|
|
3049
3049
|
return [3, 16];
|
|
@@ -3100,21 +3100,21 @@ var deserializeAws_queryUnsubscribeCommandError = function (output, context) { r
|
|
|
3100
3100
|
case 0:
|
|
3101
3101
|
_a = [__assign({}, output)];
|
|
3102
3102
|
_c = {};
|
|
3103
|
-
return [4,
|
|
3103
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3104
3104
|
case 1:
|
|
3105
3105
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3106
3106
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3107
3107
|
_b = errorCode;
|
|
3108
3108
|
switch (_b) {
|
|
3109
|
-
case "
|
|
3109
|
+
case "AuthorizationError": return [3, 2];
|
|
3110
3110
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
3111
|
-
case "
|
|
3111
|
+
case "InternalError": return [3, 4];
|
|
3112
3112
|
case "com.amazonaws.sns#InternalErrorException": return [3, 4];
|
|
3113
|
-
case "
|
|
3113
|
+
case "InvalidParameter": return [3, 6];
|
|
3114
3114
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
3115
|
-
case "
|
|
3115
|
+
case "InvalidSecurity": return [3, 8];
|
|
3116
3116
|
case "com.amazonaws.sns#InvalidSecurityException": return [3, 8];
|
|
3117
|
-
case "
|
|
3117
|
+
case "NotFound": return [3, 10];
|
|
3118
3118
|
case "com.amazonaws.sns#NotFoundException": return [3, 10];
|
|
3119
3119
|
}
|
|
3120
3120
|
return [3, 12];
|
|
@@ -3167,25 +3167,25 @@ var deserializeAws_queryUntagResourceCommandError = function (output, context) {
|
|
|
3167
3167
|
case 0:
|
|
3168
3168
|
_a = [__assign({}, output)];
|
|
3169
3169
|
_c = {};
|
|
3170
|
-
return [4,
|
|
3170
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3171
3171
|
case 1:
|
|
3172
3172
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3173
3173
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3174
3174
|
_b = errorCode;
|
|
3175
3175
|
switch (_b) {
|
|
3176
|
-
case "
|
|
3176
|
+
case "AuthorizationError": return [3, 2];
|
|
3177
3177
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
3178
|
-
case "
|
|
3178
|
+
case "ConcurrentAccess": return [3, 4];
|
|
3179
3179
|
case "com.amazonaws.sns#ConcurrentAccessException": return [3, 4];
|
|
3180
|
-
case "
|
|
3180
|
+
case "InvalidParameter": return [3, 6];
|
|
3181
3181
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
3182
|
-
case "
|
|
3182
|
+
case "ResourceNotFound": return [3, 8];
|
|
3183
3183
|
case "com.amazonaws.sns#ResourceNotFoundException": return [3, 8];
|
|
3184
|
-
case "
|
|
3184
|
+
case "StaleTag": return [3, 10];
|
|
3185
3185
|
case "com.amazonaws.sns#StaleTagException": return [3, 10];
|
|
3186
|
-
case "
|
|
3186
|
+
case "TagLimitExceeded": return [3, 12];
|
|
3187
3187
|
case "com.amazonaws.sns#TagLimitExceededException": return [3, 12];
|
|
3188
|
-
case "
|
|
3188
|
+
case "TagPolicy": return [3, 14];
|
|
3189
3189
|
case "com.amazonaws.sns#TagPolicyException": return [3, 14];
|
|
3190
3190
|
}
|
|
3191
3191
|
return [3, 16];
|
|
@@ -3242,21 +3242,21 @@ var deserializeAws_queryVerifySMSSandboxPhoneNumberCommandError = function (outp
|
|
|
3242
3242
|
case 0:
|
|
3243
3243
|
_a = [__assign({}, output)];
|
|
3244
3244
|
_c = {};
|
|
3245
|
-
return [4,
|
|
3245
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3246
3246
|
case 1:
|
|
3247
3247
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3248
3248
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3249
3249
|
_b = errorCode;
|
|
3250
3250
|
switch (_b) {
|
|
3251
|
-
case "
|
|
3251
|
+
case "AuthorizationError": return [3, 2];
|
|
3252
3252
|
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
3253
|
-
case "
|
|
3253
|
+
case "InternalError": return [3, 4];
|
|
3254
3254
|
case "com.amazonaws.sns#InternalErrorException": return [3, 4];
|
|
3255
|
-
case "
|
|
3255
|
+
case "InvalidParameter": return [3, 6];
|
|
3256
3256
|
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
3257
|
-
case "
|
|
3257
|
+
case "ResourceNotFound": return [3, 8];
|
|
3258
3258
|
case "com.amazonaws.sns#ResourceNotFoundException": return [3, 8];
|
|
3259
|
-
case "
|
|
3259
|
+
case "Throttled": return [3, 10];
|
|
3260
3260
|
case "com.amazonaws.sns#ThrottledException": return [3, 10];
|
|
3261
3261
|
case "VerificationException": return [3, 12];
|
|
3262
3262
|
case "com.amazonaws.sns#VerificationException": return [3, 12];
|
|
@@ -5274,6 +5274,21 @@ var parseBody = function (streamBody, context) {
|
|
|
5274
5274
|
return {};
|
|
5275
5275
|
});
|
|
5276
5276
|
};
|
|
5277
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5278
|
+
var value;
|
|
5279
|
+
var _a;
|
|
5280
|
+
return __generator(this, function (_b) {
|
|
5281
|
+
switch (_b.label) {
|
|
5282
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
5283
|
+
case 1:
|
|
5284
|
+
value = _b.sent();
|
|
5285
|
+
if (value.Error) {
|
|
5286
|
+
value.Error.message = (_a = value.Error.message) !== null && _a !== void 0 ? _a : value.Error.Message;
|
|
5287
|
+
}
|
|
5288
|
+
return [2, value];
|
|
5289
|
+
}
|
|
5290
|
+
});
|
|
5291
|
+
}); };
|
|
5277
5292
|
var buildFormUrlencodedString = function (formEntries) {
|
|
5278
5293
|
return Object.entries(formEntries)
|
|
5279
5294
|
.map(function (_a) {
|