@aws-sdk/client-qbusiness 3.504.0 → 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.
@@ -802,7 +802,7 @@ export const se_UpdateWebExperienceCommand = async (input, context) => {
802
802
  };
803
803
  export const de_BatchDeleteDocumentCommand = async (output, context) => {
804
804
  if (output.statusCode !== 200 && output.statusCode >= 300) {
805
- return de_BatchDeleteDocumentCommandError(output, context);
805
+ return de_CommandError(output, context);
806
806
  }
807
807
  const contents = map({
808
808
  $metadata: deserializeMetadata(output),
@@ -814,43 +814,9 @@ export const de_BatchDeleteDocumentCommand = async (output, context) => {
814
814
  Object.assign(contents, doc);
815
815
  return contents;
816
816
  };
817
- const de_BatchDeleteDocumentCommandError = async (output, context) => {
818
- const parsedOutput = {
819
- ...output,
820
- body: await parseErrorBody(output.body, context),
821
- };
822
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
823
- switch (errorCode) {
824
- case "AccessDeniedException":
825
- case "com.amazonaws.qbusiness#AccessDeniedException":
826
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
827
- case "ConflictException":
828
- case "com.amazonaws.qbusiness#ConflictException":
829
- throw await de_ConflictExceptionRes(parsedOutput, context);
830
- case "InternalServerException":
831
- case "com.amazonaws.qbusiness#InternalServerException":
832
- throw await de_InternalServerExceptionRes(parsedOutput, context);
833
- case "ResourceNotFoundException":
834
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
835
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
836
- case "ThrottlingException":
837
- case "com.amazonaws.qbusiness#ThrottlingException":
838
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
839
- case "ValidationException":
840
- case "com.amazonaws.qbusiness#ValidationException":
841
- throw await de_ValidationExceptionRes(parsedOutput, context);
842
- default:
843
- const parsedBody = parsedOutput.body;
844
- return throwDefaultError({
845
- output,
846
- parsedBody,
847
- errorCode,
848
- });
849
- }
850
- };
851
817
  export const de_BatchPutDocumentCommand = async (output, context) => {
852
818
  if (output.statusCode !== 200 && output.statusCode >= 300) {
853
- return de_BatchPutDocumentCommandError(output, context);
819
+ return de_CommandError(output, context);
854
820
  }
855
821
  const contents = map({
856
822
  $metadata: deserializeMetadata(output),
@@ -862,46 +828,9 @@ export const de_BatchPutDocumentCommand = async (output, context) => {
862
828
  Object.assign(contents, doc);
863
829
  return contents;
864
830
  };
865
- const de_BatchPutDocumentCommandError = async (output, context) => {
866
- const parsedOutput = {
867
- ...output,
868
- body: await parseErrorBody(output.body, context),
869
- };
870
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
871
- switch (errorCode) {
872
- case "AccessDeniedException":
873
- case "com.amazonaws.qbusiness#AccessDeniedException":
874
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
875
- case "ConflictException":
876
- case "com.amazonaws.qbusiness#ConflictException":
877
- throw await de_ConflictExceptionRes(parsedOutput, context);
878
- case "InternalServerException":
879
- case "com.amazonaws.qbusiness#InternalServerException":
880
- throw await de_InternalServerExceptionRes(parsedOutput, context);
881
- case "ResourceNotFoundException":
882
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
883
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
884
- case "ServiceQuotaExceededException":
885
- case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
886
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
887
- case "ThrottlingException":
888
- case "com.amazonaws.qbusiness#ThrottlingException":
889
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
890
- case "ValidationException":
891
- case "com.amazonaws.qbusiness#ValidationException":
892
- throw await de_ValidationExceptionRes(parsedOutput, context);
893
- default:
894
- const parsedBody = parsedOutput.body;
895
- return throwDefaultError({
896
- output,
897
- parsedBody,
898
- errorCode,
899
- });
900
- }
901
- };
902
831
  export const de_ChatSyncCommand = async (output, context) => {
903
832
  if (output.statusCode !== 200 && output.statusCode >= 300) {
904
- return de_ChatSyncCommandError(output, context);
833
+ return de_CommandError(output, context);
905
834
  }
906
835
  const contents = map({
907
836
  $metadata: deserializeMetadata(output),
@@ -919,46 +848,9 @@ export const de_ChatSyncCommand = async (output, context) => {
919
848
  Object.assign(contents, doc);
920
849
  return contents;
921
850
  };
922
- const de_ChatSyncCommandError = async (output, context) => {
923
- const parsedOutput = {
924
- ...output,
925
- body: await parseErrorBody(output.body, context),
926
- };
927
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
928
- switch (errorCode) {
929
- case "AccessDeniedException":
930
- case "com.amazonaws.qbusiness#AccessDeniedException":
931
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
932
- case "ConflictException":
933
- case "com.amazonaws.qbusiness#ConflictException":
934
- throw await de_ConflictExceptionRes(parsedOutput, context);
935
- case "InternalServerException":
936
- case "com.amazonaws.qbusiness#InternalServerException":
937
- throw await de_InternalServerExceptionRes(parsedOutput, context);
938
- case "LicenseNotFoundException":
939
- case "com.amazonaws.qbusiness#LicenseNotFoundException":
940
- throw await de_LicenseNotFoundExceptionRes(parsedOutput, context);
941
- case "ResourceNotFoundException":
942
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
943
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
944
- case "ThrottlingException":
945
- case "com.amazonaws.qbusiness#ThrottlingException":
946
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
947
- case "ValidationException":
948
- case "com.amazonaws.qbusiness#ValidationException":
949
- throw await de_ValidationExceptionRes(parsedOutput, context);
950
- default:
951
- const parsedBody = parsedOutput.body;
952
- return throwDefaultError({
953
- output,
954
- parsedBody,
955
- errorCode,
956
- });
957
- }
958
- };
959
851
  export const de_CreateApplicationCommand = async (output, context) => {
960
852
  if (output.statusCode !== 200 && output.statusCode >= 300) {
961
- return de_CreateApplicationCommandError(output, context);
853
+ return de_CommandError(output, context);
962
854
  }
963
855
  const contents = map({
964
856
  $metadata: deserializeMetadata(output),
@@ -971,46 +863,9 @@ export const de_CreateApplicationCommand = async (output, context) => {
971
863
  Object.assign(contents, doc);
972
864
  return contents;
973
865
  };
974
- const de_CreateApplicationCommandError = async (output, context) => {
975
- const parsedOutput = {
976
- ...output,
977
- body: await parseErrorBody(output.body, context),
978
- };
979
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
980
- switch (errorCode) {
981
- case "AccessDeniedException":
982
- case "com.amazonaws.qbusiness#AccessDeniedException":
983
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
984
- case "ConflictException":
985
- case "com.amazonaws.qbusiness#ConflictException":
986
- throw await de_ConflictExceptionRes(parsedOutput, context);
987
- case "InternalServerException":
988
- case "com.amazonaws.qbusiness#InternalServerException":
989
- throw await de_InternalServerExceptionRes(parsedOutput, context);
990
- case "ResourceNotFoundException":
991
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
992
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
993
- case "ServiceQuotaExceededException":
994
- case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
995
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
996
- case "ThrottlingException":
997
- case "com.amazonaws.qbusiness#ThrottlingException":
998
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
999
- case "ValidationException":
1000
- case "com.amazonaws.qbusiness#ValidationException":
1001
- throw await de_ValidationExceptionRes(parsedOutput, context);
1002
- default:
1003
- const parsedBody = parsedOutput.body;
1004
- return throwDefaultError({
1005
- output,
1006
- parsedBody,
1007
- errorCode,
1008
- });
1009
- }
1010
- };
1011
866
  export const de_CreateDataSourceCommand = async (output, context) => {
1012
867
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1013
- return de_CreateDataSourceCommandError(output, context);
868
+ return de_CommandError(output, context);
1014
869
  }
1015
870
  const contents = map({
1016
871
  $metadata: deserializeMetadata(output),
@@ -1023,46 +878,9 @@ export const de_CreateDataSourceCommand = async (output, context) => {
1023
878
  Object.assign(contents, doc);
1024
879
  return contents;
1025
880
  };
1026
- const de_CreateDataSourceCommandError = async (output, context) => {
1027
- const parsedOutput = {
1028
- ...output,
1029
- body: await parseErrorBody(output.body, context),
1030
- };
1031
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1032
- switch (errorCode) {
1033
- case "AccessDeniedException":
1034
- case "com.amazonaws.qbusiness#AccessDeniedException":
1035
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1036
- case "ConflictException":
1037
- case "com.amazonaws.qbusiness#ConflictException":
1038
- throw await de_ConflictExceptionRes(parsedOutput, context);
1039
- case "InternalServerException":
1040
- case "com.amazonaws.qbusiness#InternalServerException":
1041
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1042
- case "ResourceNotFoundException":
1043
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
1044
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1045
- case "ServiceQuotaExceededException":
1046
- case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
1047
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1048
- case "ThrottlingException":
1049
- case "com.amazonaws.qbusiness#ThrottlingException":
1050
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1051
- case "ValidationException":
1052
- case "com.amazonaws.qbusiness#ValidationException":
1053
- throw await de_ValidationExceptionRes(parsedOutput, context);
1054
- default:
1055
- const parsedBody = parsedOutput.body;
1056
- return throwDefaultError({
1057
- output,
1058
- parsedBody,
1059
- errorCode,
1060
- });
1061
- }
1062
- };
1063
881
  export const de_CreateIndexCommand = async (output, context) => {
1064
882
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1065
- return de_CreateIndexCommandError(output, context);
883
+ return de_CommandError(output, context);
1066
884
  }
1067
885
  const contents = map({
1068
886
  $metadata: deserializeMetadata(output),
@@ -1075,46 +893,9 @@ export const de_CreateIndexCommand = async (output, context) => {
1075
893
  Object.assign(contents, doc);
1076
894
  return contents;
1077
895
  };
1078
- const de_CreateIndexCommandError = async (output, context) => {
1079
- const parsedOutput = {
1080
- ...output,
1081
- body: await parseErrorBody(output.body, context),
1082
- };
1083
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1084
- switch (errorCode) {
1085
- case "AccessDeniedException":
1086
- case "com.amazonaws.qbusiness#AccessDeniedException":
1087
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1088
- case "ConflictException":
1089
- case "com.amazonaws.qbusiness#ConflictException":
1090
- throw await de_ConflictExceptionRes(parsedOutput, context);
1091
- case "InternalServerException":
1092
- case "com.amazonaws.qbusiness#InternalServerException":
1093
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1094
- case "ResourceNotFoundException":
1095
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
1096
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1097
- case "ServiceQuotaExceededException":
1098
- case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
1099
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1100
- case "ThrottlingException":
1101
- case "com.amazonaws.qbusiness#ThrottlingException":
1102
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1103
- case "ValidationException":
1104
- case "com.amazonaws.qbusiness#ValidationException":
1105
- throw await de_ValidationExceptionRes(parsedOutput, context);
1106
- default:
1107
- const parsedBody = parsedOutput.body;
1108
- return throwDefaultError({
1109
- output,
1110
- parsedBody,
1111
- errorCode,
1112
- });
1113
- }
1114
- };
1115
896
  export const de_CreatePluginCommand = async (output, context) => {
1116
897
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1117
- return de_CreatePluginCommandError(output, context);
898
+ return de_CommandError(output, context);
1118
899
  }
1119
900
  const contents = map({
1120
901
  $metadata: deserializeMetadata(output),
@@ -1127,46 +908,9 @@ export const de_CreatePluginCommand = async (output, context) => {
1127
908
  Object.assign(contents, doc);
1128
909
  return contents;
1129
910
  };
1130
- const de_CreatePluginCommandError = async (output, context) => {
1131
- const parsedOutput = {
1132
- ...output,
1133
- body: await parseErrorBody(output.body, context),
1134
- };
1135
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1136
- switch (errorCode) {
1137
- case "AccessDeniedException":
1138
- case "com.amazonaws.qbusiness#AccessDeniedException":
1139
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1140
- case "ConflictException":
1141
- case "com.amazonaws.qbusiness#ConflictException":
1142
- throw await de_ConflictExceptionRes(parsedOutput, context);
1143
- case "InternalServerException":
1144
- case "com.amazonaws.qbusiness#InternalServerException":
1145
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1146
- case "ResourceNotFoundException":
1147
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
1148
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1149
- case "ServiceQuotaExceededException":
1150
- case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
1151
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1152
- case "ThrottlingException":
1153
- case "com.amazonaws.qbusiness#ThrottlingException":
1154
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1155
- case "ValidationException":
1156
- case "com.amazonaws.qbusiness#ValidationException":
1157
- throw await de_ValidationExceptionRes(parsedOutput, context);
1158
- default:
1159
- const parsedBody = parsedOutput.body;
1160
- return throwDefaultError({
1161
- output,
1162
- parsedBody,
1163
- errorCode,
1164
- });
1165
- }
1166
- };
1167
911
  export const de_CreateRetrieverCommand = async (output, context) => {
1168
912
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1169
- return de_CreateRetrieverCommandError(output, context);
913
+ return de_CommandError(output, context);
1170
914
  }
1171
915
  const contents = map({
1172
916
  $metadata: deserializeMetadata(output),
@@ -1179,46 +923,9 @@ export const de_CreateRetrieverCommand = async (output, context) => {
1179
923
  Object.assign(contents, doc);
1180
924
  return contents;
1181
925
  };
1182
- const de_CreateRetrieverCommandError = async (output, context) => {
1183
- const parsedOutput = {
1184
- ...output,
1185
- body: await parseErrorBody(output.body, context),
1186
- };
1187
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1188
- switch (errorCode) {
1189
- case "AccessDeniedException":
1190
- case "com.amazonaws.qbusiness#AccessDeniedException":
1191
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1192
- case "ConflictException":
1193
- case "com.amazonaws.qbusiness#ConflictException":
1194
- throw await de_ConflictExceptionRes(parsedOutput, context);
1195
- case "InternalServerException":
1196
- case "com.amazonaws.qbusiness#InternalServerException":
1197
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1198
- case "ResourceNotFoundException":
1199
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
1200
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1201
- case "ServiceQuotaExceededException":
1202
- case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
1203
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1204
- case "ThrottlingException":
1205
- case "com.amazonaws.qbusiness#ThrottlingException":
1206
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1207
- case "ValidationException":
1208
- case "com.amazonaws.qbusiness#ValidationException":
1209
- throw await de_ValidationExceptionRes(parsedOutput, context);
1210
- default:
1211
- const parsedBody = parsedOutput.body;
1212
- return throwDefaultError({
1213
- output,
1214
- parsedBody,
1215
- errorCode,
1216
- });
1217
- }
1218
- };
1219
926
  export const de_CreateUserCommand = async (output, context) => {
1220
927
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1221
- return de_CreateUserCommandError(output, context);
928
+ return de_CommandError(output, context);
1222
929
  }
1223
930
  const contents = map({
1224
931
  $metadata: deserializeMetadata(output),
@@ -1226,46 +933,9 @@ export const de_CreateUserCommand = async (output, context) => {
1226
933
  await collectBody(output.body, context);
1227
934
  return contents;
1228
935
  };
1229
- const de_CreateUserCommandError = async (output, context) => {
1230
- const parsedOutput = {
1231
- ...output,
1232
- body: await parseErrorBody(output.body, context),
1233
- };
1234
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1235
- switch (errorCode) {
1236
- case "AccessDeniedException":
1237
- case "com.amazonaws.qbusiness#AccessDeniedException":
1238
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1239
- case "ConflictException":
1240
- case "com.amazonaws.qbusiness#ConflictException":
1241
- throw await de_ConflictExceptionRes(parsedOutput, context);
1242
- case "InternalServerException":
1243
- case "com.amazonaws.qbusiness#InternalServerException":
1244
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1245
- case "ResourceNotFoundException":
1246
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
1247
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1248
- case "ServiceQuotaExceededException":
1249
- case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
1250
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1251
- case "ThrottlingException":
1252
- case "com.amazonaws.qbusiness#ThrottlingException":
1253
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1254
- case "ValidationException":
1255
- case "com.amazonaws.qbusiness#ValidationException":
1256
- throw await de_ValidationExceptionRes(parsedOutput, context);
1257
- default:
1258
- const parsedBody = parsedOutput.body;
1259
- return throwDefaultError({
1260
- output,
1261
- parsedBody,
1262
- errorCode,
1263
- });
1264
- }
1265
- };
1266
936
  export const de_CreateWebExperienceCommand = async (output, context) => {
1267
937
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1268
- return de_CreateWebExperienceCommandError(output, context);
938
+ return de_CommandError(output, context);
1269
939
  }
1270
940
  const contents = map({
1271
941
  $metadata: deserializeMetadata(output),
@@ -1278,46 +948,9 @@ export const de_CreateWebExperienceCommand = async (output, context) => {
1278
948
  Object.assign(contents, doc);
1279
949
  return contents;
1280
950
  };
1281
- const de_CreateWebExperienceCommandError = async (output, context) => {
1282
- const parsedOutput = {
1283
- ...output,
1284
- body: await parseErrorBody(output.body, context),
1285
- };
1286
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1287
- switch (errorCode) {
1288
- case "AccessDeniedException":
1289
- case "com.amazonaws.qbusiness#AccessDeniedException":
1290
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1291
- case "ConflictException":
1292
- case "com.amazonaws.qbusiness#ConflictException":
1293
- throw await de_ConflictExceptionRes(parsedOutput, context);
1294
- case "InternalServerException":
1295
- case "com.amazonaws.qbusiness#InternalServerException":
1296
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1297
- case "ResourceNotFoundException":
1298
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
1299
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1300
- case "ServiceQuotaExceededException":
1301
- case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
1302
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1303
- case "ThrottlingException":
1304
- case "com.amazonaws.qbusiness#ThrottlingException":
1305
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1306
- case "ValidationException":
1307
- case "com.amazonaws.qbusiness#ValidationException":
1308
- throw await de_ValidationExceptionRes(parsedOutput, context);
1309
- default:
1310
- const parsedBody = parsedOutput.body;
1311
- return throwDefaultError({
1312
- output,
1313
- parsedBody,
1314
- errorCode,
1315
- });
1316
- }
1317
- };
1318
951
  export const de_DeleteApplicationCommand = async (output, context) => {
1319
952
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1320
- return de_DeleteApplicationCommandError(output, context);
953
+ return de_CommandError(output, context);
1321
954
  }
1322
955
  const contents = map({
1323
956
  $metadata: deserializeMetadata(output),
@@ -1325,43 +958,9 @@ export const de_DeleteApplicationCommand = async (output, context) => {
1325
958
  await collectBody(output.body, context);
1326
959
  return contents;
1327
960
  };
1328
- const de_DeleteApplicationCommandError = async (output, context) => {
1329
- const parsedOutput = {
1330
- ...output,
1331
- body: await parseErrorBody(output.body, context),
1332
- };
1333
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1334
- switch (errorCode) {
1335
- case "AccessDeniedException":
1336
- case "com.amazonaws.qbusiness#AccessDeniedException":
1337
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1338
- case "ConflictException":
1339
- case "com.amazonaws.qbusiness#ConflictException":
1340
- throw await de_ConflictExceptionRes(parsedOutput, context);
1341
- case "InternalServerException":
1342
- case "com.amazonaws.qbusiness#InternalServerException":
1343
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1344
- case "ResourceNotFoundException":
1345
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
1346
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1347
- case "ThrottlingException":
1348
- case "com.amazonaws.qbusiness#ThrottlingException":
1349
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1350
- case "ValidationException":
1351
- case "com.amazonaws.qbusiness#ValidationException":
1352
- throw await de_ValidationExceptionRes(parsedOutput, context);
1353
- default:
1354
- const parsedBody = parsedOutput.body;
1355
- return throwDefaultError({
1356
- output,
1357
- parsedBody,
1358
- errorCode,
1359
- });
1360
- }
1361
- };
1362
961
  export const de_DeleteChatControlsConfigurationCommand = async (output, context) => {
1363
962
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1364
- return de_DeleteChatControlsConfigurationCommandError(output, context);
963
+ return de_CommandError(output, context);
1365
964
  }
1366
965
  const contents = map({
1367
966
  $metadata: deserializeMetadata(output),
@@ -1369,40 +968,19 @@ export const de_DeleteChatControlsConfigurationCommand = async (output, context)
1369
968
  await collectBody(output.body, context);
1370
969
  return contents;
1371
970
  };
1372
- const de_DeleteChatControlsConfigurationCommandError = async (output, context) => {
1373
- const parsedOutput = {
1374
- ...output,
1375
- body: await parseErrorBody(output.body, context),
1376
- };
1377
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1378
- switch (errorCode) {
1379
- case "AccessDeniedException":
1380
- case "com.amazonaws.qbusiness#AccessDeniedException":
1381
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1382
- case "InternalServerException":
1383
- case "com.amazonaws.qbusiness#InternalServerException":
1384
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1385
- case "ResourceNotFoundException":
1386
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
1387
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1388
- case "ThrottlingException":
1389
- case "com.amazonaws.qbusiness#ThrottlingException":
1390
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1391
- case "ValidationException":
1392
- case "com.amazonaws.qbusiness#ValidationException":
1393
- throw await de_ValidationExceptionRes(parsedOutput, context);
1394
- default:
1395
- const parsedBody = parsedOutput.body;
1396
- return throwDefaultError({
1397
- output,
1398
- parsedBody,
1399
- errorCode,
1400
- });
971
+ export const de_DeleteConversationCommand = async (output, context) => {
972
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
973
+ return de_CommandError(output, context);
1401
974
  }
975
+ const contents = map({
976
+ $metadata: deserializeMetadata(output),
977
+ });
978
+ await collectBody(output.body, context);
979
+ return contents;
1402
980
  };
1403
- export const de_DeleteConversationCommand = async (output, context) => {
981
+ export const de_DeleteDataSourceCommand = async (output, context) => {
1404
982
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1405
- return de_DeleteConversationCommandError(output, context);
983
+ return de_CommandError(output, context);
1406
984
  }
1407
985
  const contents = map({
1408
986
  $metadata: deserializeMetadata(output),
@@ -1410,43 +988,19 @@ export const de_DeleteConversationCommand = async (output, context) => {
1410
988
  await collectBody(output.body, context);
1411
989
  return contents;
1412
990
  };
1413
- const de_DeleteConversationCommandError = async (output, context) => {
1414
- const parsedOutput = {
1415
- ...output,
1416
- body: await parseErrorBody(output.body, context),
1417
- };
1418
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1419
- switch (errorCode) {
1420
- case "AccessDeniedException":
1421
- case "com.amazonaws.qbusiness#AccessDeniedException":
1422
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1423
- case "InternalServerException":
1424
- case "com.amazonaws.qbusiness#InternalServerException":
1425
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1426
- case "LicenseNotFoundException":
1427
- case "com.amazonaws.qbusiness#LicenseNotFoundException":
1428
- throw await de_LicenseNotFoundExceptionRes(parsedOutput, context);
1429
- case "ResourceNotFoundException":
1430
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
1431
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1432
- case "ThrottlingException":
1433
- case "com.amazonaws.qbusiness#ThrottlingException":
1434
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1435
- case "ValidationException":
1436
- case "com.amazonaws.qbusiness#ValidationException":
1437
- throw await de_ValidationExceptionRes(parsedOutput, context);
1438
- default:
1439
- const parsedBody = parsedOutput.body;
1440
- return throwDefaultError({
1441
- output,
1442
- parsedBody,
1443
- errorCode,
1444
- });
991
+ export const de_DeleteGroupCommand = async (output, context) => {
992
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
993
+ return de_CommandError(output, context);
1445
994
  }
995
+ const contents = map({
996
+ $metadata: deserializeMetadata(output),
997
+ });
998
+ await collectBody(output.body, context);
999
+ return contents;
1446
1000
  };
1447
- export const de_DeleteDataSourceCommand = async (output, context) => {
1001
+ export const de_DeleteIndexCommand = async (output, context) => {
1448
1002
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1449
- return de_DeleteDataSourceCommandError(output, context);
1003
+ return de_CommandError(output, context);
1450
1004
  }
1451
1005
  const contents = map({
1452
1006
  $metadata: deserializeMetadata(output),
@@ -1454,43 +1008,19 @@ export const de_DeleteDataSourceCommand = async (output, context) => {
1454
1008
  await collectBody(output.body, context);
1455
1009
  return contents;
1456
1010
  };
1457
- const de_DeleteDataSourceCommandError = async (output, context) => {
1458
- const parsedOutput = {
1459
- ...output,
1460
- body: await parseErrorBody(output.body, context),
1461
- };
1462
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1463
- switch (errorCode) {
1464
- case "AccessDeniedException":
1465
- case "com.amazonaws.qbusiness#AccessDeniedException":
1466
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1467
- case "ConflictException":
1468
- case "com.amazonaws.qbusiness#ConflictException":
1469
- throw await de_ConflictExceptionRes(parsedOutput, context);
1470
- case "InternalServerException":
1471
- case "com.amazonaws.qbusiness#InternalServerException":
1472
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1473
- case "ResourceNotFoundException":
1474
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
1475
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1476
- case "ThrottlingException":
1477
- case "com.amazonaws.qbusiness#ThrottlingException":
1478
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1479
- case "ValidationException":
1480
- case "com.amazonaws.qbusiness#ValidationException":
1481
- throw await de_ValidationExceptionRes(parsedOutput, context);
1482
- default:
1483
- const parsedBody = parsedOutput.body;
1484
- return throwDefaultError({
1485
- output,
1486
- parsedBody,
1487
- errorCode,
1488
- });
1011
+ export const de_DeletePluginCommand = async (output, context) => {
1012
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1013
+ return de_CommandError(output, context);
1489
1014
  }
1015
+ const contents = map({
1016
+ $metadata: deserializeMetadata(output),
1017
+ });
1018
+ await collectBody(output.body, context);
1019
+ return contents;
1490
1020
  };
1491
- export const de_DeleteGroupCommand = async (output, context) => {
1021
+ export const de_DeleteRetrieverCommand = async (output, context) => {
1492
1022
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1493
- return de_DeleteGroupCommandError(output, context);
1023
+ return de_CommandError(output, context);
1494
1024
  }
1495
1025
  const contents = map({
1496
1026
  $metadata: deserializeMetadata(output),
@@ -1498,175 +1028,9 @@ export const de_DeleteGroupCommand = async (output, context) => {
1498
1028
  await collectBody(output.body, context);
1499
1029
  return contents;
1500
1030
  };
1501
- const de_DeleteGroupCommandError = async (output, context) => {
1502
- const parsedOutput = {
1503
- ...output,
1504
- body: await parseErrorBody(output.body, context),
1505
- };
1506
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1507
- switch (errorCode) {
1508
- case "AccessDeniedException":
1509
- case "com.amazonaws.qbusiness#AccessDeniedException":
1510
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1511
- case "ConflictException":
1512
- case "com.amazonaws.qbusiness#ConflictException":
1513
- throw await de_ConflictExceptionRes(parsedOutput, context);
1514
- case "InternalServerException":
1515
- case "com.amazonaws.qbusiness#InternalServerException":
1516
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1517
- case "ResourceNotFoundException":
1518
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
1519
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1520
- case "ThrottlingException":
1521
- case "com.amazonaws.qbusiness#ThrottlingException":
1522
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1523
- case "ValidationException":
1524
- case "com.amazonaws.qbusiness#ValidationException":
1525
- throw await de_ValidationExceptionRes(parsedOutput, context);
1526
- default:
1527
- const parsedBody = parsedOutput.body;
1528
- return throwDefaultError({
1529
- output,
1530
- parsedBody,
1531
- errorCode,
1532
- });
1533
- }
1534
- };
1535
- export const de_DeleteIndexCommand = async (output, context) => {
1536
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1537
- return de_DeleteIndexCommandError(output, context);
1538
- }
1539
- const contents = map({
1540
- $metadata: deserializeMetadata(output),
1541
- });
1542
- await collectBody(output.body, context);
1543
- return contents;
1544
- };
1545
- const de_DeleteIndexCommandError = async (output, context) => {
1546
- const parsedOutput = {
1547
- ...output,
1548
- body: await parseErrorBody(output.body, context),
1549
- };
1550
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1551
- switch (errorCode) {
1552
- case "AccessDeniedException":
1553
- case "com.amazonaws.qbusiness#AccessDeniedException":
1554
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1555
- case "ConflictException":
1556
- case "com.amazonaws.qbusiness#ConflictException":
1557
- throw await de_ConflictExceptionRes(parsedOutput, context);
1558
- case "InternalServerException":
1559
- case "com.amazonaws.qbusiness#InternalServerException":
1560
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1561
- case "ResourceNotFoundException":
1562
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
1563
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1564
- case "ThrottlingException":
1565
- case "com.amazonaws.qbusiness#ThrottlingException":
1566
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1567
- case "ValidationException":
1568
- case "com.amazonaws.qbusiness#ValidationException":
1569
- throw await de_ValidationExceptionRes(parsedOutput, context);
1570
- default:
1571
- const parsedBody = parsedOutput.body;
1572
- return throwDefaultError({
1573
- output,
1574
- parsedBody,
1575
- errorCode,
1576
- });
1577
- }
1578
- };
1579
- export const de_DeletePluginCommand = async (output, context) => {
1580
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1581
- return de_DeletePluginCommandError(output, context);
1582
- }
1583
- const contents = map({
1584
- $metadata: deserializeMetadata(output),
1585
- });
1586
- await collectBody(output.body, context);
1587
- return contents;
1588
- };
1589
- const de_DeletePluginCommandError = async (output, context) => {
1590
- const parsedOutput = {
1591
- ...output,
1592
- body: await parseErrorBody(output.body, context),
1593
- };
1594
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1595
- switch (errorCode) {
1596
- case "AccessDeniedException":
1597
- case "com.amazonaws.qbusiness#AccessDeniedException":
1598
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1599
- case "ConflictException":
1600
- case "com.amazonaws.qbusiness#ConflictException":
1601
- throw await de_ConflictExceptionRes(parsedOutput, context);
1602
- case "InternalServerException":
1603
- case "com.amazonaws.qbusiness#InternalServerException":
1604
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1605
- case "ResourceNotFoundException":
1606
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
1607
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1608
- case "ThrottlingException":
1609
- case "com.amazonaws.qbusiness#ThrottlingException":
1610
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1611
- case "ValidationException":
1612
- case "com.amazonaws.qbusiness#ValidationException":
1613
- throw await de_ValidationExceptionRes(parsedOutput, context);
1614
- default:
1615
- const parsedBody = parsedOutput.body;
1616
- return throwDefaultError({
1617
- output,
1618
- parsedBody,
1619
- errorCode,
1620
- });
1621
- }
1622
- };
1623
- export const de_DeleteRetrieverCommand = async (output, context) => {
1624
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1625
- return de_DeleteRetrieverCommandError(output, context);
1626
- }
1627
- const contents = map({
1628
- $metadata: deserializeMetadata(output),
1629
- });
1630
- await collectBody(output.body, context);
1631
- return contents;
1632
- };
1633
- const de_DeleteRetrieverCommandError = async (output, context) => {
1634
- const parsedOutput = {
1635
- ...output,
1636
- body: await parseErrorBody(output.body, context),
1637
- };
1638
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1639
- switch (errorCode) {
1640
- case "AccessDeniedException":
1641
- case "com.amazonaws.qbusiness#AccessDeniedException":
1642
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1643
- case "ConflictException":
1644
- case "com.amazonaws.qbusiness#ConflictException":
1645
- throw await de_ConflictExceptionRes(parsedOutput, context);
1646
- case "InternalServerException":
1647
- case "com.amazonaws.qbusiness#InternalServerException":
1648
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1649
- case "ResourceNotFoundException":
1650
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
1651
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1652
- case "ThrottlingException":
1653
- case "com.amazonaws.qbusiness#ThrottlingException":
1654
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1655
- case "ValidationException":
1656
- case "com.amazonaws.qbusiness#ValidationException":
1657
- throw await de_ValidationExceptionRes(parsedOutput, context);
1658
- default:
1659
- const parsedBody = parsedOutput.body;
1660
- return throwDefaultError({
1661
- output,
1662
- parsedBody,
1663
- errorCode,
1664
- });
1665
- }
1666
- };
1667
1031
  export const de_DeleteUserCommand = async (output, context) => {
1668
1032
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1669
- return de_DeleteUserCommandError(output, context);
1033
+ return de_CommandError(output, context);
1670
1034
  }
1671
1035
  const contents = map({
1672
1036
  $metadata: deserializeMetadata(output),
@@ -1674,43 +1038,9 @@ export const de_DeleteUserCommand = async (output, context) => {
1674
1038
  await collectBody(output.body, context);
1675
1039
  return contents;
1676
1040
  };
1677
- const de_DeleteUserCommandError = async (output, context) => {
1678
- const parsedOutput = {
1679
- ...output,
1680
- body: await parseErrorBody(output.body, context),
1681
- };
1682
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1683
- switch (errorCode) {
1684
- case "AccessDeniedException":
1685
- case "com.amazonaws.qbusiness#AccessDeniedException":
1686
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1687
- case "ConflictException":
1688
- case "com.amazonaws.qbusiness#ConflictException":
1689
- throw await de_ConflictExceptionRes(parsedOutput, context);
1690
- case "InternalServerException":
1691
- case "com.amazonaws.qbusiness#InternalServerException":
1692
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1693
- case "ResourceNotFoundException":
1694
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
1695
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1696
- case "ThrottlingException":
1697
- case "com.amazonaws.qbusiness#ThrottlingException":
1698
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1699
- case "ValidationException":
1700
- case "com.amazonaws.qbusiness#ValidationException":
1701
- throw await de_ValidationExceptionRes(parsedOutput, context);
1702
- default:
1703
- const parsedBody = parsedOutput.body;
1704
- return throwDefaultError({
1705
- output,
1706
- parsedBody,
1707
- errorCode,
1708
- });
1709
- }
1710
- };
1711
1041
  export const de_DeleteWebExperienceCommand = async (output, context) => {
1712
1042
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1713
- return de_DeleteWebExperienceCommandError(output, context);
1043
+ return de_CommandError(output, context);
1714
1044
  }
1715
1045
  const contents = map({
1716
1046
  $metadata: deserializeMetadata(output),
@@ -1718,43 +1048,9 @@ export const de_DeleteWebExperienceCommand = async (output, context) => {
1718
1048
  await collectBody(output.body, context);
1719
1049
  return contents;
1720
1050
  };
1721
- const de_DeleteWebExperienceCommandError = async (output, context) => {
1722
- const parsedOutput = {
1723
- ...output,
1724
- body: await parseErrorBody(output.body, context),
1725
- };
1726
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1727
- switch (errorCode) {
1728
- case "AccessDeniedException":
1729
- case "com.amazonaws.qbusiness#AccessDeniedException":
1730
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1731
- case "ConflictException":
1732
- case "com.amazonaws.qbusiness#ConflictException":
1733
- throw await de_ConflictExceptionRes(parsedOutput, context);
1734
- case "InternalServerException":
1735
- case "com.amazonaws.qbusiness#InternalServerException":
1736
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1737
- case "ResourceNotFoundException":
1738
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
1739
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1740
- case "ThrottlingException":
1741
- case "com.amazonaws.qbusiness#ThrottlingException":
1742
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1743
- case "ValidationException":
1744
- case "com.amazonaws.qbusiness#ValidationException":
1745
- throw await de_ValidationExceptionRes(parsedOutput, context);
1746
- default:
1747
- const parsedBody = parsedOutput.body;
1748
- return throwDefaultError({
1749
- output,
1750
- parsedBody,
1751
- errorCode,
1752
- });
1753
- }
1754
- };
1755
1051
  export const de_GetApplicationCommand = async (output, context) => {
1756
1052
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1757
- return de_GetApplicationCommandError(output, context);
1053
+ return de_CommandError(output, context);
1758
1054
  }
1759
1055
  const contents = map({
1760
1056
  $metadata: deserializeMetadata(output),
@@ -1776,40 +1072,9 @@ export const de_GetApplicationCommand = async (output, context) => {
1776
1072
  Object.assign(contents, doc);
1777
1073
  return contents;
1778
1074
  };
1779
- const de_GetApplicationCommandError = async (output, context) => {
1780
- const parsedOutput = {
1781
- ...output,
1782
- body: await parseErrorBody(output.body, context),
1783
- };
1784
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1785
- switch (errorCode) {
1786
- case "AccessDeniedException":
1787
- case "com.amazonaws.qbusiness#AccessDeniedException":
1788
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1789
- case "InternalServerException":
1790
- case "com.amazonaws.qbusiness#InternalServerException":
1791
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1792
- case "ResourceNotFoundException":
1793
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
1794
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1795
- case "ThrottlingException":
1796
- case "com.amazonaws.qbusiness#ThrottlingException":
1797
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1798
- case "ValidationException":
1799
- case "com.amazonaws.qbusiness#ValidationException":
1800
- throw await de_ValidationExceptionRes(parsedOutput, context);
1801
- default:
1802
- const parsedBody = parsedOutput.body;
1803
- return throwDefaultError({
1804
- output,
1805
- parsedBody,
1806
- errorCode,
1807
- });
1808
- }
1809
- };
1810
1075
  export const de_GetChatControlsConfigurationCommand = async (output, context) => {
1811
1076
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1812
- return de_GetChatControlsConfigurationCommandError(output, context);
1077
+ return de_CommandError(output, context);
1813
1078
  }
1814
1079
  const contents = map({
1815
1080
  $metadata: deserializeMetadata(output),
@@ -1824,40 +1089,9 @@ export const de_GetChatControlsConfigurationCommand = async (output, context) =>
1824
1089
  Object.assign(contents, doc);
1825
1090
  return contents;
1826
1091
  };
1827
- const de_GetChatControlsConfigurationCommandError = async (output, context) => {
1828
- const parsedOutput = {
1829
- ...output,
1830
- body: await parseErrorBody(output.body, context),
1831
- };
1832
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1833
- switch (errorCode) {
1834
- case "AccessDeniedException":
1835
- case "com.amazonaws.qbusiness#AccessDeniedException":
1836
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1837
- case "InternalServerException":
1838
- case "com.amazonaws.qbusiness#InternalServerException":
1839
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1840
- case "ResourceNotFoundException":
1841
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
1842
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1843
- case "ThrottlingException":
1844
- case "com.amazonaws.qbusiness#ThrottlingException":
1845
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1846
- case "ValidationException":
1847
- case "com.amazonaws.qbusiness#ValidationException":
1848
- throw await de_ValidationExceptionRes(parsedOutput, context);
1849
- default:
1850
- const parsedBody = parsedOutput.body;
1851
- return throwDefaultError({
1852
- output,
1853
- parsedBody,
1854
- errorCode,
1855
- });
1856
- }
1857
- };
1858
1092
  export const de_GetDataSourceCommand = async (output, context) => {
1859
1093
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1860
- return de_GetDataSourceCommandError(output, context);
1094
+ return de_CommandError(output, context);
1861
1095
  }
1862
1096
  const contents = map({
1863
1097
  $metadata: deserializeMetadata(output),
@@ -1884,40 +1118,9 @@ export const de_GetDataSourceCommand = async (output, context) => {
1884
1118
  Object.assign(contents, doc);
1885
1119
  return contents;
1886
1120
  };
1887
- const de_GetDataSourceCommandError = async (output, context) => {
1888
- const parsedOutput = {
1889
- ...output,
1890
- body: await parseErrorBody(output.body, context),
1891
- };
1892
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1893
- switch (errorCode) {
1894
- case "AccessDeniedException":
1895
- case "com.amazonaws.qbusiness#AccessDeniedException":
1896
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1897
- case "InternalServerException":
1898
- case "com.amazonaws.qbusiness#InternalServerException":
1899
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1900
- case "ResourceNotFoundException":
1901
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
1902
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1903
- case "ThrottlingException":
1904
- case "com.amazonaws.qbusiness#ThrottlingException":
1905
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1906
- case "ValidationException":
1907
- case "com.amazonaws.qbusiness#ValidationException":
1908
- throw await de_ValidationExceptionRes(parsedOutput, context);
1909
- default:
1910
- const parsedBody = parsedOutput.body;
1911
- return throwDefaultError({
1912
- output,
1913
- parsedBody,
1914
- errorCode,
1915
- });
1916
- }
1917
- };
1918
1121
  export const de_GetGroupCommand = async (output, context) => {
1919
1122
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1920
- return de_GetGroupCommandError(output, context);
1123
+ return de_CommandError(output, context);
1921
1124
  }
1922
1125
  const contents = map({
1923
1126
  $metadata: deserializeMetadata(output),
@@ -1930,43 +1133,9 @@ export const de_GetGroupCommand = async (output, context) => {
1930
1133
  Object.assign(contents, doc);
1931
1134
  return contents;
1932
1135
  };
1933
- const de_GetGroupCommandError = async (output, context) => {
1934
- const parsedOutput = {
1935
- ...output,
1936
- body: await parseErrorBody(output.body, context),
1937
- };
1938
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1939
- switch (errorCode) {
1940
- case "AccessDeniedException":
1941
- case "com.amazonaws.qbusiness#AccessDeniedException":
1942
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1943
- case "ConflictException":
1944
- case "com.amazonaws.qbusiness#ConflictException":
1945
- throw await de_ConflictExceptionRes(parsedOutput, context);
1946
- case "InternalServerException":
1947
- case "com.amazonaws.qbusiness#InternalServerException":
1948
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1949
- case "ResourceNotFoundException":
1950
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
1951
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1952
- case "ThrottlingException":
1953
- case "com.amazonaws.qbusiness#ThrottlingException":
1954
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1955
- case "ValidationException":
1956
- case "com.amazonaws.qbusiness#ValidationException":
1957
- throw await de_ValidationExceptionRes(parsedOutput, context);
1958
- default:
1959
- const parsedBody = parsedOutput.body;
1960
- return throwDefaultError({
1961
- output,
1962
- parsedBody,
1963
- errorCode,
1964
- });
1965
- }
1966
- };
1967
1136
  export const de_GetIndexCommand = async (output, context) => {
1968
1137
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1969
- return de_GetIndexCommandError(output, context);
1138
+ return de_CommandError(output, context);
1970
1139
  }
1971
1140
  const contents = map({
1972
1141
  $metadata: deserializeMetadata(output),
@@ -1989,40 +1158,9 @@ export const de_GetIndexCommand = async (output, context) => {
1989
1158
  Object.assign(contents, doc);
1990
1159
  return contents;
1991
1160
  };
1992
- const de_GetIndexCommandError = async (output, context) => {
1993
- const parsedOutput = {
1994
- ...output,
1995
- body: await parseErrorBody(output.body, context),
1996
- };
1997
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1998
- switch (errorCode) {
1999
- case "AccessDeniedException":
2000
- case "com.amazonaws.qbusiness#AccessDeniedException":
2001
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2002
- case "InternalServerException":
2003
- case "com.amazonaws.qbusiness#InternalServerException":
2004
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2005
- case "ResourceNotFoundException":
2006
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
2007
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2008
- case "ThrottlingException":
2009
- case "com.amazonaws.qbusiness#ThrottlingException":
2010
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2011
- case "ValidationException":
2012
- case "com.amazonaws.qbusiness#ValidationException":
2013
- throw await de_ValidationExceptionRes(parsedOutput, context);
2014
- default:
2015
- const parsedBody = parsedOutput.body;
2016
- return throwDefaultError({
2017
- output,
2018
- parsedBody,
2019
- errorCode,
2020
- });
2021
- }
2022
- };
2023
1161
  export const de_GetPluginCommand = async (output, context) => {
2024
1162
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2025
- return de_GetPluginCommandError(output, context);
1163
+ return de_CommandError(output, context);
2026
1164
  }
2027
1165
  const contents = map({
2028
1166
  $metadata: deserializeMetadata(output),
@@ -2041,42 +1179,11 @@ export const de_GetPluginCommand = async (output, context) => {
2041
1179
  updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2042
1180
  });
2043
1181
  Object.assign(contents, doc);
2044
- return contents;
2045
- };
2046
- const de_GetPluginCommandError = async (output, context) => {
2047
- const parsedOutput = {
2048
- ...output,
2049
- body: await parseErrorBody(output.body, context),
2050
- };
2051
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2052
- switch (errorCode) {
2053
- case "AccessDeniedException":
2054
- case "com.amazonaws.qbusiness#AccessDeniedException":
2055
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2056
- case "InternalServerException":
2057
- case "com.amazonaws.qbusiness#InternalServerException":
2058
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2059
- case "ResourceNotFoundException":
2060
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
2061
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2062
- case "ThrottlingException":
2063
- case "com.amazonaws.qbusiness#ThrottlingException":
2064
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2065
- case "ValidationException":
2066
- case "com.amazonaws.qbusiness#ValidationException":
2067
- throw await de_ValidationExceptionRes(parsedOutput, context);
2068
- default:
2069
- const parsedBody = parsedOutput.body;
2070
- return throwDefaultError({
2071
- output,
2072
- parsedBody,
2073
- errorCode,
2074
- });
2075
- }
1182
+ return contents;
2076
1183
  };
2077
1184
  export const de_GetRetrieverCommand = async (output, context) => {
2078
1185
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2079
- return de_GetRetrieverCommandError(output, context);
1186
+ return de_CommandError(output, context);
2080
1187
  }
2081
1188
  const contents = map({
2082
1189
  $metadata: deserializeMetadata(output),
@@ -2097,40 +1204,9 @@ export const de_GetRetrieverCommand = async (output, context) => {
2097
1204
  Object.assign(contents, doc);
2098
1205
  return contents;
2099
1206
  };
2100
- const de_GetRetrieverCommandError = async (output, context) => {
2101
- const parsedOutput = {
2102
- ...output,
2103
- body: await parseErrorBody(output.body, context),
2104
- };
2105
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2106
- switch (errorCode) {
2107
- case "AccessDeniedException":
2108
- case "com.amazonaws.qbusiness#AccessDeniedException":
2109
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2110
- case "InternalServerException":
2111
- case "com.amazonaws.qbusiness#InternalServerException":
2112
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2113
- case "ResourceNotFoundException":
2114
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
2115
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2116
- case "ThrottlingException":
2117
- case "com.amazonaws.qbusiness#ThrottlingException":
2118
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2119
- case "ValidationException":
2120
- case "com.amazonaws.qbusiness#ValidationException":
2121
- throw await de_ValidationExceptionRes(parsedOutput, context);
2122
- default:
2123
- const parsedBody = parsedOutput.body;
2124
- return throwDefaultError({
2125
- output,
2126
- parsedBody,
2127
- errorCode,
2128
- });
2129
- }
2130
- };
2131
1207
  export const de_GetUserCommand = async (output, context) => {
2132
1208
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2133
- return de_GetUserCommandError(output, context);
1209
+ return de_CommandError(output, context);
2134
1210
  }
2135
1211
  const contents = map({
2136
1212
  $metadata: deserializeMetadata(output),
@@ -2142,43 +1218,9 @@ export const de_GetUserCommand = async (output, context) => {
2142
1218
  Object.assign(contents, doc);
2143
1219
  return contents;
2144
1220
  };
2145
- const de_GetUserCommandError = async (output, context) => {
2146
- const parsedOutput = {
2147
- ...output,
2148
- body: await parseErrorBody(output.body, context),
2149
- };
2150
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2151
- switch (errorCode) {
2152
- case "AccessDeniedException":
2153
- case "com.amazonaws.qbusiness#AccessDeniedException":
2154
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2155
- case "ConflictException":
2156
- case "com.amazonaws.qbusiness#ConflictException":
2157
- throw await de_ConflictExceptionRes(parsedOutput, context);
2158
- case "InternalServerException":
2159
- case "com.amazonaws.qbusiness#InternalServerException":
2160
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2161
- case "ResourceNotFoundException":
2162
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
2163
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2164
- case "ThrottlingException":
2165
- case "com.amazonaws.qbusiness#ThrottlingException":
2166
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2167
- case "ValidationException":
2168
- case "com.amazonaws.qbusiness#ValidationException":
2169
- throw await de_ValidationExceptionRes(parsedOutput, context);
2170
- default:
2171
- const parsedBody = parsedOutput.body;
2172
- return throwDefaultError({
2173
- output,
2174
- parsedBody,
2175
- errorCode,
2176
- });
2177
- }
2178
- };
2179
1221
  export const de_GetWebExperienceCommand = async (output, context) => {
2180
1222
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2181
- return de_GetWebExperienceCommandError(output, context);
1223
+ return de_CommandError(output, context);
2182
1224
  }
2183
1225
  const contents = map({
2184
1226
  $metadata: deserializeMetadata(output),
@@ -2202,40 +1244,9 @@ export const de_GetWebExperienceCommand = async (output, context) => {
2202
1244
  Object.assign(contents, doc);
2203
1245
  return contents;
2204
1246
  };
2205
- const de_GetWebExperienceCommandError = async (output, context) => {
2206
- const parsedOutput = {
2207
- ...output,
2208
- body: await parseErrorBody(output.body, context),
2209
- };
2210
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2211
- switch (errorCode) {
2212
- case "AccessDeniedException":
2213
- case "com.amazonaws.qbusiness#AccessDeniedException":
2214
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2215
- case "InternalServerException":
2216
- case "com.amazonaws.qbusiness#InternalServerException":
2217
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2218
- case "ResourceNotFoundException":
2219
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
2220
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2221
- case "ThrottlingException":
2222
- case "com.amazonaws.qbusiness#ThrottlingException":
2223
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2224
- case "ValidationException":
2225
- case "com.amazonaws.qbusiness#ValidationException":
2226
- throw await de_ValidationExceptionRes(parsedOutput, context);
2227
- default:
2228
- const parsedBody = parsedOutput.body;
2229
- return throwDefaultError({
2230
- output,
2231
- parsedBody,
2232
- errorCode,
2233
- });
2234
- }
2235
- };
2236
1247
  export const de_ListApplicationsCommand = async (output, context) => {
2237
1248
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2238
- return de_ListApplicationsCommandError(output, context);
1249
+ return de_CommandError(output, context);
2239
1250
  }
2240
1251
  const contents = map({
2241
1252
  $metadata: deserializeMetadata(output),
@@ -2248,505 +1259,158 @@ export const de_ListApplicationsCommand = async (output, context) => {
2248
1259
  Object.assign(contents, doc);
2249
1260
  return contents;
2250
1261
  };
2251
- const de_ListApplicationsCommandError = async (output, context) => {
2252
- const parsedOutput = {
2253
- ...output,
2254
- body: await parseErrorBody(output.body, context),
2255
- };
2256
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2257
- switch (errorCode) {
2258
- case "AccessDeniedException":
2259
- case "com.amazonaws.qbusiness#AccessDeniedException":
2260
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2261
- case "InternalServerException":
2262
- case "com.amazonaws.qbusiness#InternalServerException":
2263
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2264
- case "ThrottlingException":
2265
- case "com.amazonaws.qbusiness#ThrottlingException":
2266
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2267
- case "ValidationException":
2268
- case "com.amazonaws.qbusiness#ValidationException":
2269
- throw await de_ValidationExceptionRes(parsedOutput, context);
2270
- default:
2271
- const parsedBody = parsedOutput.body;
2272
- return throwDefaultError({
2273
- output,
2274
- parsedBody,
2275
- errorCode,
2276
- });
2277
- }
2278
- };
2279
- export const de_ListConversationsCommand = async (output, context) => {
2280
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2281
- return de_ListConversationsCommandError(output, context);
2282
- }
2283
- const contents = map({
2284
- $metadata: deserializeMetadata(output),
2285
- });
2286
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2287
- const doc = take(data, {
2288
- conversations: (_) => de_Conversations(_, context),
2289
- nextToken: __expectString,
2290
- });
2291
- Object.assign(contents, doc);
2292
- return contents;
2293
- };
2294
- const de_ListConversationsCommandError = async (output, context) => {
2295
- const parsedOutput = {
2296
- ...output,
2297
- body: await parseErrorBody(output.body, context),
2298
- };
2299
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2300
- switch (errorCode) {
2301
- case "AccessDeniedException":
2302
- case "com.amazonaws.qbusiness#AccessDeniedException":
2303
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2304
- case "InternalServerException":
2305
- case "com.amazonaws.qbusiness#InternalServerException":
2306
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2307
- case "LicenseNotFoundException":
2308
- case "com.amazonaws.qbusiness#LicenseNotFoundException":
2309
- throw await de_LicenseNotFoundExceptionRes(parsedOutput, context);
2310
- case "ResourceNotFoundException":
2311
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
2312
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2313
- case "ThrottlingException":
2314
- case "com.amazonaws.qbusiness#ThrottlingException":
2315
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2316
- case "ValidationException":
2317
- case "com.amazonaws.qbusiness#ValidationException":
2318
- throw await de_ValidationExceptionRes(parsedOutput, context);
2319
- default:
2320
- const parsedBody = parsedOutput.body;
2321
- return throwDefaultError({
2322
- output,
2323
- parsedBody,
2324
- errorCode,
2325
- });
2326
- }
2327
- };
2328
- export const de_ListDataSourcesCommand = async (output, context) => {
2329
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2330
- return de_ListDataSourcesCommandError(output, context);
2331
- }
2332
- const contents = map({
2333
- $metadata: deserializeMetadata(output),
2334
- });
2335
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2336
- const doc = take(data, {
2337
- dataSources: (_) => de_DataSources(_, context),
2338
- nextToken: __expectString,
2339
- });
2340
- Object.assign(contents, doc);
2341
- return contents;
2342
- };
2343
- const de_ListDataSourcesCommandError = async (output, context) => {
2344
- const parsedOutput = {
2345
- ...output,
2346
- body: await parseErrorBody(output.body, context),
2347
- };
2348
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2349
- switch (errorCode) {
2350
- case "AccessDeniedException":
2351
- case "com.amazonaws.qbusiness#AccessDeniedException":
2352
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2353
- case "InternalServerException":
2354
- case "com.amazonaws.qbusiness#InternalServerException":
2355
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2356
- case "ResourceNotFoundException":
2357
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
2358
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2359
- case "ThrottlingException":
2360
- case "com.amazonaws.qbusiness#ThrottlingException":
2361
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2362
- case "ValidationException":
2363
- case "com.amazonaws.qbusiness#ValidationException":
2364
- throw await de_ValidationExceptionRes(parsedOutput, context);
2365
- default:
2366
- const parsedBody = parsedOutput.body;
2367
- return throwDefaultError({
2368
- output,
2369
- parsedBody,
2370
- errorCode,
2371
- });
2372
- }
2373
- };
2374
- export const de_ListDataSourceSyncJobsCommand = async (output, context) => {
2375
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2376
- return de_ListDataSourceSyncJobsCommandError(output, context);
2377
- }
2378
- const contents = map({
2379
- $metadata: deserializeMetadata(output),
2380
- });
2381
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2382
- const doc = take(data, {
2383
- history: (_) => de_DataSourceSyncJobs(_, context),
2384
- nextToken: __expectString,
2385
- });
2386
- Object.assign(contents, doc);
2387
- return contents;
2388
- };
2389
- const de_ListDataSourceSyncJobsCommandError = async (output, context) => {
2390
- const parsedOutput = {
2391
- ...output,
2392
- body: await parseErrorBody(output.body, context),
2393
- };
2394
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2395
- switch (errorCode) {
2396
- case "AccessDeniedException":
2397
- case "com.amazonaws.qbusiness#AccessDeniedException":
2398
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2399
- case "InternalServerException":
2400
- case "com.amazonaws.qbusiness#InternalServerException":
2401
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2402
- case "ResourceNotFoundException":
2403
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
2404
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2405
- case "ThrottlingException":
2406
- case "com.amazonaws.qbusiness#ThrottlingException":
2407
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2408
- case "ValidationException":
2409
- case "com.amazonaws.qbusiness#ValidationException":
2410
- throw await de_ValidationExceptionRes(parsedOutput, context);
2411
- default:
2412
- const parsedBody = parsedOutput.body;
2413
- return throwDefaultError({
2414
- output,
2415
- parsedBody,
2416
- errorCode,
2417
- });
2418
- }
2419
- };
2420
- export const de_ListDocumentsCommand = async (output, context) => {
1262
+ export const de_ListConversationsCommand = async (output, context) => {
2421
1263
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2422
- return de_ListDocumentsCommandError(output, context);
1264
+ return de_CommandError(output, context);
2423
1265
  }
2424
1266
  const contents = map({
2425
1267
  $metadata: deserializeMetadata(output),
2426
1268
  });
2427
1269
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2428
1270
  const doc = take(data, {
2429
- documentDetailList: (_) => de_DocumentDetailList(_, context),
1271
+ conversations: (_) => de_Conversations(_, context),
2430
1272
  nextToken: __expectString,
2431
1273
  });
2432
1274
  Object.assign(contents, doc);
2433
1275
  return contents;
2434
1276
  };
2435
- const de_ListDocumentsCommandError = async (output, context) => {
2436
- const parsedOutput = {
2437
- ...output,
2438
- body: await parseErrorBody(output.body, context),
2439
- };
2440
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2441
- switch (errorCode) {
2442
- case "AccessDeniedException":
2443
- case "com.amazonaws.qbusiness#AccessDeniedException":
2444
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2445
- case "InternalServerException":
2446
- case "com.amazonaws.qbusiness#InternalServerException":
2447
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2448
- case "ResourceNotFoundException":
2449
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
2450
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2451
- case "ThrottlingException":
2452
- case "com.amazonaws.qbusiness#ThrottlingException":
2453
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2454
- case "ValidationException":
2455
- case "com.amazonaws.qbusiness#ValidationException":
2456
- throw await de_ValidationExceptionRes(parsedOutput, context);
2457
- default:
2458
- const parsedBody = parsedOutput.body;
2459
- return throwDefaultError({
2460
- output,
2461
- parsedBody,
2462
- errorCode,
2463
- });
2464
- }
2465
- };
2466
- export const de_ListGroupsCommand = async (output, context) => {
1277
+ export const de_ListDataSourcesCommand = async (output, context) => {
2467
1278
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2468
- return de_ListGroupsCommandError(output, context);
1279
+ return de_CommandError(output, context);
2469
1280
  }
2470
1281
  const contents = map({
2471
1282
  $metadata: deserializeMetadata(output),
2472
1283
  });
2473
1284
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2474
1285
  const doc = take(data, {
2475
- items: _json,
1286
+ dataSources: (_) => de_DataSources(_, context),
2476
1287
  nextToken: __expectString,
2477
1288
  });
2478
1289
  Object.assign(contents, doc);
2479
1290
  return contents;
2480
1291
  };
2481
- const de_ListGroupsCommandError = async (output, context) => {
2482
- const parsedOutput = {
2483
- ...output,
2484
- body: await parseErrorBody(output.body, context),
2485
- };
2486
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2487
- switch (errorCode) {
2488
- case "AccessDeniedException":
2489
- case "com.amazonaws.qbusiness#AccessDeniedException":
2490
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2491
- case "ConflictException":
2492
- case "com.amazonaws.qbusiness#ConflictException":
2493
- throw await de_ConflictExceptionRes(parsedOutput, context);
2494
- case "InternalServerException":
2495
- case "com.amazonaws.qbusiness#InternalServerException":
2496
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2497
- case "ResourceNotFoundException":
2498
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
2499
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2500
- case "ThrottlingException":
2501
- case "com.amazonaws.qbusiness#ThrottlingException":
2502
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2503
- case "ValidationException":
2504
- case "com.amazonaws.qbusiness#ValidationException":
2505
- throw await de_ValidationExceptionRes(parsedOutput, context);
2506
- default:
2507
- const parsedBody = parsedOutput.body;
2508
- return throwDefaultError({
2509
- output,
2510
- parsedBody,
2511
- errorCode,
2512
- });
2513
- }
2514
- };
2515
- export const de_ListIndicesCommand = async (output, context) => {
1292
+ export const de_ListDataSourceSyncJobsCommand = async (output, context) => {
2516
1293
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2517
- return de_ListIndicesCommandError(output, context);
1294
+ return de_CommandError(output, context);
2518
1295
  }
2519
1296
  const contents = map({
2520
1297
  $metadata: deserializeMetadata(output),
2521
1298
  });
2522
1299
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2523
1300
  const doc = take(data, {
2524
- indices: (_) => de_Indices(_, context),
1301
+ history: (_) => de_DataSourceSyncJobs(_, context),
2525
1302
  nextToken: __expectString,
2526
1303
  });
2527
1304
  Object.assign(contents, doc);
2528
1305
  return contents;
2529
1306
  };
2530
- const de_ListIndicesCommandError = async (output, context) => {
2531
- const parsedOutput = {
2532
- ...output,
2533
- body: await parseErrorBody(output.body, context),
2534
- };
2535
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2536
- switch (errorCode) {
2537
- case "AccessDeniedException":
2538
- case "com.amazonaws.qbusiness#AccessDeniedException":
2539
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2540
- case "InternalServerException":
2541
- case "com.amazonaws.qbusiness#InternalServerException":
2542
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2543
- case "ResourceNotFoundException":
2544
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
2545
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2546
- case "ThrottlingException":
2547
- case "com.amazonaws.qbusiness#ThrottlingException":
2548
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2549
- case "ValidationException":
2550
- case "com.amazonaws.qbusiness#ValidationException":
2551
- throw await de_ValidationExceptionRes(parsedOutput, context);
2552
- default:
2553
- const parsedBody = parsedOutput.body;
2554
- return throwDefaultError({
2555
- output,
2556
- parsedBody,
2557
- errorCode,
2558
- });
2559
- }
2560
- };
2561
- export const de_ListMessagesCommand = async (output, context) => {
1307
+ export const de_ListDocumentsCommand = async (output, context) => {
2562
1308
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2563
- return de_ListMessagesCommandError(output, context);
1309
+ return de_CommandError(output, context);
2564
1310
  }
2565
1311
  const contents = map({
2566
1312
  $metadata: deserializeMetadata(output),
2567
1313
  });
2568
1314
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2569
1315
  const doc = take(data, {
2570
- messages: (_) => de_Messages(_, context),
1316
+ documentDetailList: (_) => de_DocumentDetailList(_, context),
2571
1317
  nextToken: __expectString,
2572
1318
  });
2573
1319
  Object.assign(contents, doc);
2574
1320
  return contents;
2575
1321
  };
2576
- const de_ListMessagesCommandError = async (output, context) => {
2577
- const parsedOutput = {
2578
- ...output,
2579
- body: await parseErrorBody(output.body, context),
2580
- };
2581
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2582
- switch (errorCode) {
2583
- case "AccessDeniedException":
2584
- case "com.amazonaws.qbusiness#AccessDeniedException":
2585
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2586
- case "InternalServerException":
2587
- case "com.amazonaws.qbusiness#InternalServerException":
2588
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2589
- case "LicenseNotFoundException":
2590
- case "com.amazonaws.qbusiness#LicenseNotFoundException":
2591
- throw await de_LicenseNotFoundExceptionRes(parsedOutput, context);
2592
- case "ResourceNotFoundException":
2593
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
2594
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2595
- case "ThrottlingException":
2596
- case "com.amazonaws.qbusiness#ThrottlingException":
2597
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2598
- case "ValidationException":
2599
- case "com.amazonaws.qbusiness#ValidationException":
2600
- throw await de_ValidationExceptionRes(parsedOutput, context);
2601
- default:
2602
- const parsedBody = parsedOutput.body;
2603
- return throwDefaultError({
2604
- output,
2605
- parsedBody,
2606
- errorCode,
2607
- });
2608
- }
2609
- };
2610
- export const de_ListPluginsCommand = async (output, context) => {
1322
+ export const de_ListGroupsCommand = async (output, context) => {
2611
1323
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2612
- return de_ListPluginsCommandError(output, context);
1324
+ return de_CommandError(output, context);
2613
1325
  }
2614
1326
  const contents = map({
2615
1327
  $metadata: deserializeMetadata(output),
2616
1328
  });
2617
1329
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2618
1330
  const doc = take(data, {
1331
+ items: _json,
2619
1332
  nextToken: __expectString,
2620
- plugins: (_) => de_Plugins(_, context),
2621
1333
  });
2622
1334
  Object.assign(contents, doc);
2623
1335
  return contents;
2624
1336
  };
2625
- const de_ListPluginsCommandError = async (output, context) => {
2626
- const parsedOutput = {
2627
- ...output,
2628
- body: await parseErrorBody(output.body, context),
2629
- };
2630
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2631
- switch (errorCode) {
2632
- case "AccessDeniedException":
2633
- case "com.amazonaws.qbusiness#AccessDeniedException":
2634
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2635
- case "InternalServerException":
2636
- case "com.amazonaws.qbusiness#InternalServerException":
2637
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2638
- case "ResourceNotFoundException":
2639
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
2640
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2641
- case "ThrottlingException":
2642
- case "com.amazonaws.qbusiness#ThrottlingException":
2643
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2644
- case "ValidationException":
2645
- case "com.amazonaws.qbusiness#ValidationException":
2646
- throw await de_ValidationExceptionRes(parsedOutput, context);
2647
- default:
2648
- const parsedBody = parsedOutput.body;
2649
- return throwDefaultError({
2650
- output,
2651
- parsedBody,
2652
- errorCode,
2653
- });
2654
- }
2655
- };
2656
- export const de_ListRetrieversCommand = async (output, context) => {
1337
+ export const de_ListIndicesCommand = async (output, context) => {
2657
1338
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2658
- return de_ListRetrieversCommandError(output, context);
1339
+ return de_CommandError(output, context);
2659
1340
  }
2660
1341
  const contents = map({
2661
1342
  $metadata: deserializeMetadata(output),
2662
1343
  });
2663
1344
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2664
1345
  const doc = take(data, {
1346
+ indices: (_) => de_Indices(_, context),
2665
1347
  nextToken: __expectString,
2666
- retrievers: _json,
2667
1348
  });
2668
1349
  Object.assign(contents, doc);
2669
1350
  return contents;
2670
1351
  };
2671
- const de_ListRetrieversCommandError = async (output, context) => {
2672
- const parsedOutput = {
2673
- ...output,
2674
- body: await parseErrorBody(output.body, context),
2675
- };
2676
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2677
- switch (errorCode) {
2678
- case "AccessDeniedException":
2679
- case "com.amazonaws.qbusiness#AccessDeniedException":
2680
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2681
- case "InternalServerException":
2682
- case "com.amazonaws.qbusiness#InternalServerException":
2683
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2684
- case "ResourceNotFoundException":
2685
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
2686
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2687
- case "ThrottlingException":
2688
- case "com.amazonaws.qbusiness#ThrottlingException":
2689
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2690
- case "ValidationException":
2691
- case "com.amazonaws.qbusiness#ValidationException":
2692
- throw await de_ValidationExceptionRes(parsedOutput, context);
2693
- default:
2694
- const parsedBody = parsedOutput.body;
2695
- return throwDefaultError({
2696
- output,
2697
- parsedBody,
2698
- errorCode,
2699
- });
1352
+ export const de_ListMessagesCommand = async (output, context) => {
1353
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1354
+ return de_CommandError(output, context);
2700
1355
  }
1356
+ const contents = map({
1357
+ $metadata: deserializeMetadata(output),
1358
+ });
1359
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1360
+ const doc = take(data, {
1361
+ messages: (_) => de_Messages(_, context),
1362
+ nextToken: __expectString,
1363
+ });
1364
+ Object.assign(contents, doc);
1365
+ return contents;
2701
1366
  };
2702
- export const de_ListTagsForResourceCommand = async (output, context) => {
1367
+ export const de_ListPluginsCommand = async (output, context) => {
2703
1368
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2704
- return de_ListTagsForResourceCommandError(output, context);
1369
+ return de_CommandError(output, context);
2705
1370
  }
2706
1371
  const contents = map({
2707
1372
  $metadata: deserializeMetadata(output),
2708
1373
  });
2709
1374
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2710
1375
  const doc = take(data, {
2711
- tags: _json,
1376
+ nextToken: __expectString,
1377
+ plugins: (_) => de_Plugins(_, context),
2712
1378
  });
2713
1379
  Object.assign(contents, doc);
2714
1380
  return contents;
2715
1381
  };
2716
- const de_ListTagsForResourceCommandError = 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 "AccessDeniedException":
2724
- case "com.amazonaws.qbusiness#AccessDeniedException":
2725
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2726
- case "InternalServerException":
2727
- case "com.amazonaws.qbusiness#InternalServerException":
2728
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2729
- case "ResourceNotFoundException":
2730
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
2731
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2732
- case "ThrottlingException":
2733
- case "com.amazonaws.qbusiness#ThrottlingException":
2734
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2735
- case "ValidationException":
2736
- case "com.amazonaws.qbusiness#ValidationException":
2737
- throw await de_ValidationExceptionRes(parsedOutput, context);
2738
- default:
2739
- const parsedBody = parsedOutput.body;
2740
- return throwDefaultError({
2741
- output,
2742
- parsedBody,
2743
- errorCode,
2744
- });
1382
+ export const de_ListRetrieversCommand = async (output, context) => {
1383
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1384
+ return de_CommandError(output, context);
1385
+ }
1386
+ const contents = map({
1387
+ $metadata: deserializeMetadata(output),
1388
+ });
1389
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1390
+ const doc = take(data, {
1391
+ nextToken: __expectString,
1392
+ retrievers: _json,
1393
+ });
1394
+ Object.assign(contents, doc);
1395
+ return contents;
1396
+ };
1397
+ export const de_ListTagsForResourceCommand = async (output, context) => {
1398
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1399
+ return de_CommandError(output, context);
2745
1400
  }
1401
+ const contents = map({
1402
+ $metadata: deserializeMetadata(output),
1403
+ });
1404
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1405
+ const doc = take(data, {
1406
+ tags: _json,
1407
+ });
1408
+ Object.assign(contents, doc);
1409
+ return contents;
2746
1410
  };
2747
1411
  export const de_ListWebExperiencesCommand = async (output, context) => {
2748
1412
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2749
- return de_ListWebExperiencesCommandError(output, context);
1413
+ return de_CommandError(output, context);
2750
1414
  }
2751
1415
  const contents = map({
2752
1416
  $metadata: deserializeMetadata(output),
@@ -2759,40 +1423,9 @@ export const de_ListWebExperiencesCommand = async (output, context) => {
2759
1423
  Object.assign(contents, doc);
2760
1424
  return contents;
2761
1425
  };
2762
- const de_ListWebExperiencesCommandError = async (output, context) => {
2763
- const parsedOutput = {
2764
- ...output,
2765
- body: await parseErrorBody(output.body, context),
2766
- };
2767
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2768
- switch (errorCode) {
2769
- case "AccessDeniedException":
2770
- case "com.amazonaws.qbusiness#AccessDeniedException":
2771
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2772
- case "InternalServerException":
2773
- case "com.amazonaws.qbusiness#InternalServerException":
2774
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2775
- case "ResourceNotFoundException":
2776
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
2777
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2778
- case "ThrottlingException":
2779
- case "com.amazonaws.qbusiness#ThrottlingException":
2780
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2781
- case "ValidationException":
2782
- case "com.amazonaws.qbusiness#ValidationException":
2783
- throw await de_ValidationExceptionRes(parsedOutput, context);
2784
- default:
2785
- const parsedBody = parsedOutput.body;
2786
- return throwDefaultError({
2787
- output,
2788
- parsedBody,
2789
- errorCode,
2790
- });
2791
- }
2792
- };
2793
1426
  export const de_PutFeedbackCommand = async (output, context) => {
2794
1427
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2795
- return de_PutFeedbackCommandError(output, context);
1428
+ return de_CommandError(output, context);
2796
1429
  }
2797
1430
  const contents = map({
2798
1431
  $metadata: deserializeMetadata(output),
@@ -2800,40 +1433,9 @@ export const de_PutFeedbackCommand = async (output, context) => {
2800
1433
  await collectBody(output.body, context);
2801
1434
  return contents;
2802
1435
  };
2803
- const de_PutFeedbackCommandError = async (output, context) => {
2804
- const parsedOutput = {
2805
- ...output,
2806
- body: await parseErrorBody(output.body, context),
2807
- };
2808
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2809
- switch (errorCode) {
2810
- case "AccessDeniedException":
2811
- case "com.amazonaws.qbusiness#AccessDeniedException":
2812
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2813
- case "InternalServerException":
2814
- case "com.amazonaws.qbusiness#InternalServerException":
2815
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2816
- case "ResourceNotFoundException":
2817
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
2818
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2819
- case "ThrottlingException":
2820
- case "com.amazonaws.qbusiness#ThrottlingException":
2821
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2822
- case "ValidationException":
2823
- case "com.amazonaws.qbusiness#ValidationException":
2824
- throw await de_ValidationExceptionRes(parsedOutput, context);
2825
- default:
2826
- const parsedBody = parsedOutput.body;
2827
- return throwDefaultError({
2828
- output,
2829
- parsedBody,
2830
- errorCode,
2831
- });
2832
- }
2833
- };
2834
1436
  export const de_PutGroupCommand = async (output, context) => {
2835
1437
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2836
- return de_PutGroupCommandError(output, context);
1438
+ return de_CommandError(output, context);
2837
1439
  }
2838
1440
  const contents = map({
2839
1441
  $metadata: deserializeMetadata(output),
@@ -2841,46 +1443,9 @@ export const de_PutGroupCommand = async (output, context) => {
2841
1443
  await collectBody(output.body, context);
2842
1444
  return contents;
2843
1445
  };
2844
- const de_PutGroupCommandError = async (output, context) => {
2845
- const parsedOutput = {
2846
- ...output,
2847
- body: await parseErrorBody(output.body, context),
2848
- };
2849
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2850
- switch (errorCode) {
2851
- case "AccessDeniedException":
2852
- case "com.amazonaws.qbusiness#AccessDeniedException":
2853
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2854
- case "ConflictException":
2855
- case "com.amazonaws.qbusiness#ConflictException":
2856
- throw await de_ConflictExceptionRes(parsedOutput, context);
2857
- case "InternalServerException":
2858
- case "com.amazonaws.qbusiness#InternalServerException":
2859
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2860
- case "ResourceNotFoundException":
2861
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
2862
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2863
- case "ServiceQuotaExceededException":
2864
- case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
2865
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2866
- case "ThrottlingException":
2867
- case "com.amazonaws.qbusiness#ThrottlingException":
2868
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2869
- case "ValidationException":
2870
- case "com.amazonaws.qbusiness#ValidationException":
2871
- throw await de_ValidationExceptionRes(parsedOutput, context);
2872
- default:
2873
- const parsedBody = parsedOutput.body;
2874
- return throwDefaultError({
2875
- output,
2876
- parsedBody,
2877
- errorCode,
2878
- });
2879
- }
2880
- };
2881
1446
  export const de_StartDataSourceSyncJobCommand = async (output, context) => {
2882
1447
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2883
- return de_StartDataSourceSyncJobCommandError(output, context);
1448
+ return de_CommandError(output, context);
2884
1449
  }
2885
1450
  const contents = map({
2886
1451
  $metadata: deserializeMetadata(output),
@@ -2892,46 +1457,9 @@ export const de_StartDataSourceSyncJobCommand = async (output, context) => {
2892
1457
  Object.assign(contents, doc);
2893
1458
  return contents;
2894
1459
  };
2895
- const de_StartDataSourceSyncJobCommandError = async (output, context) => {
2896
- const parsedOutput = {
2897
- ...output,
2898
- body: await parseErrorBody(output.body, context),
2899
- };
2900
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2901
- switch (errorCode) {
2902
- case "AccessDeniedException":
2903
- case "com.amazonaws.qbusiness#AccessDeniedException":
2904
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2905
- case "ConflictException":
2906
- case "com.amazonaws.qbusiness#ConflictException":
2907
- throw await de_ConflictExceptionRes(parsedOutput, context);
2908
- case "InternalServerException":
2909
- case "com.amazonaws.qbusiness#InternalServerException":
2910
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2911
- case "ResourceNotFoundException":
2912
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
2913
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2914
- case "ServiceQuotaExceededException":
2915
- case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
2916
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2917
- case "ThrottlingException":
2918
- case "com.amazonaws.qbusiness#ThrottlingException":
2919
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2920
- case "ValidationException":
2921
- case "com.amazonaws.qbusiness#ValidationException":
2922
- throw await de_ValidationExceptionRes(parsedOutput, context);
2923
- default:
2924
- const parsedBody = parsedOutput.body;
2925
- return throwDefaultError({
2926
- output,
2927
- parsedBody,
2928
- errorCode,
2929
- });
2930
- }
2931
- };
2932
1460
  export const de_StopDataSourceSyncJobCommand = async (output, context) => {
2933
1461
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2934
- return de_StopDataSourceSyncJobCommandError(output, context);
1462
+ return de_CommandError(output, context);
2935
1463
  }
2936
1464
  const contents = map({
2937
1465
  $metadata: deserializeMetadata(output),
@@ -2939,84 +1467,9 @@ export const de_StopDataSourceSyncJobCommand = async (output, context) => {
2939
1467
  await collectBody(output.body, context);
2940
1468
  return contents;
2941
1469
  };
2942
- const de_StopDataSourceSyncJobCommandError = async (output, context) => {
2943
- const parsedOutput = {
2944
- ...output,
2945
- body: await parseErrorBody(output.body, context),
2946
- };
2947
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2948
- switch (errorCode) {
2949
- case "AccessDeniedException":
2950
- case "com.amazonaws.qbusiness#AccessDeniedException":
2951
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2952
- case "InternalServerException":
2953
- case "com.amazonaws.qbusiness#InternalServerException":
2954
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2955
- case "ResourceNotFoundException":
2956
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
2957
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2958
- case "ThrottlingException":
2959
- case "com.amazonaws.qbusiness#ThrottlingException":
2960
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2961
- case "ValidationException":
2962
- case "com.amazonaws.qbusiness#ValidationException":
2963
- throw await de_ValidationExceptionRes(parsedOutput, context);
2964
- default:
2965
- const parsedBody = parsedOutput.body;
2966
- return throwDefaultError({
2967
- output,
2968
- parsedBody,
2969
- errorCode,
2970
- });
2971
- }
2972
- };
2973
1470
  export const de_TagResourceCommand = async (output, context) => {
2974
1471
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2975
- return de_TagResourceCommandError(output, context);
2976
- }
2977
- const contents = map({
2978
- $metadata: deserializeMetadata(output),
2979
- });
2980
- await collectBody(output.body, context);
2981
- return contents;
2982
- };
2983
- const de_TagResourceCommandError = async (output, context) => {
2984
- const parsedOutput = {
2985
- ...output,
2986
- body: await parseErrorBody(output.body, context),
2987
- };
2988
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2989
- switch (errorCode) {
2990
- case "AccessDeniedException":
2991
- case "com.amazonaws.qbusiness#AccessDeniedException":
2992
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2993
- case "ConflictException":
2994
- case "com.amazonaws.qbusiness#ConflictException":
2995
- throw await de_ConflictExceptionRes(parsedOutput, context);
2996
- case "InternalServerException":
2997
- case "com.amazonaws.qbusiness#InternalServerException":
2998
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2999
- case "ResourceNotFoundException":
3000
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
3001
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3002
- case "ThrottlingException":
3003
- case "com.amazonaws.qbusiness#ThrottlingException":
3004
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3005
- case "ValidationException":
3006
- case "com.amazonaws.qbusiness#ValidationException":
3007
- throw await de_ValidationExceptionRes(parsedOutput, context);
3008
- default:
3009
- const parsedBody = parsedOutput.body;
3010
- return throwDefaultError({
3011
- output,
3012
- parsedBody,
3013
- errorCode,
3014
- });
3015
- }
3016
- };
3017
- export const de_UntagResourceCommand = async (output, context) => {
3018
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3019
- return de_UntagResourceCommandError(output, context);
1472
+ return de_CommandError(output, context);
3020
1473
  }
3021
1474
  const contents = map({
3022
1475
  $metadata: deserializeMetadata(output),
@@ -3024,40 +1477,9 @@ export const de_UntagResourceCommand = async (output, context) => {
3024
1477
  await collectBody(output.body, context);
3025
1478
  return contents;
3026
1479
  };
3027
- const de_UntagResourceCommandError = async (output, context) => {
3028
- const parsedOutput = {
3029
- ...output,
3030
- body: await parseErrorBody(output.body, context),
3031
- };
3032
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3033
- switch (errorCode) {
3034
- case "AccessDeniedException":
3035
- case "com.amazonaws.qbusiness#AccessDeniedException":
3036
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3037
- case "InternalServerException":
3038
- case "com.amazonaws.qbusiness#InternalServerException":
3039
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3040
- case "ResourceNotFoundException":
3041
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
3042
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3043
- case "ThrottlingException":
3044
- case "com.amazonaws.qbusiness#ThrottlingException":
3045
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3046
- case "ValidationException":
3047
- case "com.amazonaws.qbusiness#ValidationException":
3048
- throw await de_ValidationExceptionRes(parsedOutput, context);
3049
- default:
3050
- const parsedBody = parsedOutput.body;
3051
- return throwDefaultError({
3052
- output,
3053
- parsedBody,
3054
- errorCode,
3055
- });
3056
- }
3057
- };
3058
- export const de_UpdateApplicationCommand = async (output, context) => {
1480
+ export const de_UntagResourceCommand = async (output, context) => {
3059
1481
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3060
- return de_UpdateApplicationCommandError(output, context);
1482
+ return de_CommandError(output, context);
3061
1483
  }
3062
1484
  const contents = map({
3063
1485
  $metadata: deserializeMetadata(output),
@@ -3065,43 +1487,19 @@ export const de_UpdateApplicationCommand = async (output, context) => {
3065
1487
  await collectBody(output.body, context);
3066
1488
  return contents;
3067
1489
  };
3068
- const de_UpdateApplicationCommandError = async (output, context) => {
3069
- const parsedOutput = {
3070
- ...output,
3071
- body: await parseErrorBody(output.body, context),
3072
- };
3073
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3074
- switch (errorCode) {
3075
- case "AccessDeniedException":
3076
- case "com.amazonaws.qbusiness#AccessDeniedException":
3077
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3078
- case "ConflictException":
3079
- case "com.amazonaws.qbusiness#ConflictException":
3080
- throw await de_ConflictExceptionRes(parsedOutput, context);
3081
- case "InternalServerException":
3082
- case "com.amazonaws.qbusiness#InternalServerException":
3083
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3084
- case "ResourceNotFoundException":
3085
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
3086
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3087
- case "ThrottlingException":
3088
- case "com.amazonaws.qbusiness#ThrottlingException":
3089
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3090
- case "ValidationException":
3091
- case "com.amazonaws.qbusiness#ValidationException":
3092
- throw await de_ValidationExceptionRes(parsedOutput, context);
3093
- default:
3094
- const parsedBody = parsedOutput.body;
3095
- return throwDefaultError({
3096
- output,
3097
- parsedBody,
3098
- errorCode,
3099
- });
1490
+ export const de_UpdateApplicationCommand = async (output, context) => {
1491
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1492
+ return de_CommandError(output, context);
3100
1493
  }
1494
+ const contents = map({
1495
+ $metadata: deserializeMetadata(output),
1496
+ });
1497
+ await collectBody(output.body, context);
1498
+ return contents;
3101
1499
  };
3102
1500
  export const de_UpdateChatControlsConfigurationCommand = async (output, context) => {
3103
1501
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3104
- return de_UpdateChatControlsConfigurationCommandError(output, context);
1502
+ return de_CommandError(output, context);
3105
1503
  }
3106
1504
  const contents = map({
3107
1505
  $metadata: deserializeMetadata(output),
@@ -3109,46 +1507,9 @@ export const de_UpdateChatControlsConfigurationCommand = async (output, context)
3109
1507
  await collectBody(output.body, context);
3110
1508
  return contents;
3111
1509
  };
3112
- const de_UpdateChatControlsConfigurationCommandError = async (output, context) => {
3113
- const parsedOutput = {
3114
- ...output,
3115
- body: await parseErrorBody(output.body, context),
3116
- };
3117
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3118
- switch (errorCode) {
3119
- case "AccessDeniedException":
3120
- case "com.amazonaws.qbusiness#AccessDeniedException":
3121
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3122
- case "ConflictException":
3123
- case "com.amazonaws.qbusiness#ConflictException":
3124
- throw await de_ConflictExceptionRes(parsedOutput, context);
3125
- case "InternalServerException":
3126
- case "com.amazonaws.qbusiness#InternalServerException":
3127
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3128
- case "ResourceNotFoundException":
3129
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
3130
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3131
- case "ServiceQuotaExceededException":
3132
- case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
3133
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3134
- case "ThrottlingException":
3135
- case "com.amazonaws.qbusiness#ThrottlingException":
3136
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3137
- case "ValidationException":
3138
- case "com.amazonaws.qbusiness#ValidationException":
3139
- throw await de_ValidationExceptionRes(parsedOutput, context);
3140
- default:
3141
- const parsedBody = parsedOutput.body;
3142
- return throwDefaultError({
3143
- output,
3144
- parsedBody,
3145
- errorCode,
3146
- });
3147
- }
3148
- };
3149
1510
  export const de_UpdateDataSourceCommand = async (output, context) => {
3150
1511
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3151
- return de_UpdateDataSourceCommandError(output, context);
1512
+ return de_CommandError(output, context);
3152
1513
  }
3153
1514
  const contents = map({
3154
1515
  $metadata: deserializeMetadata(output),
@@ -3156,43 +1517,9 @@ export const de_UpdateDataSourceCommand = async (output, context) => {
3156
1517
  await collectBody(output.body, context);
3157
1518
  return contents;
3158
1519
  };
3159
- const de_UpdateDataSourceCommandError = async (output, context) => {
3160
- const parsedOutput = {
3161
- ...output,
3162
- body: await parseErrorBody(output.body, context),
3163
- };
3164
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3165
- switch (errorCode) {
3166
- case "AccessDeniedException":
3167
- case "com.amazonaws.qbusiness#AccessDeniedException":
3168
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3169
- case "ConflictException":
3170
- case "com.amazonaws.qbusiness#ConflictException":
3171
- throw await de_ConflictExceptionRes(parsedOutput, context);
3172
- case "InternalServerException":
3173
- case "com.amazonaws.qbusiness#InternalServerException":
3174
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3175
- case "ResourceNotFoundException":
3176
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
3177
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3178
- case "ThrottlingException":
3179
- case "com.amazonaws.qbusiness#ThrottlingException":
3180
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3181
- case "ValidationException":
3182
- case "com.amazonaws.qbusiness#ValidationException":
3183
- throw await de_ValidationExceptionRes(parsedOutput, context);
3184
- default:
3185
- const parsedBody = parsedOutput.body;
3186
- return throwDefaultError({
3187
- output,
3188
- parsedBody,
3189
- errorCode,
3190
- });
3191
- }
3192
- };
3193
1520
  export const de_UpdateIndexCommand = async (output, context) => {
3194
1521
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3195
- return de_UpdateIndexCommandError(output, context);
1522
+ return de_CommandError(output, context);
3196
1523
  }
3197
1524
  const contents = map({
3198
1525
  $metadata: deserializeMetadata(output),
@@ -3200,46 +1527,9 @@ export const de_UpdateIndexCommand = async (output, context) => {
3200
1527
  await collectBody(output.body, context);
3201
1528
  return contents;
3202
1529
  };
3203
- const de_UpdateIndexCommandError = async (output, context) => {
3204
- const parsedOutput = {
3205
- ...output,
3206
- body: await parseErrorBody(output.body, context),
3207
- };
3208
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3209
- switch (errorCode) {
3210
- case "AccessDeniedException":
3211
- case "com.amazonaws.qbusiness#AccessDeniedException":
3212
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3213
- case "ConflictException":
3214
- case "com.amazonaws.qbusiness#ConflictException":
3215
- throw await de_ConflictExceptionRes(parsedOutput, context);
3216
- case "InternalServerException":
3217
- case "com.amazonaws.qbusiness#InternalServerException":
3218
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3219
- case "ResourceNotFoundException":
3220
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
3221
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3222
- case "ServiceQuotaExceededException":
3223
- case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
3224
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3225
- case "ThrottlingException":
3226
- case "com.amazonaws.qbusiness#ThrottlingException":
3227
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3228
- case "ValidationException":
3229
- case "com.amazonaws.qbusiness#ValidationException":
3230
- throw await de_ValidationExceptionRes(parsedOutput, context);
3231
- default:
3232
- const parsedBody = parsedOutput.body;
3233
- return throwDefaultError({
3234
- output,
3235
- parsedBody,
3236
- errorCode,
3237
- });
3238
- }
3239
- };
3240
1530
  export const de_UpdatePluginCommand = async (output, context) => {
3241
1531
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3242
- return de_UpdatePluginCommandError(output, context);
1532
+ return de_CommandError(output, context);
3243
1533
  }
3244
1534
  const contents = map({
3245
1535
  $metadata: deserializeMetadata(output),
@@ -3247,46 +1537,9 @@ export const de_UpdatePluginCommand = async (output, context) => {
3247
1537
  await collectBody(output.body, context);
3248
1538
  return contents;
3249
1539
  };
3250
- const de_UpdatePluginCommandError = async (output, context) => {
3251
- const parsedOutput = {
3252
- ...output,
3253
- body: await parseErrorBody(output.body, context),
3254
- };
3255
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3256
- switch (errorCode) {
3257
- case "AccessDeniedException":
3258
- case "com.amazonaws.qbusiness#AccessDeniedException":
3259
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3260
- case "ConflictException":
3261
- case "com.amazonaws.qbusiness#ConflictException":
3262
- throw await de_ConflictExceptionRes(parsedOutput, context);
3263
- case "InternalServerException":
3264
- case "com.amazonaws.qbusiness#InternalServerException":
3265
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3266
- case "ResourceNotFoundException":
3267
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
3268
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3269
- case "ServiceQuotaExceededException":
3270
- case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
3271
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3272
- case "ThrottlingException":
3273
- case "com.amazonaws.qbusiness#ThrottlingException":
3274
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3275
- case "ValidationException":
3276
- case "com.amazonaws.qbusiness#ValidationException":
3277
- throw await de_ValidationExceptionRes(parsedOutput, context);
3278
- default:
3279
- const parsedBody = parsedOutput.body;
3280
- return throwDefaultError({
3281
- output,
3282
- parsedBody,
3283
- errorCode,
3284
- });
3285
- }
3286
- };
3287
1540
  export const de_UpdateRetrieverCommand = async (output, context) => {
3288
1541
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3289
- return de_UpdateRetrieverCommandError(output, context);
1542
+ return de_CommandError(output, context);
3290
1543
  }
3291
1544
  const contents = map({
3292
1545
  $metadata: deserializeMetadata(output),
@@ -3294,46 +1547,9 @@ export const de_UpdateRetrieverCommand = async (output, context) => {
3294
1547
  await collectBody(output.body, context);
3295
1548
  return contents;
3296
1549
  };
3297
- const de_UpdateRetrieverCommandError = async (output, context) => {
3298
- const parsedOutput = {
3299
- ...output,
3300
- body: await parseErrorBody(output.body, context),
3301
- };
3302
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3303
- switch (errorCode) {
3304
- case "AccessDeniedException":
3305
- case "com.amazonaws.qbusiness#AccessDeniedException":
3306
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3307
- case "ConflictException":
3308
- case "com.amazonaws.qbusiness#ConflictException":
3309
- throw await de_ConflictExceptionRes(parsedOutput, context);
3310
- case "InternalServerException":
3311
- case "com.amazonaws.qbusiness#InternalServerException":
3312
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3313
- case "ResourceNotFoundException":
3314
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
3315
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3316
- case "ServiceQuotaExceededException":
3317
- case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
3318
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3319
- case "ThrottlingException":
3320
- case "com.amazonaws.qbusiness#ThrottlingException":
3321
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3322
- case "ValidationException":
3323
- case "com.amazonaws.qbusiness#ValidationException":
3324
- throw await de_ValidationExceptionRes(parsedOutput, context);
3325
- default:
3326
- const parsedBody = parsedOutput.body;
3327
- return throwDefaultError({
3328
- output,
3329
- parsedBody,
3330
- errorCode,
3331
- });
3332
- }
3333
- };
3334
1550
  export const de_UpdateUserCommand = async (output, context) => {
3335
1551
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3336
- return de_UpdateUserCommandError(output, context);
1552
+ return de_CommandError(output, context);
3337
1553
  }
3338
1554
  const contents = map({
3339
1555
  $metadata: deserializeMetadata(output),
@@ -3347,43 +1563,9 @@ export const de_UpdateUserCommand = async (output, context) => {
3347
1563
  Object.assign(contents, doc);
3348
1564
  return contents;
3349
1565
  };
3350
- const de_UpdateUserCommandError = async (output, context) => {
3351
- const parsedOutput = {
3352
- ...output,
3353
- body: await parseErrorBody(output.body, context),
3354
- };
3355
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3356
- switch (errorCode) {
3357
- case "AccessDeniedException":
3358
- case "com.amazonaws.qbusiness#AccessDeniedException":
3359
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3360
- case "InternalServerException":
3361
- case "com.amazonaws.qbusiness#InternalServerException":
3362
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3363
- case "ResourceNotFoundException":
3364
- case "com.amazonaws.qbusiness#ResourceNotFoundException":
3365
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3366
- case "ServiceQuotaExceededException":
3367
- case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
3368
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3369
- case "ThrottlingException":
3370
- case "com.amazonaws.qbusiness#ThrottlingException":
3371
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3372
- case "ValidationException":
3373
- case "com.amazonaws.qbusiness#ValidationException":
3374
- throw await de_ValidationExceptionRes(parsedOutput, context);
3375
- default:
3376
- const parsedBody = parsedOutput.body;
3377
- return throwDefaultError({
3378
- output,
3379
- parsedBody,
3380
- errorCode,
3381
- });
3382
- }
3383
- };
3384
1566
  export const de_UpdateWebExperienceCommand = async (output, context) => {
3385
1567
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3386
- return de_UpdateWebExperienceCommandError(output, context);
1568
+ return de_CommandError(output, context);
3387
1569
  }
3388
1570
  const contents = map({
3389
1571
  $metadata: deserializeMetadata(output),
@@ -3391,7 +1573,7 @@ export const de_UpdateWebExperienceCommand = async (output, context) => {
3391
1573
  await collectBody(output.body, context);
3392
1574
  return contents;
3393
1575
  };
3394
- const de_UpdateWebExperienceCommandError = async (output, context) => {
1576
+ const de_CommandError = async (output, context) => {
3395
1577
  const parsedOutput = {
3396
1578
  ...output,
3397
1579
  body: await parseErrorBody(output.body, context),
@@ -3416,6 +1598,12 @@ const de_UpdateWebExperienceCommandError = async (output, context) => {
3416
1598
  case "ValidationException":
3417
1599
  case "com.amazonaws.qbusiness#ValidationException":
3418
1600
  throw await de_ValidationExceptionRes(parsedOutput, context);
1601
+ case "ServiceQuotaExceededException":
1602
+ case "com.amazonaws.qbusiness#ServiceQuotaExceededException":
1603
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1604
+ case "LicenseNotFoundException":
1605
+ case "com.amazonaws.qbusiness#LicenseNotFoundException":
1606
+ throw await de_LicenseNotFoundExceptionRes(parsedOutput, context);
3419
1607
  default:
3420
1608
  const parsedBody = parsedOutput.body;
3421
1609
  return throwDefaultError({