@aws-sdk/client-sns 3.312.0 → 3.316.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/SNS.js +46 -588
- package/dist-cjs/protocols/Aws_query.js +85 -126
- package/dist-es/SNS.js +46 -588
- package/dist-es/protocols/Aws_query.js +86 -127
- package/dist-types/SNS.d.ts +61 -384
- package/dist-types/ts3.4/SNS.d.ts +2 -1
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset,
|
|
2
|
+
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { XMLParser } from "fast-xml-parser";
|
|
4
4
|
import { AuthorizationErrorException, BatchEntryIdsNotDistinctException, BatchRequestTooLongException, ConcurrentAccessException, EmptyBatchRequestException, EndpointDisabledException, FilterPolicyLimitExceededException, InternalErrorException, InvalidBatchEntryIdException, InvalidParameterException, InvalidParameterValueException, InvalidSecurityException, KMSAccessDeniedException, KMSDisabledException, KMSInvalidStateException, KMSNotFoundException, KMSOptInRequired, KMSThrottlingException, NotFoundException, OptedOutException, PlatformApplicationDisabledException, ResourceNotFoundException, StaleTagException, SubscriptionLimitExceededException, TagLimitExceededException, TagPolicyException, ThrottledException, TooManyEntriesInBatchRequestException, TopicLimitExceededException, UserErrorException, ValidationException, VerificationException, } from "../models/models_0";
|
|
5
5
|
import { SNSServiceException as __BaseException } from "../models/SNSServiceException";
|
|
@@ -431,7 +431,7 @@ export const de_AddPermissionCommand = async (output, context) => {
|
|
|
431
431
|
const response = {
|
|
432
432
|
$metadata: deserializeMetadata(output),
|
|
433
433
|
};
|
|
434
|
-
return
|
|
434
|
+
return response;
|
|
435
435
|
};
|
|
436
436
|
const de_AddPermissionCommandError = async (output, context) => {
|
|
437
437
|
const parsedOutput = {
|
|
@@ -454,10 +454,9 @@ const de_AddPermissionCommandError = async (output, context) => {
|
|
|
454
454
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
455
455
|
default:
|
|
456
456
|
const parsedBody = parsedOutput.body;
|
|
457
|
-
throwDefaultError({
|
|
457
|
+
return throwDefaultError({
|
|
458
458
|
output,
|
|
459
459
|
parsedBody: parsedBody.Error,
|
|
460
|
-
exceptionCtor: __BaseException,
|
|
461
460
|
errorCode,
|
|
462
461
|
});
|
|
463
462
|
}
|
|
@@ -473,7 +472,7 @@ export const de_CheckIfPhoneNumberIsOptedOutCommand = async (output, context) =>
|
|
|
473
472
|
$metadata: deserializeMetadata(output),
|
|
474
473
|
...contents,
|
|
475
474
|
};
|
|
476
|
-
return
|
|
475
|
+
return response;
|
|
477
476
|
};
|
|
478
477
|
const de_CheckIfPhoneNumberIsOptedOutCommandError = async (output, context) => {
|
|
479
478
|
const parsedOutput = {
|
|
@@ -496,10 +495,9 @@ const de_CheckIfPhoneNumberIsOptedOutCommandError = async (output, context) => {
|
|
|
496
495
|
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
497
496
|
default:
|
|
498
497
|
const parsedBody = parsedOutput.body;
|
|
499
|
-
throwDefaultError({
|
|
498
|
+
return throwDefaultError({
|
|
500
499
|
output,
|
|
501
500
|
parsedBody: parsedBody.Error,
|
|
502
|
-
exceptionCtor: __BaseException,
|
|
503
501
|
errorCode,
|
|
504
502
|
});
|
|
505
503
|
}
|
|
@@ -515,7 +513,7 @@ export const de_ConfirmSubscriptionCommand = async (output, context) => {
|
|
|
515
513
|
$metadata: deserializeMetadata(output),
|
|
516
514
|
...contents,
|
|
517
515
|
};
|
|
518
|
-
return
|
|
516
|
+
return response;
|
|
519
517
|
};
|
|
520
518
|
const de_ConfirmSubscriptionCommandError = async (output, context) => {
|
|
521
519
|
const parsedOutput = {
|
|
@@ -544,10 +542,9 @@ const de_ConfirmSubscriptionCommandError = async (output, context) => {
|
|
|
544
542
|
throw await de_SubscriptionLimitExceededExceptionRes(parsedOutput, context);
|
|
545
543
|
default:
|
|
546
544
|
const parsedBody = parsedOutput.body;
|
|
547
|
-
throwDefaultError({
|
|
545
|
+
return throwDefaultError({
|
|
548
546
|
output,
|
|
549
547
|
parsedBody: parsedBody.Error,
|
|
550
|
-
exceptionCtor: __BaseException,
|
|
551
548
|
errorCode,
|
|
552
549
|
});
|
|
553
550
|
}
|
|
@@ -563,7 +560,7 @@ export const de_CreatePlatformApplicationCommand = async (output, context) => {
|
|
|
563
560
|
$metadata: deserializeMetadata(output),
|
|
564
561
|
...contents,
|
|
565
562
|
};
|
|
566
|
-
return
|
|
563
|
+
return response;
|
|
567
564
|
};
|
|
568
565
|
const de_CreatePlatformApplicationCommandError = async (output, context) => {
|
|
569
566
|
const parsedOutput = {
|
|
@@ -583,10 +580,9 @@ const de_CreatePlatformApplicationCommandError = async (output, context) => {
|
|
|
583
580
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
584
581
|
default:
|
|
585
582
|
const parsedBody = parsedOutput.body;
|
|
586
|
-
throwDefaultError({
|
|
583
|
+
return throwDefaultError({
|
|
587
584
|
output,
|
|
588
585
|
parsedBody: parsedBody.Error,
|
|
589
|
-
exceptionCtor: __BaseException,
|
|
590
586
|
errorCode,
|
|
591
587
|
});
|
|
592
588
|
}
|
|
@@ -602,7 +598,7 @@ export const de_CreatePlatformEndpointCommand = async (output, context) => {
|
|
|
602
598
|
$metadata: deserializeMetadata(output),
|
|
603
599
|
...contents,
|
|
604
600
|
};
|
|
605
|
-
return
|
|
601
|
+
return response;
|
|
606
602
|
};
|
|
607
603
|
const de_CreatePlatformEndpointCommandError = async (output, context) => {
|
|
608
604
|
const parsedOutput = {
|
|
@@ -625,10 +621,9 @@ const de_CreatePlatformEndpointCommandError = async (output, context) => {
|
|
|
625
621
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
626
622
|
default:
|
|
627
623
|
const parsedBody = parsedOutput.body;
|
|
628
|
-
throwDefaultError({
|
|
624
|
+
return throwDefaultError({
|
|
629
625
|
output,
|
|
630
626
|
parsedBody: parsedBody.Error,
|
|
631
|
-
exceptionCtor: __BaseException,
|
|
632
627
|
errorCode,
|
|
633
628
|
});
|
|
634
629
|
}
|
|
@@ -644,7 +639,7 @@ export const de_CreateSMSSandboxPhoneNumberCommand = async (output, context) =>
|
|
|
644
639
|
$metadata: deserializeMetadata(output),
|
|
645
640
|
...contents,
|
|
646
641
|
};
|
|
647
|
-
return
|
|
642
|
+
return response;
|
|
648
643
|
};
|
|
649
644
|
const de_CreateSMSSandboxPhoneNumberCommandError = async (output, context) => {
|
|
650
645
|
const parsedOutput = {
|
|
@@ -673,10 +668,9 @@ const de_CreateSMSSandboxPhoneNumberCommandError = async (output, context) => {
|
|
|
673
668
|
throw await de_UserErrorExceptionRes(parsedOutput, context);
|
|
674
669
|
default:
|
|
675
670
|
const parsedBody = parsedOutput.body;
|
|
676
|
-
throwDefaultError({
|
|
671
|
+
return throwDefaultError({
|
|
677
672
|
output,
|
|
678
673
|
parsedBody: parsedBody.Error,
|
|
679
|
-
exceptionCtor: __BaseException,
|
|
680
674
|
errorCode,
|
|
681
675
|
});
|
|
682
676
|
}
|
|
@@ -692,7 +686,7 @@ export const de_CreateTopicCommand = async (output, context) => {
|
|
|
692
686
|
$metadata: deserializeMetadata(output),
|
|
693
687
|
...contents,
|
|
694
688
|
};
|
|
695
|
-
return
|
|
689
|
+
return response;
|
|
696
690
|
};
|
|
697
691
|
const de_CreateTopicCommandError = async (output, context) => {
|
|
698
692
|
const parsedOutput = {
|
|
@@ -730,10 +724,9 @@ const de_CreateTopicCommandError = async (output, context) => {
|
|
|
730
724
|
throw await de_TopicLimitExceededExceptionRes(parsedOutput, context);
|
|
731
725
|
default:
|
|
732
726
|
const parsedBody = parsedOutput.body;
|
|
733
|
-
throwDefaultError({
|
|
727
|
+
return throwDefaultError({
|
|
734
728
|
output,
|
|
735
729
|
parsedBody: parsedBody.Error,
|
|
736
|
-
exceptionCtor: __BaseException,
|
|
737
730
|
errorCode,
|
|
738
731
|
});
|
|
739
732
|
}
|
|
@@ -746,7 +739,7 @@ export const de_DeleteEndpointCommand = async (output, context) => {
|
|
|
746
739
|
const response = {
|
|
747
740
|
$metadata: deserializeMetadata(output),
|
|
748
741
|
};
|
|
749
|
-
return
|
|
742
|
+
return response;
|
|
750
743
|
};
|
|
751
744
|
const de_DeleteEndpointCommandError = async (output, context) => {
|
|
752
745
|
const parsedOutput = {
|
|
@@ -766,10 +759,9 @@ const de_DeleteEndpointCommandError = async (output, context) => {
|
|
|
766
759
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
767
760
|
default:
|
|
768
761
|
const parsedBody = parsedOutput.body;
|
|
769
|
-
throwDefaultError({
|
|
762
|
+
return throwDefaultError({
|
|
770
763
|
output,
|
|
771
764
|
parsedBody: parsedBody.Error,
|
|
772
|
-
exceptionCtor: __BaseException,
|
|
773
765
|
errorCode,
|
|
774
766
|
});
|
|
775
767
|
}
|
|
@@ -782,7 +774,7 @@ export const de_DeletePlatformApplicationCommand = async (output, context) => {
|
|
|
782
774
|
const response = {
|
|
783
775
|
$metadata: deserializeMetadata(output),
|
|
784
776
|
};
|
|
785
|
-
return
|
|
777
|
+
return response;
|
|
786
778
|
};
|
|
787
779
|
const de_DeletePlatformApplicationCommandError = async (output, context) => {
|
|
788
780
|
const parsedOutput = {
|
|
@@ -802,10 +794,9 @@ const de_DeletePlatformApplicationCommandError = async (output, context) => {
|
|
|
802
794
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
803
795
|
default:
|
|
804
796
|
const parsedBody = parsedOutput.body;
|
|
805
|
-
throwDefaultError({
|
|
797
|
+
return throwDefaultError({
|
|
806
798
|
output,
|
|
807
799
|
parsedBody: parsedBody.Error,
|
|
808
|
-
exceptionCtor: __BaseException,
|
|
809
800
|
errorCode,
|
|
810
801
|
});
|
|
811
802
|
}
|
|
@@ -821,7 +812,7 @@ export const de_DeleteSMSSandboxPhoneNumberCommand = async (output, context) =>
|
|
|
821
812
|
$metadata: deserializeMetadata(output),
|
|
822
813
|
...contents,
|
|
823
814
|
};
|
|
824
|
-
return
|
|
815
|
+
return response;
|
|
825
816
|
};
|
|
826
817
|
const de_DeleteSMSSandboxPhoneNumberCommandError = async (output, context) => {
|
|
827
818
|
const parsedOutput = {
|
|
@@ -850,10 +841,9 @@ const de_DeleteSMSSandboxPhoneNumberCommandError = async (output, context) => {
|
|
|
850
841
|
throw await de_UserErrorExceptionRes(parsedOutput, context);
|
|
851
842
|
default:
|
|
852
843
|
const parsedBody = parsedOutput.body;
|
|
853
|
-
throwDefaultError({
|
|
844
|
+
return throwDefaultError({
|
|
854
845
|
output,
|
|
855
846
|
parsedBody: parsedBody.Error,
|
|
856
|
-
exceptionCtor: __BaseException,
|
|
857
847
|
errorCode,
|
|
858
848
|
});
|
|
859
849
|
}
|
|
@@ -866,7 +856,7 @@ export const de_DeleteTopicCommand = async (output, context) => {
|
|
|
866
856
|
const response = {
|
|
867
857
|
$metadata: deserializeMetadata(output),
|
|
868
858
|
};
|
|
869
|
-
return
|
|
859
|
+
return response;
|
|
870
860
|
};
|
|
871
861
|
const de_DeleteTopicCommandError = async (output, context) => {
|
|
872
862
|
const parsedOutput = {
|
|
@@ -898,10 +888,9 @@ const de_DeleteTopicCommandError = async (output, context) => {
|
|
|
898
888
|
throw await de_TagPolicyExceptionRes(parsedOutput, context);
|
|
899
889
|
default:
|
|
900
890
|
const parsedBody = parsedOutput.body;
|
|
901
|
-
throwDefaultError({
|
|
891
|
+
return throwDefaultError({
|
|
902
892
|
output,
|
|
903
893
|
parsedBody: parsedBody.Error,
|
|
904
|
-
exceptionCtor: __BaseException,
|
|
905
894
|
errorCode,
|
|
906
895
|
});
|
|
907
896
|
}
|
|
@@ -917,7 +906,7 @@ export const de_GetDataProtectionPolicyCommand = async (output, context) => {
|
|
|
917
906
|
$metadata: deserializeMetadata(output),
|
|
918
907
|
...contents,
|
|
919
908
|
};
|
|
920
|
-
return
|
|
909
|
+
return response;
|
|
921
910
|
};
|
|
922
911
|
const de_GetDataProtectionPolicyCommandError = async (output, context) => {
|
|
923
912
|
const parsedOutput = {
|
|
@@ -943,10 +932,9 @@ const de_GetDataProtectionPolicyCommandError = async (output, context) => {
|
|
|
943
932
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
944
933
|
default:
|
|
945
934
|
const parsedBody = parsedOutput.body;
|
|
946
|
-
throwDefaultError({
|
|
935
|
+
return throwDefaultError({
|
|
947
936
|
output,
|
|
948
937
|
parsedBody: parsedBody.Error,
|
|
949
|
-
exceptionCtor: __BaseException,
|
|
950
938
|
errorCode,
|
|
951
939
|
});
|
|
952
940
|
}
|
|
@@ -962,7 +950,7 @@ export const de_GetEndpointAttributesCommand = async (output, context) => {
|
|
|
962
950
|
$metadata: deserializeMetadata(output),
|
|
963
951
|
...contents,
|
|
964
952
|
};
|
|
965
|
-
return
|
|
953
|
+
return response;
|
|
966
954
|
};
|
|
967
955
|
const de_GetEndpointAttributesCommandError = async (output, context) => {
|
|
968
956
|
const parsedOutput = {
|
|
@@ -985,10 +973,9 @@ const de_GetEndpointAttributesCommandError = async (output, context) => {
|
|
|
985
973
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
986
974
|
default:
|
|
987
975
|
const parsedBody = parsedOutput.body;
|
|
988
|
-
throwDefaultError({
|
|
976
|
+
return throwDefaultError({
|
|
989
977
|
output,
|
|
990
978
|
parsedBody: parsedBody.Error,
|
|
991
|
-
exceptionCtor: __BaseException,
|
|
992
979
|
errorCode,
|
|
993
980
|
});
|
|
994
981
|
}
|
|
@@ -1004,7 +991,7 @@ export const de_GetPlatformApplicationAttributesCommand = async (output, context
|
|
|
1004
991
|
$metadata: deserializeMetadata(output),
|
|
1005
992
|
...contents,
|
|
1006
993
|
};
|
|
1007
|
-
return
|
|
994
|
+
return response;
|
|
1008
995
|
};
|
|
1009
996
|
const de_GetPlatformApplicationAttributesCommandError = async (output, context) => {
|
|
1010
997
|
const parsedOutput = {
|
|
@@ -1027,10 +1014,9 @@ const de_GetPlatformApplicationAttributesCommandError = async (output, context)
|
|
|
1027
1014
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1028
1015
|
default:
|
|
1029
1016
|
const parsedBody = parsedOutput.body;
|
|
1030
|
-
throwDefaultError({
|
|
1017
|
+
return throwDefaultError({
|
|
1031
1018
|
output,
|
|
1032
1019
|
parsedBody: parsedBody.Error,
|
|
1033
|
-
exceptionCtor: __BaseException,
|
|
1034
1020
|
errorCode,
|
|
1035
1021
|
});
|
|
1036
1022
|
}
|
|
@@ -1046,7 +1032,7 @@ export const de_GetSMSAttributesCommand = async (output, context) => {
|
|
|
1046
1032
|
$metadata: deserializeMetadata(output),
|
|
1047
1033
|
...contents,
|
|
1048
1034
|
};
|
|
1049
|
-
return
|
|
1035
|
+
return response;
|
|
1050
1036
|
};
|
|
1051
1037
|
const de_GetSMSAttributesCommandError = async (output, context) => {
|
|
1052
1038
|
const parsedOutput = {
|
|
@@ -1069,10 +1055,9 @@ const de_GetSMSAttributesCommandError = async (output, context) => {
|
|
|
1069
1055
|
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1070
1056
|
default:
|
|
1071
1057
|
const parsedBody = parsedOutput.body;
|
|
1072
|
-
throwDefaultError({
|
|
1058
|
+
return throwDefaultError({
|
|
1073
1059
|
output,
|
|
1074
1060
|
parsedBody: parsedBody.Error,
|
|
1075
|
-
exceptionCtor: __BaseException,
|
|
1076
1061
|
errorCode,
|
|
1077
1062
|
});
|
|
1078
1063
|
}
|
|
@@ -1088,7 +1073,7 @@ export const de_GetSMSSandboxAccountStatusCommand = async (output, context) => {
|
|
|
1088
1073
|
$metadata: deserializeMetadata(output),
|
|
1089
1074
|
...contents,
|
|
1090
1075
|
};
|
|
1091
|
-
return
|
|
1076
|
+
return response;
|
|
1092
1077
|
};
|
|
1093
1078
|
const de_GetSMSSandboxAccountStatusCommandError = async (output, context) => {
|
|
1094
1079
|
const parsedOutput = {
|
|
@@ -1108,10 +1093,9 @@ const de_GetSMSSandboxAccountStatusCommandError = async (output, context) => {
|
|
|
1108
1093
|
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1109
1094
|
default:
|
|
1110
1095
|
const parsedBody = parsedOutput.body;
|
|
1111
|
-
throwDefaultError({
|
|
1096
|
+
return throwDefaultError({
|
|
1112
1097
|
output,
|
|
1113
1098
|
parsedBody: parsedBody.Error,
|
|
1114
|
-
exceptionCtor: __BaseException,
|
|
1115
1099
|
errorCode,
|
|
1116
1100
|
});
|
|
1117
1101
|
}
|
|
@@ -1127,7 +1111,7 @@ export const de_GetSubscriptionAttributesCommand = async (output, context) => {
|
|
|
1127
1111
|
$metadata: deserializeMetadata(output),
|
|
1128
1112
|
...contents,
|
|
1129
1113
|
};
|
|
1130
|
-
return
|
|
1114
|
+
return response;
|
|
1131
1115
|
};
|
|
1132
1116
|
const de_GetSubscriptionAttributesCommandError = async (output, context) => {
|
|
1133
1117
|
const parsedOutput = {
|
|
@@ -1150,10 +1134,9 @@ const de_GetSubscriptionAttributesCommandError = async (output, context) => {
|
|
|
1150
1134
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1151
1135
|
default:
|
|
1152
1136
|
const parsedBody = parsedOutput.body;
|
|
1153
|
-
throwDefaultError({
|
|
1137
|
+
return throwDefaultError({
|
|
1154
1138
|
output,
|
|
1155
1139
|
parsedBody: parsedBody.Error,
|
|
1156
|
-
exceptionCtor: __BaseException,
|
|
1157
1140
|
errorCode,
|
|
1158
1141
|
});
|
|
1159
1142
|
}
|
|
@@ -1169,7 +1152,7 @@ export const de_GetTopicAttributesCommand = async (output, context) => {
|
|
|
1169
1152
|
$metadata: deserializeMetadata(output),
|
|
1170
1153
|
...contents,
|
|
1171
1154
|
};
|
|
1172
|
-
return
|
|
1155
|
+
return response;
|
|
1173
1156
|
};
|
|
1174
1157
|
const de_GetTopicAttributesCommandError = async (output, context) => {
|
|
1175
1158
|
const parsedOutput = {
|
|
@@ -1195,10 +1178,9 @@ const de_GetTopicAttributesCommandError = async (output, context) => {
|
|
|
1195
1178
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1196
1179
|
default:
|
|
1197
1180
|
const parsedBody = parsedOutput.body;
|
|
1198
|
-
throwDefaultError({
|
|
1181
|
+
return throwDefaultError({
|
|
1199
1182
|
output,
|
|
1200
1183
|
parsedBody: parsedBody.Error,
|
|
1201
|
-
exceptionCtor: __BaseException,
|
|
1202
1184
|
errorCode,
|
|
1203
1185
|
});
|
|
1204
1186
|
}
|
|
@@ -1214,7 +1196,7 @@ export const de_ListEndpointsByPlatformApplicationCommand = async (output, conte
|
|
|
1214
1196
|
$metadata: deserializeMetadata(output),
|
|
1215
1197
|
...contents,
|
|
1216
1198
|
};
|
|
1217
|
-
return
|
|
1199
|
+
return response;
|
|
1218
1200
|
};
|
|
1219
1201
|
const de_ListEndpointsByPlatformApplicationCommandError = async (output, context) => {
|
|
1220
1202
|
const parsedOutput = {
|
|
@@ -1237,10 +1219,9 @@ const de_ListEndpointsByPlatformApplicationCommandError = async (output, context
|
|
|
1237
1219
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1238
1220
|
default:
|
|
1239
1221
|
const parsedBody = parsedOutput.body;
|
|
1240
|
-
throwDefaultError({
|
|
1222
|
+
return throwDefaultError({
|
|
1241
1223
|
output,
|
|
1242
1224
|
parsedBody: parsedBody.Error,
|
|
1243
|
-
exceptionCtor: __BaseException,
|
|
1244
1225
|
errorCode,
|
|
1245
1226
|
});
|
|
1246
1227
|
}
|
|
@@ -1256,7 +1237,7 @@ export const de_ListOriginationNumbersCommand = async (output, context) => {
|
|
|
1256
1237
|
$metadata: deserializeMetadata(output),
|
|
1257
1238
|
...contents,
|
|
1258
1239
|
};
|
|
1259
|
-
return
|
|
1240
|
+
return response;
|
|
1260
1241
|
};
|
|
1261
1242
|
const de_ListOriginationNumbersCommandError = async (output, context) => {
|
|
1262
1243
|
const parsedOutput = {
|
|
@@ -1282,10 +1263,9 @@ const de_ListOriginationNumbersCommandError = async (output, context) => {
|
|
|
1282
1263
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1283
1264
|
default:
|
|
1284
1265
|
const parsedBody = parsedOutput.body;
|
|
1285
|
-
throwDefaultError({
|
|
1266
|
+
return throwDefaultError({
|
|
1286
1267
|
output,
|
|
1287
1268
|
parsedBody: parsedBody.Error,
|
|
1288
|
-
exceptionCtor: __BaseException,
|
|
1289
1269
|
errorCode,
|
|
1290
1270
|
});
|
|
1291
1271
|
}
|
|
@@ -1301,7 +1281,7 @@ export const de_ListPhoneNumbersOptedOutCommand = async (output, context) => {
|
|
|
1301
1281
|
$metadata: deserializeMetadata(output),
|
|
1302
1282
|
...contents,
|
|
1303
1283
|
};
|
|
1304
|
-
return
|
|
1284
|
+
return response;
|
|
1305
1285
|
};
|
|
1306
1286
|
const de_ListPhoneNumbersOptedOutCommandError = async (output, context) => {
|
|
1307
1287
|
const parsedOutput = {
|
|
@@ -1324,10 +1304,9 @@ const de_ListPhoneNumbersOptedOutCommandError = async (output, context) => {
|
|
|
1324
1304
|
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1325
1305
|
default:
|
|
1326
1306
|
const parsedBody = parsedOutput.body;
|
|
1327
|
-
throwDefaultError({
|
|
1307
|
+
return throwDefaultError({
|
|
1328
1308
|
output,
|
|
1329
1309
|
parsedBody: parsedBody.Error,
|
|
1330
|
-
exceptionCtor: __BaseException,
|
|
1331
1310
|
errorCode,
|
|
1332
1311
|
});
|
|
1333
1312
|
}
|
|
@@ -1343,7 +1322,7 @@ export const de_ListPlatformApplicationsCommand = async (output, context) => {
|
|
|
1343
1322
|
$metadata: deserializeMetadata(output),
|
|
1344
1323
|
...contents,
|
|
1345
1324
|
};
|
|
1346
|
-
return
|
|
1325
|
+
return response;
|
|
1347
1326
|
};
|
|
1348
1327
|
const de_ListPlatformApplicationsCommandError = async (output, context) => {
|
|
1349
1328
|
const parsedOutput = {
|
|
@@ -1363,10 +1342,9 @@ const de_ListPlatformApplicationsCommandError = async (output, context) => {
|
|
|
1363
1342
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1364
1343
|
default:
|
|
1365
1344
|
const parsedBody = parsedOutput.body;
|
|
1366
|
-
throwDefaultError({
|
|
1345
|
+
return throwDefaultError({
|
|
1367
1346
|
output,
|
|
1368
1347
|
parsedBody: parsedBody.Error,
|
|
1369
|
-
exceptionCtor: __BaseException,
|
|
1370
1348
|
errorCode,
|
|
1371
1349
|
});
|
|
1372
1350
|
}
|
|
@@ -1382,7 +1360,7 @@ export const de_ListSMSSandboxPhoneNumbersCommand = async (output, context) => {
|
|
|
1382
1360
|
$metadata: deserializeMetadata(output),
|
|
1383
1361
|
...contents,
|
|
1384
1362
|
};
|
|
1385
|
-
return
|
|
1363
|
+
return response;
|
|
1386
1364
|
};
|
|
1387
1365
|
const de_ListSMSSandboxPhoneNumbersCommandError = async (output, context) => {
|
|
1388
1366
|
const parsedOutput = {
|
|
@@ -1408,10 +1386,9 @@ const de_ListSMSSandboxPhoneNumbersCommandError = async (output, context) => {
|
|
|
1408
1386
|
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1409
1387
|
default:
|
|
1410
1388
|
const parsedBody = parsedOutput.body;
|
|
1411
|
-
throwDefaultError({
|
|
1389
|
+
return throwDefaultError({
|
|
1412
1390
|
output,
|
|
1413
1391
|
parsedBody: parsedBody.Error,
|
|
1414
|
-
exceptionCtor: __BaseException,
|
|
1415
1392
|
errorCode,
|
|
1416
1393
|
});
|
|
1417
1394
|
}
|
|
@@ -1427,7 +1404,7 @@ export const de_ListSubscriptionsCommand = async (output, context) => {
|
|
|
1427
1404
|
$metadata: deserializeMetadata(output),
|
|
1428
1405
|
...contents,
|
|
1429
1406
|
};
|
|
1430
|
-
return
|
|
1407
|
+
return response;
|
|
1431
1408
|
};
|
|
1432
1409
|
const de_ListSubscriptionsCommandError = async (output, context) => {
|
|
1433
1410
|
const parsedOutput = {
|
|
@@ -1447,10 +1424,9 @@ const de_ListSubscriptionsCommandError = async (output, context) => {
|
|
|
1447
1424
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1448
1425
|
default:
|
|
1449
1426
|
const parsedBody = parsedOutput.body;
|
|
1450
|
-
throwDefaultError({
|
|
1427
|
+
return throwDefaultError({
|
|
1451
1428
|
output,
|
|
1452
1429
|
parsedBody: parsedBody.Error,
|
|
1453
|
-
exceptionCtor: __BaseException,
|
|
1454
1430
|
errorCode,
|
|
1455
1431
|
});
|
|
1456
1432
|
}
|
|
@@ -1466,7 +1442,7 @@ export const de_ListSubscriptionsByTopicCommand = async (output, context) => {
|
|
|
1466
1442
|
$metadata: deserializeMetadata(output),
|
|
1467
1443
|
...contents,
|
|
1468
1444
|
};
|
|
1469
|
-
return
|
|
1445
|
+
return response;
|
|
1470
1446
|
};
|
|
1471
1447
|
const de_ListSubscriptionsByTopicCommandError = async (output, context) => {
|
|
1472
1448
|
const parsedOutput = {
|
|
@@ -1489,10 +1465,9 @@ const de_ListSubscriptionsByTopicCommandError = async (output, context) => {
|
|
|
1489
1465
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1490
1466
|
default:
|
|
1491
1467
|
const parsedBody = parsedOutput.body;
|
|
1492
|
-
throwDefaultError({
|
|
1468
|
+
return throwDefaultError({
|
|
1493
1469
|
output,
|
|
1494
1470
|
parsedBody: parsedBody.Error,
|
|
1495
|
-
exceptionCtor: __BaseException,
|
|
1496
1471
|
errorCode,
|
|
1497
1472
|
});
|
|
1498
1473
|
}
|
|
@@ -1508,7 +1483,7 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1508
1483
|
$metadata: deserializeMetadata(output),
|
|
1509
1484
|
...contents,
|
|
1510
1485
|
};
|
|
1511
|
-
return
|
|
1486
|
+
return response;
|
|
1512
1487
|
};
|
|
1513
1488
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1514
1489
|
const parsedOutput = {
|
|
@@ -1534,10 +1509,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1534
1509
|
throw await de_TagPolicyExceptionRes(parsedOutput, context);
|
|
1535
1510
|
default:
|
|
1536
1511
|
const parsedBody = parsedOutput.body;
|
|
1537
|
-
throwDefaultError({
|
|
1512
|
+
return throwDefaultError({
|
|
1538
1513
|
output,
|
|
1539
1514
|
parsedBody: parsedBody.Error,
|
|
1540
|
-
exceptionCtor: __BaseException,
|
|
1541
1515
|
errorCode,
|
|
1542
1516
|
});
|
|
1543
1517
|
}
|
|
@@ -1553,7 +1527,7 @@ export const de_ListTopicsCommand = async (output, context) => {
|
|
|
1553
1527
|
$metadata: deserializeMetadata(output),
|
|
1554
1528
|
...contents,
|
|
1555
1529
|
};
|
|
1556
|
-
return
|
|
1530
|
+
return response;
|
|
1557
1531
|
};
|
|
1558
1532
|
const de_ListTopicsCommandError = async (output, context) => {
|
|
1559
1533
|
const parsedOutput = {
|
|
@@ -1573,10 +1547,9 @@ const de_ListTopicsCommandError = async (output, context) => {
|
|
|
1573
1547
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1574
1548
|
default:
|
|
1575
1549
|
const parsedBody = parsedOutput.body;
|
|
1576
|
-
throwDefaultError({
|
|
1550
|
+
return throwDefaultError({
|
|
1577
1551
|
output,
|
|
1578
1552
|
parsedBody: parsedBody.Error,
|
|
1579
|
-
exceptionCtor: __BaseException,
|
|
1580
1553
|
errorCode,
|
|
1581
1554
|
});
|
|
1582
1555
|
}
|
|
@@ -1592,7 +1565,7 @@ export const de_OptInPhoneNumberCommand = async (output, context) => {
|
|
|
1592
1565
|
$metadata: deserializeMetadata(output),
|
|
1593
1566
|
...contents,
|
|
1594
1567
|
};
|
|
1595
|
-
return
|
|
1568
|
+
return response;
|
|
1596
1569
|
};
|
|
1597
1570
|
const de_OptInPhoneNumberCommandError = async (output, context) => {
|
|
1598
1571
|
const parsedOutput = {
|
|
@@ -1615,10 +1588,9 @@ const de_OptInPhoneNumberCommandError = async (output, context) => {
|
|
|
1615
1588
|
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1616
1589
|
default:
|
|
1617
1590
|
const parsedBody = parsedOutput.body;
|
|
1618
|
-
throwDefaultError({
|
|
1591
|
+
return throwDefaultError({
|
|
1619
1592
|
output,
|
|
1620
1593
|
parsedBody: parsedBody.Error,
|
|
1621
|
-
exceptionCtor: __BaseException,
|
|
1622
1594
|
errorCode,
|
|
1623
1595
|
});
|
|
1624
1596
|
}
|
|
@@ -1634,7 +1606,7 @@ export const de_PublishCommand = async (output, context) => {
|
|
|
1634
1606
|
$metadata: deserializeMetadata(output),
|
|
1635
1607
|
...contents,
|
|
1636
1608
|
};
|
|
1637
|
-
return
|
|
1609
|
+
return response;
|
|
1638
1610
|
};
|
|
1639
1611
|
const de_PublishCommandError = async (output, context) => {
|
|
1640
1612
|
const parsedOutput = {
|
|
@@ -1690,10 +1662,9 @@ const de_PublishCommandError = async (output, context) => {
|
|
|
1690
1662
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1691
1663
|
default:
|
|
1692
1664
|
const parsedBody = parsedOutput.body;
|
|
1693
|
-
throwDefaultError({
|
|
1665
|
+
return throwDefaultError({
|
|
1694
1666
|
output,
|
|
1695
1667
|
parsedBody: parsedBody.Error,
|
|
1696
|
-
exceptionCtor: __BaseException,
|
|
1697
1668
|
errorCode,
|
|
1698
1669
|
});
|
|
1699
1670
|
}
|
|
@@ -1709,7 +1680,7 @@ export const de_PublishBatchCommand = async (output, context) => {
|
|
|
1709
1680
|
$metadata: deserializeMetadata(output),
|
|
1710
1681
|
...contents,
|
|
1711
1682
|
};
|
|
1712
|
-
return
|
|
1683
|
+
return response;
|
|
1713
1684
|
};
|
|
1714
1685
|
const de_PublishBatchCommandError = async (output, context) => {
|
|
1715
1686
|
const parsedOutput = {
|
|
@@ -1780,10 +1751,9 @@ const de_PublishBatchCommandError = async (output, context) => {
|
|
|
1780
1751
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1781
1752
|
default:
|
|
1782
1753
|
const parsedBody = parsedOutput.body;
|
|
1783
|
-
throwDefaultError({
|
|
1754
|
+
return throwDefaultError({
|
|
1784
1755
|
output,
|
|
1785
1756
|
parsedBody: parsedBody.Error,
|
|
1786
|
-
exceptionCtor: __BaseException,
|
|
1787
1757
|
errorCode,
|
|
1788
1758
|
});
|
|
1789
1759
|
}
|
|
@@ -1796,7 +1766,7 @@ export const de_PutDataProtectionPolicyCommand = async (output, context) => {
|
|
|
1796
1766
|
const response = {
|
|
1797
1767
|
$metadata: deserializeMetadata(output),
|
|
1798
1768
|
};
|
|
1799
|
-
return
|
|
1769
|
+
return response;
|
|
1800
1770
|
};
|
|
1801
1771
|
const de_PutDataProtectionPolicyCommandError = async (output, context) => {
|
|
1802
1772
|
const parsedOutput = {
|
|
@@ -1822,10 +1792,9 @@ const de_PutDataProtectionPolicyCommandError = async (output, context) => {
|
|
|
1822
1792
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1823
1793
|
default:
|
|
1824
1794
|
const parsedBody = parsedOutput.body;
|
|
1825
|
-
throwDefaultError({
|
|
1795
|
+
return throwDefaultError({
|
|
1826
1796
|
output,
|
|
1827
1797
|
parsedBody: parsedBody.Error,
|
|
1828
|
-
exceptionCtor: __BaseException,
|
|
1829
1798
|
errorCode,
|
|
1830
1799
|
});
|
|
1831
1800
|
}
|
|
@@ -1838,7 +1807,7 @@ export const de_RemovePermissionCommand = async (output, context) => {
|
|
|
1838
1807
|
const response = {
|
|
1839
1808
|
$metadata: deserializeMetadata(output),
|
|
1840
1809
|
};
|
|
1841
|
-
return
|
|
1810
|
+
return response;
|
|
1842
1811
|
};
|
|
1843
1812
|
const de_RemovePermissionCommandError = async (output, context) => {
|
|
1844
1813
|
const parsedOutput = {
|
|
@@ -1861,10 +1830,9 @@ const de_RemovePermissionCommandError = async (output, context) => {
|
|
|
1861
1830
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1862
1831
|
default:
|
|
1863
1832
|
const parsedBody = parsedOutput.body;
|
|
1864
|
-
throwDefaultError({
|
|
1833
|
+
return throwDefaultError({
|
|
1865
1834
|
output,
|
|
1866
1835
|
parsedBody: parsedBody.Error,
|
|
1867
|
-
exceptionCtor: __BaseException,
|
|
1868
1836
|
errorCode,
|
|
1869
1837
|
});
|
|
1870
1838
|
}
|
|
@@ -1877,7 +1845,7 @@ export const de_SetEndpointAttributesCommand = async (output, context) => {
|
|
|
1877
1845
|
const response = {
|
|
1878
1846
|
$metadata: deserializeMetadata(output),
|
|
1879
1847
|
};
|
|
1880
|
-
return
|
|
1848
|
+
return response;
|
|
1881
1849
|
};
|
|
1882
1850
|
const de_SetEndpointAttributesCommandError = async (output, context) => {
|
|
1883
1851
|
const parsedOutput = {
|
|
@@ -1900,10 +1868,9 @@ const de_SetEndpointAttributesCommandError = async (output, context) => {
|
|
|
1900
1868
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1901
1869
|
default:
|
|
1902
1870
|
const parsedBody = parsedOutput.body;
|
|
1903
|
-
throwDefaultError({
|
|
1871
|
+
return throwDefaultError({
|
|
1904
1872
|
output,
|
|
1905
1873
|
parsedBody: parsedBody.Error,
|
|
1906
|
-
exceptionCtor: __BaseException,
|
|
1907
1874
|
errorCode,
|
|
1908
1875
|
});
|
|
1909
1876
|
}
|
|
@@ -1916,7 +1883,7 @@ export const de_SetPlatformApplicationAttributesCommand = async (output, context
|
|
|
1916
1883
|
const response = {
|
|
1917
1884
|
$metadata: deserializeMetadata(output),
|
|
1918
1885
|
};
|
|
1919
|
-
return
|
|
1886
|
+
return response;
|
|
1920
1887
|
};
|
|
1921
1888
|
const de_SetPlatformApplicationAttributesCommandError = async (output, context) => {
|
|
1922
1889
|
const parsedOutput = {
|
|
@@ -1939,10 +1906,9 @@ const de_SetPlatformApplicationAttributesCommandError = async (output, context)
|
|
|
1939
1906
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1940
1907
|
default:
|
|
1941
1908
|
const parsedBody = parsedOutput.body;
|
|
1942
|
-
throwDefaultError({
|
|
1909
|
+
return throwDefaultError({
|
|
1943
1910
|
output,
|
|
1944
1911
|
parsedBody: parsedBody.Error,
|
|
1945
|
-
exceptionCtor: __BaseException,
|
|
1946
1912
|
errorCode,
|
|
1947
1913
|
});
|
|
1948
1914
|
}
|
|
@@ -1958,7 +1924,7 @@ export const de_SetSMSAttributesCommand = async (output, context) => {
|
|
|
1958
1924
|
$metadata: deserializeMetadata(output),
|
|
1959
1925
|
...contents,
|
|
1960
1926
|
};
|
|
1961
|
-
return
|
|
1927
|
+
return response;
|
|
1962
1928
|
};
|
|
1963
1929
|
const de_SetSMSAttributesCommandError = async (output, context) => {
|
|
1964
1930
|
const parsedOutput = {
|
|
@@ -1981,10 +1947,9 @@ const de_SetSMSAttributesCommandError = async (output, context) => {
|
|
|
1981
1947
|
throw await de_ThrottledExceptionRes(parsedOutput, context);
|
|
1982
1948
|
default:
|
|
1983
1949
|
const parsedBody = parsedOutput.body;
|
|
1984
|
-
throwDefaultError({
|
|
1950
|
+
return throwDefaultError({
|
|
1985
1951
|
output,
|
|
1986
1952
|
parsedBody: parsedBody.Error,
|
|
1987
|
-
exceptionCtor: __BaseException,
|
|
1988
1953
|
errorCode,
|
|
1989
1954
|
});
|
|
1990
1955
|
}
|
|
@@ -1997,7 +1962,7 @@ export const de_SetSubscriptionAttributesCommand = async (output, context) => {
|
|
|
1997
1962
|
const response = {
|
|
1998
1963
|
$metadata: deserializeMetadata(output),
|
|
1999
1964
|
};
|
|
2000
|
-
return
|
|
1965
|
+
return response;
|
|
2001
1966
|
};
|
|
2002
1967
|
const de_SetSubscriptionAttributesCommandError = async (output, context) => {
|
|
2003
1968
|
const parsedOutput = {
|
|
@@ -2023,10 +1988,9 @@ const de_SetSubscriptionAttributesCommandError = async (output, context) => {
|
|
|
2023
1988
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2024
1989
|
default:
|
|
2025
1990
|
const parsedBody = parsedOutput.body;
|
|
2026
|
-
throwDefaultError({
|
|
1991
|
+
return throwDefaultError({
|
|
2027
1992
|
output,
|
|
2028
1993
|
parsedBody: parsedBody.Error,
|
|
2029
|
-
exceptionCtor: __BaseException,
|
|
2030
1994
|
errorCode,
|
|
2031
1995
|
});
|
|
2032
1996
|
}
|
|
@@ -2039,7 +2003,7 @@ export const de_SetTopicAttributesCommand = async (output, context) => {
|
|
|
2039
2003
|
const response = {
|
|
2040
2004
|
$metadata: deserializeMetadata(output),
|
|
2041
2005
|
};
|
|
2042
|
-
return
|
|
2006
|
+
return response;
|
|
2043
2007
|
};
|
|
2044
2008
|
const de_SetTopicAttributesCommandError = async (output, context) => {
|
|
2045
2009
|
const parsedOutput = {
|
|
@@ -2065,10 +2029,9 @@ const de_SetTopicAttributesCommandError = async (output, context) => {
|
|
|
2065
2029
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2066
2030
|
default:
|
|
2067
2031
|
const parsedBody = parsedOutput.body;
|
|
2068
|
-
throwDefaultError({
|
|
2032
|
+
return throwDefaultError({
|
|
2069
2033
|
output,
|
|
2070
2034
|
parsedBody: parsedBody.Error,
|
|
2071
|
-
exceptionCtor: __BaseException,
|
|
2072
2035
|
errorCode,
|
|
2073
2036
|
});
|
|
2074
2037
|
}
|
|
@@ -2084,7 +2047,7 @@ export const de_SubscribeCommand = async (output, context) => {
|
|
|
2084
2047
|
$metadata: deserializeMetadata(output),
|
|
2085
2048
|
...contents,
|
|
2086
2049
|
};
|
|
2087
|
-
return
|
|
2050
|
+
return response;
|
|
2088
2051
|
};
|
|
2089
2052
|
const de_SubscribeCommandError = async (output, context) => {
|
|
2090
2053
|
const parsedOutput = {
|
|
@@ -2116,10 +2079,9 @@ const de_SubscribeCommandError = async (output, context) => {
|
|
|
2116
2079
|
throw await de_SubscriptionLimitExceededExceptionRes(parsedOutput, context);
|
|
2117
2080
|
default:
|
|
2118
2081
|
const parsedBody = parsedOutput.body;
|
|
2119
|
-
throwDefaultError({
|
|
2082
|
+
return throwDefaultError({
|
|
2120
2083
|
output,
|
|
2121
2084
|
parsedBody: parsedBody.Error,
|
|
2122
|
-
exceptionCtor: __BaseException,
|
|
2123
2085
|
errorCode,
|
|
2124
2086
|
});
|
|
2125
2087
|
}
|
|
@@ -2135,7 +2097,7 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
2135
2097
|
$metadata: deserializeMetadata(output),
|
|
2136
2098
|
...contents,
|
|
2137
2099
|
};
|
|
2138
|
-
return
|
|
2100
|
+
return response;
|
|
2139
2101
|
};
|
|
2140
2102
|
const de_TagResourceCommandError = async (output, context) => {
|
|
2141
2103
|
const parsedOutput = {
|
|
@@ -2167,10 +2129,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
2167
2129
|
throw await de_TagPolicyExceptionRes(parsedOutput, context);
|
|
2168
2130
|
default:
|
|
2169
2131
|
const parsedBody = parsedOutput.body;
|
|
2170
|
-
throwDefaultError({
|
|
2132
|
+
return throwDefaultError({
|
|
2171
2133
|
output,
|
|
2172
2134
|
parsedBody: parsedBody.Error,
|
|
2173
|
-
exceptionCtor: __BaseException,
|
|
2174
2135
|
errorCode,
|
|
2175
2136
|
});
|
|
2176
2137
|
}
|
|
@@ -2183,7 +2144,7 @@ export const de_UnsubscribeCommand = async (output, context) => {
|
|
|
2183
2144
|
const response = {
|
|
2184
2145
|
$metadata: deserializeMetadata(output),
|
|
2185
2146
|
};
|
|
2186
|
-
return
|
|
2147
|
+
return response;
|
|
2187
2148
|
};
|
|
2188
2149
|
const de_UnsubscribeCommandError = async (output, context) => {
|
|
2189
2150
|
const parsedOutput = {
|
|
@@ -2209,10 +2170,9 @@ const de_UnsubscribeCommandError = async (output, context) => {
|
|
|
2209
2170
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2210
2171
|
default:
|
|
2211
2172
|
const parsedBody = parsedOutput.body;
|
|
2212
|
-
throwDefaultError({
|
|
2173
|
+
return throwDefaultError({
|
|
2213
2174
|
output,
|
|
2214
2175
|
parsedBody: parsedBody.Error,
|
|
2215
|
-
exceptionCtor: __BaseException,
|
|
2216
2176
|
errorCode,
|
|
2217
2177
|
});
|
|
2218
2178
|
}
|
|
@@ -2228,7 +2188,7 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
2228
2188
|
$metadata: deserializeMetadata(output),
|
|
2229
2189
|
...contents,
|
|
2230
2190
|
};
|
|
2231
|
-
return
|
|
2191
|
+
return response;
|
|
2232
2192
|
};
|
|
2233
2193
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
2234
2194
|
const parsedOutput = {
|
|
@@ -2260,10 +2220,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
2260
2220
|
throw await de_TagPolicyExceptionRes(parsedOutput, context);
|
|
2261
2221
|
default:
|
|
2262
2222
|
const parsedBody = parsedOutput.body;
|
|
2263
|
-
throwDefaultError({
|
|
2223
|
+
return throwDefaultError({
|
|
2264
2224
|
output,
|
|
2265
2225
|
parsedBody: parsedBody.Error,
|
|
2266
|
-
exceptionCtor: __BaseException,
|
|
2267
2226
|
errorCode,
|
|
2268
2227
|
});
|
|
2269
2228
|
}
|
|
@@ -2279,7 +2238,7 @@ export const de_VerifySMSSandboxPhoneNumberCommand = async (output, context) =>
|
|
|
2279
2238
|
$metadata: deserializeMetadata(output),
|
|
2280
2239
|
...contents,
|
|
2281
2240
|
};
|
|
2282
|
-
return
|
|
2241
|
+
return response;
|
|
2283
2242
|
};
|
|
2284
2243
|
const de_VerifySMSSandboxPhoneNumberCommandError = async (output, context) => {
|
|
2285
2244
|
const parsedOutput = {
|
|
@@ -2308,10 +2267,9 @@ const de_VerifySMSSandboxPhoneNumberCommandError = async (output, context) => {
|
|
|
2308
2267
|
throw await de_VerificationExceptionRes(parsedOutput, context);
|
|
2309
2268
|
default:
|
|
2310
2269
|
const parsedBody = parsedOutput.body;
|
|
2311
|
-
throwDefaultError({
|
|
2270
|
+
return throwDefaultError({
|
|
2312
2271
|
output,
|
|
2313
2272
|
parsedBody: parsedBody.Error,
|
|
2314
|
-
exceptionCtor: __BaseException,
|
|
2315
2273
|
errorCode,
|
|
2316
2274
|
});
|
|
2317
2275
|
}
|
|
@@ -4027,6 +3985,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
4027
3985
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
4028
3986
|
};
|
|
4029
3987
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3988
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
4030
3989
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
4031
3990
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4032
3991
|
const contents = {
|