@aws-sdk/client-chime-sdk-messaging 3.503.1 → 3.507.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/index.js +102 -1901
- package/dist-es/protocols/Aws_restJson1.js +140 -1939
- package/package.json +3 -3
|
@@ -765,7 +765,7 @@ export const se_UpdateChannelReadMarkerCommand = async (input, context) => {
|
|
|
765
765
|
};
|
|
766
766
|
export const de_AssociateChannelFlowCommand = async (output, context) => {
|
|
767
767
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
768
|
-
return
|
|
768
|
+
return de_CommandError(output, context);
|
|
769
769
|
}
|
|
770
770
|
const contents = map({
|
|
771
771
|
$metadata: deserializeMetadata(output),
|
|
@@ -773,49 +773,9 @@ export const de_AssociateChannelFlowCommand = async (output, context) => {
|
|
|
773
773
|
await collectBody(output.body, context);
|
|
774
774
|
return contents;
|
|
775
775
|
};
|
|
776
|
-
const de_AssociateChannelFlowCommandError = async (output, context) => {
|
|
777
|
-
const parsedOutput = {
|
|
778
|
-
...output,
|
|
779
|
-
body: await parseErrorBody(output.body, context),
|
|
780
|
-
};
|
|
781
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
782
|
-
switch (errorCode) {
|
|
783
|
-
case "BadRequestException":
|
|
784
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
785
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
786
|
-
case "ConflictException":
|
|
787
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
788
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
789
|
-
case "ForbiddenException":
|
|
790
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
791
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
792
|
-
case "NotFoundException":
|
|
793
|
-
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
794
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
795
|
-
case "ServiceFailureException":
|
|
796
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
797
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
798
|
-
case "ServiceUnavailableException":
|
|
799
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
800
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
801
|
-
case "ThrottledClientException":
|
|
802
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
803
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
804
|
-
case "UnauthorizedClientException":
|
|
805
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
806
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
807
|
-
default:
|
|
808
|
-
const parsedBody = parsedOutput.body;
|
|
809
|
-
return throwDefaultError({
|
|
810
|
-
output,
|
|
811
|
-
parsedBody,
|
|
812
|
-
errorCode,
|
|
813
|
-
});
|
|
814
|
-
}
|
|
815
|
-
};
|
|
816
776
|
export const de_BatchCreateChannelMembershipCommand = async (output, context) => {
|
|
817
777
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
818
|
-
return
|
|
778
|
+
return de_CommandError(output, context);
|
|
819
779
|
}
|
|
820
780
|
const contents = map({
|
|
821
781
|
$metadata: deserializeMetadata(output),
|
|
@@ -828,49 +788,9 @@ export const de_BatchCreateChannelMembershipCommand = async (output, context) =>
|
|
|
828
788
|
Object.assign(contents, doc);
|
|
829
789
|
return contents;
|
|
830
790
|
};
|
|
831
|
-
const de_BatchCreateChannelMembershipCommandError = async (output, context) => {
|
|
832
|
-
const parsedOutput = {
|
|
833
|
-
...output,
|
|
834
|
-
body: await parseErrorBody(output.body, context),
|
|
835
|
-
};
|
|
836
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
837
|
-
switch (errorCode) {
|
|
838
|
-
case "BadRequestException":
|
|
839
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
840
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
841
|
-
case "ForbiddenException":
|
|
842
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
843
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
844
|
-
case "NotFoundException":
|
|
845
|
-
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
846
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
847
|
-
case "ResourceLimitExceededException":
|
|
848
|
-
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
|
|
849
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
850
|
-
case "ServiceFailureException":
|
|
851
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
852
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
853
|
-
case "ServiceUnavailableException":
|
|
854
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
855
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
856
|
-
case "ThrottledClientException":
|
|
857
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
858
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
859
|
-
case "UnauthorizedClientException":
|
|
860
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
861
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
862
|
-
default:
|
|
863
|
-
const parsedBody = parsedOutput.body;
|
|
864
|
-
return throwDefaultError({
|
|
865
|
-
output,
|
|
866
|
-
parsedBody,
|
|
867
|
-
errorCode,
|
|
868
|
-
});
|
|
869
|
-
}
|
|
870
|
-
};
|
|
871
791
|
export const de_ChannelFlowCallbackCommand = async (output, context) => {
|
|
872
792
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
873
|
-
return
|
|
793
|
+
return de_CommandError(output, context);
|
|
874
794
|
}
|
|
875
795
|
const contents = map({
|
|
876
796
|
$metadata: deserializeMetadata(output),
|
|
@@ -883,46 +803,9 @@ export const de_ChannelFlowCallbackCommand = async (output, context) => {
|
|
|
883
803
|
Object.assign(contents, doc);
|
|
884
804
|
return contents;
|
|
885
805
|
};
|
|
886
|
-
const de_ChannelFlowCallbackCommandError = async (output, context) => {
|
|
887
|
-
const parsedOutput = {
|
|
888
|
-
...output,
|
|
889
|
-
body: await parseErrorBody(output.body, context),
|
|
890
|
-
};
|
|
891
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
892
|
-
switch (errorCode) {
|
|
893
|
-
case "BadRequestException":
|
|
894
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
895
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
896
|
-
case "ConflictException":
|
|
897
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
898
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
899
|
-
case "ForbiddenException":
|
|
900
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
901
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
902
|
-
case "ServiceFailureException":
|
|
903
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
904
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
905
|
-
case "ServiceUnavailableException":
|
|
906
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
907
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
908
|
-
case "ThrottledClientException":
|
|
909
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
910
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
911
|
-
case "UnauthorizedClientException":
|
|
912
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
913
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
914
|
-
default:
|
|
915
|
-
const parsedBody = parsedOutput.body;
|
|
916
|
-
return throwDefaultError({
|
|
917
|
-
output,
|
|
918
|
-
parsedBody,
|
|
919
|
-
errorCode,
|
|
920
|
-
});
|
|
921
|
-
}
|
|
922
|
-
};
|
|
923
806
|
export const de_CreateChannelCommand = async (output, context) => {
|
|
924
807
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
925
|
-
return
|
|
808
|
+
return de_CommandError(output, context);
|
|
926
809
|
}
|
|
927
810
|
const contents = map({
|
|
928
811
|
$metadata: deserializeMetadata(output),
|
|
@@ -934,49 +817,9 @@ export const de_CreateChannelCommand = async (output, context) => {
|
|
|
934
817
|
Object.assign(contents, doc);
|
|
935
818
|
return contents;
|
|
936
819
|
};
|
|
937
|
-
const de_CreateChannelCommandError = async (output, context) => {
|
|
938
|
-
const parsedOutput = {
|
|
939
|
-
...output,
|
|
940
|
-
body: await parseErrorBody(output.body, context),
|
|
941
|
-
};
|
|
942
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
943
|
-
switch (errorCode) {
|
|
944
|
-
case "BadRequestException":
|
|
945
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
946
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
947
|
-
case "ConflictException":
|
|
948
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
949
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
950
|
-
case "ForbiddenException":
|
|
951
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
952
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
953
|
-
case "ResourceLimitExceededException":
|
|
954
|
-
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
|
|
955
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
956
|
-
case "ServiceFailureException":
|
|
957
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
958
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
959
|
-
case "ServiceUnavailableException":
|
|
960
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
961
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
962
|
-
case "ThrottledClientException":
|
|
963
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
964
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
965
|
-
case "UnauthorizedClientException":
|
|
966
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
967
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
968
|
-
default:
|
|
969
|
-
const parsedBody = parsedOutput.body;
|
|
970
|
-
return throwDefaultError({
|
|
971
|
-
output,
|
|
972
|
-
parsedBody,
|
|
973
|
-
errorCode,
|
|
974
|
-
});
|
|
975
|
-
}
|
|
976
|
-
};
|
|
977
820
|
export const de_CreateChannelBanCommand = async (output, context) => {
|
|
978
821
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
979
|
-
return
|
|
822
|
+
return de_CommandError(output, context);
|
|
980
823
|
}
|
|
981
824
|
const contents = map({
|
|
982
825
|
$metadata: deserializeMetadata(output),
|
|
@@ -989,49 +832,9 @@ export const de_CreateChannelBanCommand = async (output, context) => {
|
|
|
989
832
|
Object.assign(contents, doc);
|
|
990
833
|
return contents;
|
|
991
834
|
};
|
|
992
|
-
const de_CreateChannelBanCommandError = async (output, context) => {
|
|
993
|
-
const parsedOutput = {
|
|
994
|
-
...output,
|
|
995
|
-
body: await parseErrorBody(output.body, context),
|
|
996
|
-
};
|
|
997
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
998
|
-
switch (errorCode) {
|
|
999
|
-
case "BadRequestException":
|
|
1000
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1001
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1002
|
-
case "ConflictException":
|
|
1003
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
1004
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1005
|
-
case "ForbiddenException":
|
|
1006
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1007
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1008
|
-
case "ResourceLimitExceededException":
|
|
1009
|
-
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
|
|
1010
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1011
|
-
case "ServiceFailureException":
|
|
1012
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1013
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1014
|
-
case "ServiceUnavailableException":
|
|
1015
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1016
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1017
|
-
case "ThrottledClientException":
|
|
1018
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1019
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1020
|
-
case "UnauthorizedClientException":
|
|
1021
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1022
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1023
|
-
default:
|
|
1024
|
-
const parsedBody = parsedOutput.body;
|
|
1025
|
-
return throwDefaultError({
|
|
1026
|
-
output,
|
|
1027
|
-
parsedBody,
|
|
1028
|
-
errorCode,
|
|
1029
|
-
});
|
|
1030
|
-
}
|
|
1031
|
-
};
|
|
1032
835
|
export const de_CreateChannelFlowCommand = async (output, context) => {
|
|
1033
836
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1034
|
-
return
|
|
837
|
+
return de_CommandError(output, context);
|
|
1035
838
|
}
|
|
1036
839
|
const contents = map({
|
|
1037
840
|
$metadata: deserializeMetadata(output),
|
|
@@ -1043,49 +846,9 @@ export const de_CreateChannelFlowCommand = async (output, context) => {
|
|
|
1043
846
|
Object.assign(contents, doc);
|
|
1044
847
|
return contents;
|
|
1045
848
|
};
|
|
1046
|
-
const de_CreateChannelFlowCommandError = async (output, context) => {
|
|
1047
|
-
const parsedOutput = {
|
|
1048
|
-
...output,
|
|
1049
|
-
body: await parseErrorBody(output.body, context),
|
|
1050
|
-
};
|
|
1051
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1052
|
-
switch (errorCode) {
|
|
1053
|
-
case "BadRequestException":
|
|
1054
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1055
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1056
|
-
case "ConflictException":
|
|
1057
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
1058
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1059
|
-
case "ForbiddenException":
|
|
1060
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1061
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1062
|
-
case "ResourceLimitExceededException":
|
|
1063
|
-
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
|
|
1064
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1065
|
-
case "ServiceFailureException":
|
|
1066
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1067
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1068
|
-
case "ServiceUnavailableException":
|
|
1069
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1070
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1071
|
-
case "ThrottledClientException":
|
|
1072
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1073
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1074
|
-
case "UnauthorizedClientException":
|
|
1075
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1076
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1077
|
-
default:
|
|
1078
|
-
const parsedBody = parsedOutput.body;
|
|
1079
|
-
return throwDefaultError({
|
|
1080
|
-
output,
|
|
1081
|
-
parsedBody,
|
|
1082
|
-
errorCode,
|
|
1083
|
-
});
|
|
1084
|
-
}
|
|
1085
|
-
};
|
|
1086
849
|
export const de_CreateChannelMembershipCommand = async (output, context) => {
|
|
1087
850
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1088
|
-
return
|
|
851
|
+
return de_CommandError(output, context);
|
|
1089
852
|
}
|
|
1090
853
|
const contents = map({
|
|
1091
854
|
$metadata: deserializeMetadata(output),
|
|
@@ -1099,52 +862,9 @@ export const de_CreateChannelMembershipCommand = async (output, context) => {
|
|
|
1099
862
|
Object.assign(contents, doc);
|
|
1100
863
|
return contents;
|
|
1101
864
|
};
|
|
1102
|
-
const de_CreateChannelMembershipCommandError = async (output, context) => {
|
|
1103
|
-
const parsedOutput = {
|
|
1104
|
-
...output,
|
|
1105
|
-
body: await parseErrorBody(output.body, context),
|
|
1106
|
-
};
|
|
1107
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1108
|
-
switch (errorCode) {
|
|
1109
|
-
case "BadRequestException":
|
|
1110
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1111
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1112
|
-
case "ConflictException":
|
|
1113
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
1114
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1115
|
-
case "ForbiddenException":
|
|
1116
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1117
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1118
|
-
case "NotFoundException":
|
|
1119
|
-
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
1120
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1121
|
-
case "ResourceLimitExceededException":
|
|
1122
|
-
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
|
|
1123
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1124
|
-
case "ServiceFailureException":
|
|
1125
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1126
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1127
|
-
case "ServiceUnavailableException":
|
|
1128
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1129
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1130
|
-
case "ThrottledClientException":
|
|
1131
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1132
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1133
|
-
case "UnauthorizedClientException":
|
|
1134
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1135
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1136
|
-
default:
|
|
1137
|
-
const parsedBody = parsedOutput.body;
|
|
1138
|
-
return throwDefaultError({
|
|
1139
|
-
output,
|
|
1140
|
-
parsedBody,
|
|
1141
|
-
errorCode,
|
|
1142
|
-
});
|
|
1143
|
-
}
|
|
1144
|
-
};
|
|
1145
865
|
export const de_CreateChannelModeratorCommand = async (output, context) => {
|
|
1146
866
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1147
|
-
return
|
|
867
|
+
return de_CommandError(output, context);
|
|
1148
868
|
}
|
|
1149
869
|
const contents = map({
|
|
1150
870
|
$metadata: deserializeMetadata(output),
|
|
@@ -1157,49 +877,9 @@ export const de_CreateChannelModeratorCommand = async (output, context) => {
|
|
|
1157
877
|
Object.assign(contents, doc);
|
|
1158
878
|
return contents;
|
|
1159
879
|
};
|
|
1160
|
-
const de_CreateChannelModeratorCommandError = async (output, context) => {
|
|
1161
|
-
const parsedOutput = {
|
|
1162
|
-
...output,
|
|
1163
|
-
body: await parseErrorBody(output.body, context),
|
|
1164
|
-
};
|
|
1165
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1166
|
-
switch (errorCode) {
|
|
1167
|
-
case "BadRequestException":
|
|
1168
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1169
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1170
|
-
case "ConflictException":
|
|
1171
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
1172
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1173
|
-
case "ForbiddenException":
|
|
1174
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1175
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1176
|
-
case "ResourceLimitExceededException":
|
|
1177
|
-
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
|
|
1178
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1179
|
-
case "ServiceFailureException":
|
|
1180
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1181
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1182
|
-
case "ServiceUnavailableException":
|
|
1183
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1184
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1185
|
-
case "ThrottledClientException":
|
|
1186
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1187
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1188
|
-
case "UnauthorizedClientException":
|
|
1189
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1190
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1191
|
-
default:
|
|
1192
|
-
const parsedBody = parsedOutput.body;
|
|
1193
|
-
return throwDefaultError({
|
|
1194
|
-
output,
|
|
1195
|
-
parsedBody,
|
|
1196
|
-
errorCode,
|
|
1197
|
-
});
|
|
1198
|
-
}
|
|
1199
|
-
};
|
|
1200
880
|
export const de_DeleteChannelCommand = async (output, context) => {
|
|
1201
881
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1202
|
-
return
|
|
882
|
+
return de_CommandError(output, context);
|
|
1203
883
|
}
|
|
1204
884
|
const contents = map({
|
|
1205
885
|
$metadata: deserializeMetadata(output),
|
|
@@ -1207,46 +887,9 @@ export const de_DeleteChannelCommand = async (output, context) => {
|
|
|
1207
887
|
await collectBody(output.body, context);
|
|
1208
888
|
return contents;
|
|
1209
889
|
};
|
|
1210
|
-
const de_DeleteChannelCommandError = async (output, context) => {
|
|
1211
|
-
const parsedOutput = {
|
|
1212
|
-
...output,
|
|
1213
|
-
body: await parseErrorBody(output.body, context),
|
|
1214
|
-
};
|
|
1215
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1216
|
-
switch (errorCode) {
|
|
1217
|
-
case "BadRequestException":
|
|
1218
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1219
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1220
|
-
case "ConflictException":
|
|
1221
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
1222
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1223
|
-
case "ForbiddenException":
|
|
1224
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1225
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1226
|
-
case "ServiceFailureException":
|
|
1227
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1228
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1229
|
-
case "ServiceUnavailableException":
|
|
1230
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1231
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1232
|
-
case "ThrottledClientException":
|
|
1233
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1234
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1235
|
-
case "UnauthorizedClientException":
|
|
1236
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1237
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1238
|
-
default:
|
|
1239
|
-
const parsedBody = parsedOutput.body;
|
|
1240
|
-
return throwDefaultError({
|
|
1241
|
-
output,
|
|
1242
|
-
parsedBody,
|
|
1243
|
-
errorCode,
|
|
1244
|
-
});
|
|
1245
|
-
}
|
|
1246
|
-
};
|
|
1247
890
|
export const de_DeleteChannelBanCommand = async (output, context) => {
|
|
1248
891
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1249
|
-
return
|
|
892
|
+
return de_CommandError(output, context);
|
|
1250
893
|
}
|
|
1251
894
|
const contents = map({
|
|
1252
895
|
$metadata: deserializeMetadata(output),
|
|
@@ -1254,43 +897,9 @@ export const de_DeleteChannelBanCommand = async (output, context) => {
|
|
|
1254
897
|
await collectBody(output.body, context);
|
|
1255
898
|
return contents;
|
|
1256
899
|
};
|
|
1257
|
-
const de_DeleteChannelBanCommandError = async (output, context) => {
|
|
1258
|
-
const parsedOutput = {
|
|
1259
|
-
...output,
|
|
1260
|
-
body: await parseErrorBody(output.body, context),
|
|
1261
|
-
};
|
|
1262
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1263
|
-
switch (errorCode) {
|
|
1264
|
-
case "BadRequestException":
|
|
1265
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1266
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1267
|
-
case "ForbiddenException":
|
|
1268
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1269
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1270
|
-
case "ServiceFailureException":
|
|
1271
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1272
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1273
|
-
case "ServiceUnavailableException":
|
|
1274
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1275
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1276
|
-
case "ThrottledClientException":
|
|
1277
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1278
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1279
|
-
case "UnauthorizedClientException":
|
|
1280
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1281
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1282
|
-
default:
|
|
1283
|
-
const parsedBody = parsedOutput.body;
|
|
1284
|
-
return throwDefaultError({
|
|
1285
|
-
output,
|
|
1286
|
-
parsedBody,
|
|
1287
|
-
errorCode,
|
|
1288
|
-
});
|
|
1289
|
-
}
|
|
1290
|
-
};
|
|
1291
900
|
export const de_DeleteChannelFlowCommand = async (output, context) => {
|
|
1292
901
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1293
|
-
return
|
|
902
|
+
return de_CommandError(output, context);
|
|
1294
903
|
}
|
|
1295
904
|
const contents = map({
|
|
1296
905
|
$metadata: deserializeMetadata(output),
|
|
@@ -1298,46 +907,9 @@ export const de_DeleteChannelFlowCommand = async (output, context) => {
|
|
|
1298
907
|
await collectBody(output.body, context);
|
|
1299
908
|
return contents;
|
|
1300
909
|
};
|
|
1301
|
-
const de_DeleteChannelFlowCommandError = async (output, context) => {
|
|
1302
|
-
const parsedOutput = {
|
|
1303
|
-
...output,
|
|
1304
|
-
body: await parseErrorBody(output.body, context),
|
|
1305
|
-
};
|
|
1306
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1307
|
-
switch (errorCode) {
|
|
1308
|
-
case "BadRequestException":
|
|
1309
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1310
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1311
|
-
case "ConflictException":
|
|
1312
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
1313
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1314
|
-
case "ForbiddenException":
|
|
1315
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1316
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1317
|
-
case "ServiceFailureException":
|
|
1318
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1319
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1320
|
-
case "ServiceUnavailableException":
|
|
1321
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1322
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1323
|
-
case "ThrottledClientException":
|
|
1324
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1325
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1326
|
-
case "UnauthorizedClientException":
|
|
1327
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1328
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1329
|
-
default:
|
|
1330
|
-
const parsedBody = parsedOutput.body;
|
|
1331
|
-
return throwDefaultError({
|
|
1332
|
-
output,
|
|
1333
|
-
parsedBody,
|
|
1334
|
-
errorCode,
|
|
1335
|
-
});
|
|
1336
|
-
}
|
|
1337
|
-
};
|
|
1338
910
|
export const de_DeleteChannelMembershipCommand = async (output, context) => {
|
|
1339
911
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1340
|
-
return
|
|
912
|
+
return de_CommandError(output, context);
|
|
1341
913
|
}
|
|
1342
914
|
const contents = map({
|
|
1343
915
|
$metadata: deserializeMetadata(output),
|
|
@@ -1345,46 +917,9 @@ export const de_DeleteChannelMembershipCommand = async (output, context) => {
|
|
|
1345
917
|
await collectBody(output.body, context);
|
|
1346
918
|
return contents;
|
|
1347
919
|
};
|
|
1348
|
-
const de_DeleteChannelMembershipCommandError = async (output, context) => {
|
|
1349
|
-
const parsedOutput = {
|
|
1350
|
-
...output,
|
|
1351
|
-
body: await parseErrorBody(output.body, context),
|
|
1352
|
-
};
|
|
1353
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1354
|
-
switch (errorCode) {
|
|
1355
|
-
case "BadRequestException":
|
|
1356
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1357
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1358
|
-
case "ConflictException":
|
|
1359
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
1360
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1361
|
-
case "ForbiddenException":
|
|
1362
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1363
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1364
|
-
case "ServiceFailureException":
|
|
1365
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1366
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1367
|
-
case "ServiceUnavailableException":
|
|
1368
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1369
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1370
|
-
case "ThrottledClientException":
|
|
1371
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1372
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1373
|
-
case "UnauthorizedClientException":
|
|
1374
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1375
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1376
|
-
default:
|
|
1377
|
-
const parsedBody = parsedOutput.body;
|
|
1378
|
-
return throwDefaultError({
|
|
1379
|
-
output,
|
|
1380
|
-
parsedBody,
|
|
1381
|
-
errorCode,
|
|
1382
|
-
});
|
|
1383
|
-
}
|
|
1384
|
-
};
|
|
1385
920
|
export const de_DeleteChannelMessageCommand = async (output, context) => {
|
|
1386
921
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1387
|
-
return
|
|
922
|
+
return de_CommandError(output, context);
|
|
1388
923
|
}
|
|
1389
924
|
const contents = map({
|
|
1390
925
|
$metadata: deserializeMetadata(output),
|
|
@@ -1392,43 +927,19 @@ export const de_DeleteChannelMessageCommand = async (output, context) => {
|
|
|
1392
927
|
await collectBody(output.body, context);
|
|
1393
928
|
return contents;
|
|
1394
929
|
};
|
|
1395
|
-
const
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
body: await parseErrorBody(output.body, context),
|
|
1399
|
-
};
|
|
1400
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1401
|
-
switch (errorCode) {
|
|
1402
|
-
case "BadRequestException":
|
|
1403
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1404
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1405
|
-
case "ForbiddenException":
|
|
1406
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1407
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1408
|
-
case "ServiceFailureException":
|
|
1409
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1410
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1411
|
-
case "ServiceUnavailableException":
|
|
1412
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1413
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1414
|
-
case "ThrottledClientException":
|
|
1415
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1416
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1417
|
-
case "UnauthorizedClientException":
|
|
1418
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1419
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1420
|
-
default:
|
|
1421
|
-
const parsedBody = parsedOutput.body;
|
|
1422
|
-
return throwDefaultError({
|
|
1423
|
-
output,
|
|
1424
|
-
parsedBody,
|
|
1425
|
-
errorCode,
|
|
1426
|
-
});
|
|
930
|
+
export const de_DeleteChannelModeratorCommand = async (output, context) => {
|
|
931
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
932
|
+
return de_CommandError(output, context);
|
|
1427
933
|
}
|
|
934
|
+
const contents = map({
|
|
935
|
+
$metadata: deserializeMetadata(output),
|
|
936
|
+
});
|
|
937
|
+
await collectBody(output.body, context);
|
|
938
|
+
return contents;
|
|
1428
939
|
};
|
|
1429
|
-
export const
|
|
940
|
+
export const de_DeleteMessagingStreamingConfigurationsCommand = async (output, context) => {
|
|
1430
941
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1431
|
-
return
|
|
942
|
+
return de_CommandError(output, context);
|
|
1432
943
|
}
|
|
1433
944
|
const contents = map({
|
|
1434
945
|
$metadata: deserializeMetadata(output),
|
|
@@ -1436,87 +947,9 @@ export const de_DeleteChannelModeratorCommand = async (output, context) => {
|
|
|
1436
947
|
await collectBody(output.body, context);
|
|
1437
948
|
return contents;
|
|
1438
949
|
};
|
|
1439
|
-
const de_DeleteChannelModeratorCommandError = async (output, context) => {
|
|
1440
|
-
const parsedOutput = {
|
|
1441
|
-
...output,
|
|
1442
|
-
body: await parseErrorBody(output.body, context),
|
|
1443
|
-
};
|
|
1444
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1445
|
-
switch (errorCode) {
|
|
1446
|
-
case "BadRequestException":
|
|
1447
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1448
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1449
|
-
case "ForbiddenException":
|
|
1450
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1451
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1452
|
-
case "ServiceFailureException":
|
|
1453
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1454
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1455
|
-
case "ServiceUnavailableException":
|
|
1456
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1457
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1458
|
-
case "ThrottledClientException":
|
|
1459
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1460
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1461
|
-
case "UnauthorizedClientException":
|
|
1462
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1463
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1464
|
-
default:
|
|
1465
|
-
const parsedBody = parsedOutput.body;
|
|
1466
|
-
return throwDefaultError({
|
|
1467
|
-
output,
|
|
1468
|
-
parsedBody,
|
|
1469
|
-
errorCode,
|
|
1470
|
-
});
|
|
1471
|
-
}
|
|
1472
|
-
};
|
|
1473
|
-
export const de_DeleteMessagingStreamingConfigurationsCommand = async (output, context) => {
|
|
1474
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1475
|
-
return de_DeleteMessagingStreamingConfigurationsCommandError(output, context);
|
|
1476
|
-
}
|
|
1477
|
-
const contents = map({
|
|
1478
|
-
$metadata: deserializeMetadata(output),
|
|
1479
|
-
});
|
|
1480
|
-
await collectBody(output.body, context);
|
|
1481
|
-
return contents;
|
|
1482
|
-
};
|
|
1483
|
-
const de_DeleteMessagingStreamingConfigurationsCommandError = async (output, context) => {
|
|
1484
|
-
const parsedOutput = {
|
|
1485
|
-
...output,
|
|
1486
|
-
body: await parseErrorBody(output.body, context),
|
|
1487
|
-
};
|
|
1488
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1489
|
-
switch (errorCode) {
|
|
1490
|
-
case "BadRequestException":
|
|
1491
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1492
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1493
|
-
case "ForbiddenException":
|
|
1494
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1495
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1496
|
-
case "ServiceFailureException":
|
|
1497
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1498
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1499
|
-
case "ServiceUnavailableException":
|
|
1500
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1501
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1502
|
-
case "ThrottledClientException":
|
|
1503
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1504
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1505
|
-
case "UnauthorizedClientException":
|
|
1506
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1507
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1508
|
-
default:
|
|
1509
|
-
const parsedBody = parsedOutput.body;
|
|
1510
|
-
return throwDefaultError({
|
|
1511
|
-
output,
|
|
1512
|
-
parsedBody,
|
|
1513
|
-
errorCode,
|
|
1514
|
-
});
|
|
1515
|
-
}
|
|
1516
|
-
};
|
|
1517
950
|
export const de_DescribeChannelCommand = async (output, context) => {
|
|
1518
951
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1519
|
-
return
|
|
952
|
+
return de_CommandError(output, context);
|
|
1520
953
|
}
|
|
1521
954
|
const contents = map({
|
|
1522
955
|
$metadata: deserializeMetadata(output),
|
|
@@ -1528,43 +961,9 @@ export const de_DescribeChannelCommand = async (output, context) => {
|
|
|
1528
961
|
Object.assign(contents, doc);
|
|
1529
962
|
return contents;
|
|
1530
963
|
};
|
|
1531
|
-
const de_DescribeChannelCommandError = async (output, context) => {
|
|
1532
|
-
const parsedOutput = {
|
|
1533
|
-
...output,
|
|
1534
|
-
body: await parseErrorBody(output.body, context),
|
|
1535
|
-
};
|
|
1536
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1537
|
-
switch (errorCode) {
|
|
1538
|
-
case "BadRequestException":
|
|
1539
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1540
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1541
|
-
case "ForbiddenException":
|
|
1542
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1543
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1544
|
-
case "ServiceFailureException":
|
|
1545
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1546
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1547
|
-
case "ServiceUnavailableException":
|
|
1548
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1549
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1550
|
-
case "ThrottledClientException":
|
|
1551
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1552
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1553
|
-
case "UnauthorizedClientException":
|
|
1554
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1555
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1556
|
-
default:
|
|
1557
|
-
const parsedBody = parsedOutput.body;
|
|
1558
|
-
return throwDefaultError({
|
|
1559
|
-
output,
|
|
1560
|
-
parsedBody,
|
|
1561
|
-
errorCode,
|
|
1562
|
-
});
|
|
1563
|
-
}
|
|
1564
|
-
};
|
|
1565
964
|
export const de_DescribeChannelBanCommand = async (output, context) => {
|
|
1566
965
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1567
|
-
return
|
|
966
|
+
return de_CommandError(output, context);
|
|
1568
967
|
}
|
|
1569
968
|
const contents = map({
|
|
1570
969
|
$metadata: deserializeMetadata(output),
|
|
@@ -1576,46 +975,9 @@ export const de_DescribeChannelBanCommand = async (output, context) => {
|
|
|
1576
975
|
Object.assign(contents, doc);
|
|
1577
976
|
return contents;
|
|
1578
977
|
};
|
|
1579
|
-
const de_DescribeChannelBanCommandError = async (output, context) => {
|
|
1580
|
-
const parsedOutput = {
|
|
1581
|
-
...output,
|
|
1582
|
-
body: await parseErrorBody(output.body, context),
|
|
1583
|
-
};
|
|
1584
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1585
|
-
switch (errorCode) {
|
|
1586
|
-
case "BadRequestException":
|
|
1587
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1588
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1589
|
-
case "ForbiddenException":
|
|
1590
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1591
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1592
|
-
case "NotFoundException":
|
|
1593
|
-
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
1594
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1595
|
-
case "ServiceFailureException":
|
|
1596
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1597
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1598
|
-
case "ServiceUnavailableException":
|
|
1599
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1600
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1601
|
-
case "ThrottledClientException":
|
|
1602
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1603
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1604
|
-
case "UnauthorizedClientException":
|
|
1605
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1606
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1607
|
-
default:
|
|
1608
|
-
const parsedBody = parsedOutput.body;
|
|
1609
|
-
return throwDefaultError({
|
|
1610
|
-
output,
|
|
1611
|
-
parsedBody,
|
|
1612
|
-
errorCode,
|
|
1613
|
-
});
|
|
1614
|
-
}
|
|
1615
|
-
};
|
|
1616
978
|
export const de_DescribeChannelFlowCommand = async (output, context) => {
|
|
1617
979
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1618
|
-
return
|
|
980
|
+
return de_CommandError(output, context);
|
|
1619
981
|
}
|
|
1620
982
|
const contents = map({
|
|
1621
983
|
$metadata: deserializeMetadata(output),
|
|
@@ -1627,586 +989,163 @@ export const de_DescribeChannelFlowCommand = async (output, context) => {
|
|
|
1627
989
|
Object.assign(contents, doc);
|
|
1628
990
|
return contents;
|
|
1629
991
|
};
|
|
1630
|
-
const de_DescribeChannelFlowCommandError = async (output, context) => {
|
|
1631
|
-
const parsedOutput = {
|
|
1632
|
-
...output,
|
|
1633
|
-
body: await parseErrorBody(output.body, context),
|
|
1634
|
-
};
|
|
1635
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1636
|
-
switch (errorCode) {
|
|
1637
|
-
case "BadRequestException":
|
|
1638
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1639
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1640
|
-
case "ForbiddenException":
|
|
1641
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1642
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1643
|
-
case "ServiceFailureException":
|
|
1644
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1645
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1646
|
-
case "ServiceUnavailableException":
|
|
1647
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1648
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1649
|
-
case "ThrottledClientException":
|
|
1650
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1651
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1652
|
-
case "UnauthorizedClientException":
|
|
1653
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1654
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1655
|
-
default:
|
|
1656
|
-
const parsedBody = parsedOutput.body;
|
|
1657
|
-
return throwDefaultError({
|
|
1658
|
-
output,
|
|
1659
|
-
parsedBody,
|
|
1660
|
-
errorCode,
|
|
1661
|
-
});
|
|
1662
|
-
}
|
|
1663
|
-
};
|
|
1664
992
|
export const de_DescribeChannelMembershipCommand = async (output, context) => {
|
|
1665
993
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1666
|
-
return
|
|
994
|
+
return de_CommandError(output, context);
|
|
1667
995
|
}
|
|
1668
996
|
const contents = map({
|
|
1669
997
|
$metadata: deserializeMetadata(output),
|
|
1670
998
|
});
|
|
1671
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1672
|
-
const doc = take(data, {
|
|
1673
|
-
ChannelMembership: (_) => de_ChannelMembership(_, context),
|
|
1674
|
-
});
|
|
1675
|
-
Object.assign(contents, doc);
|
|
1676
|
-
return contents;
|
|
1677
|
-
};
|
|
1678
|
-
const de_DescribeChannelMembershipCommandError = async (output, context) => {
|
|
1679
|
-
const parsedOutput = {
|
|
1680
|
-
...output,
|
|
1681
|
-
body: await parseErrorBody(output.body, context),
|
|
1682
|
-
};
|
|
1683
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1684
|
-
switch (errorCode) {
|
|
1685
|
-
case "BadRequestException":
|
|
1686
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1687
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1688
|
-
case "ForbiddenException":
|
|
1689
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1690
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1691
|
-
case "NotFoundException":
|
|
1692
|
-
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
1693
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1694
|
-
case "ServiceFailureException":
|
|
1695
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1696
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1697
|
-
case "ServiceUnavailableException":
|
|
1698
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1699
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1700
|
-
case "ThrottledClientException":
|
|
1701
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1702
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1703
|
-
case "UnauthorizedClientException":
|
|
1704
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1705
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1706
|
-
default:
|
|
1707
|
-
const parsedBody = parsedOutput.body;
|
|
1708
|
-
return throwDefaultError({
|
|
1709
|
-
output,
|
|
1710
|
-
parsedBody,
|
|
1711
|
-
errorCode,
|
|
1712
|
-
});
|
|
1713
|
-
}
|
|
1714
|
-
};
|
|
1715
|
-
export const de_DescribeChannelMembershipForAppInstanceUserCommand = async (output, context) => {
|
|
1716
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1717
|
-
return de_DescribeChannelMembershipForAppInstanceUserCommandError(output, context);
|
|
1718
|
-
}
|
|
1719
|
-
const contents = map({
|
|
1720
|
-
$metadata: deserializeMetadata(output),
|
|
1721
|
-
});
|
|
1722
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1723
|
-
const doc = take(data, {
|
|
1724
|
-
ChannelMembership: (_) => de_ChannelMembershipForAppInstanceUserSummary(_, context),
|
|
1725
|
-
});
|
|
1726
|
-
Object.assign(contents, doc);
|
|
1727
|
-
return contents;
|
|
1728
|
-
};
|
|
1729
|
-
const de_DescribeChannelMembershipForAppInstanceUserCommandError = async (output, context) => {
|
|
1730
|
-
const parsedOutput = {
|
|
1731
|
-
...output,
|
|
1732
|
-
body: await parseErrorBody(output.body, context),
|
|
1733
|
-
};
|
|
1734
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1735
|
-
switch (errorCode) {
|
|
1736
|
-
case "BadRequestException":
|
|
1737
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1738
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1739
|
-
case "ForbiddenException":
|
|
1740
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1741
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1742
|
-
case "ServiceFailureException":
|
|
1743
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1744
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1745
|
-
case "ServiceUnavailableException":
|
|
1746
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1747
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1748
|
-
case "ThrottledClientException":
|
|
1749
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1750
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1751
|
-
case "UnauthorizedClientException":
|
|
1752
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1753
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1754
|
-
default:
|
|
1755
|
-
const parsedBody = parsedOutput.body;
|
|
1756
|
-
return throwDefaultError({
|
|
1757
|
-
output,
|
|
1758
|
-
parsedBody,
|
|
1759
|
-
errorCode,
|
|
1760
|
-
});
|
|
1761
|
-
}
|
|
1762
|
-
};
|
|
1763
|
-
export const de_DescribeChannelModeratedByAppInstanceUserCommand = async (output, context) => {
|
|
1764
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1765
|
-
return de_DescribeChannelModeratedByAppInstanceUserCommandError(output, context);
|
|
1766
|
-
}
|
|
1767
|
-
const contents = map({
|
|
1768
|
-
$metadata: deserializeMetadata(output),
|
|
1769
|
-
});
|
|
1770
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1771
|
-
const doc = take(data, {
|
|
1772
|
-
Channel: (_) => de_ChannelModeratedByAppInstanceUserSummary(_, context),
|
|
1773
|
-
});
|
|
1774
|
-
Object.assign(contents, doc);
|
|
1775
|
-
return contents;
|
|
1776
|
-
};
|
|
1777
|
-
const de_DescribeChannelModeratedByAppInstanceUserCommandError = async (output, context) => {
|
|
1778
|
-
const parsedOutput = {
|
|
1779
|
-
...output,
|
|
1780
|
-
body: await parseErrorBody(output.body, context),
|
|
1781
|
-
};
|
|
1782
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1783
|
-
switch (errorCode) {
|
|
1784
|
-
case "BadRequestException":
|
|
1785
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1786
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1787
|
-
case "ForbiddenException":
|
|
1788
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1789
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1790
|
-
case "ServiceFailureException":
|
|
1791
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1792
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1793
|
-
case "ServiceUnavailableException":
|
|
1794
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1795
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1796
|
-
case "ThrottledClientException":
|
|
1797
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1798
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1799
|
-
case "UnauthorizedClientException":
|
|
1800
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1801
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1802
|
-
default:
|
|
1803
|
-
const parsedBody = parsedOutput.body;
|
|
1804
|
-
return throwDefaultError({
|
|
1805
|
-
output,
|
|
1806
|
-
parsedBody,
|
|
1807
|
-
errorCode,
|
|
1808
|
-
});
|
|
1809
|
-
}
|
|
1810
|
-
};
|
|
1811
|
-
export const de_DescribeChannelModeratorCommand = async (output, context) => {
|
|
1812
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1813
|
-
return de_DescribeChannelModeratorCommandError(output, context);
|
|
1814
|
-
}
|
|
1815
|
-
const contents = map({
|
|
1816
|
-
$metadata: deserializeMetadata(output),
|
|
1817
|
-
});
|
|
1818
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1819
|
-
const doc = take(data, {
|
|
1820
|
-
ChannelModerator: (_) => de_ChannelModerator(_, context),
|
|
1821
|
-
});
|
|
1822
|
-
Object.assign(contents, doc);
|
|
1823
|
-
return contents;
|
|
1824
|
-
};
|
|
1825
|
-
const de_DescribeChannelModeratorCommandError = async (output, context) => {
|
|
1826
|
-
const parsedOutput = {
|
|
1827
|
-
...output,
|
|
1828
|
-
body: await parseErrorBody(output.body, context),
|
|
1829
|
-
};
|
|
1830
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1831
|
-
switch (errorCode) {
|
|
1832
|
-
case "BadRequestException":
|
|
1833
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1834
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1835
|
-
case "ForbiddenException":
|
|
1836
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1837
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1838
|
-
case "NotFoundException":
|
|
1839
|
-
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
1840
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1841
|
-
case "ServiceFailureException":
|
|
1842
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1843
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1844
|
-
case "ServiceUnavailableException":
|
|
1845
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1846
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1847
|
-
case "ThrottledClientException":
|
|
1848
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1849
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1850
|
-
case "UnauthorizedClientException":
|
|
1851
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1852
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1853
|
-
default:
|
|
1854
|
-
const parsedBody = parsedOutput.body;
|
|
1855
|
-
return throwDefaultError({
|
|
1856
|
-
output,
|
|
1857
|
-
parsedBody,
|
|
1858
|
-
errorCode,
|
|
1859
|
-
});
|
|
1860
|
-
}
|
|
1861
|
-
};
|
|
1862
|
-
export const de_DisassociateChannelFlowCommand = async (output, context) => {
|
|
1863
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1864
|
-
return de_DisassociateChannelFlowCommandError(output, context);
|
|
1865
|
-
}
|
|
1866
|
-
const contents = map({
|
|
1867
|
-
$metadata: deserializeMetadata(output),
|
|
1868
|
-
});
|
|
1869
|
-
await collectBody(output.body, context);
|
|
1870
|
-
return contents;
|
|
1871
|
-
};
|
|
1872
|
-
const de_DisassociateChannelFlowCommandError = async (output, context) => {
|
|
1873
|
-
const parsedOutput = {
|
|
1874
|
-
...output,
|
|
1875
|
-
body: await parseErrorBody(output.body, context),
|
|
1876
|
-
};
|
|
1877
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1878
|
-
switch (errorCode) {
|
|
1879
|
-
case "BadRequestException":
|
|
1880
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1881
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1882
|
-
case "ConflictException":
|
|
1883
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
1884
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1885
|
-
case "ForbiddenException":
|
|
1886
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1887
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1888
|
-
case "NotFoundException":
|
|
1889
|
-
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
1890
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1891
|
-
case "ServiceFailureException":
|
|
1892
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1893
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1894
|
-
case "ServiceUnavailableException":
|
|
1895
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1896
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1897
|
-
case "ThrottledClientException":
|
|
1898
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1899
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1900
|
-
case "UnauthorizedClientException":
|
|
1901
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1902
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1903
|
-
default:
|
|
1904
|
-
const parsedBody = parsedOutput.body;
|
|
1905
|
-
return throwDefaultError({
|
|
1906
|
-
output,
|
|
1907
|
-
parsedBody,
|
|
1908
|
-
errorCode,
|
|
1909
|
-
});
|
|
1910
|
-
}
|
|
999
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1000
|
+
const doc = take(data, {
|
|
1001
|
+
ChannelMembership: (_) => de_ChannelMembership(_, context),
|
|
1002
|
+
});
|
|
1003
|
+
Object.assign(contents, doc);
|
|
1004
|
+
return contents;
|
|
1911
1005
|
};
|
|
1912
|
-
export const
|
|
1006
|
+
export const de_DescribeChannelMembershipForAppInstanceUserCommand = async (output, context) => {
|
|
1913
1007
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1914
|
-
return
|
|
1008
|
+
return de_CommandError(output, context);
|
|
1915
1009
|
}
|
|
1916
1010
|
const contents = map({
|
|
1917
1011
|
$metadata: deserializeMetadata(output),
|
|
1918
1012
|
});
|
|
1919
1013
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1920
1014
|
const doc = take(data, {
|
|
1921
|
-
|
|
1922
|
-
Member: _json,
|
|
1923
|
-
Preferences: _json,
|
|
1015
|
+
ChannelMembership: (_) => de_ChannelMembershipForAppInstanceUserSummary(_, context),
|
|
1924
1016
|
});
|
|
1925
1017
|
Object.assign(contents, doc);
|
|
1926
1018
|
return contents;
|
|
1927
1019
|
};
|
|
1928
|
-
const
|
|
1929
|
-
const parsedOutput = {
|
|
1930
|
-
...output,
|
|
1931
|
-
body: await parseErrorBody(output.body, context),
|
|
1932
|
-
};
|
|
1933
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1934
|
-
switch (errorCode) {
|
|
1935
|
-
case "BadRequestException":
|
|
1936
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1937
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1938
|
-
case "ForbiddenException":
|
|
1939
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1940
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1941
|
-
case "ServiceFailureException":
|
|
1942
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1943
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1944
|
-
case "ServiceUnavailableException":
|
|
1945
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1946
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1947
|
-
case "ThrottledClientException":
|
|
1948
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
1949
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1950
|
-
case "UnauthorizedClientException":
|
|
1951
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
1952
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1953
|
-
default:
|
|
1954
|
-
const parsedBody = parsedOutput.body;
|
|
1955
|
-
return throwDefaultError({
|
|
1956
|
-
output,
|
|
1957
|
-
parsedBody,
|
|
1958
|
-
errorCode,
|
|
1959
|
-
});
|
|
1960
|
-
}
|
|
1961
|
-
};
|
|
1962
|
-
export const de_GetChannelMessageCommand = async (output, context) => {
|
|
1020
|
+
export const de_DescribeChannelModeratedByAppInstanceUserCommand = async (output, context) => {
|
|
1963
1021
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1964
|
-
return
|
|
1022
|
+
return de_CommandError(output, context);
|
|
1965
1023
|
}
|
|
1966
1024
|
const contents = map({
|
|
1967
1025
|
$metadata: deserializeMetadata(output),
|
|
1968
1026
|
});
|
|
1969
1027
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1970
1028
|
const doc = take(data, {
|
|
1971
|
-
|
|
1029
|
+
Channel: (_) => de_ChannelModeratedByAppInstanceUserSummary(_, context),
|
|
1972
1030
|
});
|
|
1973
1031
|
Object.assign(contents, doc);
|
|
1974
1032
|
return contents;
|
|
1975
1033
|
};
|
|
1976
|
-
const
|
|
1977
|
-
const parsedOutput = {
|
|
1978
|
-
...output,
|
|
1979
|
-
body: await parseErrorBody(output.body, context),
|
|
1980
|
-
};
|
|
1981
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1982
|
-
switch (errorCode) {
|
|
1983
|
-
case "BadRequestException":
|
|
1984
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
1985
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1986
|
-
case "ForbiddenException":
|
|
1987
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
1988
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1989
|
-
case "NotFoundException":
|
|
1990
|
-
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
1991
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1992
|
-
case "ServiceFailureException":
|
|
1993
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
1994
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1995
|
-
case "ServiceUnavailableException":
|
|
1996
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
1997
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1998
|
-
case "ThrottledClientException":
|
|
1999
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2000
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2001
|
-
case "UnauthorizedClientException":
|
|
2002
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2003
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2004
|
-
default:
|
|
2005
|
-
const parsedBody = parsedOutput.body;
|
|
2006
|
-
return throwDefaultError({
|
|
2007
|
-
output,
|
|
2008
|
-
parsedBody,
|
|
2009
|
-
errorCode,
|
|
2010
|
-
});
|
|
2011
|
-
}
|
|
2012
|
-
};
|
|
2013
|
-
export const de_GetChannelMessageStatusCommand = async (output, context) => {
|
|
1034
|
+
export const de_DescribeChannelModeratorCommand = async (output, context) => {
|
|
2014
1035
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2015
|
-
return
|
|
1036
|
+
return de_CommandError(output, context);
|
|
2016
1037
|
}
|
|
2017
1038
|
const contents = map({
|
|
2018
1039
|
$metadata: deserializeMetadata(output),
|
|
2019
1040
|
});
|
|
2020
1041
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2021
1042
|
const doc = take(data, {
|
|
2022
|
-
|
|
1043
|
+
ChannelModerator: (_) => de_ChannelModerator(_, context),
|
|
2023
1044
|
});
|
|
2024
1045
|
Object.assign(contents, doc);
|
|
2025
1046
|
return contents;
|
|
2026
1047
|
};
|
|
2027
|
-
const
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
body: await parseErrorBody(output.body, context),
|
|
2031
|
-
};
|
|
2032
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2033
|
-
switch (errorCode) {
|
|
2034
|
-
case "BadRequestException":
|
|
2035
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2036
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2037
|
-
case "ForbiddenException":
|
|
2038
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2039
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2040
|
-
case "ServiceFailureException":
|
|
2041
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2042
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2043
|
-
case "ServiceUnavailableException":
|
|
2044
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2045
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2046
|
-
case "ThrottledClientException":
|
|
2047
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2048
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2049
|
-
case "UnauthorizedClientException":
|
|
2050
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2051
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2052
|
-
default:
|
|
2053
|
-
const parsedBody = parsedOutput.body;
|
|
2054
|
-
return throwDefaultError({
|
|
2055
|
-
output,
|
|
2056
|
-
parsedBody,
|
|
2057
|
-
errorCode,
|
|
2058
|
-
});
|
|
1048
|
+
export const de_DisassociateChannelFlowCommand = async (output, context) => {
|
|
1049
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1050
|
+
return de_CommandError(output, context);
|
|
2059
1051
|
}
|
|
1052
|
+
const contents = map({
|
|
1053
|
+
$metadata: deserializeMetadata(output),
|
|
1054
|
+
});
|
|
1055
|
+
await collectBody(output.body, context);
|
|
1056
|
+
return contents;
|
|
2060
1057
|
};
|
|
2061
|
-
export const
|
|
1058
|
+
export const de_GetChannelMembershipPreferencesCommand = async (output, context) => {
|
|
2062
1059
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2063
|
-
return
|
|
1060
|
+
return de_CommandError(output, context);
|
|
2064
1061
|
}
|
|
2065
1062
|
const contents = map({
|
|
2066
1063
|
$metadata: deserializeMetadata(output),
|
|
2067
1064
|
});
|
|
2068
1065
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2069
1066
|
const doc = take(data, {
|
|
2070
|
-
|
|
1067
|
+
ChannelArn: __expectString,
|
|
1068
|
+
Member: _json,
|
|
1069
|
+
Preferences: _json,
|
|
2071
1070
|
});
|
|
2072
1071
|
Object.assign(contents, doc);
|
|
2073
1072
|
return contents;
|
|
2074
1073
|
};
|
|
2075
|
-
const
|
|
2076
|
-
const parsedOutput = {
|
|
2077
|
-
...output,
|
|
2078
|
-
body: await parseErrorBody(output.body, context),
|
|
2079
|
-
};
|
|
2080
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2081
|
-
switch (errorCode) {
|
|
2082
|
-
case "ForbiddenException":
|
|
2083
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2084
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2085
|
-
case "ServiceFailureException":
|
|
2086
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2087
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2088
|
-
case "ServiceUnavailableException":
|
|
2089
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2090
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2091
|
-
case "ThrottledClientException":
|
|
2092
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2093
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2094
|
-
case "UnauthorizedClientException":
|
|
2095
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2096
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2097
|
-
default:
|
|
2098
|
-
const parsedBody = parsedOutput.body;
|
|
2099
|
-
return throwDefaultError({
|
|
2100
|
-
output,
|
|
2101
|
-
parsedBody,
|
|
2102
|
-
errorCode,
|
|
2103
|
-
});
|
|
2104
|
-
}
|
|
2105
|
-
};
|
|
2106
|
-
export const de_GetMessagingStreamingConfigurationsCommand = async (output, context) => {
|
|
1074
|
+
export const de_GetChannelMessageCommand = async (output, context) => {
|
|
2107
1075
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2108
|
-
return
|
|
1076
|
+
return de_CommandError(output, context);
|
|
2109
1077
|
}
|
|
2110
1078
|
const contents = map({
|
|
2111
1079
|
$metadata: deserializeMetadata(output),
|
|
2112
1080
|
});
|
|
2113
1081
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2114
1082
|
const doc = take(data, {
|
|
2115
|
-
|
|
1083
|
+
ChannelMessage: (_) => de_ChannelMessage(_, context),
|
|
2116
1084
|
});
|
|
2117
1085
|
Object.assign(contents, doc);
|
|
2118
1086
|
return contents;
|
|
2119
1087
|
};
|
|
2120
|
-
const
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
body: await parseErrorBody(output.body, context),
|
|
2124
|
-
};
|
|
2125
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2126
|
-
switch (errorCode) {
|
|
2127
|
-
case "BadRequestException":
|
|
2128
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2129
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2130
|
-
case "ForbiddenException":
|
|
2131
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2132
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2133
|
-
case "NotFoundException":
|
|
2134
|
-
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
2135
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2136
|
-
case "ServiceFailureException":
|
|
2137
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2138
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2139
|
-
case "ServiceUnavailableException":
|
|
2140
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2141
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2142
|
-
case "ThrottledClientException":
|
|
2143
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2144
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2145
|
-
case "UnauthorizedClientException":
|
|
2146
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2147
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2148
|
-
default:
|
|
2149
|
-
const parsedBody = parsedOutput.body;
|
|
2150
|
-
return throwDefaultError({
|
|
2151
|
-
output,
|
|
2152
|
-
parsedBody,
|
|
2153
|
-
errorCode,
|
|
2154
|
-
});
|
|
1088
|
+
export const de_GetChannelMessageStatusCommand = async (output, context) => {
|
|
1089
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1090
|
+
return de_CommandError(output, context);
|
|
2155
1091
|
}
|
|
1092
|
+
const contents = map({
|
|
1093
|
+
$metadata: deserializeMetadata(output),
|
|
1094
|
+
});
|
|
1095
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1096
|
+
const doc = take(data, {
|
|
1097
|
+
Status: _json,
|
|
1098
|
+
});
|
|
1099
|
+
Object.assign(contents, doc);
|
|
1100
|
+
return contents;
|
|
2156
1101
|
};
|
|
2157
|
-
export const
|
|
1102
|
+
export const de_GetMessagingSessionEndpointCommand = async (output, context) => {
|
|
2158
1103
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2159
|
-
return
|
|
1104
|
+
return de_CommandError(output, context);
|
|
2160
1105
|
}
|
|
2161
1106
|
const contents = map({
|
|
2162
1107
|
$metadata: deserializeMetadata(output),
|
|
2163
1108
|
});
|
|
2164
1109
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2165
1110
|
const doc = take(data, {
|
|
2166
|
-
|
|
2167
|
-
ChannelBans: _json,
|
|
2168
|
-
NextToken: __expectString,
|
|
1111
|
+
Endpoint: _json,
|
|
2169
1112
|
});
|
|
2170
1113
|
Object.assign(contents, doc);
|
|
2171
1114
|
return contents;
|
|
2172
1115
|
};
|
|
2173
|
-
const
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2191
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2192
|
-
case "ThrottledClientException":
|
|
2193
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2194
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2195
|
-
case "UnauthorizedClientException":
|
|
2196
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2197
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2198
|
-
default:
|
|
2199
|
-
const parsedBody = parsedOutput.body;
|
|
2200
|
-
return throwDefaultError({
|
|
2201
|
-
output,
|
|
2202
|
-
parsedBody,
|
|
2203
|
-
errorCode,
|
|
2204
|
-
});
|
|
1116
|
+
export const de_GetMessagingStreamingConfigurationsCommand = async (output, context) => {
|
|
1117
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1118
|
+
return de_CommandError(output, context);
|
|
1119
|
+
}
|
|
1120
|
+
const contents = map({
|
|
1121
|
+
$metadata: deserializeMetadata(output),
|
|
1122
|
+
});
|
|
1123
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1124
|
+
const doc = take(data, {
|
|
1125
|
+
StreamingConfigurations: _json,
|
|
1126
|
+
});
|
|
1127
|
+
Object.assign(contents, doc);
|
|
1128
|
+
return contents;
|
|
1129
|
+
};
|
|
1130
|
+
export const de_ListChannelBansCommand = async (output, context) => {
|
|
1131
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1132
|
+
return de_CommandError(output, context);
|
|
2205
1133
|
}
|
|
1134
|
+
const contents = map({
|
|
1135
|
+
$metadata: deserializeMetadata(output),
|
|
1136
|
+
});
|
|
1137
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1138
|
+
const doc = take(data, {
|
|
1139
|
+
ChannelArn: __expectString,
|
|
1140
|
+
ChannelBans: _json,
|
|
1141
|
+
NextToken: __expectString,
|
|
1142
|
+
});
|
|
1143
|
+
Object.assign(contents, doc);
|
|
1144
|
+
return contents;
|
|
2206
1145
|
};
|
|
2207
1146
|
export const de_ListChannelFlowsCommand = async (output, context) => {
|
|
2208
1147
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2209
|
-
return
|
|
1148
|
+
return de_CommandError(output, context);
|
|
2210
1149
|
}
|
|
2211
1150
|
const contents = map({
|
|
2212
1151
|
$metadata: deserializeMetadata(output),
|
|
@@ -2219,43 +1158,9 @@ export const de_ListChannelFlowsCommand = async (output, context) => {
|
|
|
2219
1158
|
Object.assign(contents, doc);
|
|
2220
1159
|
return contents;
|
|
2221
1160
|
};
|
|
2222
|
-
const de_ListChannelFlowsCommandError = async (output, context) => {
|
|
2223
|
-
const parsedOutput = {
|
|
2224
|
-
...output,
|
|
2225
|
-
body: await parseErrorBody(output.body, context),
|
|
2226
|
-
};
|
|
2227
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2228
|
-
switch (errorCode) {
|
|
2229
|
-
case "BadRequestException":
|
|
2230
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2231
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2232
|
-
case "ForbiddenException":
|
|
2233
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2234
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2235
|
-
case "ServiceFailureException":
|
|
2236
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2237
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2238
|
-
case "ServiceUnavailableException":
|
|
2239
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2240
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2241
|
-
case "ThrottledClientException":
|
|
2242
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2243
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2244
|
-
case "UnauthorizedClientException":
|
|
2245
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2246
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2247
|
-
default:
|
|
2248
|
-
const parsedBody = parsedOutput.body;
|
|
2249
|
-
return throwDefaultError({
|
|
2250
|
-
output,
|
|
2251
|
-
parsedBody,
|
|
2252
|
-
errorCode,
|
|
2253
|
-
});
|
|
2254
|
-
}
|
|
2255
|
-
};
|
|
2256
1161
|
export const de_ListChannelMembershipsCommand = async (output, context) => {
|
|
2257
1162
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2258
|
-
return
|
|
1163
|
+
return de_CommandError(output, context);
|
|
2259
1164
|
}
|
|
2260
1165
|
const contents = map({
|
|
2261
1166
|
$metadata: deserializeMetadata(output),
|
|
@@ -2269,43 +1174,9 @@ export const de_ListChannelMembershipsCommand = async (output, context) => {
|
|
|
2269
1174
|
Object.assign(contents, doc);
|
|
2270
1175
|
return contents;
|
|
2271
1176
|
};
|
|
2272
|
-
const de_ListChannelMembershipsCommandError = async (output, context) => {
|
|
2273
|
-
const parsedOutput = {
|
|
2274
|
-
...output,
|
|
2275
|
-
body: await parseErrorBody(output.body, context),
|
|
2276
|
-
};
|
|
2277
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2278
|
-
switch (errorCode) {
|
|
2279
|
-
case "BadRequestException":
|
|
2280
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2281
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2282
|
-
case "ForbiddenException":
|
|
2283
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2284
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2285
|
-
case "ServiceFailureException":
|
|
2286
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2287
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2288
|
-
case "ServiceUnavailableException":
|
|
2289
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2290
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2291
|
-
case "ThrottledClientException":
|
|
2292
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2293
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2294
|
-
case "UnauthorizedClientException":
|
|
2295
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2296
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2297
|
-
default:
|
|
2298
|
-
const parsedBody = parsedOutput.body;
|
|
2299
|
-
return throwDefaultError({
|
|
2300
|
-
output,
|
|
2301
|
-
parsedBody,
|
|
2302
|
-
errorCode,
|
|
2303
|
-
});
|
|
2304
|
-
}
|
|
2305
|
-
};
|
|
2306
1177
|
export const de_ListChannelMembershipsForAppInstanceUserCommand = async (output, context) => {
|
|
2307
1178
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2308
|
-
return
|
|
1179
|
+
return de_CommandError(output, context);
|
|
2309
1180
|
}
|
|
2310
1181
|
const contents = map({
|
|
2311
1182
|
$metadata: deserializeMetadata(output),
|
|
@@ -2318,43 +1189,9 @@ export const de_ListChannelMembershipsForAppInstanceUserCommand = async (output,
|
|
|
2318
1189
|
Object.assign(contents, doc);
|
|
2319
1190
|
return contents;
|
|
2320
1191
|
};
|
|
2321
|
-
const de_ListChannelMembershipsForAppInstanceUserCommandError = async (output, context) => {
|
|
2322
|
-
const parsedOutput = {
|
|
2323
|
-
...output,
|
|
2324
|
-
body: await parseErrorBody(output.body, context),
|
|
2325
|
-
};
|
|
2326
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2327
|
-
switch (errorCode) {
|
|
2328
|
-
case "BadRequestException":
|
|
2329
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2330
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2331
|
-
case "ForbiddenException":
|
|
2332
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2333
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2334
|
-
case "ServiceFailureException":
|
|
2335
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2336
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2337
|
-
case "ServiceUnavailableException":
|
|
2338
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2339
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2340
|
-
case "ThrottledClientException":
|
|
2341
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2342
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2343
|
-
case "UnauthorizedClientException":
|
|
2344
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2345
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2346
|
-
default:
|
|
2347
|
-
const parsedBody = parsedOutput.body;
|
|
2348
|
-
return throwDefaultError({
|
|
2349
|
-
output,
|
|
2350
|
-
parsedBody,
|
|
2351
|
-
errorCode,
|
|
2352
|
-
});
|
|
2353
|
-
}
|
|
2354
|
-
};
|
|
2355
1192
|
export const de_ListChannelMessagesCommand = async (output, context) => {
|
|
2356
1193
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2357
|
-
return
|
|
1194
|
+
return de_CommandError(output, context);
|
|
2358
1195
|
}
|
|
2359
1196
|
const contents = map({
|
|
2360
1197
|
$metadata: deserializeMetadata(output),
|
|
@@ -2369,43 +1206,9 @@ export const de_ListChannelMessagesCommand = async (output, context) => {
|
|
|
2369
1206
|
Object.assign(contents, doc);
|
|
2370
1207
|
return contents;
|
|
2371
1208
|
};
|
|
2372
|
-
const de_ListChannelMessagesCommandError = async (output, context) => {
|
|
2373
|
-
const parsedOutput = {
|
|
2374
|
-
...output,
|
|
2375
|
-
body: await parseErrorBody(output.body, context),
|
|
2376
|
-
};
|
|
2377
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2378
|
-
switch (errorCode) {
|
|
2379
|
-
case "BadRequestException":
|
|
2380
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2381
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2382
|
-
case "ForbiddenException":
|
|
2383
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2384
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2385
|
-
case "ServiceFailureException":
|
|
2386
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2387
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2388
|
-
case "ServiceUnavailableException":
|
|
2389
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2390
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2391
|
-
case "ThrottledClientException":
|
|
2392
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2393
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2394
|
-
case "UnauthorizedClientException":
|
|
2395
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2396
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2397
|
-
default:
|
|
2398
|
-
const parsedBody = parsedOutput.body;
|
|
2399
|
-
return throwDefaultError({
|
|
2400
|
-
output,
|
|
2401
|
-
parsedBody,
|
|
2402
|
-
errorCode,
|
|
2403
|
-
});
|
|
2404
|
-
}
|
|
2405
|
-
};
|
|
2406
1209
|
export const de_ListChannelModeratorsCommand = async (output, context) => {
|
|
2407
1210
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2408
|
-
return
|
|
1211
|
+
return de_CommandError(output, context);
|
|
2409
1212
|
}
|
|
2410
1213
|
const contents = map({
|
|
2411
1214
|
$metadata: deserializeMetadata(output),
|
|
@@ -2419,43 +1222,9 @@ export const de_ListChannelModeratorsCommand = async (output, context) => {
|
|
|
2419
1222
|
Object.assign(contents, doc);
|
|
2420
1223
|
return contents;
|
|
2421
1224
|
};
|
|
2422
|
-
const de_ListChannelModeratorsCommandError = async (output, context) => {
|
|
2423
|
-
const parsedOutput = {
|
|
2424
|
-
...output,
|
|
2425
|
-
body: await parseErrorBody(output.body, context),
|
|
2426
|
-
};
|
|
2427
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2428
|
-
switch (errorCode) {
|
|
2429
|
-
case "BadRequestException":
|
|
2430
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2431
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2432
|
-
case "ForbiddenException":
|
|
2433
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2434
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2435
|
-
case "ServiceFailureException":
|
|
2436
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2437
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2438
|
-
case "ServiceUnavailableException":
|
|
2439
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2440
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2441
|
-
case "ThrottledClientException":
|
|
2442
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2443
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2444
|
-
case "UnauthorizedClientException":
|
|
2445
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2446
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2447
|
-
default:
|
|
2448
|
-
const parsedBody = parsedOutput.body;
|
|
2449
|
-
return throwDefaultError({
|
|
2450
|
-
output,
|
|
2451
|
-
parsedBody,
|
|
2452
|
-
errorCode,
|
|
2453
|
-
});
|
|
2454
|
-
}
|
|
2455
|
-
};
|
|
2456
1225
|
export const de_ListChannelsCommand = async (output, context) => {
|
|
2457
1226
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2458
|
-
return
|
|
1227
|
+
return de_CommandError(output, context);
|
|
2459
1228
|
}
|
|
2460
1229
|
const contents = map({
|
|
2461
1230
|
$metadata: deserializeMetadata(output),
|
|
@@ -2468,92 +1237,24 @@ export const de_ListChannelsCommand = async (output, context) => {
|
|
|
2468
1237
|
Object.assign(contents, doc);
|
|
2469
1238
|
return contents;
|
|
2470
1239
|
};
|
|
2471
|
-
const de_ListChannelsCommandError = async (output, context) => {
|
|
2472
|
-
const parsedOutput = {
|
|
2473
|
-
...output,
|
|
2474
|
-
body: await parseErrorBody(output.body, context),
|
|
2475
|
-
};
|
|
2476
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2477
|
-
switch (errorCode) {
|
|
2478
|
-
case "BadRequestException":
|
|
2479
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2480
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2481
|
-
case "ForbiddenException":
|
|
2482
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2483
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2484
|
-
case "ServiceFailureException":
|
|
2485
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2486
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2487
|
-
case "ServiceUnavailableException":
|
|
2488
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2489
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2490
|
-
case "ThrottledClientException":
|
|
2491
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2492
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2493
|
-
case "UnauthorizedClientException":
|
|
2494
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2495
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2496
|
-
default:
|
|
2497
|
-
const parsedBody = parsedOutput.body;
|
|
2498
|
-
return throwDefaultError({
|
|
2499
|
-
output,
|
|
2500
|
-
parsedBody,
|
|
2501
|
-
errorCode,
|
|
2502
|
-
});
|
|
2503
|
-
}
|
|
2504
|
-
};
|
|
2505
1240
|
export const de_ListChannelsAssociatedWithChannelFlowCommand = async (output, context) => {
|
|
2506
1241
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2507
|
-
return
|
|
1242
|
+
return de_CommandError(output, context);
|
|
2508
1243
|
}
|
|
2509
1244
|
const contents = map({
|
|
2510
1245
|
$metadata: deserializeMetadata(output),
|
|
2511
1246
|
});
|
|
2512
1247
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2513
|
-
const doc = take(data, {
|
|
2514
|
-
Channels: _json,
|
|
2515
|
-
NextToken: __expectString,
|
|
2516
|
-
});
|
|
2517
|
-
Object.assign(contents, doc);
|
|
2518
|
-
return contents;
|
|
2519
|
-
};
|
|
2520
|
-
const de_ListChannelsAssociatedWithChannelFlowCommandError = async (output, context) => {
|
|
2521
|
-
const parsedOutput = {
|
|
2522
|
-
...output,
|
|
2523
|
-
body: await parseErrorBody(output.body, context),
|
|
2524
|
-
};
|
|
2525
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2526
|
-
switch (errorCode) {
|
|
2527
|
-
case "BadRequestException":
|
|
2528
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2529
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2530
|
-
case "ForbiddenException":
|
|
2531
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2532
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2533
|
-
case "ServiceFailureException":
|
|
2534
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2535
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2536
|
-
case "ServiceUnavailableException":
|
|
2537
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2538
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2539
|
-
case "ThrottledClientException":
|
|
2540
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2541
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2542
|
-
case "UnauthorizedClientException":
|
|
2543
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2544
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2545
|
-
default:
|
|
2546
|
-
const parsedBody = parsedOutput.body;
|
|
2547
|
-
return throwDefaultError({
|
|
2548
|
-
output,
|
|
2549
|
-
parsedBody,
|
|
2550
|
-
errorCode,
|
|
2551
|
-
});
|
|
2552
|
-
}
|
|
1248
|
+
const doc = take(data, {
|
|
1249
|
+
Channels: _json,
|
|
1250
|
+
NextToken: __expectString,
|
|
1251
|
+
});
|
|
1252
|
+
Object.assign(contents, doc);
|
|
1253
|
+
return contents;
|
|
2553
1254
|
};
|
|
2554
1255
|
export const de_ListChannelsModeratedByAppInstanceUserCommand = async (output, context) => {
|
|
2555
1256
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2556
|
-
return
|
|
1257
|
+
return de_CommandError(output, context);
|
|
2557
1258
|
}
|
|
2558
1259
|
const contents = map({
|
|
2559
1260
|
$metadata: deserializeMetadata(output),
|
|
@@ -2566,43 +1267,9 @@ export const de_ListChannelsModeratedByAppInstanceUserCommand = async (output, c
|
|
|
2566
1267
|
Object.assign(contents, doc);
|
|
2567
1268
|
return contents;
|
|
2568
1269
|
};
|
|
2569
|
-
const de_ListChannelsModeratedByAppInstanceUserCommandError = async (output, context) => {
|
|
2570
|
-
const parsedOutput = {
|
|
2571
|
-
...output,
|
|
2572
|
-
body: await parseErrorBody(output.body, context),
|
|
2573
|
-
};
|
|
2574
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2575
|
-
switch (errorCode) {
|
|
2576
|
-
case "BadRequestException":
|
|
2577
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2578
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2579
|
-
case "ForbiddenException":
|
|
2580
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2581
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2582
|
-
case "ServiceFailureException":
|
|
2583
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2584
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2585
|
-
case "ServiceUnavailableException":
|
|
2586
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2587
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2588
|
-
case "ThrottledClientException":
|
|
2589
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2590
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2591
|
-
case "UnauthorizedClientException":
|
|
2592
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2593
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2594
|
-
default:
|
|
2595
|
-
const parsedBody = parsedOutput.body;
|
|
2596
|
-
return throwDefaultError({
|
|
2597
|
-
output,
|
|
2598
|
-
parsedBody,
|
|
2599
|
-
errorCode,
|
|
2600
|
-
});
|
|
2601
|
-
}
|
|
2602
|
-
};
|
|
2603
1270
|
export const de_ListSubChannelsCommand = async (output, context) => {
|
|
2604
1271
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2605
|
-
return
|
|
1272
|
+
return de_CommandError(output, context);
|
|
2606
1273
|
}
|
|
2607
1274
|
const contents = map({
|
|
2608
1275
|
$metadata: deserializeMetadata(output),
|
|
@@ -2616,43 +1283,9 @@ export const de_ListSubChannelsCommand = async (output, context) => {
|
|
|
2616
1283
|
Object.assign(contents, doc);
|
|
2617
1284
|
return contents;
|
|
2618
1285
|
};
|
|
2619
|
-
const de_ListSubChannelsCommandError = async (output, context) => {
|
|
2620
|
-
const parsedOutput = {
|
|
2621
|
-
...output,
|
|
2622
|
-
body: await parseErrorBody(output.body, context),
|
|
2623
|
-
};
|
|
2624
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2625
|
-
switch (errorCode) {
|
|
2626
|
-
case "BadRequestException":
|
|
2627
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2628
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2629
|
-
case "ForbiddenException":
|
|
2630
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2631
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2632
|
-
case "ServiceFailureException":
|
|
2633
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2634
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2635
|
-
case "ServiceUnavailableException":
|
|
2636
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2637
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2638
|
-
case "ThrottledClientException":
|
|
2639
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2640
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2641
|
-
case "UnauthorizedClientException":
|
|
2642
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2643
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2644
|
-
default:
|
|
2645
|
-
const parsedBody = parsedOutput.body;
|
|
2646
|
-
return throwDefaultError({
|
|
2647
|
-
output,
|
|
2648
|
-
parsedBody,
|
|
2649
|
-
errorCode,
|
|
2650
|
-
});
|
|
2651
|
-
}
|
|
2652
|
-
};
|
|
2653
1286
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2654
1287
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2655
|
-
return
|
|
1288
|
+
return de_CommandError(output, context);
|
|
2656
1289
|
}
|
|
2657
1290
|
const contents = map({
|
|
2658
1291
|
$metadata: deserializeMetadata(output),
|
|
@@ -2664,43 +1297,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
2664
1297
|
Object.assign(contents, doc);
|
|
2665
1298
|
return contents;
|
|
2666
1299
|
};
|
|
2667
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2668
|
-
const parsedOutput = {
|
|
2669
|
-
...output,
|
|
2670
|
-
body: await parseErrorBody(output.body, context),
|
|
2671
|
-
};
|
|
2672
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2673
|
-
switch (errorCode) {
|
|
2674
|
-
case "BadRequestException":
|
|
2675
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2676
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2677
|
-
case "ForbiddenException":
|
|
2678
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2679
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2680
|
-
case "ServiceFailureException":
|
|
2681
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2682
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2683
|
-
case "ServiceUnavailableException":
|
|
2684
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2685
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2686
|
-
case "ThrottledClientException":
|
|
2687
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2688
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2689
|
-
case "UnauthorizedClientException":
|
|
2690
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2691
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2692
|
-
default:
|
|
2693
|
-
const parsedBody = parsedOutput.body;
|
|
2694
|
-
return throwDefaultError({
|
|
2695
|
-
output,
|
|
2696
|
-
parsedBody,
|
|
2697
|
-
errorCode,
|
|
2698
|
-
});
|
|
2699
|
-
}
|
|
2700
|
-
};
|
|
2701
1300
|
export const de_PutChannelExpirationSettingsCommand = async (output, context) => {
|
|
2702
1301
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2703
|
-
return
|
|
1302
|
+
return de_CommandError(output, context);
|
|
2704
1303
|
}
|
|
2705
1304
|
const contents = map({
|
|
2706
1305
|
$metadata: deserializeMetadata(output),
|
|
@@ -2713,46 +1312,9 @@ export const de_PutChannelExpirationSettingsCommand = async (output, context) =>
|
|
|
2713
1312
|
Object.assign(contents, doc);
|
|
2714
1313
|
return contents;
|
|
2715
1314
|
};
|
|
2716
|
-
const de_PutChannelExpirationSettingsCommandError = async (output, context) => {
|
|
2717
|
-
const parsedOutput = {
|
|
2718
|
-
...output,
|
|
2719
|
-
body: await parseErrorBody(output.body, context),
|
|
2720
|
-
};
|
|
2721
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2722
|
-
switch (errorCode) {
|
|
2723
|
-
case "BadRequestException":
|
|
2724
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2725
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2726
|
-
case "ConflictException":
|
|
2727
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
2728
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2729
|
-
case "ForbiddenException":
|
|
2730
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2731
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2732
|
-
case "ServiceFailureException":
|
|
2733
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2734
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2735
|
-
case "ServiceUnavailableException":
|
|
2736
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2737
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2738
|
-
case "ThrottledClientException":
|
|
2739
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2740
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2741
|
-
case "UnauthorizedClientException":
|
|
2742
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2743
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2744
|
-
default:
|
|
2745
|
-
const parsedBody = parsedOutput.body;
|
|
2746
|
-
return throwDefaultError({
|
|
2747
|
-
output,
|
|
2748
|
-
parsedBody,
|
|
2749
|
-
errorCode,
|
|
2750
|
-
});
|
|
2751
|
-
}
|
|
2752
|
-
};
|
|
2753
1315
|
export const de_PutChannelMembershipPreferencesCommand = async (output, context) => {
|
|
2754
1316
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2755
|
-
return
|
|
1317
|
+
return de_CommandError(output, context);
|
|
2756
1318
|
}
|
|
2757
1319
|
const contents = map({
|
|
2758
1320
|
$metadata: deserializeMetadata(output),
|
|
@@ -2766,46 +1328,9 @@ export const de_PutChannelMembershipPreferencesCommand = async (output, context)
|
|
|
2766
1328
|
Object.assign(contents, doc);
|
|
2767
1329
|
return contents;
|
|
2768
1330
|
};
|
|
2769
|
-
const de_PutChannelMembershipPreferencesCommandError = async (output, context) => {
|
|
2770
|
-
const parsedOutput = {
|
|
2771
|
-
...output,
|
|
2772
|
-
body: await parseErrorBody(output.body, context),
|
|
2773
|
-
};
|
|
2774
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2775
|
-
switch (errorCode) {
|
|
2776
|
-
case "BadRequestException":
|
|
2777
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2778
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2779
|
-
case "ConflictException":
|
|
2780
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
2781
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2782
|
-
case "ForbiddenException":
|
|
2783
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2784
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2785
|
-
case "ServiceFailureException":
|
|
2786
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2787
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2788
|
-
case "ServiceUnavailableException":
|
|
2789
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2790
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2791
|
-
case "ThrottledClientException":
|
|
2792
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2793
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2794
|
-
case "UnauthorizedClientException":
|
|
2795
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2796
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2797
|
-
default:
|
|
2798
|
-
const parsedBody = parsedOutput.body;
|
|
2799
|
-
return throwDefaultError({
|
|
2800
|
-
output,
|
|
2801
|
-
parsedBody,
|
|
2802
|
-
errorCode,
|
|
2803
|
-
});
|
|
2804
|
-
}
|
|
2805
|
-
};
|
|
2806
1331
|
export const de_PutMessagingStreamingConfigurationsCommand = async (output, context) => {
|
|
2807
1332
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2808
|
-
return
|
|
1333
|
+
return de_CommandError(output, context);
|
|
2809
1334
|
}
|
|
2810
1335
|
const contents = map({
|
|
2811
1336
|
$metadata: deserializeMetadata(output),
|
|
@@ -2817,49 +1342,9 @@ export const de_PutMessagingStreamingConfigurationsCommand = async (output, cont
|
|
|
2817
1342
|
Object.assign(contents, doc);
|
|
2818
1343
|
return contents;
|
|
2819
1344
|
};
|
|
2820
|
-
const de_PutMessagingStreamingConfigurationsCommandError = async (output, context) => {
|
|
2821
|
-
const parsedOutput = {
|
|
2822
|
-
...output,
|
|
2823
|
-
body: await parseErrorBody(output.body, context),
|
|
2824
|
-
};
|
|
2825
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2826
|
-
switch (errorCode) {
|
|
2827
|
-
case "BadRequestException":
|
|
2828
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2829
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2830
|
-
case "ConflictException":
|
|
2831
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
2832
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2833
|
-
case "ForbiddenException":
|
|
2834
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2835
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2836
|
-
case "NotFoundException":
|
|
2837
|
-
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
2838
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2839
|
-
case "ServiceFailureException":
|
|
2840
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2841
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2842
|
-
case "ServiceUnavailableException":
|
|
2843
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2844
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2845
|
-
case "ThrottledClientException":
|
|
2846
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2847
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2848
|
-
case "UnauthorizedClientException":
|
|
2849
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2850
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2851
|
-
default:
|
|
2852
|
-
const parsedBody = parsedOutput.body;
|
|
2853
|
-
return throwDefaultError({
|
|
2854
|
-
output,
|
|
2855
|
-
parsedBody,
|
|
2856
|
-
errorCode,
|
|
2857
|
-
});
|
|
2858
|
-
}
|
|
2859
|
-
};
|
|
2860
1345
|
export const de_RedactChannelMessageCommand = async (output, context) => {
|
|
2861
1346
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2862
|
-
return
|
|
1347
|
+
return de_CommandError(output, context);
|
|
2863
1348
|
}
|
|
2864
1349
|
const contents = map({
|
|
2865
1350
|
$metadata: deserializeMetadata(output),
|
|
@@ -2868,51 +1353,14 @@ export const de_RedactChannelMessageCommand = async (output, context) => {
|
|
|
2868
1353
|
const doc = take(data, {
|
|
2869
1354
|
ChannelArn: __expectString,
|
|
2870
1355
|
MessageId: __expectString,
|
|
2871
|
-
SubChannelId: __expectString,
|
|
2872
|
-
});
|
|
2873
|
-
Object.assign(contents, doc);
|
|
2874
|
-
return contents;
|
|
2875
|
-
};
|
|
2876
|
-
const de_RedactChannelMessageCommandError = async (output, context) => {
|
|
2877
|
-
const parsedOutput = {
|
|
2878
|
-
...output,
|
|
2879
|
-
body: await parseErrorBody(output.body, context),
|
|
2880
|
-
};
|
|
2881
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2882
|
-
switch (errorCode) {
|
|
2883
|
-
case "BadRequestException":
|
|
2884
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2885
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2886
|
-
case "ConflictException":
|
|
2887
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
2888
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2889
|
-
case "ForbiddenException":
|
|
2890
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2891
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2892
|
-
case "ServiceFailureException":
|
|
2893
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2894
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2895
|
-
case "ServiceUnavailableException":
|
|
2896
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2897
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2898
|
-
case "ThrottledClientException":
|
|
2899
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2900
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2901
|
-
case "UnauthorizedClientException":
|
|
2902
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2903
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2904
|
-
default:
|
|
2905
|
-
const parsedBody = parsedOutput.body;
|
|
2906
|
-
return throwDefaultError({
|
|
2907
|
-
output,
|
|
2908
|
-
parsedBody,
|
|
2909
|
-
errorCode,
|
|
2910
|
-
});
|
|
2911
|
-
}
|
|
1356
|
+
SubChannelId: __expectString,
|
|
1357
|
+
});
|
|
1358
|
+
Object.assign(contents, doc);
|
|
1359
|
+
return contents;
|
|
2912
1360
|
};
|
|
2913
1361
|
export const de_SearchChannelsCommand = async (output, context) => {
|
|
2914
1362
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2915
|
-
return
|
|
1363
|
+
return de_CommandError(output, context);
|
|
2916
1364
|
}
|
|
2917
1365
|
const contents = map({
|
|
2918
1366
|
$metadata: deserializeMetadata(output),
|
|
@@ -2925,43 +1373,9 @@ export const de_SearchChannelsCommand = async (output, context) => {
|
|
|
2925
1373
|
Object.assign(contents, doc);
|
|
2926
1374
|
return contents;
|
|
2927
1375
|
};
|
|
2928
|
-
const de_SearchChannelsCommandError = async (output, context) => {
|
|
2929
|
-
const parsedOutput = {
|
|
2930
|
-
...output,
|
|
2931
|
-
body: await parseErrorBody(output.body, context),
|
|
2932
|
-
};
|
|
2933
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2934
|
-
switch (errorCode) {
|
|
2935
|
-
case "BadRequestException":
|
|
2936
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2937
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2938
|
-
case "ForbiddenException":
|
|
2939
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2940
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2941
|
-
case "ServiceFailureException":
|
|
2942
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2943
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2944
|
-
case "ServiceUnavailableException":
|
|
2945
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
2946
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2947
|
-
case "ThrottledClientException":
|
|
2948
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
2949
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
2950
|
-
case "UnauthorizedClientException":
|
|
2951
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
2952
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2953
|
-
default:
|
|
2954
|
-
const parsedBody = parsedOutput.body;
|
|
2955
|
-
return throwDefaultError({
|
|
2956
|
-
output,
|
|
2957
|
-
parsedBody,
|
|
2958
|
-
errorCode,
|
|
2959
|
-
});
|
|
2960
|
-
}
|
|
2961
|
-
};
|
|
2962
1376
|
export const de_SendChannelMessageCommand = async (output, context) => {
|
|
2963
1377
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2964
|
-
return
|
|
1378
|
+
return de_CommandError(output, context);
|
|
2965
1379
|
}
|
|
2966
1380
|
const contents = map({
|
|
2967
1381
|
$metadata: deserializeMetadata(output),
|
|
@@ -2976,46 +1390,9 @@ export const de_SendChannelMessageCommand = async (output, context) => {
|
|
|
2976
1390
|
Object.assign(contents, doc);
|
|
2977
1391
|
return contents;
|
|
2978
1392
|
};
|
|
2979
|
-
const de_SendChannelMessageCommandError = async (output, context) => {
|
|
2980
|
-
const parsedOutput = {
|
|
2981
|
-
...output,
|
|
2982
|
-
body: await parseErrorBody(output.body, context),
|
|
2983
|
-
};
|
|
2984
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2985
|
-
switch (errorCode) {
|
|
2986
|
-
case "BadRequestException":
|
|
2987
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
2988
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2989
|
-
case "ConflictException":
|
|
2990
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
2991
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2992
|
-
case "ForbiddenException":
|
|
2993
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
2994
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2995
|
-
case "ServiceFailureException":
|
|
2996
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
2997
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
2998
|
-
case "ServiceUnavailableException":
|
|
2999
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3000
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3001
|
-
case "ThrottledClientException":
|
|
3002
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3003
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3004
|
-
case "UnauthorizedClientException":
|
|
3005
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3006
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3007
|
-
default:
|
|
3008
|
-
const parsedBody = parsedOutput.body;
|
|
3009
|
-
return throwDefaultError({
|
|
3010
|
-
output,
|
|
3011
|
-
parsedBody,
|
|
3012
|
-
errorCode,
|
|
3013
|
-
});
|
|
3014
|
-
}
|
|
3015
|
-
};
|
|
3016
1393
|
export const de_TagResourceCommand = async (output, context) => {
|
|
3017
1394
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3018
|
-
return
|
|
1395
|
+
return de_CommandError(output, context);
|
|
3019
1396
|
}
|
|
3020
1397
|
const contents = map({
|
|
3021
1398
|
$metadata: deserializeMetadata(output),
|
|
@@ -3023,46 +1400,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
3023
1400
|
await collectBody(output.body, context);
|
|
3024
1401
|
return contents;
|
|
3025
1402
|
};
|
|
3026
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
3027
|
-
const parsedOutput = {
|
|
3028
|
-
...output,
|
|
3029
|
-
body: await parseErrorBody(output.body, context),
|
|
3030
|
-
};
|
|
3031
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3032
|
-
switch (errorCode) {
|
|
3033
|
-
case "BadRequestException":
|
|
3034
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3035
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3036
|
-
case "ForbiddenException":
|
|
3037
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3038
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3039
|
-
case "ResourceLimitExceededException":
|
|
3040
|
-
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
|
|
3041
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
3042
|
-
case "ServiceFailureException":
|
|
3043
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3044
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3045
|
-
case "ServiceUnavailableException":
|
|
3046
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3047
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3048
|
-
case "ThrottledClientException":
|
|
3049
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3050
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3051
|
-
case "UnauthorizedClientException":
|
|
3052
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3053
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3054
|
-
default:
|
|
3055
|
-
const parsedBody = parsedOutput.body;
|
|
3056
|
-
return throwDefaultError({
|
|
3057
|
-
output,
|
|
3058
|
-
parsedBody,
|
|
3059
|
-
errorCode,
|
|
3060
|
-
});
|
|
3061
|
-
}
|
|
3062
|
-
};
|
|
3063
1403
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
3064
1404
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3065
|
-
return
|
|
1405
|
+
return de_CommandError(output, context);
|
|
3066
1406
|
}
|
|
3067
1407
|
const contents = map({
|
|
3068
1408
|
$metadata: deserializeMetadata(output),
|
|
@@ -3070,43 +1410,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
3070
1410
|
await collectBody(output.body, context);
|
|
3071
1411
|
return contents;
|
|
3072
1412
|
};
|
|
3073
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
3074
|
-
const parsedOutput = {
|
|
3075
|
-
...output,
|
|
3076
|
-
body: await parseErrorBody(output.body, context),
|
|
3077
|
-
};
|
|
3078
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3079
|
-
switch (errorCode) {
|
|
3080
|
-
case "BadRequestException":
|
|
3081
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3082
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3083
|
-
case "ForbiddenException":
|
|
3084
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3085
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3086
|
-
case "ServiceFailureException":
|
|
3087
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3088
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3089
|
-
case "ServiceUnavailableException":
|
|
3090
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3091
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3092
|
-
case "ThrottledClientException":
|
|
3093
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3094
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3095
|
-
case "UnauthorizedClientException":
|
|
3096
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3097
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3098
|
-
default:
|
|
3099
|
-
const parsedBody = parsedOutput.body;
|
|
3100
|
-
return throwDefaultError({
|
|
3101
|
-
output,
|
|
3102
|
-
parsedBody,
|
|
3103
|
-
errorCode,
|
|
3104
|
-
});
|
|
3105
|
-
}
|
|
3106
|
-
};
|
|
3107
1413
|
export const de_UpdateChannelCommand = async (output, context) => {
|
|
3108
1414
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3109
|
-
return
|
|
1415
|
+
return de_CommandError(output, context);
|
|
3110
1416
|
}
|
|
3111
1417
|
const contents = map({
|
|
3112
1418
|
$metadata: deserializeMetadata(output),
|
|
@@ -3118,46 +1424,9 @@ export const de_UpdateChannelCommand = async (output, context) => {
|
|
|
3118
1424
|
Object.assign(contents, doc);
|
|
3119
1425
|
return contents;
|
|
3120
1426
|
};
|
|
3121
|
-
const de_UpdateChannelCommandError = async (output, context) => {
|
|
3122
|
-
const parsedOutput = {
|
|
3123
|
-
...output,
|
|
3124
|
-
body: await parseErrorBody(output.body, context),
|
|
3125
|
-
};
|
|
3126
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3127
|
-
switch (errorCode) {
|
|
3128
|
-
case "BadRequestException":
|
|
3129
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3130
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3131
|
-
case "ConflictException":
|
|
3132
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
3133
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3134
|
-
case "ForbiddenException":
|
|
3135
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3136
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3137
|
-
case "ServiceFailureException":
|
|
3138
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3139
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3140
|
-
case "ServiceUnavailableException":
|
|
3141
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3142
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3143
|
-
case "ThrottledClientException":
|
|
3144
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3145
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3146
|
-
case "UnauthorizedClientException":
|
|
3147
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3148
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3149
|
-
default:
|
|
3150
|
-
const parsedBody = parsedOutput.body;
|
|
3151
|
-
return throwDefaultError({
|
|
3152
|
-
output,
|
|
3153
|
-
parsedBody,
|
|
3154
|
-
errorCode,
|
|
3155
|
-
});
|
|
3156
|
-
}
|
|
3157
|
-
};
|
|
3158
1427
|
export const de_UpdateChannelFlowCommand = async (output, context) => {
|
|
3159
1428
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3160
|
-
return
|
|
1429
|
+
return de_CommandError(output, context);
|
|
3161
1430
|
}
|
|
3162
1431
|
const contents = map({
|
|
3163
1432
|
$metadata: deserializeMetadata(output),
|
|
@@ -3169,46 +1438,9 @@ export const de_UpdateChannelFlowCommand = async (output, context) => {
|
|
|
3169
1438
|
Object.assign(contents, doc);
|
|
3170
1439
|
return contents;
|
|
3171
1440
|
};
|
|
3172
|
-
const de_UpdateChannelFlowCommandError = async (output, context) => {
|
|
3173
|
-
const parsedOutput = {
|
|
3174
|
-
...output,
|
|
3175
|
-
body: await parseErrorBody(output.body, context),
|
|
3176
|
-
};
|
|
3177
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3178
|
-
switch (errorCode) {
|
|
3179
|
-
case "BadRequestException":
|
|
3180
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3181
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3182
|
-
case "ConflictException":
|
|
3183
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
3184
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3185
|
-
case "ForbiddenException":
|
|
3186
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3187
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3188
|
-
case "ServiceFailureException":
|
|
3189
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3190
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3191
|
-
case "ServiceUnavailableException":
|
|
3192
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3193
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3194
|
-
case "ThrottledClientException":
|
|
3195
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3196
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3197
|
-
case "UnauthorizedClientException":
|
|
3198
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3199
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3200
|
-
default:
|
|
3201
|
-
const parsedBody = parsedOutput.body;
|
|
3202
|
-
return throwDefaultError({
|
|
3203
|
-
output,
|
|
3204
|
-
parsedBody,
|
|
3205
|
-
errorCode,
|
|
3206
|
-
});
|
|
3207
|
-
}
|
|
3208
|
-
};
|
|
3209
1441
|
export const de_UpdateChannelMessageCommand = async (output, context) => {
|
|
3210
1442
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3211
|
-
return
|
|
1443
|
+
return de_CommandError(output, context);
|
|
3212
1444
|
}
|
|
3213
1445
|
const contents = map({
|
|
3214
1446
|
$metadata: deserializeMetadata(output),
|
|
@@ -3223,46 +1455,9 @@ export const de_UpdateChannelMessageCommand = async (output, context) => {
|
|
|
3223
1455
|
Object.assign(contents, doc);
|
|
3224
1456
|
return contents;
|
|
3225
1457
|
};
|
|
3226
|
-
const de_UpdateChannelMessageCommandError = async (output, context) => {
|
|
3227
|
-
const parsedOutput = {
|
|
3228
|
-
...output,
|
|
3229
|
-
body: await parseErrorBody(output.body, context),
|
|
3230
|
-
};
|
|
3231
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3232
|
-
switch (errorCode) {
|
|
3233
|
-
case "BadRequestException":
|
|
3234
|
-
case "com.amazonaws.chimesdkmessaging#BadRequestException":
|
|
3235
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3236
|
-
case "ConflictException":
|
|
3237
|
-
case "com.amazonaws.chimesdkmessaging#ConflictException":
|
|
3238
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3239
|
-
case "ForbiddenException":
|
|
3240
|
-
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3241
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3242
|
-
case "ServiceFailureException":
|
|
3243
|
-
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3244
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
3245
|
-
case "ServiceUnavailableException":
|
|
3246
|
-
case "com.amazonaws.chimesdkmessaging#ServiceUnavailableException":
|
|
3247
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3248
|
-
case "ThrottledClientException":
|
|
3249
|
-
case "com.amazonaws.chimesdkmessaging#ThrottledClientException":
|
|
3250
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
3251
|
-
case "UnauthorizedClientException":
|
|
3252
|
-
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3253
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
3254
|
-
default:
|
|
3255
|
-
const parsedBody = parsedOutput.body;
|
|
3256
|
-
return throwDefaultError({
|
|
3257
|
-
output,
|
|
3258
|
-
parsedBody,
|
|
3259
|
-
errorCode,
|
|
3260
|
-
});
|
|
3261
|
-
}
|
|
3262
|
-
};
|
|
3263
1458
|
export const de_UpdateChannelReadMarkerCommand = async (output, context) => {
|
|
3264
1459
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3265
|
-
return
|
|
1460
|
+
return de_CommandError(output, context);
|
|
3266
1461
|
}
|
|
3267
1462
|
const contents = map({
|
|
3268
1463
|
$metadata: deserializeMetadata(output),
|
|
@@ -3274,7 +1469,7 @@ export const de_UpdateChannelReadMarkerCommand = async (output, context) => {
|
|
|
3274
1469
|
Object.assign(contents, doc);
|
|
3275
1470
|
return contents;
|
|
3276
1471
|
};
|
|
3277
|
-
const
|
|
1472
|
+
const de_CommandError = async (output, context) => {
|
|
3278
1473
|
const parsedOutput = {
|
|
3279
1474
|
...output,
|
|
3280
1475
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3290,6 +1485,9 @@ const de_UpdateChannelReadMarkerCommandError = async (output, context) => {
|
|
|
3290
1485
|
case "ForbiddenException":
|
|
3291
1486
|
case "com.amazonaws.chimesdkmessaging#ForbiddenException":
|
|
3292
1487
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1488
|
+
case "NotFoundException":
|
|
1489
|
+
case "com.amazonaws.chimesdkmessaging#NotFoundException":
|
|
1490
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3293
1491
|
case "ServiceFailureException":
|
|
3294
1492
|
case "com.amazonaws.chimesdkmessaging#ServiceFailureException":
|
|
3295
1493
|
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
@@ -3302,6 +1500,9 @@ const de_UpdateChannelReadMarkerCommandError = async (output, context) => {
|
|
|
3302
1500
|
case "UnauthorizedClientException":
|
|
3303
1501
|
case "com.amazonaws.chimesdkmessaging#UnauthorizedClientException":
|
|
3304
1502
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1503
|
+
case "ResourceLimitExceededException":
|
|
1504
|
+
case "com.amazonaws.chimesdkmessaging#ResourceLimitExceededException":
|
|
1505
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
3305
1506
|
default:
|
|
3306
1507
|
const parsedBody = parsedOutput.body;
|
|
3307
1508
|
return throwDefaultError({
|