@aws-sdk/client-sns 3.312.0 → 3.315.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/dist-cjs/protocols/Aws_query.js +85 -126
- package/dist-es/protocols/Aws_query.js +86 -127
- package/package.json +6 -6
|
@@ -477,7 +477,7 @@ const de_AddPermissionCommand = async (output, context) => {
|
|
|
477
477
|
const response = {
|
|
478
478
|
$metadata: deserializeMetadata(output),
|
|
479
479
|
};
|
|
480
|
-
return
|
|
480
|
+
return response;
|
|
481
481
|
};
|
|
482
482
|
exports.de_AddPermissionCommand = de_AddPermissionCommand;
|
|
483
483
|
const de_AddPermissionCommandError = async (output, context) => {
|
|
@@ -501,10 +501,9 @@ const de_AddPermissionCommandError = async (output, context) => {
|
|
|
501
501
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
502
502
|
default:
|
|
503
503
|
const parsedBody = parsedOutput.body;
|
|
504
|
-
|
|
504
|
+
return throwDefaultError({
|
|
505
505
|
output,
|
|
506
506
|
parsedBody: parsedBody.Error,
|
|
507
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
508
507
|
errorCode,
|
|
509
508
|
});
|
|
510
509
|
}
|
|
@@ -520,7 +519,7 @@ const de_CheckIfPhoneNumberIsOptedOutCommand = async (output, context) => {
|
|
|
520
519
|
$metadata: deserializeMetadata(output),
|
|
521
520
|
...contents,
|
|
522
521
|
};
|
|
523
|
-
return
|
|
522
|
+
return response;
|
|
524
523
|
};
|
|
525
524
|
exports.de_CheckIfPhoneNumberIsOptedOutCommand = de_CheckIfPhoneNumberIsOptedOutCommand;
|
|
526
525
|
const de_CheckIfPhoneNumberIsOptedOutCommandError = async (output, context) => {
|
|
@@ -544,10 +543,9 @@ const de_CheckIfPhoneNumberIsOptedOutCommandError = async (output, context) => {
|
|
|
544
543
|
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
545
544
|
default:
|
|
546
545
|
const parsedBody = parsedOutput.body;
|
|
547
|
-
|
|
546
|
+
return throwDefaultError({
|
|
548
547
|
output,
|
|
549
548
|
parsedBody: parsedBody.Error,
|
|
550
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
551
549
|
errorCode,
|
|
552
550
|
});
|
|
553
551
|
}
|
|
@@ -563,7 +561,7 @@ const de_ConfirmSubscriptionCommand = async (output, context) => {
|
|
|
563
561
|
$metadata: deserializeMetadata(output),
|
|
564
562
|
...contents,
|
|
565
563
|
};
|
|
566
|
-
return
|
|
564
|
+
return response;
|
|
567
565
|
};
|
|
568
566
|
exports.de_ConfirmSubscriptionCommand = de_ConfirmSubscriptionCommand;
|
|
569
567
|
const de_ConfirmSubscriptionCommandError = async (output, context) => {
|
|
@@ -593,10 +591,9 @@ const de_ConfirmSubscriptionCommandError = async (output, context) => {
|
|
|
593
591
|
throw await de_SubscriptionLimitExceededExceptionRes(parsedOutput, context);
|
|
594
592
|
default:
|
|
595
593
|
const parsedBody = parsedOutput.body;
|
|
596
|
-
|
|
594
|
+
return throwDefaultError({
|
|
597
595
|
output,
|
|
598
596
|
parsedBody: parsedBody.Error,
|
|
599
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
600
597
|
errorCode,
|
|
601
598
|
});
|
|
602
599
|
}
|
|
@@ -612,7 +609,7 @@ const de_CreatePlatformApplicationCommand = async (output, context) => {
|
|
|
612
609
|
$metadata: deserializeMetadata(output),
|
|
613
610
|
...contents,
|
|
614
611
|
};
|
|
615
|
-
return
|
|
612
|
+
return response;
|
|
616
613
|
};
|
|
617
614
|
exports.de_CreatePlatformApplicationCommand = de_CreatePlatformApplicationCommand;
|
|
618
615
|
const de_CreatePlatformApplicationCommandError = async (output, context) => {
|
|
@@ -633,10 +630,9 @@ const de_CreatePlatformApplicationCommandError = async (output, context) => {
|
|
|
633
630
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
634
631
|
default:
|
|
635
632
|
const parsedBody = parsedOutput.body;
|
|
636
|
-
|
|
633
|
+
return throwDefaultError({
|
|
637
634
|
output,
|
|
638
635
|
parsedBody: parsedBody.Error,
|
|
639
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
640
636
|
errorCode,
|
|
641
637
|
});
|
|
642
638
|
}
|
|
@@ -652,7 +648,7 @@ const de_CreatePlatformEndpointCommand = async (output, context) => {
|
|
|
652
648
|
$metadata: deserializeMetadata(output),
|
|
653
649
|
...contents,
|
|
654
650
|
};
|
|
655
|
-
return
|
|
651
|
+
return response;
|
|
656
652
|
};
|
|
657
653
|
exports.de_CreatePlatformEndpointCommand = de_CreatePlatformEndpointCommand;
|
|
658
654
|
const de_CreatePlatformEndpointCommandError = async (output, context) => {
|
|
@@ -676,10 +672,9 @@ const de_CreatePlatformEndpointCommandError = async (output, context) => {
|
|
|
676
672
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
677
673
|
default:
|
|
678
674
|
const parsedBody = parsedOutput.body;
|
|
679
|
-
|
|
675
|
+
return throwDefaultError({
|
|
680
676
|
output,
|
|
681
677
|
parsedBody: parsedBody.Error,
|
|
682
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
683
678
|
errorCode,
|
|
684
679
|
});
|
|
685
680
|
}
|
|
@@ -695,7 +690,7 @@ const de_CreateSMSSandboxPhoneNumberCommand = async (output, context) => {
|
|
|
695
690
|
$metadata: deserializeMetadata(output),
|
|
696
691
|
...contents,
|
|
697
692
|
};
|
|
698
|
-
return
|
|
693
|
+
return response;
|
|
699
694
|
};
|
|
700
695
|
exports.de_CreateSMSSandboxPhoneNumberCommand = de_CreateSMSSandboxPhoneNumberCommand;
|
|
701
696
|
const de_CreateSMSSandboxPhoneNumberCommandError = async (output, context) => {
|
|
@@ -725,10 +720,9 @@ const de_CreateSMSSandboxPhoneNumberCommandError = async (output, context) => {
|
|
|
725
720
|
throw await de_UserErrorExceptionRes(parsedOutput, context);
|
|
726
721
|
default:
|
|
727
722
|
const parsedBody = parsedOutput.body;
|
|
728
|
-
|
|
723
|
+
return throwDefaultError({
|
|
729
724
|
output,
|
|
730
725
|
parsedBody: parsedBody.Error,
|
|
731
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
732
726
|
errorCode,
|
|
733
727
|
});
|
|
734
728
|
}
|
|
@@ -744,7 +738,7 @@ const de_CreateTopicCommand = async (output, context) => {
|
|
|
744
738
|
$metadata: deserializeMetadata(output),
|
|
745
739
|
...contents,
|
|
746
740
|
};
|
|
747
|
-
return
|
|
741
|
+
return response;
|
|
748
742
|
};
|
|
749
743
|
exports.de_CreateTopicCommand = de_CreateTopicCommand;
|
|
750
744
|
const de_CreateTopicCommandError = async (output, context) => {
|
|
@@ -783,10 +777,9 @@ const de_CreateTopicCommandError = async (output, context) => {
|
|
|
783
777
|
throw await de_TopicLimitExceededExceptionRes(parsedOutput, context);
|
|
784
778
|
default:
|
|
785
779
|
const parsedBody = parsedOutput.body;
|
|
786
|
-
|
|
780
|
+
return throwDefaultError({
|
|
787
781
|
output,
|
|
788
782
|
parsedBody: parsedBody.Error,
|
|
789
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
790
783
|
errorCode,
|
|
791
784
|
});
|
|
792
785
|
}
|
|
@@ -799,7 +792,7 @@ const de_DeleteEndpointCommand = async (output, context) => {
|
|
|
799
792
|
const response = {
|
|
800
793
|
$metadata: deserializeMetadata(output),
|
|
801
794
|
};
|
|
802
|
-
return
|
|
795
|
+
return response;
|
|
803
796
|
};
|
|
804
797
|
exports.de_DeleteEndpointCommand = de_DeleteEndpointCommand;
|
|
805
798
|
const de_DeleteEndpointCommandError = async (output, context) => {
|
|
@@ -820,10 +813,9 @@ const de_DeleteEndpointCommandError = async (output, context) => {
|
|
|
820
813
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
821
814
|
default:
|
|
822
815
|
const parsedBody = parsedOutput.body;
|
|
823
|
-
|
|
816
|
+
return throwDefaultError({
|
|
824
817
|
output,
|
|
825
818
|
parsedBody: parsedBody.Error,
|
|
826
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
827
819
|
errorCode,
|
|
828
820
|
});
|
|
829
821
|
}
|
|
@@ -836,7 +828,7 @@ const de_DeletePlatformApplicationCommand = async (output, context) => {
|
|
|
836
828
|
const response = {
|
|
837
829
|
$metadata: deserializeMetadata(output),
|
|
838
830
|
};
|
|
839
|
-
return
|
|
831
|
+
return response;
|
|
840
832
|
};
|
|
841
833
|
exports.de_DeletePlatformApplicationCommand = de_DeletePlatformApplicationCommand;
|
|
842
834
|
const de_DeletePlatformApplicationCommandError = async (output, context) => {
|
|
@@ -857,10 +849,9 @@ const de_DeletePlatformApplicationCommandError = async (output, context) => {
|
|
|
857
849
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
858
850
|
default:
|
|
859
851
|
const parsedBody = parsedOutput.body;
|
|
860
|
-
|
|
852
|
+
return throwDefaultError({
|
|
861
853
|
output,
|
|
862
854
|
parsedBody: parsedBody.Error,
|
|
863
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
864
855
|
errorCode,
|
|
865
856
|
});
|
|
866
857
|
}
|
|
@@ -876,7 +867,7 @@ const de_DeleteSMSSandboxPhoneNumberCommand = async (output, context) => {
|
|
|
876
867
|
$metadata: deserializeMetadata(output),
|
|
877
868
|
...contents,
|
|
878
869
|
};
|
|
879
|
-
return
|
|
870
|
+
return response;
|
|
880
871
|
};
|
|
881
872
|
exports.de_DeleteSMSSandboxPhoneNumberCommand = de_DeleteSMSSandboxPhoneNumberCommand;
|
|
882
873
|
const de_DeleteSMSSandboxPhoneNumberCommandError = async (output, context) => {
|
|
@@ -906,10 +897,9 @@ const de_DeleteSMSSandboxPhoneNumberCommandError = async (output, context) => {
|
|
|
906
897
|
throw await de_UserErrorExceptionRes(parsedOutput, context);
|
|
907
898
|
default:
|
|
908
899
|
const parsedBody = parsedOutput.body;
|
|
909
|
-
|
|
900
|
+
return throwDefaultError({
|
|
910
901
|
output,
|
|
911
902
|
parsedBody: parsedBody.Error,
|
|
912
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
913
903
|
errorCode,
|
|
914
904
|
});
|
|
915
905
|
}
|
|
@@ -922,7 +912,7 @@ const de_DeleteTopicCommand = async (output, context) => {
|
|
|
922
912
|
const response = {
|
|
923
913
|
$metadata: deserializeMetadata(output),
|
|
924
914
|
};
|
|
925
|
-
return
|
|
915
|
+
return response;
|
|
926
916
|
};
|
|
927
917
|
exports.de_DeleteTopicCommand = de_DeleteTopicCommand;
|
|
928
918
|
const de_DeleteTopicCommandError = async (output, context) => {
|
|
@@ -955,10 +945,9 @@ const de_DeleteTopicCommandError = async (output, context) => {
|
|
|
955
945
|
throw await de_TagPolicyExceptionRes(parsedOutput, context);
|
|
956
946
|
default:
|
|
957
947
|
const parsedBody = parsedOutput.body;
|
|
958
|
-
|
|
948
|
+
return throwDefaultError({
|
|
959
949
|
output,
|
|
960
950
|
parsedBody: parsedBody.Error,
|
|
961
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
962
951
|
errorCode,
|
|
963
952
|
});
|
|
964
953
|
}
|
|
@@ -974,7 +963,7 @@ const de_GetDataProtectionPolicyCommand = async (output, context) => {
|
|
|
974
963
|
$metadata: deserializeMetadata(output),
|
|
975
964
|
...contents,
|
|
976
965
|
};
|
|
977
|
-
return
|
|
966
|
+
return response;
|
|
978
967
|
};
|
|
979
968
|
exports.de_GetDataProtectionPolicyCommand = de_GetDataProtectionPolicyCommand;
|
|
980
969
|
const de_GetDataProtectionPolicyCommandError = async (output, context) => {
|
|
@@ -1001,10 +990,9 @@ const de_GetDataProtectionPolicyCommandError = async (output, context) => {
|
|
|
1001
990
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1002
991
|
default:
|
|
1003
992
|
const parsedBody = parsedOutput.body;
|
|
1004
|
-
|
|
993
|
+
return throwDefaultError({
|
|
1005
994
|
output,
|
|
1006
995
|
parsedBody: parsedBody.Error,
|
|
1007
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1008
996
|
errorCode,
|
|
1009
997
|
});
|
|
1010
998
|
}
|
|
@@ -1020,7 +1008,7 @@ const de_GetEndpointAttributesCommand = async (output, context) => {
|
|
|
1020
1008
|
$metadata: deserializeMetadata(output),
|
|
1021
1009
|
...contents,
|
|
1022
1010
|
};
|
|
1023
|
-
return
|
|
1011
|
+
return response;
|
|
1024
1012
|
};
|
|
1025
1013
|
exports.de_GetEndpointAttributesCommand = de_GetEndpointAttributesCommand;
|
|
1026
1014
|
const de_GetEndpointAttributesCommandError = async (output, context) => {
|
|
@@ -1044,10 +1032,9 @@ const de_GetEndpointAttributesCommandError = async (output, context) => {
|
|
|
1044
1032
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1045
1033
|
default:
|
|
1046
1034
|
const parsedBody = parsedOutput.body;
|
|
1047
|
-
|
|
1035
|
+
return throwDefaultError({
|
|
1048
1036
|
output,
|
|
1049
1037
|
parsedBody: parsedBody.Error,
|
|
1050
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1051
1038
|
errorCode,
|
|
1052
1039
|
});
|
|
1053
1040
|
}
|
|
@@ -1063,7 +1050,7 @@ const de_GetPlatformApplicationAttributesCommand = async (output, context) => {
|
|
|
1063
1050
|
$metadata: deserializeMetadata(output),
|
|
1064
1051
|
...contents,
|
|
1065
1052
|
};
|
|
1066
|
-
return
|
|
1053
|
+
return response;
|
|
1067
1054
|
};
|
|
1068
1055
|
exports.de_GetPlatformApplicationAttributesCommand = de_GetPlatformApplicationAttributesCommand;
|
|
1069
1056
|
const de_GetPlatformApplicationAttributesCommandError = async (output, context) => {
|
|
@@ -1087,10 +1074,9 @@ const de_GetPlatformApplicationAttributesCommandError = async (output, context)
|
|
|
1087
1074
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1088
1075
|
default:
|
|
1089
1076
|
const parsedBody = parsedOutput.body;
|
|
1090
|
-
|
|
1077
|
+
return throwDefaultError({
|
|
1091
1078
|
output,
|
|
1092
1079
|
parsedBody: parsedBody.Error,
|
|
1093
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1094
1080
|
errorCode,
|
|
1095
1081
|
});
|
|
1096
1082
|
}
|
|
@@ -1106,7 +1092,7 @@ const de_GetSMSAttributesCommand = async (output, context) => {
|
|
|
1106
1092
|
$metadata: deserializeMetadata(output),
|
|
1107
1093
|
...contents,
|
|
1108
1094
|
};
|
|
1109
|
-
return
|
|
1095
|
+
return response;
|
|
1110
1096
|
};
|
|
1111
1097
|
exports.de_GetSMSAttributesCommand = de_GetSMSAttributesCommand;
|
|
1112
1098
|
const de_GetSMSAttributesCommandError = async (output, context) => {
|
|
@@ -1130,10 +1116,9 @@ const de_GetSMSAttributesCommandError = async (output, context) => {
|
|
|
1130
1116
|
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1131
1117
|
default:
|
|
1132
1118
|
const parsedBody = parsedOutput.body;
|
|
1133
|
-
|
|
1119
|
+
return throwDefaultError({
|
|
1134
1120
|
output,
|
|
1135
1121
|
parsedBody: parsedBody.Error,
|
|
1136
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1137
1122
|
errorCode,
|
|
1138
1123
|
});
|
|
1139
1124
|
}
|
|
@@ -1149,7 +1134,7 @@ const de_GetSMSSandboxAccountStatusCommand = async (output, context) => {
|
|
|
1149
1134
|
$metadata: deserializeMetadata(output),
|
|
1150
1135
|
...contents,
|
|
1151
1136
|
};
|
|
1152
|
-
return
|
|
1137
|
+
return response;
|
|
1153
1138
|
};
|
|
1154
1139
|
exports.de_GetSMSSandboxAccountStatusCommand = de_GetSMSSandboxAccountStatusCommand;
|
|
1155
1140
|
const de_GetSMSSandboxAccountStatusCommandError = async (output, context) => {
|
|
@@ -1170,10 +1155,9 @@ const de_GetSMSSandboxAccountStatusCommandError = async (output, context) => {
|
|
|
1170
1155
|
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1171
1156
|
default:
|
|
1172
1157
|
const parsedBody = parsedOutput.body;
|
|
1173
|
-
|
|
1158
|
+
return throwDefaultError({
|
|
1174
1159
|
output,
|
|
1175
1160
|
parsedBody: parsedBody.Error,
|
|
1176
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1177
1161
|
errorCode,
|
|
1178
1162
|
});
|
|
1179
1163
|
}
|
|
@@ -1189,7 +1173,7 @@ const de_GetSubscriptionAttributesCommand = async (output, context) => {
|
|
|
1189
1173
|
$metadata: deserializeMetadata(output),
|
|
1190
1174
|
...contents,
|
|
1191
1175
|
};
|
|
1192
|
-
return
|
|
1176
|
+
return response;
|
|
1193
1177
|
};
|
|
1194
1178
|
exports.de_GetSubscriptionAttributesCommand = de_GetSubscriptionAttributesCommand;
|
|
1195
1179
|
const de_GetSubscriptionAttributesCommandError = async (output, context) => {
|
|
@@ -1213,10 +1197,9 @@ const de_GetSubscriptionAttributesCommandError = async (output, context) => {
|
|
|
1213
1197
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1214
1198
|
default:
|
|
1215
1199
|
const parsedBody = parsedOutput.body;
|
|
1216
|
-
|
|
1200
|
+
return throwDefaultError({
|
|
1217
1201
|
output,
|
|
1218
1202
|
parsedBody: parsedBody.Error,
|
|
1219
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1220
1203
|
errorCode,
|
|
1221
1204
|
});
|
|
1222
1205
|
}
|
|
@@ -1232,7 +1215,7 @@ const de_GetTopicAttributesCommand = async (output, context) => {
|
|
|
1232
1215
|
$metadata: deserializeMetadata(output),
|
|
1233
1216
|
...contents,
|
|
1234
1217
|
};
|
|
1235
|
-
return
|
|
1218
|
+
return response;
|
|
1236
1219
|
};
|
|
1237
1220
|
exports.de_GetTopicAttributesCommand = de_GetTopicAttributesCommand;
|
|
1238
1221
|
const de_GetTopicAttributesCommandError = async (output, context) => {
|
|
@@ -1259,10 +1242,9 @@ const de_GetTopicAttributesCommandError = async (output, context) => {
|
|
|
1259
1242
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1260
1243
|
default:
|
|
1261
1244
|
const parsedBody = parsedOutput.body;
|
|
1262
|
-
|
|
1245
|
+
return throwDefaultError({
|
|
1263
1246
|
output,
|
|
1264
1247
|
parsedBody: parsedBody.Error,
|
|
1265
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1266
1248
|
errorCode,
|
|
1267
1249
|
});
|
|
1268
1250
|
}
|
|
@@ -1278,7 +1260,7 @@ const de_ListEndpointsByPlatformApplicationCommand = async (output, context) =>
|
|
|
1278
1260
|
$metadata: deserializeMetadata(output),
|
|
1279
1261
|
...contents,
|
|
1280
1262
|
};
|
|
1281
|
-
return
|
|
1263
|
+
return response;
|
|
1282
1264
|
};
|
|
1283
1265
|
exports.de_ListEndpointsByPlatformApplicationCommand = de_ListEndpointsByPlatformApplicationCommand;
|
|
1284
1266
|
const de_ListEndpointsByPlatformApplicationCommandError = async (output, context) => {
|
|
@@ -1302,10 +1284,9 @@ const de_ListEndpointsByPlatformApplicationCommandError = async (output, context
|
|
|
1302
1284
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1303
1285
|
default:
|
|
1304
1286
|
const parsedBody = parsedOutput.body;
|
|
1305
|
-
|
|
1287
|
+
return throwDefaultError({
|
|
1306
1288
|
output,
|
|
1307
1289
|
parsedBody: parsedBody.Error,
|
|
1308
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1309
1290
|
errorCode,
|
|
1310
1291
|
});
|
|
1311
1292
|
}
|
|
@@ -1321,7 +1302,7 @@ const de_ListOriginationNumbersCommand = async (output, context) => {
|
|
|
1321
1302
|
$metadata: deserializeMetadata(output),
|
|
1322
1303
|
...contents,
|
|
1323
1304
|
};
|
|
1324
|
-
return
|
|
1305
|
+
return response;
|
|
1325
1306
|
};
|
|
1326
1307
|
exports.de_ListOriginationNumbersCommand = de_ListOriginationNumbersCommand;
|
|
1327
1308
|
const de_ListOriginationNumbersCommandError = async (output, context) => {
|
|
@@ -1348,10 +1329,9 @@ const de_ListOriginationNumbersCommandError = async (output, context) => {
|
|
|
1348
1329
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1349
1330
|
default:
|
|
1350
1331
|
const parsedBody = parsedOutput.body;
|
|
1351
|
-
|
|
1332
|
+
return throwDefaultError({
|
|
1352
1333
|
output,
|
|
1353
1334
|
parsedBody: parsedBody.Error,
|
|
1354
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1355
1335
|
errorCode,
|
|
1356
1336
|
});
|
|
1357
1337
|
}
|
|
@@ -1367,7 +1347,7 @@ const de_ListPhoneNumbersOptedOutCommand = async (output, context) => {
|
|
|
1367
1347
|
$metadata: deserializeMetadata(output),
|
|
1368
1348
|
...contents,
|
|
1369
1349
|
};
|
|
1370
|
-
return
|
|
1350
|
+
return response;
|
|
1371
1351
|
};
|
|
1372
1352
|
exports.de_ListPhoneNumbersOptedOutCommand = de_ListPhoneNumbersOptedOutCommand;
|
|
1373
1353
|
const de_ListPhoneNumbersOptedOutCommandError = async (output, context) => {
|
|
@@ -1391,10 +1371,9 @@ const de_ListPhoneNumbersOptedOutCommandError = async (output, context) => {
|
|
|
1391
1371
|
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1392
1372
|
default:
|
|
1393
1373
|
const parsedBody = parsedOutput.body;
|
|
1394
|
-
|
|
1374
|
+
return throwDefaultError({
|
|
1395
1375
|
output,
|
|
1396
1376
|
parsedBody: parsedBody.Error,
|
|
1397
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1398
1377
|
errorCode,
|
|
1399
1378
|
});
|
|
1400
1379
|
}
|
|
@@ -1410,7 +1389,7 @@ const de_ListPlatformApplicationsCommand = async (output, context) => {
|
|
|
1410
1389
|
$metadata: deserializeMetadata(output),
|
|
1411
1390
|
...contents,
|
|
1412
1391
|
};
|
|
1413
|
-
return
|
|
1392
|
+
return response;
|
|
1414
1393
|
};
|
|
1415
1394
|
exports.de_ListPlatformApplicationsCommand = de_ListPlatformApplicationsCommand;
|
|
1416
1395
|
const de_ListPlatformApplicationsCommandError = async (output, context) => {
|
|
@@ -1431,10 +1410,9 @@ const de_ListPlatformApplicationsCommandError = async (output, context) => {
|
|
|
1431
1410
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1432
1411
|
default:
|
|
1433
1412
|
const parsedBody = parsedOutput.body;
|
|
1434
|
-
|
|
1413
|
+
return throwDefaultError({
|
|
1435
1414
|
output,
|
|
1436
1415
|
parsedBody: parsedBody.Error,
|
|
1437
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1438
1416
|
errorCode,
|
|
1439
1417
|
});
|
|
1440
1418
|
}
|
|
@@ -1450,7 +1428,7 @@ const de_ListSMSSandboxPhoneNumbersCommand = async (output, context) => {
|
|
|
1450
1428
|
$metadata: deserializeMetadata(output),
|
|
1451
1429
|
...contents,
|
|
1452
1430
|
};
|
|
1453
|
-
return
|
|
1431
|
+
return response;
|
|
1454
1432
|
};
|
|
1455
1433
|
exports.de_ListSMSSandboxPhoneNumbersCommand = de_ListSMSSandboxPhoneNumbersCommand;
|
|
1456
1434
|
const de_ListSMSSandboxPhoneNumbersCommandError = async (output, context) => {
|
|
@@ -1477,10 +1455,9 @@ const de_ListSMSSandboxPhoneNumbersCommandError = async (output, context) => {
|
|
|
1477
1455
|
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1478
1456
|
default:
|
|
1479
1457
|
const parsedBody = parsedOutput.body;
|
|
1480
|
-
|
|
1458
|
+
return throwDefaultError({
|
|
1481
1459
|
output,
|
|
1482
1460
|
parsedBody: parsedBody.Error,
|
|
1483
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1484
1461
|
errorCode,
|
|
1485
1462
|
});
|
|
1486
1463
|
}
|
|
@@ -1496,7 +1473,7 @@ const de_ListSubscriptionsCommand = async (output, context) => {
|
|
|
1496
1473
|
$metadata: deserializeMetadata(output),
|
|
1497
1474
|
...contents,
|
|
1498
1475
|
};
|
|
1499
|
-
return
|
|
1476
|
+
return response;
|
|
1500
1477
|
};
|
|
1501
1478
|
exports.de_ListSubscriptionsCommand = de_ListSubscriptionsCommand;
|
|
1502
1479
|
const de_ListSubscriptionsCommandError = async (output, context) => {
|
|
@@ -1517,10 +1494,9 @@ const de_ListSubscriptionsCommandError = async (output, context) => {
|
|
|
1517
1494
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1518
1495
|
default:
|
|
1519
1496
|
const parsedBody = parsedOutput.body;
|
|
1520
|
-
|
|
1497
|
+
return throwDefaultError({
|
|
1521
1498
|
output,
|
|
1522
1499
|
parsedBody: parsedBody.Error,
|
|
1523
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1524
1500
|
errorCode,
|
|
1525
1501
|
});
|
|
1526
1502
|
}
|
|
@@ -1536,7 +1512,7 @@ const de_ListSubscriptionsByTopicCommand = async (output, context) => {
|
|
|
1536
1512
|
$metadata: deserializeMetadata(output),
|
|
1537
1513
|
...contents,
|
|
1538
1514
|
};
|
|
1539
|
-
return
|
|
1515
|
+
return response;
|
|
1540
1516
|
};
|
|
1541
1517
|
exports.de_ListSubscriptionsByTopicCommand = de_ListSubscriptionsByTopicCommand;
|
|
1542
1518
|
const de_ListSubscriptionsByTopicCommandError = async (output, context) => {
|
|
@@ -1560,10 +1536,9 @@ const de_ListSubscriptionsByTopicCommandError = async (output, context) => {
|
|
|
1560
1536
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1561
1537
|
default:
|
|
1562
1538
|
const parsedBody = parsedOutput.body;
|
|
1563
|
-
|
|
1539
|
+
return throwDefaultError({
|
|
1564
1540
|
output,
|
|
1565
1541
|
parsedBody: parsedBody.Error,
|
|
1566
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1567
1542
|
errorCode,
|
|
1568
1543
|
});
|
|
1569
1544
|
}
|
|
@@ -1579,7 +1554,7 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1579
1554
|
$metadata: deserializeMetadata(output),
|
|
1580
1555
|
...contents,
|
|
1581
1556
|
};
|
|
1582
|
-
return
|
|
1557
|
+
return response;
|
|
1583
1558
|
};
|
|
1584
1559
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1585
1560
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -1606,10 +1581,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1606
1581
|
throw await de_TagPolicyExceptionRes(parsedOutput, context);
|
|
1607
1582
|
default:
|
|
1608
1583
|
const parsedBody = parsedOutput.body;
|
|
1609
|
-
|
|
1584
|
+
return throwDefaultError({
|
|
1610
1585
|
output,
|
|
1611
1586
|
parsedBody: parsedBody.Error,
|
|
1612
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1613
1587
|
errorCode,
|
|
1614
1588
|
});
|
|
1615
1589
|
}
|
|
@@ -1625,7 +1599,7 @@ const de_ListTopicsCommand = async (output, context) => {
|
|
|
1625
1599
|
$metadata: deserializeMetadata(output),
|
|
1626
1600
|
...contents,
|
|
1627
1601
|
};
|
|
1628
|
-
return
|
|
1602
|
+
return response;
|
|
1629
1603
|
};
|
|
1630
1604
|
exports.de_ListTopicsCommand = de_ListTopicsCommand;
|
|
1631
1605
|
const de_ListTopicsCommandError = async (output, context) => {
|
|
@@ -1646,10 +1620,9 @@ const de_ListTopicsCommandError = async (output, context) => {
|
|
|
1646
1620
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1647
1621
|
default:
|
|
1648
1622
|
const parsedBody = parsedOutput.body;
|
|
1649
|
-
|
|
1623
|
+
return throwDefaultError({
|
|
1650
1624
|
output,
|
|
1651
1625
|
parsedBody: parsedBody.Error,
|
|
1652
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1653
1626
|
errorCode,
|
|
1654
1627
|
});
|
|
1655
1628
|
}
|
|
@@ -1665,7 +1638,7 @@ const de_OptInPhoneNumberCommand = async (output, context) => {
|
|
|
1665
1638
|
$metadata: deserializeMetadata(output),
|
|
1666
1639
|
...contents,
|
|
1667
1640
|
};
|
|
1668
|
-
return
|
|
1641
|
+
return response;
|
|
1669
1642
|
};
|
|
1670
1643
|
exports.de_OptInPhoneNumberCommand = de_OptInPhoneNumberCommand;
|
|
1671
1644
|
const de_OptInPhoneNumberCommandError = async (output, context) => {
|
|
@@ -1689,10 +1662,9 @@ const de_OptInPhoneNumberCommandError = async (output, context) => {
|
|
|
1689
1662
|
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1690
1663
|
default:
|
|
1691
1664
|
const parsedBody = parsedOutput.body;
|
|
1692
|
-
|
|
1665
|
+
return throwDefaultError({
|
|
1693
1666
|
output,
|
|
1694
1667
|
parsedBody: parsedBody.Error,
|
|
1695
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1696
1668
|
errorCode,
|
|
1697
1669
|
});
|
|
1698
1670
|
}
|
|
@@ -1708,7 +1680,7 @@ const de_PublishCommand = async (output, context) => {
|
|
|
1708
1680
|
$metadata: deserializeMetadata(output),
|
|
1709
1681
|
...contents,
|
|
1710
1682
|
};
|
|
1711
|
-
return
|
|
1683
|
+
return response;
|
|
1712
1684
|
};
|
|
1713
1685
|
exports.de_PublishCommand = de_PublishCommand;
|
|
1714
1686
|
const de_PublishCommandError = async (output, context) => {
|
|
@@ -1765,10 +1737,9 @@ const de_PublishCommandError = async (output, context) => {
|
|
|
1765
1737
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1766
1738
|
default:
|
|
1767
1739
|
const parsedBody = parsedOutput.body;
|
|
1768
|
-
|
|
1740
|
+
return throwDefaultError({
|
|
1769
1741
|
output,
|
|
1770
1742
|
parsedBody: parsedBody.Error,
|
|
1771
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1772
1743
|
errorCode,
|
|
1773
1744
|
});
|
|
1774
1745
|
}
|
|
@@ -1784,7 +1755,7 @@ const de_PublishBatchCommand = async (output, context) => {
|
|
|
1784
1755
|
$metadata: deserializeMetadata(output),
|
|
1785
1756
|
...contents,
|
|
1786
1757
|
};
|
|
1787
|
-
return
|
|
1758
|
+
return response;
|
|
1788
1759
|
};
|
|
1789
1760
|
exports.de_PublishBatchCommand = de_PublishBatchCommand;
|
|
1790
1761
|
const de_PublishBatchCommandError = async (output, context) => {
|
|
@@ -1856,10 +1827,9 @@ const de_PublishBatchCommandError = async (output, context) => {
|
|
|
1856
1827
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1857
1828
|
default:
|
|
1858
1829
|
const parsedBody = parsedOutput.body;
|
|
1859
|
-
|
|
1830
|
+
return throwDefaultError({
|
|
1860
1831
|
output,
|
|
1861
1832
|
parsedBody: parsedBody.Error,
|
|
1862
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1863
1833
|
errorCode,
|
|
1864
1834
|
});
|
|
1865
1835
|
}
|
|
@@ -1872,7 +1842,7 @@ const de_PutDataProtectionPolicyCommand = async (output, context) => {
|
|
|
1872
1842
|
const response = {
|
|
1873
1843
|
$metadata: deserializeMetadata(output),
|
|
1874
1844
|
};
|
|
1875
|
-
return
|
|
1845
|
+
return response;
|
|
1876
1846
|
};
|
|
1877
1847
|
exports.de_PutDataProtectionPolicyCommand = de_PutDataProtectionPolicyCommand;
|
|
1878
1848
|
const de_PutDataProtectionPolicyCommandError = async (output, context) => {
|
|
@@ -1899,10 +1869,9 @@ const de_PutDataProtectionPolicyCommandError = async (output, context) => {
|
|
|
1899
1869
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1900
1870
|
default:
|
|
1901
1871
|
const parsedBody = parsedOutput.body;
|
|
1902
|
-
|
|
1872
|
+
return throwDefaultError({
|
|
1903
1873
|
output,
|
|
1904
1874
|
parsedBody: parsedBody.Error,
|
|
1905
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1906
1875
|
errorCode,
|
|
1907
1876
|
});
|
|
1908
1877
|
}
|
|
@@ -1915,7 +1884,7 @@ const de_RemovePermissionCommand = async (output, context) => {
|
|
|
1915
1884
|
const response = {
|
|
1916
1885
|
$metadata: deserializeMetadata(output),
|
|
1917
1886
|
};
|
|
1918
|
-
return
|
|
1887
|
+
return response;
|
|
1919
1888
|
};
|
|
1920
1889
|
exports.de_RemovePermissionCommand = de_RemovePermissionCommand;
|
|
1921
1890
|
const de_RemovePermissionCommandError = async (output, context) => {
|
|
@@ -1939,10 +1908,9 @@ const de_RemovePermissionCommandError = async (output, context) => {
|
|
|
1939
1908
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1940
1909
|
default:
|
|
1941
1910
|
const parsedBody = parsedOutput.body;
|
|
1942
|
-
|
|
1911
|
+
return throwDefaultError({
|
|
1943
1912
|
output,
|
|
1944
1913
|
parsedBody: parsedBody.Error,
|
|
1945
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1946
1914
|
errorCode,
|
|
1947
1915
|
});
|
|
1948
1916
|
}
|
|
@@ -1955,7 +1923,7 @@ const de_SetEndpointAttributesCommand = async (output, context) => {
|
|
|
1955
1923
|
const response = {
|
|
1956
1924
|
$metadata: deserializeMetadata(output),
|
|
1957
1925
|
};
|
|
1958
|
-
return
|
|
1926
|
+
return response;
|
|
1959
1927
|
};
|
|
1960
1928
|
exports.de_SetEndpointAttributesCommand = de_SetEndpointAttributesCommand;
|
|
1961
1929
|
const de_SetEndpointAttributesCommandError = async (output, context) => {
|
|
@@ -1979,10 +1947,9 @@ const de_SetEndpointAttributesCommandError = async (output, context) => {
|
|
|
1979
1947
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1980
1948
|
default:
|
|
1981
1949
|
const parsedBody = parsedOutput.body;
|
|
1982
|
-
|
|
1950
|
+
return throwDefaultError({
|
|
1983
1951
|
output,
|
|
1984
1952
|
parsedBody: parsedBody.Error,
|
|
1985
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1986
1953
|
errorCode,
|
|
1987
1954
|
});
|
|
1988
1955
|
}
|
|
@@ -1995,7 +1962,7 @@ const de_SetPlatformApplicationAttributesCommand = async (output, context) => {
|
|
|
1995
1962
|
const response = {
|
|
1996
1963
|
$metadata: deserializeMetadata(output),
|
|
1997
1964
|
};
|
|
1998
|
-
return
|
|
1965
|
+
return response;
|
|
1999
1966
|
};
|
|
2000
1967
|
exports.de_SetPlatformApplicationAttributesCommand = de_SetPlatformApplicationAttributesCommand;
|
|
2001
1968
|
const de_SetPlatformApplicationAttributesCommandError = async (output, context) => {
|
|
@@ -2019,10 +1986,9 @@ const de_SetPlatformApplicationAttributesCommandError = async (output, context)
|
|
|
2019
1986
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2020
1987
|
default:
|
|
2021
1988
|
const parsedBody = parsedOutput.body;
|
|
2022
|
-
|
|
1989
|
+
return throwDefaultError({
|
|
2023
1990
|
output,
|
|
2024
1991
|
parsedBody: parsedBody.Error,
|
|
2025
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
2026
1992
|
errorCode,
|
|
2027
1993
|
});
|
|
2028
1994
|
}
|
|
@@ -2038,7 +2004,7 @@ const de_SetSMSAttributesCommand = async (output, context) => {
|
|
|
2038
2004
|
$metadata: deserializeMetadata(output),
|
|
2039
2005
|
...contents,
|
|
2040
2006
|
};
|
|
2041
|
-
return
|
|
2007
|
+
return response;
|
|
2042
2008
|
};
|
|
2043
2009
|
exports.de_SetSMSAttributesCommand = de_SetSMSAttributesCommand;
|
|
2044
2010
|
const de_SetSMSAttributesCommandError = async (output, context) => {
|
|
@@ -2062,10 +2028,9 @@ const de_SetSMSAttributesCommandError = async (output, context) => {
|
|
|
2062
2028
|
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
2063
2029
|
default:
|
|
2064
2030
|
const parsedBody = parsedOutput.body;
|
|
2065
|
-
|
|
2031
|
+
return throwDefaultError({
|
|
2066
2032
|
output,
|
|
2067
2033
|
parsedBody: parsedBody.Error,
|
|
2068
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
2069
2034
|
errorCode,
|
|
2070
2035
|
});
|
|
2071
2036
|
}
|
|
@@ -2078,7 +2043,7 @@ const de_SetSubscriptionAttributesCommand = async (output, context) => {
|
|
|
2078
2043
|
const response = {
|
|
2079
2044
|
$metadata: deserializeMetadata(output),
|
|
2080
2045
|
};
|
|
2081
|
-
return
|
|
2046
|
+
return response;
|
|
2082
2047
|
};
|
|
2083
2048
|
exports.de_SetSubscriptionAttributesCommand = de_SetSubscriptionAttributesCommand;
|
|
2084
2049
|
const de_SetSubscriptionAttributesCommandError = async (output, context) => {
|
|
@@ -2105,10 +2070,9 @@ const de_SetSubscriptionAttributesCommandError = async (output, context) => {
|
|
|
2105
2070
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2106
2071
|
default:
|
|
2107
2072
|
const parsedBody = parsedOutput.body;
|
|
2108
|
-
|
|
2073
|
+
return throwDefaultError({
|
|
2109
2074
|
output,
|
|
2110
2075
|
parsedBody: parsedBody.Error,
|
|
2111
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
2112
2076
|
errorCode,
|
|
2113
2077
|
});
|
|
2114
2078
|
}
|
|
@@ -2121,7 +2085,7 @@ const de_SetTopicAttributesCommand = async (output, context) => {
|
|
|
2121
2085
|
const response = {
|
|
2122
2086
|
$metadata: deserializeMetadata(output),
|
|
2123
2087
|
};
|
|
2124
|
-
return
|
|
2088
|
+
return response;
|
|
2125
2089
|
};
|
|
2126
2090
|
exports.de_SetTopicAttributesCommand = de_SetTopicAttributesCommand;
|
|
2127
2091
|
const de_SetTopicAttributesCommandError = async (output, context) => {
|
|
@@ -2148,10 +2112,9 @@ const de_SetTopicAttributesCommandError = async (output, context) => {
|
|
|
2148
2112
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2149
2113
|
default:
|
|
2150
2114
|
const parsedBody = parsedOutput.body;
|
|
2151
|
-
|
|
2115
|
+
return throwDefaultError({
|
|
2152
2116
|
output,
|
|
2153
2117
|
parsedBody: parsedBody.Error,
|
|
2154
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
2155
2118
|
errorCode,
|
|
2156
2119
|
});
|
|
2157
2120
|
}
|
|
@@ -2167,7 +2130,7 @@ const de_SubscribeCommand = async (output, context) => {
|
|
|
2167
2130
|
$metadata: deserializeMetadata(output),
|
|
2168
2131
|
...contents,
|
|
2169
2132
|
};
|
|
2170
|
-
return
|
|
2133
|
+
return response;
|
|
2171
2134
|
};
|
|
2172
2135
|
exports.de_SubscribeCommand = de_SubscribeCommand;
|
|
2173
2136
|
const de_SubscribeCommandError = async (output, context) => {
|
|
@@ -2200,10 +2163,9 @@ const de_SubscribeCommandError = async (output, context) => {
|
|
|
2200
2163
|
throw await de_SubscriptionLimitExceededExceptionRes(parsedOutput, context);
|
|
2201
2164
|
default:
|
|
2202
2165
|
const parsedBody = parsedOutput.body;
|
|
2203
|
-
|
|
2166
|
+
return throwDefaultError({
|
|
2204
2167
|
output,
|
|
2205
2168
|
parsedBody: parsedBody.Error,
|
|
2206
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
2207
2169
|
errorCode,
|
|
2208
2170
|
});
|
|
2209
2171
|
}
|
|
@@ -2219,7 +2181,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
2219
2181
|
$metadata: deserializeMetadata(output),
|
|
2220
2182
|
...contents,
|
|
2221
2183
|
};
|
|
2222
|
-
return
|
|
2184
|
+
return response;
|
|
2223
2185
|
};
|
|
2224
2186
|
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
2225
2187
|
const de_TagResourceCommandError = async (output, context) => {
|
|
@@ -2252,10 +2214,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
2252
2214
|
throw await de_TagPolicyExceptionRes(parsedOutput, context);
|
|
2253
2215
|
default:
|
|
2254
2216
|
const parsedBody = parsedOutput.body;
|
|
2255
|
-
|
|
2217
|
+
return throwDefaultError({
|
|
2256
2218
|
output,
|
|
2257
2219
|
parsedBody: parsedBody.Error,
|
|
2258
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
2259
2220
|
errorCode,
|
|
2260
2221
|
});
|
|
2261
2222
|
}
|
|
@@ -2268,7 +2229,7 @@ const de_UnsubscribeCommand = async (output, context) => {
|
|
|
2268
2229
|
const response = {
|
|
2269
2230
|
$metadata: deserializeMetadata(output),
|
|
2270
2231
|
};
|
|
2271
|
-
return
|
|
2232
|
+
return response;
|
|
2272
2233
|
};
|
|
2273
2234
|
exports.de_UnsubscribeCommand = de_UnsubscribeCommand;
|
|
2274
2235
|
const de_UnsubscribeCommandError = async (output, context) => {
|
|
@@ -2295,10 +2256,9 @@ const de_UnsubscribeCommandError = async (output, context) => {
|
|
|
2295
2256
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2296
2257
|
default:
|
|
2297
2258
|
const parsedBody = parsedOutput.body;
|
|
2298
|
-
|
|
2259
|
+
return throwDefaultError({
|
|
2299
2260
|
output,
|
|
2300
2261
|
parsedBody: parsedBody.Error,
|
|
2301
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
2302
2262
|
errorCode,
|
|
2303
2263
|
});
|
|
2304
2264
|
}
|
|
@@ -2314,7 +2274,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
2314
2274
|
$metadata: deserializeMetadata(output),
|
|
2315
2275
|
...contents,
|
|
2316
2276
|
};
|
|
2317
|
-
return
|
|
2277
|
+
return response;
|
|
2318
2278
|
};
|
|
2319
2279
|
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
2320
2280
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
@@ -2347,10 +2307,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
2347
2307
|
throw await de_TagPolicyExceptionRes(parsedOutput, context);
|
|
2348
2308
|
default:
|
|
2349
2309
|
const parsedBody = parsedOutput.body;
|
|
2350
|
-
|
|
2310
|
+
return throwDefaultError({
|
|
2351
2311
|
output,
|
|
2352
2312
|
parsedBody: parsedBody.Error,
|
|
2353
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
2354
2313
|
errorCode,
|
|
2355
2314
|
});
|
|
2356
2315
|
}
|
|
@@ -2366,7 +2325,7 @@ const de_VerifySMSSandboxPhoneNumberCommand = async (output, context) => {
|
|
|
2366
2325
|
$metadata: deserializeMetadata(output),
|
|
2367
2326
|
...contents,
|
|
2368
2327
|
};
|
|
2369
|
-
return
|
|
2328
|
+
return response;
|
|
2370
2329
|
};
|
|
2371
2330
|
exports.de_VerifySMSSandboxPhoneNumberCommand = de_VerifySMSSandboxPhoneNumberCommand;
|
|
2372
2331
|
const de_VerifySMSSandboxPhoneNumberCommandError = async (output, context) => {
|
|
@@ -2396,10 +2355,9 @@ const de_VerifySMSSandboxPhoneNumberCommandError = async (output, context) => {
|
|
|
2396
2355
|
throw await de_VerificationExceptionRes(parsedOutput, context);
|
|
2397
2356
|
default:
|
|
2398
2357
|
const parsedBody = parsedOutput.body;
|
|
2399
|
-
|
|
2358
|
+
return throwDefaultError({
|
|
2400
2359
|
output,
|
|
2401
2360
|
parsedBody: parsedBody.Error,
|
|
2402
|
-
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
2403
2361
|
errorCode,
|
|
2404
2362
|
});
|
|
2405
2363
|
}
|
|
@@ -4115,6 +4073,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
4115
4073
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
4116
4074
|
};
|
|
4117
4075
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
4076
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(SNSServiceException_1.SNSServiceException);
|
|
4118
4077
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
4119
4078
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4120
4079
|
const contents = {
|