@aws-sdk/client-sns 3.141.0 → 3.150.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 +27 -0
- package/dist-cjs/protocols/Aws_query.js +291 -444
- package/dist-es/protocols/Aws_query.js +412 -445
- package/package.json +11 -6
|
@@ -544,7 +544,6 @@ const deserializeAws_queryAddPermissionCommandError = async (output, context) =>
|
|
|
544
544
|
...output,
|
|
545
545
|
body: await parseBody(output.body, context),
|
|
546
546
|
};
|
|
547
|
-
let response;
|
|
548
547
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
549
548
|
switch (errorCode) {
|
|
550
549
|
case "AuthorizationErrorException":
|
|
@@ -561,14 +560,12 @@ const deserializeAws_queryAddPermissionCommandError = async (output, context) =>
|
|
|
561
560
|
throw await deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context);
|
|
562
561
|
default:
|
|
563
562
|
const parsedBody = parsedOutput.body;
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
$metadata,
|
|
563
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
564
|
+
output,
|
|
565
|
+
parsedBody: parsedBody.Error,
|
|
566
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
567
|
+
errorCode,
|
|
570
568
|
});
|
|
571
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
572
569
|
}
|
|
573
570
|
};
|
|
574
571
|
const deserializeAws_queryCheckIfPhoneNumberIsOptedOutCommand = async (output, context) => {
|
|
@@ -590,7 +587,6 @@ const deserializeAws_queryCheckIfPhoneNumberIsOptedOutCommandError = async (outp
|
|
|
590
587
|
...output,
|
|
591
588
|
body: await parseBody(output.body, context),
|
|
592
589
|
};
|
|
593
|
-
let response;
|
|
594
590
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
595
591
|
switch (errorCode) {
|
|
596
592
|
case "AuthorizationErrorException":
|
|
@@ -607,14 +603,12 @@ const deserializeAws_queryCheckIfPhoneNumberIsOptedOutCommandError = async (outp
|
|
|
607
603
|
throw await deserializeAws_queryThrottledExceptionResponse(parsedOutput, context);
|
|
608
604
|
default:
|
|
609
605
|
const parsedBody = parsedOutput.body;
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
$metadata,
|
|
606
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
607
|
+
output,
|
|
608
|
+
parsedBody: parsedBody.Error,
|
|
609
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
610
|
+
errorCode,
|
|
616
611
|
});
|
|
617
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
618
612
|
}
|
|
619
613
|
};
|
|
620
614
|
const deserializeAws_queryConfirmSubscriptionCommand = async (output, context) => {
|
|
@@ -636,7 +630,6 @@ const deserializeAws_queryConfirmSubscriptionCommandError = async (output, conte
|
|
|
636
630
|
...output,
|
|
637
631
|
body: await parseBody(output.body, context),
|
|
638
632
|
};
|
|
639
|
-
let response;
|
|
640
633
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
641
634
|
switch (errorCode) {
|
|
642
635
|
case "AuthorizationErrorException":
|
|
@@ -659,14 +652,12 @@ const deserializeAws_queryConfirmSubscriptionCommandError = async (output, conte
|
|
|
659
652
|
throw await deserializeAws_querySubscriptionLimitExceededExceptionResponse(parsedOutput, context);
|
|
660
653
|
default:
|
|
661
654
|
const parsedBody = parsedOutput.body;
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
$metadata,
|
|
655
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
656
|
+
output,
|
|
657
|
+
parsedBody: parsedBody.Error,
|
|
658
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
659
|
+
errorCode,
|
|
668
660
|
});
|
|
669
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
670
661
|
}
|
|
671
662
|
};
|
|
672
663
|
const deserializeAws_queryCreatePlatformApplicationCommand = async (output, context) => {
|
|
@@ -688,7 +679,6 @@ const deserializeAws_queryCreatePlatformApplicationCommandError = async (output,
|
|
|
688
679
|
...output,
|
|
689
680
|
body: await parseBody(output.body, context),
|
|
690
681
|
};
|
|
691
|
-
let response;
|
|
692
682
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
693
683
|
switch (errorCode) {
|
|
694
684
|
case "AuthorizationErrorException":
|
|
@@ -702,14 +692,12 @@ const deserializeAws_queryCreatePlatformApplicationCommandError = async (output,
|
|
|
702
692
|
throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
|
|
703
693
|
default:
|
|
704
694
|
const parsedBody = parsedOutput.body;
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
$metadata,
|
|
695
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
696
|
+
output,
|
|
697
|
+
parsedBody: parsedBody.Error,
|
|
698
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
699
|
+
errorCode,
|
|
711
700
|
});
|
|
712
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
713
701
|
}
|
|
714
702
|
};
|
|
715
703
|
const deserializeAws_queryCreatePlatformEndpointCommand = async (output, context) => {
|
|
@@ -731,7 +719,6 @@ const deserializeAws_queryCreatePlatformEndpointCommandError = async (output, co
|
|
|
731
719
|
...output,
|
|
732
720
|
body: await parseBody(output.body, context),
|
|
733
721
|
};
|
|
734
|
-
let response;
|
|
735
722
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
736
723
|
switch (errorCode) {
|
|
737
724
|
case "AuthorizationErrorException":
|
|
@@ -748,14 +735,12 @@ const deserializeAws_queryCreatePlatformEndpointCommandError = async (output, co
|
|
|
748
735
|
throw await deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context);
|
|
749
736
|
default:
|
|
750
737
|
const parsedBody = parsedOutput.body;
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
$metadata,
|
|
738
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
739
|
+
output,
|
|
740
|
+
parsedBody: parsedBody.Error,
|
|
741
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
742
|
+
errorCode,
|
|
757
743
|
});
|
|
758
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
759
744
|
}
|
|
760
745
|
};
|
|
761
746
|
const deserializeAws_queryCreateSMSSandboxPhoneNumberCommand = async (output, context) => {
|
|
@@ -777,7 +762,6 @@ const deserializeAws_queryCreateSMSSandboxPhoneNumberCommandError = async (outpu
|
|
|
777
762
|
...output,
|
|
778
763
|
body: await parseBody(output.body, context),
|
|
779
764
|
};
|
|
780
|
-
let response;
|
|
781
765
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
782
766
|
switch (errorCode) {
|
|
783
767
|
case "AuthorizationErrorException":
|
|
@@ -800,14 +784,12 @@ const deserializeAws_queryCreateSMSSandboxPhoneNumberCommandError = async (outpu
|
|
|
800
784
|
throw await deserializeAws_queryUserErrorExceptionResponse(parsedOutput, context);
|
|
801
785
|
default:
|
|
802
786
|
const parsedBody = parsedOutput.body;
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
$metadata,
|
|
787
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
788
|
+
output,
|
|
789
|
+
parsedBody: parsedBody.Error,
|
|
790
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
791
|
+
errorCode,
|
|
809
792
|
});
|
|
810
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
811
793
|
}
|
|
812
794
|
};
|
|
813
795
|
const deserializeAws_queryCreateTopicCommand = async (output, context) => {
|
|
@@ -829,7 +811,6 @@ const deserializeAws_queryCreateTopicCommandError = async (output, context) => {
|
|
|
829
811
|
...output,
|
|
830
812
|
body: await parseBody(output.body, context),
|
|
831
813
|
};
|
|
832
|
-
let response;
|
|
833
814
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
834
815
|
switch (errorCode) {
|
|
835
816
|
case "AuthorizationErrorException":
|
|
@@ -861,14 +842,12 @@ const deserializeAws_queryCreateTopicCommandError = async (output, context) => {
|
|
|
861
842
|
throw await deserializeAws_queryTopicLimitExceededExceptionResponse(parsedOutput, context);
|
|
862
843
|
default:
|
|
863
844
|
const parsedBody = parsedOutput.body;
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
$metadata,
|
|
845
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
846
|
+
output,
|
|
847
|
+
parsedBody: parsedBody.Error,
|
|
848
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
849
|
+
errorCode,
|
|
870
850
|
});
|
|
871
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
872
851
|
}
|
|
873
852
|
};
|
|
874
853
|
const deserializeAws_queryDeleteEndpointCommand = async (output, context) => {
|
|
@@ -887,7 +866,6 @@ const deserializeAws_queryDeleteEndpointCommandError = async (output, context) =
|
|
|
887
866
|
...output,
|
|
888
867
|
body: await parseBody(output.body, context),
|
|
889
868
|
};
|
|
890
|
-
let response;
|
|
891
869
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
892
870
|
switch (errorCode) {
|
|
893
871
|
case "AuthorizationErrorException":
|
|
@@ -901,14 +879,12 @@ const deserializeAws_queryDeleteEndpointCommandError = async (output, context) =
|
|
|
901
879
|
throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
|
|
902
880
|
default:
|
|
903
881
|
const parsedBody = parsedOutput.body;
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
$metadata,
|
|
882
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
883
|
+
output,
|
|
884
|
+
parsedBody: parsedBody.Error,
|
|
885
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
886
|
+
errorCode,
|
|
910
887
|
});
|
|
911
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
912
888
|
}
|
|
913
889
|
};
|
|
914
890
|
const deserializeAws_queryDeletePlatformApplicationCommand = async (output, context) => {
|
|
@@ -927,7 +903,6 @@ const deserializeAws_queryDeletePlatformApplicationCommandError = async (output,
|
|
|
927
903
|
...output,
|
|
928
904
|
body: await parseBody(output.body, context),
|
|
929
905
|
};
|
|
930
|
-
let response;
|
|
931
906
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
932
907
|
switch (errorCode) {
|
|
933
908
|
case "AuthorizationErrorException":
|
|
@@ -941,14 +916,12 @@ const deserializeAws_queryDeletePlatformApplicationCommandError = async (output,
|
|
|
941
916
|
throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
|
|
942
917
|
default:
|
|
943
918
|
const parsedBody = parsedOutput.body;
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
$metadata,
|
|
919
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
920
|
+
output,
|
|
921
|
+
parsedBody: parsedBody.Error,
|
|
922
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
923
|
+
errorCode,
|
|
950
924
|
});
|
|
951
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
952
925
|
}
|
|
953
926
|
};
|
|
954
927
|
const deserializeAws_queryDeleteSMSSandboxPhoneNumberCommand = async (output, context) => {
|
|
@@ -970,7 +943,6 @@ const deserializeAws_queryDeleteSMSSandboxPhoneNumberCommandError = async (outpu
|
|
|
970
943
|
...output,
|
|
971
944
|
body: await parseBody(output.body, context),
|
|
972
945
|
};
|
|
973
|
-
let response;
|
|
974
946
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
975
947
|
switch (errorCode) {
|
|
976
948
|
case "AuthorizationErrorException":
|
|
@@ -993,14 +965,12 @@ const deserializeAws_queryDeleteSMSSandboxPhoneNumberCommandError = async (outpu
|
|
|
993
965
|
throw await deserializeAws_queryUserErrorExceptionResponse(parsedOutput, context);
|
|
994
966
|
default:
|
|
995
967
|
const parsedBody = parsedOutput.body;
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
$metadata,
|
|
968
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
969
|
+
output,
|
|
970
|
+
parsedBody: parsedBody.Error,
|
|
971
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
972
|
+
errorCode,
|
|
1002
973
|
});
|
|
1003
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1004
974
|
}
|
|
1005
975
|
};
|
|
1006
976
|
const deserializeAws_queryDeleteTopicCommand = async (output, context) => {
|
|
@@ -1019,7 +989,6 @@ const deserializeAws_queryDeleteTopicCommandError = async (output, context) => {
|
|
|
1019
989
|
...output,
|
|
1020
990
|
body: await parseBody(output.body, context),
|
|
1021
991
|
};
|
|
1022
|
-
let response;
|
|
1023
992
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1024
993
|
switch (errorCode) {
|
|
1025
994
|
case "AuthorizationErrorException":
|
|
@@ -1045,14 +1014,12 @@ const deserializeAws_queryDeleteTopicCommandError = async (output, context) => {
|
|
|
1045
1014
|
throw await deserializeAws_queryTagPolicyExceptionResponse(parsedOutput, context);
|
|
1046
1015
|
default:
|
|
1047
1016
|
const parsedBody = parsedOutput.body;
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
$metadata,
|
|
1017
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1018
|
+
output,
|
|
1019
|
+
parsedBody: parsedBody.Error,
|
|
1020
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1021
|
+
errorCode,
|
|
1054
1022
|
});
|
|
1055
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1056
1023
|
}
|
|
1057
1024
|
};
|
|
1058
1025
|
const deserializeAws_queryGetEndpointAttributesCommand = async (output, context) => {
|
|
@@ -1074,7 +1041,6 @@ const deserializeAws_queryGetEndpointAttributesCommandError = async (output, con
|
|
|
1074
1041
|
...output,
|
|
1075
1042
|
body: await parseBody(output.body, context),
|
|
1076
1043
|
};
|
|
1077
|
-
let response;
|
|
1078
1044
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1079
1045
|
switch (errorCode) {
|
|
1080
1046
|
case "AuthorizationErrorException":
|
|
@@ -1091,14 +1057,12 @@ const deserializeAws_queryGetEndpointAttributesCommandError = async (output, con
|
|
|
1091
1057
|
throw await deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context);
|
|
1092
1058
|
default:
|
|
1093
1059
|
const parsedBody = parsedOutput.body;
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
$metadata,
|
|
1060
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1061
|
+
output,
|
|
1062
|
+
parsedBody: parsedBody.Error,
|
|
1063
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1064
|
+
errorCode,
|
|
1100
1065
|
});
|
|
1101
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1102
1066
|
}
|
|
1103
1067
|
};
|
|
1104
1068
|
const deserializeAws_queryGetPlatformApplicationAttributesCommand = async (output, context) => {
|
|
@@ -1120,7 +1084,6 @@ const deserializeAws_queryGetPlatformApplicationAttributesCommandError = async (
|
|
|
1120
1084
|
...output,
|
|
1121
1085
|
body: await parseBody(output.body, context),
|
|
1122
1086
|
};
|
|
1123
|
-
let response;
|
|
1124
1087
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1125
1088
|
switch (errorCode) {
|
|
1126
1089
|
case "AuthorizationErrorException":
|
|
@@ -1137,14 +1100,12 @@ const deserializeAws_queryGetPlatformApplicationAttributesCommandError = async (
|
|
|
1137
1100
|
throw await deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context);
|
|
1138
1101
|
default:
|
|
1139
1102
|
const parsedBody = parsedOutput.body;
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
$metadata,
|
|
1103
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1104
|
+
output,
|
|
1105
|
+
parsedBody: parsedBody.Error,
|
|
1106
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1107
|
+
errorCode,
|
|
1146
1108
|
});
|
|
1147
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1148
1109
|
}
|
|
1149
1110
|
};
|
|
1150
1111
|
const deserializeAws_queryGetSMSAttributesCommand = async (output, context) => {
|
|
@@ -1166,7 +1127,6 @@ const deserializeAws_queryGetSMSAttributesCommandError = async (output, context)
|
|
|
1166
1127
|
...output,
|
|
1167
1128
|
body: await parseBody(output.body, context),
|
|
1168
1129
|
};
|
|
1169
|
-
let response;
|
|
1170
1130
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1171
1131
|
switch (errorCode) {
|
|
1172
1132
|
case "AuthorizationErrorException":
|
|
@@ -1183,14 +1143,12 @@ const deserializeAws_queryGetSMSAttributesCommandError = async (output, context)
|
|
|
1183
1143
|
throw await deserializeAws_queryThrottledExceptionResponse(parsedOutput, context);
|
|
1184
1144
|
default:
|
|
1185
1145
|
const parsedBody = parsedOutput.body;
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
$metadata,
|
|
1146
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1147
|
+
output,
|
|
1148
|
+
parsedBody: parsedBody.Error,
|
|
1149
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1150
|
+
errorCode,
|
|
1192
1151
|
});
|
|
1193
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1194
1152
|
}
|
|
1195
1153
|
};
|
|
1196
1154
|
const deserializeAws_queryGetSMSSandboxAccountStatusCommand = async (output, context) => {
|
|
@@ -1212,7 +1170,6 @@ const deserializeAws_queryGetSMSSandboxAccountStatusCommandError = async (output
|
|
|
1212
1170
|
...output,
|
|
1213
1171
|
body: await parseBody(output.body, context),
|
|
1214
1172
|
};
|
|
1215
|
-
let response;
|
|
1216
1173
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1217
1174
|
switch (errorCode) {
|
|
1218
1175
|
case "AuthorizationErrorException":
|
|
@@ -1226,14 +1183,12 @@ const deserializeAws_queryGetSMSSandboxAccountStatusCommandError = async (output
|
|
|
1226
1183
|
throw await deserializeAws_queryThrottledExceptionResponse(parsedOutput, context);
|
|
1227
1184
|
default:
|
|
1228
1185
|
const parsedBody = parsedOutput.body;
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
$metadata,
|
|
1186
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1187
|
+
output,
|
|
1188
|
+
parsedBody: parsedBody.Error,
|
|
1189
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1190
|
+
errorCode,
|
|
1235
1191
|
});
|
|
1236
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1237
1192
|
}
|
|
1238
1193
|
};
|
|
1239
1194
|
const deserializeAws_queryGetSubscriptionAttributesCommand = async (output, context) => {
|
|
@@ -1255,7 +1210,6 @@ const deserializeAws_queryGetSubscriptionAttributesCommandError = async (output,
|
|
|
1255
1210
|
...output,
|
|
1256
1211
|
body: await parseBody(output.body, context),
|
|
1257
1212
|
};
|
|
1258
|
-
let response;
|
|
1259
1213
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1260
1214
|
switch (errorCode) {
|
|
1261
1215
|
case "AuthorizationErrorException":
|
|
@@ -1272,14 +1226,12 @@ const deserializeAws_queryGetSubscriptionAttributesCommandError = async (output,
|
|
|
1272
1226
|
throw await deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context);
|
|
1273
1227
|
default:
|
|
1274
1228
|
const parsedBody = parsedOutput.body;
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
$metadata,
|
|
1229
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1230
|
+
output,
|
|
1231
|
+
parsedBody: parsedBody.Error,
|
|
1232
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1233
|
+
errorCode,
|
|
1281
1234
|
});
|
|
1282
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1283
1235
|
}
|
|
1284
1236
|
};
|
|
1285
1237
|
const deserializeAws_queryGetTopicAttributesCommand = async (output, context) => {
|
|
@@ -1301,7 +1253,6 @@ const deserializeAws_queryGetTopicAttributesCommandError = async (output, contex
|
|
|
1301
1253
|
...output,
|
|
1302
1254
|
body: await parseBody(output.body, context),
|
|
1303
1255
|
};
|
|
1304
|
-
let response;
|
|
1305
1256
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1306
1257
|
switch (errorCode) {
|
|
1307
1258
|
case "AuthorizationErrorException":
|
|
@@ -1321,14 +1272,12 @@ const deserializeAws_queryGetTopicAttributesCommandError = async (output, contex
|
|
|
1321
1272
|
throw await deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context);
|
|
1322
1273
|
default:
|
|
1323
1274
|
const parsedBody = parsedOutput.body;
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
$metadata,
|
|
1275
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1276
|
+
output,
|
|
1277
|
+
parsedBody: parsedBody.Error,
|
|
1278
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1279
|
+
errorCode,
|
|
1330
1280
|
});
|
|
1331
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1332
1281
|
}
|
|
1333
1282
|
};
|
|
1334
1283
|
const deserializeAws_queryListEndpointsByPlatformApplicationCommand = async (output, context) => {
|
|
@@ -1350,7 +1299,6 @@ const deserializeAws_queryListEndpointsByPlatformApplicationCommandError = async
|
|
|
1350
1299
|
...output,
|
|
1351
1300
|
body: await parseBody(output.body, context),
|
|
1352
1301
|
};
|
|
1353
|
-
let response;
|
|
1354
1302
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1355
1303
|
switch (errorCode) {
|
|
1356
1304
|
case "AuthorizationErrorException":
|
|
@@ -1367,14 +1315,12 @@ const deserializeAws_queryListEndpointsByPlatformApplicationCommandError = async
|
|
|
1367
1315
|
throw await deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context);
|
|
1368
1316
|
default:
|
|
1369
1317
|
const parsedBody = parsedOutput.body;
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
$metadata,
|
|
1318
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1319
|
+
output,
|
|
1320
|
+
parsedBody: parsedBody.Error,
|
|
1321
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1322
|
+
errorCode,
|
|
1376
1323
|
});
|
|
1377
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1378
1324
|
}
|
|
1379
1325
|
};
|
|
1380
1326
|
const deserializeAws_queryListOriginationNumbersCommand = async (output, context) => {
|
|
@@ -1396,7 +1342,6 @@ const deserializeAws_queryListOriginationNumbersCommandError = async (output, co
|
|
|
1396
1342
|
...output,
|
|
1397
1343
|
body: await parseBody(output.body, context),
|
|
1398
1344
|
};
|
|
1399
|
-
let response;
|
|
1400
1345
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1401
1346
|
switch (errorCode) {
|
|
1402
1347
|
case "AuthorizationErrorException":
|
|
@@ -1416,14 +1361,12 @@ const deserializeAws_queryListOriginationNumbersCommandError = async (output, co
|
|
|
1416
1361
|
throw await deserializeAws_queryValidationExceptionResponse(parsedOutput, context);
|
|
1417
1362
|
default:
|
|
1418
1363
|
const parsedBody = parsedOutput.body;
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
$metadata,
|
|
1364
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1365
|
+
output,
|
|
1366
|
+
parsedBody: parsedBody.Error,
|
|
1367
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1368
|
+
errorCode,
|
|
1425
1369
|
});
|
|
1426
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1427
1370
|
}
|
|
1428
1371
|
};
|
|
1429
1372
|
const deserializeAws_queryListPhoneNumbersOptedOutCommand = async (output, context) => {
|
|
@@ -1445,7 +1388,6 @@ const deserializeAws_queryListPhoneNumbersOptedOutCommandError = async (output,
|
|
|
1445
1388
|
...output,
|
|
1446
1389
|
body: await parseBody(output.body, context),
|
|
1447
1390
|
};
|
|
1448
|
-
let response;
|
|
1449
1391
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1450
1392
|
switch (errorCode) {
|
|
1451
1393
|
case "AuthorizationErrorException":
|
|
@@ -1462,14 +1404,12 @@ const deserializeAws_queryListPhoneNumbersOptedOutCommandError = async (output,
|
|
|
1462
1404
|
throw await deserializeAws_queryThrottledExceptionResponse(parsedOutput, context);
|
|
1463
1405
|
default:
|
|
1464
1406
|
const parsedBody = parsedOutput.body;
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
$metadata,
|
|
1407
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1408
|
+
output,
|
|
1409
|
+
parsedBody: parsedBody.Error,
|
|
1410
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1411
|
+
errorCode,
|
|
1471
1412
|
});
|
|
1472
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1473
1413
|
}
|
|
1474
1414
|
};
|
|
1475
1415
|
const deserializeAws_queryListPlatformApplicationsCommand = async (output, context) => {
|
|
@@ -1491,7 +1431,6 @@ const deserializeAws_queryListPlatformApplicationsCommandError = async (output,
|
|
|
1491
1431
|
...output,
|
|
1492
1432
|
body: await parseBody(output.body, context),
|
|
1493
1433
|
};
|
|
1494
|
-
let response;
|
|
1495
1434
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1496
1435
|
switch (errorCode) {
|
|
1497
1436
|
case "AuthorizationErrorException":
|
|
@@ -1505,14 +1444,12 @@ const deserializeAws_queryListPlatformApplicationsCommandError = async (output,
|
|
|
1505
1444
|
throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
|
|
1506
1445
|
default:
|
|
1507
1446
|
const parsedBody = parsedOutput.body;
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
$metadata,
|
|
1447
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1448
|
+
output,
|
|
1449
|
+
parsedBody: parsedBody.Error,
|
|
1450
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1451
|
+
errorCode,
|
|
1514
1452
|
});
|
|
1515
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1516
1453
|
}
|
|
1517
1454
|
};
|
|
1518
1455
|
const deserializeAws_queryListSMSSandboxPhoneNumbersCommand = async (output, context) => {
|
|
@@ -1534,7 +1471,6 @@ const deserializeAws_queryListSMSSandboxPhoneNumbersCommandError = async (output
|
|
|
1534
1471
|
...output,
|
|
1535
1472
|
body: await parseBody(output.body, context),
|
|
1536
1473
|
};
|
|
1537
|
-
let response;
|
|
1538
1474
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1539
1475
|
switch (errorCode) {
|
|
1540
1476
|
case "AuthorizationErrorException":
|
|
@@ -1554,14 +1490,12 @@ const deserializeAws_queryListSMSSandboxPhoneNumbersCommandError = async (output
|
|
|
1554
1490
|
throw await deserializeAws_queryThrottledExceptionResponse(parsedOutput, context);
|
|
1555
1491
|
default:
|
|
1556
1492
|
const parsedBody = parsedOutput.body;
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
$metadata,
|
|
1493
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1494
|
+
output,
|
|
1495
|
+
parsedBody: parsedBody.Error,
|
|
1496
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1497
|
+
errorCode,
|
|
1563
1498
|
});
|
|
1564
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1565
1499
|
}
|
|
1566
1500
|
};
|
|
1567
1501
|
const deserializeAws_queryListSubscriptionsCommand = async (output, context) => {
|
|
@@ -1583,7 +1517,6 @@ const deserializeAws_queryListSubscriptionsCommandError = async (output, context
|
|
|
1583
1517
|
...output,
|
|
1584
1518
|
body: await parseBody(output.body, context),
|
|
1585
1519
|
};
|
|
1586
|
-
let response;
|
|
1587
1520
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1588
1521
|
switch (errorCode) {
|
|
1589
1522
|
case "AuthorizationErrorException":
|
|
@@ -1597,14 +1530,12 @@ const deserializeAws_queryListSubscriptionsCommandError = async (output, context
|
|
|
1597
1530
|
throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
|
|
1598
1531
|
default:
|
|
1599
1532
|
const parsedBody = parsedOutput.body;
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
$metadata,
|
|
1533
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1534
|
+
output,
|
|
1535
|
+
parsedBody: parsedBody.Error,
|
|
1536
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1537
|
+
errorCode,
|
|
1606
1538
|
});
|
|
1607
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1608
1539
|
}
|
|
1609
1540
|
};
|
|
1610
1541
|
const deserializeAws_queryListSubscriptionsByTopicCommand = async (output, context) => {
|
|
@@ -1626,7 +1557,6 @@ const deserializeAws_queryListSubscriptionsByTopicCommandError = async (output,
|
|
|
1626
1557
|
...output,
|
|
1627
1558
|
body: await parseBody(output.body, context),
|
|
1628
1559
|
};
|
|
1629
|
-
let response;
|
|
1630
1560
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1631
1561
|
switch (errorCode) {
|
|
1632
1562
|
case "AuthorizationErrorException":
|
|
@@ -1643,14 +1573,12 @@ const deserializeAws_queryListSubscriptionsByTopicCommandError = async (output,
|
|
|
1643
1573
|
throw await deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context);
|
|
1644
1574
|
default:
|
|
1645
1575
|
const parsedBody = parsedOutput.body;
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
$metadata,
|
|
1576
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1577
|
+
output,
|
|
1578
|
+
parsedBody: parsedBody.Error,
|
|
1579
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1580
|
+
errorCode,
|
|
1652
1581
|
});
|
|
1653
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1654
1582
|
}
|
|
1655
1583
|
};
|
|
1656
1584
|
const deserializeAws_queryListTagsForResourceCommand = async (output, context) => {
|
|
@@ -1672,7 +1600,6 @@ const deserializeAws_queryListTagsForResourceCommandError = async (output, conte
|
|
|
1672
1600
|
...output,
|
|
1673
1601
|
body: await parseBody(output.body, context),
|
|
1674
1602
|
};
|
|
1675
|
-
let response;
|
|
1676
1603
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1677
1604
|
switch (errorCode) {
|
|
1678
1605
|
case "AuthorizationErrorException":
|
|
@@ -1692,14 +1619,12 @@ const deserializeAws_queryListTagsForResourceCommandError = async (output, conte
|
|
|
1692
1619
|
throw await deserializeAws_queryTagPolicyExceptionResponse(parsedOutput, context);
|
|
1693
1620
|
default:
|
|
1694
1621
|
const parsedBody = parsedOutput.body;
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
$metadata,
|
|
1622
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1623
|
+
output,
|
|
1624
|
+
parsedBody: parsedBody.Error,
|
|
1625
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1626
|
+
errorCode,
|
|
1701
1627
|
});
|
|
1702
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1703
1628
|
}
|
|
1704
1629
|
};
|
|
1705
1630
|
const deserializeAws_queryListTopicsCommand = async (output, context) => {
|
|
@@ -1721,7 +1646,6 @@ const deserializeAws_queryListTopicsCommandError = async (output, context) => {
|
|
|
1721
1646
|
...output,
|
|
1722
1647
|
body: await parseBody(output.body, context),
|
|
1723
1648
|
};
|
|
1724
|
-
let response;
|
|
1725
1649
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1726
1650
|
switch (errorCode) {
|
|
1727
1651
|
case "AuthorizationErrorException":
|
|
@@ -1735,14 +1659,12 @@ const deserializeAws_queryListTopicsCommandError = async (output, context) => {
|
|
|
1735
1659
|
throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
|
|
1736
1660
|
default:
|
|
1737
1661
|
const parsedBody = parsedOutput.body;
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
$metadata,
|
|
1662
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1663
|
+
output,
|
|
1664
|
+
parsedBody: parsedBody.Error,
|
|
1665
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1666
|
+
errorCode,
|
|
1744
1667
|
});
|
|
1745
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1746
1668
|
}
|
|
1747
1669
|
};
|
|
1748
1670
|
const deserializeAws_queryOptInPhoneNumberCommand = async (output, context) => {
|
|
@@ -1764,7 +1686,6 @@ const deserializeAws_queryOptInPhoneNumberCommandError = async (output, context)
|
|
|
1764
1686
|
...output,
|
|
1765
1687
|
body: await parseBody(output.body, context),
|
|
1766
1688
|
};
|
|
1767
|
-
let response;
|
|
1768
1689
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1769
1690
|
switch (errorCode) {
|
|
1770
1691
|
case "AuthorizationErrorException":
|
|
@@ -1781,14 +1702,12 @@ const deserializeAws_queryOptInPhoneNumberCommandError = async (output, context)
|
|
|
1781
1702
|
throw await deserializeAws_queryThrottledExceptionResponse(parsedOutput, context);
|
|
1782
1703
|
default:
|
|
1783
1704
|
const parsedBody = parsedOutput.body;
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
$metadata,
|
|
1705
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1706
|
+
output,
|
|
1707
|
+
parsedBody: parsedBody.Error,
|
|
1708
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1709
|
+
errorCode,
|
|
1790
1710
|
});
|
|
1791
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1792
1711
|
}
|
|
1793
1712
|
};
|
|
1794
1713
|
const deserializeAws_queryPublishCommand = async (output, context) => {
|
|
@@ -1810,7 +1729,6 @@ const deserializeAws_queryPublishCommandError = async (output, context) => {
|
|
|
1810
1729
|
...output,
|
|
1811
1730
|
body: await parseBody(output.body, context),
|
|
1812
1731
|
};
|
|
1813
|
-
let response;
|
|
1814
1732
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1815
1733
|
switch (errorCode) {
|
|
1816
1734
|
case "AuthorizationErrorException":
|
|
@@ -1857,14 +1775,12 @@ const deserializeAws_queryPublishCommandError = async (output, context) => {
|
|
|
1857
1775
|
throw await deserializeAws_queryPlatformApplicationDisabledExceptionResponse(parsedOutput, context);
|
|
1858
1776
|
default:
|
|
1859
1777
|
const parsedBody = parsedOutput.body;
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
$metadata,
|
|
1778
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1779
|
+
output,
|
|
1780
|
+
parsedBody: parsedBody.Error,
|
|
1781
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1782
|
+
errorCode,
|
|
1866
1783
|
});
|
|
1867
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1868
1784
|
}
|
|
1869
1785
|
};
|
|
1870
1786
|
const deserializeAws_queryPublishBatchCommand = async (output, context) => {
|
|
@@ -1886,7 +1802,6 @@ const deserializeAws_queryPublishBatchCommandError = async (output, context) =>
|
|
|
1886
1802
|
...output,
|
|
1887
1803
|
body: await parseBody(output.body, context),
|
|
1888
1804
|
};
|
|
1889
|
-
let response;
|
|
1890
1805
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1891
1806
|
switch (errorCode) {
|
|
1892
1807
|
case "AuthorizationErrorException":
|
|
@@ -1948,14 +1863,12 @@ const deserializeAws_queryPublishBatchCommandError = async (output, context) =>
|
|
|
1948
1863
|
throw await deserializeAws_queryTooManyEntriesInBatchRequestExceptionResponse(parsedOutput, context);
|
|
1949
1864
|
default:
|
|
1950
1865
|
const parsedBody = parsedOutput.body;
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
$metadata,
|
|
1866
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1867
|
+
output,
|
|
1868
|
+
parsedBody: parsedBody.Error,
|
|
1869
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1870
|
+
errorCode,
|
|
1957
1871
|
});
|
|
1958
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1959
1872
|
}
|
|
1960
1873
|
};
|
|
1961
1874
|
const deserializeAws_queryRemovePermissionCommand = async (output, context) => {
|
|
@@ -1974,7 +1887,6 @@ const deserializeAws_queryRemovePermissionCommandError = async (output, context)
|
|
|
1974
1887
|
...output,
|
|
1975
1888
|
body: await parseBody(output.body, context),
|
|
1976
1889
|
};
|
|
1977
|
-
let response;
|
|
1978
1890
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1979
1891
|
switch (errorCode) {
|
|
1980
1892
|
case "AuthorizationErrorException":
|
|
@@ -1991,14 +1903,12 @@ const deserializeAws_queryRemovePermissionCommandError = async (output, context)
|
|
|
1991
1903
|
throw await deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context);
|
|
1992
1904
|
default:
|
|
1993
1905
|
const parsedBody = parsedOutput.body;
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
$metadata,
|
|
1906
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1907
|
+
output,
|
|
1908
|
+
parsedBody: parsedBody.Error,
|
|
1909
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1910
|
+
errorCode,
|
|
2000
1911
|
});
|
|
2001
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2002
1912
|
}
|
|
2003
1913
|
};
|
|
2004
1914
|
const deserializeAws_querySetEndpointAttributesCommand = async (output, context) => {
|
|
@@ -2017,7 +1927,6 @@ const deserializeAws_querySetEndpointAttributesCommandError = async (output, con
|
|
|
2017
1927
|
...output,
|
|
2018
1928
|
body: await parseBody(output.body, context),
|
|
2019
1929
|
};
|
|
2020
|
-
let response;
|
|
2021
1930
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2022
1931
|
switch (errorCode) {
|
|
2023
1932
|
case "AuthorizationErrorException":
|
|
@@ -2034,14 +1943,12 @@ const deserializeAws_querySetEndpointAttributesCommandError = async (output, con
|
|
|
2034
1943
|
throw await deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context);
|
|
2035
1944
|
default:
|
|
2036
1945
|
const parsedBody = parsedOutput.body;
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
$metadata,
|
|
1946
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1947
|
+
output,
|
|
1948
|
+
parsedBody: parsedBody.Error,
|
|
1949
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1950
|
+
errorCode,
|
|
2043
1951
|
});
|
|
2044
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2045
1952
|
}
|
|
2046
1953
|
};
|
|
2047
1954
|
const deserializeAws_querySetPlatformApplicationAttributesCommand = async (output, context) => {
|
|
@@ -2060,7 +1967,6 @@ const deserializeAws_querySetPlatformApplicationAttributesCommandError = async (
|
|
|
2060
1967
|
...output,
|
|
2061
1968
|
body: await parseBody(output.body, context),
|
|
2062
1969
|
};
|
|
2063
|
-
let response;
|
|
2064
1970
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2065
1971
|
switch (errorCode) {
|
|
2066
1972
|
case "AuthorizationErrorException":
|
|
@@ -2077,14 +1983,12 @@ const deserializeAws_querySetPlatformApplicationAttributesCommandError = async (
|
|
|
2077
1983
|
throw await deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context);
|
|
2078
1984
|
default:
|
|
2079
1985
|
const parsedBody = parsedOutput.body;
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
$metadata,
|
|
1986
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1987
|
+
output,
|
|
1988
|
+
parsedBody: parsedBody.Error,
|
|
1989
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1990
|
+
errorCode,
|
|
2086
1991
|
});
|
|
2087
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2088
1992
|
}
|
|
2089
1993
|
};
|
|
2090
1994
|
const deserializeAws_querySetSMSAttributesCommand = async (output, context) => {
|
|
@@ -2106,7 +2010,6 @@ const deserializeAws_querySetSMSAttributesCommandError = async (output, context)
|
|
|
2106
2010
|
...output,
|
|
2107
2011
|
body: await parseBody(output.body, context),
|
|
2108
2012
|
};
|
|
2109
|
-
let response;
|
|
2110
2013
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2111
2014
|
switch (errorCode) {
|
|
2112
2015
|
case "AuthorizationErrorException":
|
|
@@ -2123,14 +2026,12 @@ const deserializeAws_querySetSMSAttributesCommandError = async (output, context)
|
|
|
2123
2026
|
throw await deserializeAws_queryThrottledExceptionResponse(parsedOutput, context);
|
|
2124
2027
|
default:
|
|
2125
2028
|
const parsedBody = parsedOutput.body;
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
$metadata,
|
|
2029
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2030
|
+
output,
|
|
2031
|
+
parsedBody: parsedBody.Error,
|
|
2032
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
2033
|
+
errorCode,
|
|
2132
2034
|
});
|
|
2133
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2134
2035
|
}
|
|
2135
2036
|
};
|
|
2136
2037
|
const deserializeAws_querySetSubscriptionAttributesCommand = async (output, context) => {
|
|
@@ -2149,7 +2050,6 @@ const deserializeAws_querySetSubscriptionAttributesCommandError = async (output,
|
|
|
2149
2050
|
...output,
|
|
2150
2051
|
body: await parseBody(output.body, context),
|
|
2151
2052
|
};
|
|
2152
|
-
let response;
|
|
2153
2053
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2154
2054
|
switch (errorCode) {
|
|
2155
2055
|
case "AuthorizationErrorException":
|
|
@@ -2169,14 +2069,12 @@ const deserializeAws_querySetSubscriptionAttributesCommandError = async (output,
|
|
|
2169
2069
|
throw await deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context);
|
|
2170
2070
|
default:
|
|
2171
2071
|
const parsedBody = parsedOutput.body;
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
$metadata,
|
|
2072
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2073
|
+
output,
|
|
2074
|
+
parsedBody: parsedBody.Error,
|
|
2075
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
2076
|
+
errorCode,
|
|
2178
2077
|
});
|
|
2179
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2180
2078
|
}
|
|
2181
2079
|
};
|
|
2182
2080
|
const deserializeAws_querySetTopicAttributesCommand = async (output, context) => {
|
|
@@ -2195,7 +2093,6 @@ const deserializeAws_querySetTopicAttributesCommandError = async (output, contex
|
|
|
2195
2093
|
...output,
|
|
2196
2094
|
body: await parseBody(output.body, context),
|
|
2197
2095
|
};
|
|
2198
|
-
let response;
|
|
2199
2096
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2200
2097
|
switch (errorCode) {
|
|
2201
2098
|
case "AuthorizationErrorException":
|
|
@@ -2215,14 +2112,12 @@ const deserializeAws_querySetTopicAttributesCommandError = async (output, contex
|
|
|
2215
2112
|
throw await deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context);
|
|
2216
2113
|
default:
|
|
2217
2114
|
const parsedBody = parsedOutput.body;
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
$metadata,
|
|
2115
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2116
|
+
output,
|
|
2117
|
+
parsedBody: parsedBody.Error,
|
|
2118
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
2119
|
+
errorCode,
|
|
2224
2120
|
});
|
|
2225
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2226
2121
|
}
|
|
2227
2122
|
};
|
|
2228
2123
|
const deserializeAws_querySubscribeCommand = async (output, context) => {
|
|
@@ -2244,7 +2139,6 @@ const deserializeAws_querySubscribeCommandError = async (output, context) => {
|
|
|
2244
2139
|
...output,
|
|
2245
2140
|
body: await parseBody(output.body, context),
|
|
2246
2141
|
};
|
|
2247
|
-
let response;
|
|
2248
2142
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2249
2143
|
switch (errorCode) {
|
|
2250
2144
|
case "AuthorizationErrorException":
|
|
@@ -2270,14 +2164,12 @@ const deserializeAws_querySubscribeCommandError = async (output, context) => {
|
|
|
2270
2164
|
throw await deserializeAws_querySubscriptionLimitExceededExceptionResponse(parsedOutput, context);
|
|
2271
2165
|
default:
|
|
2272
2166
|
const parsedBody = parsedOutput.body;
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
$metadata,
|
|
2167
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2168
|
+
output,
|
|
2169
|
+
parsedBody: parsedBody.Error,
|
|
2170
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
2171
|
+
errorCode,
|
|
2279
2172
|
});
|
|
2280
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2281
2173
|
}
|
|
2282
2174
|
};
|
|
2283
2175
|
const deserializeAws_queryTagResourceCommand = async (output, context) => {
|
|
@@ -2299,7 +2191,6 @@ const deserializeAws_queryTagResourceCommandError = async (output, context) => {
|
|
|
2299
2191
|
...output,
|
|
2300
2192
|
body: await parseBody(output.body, context),
|
|
2301
2193
|
};
|
|
2302
|
-
let response;
|
|
2303
2194
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2304
2195
|
switch (errorCode) {
|
|
2305
2196
|
case "AuthorizationErrorException":
|
|
@@ -2325,14 +2216,12 @@ const deserializeAws_queryTagResourceCommandError = async (output, context) => {
|
|
|
2325
2216
|
throw await deserializeAws_queryTagPolicyExceptionResponse(parsedOutput, context);
|
|
2326
2217
|
default:
|
|
2327
2218
|
const parsedBody = parsedOutput.body;
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
$metadata,
|
|
2219
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2220
|
+
output,
|
|
2221
|
+
parsedBody: parsedBody.Error,
|
|
2222
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
2223
|
+
errorCode,
|
|
2334
2224
|
});
|
|
2335
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2336
2225
|
}
|
|
2337
2226
|
};
|
|
2338
2227
|
const deserializeAws_queryUnsubscribeCommand = async (output, context) => {
|
|
@@ -2351,7 +2240,6 @@ const deserializeAws_queryUnsubscribeCommandError = async (output, context) => {
|
|
|
2351
2240
|
...output,
|
|
2352
2241
|
body: await parseBody(output.body, context),
|
|
2353
2242
|
};
|
|
2354
|
-
let response;
|
|
2355
2243
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2356
2244
|
switch (errorCode) {
|
|
2357
2245
|
case "AuthorizationErrorException":
|
|
@@ -2371,14 +2259,12 @@ const deserializeAws_queryUnsubscribeCommandError = async (output, context) => {
|
|
|
2371
2259
|
throw await deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context);
|
|
2372
2260
|
default:
|
|
2373
2261
|
const parsedBody = parsedOutput.body;
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
$metadata,
|
|
2262
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2263
|
+
output,
|
|
2264
|
+
parsedBody: parsedBody.Error,
|
|
2265
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
2266
|
+
errorCode,
|
|
2380
2267
|
});
|
|
2381
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2382
2268
|
}
|
|
2383
2269
|
};
|
|
2384
2270
|
const deserializeAws_queryUntagResourceCommand = async (output, context) => {
|
|
@@ -2400,7 +2286,6 @@ const deserializeAws_queryUntagResourceCommandError = async (output, context) =>
|
|
|
2400
2286
|
...output,
|
|
2401
2287
|
body: await parseBody(output.body, context),
|
|
2402
2288
|
};
|
|
2403
|
-
let response;
|
|
2404
2289
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2405
2290
|
switch (errorCode) {
|
|
2406
2291
|
case "AuthorizationErrorException":
|
|
@@ -2426,14 +2311,12 @@ const deserializeAws_queryUntagResourceCommandError = async (output, context) =>
|
|
|
2426
2311
|
throw await deserializeAws_queryTagPolicyExceptionResponse(parsedOutput, context);
|
|
2427
2312
|
default:
|
|
2428
2313
|
const parsedBody = parsedOutput.body;
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
$metadata,
|
|
2314
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2315
|
+
output,
|
|
2316
|
+
parsedBody: parsedBody.Error,
|
|
2317
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
2318
|
+
errorCode,
|
|
2435
2319
|
});
|
|
2436
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2437
2320
|
}
|
|
2438
2321
|
};
|
|
2439
2322
|
const deserializeAws_queryVerifySMSSandboxPhoneNumberCommand = async (output, context) => {
|
|
@@ -2455,7 +2338,6 @@ const deserializeAws_queryVerifySMSSandboxPhoneNumberCommandError = async (outpu
|
|
|
2455
2338
|
...output,
|
|
2456
2339
|
body: await parseBody(output.body, context),
|
|
2457
2340
|
};
|
|
2458
|
-
let response;
|
|
2459
2341
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2460
2342
|
switch (errorCode) {
|
|
2461
2343
|
case "AuthorizationErrorException":
|
|
@@ -2478,14 +2360,12 @@ const deserializeAws_queryVerifySMSSandboxPhoneNumberCommandError = async (outpu
|
|
|
2478
2360
|
throw await deserializeAws_queryVerificationExceptionResponse(parsedOutput, context);
|
|
2479
2361
|
default:
|
|
2480
2362
|
const parsedBody = parsedOutput.body;
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
$metadata,
|
|
2363
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2364
|
+
output,
|
|
2365
|
+
parsedBody: parsedBody.Error,
|
|
2366
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
2367
|
+
errorCode,
|
|
2487
2368
|
});
|
|
2488
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2489
2369
|
}
|
|
2490
2370
|
};
|
|
2491
2371
|
const deserializeAws_queryAuthorizationErrorExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -2790,20 +2670,20 @@ const serializeAws_queryActionsList = (input, context) => {
|
|
|
2790
2670
|
};
|
|
2791
2671
|
const serializeAws_queryAddPermissionInput = (input, context) => {
|
|
2792
2672
|
const entries = {};
|
|
2793
|
-
if (input.TopicArn
|
|
2673
|
+
if (input.TopicArn != null) {
|
|
2794
2674
|
entries["TopicArn"] = input.TopicArn;
|
|
2795
2675
|
}
|
|
2796
|
-
if (input.Label
|
|
2676
|
+
if (input.Label != null) {
|
|
2797
2677
|
entries["Label"] = input.Label;
|
|
2798
2678
|
}
|
|
2799
|
-
if (input.AWSAccountId
|
|
2679
|
+
if (input.AWSAccountId != null) {
|
|
2800
2680
|
const memberEntries = serializeAws_queryDelegatesList(input.AWSAccountId, context);
|
|
2801
2681
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
2802
2682
|
const loc = `AWSAccountId.${key}`;
|
|
2803
2683
|
entries[loc] = value;
|
|
2804
2684
|
});
|
|
2805
2685
|
}
|
|
2806
|
-
if (input.ActionName
|
|
2686
|
+
if (input.ActionName != null) {
|
|
2807
2687
|
const memberEntries = serializeAws_queryActionsList(input.ActionName, context);
|
|
2808
2688
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
2809
2689
|
const loc = `ActionName.${key}`;
|
|
@@ -2814,33 +2694,33 @@ const serializeAws_queryAddPermissionInput = (input, context) => {
|
|
|
2814
2694
|
};
|
|
2815
2695
|
const serializeAws_queryCheckIfPhoneNumberIsOptedOutInput = (input, context) => {
|
|
2816
2696
|
const entries = {};
|
|
2817
|
-
if (input.phoneNumber
|
|
2697
|
+
if (input.phoneNumber != null) {
|
|
2818
2698
|
entries["phoneNumber"] = input.phoneNumber;
|
|
2819
2699
|
}
|
|
2820
2700
|
return entries;
|
|
2821
2701
|
};
|
|
2822
2702
|
const serializeAws_queryConfirmSubscriptionInput = (input, context) => {
|
|
2823
2703
|
const entries = {};
|
|
2824
|
-
if (input.TopicArn
|
|
2704
|
+
if (input.TopicArn != null) {
|
|
2825
2705
|
entries["TopicArn"] = input.TopicArn;
|
|
2826
2706
|
}
|
|
2827
|
-
if (input.Token
|
|
2707
|
+
if (input.Token != null) {
|
|
2828
2708
|
entries["Token"] = input.Token;
|
|
2829
2709
|
}
|
|
2830
|
-
if (input.AuthenticateOnUnsubscribe
|
|
2710
|
+
if (input.AuthenticateOnUnsubscribe != null) {
|
|
2831
2711
|
entries["AuthenticateOnUnsubscribe"] = input.AuthenticateOnUnsubscribe;
|
|
2832
2712
|
}
|
|
2833
2713
|
return entries;
|
|
2834
2714
|
};
|
|
2835
2715
|
const serializeAws_queryCreatePlatformApplicationInput = (input, context) => {
|
|
2836
2716
|
const entries = {};
|
|
2837
|
-
if (input.Name
|
|
2717
|
+
if (input.Name != null) {
|
|
2838
2718
|
entries["Name"] = input.Name;
|
|
2839
2719
|
}
|
|
2840
|
-
if (input.Platform
|
|
2720
|
+
if (input.Platform != null) {
|
|
2841
2721
|
entries["Platform"] = input.Platform;
|
|
2842
2722
|
}
|
|
2843
|
-
if (input.Attributes
|
|
2723
|
+
if (input.Attributes != null) {
|
|
2844
2724
|
const memberEntries = serializeAws_queryMapStringToString(input.Attributes, context);
|
|
2845
2725
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
2846
2726
|
const loc = `Attributes.${key}`;
|
|
@@ -2851,16 +2731,16 @@ const serializeAws_queryCreatePlatformApplicationInput = (input, context) => {
|
|
|
2851
2731
|
};
|
|
2852
2732
|
const serializeAws_queryCreatePlatformEndpointInput = (input, context) => {
|
|
2853
2733
|
const entries = {};
|
|
2854
|
-
if (input.PlatformApplicationArn
|
|
2734
|
+
if (input.PlatformApplicationArn != null) {
|
|
2855
2735
|
entries["PlatformApplicationArn"] = input.PlatformApplicationArn;
|
|
2856
2736
|
}
|
|
2857
|
-
if (input.Token
|
|
2737
|
+
if (input.Token != null) {
|
|
2858
2738
|
entries["Token"] = input.Token;
|
|
2859
2739
|
}
|
|
2860
|
-
if (input.CustomUserData
|
|
2740
|
+
if (input.CustomUserData != null) {
|
|
2861
2741
|
entries["CustomUserData"] = input.CustomUserData;
|
|
2862
2742
|
}
|
|
2863
|
-
if (input.Attributes
|
|
2743
|
+
if (input.Attributes != null) {
|
|
2864
2744
|
const memberEntries = serializeAws_queryMapStringToString(input.Attributes, context);
|
|
2865
2745
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
2866
2746
|
const loc = `Attributes.${key}`;
|
|
@@ -2871,27 +2751,27 @@ const serializeAws_queryCreatePlatformEndpointInput = (input, context) => {
|
|
|
2871
2751
|
};
|
|
2872
2752
|
const serializeAws_queryCreateSMSSandboxPhoneNumberInput = (input, context) => {
|
|
2873
2753
|
const entries = {};
|
|
2874
|
-
if (input.PhoneNumber
|
|
2754
|
+
if (input.PhoneNumber != null) {
|
|
2875
2755
|
entries["PhoneNumber"] = input.PhoneNumber;
|
|
2876
2756
|
}
|
|
2877
|
-
if (input.LanguageCode
|
|
2757
|
+
if (input.LanguageCode != null) {
|
|
2878
2758
|
entries["LanguageCode"] = input.LanguageCode;
|
|
2879
2759
|
}
|
|
2880
2760
|
return entries;
|
|
2881
2761
|
};
|
|
2882
2762
|
const serializeAws_queryCreateTopicInput = (input, context) => {
|
|
2883
2763
|
const entries = {};
|
|
2884
|
-
if (input.Name
|
|
2764
|
+
if (input.Name != null) {
|
|
2885
2765
|
entries["Name"] = input.Name;
|
|
2886
2766
|
}
|
|
2887
|
-
if (input.Attributes
|
|
2767
|
+
if (input.Attributes != null) {
|
|
2888
2768
|
const memberEntries = serializeAws_queryTopicAttributesMap(input.Attributes, context);
|
|
2889
2769
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
2890
2770
|
const loc = `Attributes.${key}`;
|
|
2891
2771
|
entries[loc] = value;
|
|
2892
2772
|
});
|
|
2893
2773
|
}
|
|
2894
|
-
if (input.Tags
|
|
2774
|
+
if (input.Tags != null) {
|
|
2895
2775
|
const memberEntries = serializeAws_queryTagList(input.Tags, context);
|
|
2896
2776
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
2897
2777
|
const loc = `Tags.${key}`;
|
|
@@ -2914,49 +2794,49 @@ const serializeAws_queryDelegatesList = (input, context) => {
|
|
|
2914
2794
|
};
|
|
2915
2795
|
const serializeAws_queryDeleteEndpointInput = (input, context) => {
|
|
2916
2796
|
const entries = {};
|
|
2917
|
-
if (input.EndpointArn
|
|
2797
|
+
if (input.EndpointArn != null) {
|
|
2918
2798
|
entries["EndpointArn"] = input.EndpointArn;
|
|
2919
2799
|
}
|
|
2920
2800
|
return entries;
|
|
2921
2801
|
};
|
|
2922
2802
|
const serializeAws_queryDeletePlatformApplicationInput = (input, context) => {
|
|
2923
2803
|
const entries = {};
|
|
2924
|
-
if (input.PlatformApplicationArn
|
|
2804
|
+
if (input.PlatformApplicationArn != null) {
|
|
2925
2805
|
entries["PlatformApplicationArn"] = input.PlatformApplicationArn;
|
|
2926
2806
|
}
|
|
2927
2807
|
return entries;
|
|
2928
2808
|
};
|
|
2929
2809
|
const serializeAws_queryDeleteSMSSandboxPhoneNumberInput = (input, context) => {
|
|
2930
2810
|
const entries = {};
|
|
2931
|
-
if (input.PhoneNumber
|
|
2811
|
+
if (input.PhoneNumber != null) {
|
|
2932
2812
|
entries["PhoneNumber"] = input.PhoneNumber;
|
|
2933
2813
|
}
|
|
2934
2814
|
return entries;
|
|
2935
2815
|
};
|
|
2936
2816
|
const serializeAws_queryDeleteTopicInput = (input, context) => {
|
|
2937
2817
|
const entries = {};
|
|
2938
|
-
if (input.TopicArn
|
|
2818
|
+
if (input.TopicArn != null) {
|
|
2939
2819
|
entries["TopicArn"] = input.TopicArn;
|
|
2940
2820
|
}
|
|
2941
2821
|
return entries;
|
|
2942
2822
|
};
|
|
2943
2823
|
const serializeAws_queryGetEndpointAttributesInput = (input, context) => {
|
|
2944
2824
|
const entries = {};
|
|
2945
|
-
if (input.EndpointArn
|
|
2825
|
+
if (input.EndpointArn != null) {
|
|
2946
2826
|
entries["EndpointArn"] = input.EndpointArn;
|
|
2947
2827
|
}
|
|
2948
2828
|
return entries;
|
|
2949
2829
|
};
|
|
2950
2830
|
const serializeAws_queryGetPlatformApplicationAttributesInput = (input, context) => {
|
|
2951
2831
|
const entries = {};
|
|
2952
|
-
if (input.PlatformApplicationArn
|
|
2832
|
+
if (input.PlatformApplicationArn != null) {
|
|
2953
2833
|
entries["PlatformApplicationArn"] = input.PlatformApplicationArn;
|
|
2954
2834
|
}
|
|
2955
2835
|
return entries;
|
|
2956
2836
|
};
|
|
2957
2837
|
const serializeAws_queryGetSMSAttributesInput = (input, context) => {
|
|
2958
2838
|
const entries = {};
|
|
2959
|
-
if (input.attributes
|
|
2839
|
+
if (input.attributes != null) {
|
|
2960
2840
|
const memberEntries = serializeAws_queryListString(input.attributes, context);
|
|
2961
2841
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
2962
2842
|
const loc = `attributes.${key}`;
|
|
@@ -2971,58 +2851,58 @@ const serializeAws_queryGetSMSSandboxAccountStatusInput = (input, context) => {
|
|
|
2971
2851
|
};
|
|
2972
2852
|
const serializeAws_queryGetSubscriptionAttributesInput = (input, context) => {
|
|
2973
2853
|
const entries = {};
|
|
2974
|
-
if (input.SubscriptionArn
|
|
2854
|
+
if (input.SubscriptionArn != null) {
|
|
2975
2855
|
entries["SubscriptionArn"] = input.SubscriptionArn;
|
|
2976
2856
|
}
|
|
2977
2857
|
return entries;
|
|
2978
2858
|
};
|
|
2979
2859
|
const serializeAws_queryGetTopicAttributesInput = (input, context) => {
|
|
2980
2860
|
const entries = {};
|
|
2981
|
-
if (input.TopicArn
|
|
2861
|
+
if (input.TopicArn != null) {
|
|
2982
2862
|
entries["TopicArn"] = input.TopicArn;
|
|
2983
2863
|
}
|
|
2984
2864
|
return entries;
|
|
2985
2865
|
};
|
|
2986
2866
|
const serializeAws_queryListEndpointsByPlatformApplicationInput = (input, context) => {
|
|
2987
2867
|
const entries = {};
|
|
2988
|
-
if (input.PlatformApplicationArn
|
|
2868
|
+
if (input.PlatformApplicationArn != null) {
|
|
2989
2869
|
entries["PlatformApplicationArn"] = input.PlatformApplicationArn;
|
|
2990
2870
|
}
|
|
2991
|
-
if (input.NextToken
|
|
2871
|
+
if (input.NextToken != null) {
|
|
2992
2872
|
entries["NextToken"] = input.NextToken;
|
|
2993
2873
|
}
|
|
2994
2874
|
return entries;
|
|
2995
2875
|
};
|
|
2996
2876
|
const serializeAws_queryListOriginationNumbersRequest = (input, context) => {
|
|
2997
2877
|
const entries = {};
|
|
2998
|
-
if (input.NextToken
|
|
2878
|
+
if (input.NextToken != null) {
|
|
2999
2879
|
entries["NextToken"] = input.NextToken;
|
|
3000
2880
|
}
|
|
3001
|
-
if (input.MaxResults
|
|
2881
|
+
if (input.MaxResults != null) {
|
|
3002
2882
|
entries["MaxResults"] = input.MaxResults;
|
|
3003
2883
|
}
|
|
3004
2884
|
return entries;
|
|
3005
2885
|
};
|
|
3006
2886
|
const serializeAws_queryListPhoneNumbersOptedOutInput = (input, context) => {
|
|
3007
2887
|
const entries = {};
|
|
3008
|
-
if (input.nextToken
|
|
2888
|
+
if (input.nextToken != null) {
|
|
3009
2889
|
entries["nextToken"] = input.nextToken;
|
|
3010
2890
|
}
|
|
3011
2891
|
return entries;
|
|
3012
2892
|
};
|
|
3013
2893
|
const serializeAws_queryListPlatformApplicationsInput = (input, context) => {
|
|
3014
2894
|
const entries = {};
|
|
3015
|
-
if (input.NextToken
|
|
2895
|
+
if (input.NextToken != null) {
|
|
3016
2896
|
entries["NextToken"] = input.NextToken;
|
|
3017
2897
|
}
|
|
3018
2898
|
return entries;
|
|
3019
2899
|
};
|
|
3020
2900
|
const serializeAws_queryListSMSSandboxPhoneNumbersInput = (input, context) => {
|
|
3021
2901
|
const entries = {};
|
|
3022
|
-
if (input.NextToken
|
|
2902
|
+
if (input.NextToken != null) {
|
|
3023
2903
|
entries["NextToken"] = input.NextToken;
|
|
3024
2904
|
}
|
|
3025
|
-
if (input.MaxResults
|
|
2905
|
+
if (input.MaxResults != null) {
|
|
3026
2906
|
entries["MaxResults"] = input.MaxResults;
|
|
3027
2907
|
}
|
|
3028
2908
|
return entries;
|
|
@@ -3041,31 +2921,31 @@ const serializeAws_queryListString = (input, context) => {
|
|
|
3041
2921
|
};
|
|
3042
2922
|
const serializeAws_queryListSubscriptionsByTopicInput = (input, context) => {
|
|
3043
2923
|
const entries = {};
|
|
3044
|
-
if (input.TopicArn
|
|
2924
|
+
if (input.TopicArn != null) {
|
|
3045
2925
|
entries["TopicArn"] = input.TopicArn;
|
|
3046
2926
|
}
|
|
3047
|
-
if (input.NextToken
|
|
2927
|
+
if (input.NextToken != null) {
|
|
3048
2928
|
entries["NextToken"] = input.NextToken;
|
|
3049
2929
|
}
|
|
3050
2930
|
return entries;
|
|
3051
2931
|
};
|
|
3052
2932
|
const serializeAws_queryListSubscriptionsInput = (input, context) => {
|
|
3053
2933
|
const entries = {};
|
|
3054
|
-
if (input.NextToken
|
|
2934
|
+
if (input.NextToken != null) {
|
|
3055
2935
|
entries["NextToken"] = input.NextToken;
|
|
3056
2936
|
}
|
|
3057
2937
|
return entries;
|
|
3058
2938
|
};
|
|
3059
2939
|
const serializeAws_queryListTagsForResourceRequest = (input, context) => {
|
|
3060
2940
|
const entries = {};
|
|
3061
|
-
if (input.ResourceArn
|
|
2941
|
+
if (input.ResourceArn != null) {
|
|
3062
2942
|
entries["ResourceArn"] = input.ResourceArn;
|
|
3063
2943
|
}
|
|
3064
2944
|
return entries;
|
|
3065
2945
|
};
|
|
3066
2946
|
const serializeAws_queryListTopicsInput = (input, context) => {
|
|
3067
2947
|
const entries = {};
|
|
3068
|
-
if (input.NextToken
|
|
2948
|
+
if (input.NextToken != null) {
|
|
3069
2949
|
entries["NextToken"] = input.NextToken;
|
|
3070
2950
|
}
|
|
3071
2951
|
return entries;
|
|
@@ -3099,30 +2979,30 @@ const serializeAws_queryMessageAttributeMap = (input, context) => {
|
|
|
3099
2979
|
};
|
|
3100
2980
|
const serializeAws_queryMessageAttributeValue = (input, context) => {
|
|
3101
2981
|
const entries = {};
|
|
3102
|
-
if (input.DataType
|
|
2982
|
+
if (input.DataType != null) {
|
|
3103
2983
|
entries["DataType"] = input.DataType;
|
|
3104
2984
|
}
|
|
3105
|
-
if (input.StringValue
|
|
2985
|
+
if (input.StringValue != null) {
|
|
3106
2986
|
entries["StringValue"] = input.StringValue;
|
|
3107
2987
|
}
|
|
3108
|
-
if (input.BinaryValue
|
|
2988
|
+
if (input.BinaryValue != null) {
|
|
3109
2989
|
entries["BinaryValue"] = context.base64Encoder(input.BinaryValue);
|
|
3110
2990
|
}
|
|
3111
2991
|
return entries;
|
|
3112
2992
|
};
|
|
3113
2993
|
const serializeAws_queryOptInPhoneNumberInput = (input, context) => {
|
|
3114
2994
|
const entries = {};
|
|
3115
|
-
if (input.phoneNumber
|
|
2995
|
+
if (input.phoneNumber != null) {
|
|
3116
2996
|
entries["phoneNumber"] = input.phoneNumber;
|
|
3117
2997
|
}
|
|
3118
2998
|
return entries;
|
|
3119
2999
|
};
|
|
3120
3000
|
const serializeAws_queryPublishBatchInput = (input, context) => {
|
|
3121
3001
|
const entries = {};
|
|
3122
|
-
if (input.TopicArn
|
|
3002
|
+
if (input.TopicArn != null) {
|
|
3123
3003
|
entries["TopicArn"] = input.TopicArn;
|
|
3124
3004
|
}
|
|
3125
|
-
if (input.PublishBatchRequestEntries
|
|
3005
|
+
if (input.PublishBatchRequestEntries != null) {
|
|
3126
3006
|
const memberEntries = serializeAws_queryPublishBatchRequestEntryList(input.PublishBatchRequestEntries, context);
|
|
3127
3007
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3128
3008
|
const loc = `PublishBatchRequestEntries.${key}`;
|
|
@@ -3133,29 +3013,29 @@ const serializeAws_queryPublishBatchInput = (input, context) => {
|
|
|
3133
3013
|
};
|
|
3134
3014
|
const serializeAws_queryPublishBatchRequestEntry = (input, context) => {
|
|
3135
3015
|
const entries = {};
|
|
3136
|
-
if (input.Id
|
|
3016
|
+
if (input.Id != null) {
|
|
3137
3017
|
entries["Id"] = input.Id;
|
|
3138
3018
|
}
|
|
3139
|
-
if (input.Message
|
|
3019
|
+
if (input.Message != null) {
|
|
3140
3020
|
entries["Message"] = input.Message;
|
|
3141
3021
|
}
|
|
3142
|
-
if (input.Subject
|
|
3022
|
+
if (input.Subject != null) {
|
|
3143
3023
|
entries["Subject"] = input.Subject;
|
|
3144
3024
|
}
|
|
3145
|
-
if (input.MessageStructure
|
|
3025
|
+
if (input.MessageStructure != null) {
|
|
3146
3026
|
entries["MessageStructure"] = input.MessageStructure;
|
|
3147
3027
|
}
|
|
3148
|
-
if (input.MessageAttributes
|
|
3028
|
+
if (input.MessageAttributes != null) {
|
|
3149
3029
|
const memberEntries = serializeAws_queryMessageAttributeMap(input.MessageAttributes, context);
|
|
3150
3030
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3151
3031
|
const loc = `MessageAttributes.${key}`;
|
|
3152
3032
|
entries[loc] = value;
|
|
3153
3033
|
});
|
|
3154
3034
|
}
|
|
3155
|
-
if (input.MessageDeduplicationId
|
|
3035
|
+
if (input.MessageDeduplicationId != null) {
|
|
3156
3036
|
entries["MessageDeduplicationId"] = input.MessageDeduplicationId;
|
|
3157
3037
|
}
|
|
3158
|
-
if (input.MessageGroupId
|
|
3038
|
+
if (input.MessageGroupId != null) {
|
|
3159
3039
|
entries["MessageGroupId"] = input.MessageGroupId;
|
|
3160
3040
|
}
|
|
3161
3041
|
return entries;
|
|
@@ -3177,55 +3057,55 @@ const serializeAws_queryPublishBatchRequestEntryList = (input, context) => {
|
|
|
3177
3057
|
};
|
|
3178
3058
|
const serializeAws_queryPublishInput = (input, context) => {
|
|
3179
3059
|
const entries = {};
|
|
3180
|
-
if (input.TopicArn
|
|
3060
|
+
if (input.TopicArn != null) {
|
|
3181
3061
|
entries["TopicArn"] = input.TopicArn;
|
|
3182
3062
|
}
|
|
3183
|
-
if (input.TargetArn
|
|
3063
|
+
if (input.TargetArn != null) {
|
|
3184
3064
|
entries["TargetArn"] = input.TargetArn;
|
|
3185
3065
|
}
|
|
3186
|
-
if (input.PhoneNumber
|
|
3066
|
+
if (input.PhoneNumber != null) {
|
|
3187
3067
|
entries["PhoneNumber"] = input.PhoneNumber;
|
|
3188
3068
|
}
|
|
3189
|
-
if (input.Message
|
|
3069
|
+
if (input.Message != null) {
|
|
3190
3070
|
entries["Message"] = input.Message;
|
|
3191
3071
|
}
|
|
3192
|
-
if (input.Subject
|
|
3072
|
+
if (input.Subject != null) {
|
|
3193
3073
|
entries["Subject"] = input.Subject;
|
|
3194
3074
|
}
|
|
3195
|
-
if (input.MessageStructure
|
|
3075
|
+
if (input.MessageStructure != null) {
|
|
3196
3076
|
entries["MessageStructure"] = input.MessageStructure;
|
|
3197
3077
|
}
|
|
3198
|
-
if (input.MessageAttributes
|
|
3078
|
+
if (input.MessageAttributes != null) {
|
|
3199
3079
|
const memberEntries = serializeAws_queryMessageAttributeMap(input.MessageAttributes, context);
|
|
3200
3080
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3201
3081
|
const loc = `MessageAttributes.${key}`;
|
|
3202
3082
|
entries[loc] = value;
|
|
3203
3083
|
});
|
|
3204
3084
|
}
|
|
3205
|
-
if (input.MessageDeduplicationId
|
|
3085
|
+
if (input.MessageDeduplicationId != null) {
|
|
3206
3086
|
entries["MessageDeduplicationId"] = input.MessageDeduplicationId;
|
|
3207
3087
|
}
|
|
3208
|
-
if (input.MessageGroupId
|
|
3088
|
+
if (input.MessageGroupId != null) {
|
|
3209
3089
|
entries["MessageGroupId"] = input.MessageGroupId;
|
|
3210
3090
|
}
|
|
3211
3091
|
return entries;
|
|
3212
3092
|
};
|
|
3213
3093
|
const serializeAws_queryRemovePermissionInput = (input, context) => {
|
|
3214
3094
|
const entries = {};
|
|
3215
|
-
if (input.TopicArn
|
|
3095
|
+
if (input.TopicArn != null) {
|
|
3216
3096
|
entries["TopicArn"] = input.TopicArn;
|
|
3217
3097
|
}
|
|
3218
|
-
if (input.Label
|
|
3098
|
+
if (input.Label != null) {
|
|
3219
3099
|
entries["Label"] = input.Label;
|
|
3220
3100
|
}
|
|
3221
3101
|
return entries;
|
|
3222
3102
|
};
|
|
3223
3103
|
const serializeAws_querySetEndpointAttributesInput = (input, context) => {
|
|
3224
3104
|
const entries = {};
|
|
3225
|
-
if (input.EndpointArn
|
|
3105
|
+
if (input.EndpointArn != null) {
|
|
3226
3106
|
entries["EndpointArn"] = input.EndpointArn;
|
|
3227
3107
|
}
|
|
3228
|
-
if (input.Attributes
|
|
3108
|
+
if (input.Attributes != null) {
|
|
3229
3109
|
const memberEntries = serializeAws_queryMapStringToString(input.Attributes, context);
|
|
3230
3110
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3231
3111
|
const loc = `Attributes.${key}`;
|
|
@@ -3236,10 +3116,10 @@ const serializeAws_querySetEndpointAttributesInput = (input, context) => {
|
|
|
3236
3116
|
};
|
|
3237
3117
|
const serializeAws_querySetPlatformApplicationAttributesInput = (input, context) => {
|
|
3238
3118
|
const entries = {};
|
|
3239
|
-
if (input.PlatformApplicationArn
|
|
3119
|
+
if (input.PlatformApplicationArn != null) {
|
|
3240
3120
|
entries["PlatformApplicationArn"] = input.PlatformApplicationArn;
|
|
3241
3121
|
}
|
|
3242
|
-
if (input.Attributes
|
|
3122
|
+
if (input.Attributes != null) {
|
|
3243
3123
|
const memberEntries = serializeAws_queryMapStringToString(input.Attributes, context);
|
|
3244
3124
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3245
3125
|
const loc = `Attributes.${key}`;
|
|
@@ -3250,7 +3130,7 @@ const serializeAws_querySetPlatformApplicationAttributesInput = (input, context)
|
|
|
3250
3130
|
};
|
|
3251
3131
|
const serializeAws_querySetSMSAttributesInput = (input, context) => {
|
|
3252
3132
|
const entries = {};
|
|
3253
|
-
if (input.attributes
|
|
3133
|
+
if (input.attributes != null) {
|
|
3254
3134
|
const memberEntries = serializeAws_queryMapStringToString(input.attributes, context);
|
|
3255
3135
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3256
3136
|
const loc = `attributes.${key}`;
|
|
@@ -3261,49 +3141,49 @@ const serializeAws_querySetSMSAttributesInput = (input, context) => {
|
|
|
3261
3141
|
};
|
|
3262
3142
|
const serializeAws_querySetSubscriptionAttributesInput = (input, context) => {
|
|
3263
3143
|
const entries = {};
|
|
3264
|
-
if (input.SubscriptionArn
|
|
3144
|
+
if (input.SubscriptionArn != null) {
|
|
3265
3145
|
entries["SubscriptionArn"] = input.SubscriptionArn;
|
|
3266
3146
|
}
|
|
3267
|
-
if (input.AttributeName
|
|
3147
|
+
if (input.AttributeName != null) {
|
|
3268
3148
|
entries["AttributeName"] = input.AttributeName;
|
|
3269
3149
|
}
|
|
3270
|
-
if (input.AttributeValue
|
|
3150
|
+
if (input.AttributeValue != null) {
|
|
3271
3151
|
entries["AttributeValue"] = input.AttributeValue;
|
|
3272
3152
|
}
|
|
3273
3153
|
return entries;
|
|
3274
3154
|
};
|
|
3275
3155
|
const serializeAws_querySetTopicAttributesInput = (input, context) => {
|
|
3276
3156
|
const entries = {};
|
|
3277
|
-
if (input.TopicArn
|
|
3157
|
+
if (input.TopicArn != null) {
|
|
3278
3158
|
entries["TopicArn"] = input.TopicArn;
|
|
3279
3159
|
}
|
|
3280
|
-
if (input.AttributeName
|
|
3160
|
+
if (input.AttributeName != null) {
|
|
3281
3161
|
entries["AttributeName"] = input.AttributeName;
|
|
3282
3162
|
}
|
|
3283
|
-
if (input.AttributeValue
|
|
3163
|
+
if (input.AttributeValue != null) {
|
|
3284
3164
|
entries["AttributeValue"] = input.AttributeValue;
|
|
3285
3165
|
}
|
|
3286
3166
|
return entries;
|
|
3287
3167
|
};
|
|
3288
3168
|
const serializeAws_querySubscribeInput = (input, context) => {
|
|
3289
3169
|
const entries = {};
|
|
3290
|
-
if (input.TopicArn
|
|
3170
|
+
if (input.TopicArn != null) {
|
|
3291
3171
|
entries["TopicArn"] = input.TopicArn;
|
|
3292
3172
|
}
|
|
3293
|
-
if (input.Protocol
|
|
3173
|
+
if (input.Protocol != null) {
|
|
3294
3174
|
entries["Protocol"] = input.Protocol;
|
|
3295
3175
|
}
|
|
3296
|
-
if (input.Endpoint
|
|
3176
|
+
if (input.Endpoint != null) {
|
|
3297
3177
|
entries["Endpoint"] = input.Endpoint;
|
|
3298
3178
|
}
|
|
3299
|
-
if (input.Attributes
|
|
3179
|
+
if (input.Attributes != null) {
|
|
3300
3180
|
const memberEntries = serializeAws_querySubscriptionAttributesMap(input.Attributes, context);
|
|
3301
3181
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3302
3182
|
const loc = `Attributes.${key}`;
|
|
3303
3183
|
entries[loc] = value;
|
|
3304
3184
|
});
|
|
3305
3185
|
}
|
|
3306
|
-
if (input.ReturnSubscriptionArn
|
|
3186
|
+
if (input.ReturnSubscriptionArn != null) {
|
|
3307
3187
|
entries["ReturnSubscriptionArn"] = input.ReturnSubscriptionArn;
|
|
3308
3188
|
}
|
|
3309
3189
|
return entries;
|
|
@@ -3322,10 +3202,10 @@ const serializeAws_querySubscriptionAttributesMap = (input, context) => {
|
|
|
3322
3202
|
};
|
|
3323
3203
|
const serializeAws_queryTag = (input, context) => {
|
|
3324
3204
|
const entries = {};
|
|
3325
|
-
if (input.Key
|
|
3205
|
+
if (input.Key != null) {
|
|
3326
3206
|
entries["Key"] = input.Key;
|
|
3327
3207
|
}
|
|
3328
|
-
if (input.Value
|
|
3208
|
+
if (input.Value != null) {
|
|
3329
3209
|
entries["Value"] = input.Value;
|
|
3330
3210
|
}
|
|
3331
3211
|
return entries;
|
|
@@ -3359,10 +3239,10 @@ const serializeAws_queryTagList = (input, context) => {
|
|
|
3359
3239
|
};
|
|
3360
3240
|
const serializeAws_queryTagResourceRequest = (input, context) => {
|
|
3361
3241
|
const entries = {};
|
|
3362
|
-
if (input.ResourceArn
|
|
3242
|
+
if (input.ResourceArn != null) {
|
|
3363
3243
|
entries["ResourceArn"] = input.ResourceArn;
|
|
3364
3244
|
}
|
|
3365
|
-
if (input.Tags
|
|
3245
|
+
if (input.Tags != null) {
|
|
3366
3246
|
const memberEntries = serializeAws_queryTagList(input.Tags, context);
|
|
3367
3247
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3368
3248
|
const loc = `Tags.${key}`;
|
|
@@ -3385,17 +3265,17 @@ const serializeAws_queryTopicAttributesMap = (input, context) => {
|
|
|
3385
3265
|
};
|
|
3386
3266
|
const serializeAws_queryUnsubscribeInput = (input, context) => {
|
|
3387
3267
|
const entries = {};
|
|
3388
|
-
if (input.SubscriptionArn
|
|
3268
|
+
if (input.SubscriptionArn != null) {
|
|
3389
3269
|
entries["SubscriptionArn"] = input.SubscriptionArn;
|
|
3390
3270
|
}
|
|
3391
3271
|
return entries;
|
|
3392
3272
|
};
|
|
3393
3273
|
const serializeAws_queryUntagResourceRequest = (input, context) => {
|
|
3394
3274
|
const entries = {};
|
|
3395
|
-
if (input.ResourceArn
|
|
3275
|
+
if (input.ResourceArn != null) {
|
|
3396
3276
|
entries["ResourceArn"] = input.ResourceArn;
|
|
3397
3277
|
}
|
|
3398
|
-
if (input.TagKeys
|
|
3278
|
+
if (input.TagKeys != null) {
|
|
3399
3279
|
const memberEntries = serializeAws_queryTagKeyList(input.TagKeys, context);
|
|
3400
3280
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
3401
3281
|
const loc = `TagKeys.${key}`;
|
|
@@ -3406,10 +3286,10 @@ const serializeAws_queryUntagResourceRequest = (input, context) => {
|
|
|
3406
3286
|
};
|
|
3407
3287
|
const serializeAws_queryVerifySMSSandboxPhoneNumberInput = (input, context) => {
|
|
3408
3288
|
const entries = {};
|
|
3409
|
-
if (input.PhoneNumber
|
|
3289
|
+
if (input.PhoneNumber != null) {
|
|
3410
3290
|
entries["PhoneNumber"] = input.PhoneNumber;
|
|
3411
3291
|
}
|
|
3412
|
-
if (input.OneTimePassword
|
|
3292
|
+
if (input.OneTimePassword != null) {
|
|
3413
3293
|
entries["OneTimePassword"] = input.OneTimePassword;
|
|
3414
3294
|
}
|
|
3415
3295
|
return entries;
|
|
@@ -3466,9 +3346,6 @@ const deserializeAws_queryBatchResultErrorEntryList = (output, context) => {
|
|
|
3466
3346
|
return (output || [])
|
|
3467
3347
|
.filter((e) => e != null)
|
|
3468
3348
|
.map((entry) => {
|
|
3469
|
-
if (entry === null) {
|
|
3470
|
-
return null;
|
|
3471
|
-
}
|
|
3472
3349
|
return deserializeAws_queryBatchResultErrorEntry(entry, context);
|
|
3473
3350
|
});
|
|
3474
3351
|
};
|
|
@@ -3765,9 +3642,6 @@ const deserializeAws_queryListOfEndpoints = (output, context) => {
|
|
|
3765
3642
|
return (output || [])
|
|
3766
3643
|
.filter((e) => e != null)
|
|
3767
3644
|
.map((entry) => {
|
|
3768
|
-
if (entry === null) {
|
|
3769
|
-
return null;
|
|
3770
|
-
}
|
|
3771
3645
|
return deserializeAws_queryEndpoint(entry, context);
|
|
3772
3646
|
});
|
|
3773
3647
|
};
|
|
@@ -3775,9 +3649,6 @@ const deserializeAws_queryListOfPlatformApplications = (output, context) => {
|
|
|
3775
3649
|
return (output || [])
|
|
3776
3650
|
.filter((e) => e != null)
|
|
3777
3651
|
.map((entry) => {
|
|
3778
|
-
if (entry === null) {
|
|
3779
|
-
return null;
|
|
3780
|
-
}
|
|
3781
3652
|
return deserializeAws_queryPlatformApplication(entry, context);
|
|
3782
3653
|
});
|
|
3783
3654
|
};
|
|
@@ -3929,9 +3800,6 @@ const deserializeAws_queryNumberCapabilityList = (output, context) => {
|
|
|
3929
3800
|
return (output || [])
|
|
3930
3801
|
.filter((e) => e != null)
|
|
3931
3802
|
.map((entry) => {
|
|
3932
|
-
if (entry === null) {
|
|
3933
|
-
return null;
|
|
3934
|
-
}
|
|
3935
3803
|
return (0, smithy_client_1.expectString)(entry);
|
|
3936
3804
|
});
|
|
3937
3805
|
};
|
|
@@ -3984,9 +3852,6 @@ const deserializeAws_queryPhoneNumberInformationList = (output, context) => {
|
|
|
3984
3852
|
return (output || [])
|
|
3985
3853
|
.filter((e) => e != null)
|
|
3986
3854
|
.map((entry) => {
|
|
3987
|
-
if (entry === null) {
|
|
3988
|
-
return null;
|
|
3989
|
-
}
|
|
3990
3855
|
return deserializeAws_queryPhoneNumberInformation(entry, context);
|
|
3991
3856
|
});
|
|
3992
3857
|
};
|
|
@@ -3994,9 +3859,6 @@ const deserializeAws_queryPhoneNumberList = (output, context) => {
|
|
|
3994
3859
|
return (output || [])
|
|
3995
3860
|
.filter((e) => e != null)
|
|
3996
3861
|
.map((entry) => {
|
|
3997
|
-
if (entry === null) {
|
|
3998
|
-
return null;
|
|
3999
|
-
}
|
|
4000
3862
|
return (0, smithy_client_1.expectString)(entry);
|
|
4001
3863
|
});
|
|
4002
3864
|
};
|
|
@@ -4065,9 +3927,6 @@ const deserializeAws_queryPublishBatchResultEntryList = (output, context) => {
|
|
|
4065
3927
|
return (output || [])
|
|
4066
3928
|
.filter((e) => e != null)
|
|
4067
3929
|
.map((entry) => {
|
|
4068
|
-
if (entry === null) {
|
|
4069
|
-
return null;
|
|
4070
|
-
}
|
|
4071
3930
|
return deserializeAws_queryPublishBatchResultEntry(entry, context);
|
|
4072
3931
|
});
|
|
4073
3932
|
};
|
|
@@ -4114,9 +3973,6 @@ const deserializeAws_querySMSSandboxPhoneNumberList = (output, context) => {
|
|
|
4114
3973
|
return (output || [])
|
|
4115
3974
|
.filter((e) => e != null)
|
|
4116
3975
|
.map((entry) => {
|
|
4117
|
-
if (entry === null) {
|
|
4118
|
-
return null;
|
|
4119
|
-
}
|
|
4120
3976
|
return deserializeAws_querySMSSandboxPhoneNumber(entry, context);
|
|
4121
3977
|
});
|
|
4122
3978
|
};
|
|
@@ -4187,9 +4043,6 @@ const deserializeAws_querySubscriptionsList = (output, context) => {
|
|
|
4187
4043
|
return (output || [])
|
|
4188
4044
|
.filter((e) => e != null)
|
|
4189
4045
|
.map((entry) => {
|
|
4190
|
-
if (entry === null) {
|
|
4191
|
-
return null;
|
|
4192
|
-
}
|
|
4193
4046
|
return deserializeAws_querySubscription(entry, context);
|
|
4194
4047
|
});
|
|
4195
4048
|
};
|
|
@@ -4219,9 +4072,6 @@ const deserializeAws_queryTagList = (output, context) => {
|
|
|
4219
4072
|
return (output || [])
|
|
4220
4073
|
.filter((e) => e != null)
|
|
4221
4074
|
.map((entry) => {
|
|
4222
|
-
if (entry === null) {
|
|
4223
|
-
return null;
|
|
4224
|
-
}
|
|
4225
4075
|
return deserializeAws_queryTag(entry, context);
|
|
4226
4076
|
});
|
|
4227
4077
|
};
|
|
@@ -4289,9 +4139,6 @@ const deserializeAws_queryTopicsList = (output, context) => {
|
|
|
4289
4139
|
return (output || [])
|
|
4290
4140
|
.filter((e) => e != null)
|
|
4291
4141
|
.map((entry) => {
|
|
4292
|
-
if (entry === null) {
|
|
4293
|
-
return null;
|
|
4294
|
-
}
|
|
4295
4142
|
return deserializeAws_queryTopic(entry, context);
|
|
4296
4143
|
});
|
|
4297
4144
|
};
|