@aws-sdk/client-workspaces-web 3.503.1 → 3.507.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -721,7 +721,7 @@ export const se_UpdateUserSettingsCommand = async (input, context) => {
721
721
  };
722
722
  export const de_AssociateBrowserSettingsCommand = async (output, context) => {
723
723
  if (output.statusCode !== 200 && output.statusCode >= 300) {
724
- return de_AssociateBrowserSettingsCommandError(output, context);
724
+ return de_CommandError(output, context);
725
725
  }
726
726
  const contents = map({
727
727
  $metadata: deserializeMetadata(output),
@@ -734,43 +734,9 @@ export const de_AssociateBrowserSettingsCommand = async (output, context) => {
734
734
  Object.assign(contents, doc);
735
735
  return contents;
736
736
  };
737
- const de_AssociateBrowserSettingsCommandError = async (output, context) => {
738
- const parsedOutput = {
739
- ...output,
740
- body: await parseErrorBody(output.body, context),
741
- };
742
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
743
- switch (errorCode) {
744
- case "AccessDeniedException":
745
- case "com.amazonaws.workspacesweb#AccessDeniedException":
746
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
747
- case "ConflictException":
748
- case "com.amazonaws.workspacesweb#ConflictException":
749
- throw await de_ConflictExceptionRes(parsedOutput, context);
750
- case "InternalServerException":
751
- case "com.amazonaws.workspacesweb#InternalServerException":
752
- throw await de_InternalServerExceptionRes(parsedOutput, context);
753
- case "ResourceNotFoundException":
754
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
755
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
756
- case "ThrottlingException":
757
- case "com.amazonaws.workspacesweb#ThrottlingException":
758
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
759
- case "ValidationException":
760
- case "com.amazonaws.workspacesweb#ValidationException":
761
- throw await de_ValidationExceptionRes(parsedOutput, context);
762
- default:
763
- const parsedBody = parsedOutput.body;
764
- return throwDefaultError({
765
- output,
766
- parsedBody,
767
- errorCode,
768
- });
769
- }
770
- };
771
737
  export const de_AssociateIpAccessSettingsCommand = async (output, context) => {
772
738
  if (output.statusCode !== 200 && output.statusCode >= 300) {
773
- return de_AssociateIpAccessSettingsCommandError(output, context);
739
+ return de_CommandError(output, context);
774
740
  }
775
741
  const contents = map({
776
742
  $metadata: deserializeMetadata(output),
@@ -783,43 +749,9 @@ export const de_AssociateIpAccessSettingsCommand = async (output, context) => {
783
749
  Object.assign(contents, doc);
784
750
  return contents;
785
751
  };
786
- const de_AssociateIpAccessSettingsCommandError = async (output, context) => {
787
- const parsedOutput = {
788
- ...output,
789
- body: await parseErrorBody(output.body, context),
790
- };
791
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
792
- switch (errorCode) {
793
- case "AccessDeniedException":
794
- case "com.amazonaws.workspacesweb#AccessDeniedException":
795
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
796
- case "ConflictException":
797
- case "com.amazonaws.workspacesweb#ConflictException":
798
- throw await de_ConflictExceptionRes(parsedOutput, context);
799
- case "InternalServerException":
800
- case "com.amazonaws.workspacesweb#InternalServerException":
801
- throw await de_InternalServerExceptionRes(parsedOutput, context);
802
- case "ResourceNotFoundException":
803
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
804
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
805
- case "ThrottlingException":
806
- case "com.amazonaws.workspacesweb#ThrottlingException":
807
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
808
- case "ValidationException":
809
- case "com.amazonaws.workspacesweb#ValidationException":
810
- throw await de_ValidationExceptionRes(parsedOutput, context);
811
- default:
812
- const parsedBody = parsedOutput.body;
813
- return throwDefaultError({
814
- output,
815
- parsedBody,
816
- errorCode,
817
- });
818
- }
819
- };
820
752
  export const de_AssociateNetworkSettingsCommand = async (output, context) => {
821
753
  if (output.statusCode !== 200 && output.statusCode >= 300) {
822
- return de_AssociateNetworkSettingsCommandError(output, context);
754
+ return de_CommandError(output, context);
823
755
  }
824
756
  const contents = map({
825
757
  $metadata: deserializeMetadata(output),
@@ -832,43 +764,9 @@ export const de_AssociateNetworkSettingsCommand = async (output, context) => {
832
764
  Object.assign(contents, doc);
833
765
  return contents;
834
766
  };
835
- const de_AssociateNetworkSettingsCommandError = async (output, context) => {
836
- const parsedOutput = {
837
- ...output,
838
- body: await parseErrorBody(output.body, context),
839
- };
840
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
841
- switch (errorCode) {
842
- case "AccessDeniedException":
843
- case "com.amazonaws.workspacesweb#AccessDeniedException":
844
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
845
- case "ConflictException":
846
- case "com.amazonaws.workspacesweb#ConflictException":
847
- throw await de_ConflictExceptionRes(parsedOutput, context);
848
- case "InternalServerException":
849
- case "com.amazonaws.workspacesweb#InternalServerException":
850
- throw await de_InternalServerExceptionRes(parsedOutput, context);
851
- case "ResourceNotFoundException":
852
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
853
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
854
- case "ThrottlingException":
855
- case "com.amazonaws.workspacesweb#ThrottlingException":
856
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
857
- case "ValidationException":
858
- case "com.amazonaws.workspacesweb#ValidationException":
859
- throw await de_ValidationExceptionRes(parsedOutput, context);
860
- default:
861
- const parsedBody = parsedOutput.body;
862
- return throwDefaultError({
863
- output,
864
- parsedBody,
865
- errorCode,
866
- });
867
- }
868
- };
869
767
  export const de_AssociateTrustStoreCommand = async (output, context) => {
870
768
  if (output.statusCode !== 200 && output.statusCode >= 300) {
871
- return de_AssociateTrustStoreCommandError(output, context);
769
+ return de_CommandError(output, context);
872
770
  }
873
771
  const contents = map({
874
772
  $metadata: deserializeMetadata(output),
@@ -881,40 +779,9 @@ export const de_AssociateTrustStoreCommand = async (output, context) => {
881
779
  Object.assign(contents, doc);
882
780
  return contents;
883
781
  };
884
- const de_AssociateTrustStoreCommandError = async (output, context) => {
885
- const parsedOutput = {
886
- ...output,
887
- body: await parseErrorBody(output.body, context),
888
- };
889
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
890
- switch (errorCode) {
891
- case "AccessDeniedException":
892
- case "com.amazonaws.workspacesweb#AccessDeniedException":
893
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
894
- case "InternalServerException":
895
- case "com.amazonaws.workspacesweb#InternalServerException":
896
- throw await de_InternalServerExceptionRes(parsedOutput, context);
897
- case "ResourceNotFoundException":
898
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
899
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
900
- case "ThrottlingException":
901
- case "com.amazonaws.workspacesweb#ThrottlingException":
902
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
903
- case "ValidationException":
904
- case "com.amazonaws.workspacesweb#ValidationException":
905
- throw await de_ValidationExceptionRes(parsedOutput, context);
906
- default:
907
- const parsedBody = parsedOutput.body;
908
- return throwDefaultError({
909
- output,
910
- parsedBody,
911
- errorCode,
912
- });
913
- }
914
- };
915
782
  export const de_AssociateUserAccessLoggingSettingsCommand = async (output, context) => {
916
783
  if (output.statusCode !== 200 && output.statusCode >= 300) {
917
- return de_AssociateUserAccessLoggingSettingsCommandError(output, context);
784
+ return de_CommandError(output, context);
918
785
  }
919
786
  const contents = map({
920
787
  $metadata: deserializeMetadata(output),
@@ -927,43 +794,9 @@ export const de_AssociateUserAccessLoggingSettingsCommand = async (output, conte
927
794
  Object.assign(contents, doc);
928
795
  return contents;
929
796
  };
930
- const de_AssociateUserAccessLoggingSettingsCommandError = async (output, context) => {
931
- const parsedOutput = {
932
- ...output,
933
- body: await parseErrorBody(output.body, context),
934
- };
935
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
936
- switch (errorCode) {
937
- case "AccessDeniedException":
938
- case "com.amazonaws.workspacesweb#AccessDeniedException":
939
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
940
- case "ConflictException":
941
- case "com.amazonaws.workspacesweb#ConflictException":
942
- throw await de_ConflictExceptionRes(parsedOutput, context);
943
- case "InternalServerException":
944
- case "com.amazonaws.workspacesweb#InternalServerException":
945
- throw await de_InternalServerExceptionRes(parsedOutput, context);
946
- case "ResourceNotFoundException":
947
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
948
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
949
- case "ThrottlingException":
950
- case "com.amazonaws.workspacesweb#ThrottlingException":
951
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
952
- case "ValidationException":
953
- case "com.amazonaws.workspacesweb#ValidationException":
954
- throw await de_ValidationExceptionRes(parsedOutput, context);
955
- default:
956
- const parsedBody = parsedOutput.body;
957
- return throwDefaultError({
958
- output,
959
- parsedBody,
960
- errorCode,
961
- });
962
- }
963
- };
964
797
  export const de_AssociateUserSettingsCommand = async (output, context) => {
965
798
  if (output.statusCode !== 200 && output.statusCode >= 300) {
966
- return de_AssociateUserSettingsCommandError(output, context);
799
+ return de_CommandError(output, context);
967
800
  }
968
801
  const contents = map({
969
802
  $metadata: deserializeMetadata(output),
@@ -976,43 +809,9 @@ export const de_AssociateUserSettingsCommand = async (output, context) => {
976
809
  Object.assign(contents, doc);
977
810
  return contents;
978
811
  };
979
- const de_AssociateUserSettingsCommandError = async (output, context) => {
980
- const parsedOutput = {
981
- ...output,
982
- body: await parseErrorBody(output.body, context),
983
- };
984
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
985
- switch (errorCode) {
986
- case "AccessDeniedException":
987
- case "com.amazonaws.workspacesweb#AccessDeniedException":
988
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
989
- case "ConflictException":
990
- case "com.amazonaws.workspacesweb#ConflictException":
991
- throw await de_ConflictExceptionRes(parsedOutput, context);
992
- case "InternalServerException":
993
- case "com.amazonaws.workspacesweb#InternalServerException":
994
- throw await de_InternalServerExceptionRes(parsedOutput, context);
995
- case "ResourceNotFoundException":
996
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
997
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
998
- case "ThrottlingException":
999
- case "com.amazonaws.workspacesweb#ThrottlingException":
1000
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1001
- case "ValidationException":
1002
- case "com.amazonaws.workspacesweb#ValidationException":
1003
- throw await de_ValidationExceptionRes(parsedOutput, context);
1004
- default:
1005
- const parsedBody = parsedOutput.body;
1006
- return throwDefaultError({
1007
- output,
1008
- parsedBody,
1009
- errorCode,
1010
- });
1011
- }
1012
- };
1013
812
  export const de_CreateBrowserSettingsCommand = async (output, context) => {
1014
813
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1015
- return de_CreateBrowserSettingsCommandError(output, context);
814
+ return de_CommandError(output, context);
1016
815
  }
1017
816
  const contents = map({
1018
817
  $metadata: deserializeMetadata(output),
@@ -1024,46 +823,9 @@ export const de_CreateBrowserSettingsCommand = async (output, context) => {
1024
823
  Object.assign(contents, doc);
1025
824
  return contents;
1026
825
  };
1027
- const de_CreateBrowserSettingsCommandError = async (output, context) => {
1028
- const parsedOutput = {
1029
- ...output,
1030
- body: await parseErrorBody(output.body, context),
1031
- };
1032
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1033
- switch (errorCode) {
1034
- case "AccessDeniedException":
1035
- case "com.amazonaws.workspacesweb#AccessDeniedException":
1036
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1037
- case "ConflictException":
1038
- case "com.amazonaws.workspacesweb#ConflictException":
1039
- throw await de_ConflictExceptionRes(parsedOutput, context);
1040
- case "InternalServerException":
1041
- case "com.amazonaws.workspacesweb#InternalServerException":
1042
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1043
- case "ResourceNotFoundException":
1044
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
1045
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1046
- case "ServiceQuotaExceededException":
1047
- case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
1048
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1049
- case "ThrottlingException":
1050
- case "com.amazonaws.workspacesweb#ThrottlingException":
1051
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1052
- case "ValidationException":
1053
- case "com.amazonaws.workspacesweb#ValidationException":
1054
- throw await de_ValidationExceptionRes(parsedOutput, context);
1055
- default:
1056
- const parsedBody = parsedOutput.body;
1057
- return throwDefaultError({
1058
- output,
1059
- parsedBody,
1060
- errorCode,
1061
- });
1062
- }
1063
- };
1064
826
  export const de_CreateIdentityProviderCommand = async (output, context) => {
1065
827
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1066
- return de_CreateIdentityProviderCommandError(output, context);
828
+ return de_CommandError(output, context);
1067
829
  }
1068
830
  const contents = map({
1069
831
  $metadata: deserializeMetadata(output),
@@ -1075,46 +837,9 @@ export const de_CreateIdentityProviderCommand = async (output, context) => {
1075
837
  Object.assign(contents, doc);
1076
838
  return contents;
1077
839
  };
1078
- const de_CreateIdentityProviderCommandError = 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.workspacesweb#AccessDeniedException":
1087
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1088
- case "ConflictException":
1089
- case "com.amazonaws.workspacesweb#ConflictException":
1090
- throw await de_ConflictExceptionRes(parsedOutput, context);
1091
- case "InternalServerException":
1092
- case "com.amazonaws.workspacesweb#InternalServerException":
1093
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1094
- case "ResourceNotFoundException":
1095
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
1096
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1097
- case "ServiceQuotaExceededException":
1098
- case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
1099
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1100
- case "ThrottlingException":
1101
- case "com.amazonaws.workspacesweb#ThrottlingException":
1102
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1103
- case "ValidationException":
1104
- case "com.amazonaws.workspacesweb#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
840
  export const de_CreateIpAccessSettingsCommand = async (output, context) => {
1116
841
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1117
- return de_CreateIpAccessSettingsCommandError(output, context);
842
+ return de_CommandError(output, context);
1118
843
  }
1119
844
  const contents = map({
1120
845
  $metadata: deserializeMetadata(output),
@@ -1126,43 +851,9 @@ export const de_CreateIpAccessSettingsCommand = async (output, context) => {
1126
851
  Object.assign(contents, doc);
1127
852
  return contents;
1128
853
  };
1129
- const de_CreateIpAccessSettingsCommandError = async (output, context) => {
1130
- const parsedOutput = {
1131
- ...output,
1132
- body: await parseErrorBody(output.body, context),
1133
- };
1134
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1135
- switch (errorCode) {
1136
- case "AccessDeniedException":
1137
- case "com.amazonaws.workspacesweb#AccessDeniedException":
1138
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1139
- case "ConflictException":
1140
- case "com.amazonaws.workspacesweb#ConflictException":
1141
- throw await de_ConflictExceptionRes(parsedOutput, context);
1142
- case "InternalServerException":
1143
- case "com.amazonaws.workspacesweb#InternalServerException":
1144
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1145
- case "ServiceQuotaExceededException":
1146
- case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
1147
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1148
- case "ThrottlingException":
1149
- case "com.amazonaws.workspacesweb#ThrottlingException":
1150
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1151
- case "ValidationException":
1152
- case "com.amazonaws.workspacesweb#ValidationException":
1153
- throw await de_ValidationExceptionRes(parsedOutput, context);
1154
- default:
1155
- const parsedBody = parsedOutput.body;
1156
- return throwDefaultError({
1157
- output,
1158
- parsedBody,
1159
- errorCode,
1160
- });
1161
- }
1162
- };
1163
854
  export const de_CreateNetworkSettingsCommand = async (output, context) => {
1164
855
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1165
- return de_CreateNetworkSettingsCommandError(output, context);
856
+ return de_CommandError(output, context);
1166
857
  }
1167
858
  const contents = map({
1168
859
  $metadata: deserializeMetadata(output),
@@ -1174,43 +865,9 @@ export const de_CreateNetworkSettingsCommand = async (output, context) => {
1174
865
  Object.assign(contents, doc);
1175
866
  return contents;
1176
867
  };
1177
- const de_CreateNetworkSettingsCommandError = async (output, context) => {
1178
- const parsedOutput = {
1179
- ...output,
1180
- body: await parseErrorBody(output.body, context),
1181
- };
1182
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1183
- switch (errorCode) {
1184
- case "AccessDeniedException":
1185
- case "com.amazonaws.workspacesweb#AccessDeniedException":
1186
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1187
- case "ConflictException":
1188
- case "com.amazonaws.workspacesweb#ConflictException":
1189
- throw await de_ConflictExceptionRes(parsedOutput, context);
1190
- case "InternalServerException":
1191
- case "com.amazonaws.workspacesweb#InternalServerException":
1192
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1193
- case "ServiceQuotaExceededException":
1194
- case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
1195
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1196
- case "ThrottlingException":
1197
- case "com.amazonaws.workspacesweb#ThrottlingException":
1198
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1199
- case "ValidationException":
1200
- case "com.amazonaws.workspacesweb#ValidationException":
1201
- throw await de_ValidationExceptionRes(parsedOutput, context);
1202
- default:
1203
- const parsedBody = parsedOutput.body;
1204
- return throwDefaultError({
1205
- output,
1206
- parsedBody,
1207
- errorCode,
1208
- });
1209
- }
1210
- };
1211
868
  export const de_CreatePortalCommand = async (output, context) => {
1212
869
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1213
- return de_CreatePortalCommandError(output, context);
870
+ return de_CommandError(output, context);
1214
871
  }
1215
872
  const contents = map({
1216
873
  $metadata: deserializeMetadata(output),
@@ -1223,46 +880,9 @@ export const de_CreatePortalCommand = async (output, context) => {
1223
880
  Object.assign(contents, doc);
1224
881
  return contents;
1225
882
  };
1226
- const de_CreatePortalCommandError = async (output, context) => {
1227
- const parsedOutput = {
1228
- ...output,
1229
- body: await parseErrorBody(output.body, context),
1230
- };
1231
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1232
- switch (errorCode) {
1233
- case "AccessDeniedException":
1234
- case "com.amazonaws.workspacesweb#AccessDeniedException":
1235
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1236
- case "ConflictException":
1237
- case "com.amazonaws.workspacesweb#ConflictException":
1238
- throw await de_ConflictExceptionRes(parsedOutput, context);
1239
- case "InternalServerException":
1240
- case "com.amazonaws.workspacesweb#InternalServerException":
1241
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1242
- case "ResourceNotFoundException":
1243
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
1244
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1245
- case "ServiceQuotaExceededException":
1246
- case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
1247
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1248
- case "ThrottlingException":
1249
- case "com.amazonaws.workspacesweb#ThrottlingException":
1250
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1251
- case "ValidationException":
1252
- case "com.amazonaws.workspacesweb#ValidationException":
1253
- throw await de_ValidationExceptionRes(parsedOutput, context);
1254
- default:
1255
- const parsedBody = parsedOutput.body;
1256
- return throwDefaultError({
1257
- output,
1258
- parsedBody,
1259
- errorCode,
1260
- });
1261
- }
1262
- };
1263
883
  export const de_CreateTrustStoreCommand = async (output, context) => {
1264
884
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1265
- return de_CreateTrustStoreCommandError(output, context);
885
+ return de_CommandError(output, context);
1266
886
  }
1267
887
  const contents = map({
1268
888
  $metadata: deserializeMetadata(output),
@@ -1274,43 +894,9 @@ export const de_CreateTrustStoreCommand = async (output, context) => {
1274
894
  Object.assign(contents, doc);
1275
895
  return contents;
1276
896
  };
1277
- const de_CreateTrustStoreCommandError = async (output, context) => {
1278
- const parsedOutput = {
1279
- ...output,
1280
- body: await parseErrorBody(output.body, context),
1281
- };
1282
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1283
- switch (errorCode) {
1284
- case "AccessDeniedException":
1285
- case "com.amazonaws.workspacesweb#AccessDeniedException":
1286
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1287
- case "ConflictException":
1288
- case "com.amazonaws.workspacesweb#ConflictException":
1289
- throw await de_ConflictExceptionRes(parsedOutput, context);
1290
- case "InternalServerException":
1291
- case "com.amazonaws.workspacesweb#InternalServerException":
1292
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1293
- case "ServiceQuotaExceededException":
1294
- case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
1295
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1296
- case "ThrottlingException":
1297
- case "com.amazonaws.workspacesweb#ThrottlingException":
1298
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1299
- case "ValidationException":
1300
- case "com.amazonaws.workspacesweb#ValidationException":
1301
- throw await de_ValidationExceptionRes(parsedOutput, context);
1302
- default:
1303
- const parsedBody = parsedOutput.body;
1304
- return throwDefaultError({
1305
- output,
1306
- parsedBody,
1307
- errorCode,
1308
- });
1309
- }
1310
- };
1311
897
  export const de_CreateUserAccessLoggingSettingsCommand = async (output, context) => {
1312
898
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1313
- return de_CreateUserAccessLoggingSettingsCommandError(output, context);
899
+ return de_CommandError(output, context);
1314
900
  }
1315
901
  const contents = map({
1316
902
  $metadata: deserializeMetadata(output),
@@ -1322,43 +908,9 @@ export const de_CreateUserAccessLoggingSettingsCommand = async (output, context)
1322
908
  Object.assign(contents, doc);
1323
909
  return contents;
1324
910
  };
1325
- const de_CreateUserAccessLoggingSettingsCommandError = async (output, context) => {
1326
- const parsedOutput = {
1327
- ...output,
1328
- body: await parseErrorBody(output.body, context),
1329
- };
1330
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1331
- switch (errorCode) {
1332
- case "AccessDeniedException":
1333
- case "com.amazonaws.workspacesweb#AccessDeniedException":
1334
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1335
- case "ConflictException":
1336
- case "com.amazonaws.workspacesweb#ConflictException":
1337
- throw await de_ConflictExceptionRes(parsedOutput, context);
1338
- case "InternalServerException":
1339
- case "com.amazonaws.workspacesweb#InternalServerException":
1340
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1341
- case "ServiceQuotaExceededException":
1342
- case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
1343
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1344
- case "ThrottlingException":
1345
- case "com.amazonaws.workspacesweb#ThrottlingException":
1346
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1347
- case "ValidationException":
1348
- case "com.amazonaws.workspacesweb#ValidationException":
1349
- throw await de_ValidationExceptionRes(parsedOutput, context);
1350
- default:
1351
- const parsedBody = parsedOutput.body;
1352
- return throwDefaultError({
1353
- output,
1354
- parsedBody,
1355
- errorCode,
1356
- });
1357
- }
1358
- };
1359
911
  export const de_CreateUserSettingsCommand = async (output, context) => {
1360
912
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1361
- return de_CreateUserSettingsCommandError(output, context);
913
+ return de_CommandError(output, context);
1362
914
  }
1363
915
  const contents = map({
1364
916
  $metadata: deserializeMetadata(output),
@@ -1370,43 +922,19 @@ export const de_CreateUserSettingsCommand = async (output, context) => {
1370
922
  Object.assign(contents, doc);
1371
923
  return contents;
1372
924
  };
1373
- const de_CreateUserSettingsCommandError = async (output, context) => {
1374
- const parsedOutput = {
1375
- ...output,
1376
- body: await parseErrorBody(output.body, context),
1377
- };
1378
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1379
- switch (errorCode) {
1380
- case "AccessDeniedException":
1381
- case "com.amazonaws.workspacesweb#AccessDeniedException":
1382
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1383
- case "ConflictException":
1384
- case "com.amazonaws.workspacesweb#ConflictException":
1385
- throw await de_ConflictExceptionRes(parsedOutput, context);
1386
- case "InternalServerException":
1387
- case "com.amazonaws.workspacesweb#InternalServerException":
1388
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1389
- case "ServiceQuotaExceededException":
1390
- case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
1391
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1392
- case "ThrottlingException":
1393
- case "com.amazonaws.workspacesweb#ThrottlingException":
1394
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1395
- case "ValidationException":
1396
- case "com.amazonaws.workspacesweb#ValidationException":
1397
- throw await de_ValidationExceptionRes(parsedOutput, context);
1398
- default:
1399
- const parsedBody = parsedOutput.body;
1400
- return throwDefaultError({
1401
- output,
1402
- parsedBody,
1403
- errorCode,
1404
- });
925
+ export const de_DeleteBrowserSettingsCommand = async (output, context) => {
926
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
927
+ return de_CommandError(output, context);
1405
928
  }
929
+ const contents = map({
930
+ $metadata: deserializeMetadata(output),
931
+ });
932
+ await collectBody(output.body, context);
933
+ return contents;
1406
934
  };
1407
- export const de_DeleteBrowserSettingsCommand = async (output, context) => {
935
+ export const de_DeleteIdentityProviderCommand = async (output, context) => {
1408
936
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1409
- return de_DeleteBrowserSettingsCommandError(output, context);
937
+ return de_CommandError(output, context);
1410
938
  }
1411
939
  const contents = map({
1412
940
  $metadata: deserializeMetadata(output),
@@ -1414,40 +942,19 @@ export const de_DeleteBrowserSettingsCommand = async (output, context) => {
1414
942
  await collectBody(output.body, context);
1415
943
  return contents;
1416
944
  };
1417
- const de_DeleteBrowserSettingsCommandError = async (output, context) => {
1418
- const parsedOutput = {
1419
- ...output,
1420
- body: await parseErrorBody(output.body, context),
1421
- };
1422
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1423
- switch (errorCode) {
1424
- case "AccessDeniedException":
1425
- case "com.amazonaws.workspacesweb#AccessDeniedException":
1426
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1427
- case "ConflictException":
1428
- case "com.amazonaws.workspacesweb#ConflictException":
1429
- throw await de_ConflictExceptionRes(parsedOutput, context);
1430
- case "InternalServerException":
1431
- case "com.amazonaws.workspacesweb#InternalServerException":
1432
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1433
- case "ThrottlingException":
1434
- case "com.amazonaws.workspacesweb#ThrottlingException":
1435
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1436
- case "ValidationException":
1437
- case "com.amazonaws.workspacesweb#ValidationException":
1438
- throw await de_ValidationExceptionRes(parsedOutput, context);
1439
- default:
1440
- const parsedBody = parsedOutput.body;
1441
- return throwDefaultError({
1442
- output,
1443
- parsedBody,
1444
- errorCode,
1445
- });
945
+ export const de_DeleteIpAccessSettingsCommand = async (output, context) => {
946
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
947
+ return de_CommandError(output, context);
1446
948
  }
949
+ const contents = map({
950
+ $metadata: deserializeMetadata(output),
951
+ });
952
+ await collectBody(output.body, context);
953
+ return contents;
1447
954
  };
1448
- export const de_DeleteIdentityProviderCommand = async (output, context) => {
955
+ export const de_DeleteNetworkSettingsCommand = async (output, context) => {
1449
956
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1450
- return de_DeleteIdentityProviderCommandError(output, context);
957
+ return de_CommandError(output, context);
1451
958
  }
1452
959
  const contents = map({
1453
960
  $metadata: deserializeMetadata(output),
@@ -1455,122 +962,9 @@ export const de_DeleteIdentityProviderCommand = async (output, context) => {
1455
962
  await collectBody(output.body, context);
1456
963
  return contents;
1457
964
  };
1458
- const de_DeleteIdentityProviderCommandError = async (output, context) => {
1459
- const parsedOutput = {
1460
- ...output,
1461
- body: await parseErrorBody(output.body, context),
1462
- };
1463
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1464
- switch (errorCode) {
1465
- case "AccessDeniedException":
1466
- case "com.amazonaws.workspacesweb#AccessDeniedException":
1467
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1468
- case "ConflictException":
1469
- case "com.amazonaws.workspacesweb#ConflictException":
1470
- throw await de_ConflictExceptionRes(parsedOutput, context);
1471
- case "InternalServerException":
1472
- case "com.amazonaws.workspacesweb#InternalServerException":
1473
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1474
- case "ThrottlingException":
1475
- case "com.amazonaws.workspacesweb#ThrottlingException":
1476
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1477
- case "ValidationException":
1478
- case "com.amazonaws.workspacesweb#ValidationException":
1479
- throw await de_ValidationExceptionRes(parsedOutput, context);
1480
- default:
1481
- const parsedBody = parsedOutput.body;
1482
- return throwDefaultError({
1483
- output,
1484
- parsedBody,
1485
- errorCode,
1486
- });
1487
- }
1488
- };
1489
- export const de_DeleteIpAccessSettingsCommand = async (output, context) => {
1490
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1491
- return de_DeleteIpAccessSettingsCommandError(output, context);
1492
- }
1493
- const contents = map({
1494
- $metadata: deserializeMetadata(output),
1495
- });
1496
- await collectBody(output.body, context);
1497
- return contents;
1498
- };
1499
- const de_DeleteIpAccessSettingsCommandError = async (output, context) => {
1500
- const parsedOutput = {
1501
- ...output,
1502
- body: await parseErrorBody(output.body, context),
1503
- };
1504
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1505
- switch (errorCode) {
1506
- case "AccessDeniedException":
1507
- case "com.amazonaws.workspacesweb#AccessDeniedException":
1508
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1509
- case "ConflictException":
1510
- case "com.amazonaws.workspacesweb#ConflictException":
1511
- throw await de_ConflictExceptionRes(parsedOutput, context);
1512
- case "InternalServerException":
1513
- case "com.amazonaws.workspacesweb#InternalServerException":
1514
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1515
- case "ThrottlingException":
1516
- case "com.amazonaws.workspacesweb#ThrottlingException":
1517
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1518
- case "ValidationException":
1519
- case "com.amazonaws.workspacesweb#ValidationException":
1520
- throw await de_ValidationExceptionRes(parsedOutput, context);
1521
- default:
1522
- const parsedBody = parsedOutput.body;
1523
- return throwDefaultError({
1524
- output,
1525
- parsedBody,
1526
- errorCode,
1527
- });
1528
- }
1529
- };
1530
- export const de_DeleteNetworkSettingsCommand = async (output, context) => {
1531
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1532
- return de_DeleteNetworkSettingsCommandError(output, context);
1533
- }
1534
- const contents = map({
1535
- $metadata: deserializeMetadata(output),
1536
- });
1537
- await collectBody(output.body, context);
1538
- return contents;
1539
- };
1540
- const de_DeleteNetworkSettingsCommandError = async (output, context) => {
1541
- const parsedOutput = {
1542
- ...output,
1543
- body: await parseErrorBody(output.body, context),
1544
- };
1545
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1546
- switch (errorCode) {
1547
- case "AccessDeniedException":
1548
- case "com.amazonaws.workspacesweb#AccessDeniedException":
1549
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1550
- case "ConflictException":
1551
- case "com.amazonaws.workspacesweb#ConflictException":
1552
- throw await de_ConflictExceptionRes(parsedOutput, context);
1553
- case "InternalServerException":
1554
- case "com.amazonaws.workspacesweb#InternalServerException":
1555
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1556
- case "ThrottlingException":
1557
- case "com.amazonaws.workspacesweb#ThrottlingException":
1558
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1559
- case "ValidationException":
1560
- case "com.amazonaws.workspacesweb#ValidationException":
1561
- throw await de_ValidationExceptionRes(parsedOutput, context);
1562
- default:
1563
- const parsedBody = parsedOutput.body;
1564
- return throwDefaultError({
1565
- output,
1566
- parsedBody,
1567
- errorCode,
1568
- });
1569
- }
1570
- };
1571
965
  export const de_DeletePortalCommand = async (output, context) => {
1572
966
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1573
- return de_DeletePortalCommandError(output, context);
967
+ return de_CommandError(output, context);
1574
968
  }
1575
969
  const contents = map({
1576
970
  $metadata: deserializeMetadata(output),
@@ -1578,286 +972,19 @@ export const de_DeletePortalCommand = async (output, context) => {
1578
972
  await collectBody(output.body, context);
1579
973
  return contents;
1580
974
  };
1581
- const de_DeletePortalCommandError = async (output, context) => {
1582
- const parsedOutput = {
1583
- ...output,
1584
- body: await parseErrorBody(output.body, context),
1585
- };
1586
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1587
- switch (errorCode) {
1588
- case "AccessDeniedException":
1589
- case "com.amazonaws.workspacesweb#AccessDeniedException":
1590
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1591
- case "ConflictException":
1592
- case "com.amazonaws.workspacesweb#ConflictException":
1593
- throw await de_ConflictExceptionRes(parsedOutput, context);
1594
- case "InternalServerException":
1595
- case "com.amazonaws.workspacesweb#InternalServerException":
1596
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1597
- case "ThrottlingException":
1598
- case "com.amazonaws.workspacesweb#ThrottlingException":
1599
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1600
- case "ValidationException":
1601
- case "com.amazonaws.workspacesweb#ValidationException":
1602
- throw await de_ValidationExceptionRes(parsedOutput, context);
1603
- default:
1604
- const parsedBody = parsedOutput.body;
1605
- return throwDefaultError({
1606
- output,
1607
- parsedBody,
1608
- errorCode,
1609
- });
1610
- }
1611
- };
1612
975
  export const de_DeleteTrustStoreCommand = async (output, context) => {
1613
976
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1614
- return de_DeleteTrustStoreCommandError(output, context);
1615
- }
1616
- const contents = map({
1617
- $metadata: deserializeMetadata(output),
1618
- });
1619
- await collectBody(output.body, context);
1620
- return contents;
1621
- };
1622
- const de_DeleteTrustStoreCommandError = async (output, context) => {
1623
- const parsedOutput = {
1624
- ...output,
1625
- body: await parseErrorBody(output.body, context),
1626
- };
1627
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1628
- switch (errorCode) {
1629
- case "AccessDeniedException":
1630
- case "com.amazonaws.workspacesweb#AccessDeniedException":
1631
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1632
- case "ConflictException":
1633
- case "com.amazonaws.workspacesweb#ConflictException":
1634
- throw await de_ConflictExceptionRes(parsedOutput, context);
1635
- case "InternalServerException":
1636
- case "com.amazonaws.workspacesweb#InternalServerException":
1637
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1638
- case "ThrottlingException":
1639
- case "com.amazonaws.workspacesweb#ThrottlingException":
1640
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1641
- case "ValidationException":
1642
- case "com.amazonaws.workspacesweb#ValidationException":
1643
- throw await de_ValidationExceptionRes(parsedOutput, context);
1644
- default:
1645
- const parsedBody = parsedOutput.body;
1646
- return throwDefaultError({
1647
- output,
1648
- parsedBody,
1649
- errorCode,
1650
- });
1651
- }
1652
- };
1653
- export const de_DeleteUserAccessLoggingSettingsCommand = async (output, context) => {
1654
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1655
- return de_DeleteUserAccessLoggingSettingsCommandError(output, context);
1656
- }
1657
- const contents = map({
1658
- $metadata: deserializeMetadata(output),
1659
- });
1660
- await collectBody(output.body, context);
1661
- return contents;
1662
- };
1663
- const de_DeleteUserAccessLoggingSettingsCommandError = async (output, context) => {
1664
- const parsedOutput = {
1665
- ...output,
1666
- body: await parseErrorBody(output.body, context),
1667
- };
1668
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1669
- switch (errorCode) {
1670
- case "AccessDeniedException":
1671
- case "com.amazonaws.workspacesweb#AccessDeniedException":
1672
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1673
- case "ConflictException":
1674
- case "com.amazonaws.workspacesweb#ConflictException":
1675
- throw await de_ConflictExceptionRes(parsedOutput, context);
1676
- case "InternalServerException":
1677
- case "com.amazonaws.workspacesweb#InternalServerException":
1678
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1679
- case "ThrottlingException":
1680
- case "com.amazonaws.workspacesweb#ThrottlingException":
1681
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1682
- case "ValidationException":
1683
- case "com.amazonaws.workspacesweb#ValidationException":
1684
- throw await de_ValidationExceptionRes(parsedOutput, context);
1685
- default:
1686
- const parsedBody = parsedOutput.body;
1687
- return throwDefaultError({
1688
- output,
1689
- parsedBody,
1690
- errorCode,
1691
- });
1692
- }
1693
- };
1694
- export const de_DeleteUserSettingsCommand = async (output, context) => {
1695
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1696
- return de_DeleteUserSettingsCommandError(output, context);
1697
- }
1698
- const contents = map({
1699
- $metadata: deserializeMetadata(output),
1700
- });
1701
- await collectBody(output.body, context);
1702
- return contents;
1703
- };
1704
- const de_DeleteUserSettingsCommandError = async (output, context) => {
1705
- const parsedOutput = {
1706
- ...output,
1707
- body: await parseErrorBody(output.body, context),
1708
- };
1709
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1710
- switch (errorCode) {
1711
- case "AccessDeniedException":
1712
- case "com.amazonaws.workspacesweb#AccessDeniedException":
1713
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1714
- case "ConflictException":
1715
- case "com.amazonaws.workspacesweb#ConflictException":
1716
- throw await de_ConflictExceptionRes(parsedOutput, context);
1717
- case "InternalServerException":
1718
- case "com.amazonaws.workspacesweb#InternalServerException":
1719
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1720
- case "ThrottlingException":
1721
- case "com.amazonaws.workspacesweb#ThrottlingException":
1722
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1723
- case "ValidationException":
1724
- case "com.amazonaws.workspacesweb#ValidationException":
1725
- throw await de_ValidationExceptionRes(parsedOutput, context);
1726
- default:
1727
- const parsedBody = parsedOutput.body;
1728
- return throwDefaultError({
1729
- output,
1730
- parsedBody,
1731
- errorCode,
1732
- });
1733
- }
1734
- };
1735
- export const de_DisassociateBrowserSettingsCommand = async (output, context) => {
1736
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1737
- return de_DisassociateBrowserSettingsCommandError(output, context);
1738
- }
1739
- const contents = map({
1740
- $metadata: deserializeMetadata(output),
1741
- });
1742
- await collectBody(output.body, context);
1743
- return contents;
1744
- };
1745
- const de_DisassociateBrowserSettingsCommandError = async (output, context) => {
1746
- const parsedOutput = {
1747
- ...output,
1748
- body: await parseErrorBody(output.body, context),
1749
- };
1750
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1751
- switch (errorCode) {
1752
- case "AccessDeniedException":
1753
- case "com.amazonaws.workspacesweb#AccessDeniedException":
1754
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1755
- case "InternalServerException":
1756
- case "com.amazonaws.workspacesweb#InternalServerException":
1757
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1758
- case "ResourceNotFoundException":
1759
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
1760
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1761
- case "ThrottlingException":
1762
- case "com.amazonaws.workspacesweb#ThrottlingException":
1763
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1764
- case "ValidationException":
1765
- case "com.amazonaws.workspacesweb#ValidationException":
1766
- throw await de_ValidationExceptionRes(parsedOutput, context);
1767
- default:
1768
- const parsedBody = parsedOutput.body;
1769
- return throwDefaultError({
1770
- output,
1771
- parsedBody,
1772
- errorCode,
1773
- });
1774
- }
1775
- };
1776
- export const de_DisassociateIpAccessSettingsCommand = async (output, context) => {
1777
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1778
- return de_DisassociateIpAccessSettingsCommandError(output, context);
977
+ return de_CommandError(output, context);
1779
978
  }
1780
979
  const contents = map({
1781
980
  $metadata: deserializeMetadata(output),
1782
981
  });
1783
982
  await collectBody(output.body, context);
1784
- return contents;
1785
- };
1786
- const de_DisassociateIpAccessSettingsCommandError = async (output, context) => {
1787
- const parsedOutput = {
1788
- ...output,
1789
- body: await parseErrorBody(output.body, context),
1790
- };
1791
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1792
- switch (errorCode) {
1793
- case "AccessDeniedException":
1794
- case "com.amazonaws.workspacesweb#AccessDeniedException":
1795
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1796
- case "InternalServerException":
1797
- case "com.amazonaws.workspacesweb#InternalServerException":
1798
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1799
- case "ResourceNotFoundException":
1800
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
1801
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1802
- case "ThrottlingException":
1803
- case "com.amazonaws.workspacesweb#ThrottlingException":
1804
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1805
- case "ValidationException":
1806
- case "com.amazonaws.workspacesweb#ValidationException":
1807
- throw await de_ValidationExceptionRes(parsedOutput, context);
1808
- default:
1809
- const parsedBody = parsedOutput.body;
1810
- return throwDefaultError({
1811
- output,
1812
- parsedBody,
1813
- errorCode,
1814
- });
1815
- }
1816
- };
1817
- export const de_DisassociateNetworkSettingsCommand = async (output, context) => {
1818
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1819
- return de_DisassociateNetworkSettingsCommandError(output, context);
1820
- }
1821
- const contents = map({
1822
- $metadata: deserializeMetadata(output),
1823
- });
1824
- await collectBody(output.body, context);
1825
- return contents;
1826
- };
1827
- const de_DisassociateNetworkSettingsCommandError = 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.workspacesweb#AccessDeniedException":
1836
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1837
- case "InternalServerException":
1838
- case "com.amazonaws.workspacesweb#InternalServerException":
1839
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1840
- case "ResourceNotFoundException":
1841
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
1842
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1843
- case "ThrottlingException":
1844
- case "com.amazonaws.workspacesweb#ThrottlingException":
1845
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1846
- case "ValidationException":
1847
- case "com.amazonaws.workspacesweb#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
- }
983
+ return contents;
1857
984
  };
1858
- export const de_DisassociateTrustStoreCommand = async (output, context) => {
985
+ export const de_DeleteUserAccessLoggingSettingsCommand = async (output, context) => {
1859
986
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1860
- return de_DisassociateTrustStoreCommandError(output, context);
987
+ return de_CommandError(output, context);
1861
988
  }
1862
989
  const contents = map({
1863
990
  $metadata: deserializeMetadata(output),
@@ -1865,40 +992,9 @@ export const de_DisassociateTrustStoreCommand = async (output, context) => {
1865
992
  await collectBody(output.body, context);
1866
993
  return contents;
1867
994
  };
1868
- const de_DisassociateTrustStoreCommandError = async (output, context) => {
1869
- const parsedOutput = {
1870
- ...output,
1871
- body: await parseErrorBody(output.body, context),
1872
- };
1873
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1874
- switch (errorCode) {
1875
- case "AccessDeniedException":
1876
- case "com.amazonaws.workspacesweb#AccessDeniedException":
1877
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1878
- case "InternalServerException":
1879
- case "com.amazonaws.workspacesweb#InternalServerException":
1880
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1881
- case "ResourceNotFoundException":
1882
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
1883
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1884
- case "ThrottlingException":
1885
- case "com.amazonaws.workspacesweb#ThrottlingException":
1886
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1887
- case "ValidationException":
1888
- case "com.amazonaws.workspacesweb#ValidationException":
1889
- throw await de_ValidationExceptionRes(parsedOutput, context);
1890
- default:
1891
- const parsedBody = parsedOutput.body;
1892
- return throwDefaultError({
1893
- output,
1894
- parsedBody,
1895
- errorCode,
1896
- });
1897
- }
1898
- };
1899
- export const de_DisassociateUserAccessLoggingSettingsCommand = async (output, context) => {
995
+ export const de_DeleteUserSettingsCommand = async (output, context) => {
1900
996
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1901
- return de_DisassociateUserAccessLoggingSettingsCommandError(output, context);
997
+ return de_CommandError(output, context);
1902
998
  }
1903
999
  const contents = map({
1904
1000
  $metadata: deserializeMetadata(output),
@@ -1906,40 +1002,9 @@ export const de_DisassociateUserAccessLoggingSettingsCommand = async (output, co
1906
1002
  await collectBody(output.body, context);
1907
1003
  return contents;
1908
1004
  };
1909
- const de_DisassociateUserAccessLoggingSettingsCommandError = async (output, context) => {
1910
- const parsedOutput = {
1911
- ...output,
1912
- body: await parseErrorBody(output.body, context),
1913
- };
1914
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1915
- switch (errorCode) {
1916
- case "AccessDeniedException":
1917
- case "com.amazonaws.workspacesweb#AccessDeniedException":
1918
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1919
- case "InternalServerException":
1920
- case "com.amazonaws.workspacesweb#InternalServerException":
1921
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1922
- case "ResourceNotFoundException":
1923
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
1924
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1925
- case "ThrottlingException":
1926
- case "com.amazonaws.workspacesweb#ThrottlingException":
1927
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1928
- case "ValidationException":
1929
- case "com.amazonaws.workspacesweb#ValidationException":
1930
- throw await de_ValidationExceptionRes(parsedOutput, context);
1931
- default:
1932
- const parsedBody = parsedOutput.body;
1933
- return throwDefaultError({
1934
- output,
1935
- parsedBody,
1936
- errorCode,
1937
- });
1938
- }
1939
- };
1940
- export const de_DisassociateUserSettingsCommand = async (output, context) => {
1005
+ export const de_DisassociateBrowserSettingsCommand = async (output, context) => {
1941
1006
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1942
- return de_DisassociateUserSettingsCommandError(output, context);
1007
+ return de_CommandError(output, context);
1943
1008
  }
1944
1009
  const contents = map({
1945
1010
  $metadata: deserializeMetadata(output),
@@ -1947,265 +1012,129 @@ export const de_DisassociateUserSettingsCommand = async (output, context) => {
1947
1012
  await collectBody(output.body, context);
1948
1013
  return contents;
1949
1014
  };
1950
- const de_DisassociateUserSettingsCommandError = async (output, context) => {
1951
- const parsedOutput = {
1952
- ...output,
1953
- body: await parseErrorBody(output.body, context),
1954
- };
1955
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1956
- switch (errorCode) {
1957
- case "AccessDeniedException":
1958
- case "com.amazonaws.workspacesweb#AccessDeniedException":
1959
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1960
- case "InternalServerException":
1961
- case "com.amazonaws.workspacesweb#InternalServerException":
1962
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1963
- case "ResourceNotFoundException":
1964
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
1965
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1966
- case "ThrottlingException":
1967
- case "com.amazonaws.workspacesweb#ThrottlingException":
1968
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1969
- case "ValidationException":
1970
- case "com.amazonaws.workspacesweb#ValidationException":
1971
- throw await de_ValidationExceptionRes(parsedOutput, context);
1972
- default:
1973
- const parsedBody = parsedOutput.body;
1974
- return throwDefaultError({
1975
- output,
1976
- parsedBody,
1977
- errorCode,
1978
- });
1015
+ export const de_DisassociateIpAccessSettingsCommand = async (output, context) => {
1016
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1017
+ return de_CommandError(output, context);
1979
1018
  }
1019
+ const contents = map({
1020
+ $metadata: deserializeMetadata(output),
1021
+ });
1022
+ await collectBody(output.body, context);
1023
+ return contents;
1980
1024
  };
1981
- export const de_GetBrowserSettingsCommand = async (output, context) => {
1025
+ export const de_DisassociateNetworkSettingsCommand = async (output, context) => {
1982
1026
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1983
- return de_GetBrowserSettingsCommandError(output, context);
1027
+ return de_CommandError(output, context);
1984
1028
  }
1985
1029
  const contents = map({
1986
1030
  $metadata: deserializeMetadata(output),
1987
1031
  });
1988
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1989
- const doc = take(data, {
1990
- browserSettings: _json,
1991
- });
1992
- Object.assign(contents, doc);
1032
+ await collectBody(output.body, context);
1993
1033
  return contents;
1994
1034
  };
1995
- const de_GetBrowserSettingsCommandError = async (output, context) => {
1996
- const parsedOutput = {
1997
- ...output,
1998
- body: await parseErrorBody(output.body, context),
1999
- };
2000
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2001
- switch (errorCode) {
2002
- case "AccessDeniedException":
2003
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2004
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2005
- case "InternalServerException":
2006
- case "com.amazonaws.workspacesweb#InternalServerException":
2007
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2008
- case "ResourceNotFoundException":
2009
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
2010
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2011
- case "ThrottlingException":
2012
- case "com.amazonaws.workspacesweb#ThrottlingException":
2013
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2014
- case "ValidationException":
2015
- case "com.amazonaws.workspacesweb#ValidationException":
2016
- throw await de_ValidationExceptionRes(parsedOutput, context);
2017
- default:
2018
- const parsedBody = parsedOutput.body;
2019
- return throwDefaultError({
2020
- output,
2021
- parsedBody,
2022
- errorCode,
2023
- });
1035
+ export const de_DisassociateTrustStoreCommand = async (output, context) => {
1036
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1037
+ return de_CommandError(output, context);
2024
1038
  }
1039
+ const contents = map({
1040
+ $metadata: deserializeMetadata(output),
1041
+ });
1042
+ await collectBody(output.body, context);
1043
+ return contents;
2025
1044
  };
2026
- export const de_GetIdentityProviderCommand = async (output, context) => {
1045
+ export const de_DisassociateUserAccessLoggingSettingsCommand = async (output, context) => {
2027
1046
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2028
- return de_GetIdentityProviderCommandError(output, context);
1047
+ return de_CommandError(output, context);
2029
1048
  }
2030
1049
  const contents = map({
2031
1050
  $metadata: deserializeMetadata(output),
2032
1051
  });
2033
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2034
- const doc = take(data, {
2035
- identityProvider: _json,
2036
- });
2037
- Object.assign(contents, doc);
1052
+ await collectBody(output.body, context);
2038
1053
  return contents;
2039
1054
  };
2040
- const de_GetIdentityProviderCommandError = async (output, context) => {
2041
- const parsedOutput = {
2042
- ...output,
2043
- body: await parseErrorBody(output.body, context),
2044
- };
2045
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2046
- switch (errorCode) {
2047
- case "AccessDeniedException":
2048
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2049
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2050
- case "InternalServerException":
2051
- case "com.amazonaws.workspacesweb#InternalServerException":
2052
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2053
- case "ResourceNotFoundException":
2054
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
2055
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2056
- case "ThrottlingException":
2057
- case "com.amazonaws.workspacesweb#ThrottlingException":
2058
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2059
- case "ValidationException":
2060
- case "com.amazonaws.workspacesweb#ValidationException":
2061
- throw await de_ValidationExceptionRes(parsedOutput, context);
2062
- default:
2063
- const parsedBody = parsedOutput.body;
2064
- return throwDefaultError({
2065
- output,
2066
- parsedBody,
2067
- errorCode,
2068
- });
1055
+ export const de_DisassociateUserSettingsCommand = async (output, context) => {
1056
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1057
+ return de_CommandError(output, context);
2069
1058
  }
1059
+ const contents = map({
1060
+ $metadata: deserializeMetadata(output),
1061
+ });
1062
+ await collectBody(output.body, context);
1063
+ return contents;
2070
1064
  };
2071
- export const de_GetIpAccessSettingsCommand = async (output, context) => {
1065
+ export const de_GetBrowserSettingsCommand = async (output, context) => {
2072
1066
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2073
- return de_GetIpAccessSettingsCommandError(output, context);
1067
+ return de_CommandError(output, context);
2074
1068
  }
2075
1069
  const contents = map({
2076
1070
  $metadata: deserializeMetadata(output),
2077
1071
  });
2078
1072
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2079
1073
  const doc = take(data, {
2080
- ipAccessSettings: (_) => de_IpAccessSettings(_, context),
1074
+ browserSettings: _json,
2081
1075
  });
2082
1076
  Object.assign(contents, doc);
2083
1077
  return contents;
2084
1078
  };
2085
- const de_GetIpAccessSettingsCommandError = async (output, context) => {
2086
- const parsedOutput = {
2087
- ...output,
2088
- body: await parseErrorBody(output.body, context),
2089
- };
2090
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2091
- switch (errorCode) {
2092
- case "AccessDeniedException":
2093
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2094
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2095
- case "InternalServerException":
2096
- case "com.amazonaws.workspacesweb#InternalServerException":
2097
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2098
- case "ResourceNotFoundException":
2099
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
2100
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2101
- case "ThrottlingException":
2102
- case "com.amazonaws.workspacesweb#ThrottlingException":
2103
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2104
- case "ValidationException":
2105
- case "com.amazonaws.workspacesweb#ValidationException":
2106
- throw await de_ValidationExceptionRes(parsedOutput, context);
2107
- default:
2108
- const parsedBody = parsedOutput.body;
2109
- return throwDefaultError({
2110
- output,
2111
- parsedBody,
2112
- errorCode,
2113
- });
2114
- }
2115
- };
2116
- export const de_GetNetworkSettingsCommand = async (output, context) => {
1079
+ export const de_GetIdentityProviderCommand = async (output, context) => {
2117
1080
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2118
- return de_GetNetworkSettingsCommandError(output, context);
1081
+ return de_CommandError(output, context);
2119
1082
  }
2120
1083
  const contents = map({
2121
1084
  $metadata: deserializeMetadata(output),
2122
1085
  });
2123
1086
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2124
1087
  const doc = take(data, {
2125
- networkSettings: _json,
1088
+ identityProvider: _json,
2126
1089
  });
2127
1090
  Object.assign(contents, doc);
2128
1091
  return contents;
2129
1092
  };
2130
- const de_GetNetworkSettingsCommandError = async (output, context) => {
2131
- const parsedOutput = {
2132
- ...output,
2133
- body: await parseErrorBody(output.body, context),
2134
- };
2135
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2136
- switch (errorCode) {
2137
- case "AccessDeniedException":
2138
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2139
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2140
- case "InternalServerException":
2141
- case "com.amazonaws.workspacesweb#InternalServerException":
2142
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2143
- case "ResourceNotFoundException":
2144
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
2145
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2146
- case "ThrottlingException":
2147
- case "com.amazonaws.workspacesweb#ThrottlingException":
2148
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2149
- case "ValidationException":
2150
- case "com.amazonaws.workspacesweb#ValidationException":
2151
- throw await de_ValidationExceptionRes(parsedOutput, context);
2152
- default:
2153
- const parsedBody = parsedOutput.body;
2154
- return throwDefaultError({
2155
- output,
2156
- parsedBody,
2157
- errorCode,
2158
- });
1093
+ export const de_GetIpAccessSettingsCommand = async (output, context) => {
1094
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1095
+ return de_CommandError(output, context);
2159
1096
  }
1097
+ const contents = map({
1098
+ $metadata: deserializeMetadata(output),
1099
+ });
1100
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1101
+ const doc = take(data, {
1102
+ ipAccessSettings: (_) => de_IpAccessSettings(_, context),
1103
+ });
1104
+ Object.assign(contents, doc);
1105
+ return contents;
2160
1106
  };
2161
- export const de_GetPortalCommand = async (output, context) => {
1107
+ export const de_GetNetworkSettingsCommand = async (output, context) => {
2162
1108
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2163
- return de_GetPortalCommandError(output, context);
1109
+ return de_CommandError(output, context);
2164
1110
  }
2165
1111
  const contents = map({
2166
1112
  $metadata: deserializeMetadata(output),
2167
1113
  });
2168
1114
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2169
1115
  const doc = take(data, {
2170
- portal: (_) => de_Portal(_, context),
1116
+ networkSettings: _json,
2171
1117
  });
2172
1118
  Object.assign(contents, doc);
2173
1119
  return contents;
2174
1120
  };
2175
- const de_GetPortalCommandError = async (output, context) => {
2176
- const parsedOutput = {
2177
- ...output,
2178
- body: await parseErrorBody(output.body, context),
2179
- };
2180
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2181
- switch (errorCode) {
2182
- case "AccessDeniedException":
2183
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2184
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2185
- case "InternalServerException":
2186
- case "com.amazonaws.workspacesweb#InternalServerException":
2187
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2188
- case "ResourceNotFoundException":
2189
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
2190
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2191
- case "ThrottlingException":
2192
- case "com.amazonaws.workspacesweb#ThrottlingException":
2193
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2194
- case "ValidationException":
2195
- case "com.amazonaws.workspacesweb#ValidationException":
2196
- throw await de_ValidationExceptionRes(parsedOutput, context);
2197
- default:
2198
- const parsedBody = parsedOutput.body;
2199
- return throwDefaultError({
2200
- output,
2201
- parsedBody,
2202
- errorCode,
2203
- });
1121
+ export const de_GetPortalCommand = async (output, context) => {
1122
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1123
+ return de_CommandError(output, context);
2204
1124
  }
1125
+ const contents = map({
1126
+ $metadata: deserializeMetadata(output),
1127
+ });
1128
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1129
+ const doc = take(data, {
1130
+ portal: (_) => de_Portal(_, context),
1131
+ });
1132
+ Object.assign(contents, doc);
1133
+ return contents;
2205
1134
  };
2206
1135
  export const de_GetPortalServiceProviderMetadataCommand = async (output, context) => {
2207
1136
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2208
- return de_GetPortalServiceProviderMetadataCommandError(output, context);
1137
+ return de_CommandError(output, context);
2209
1138
  }
2210
1139
  const contents = map({
2211
1140
  $metadata: deserializeMetadata(output),
@@ -2218,40 +1147,9 @@ export const de_GetPortalServiceProviderMetadataCommand = async (output, context
2218
1147
  Object.assign(contents, doc);
2219
1148
  return contents;
2220
1149
  };
2221
- const de_GetPortalServiceProviderMetadataCommandError = async (output, context) => {
2222
- const parsedOutput = {
2223
- ...output,
2224
- body: await parseErrorBody(output.body, context),
2225
- };
2226
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2227
- switch (errorCode) {
2228
- case "AccessDeniedException":
2229
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2230
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2231
- case "InternalServerException":
2232
- case "com.amazonaws.workspacesweb#InternalServerException":
2233
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2234
- case "ResourceNotFoundException":
2235
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
2236
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2237
- case "ThrottlingException":
2238
- case "com.amazonaws.workspacesweb#ThrottlingException":
2239
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2240
- case "ValidationException":
2241
- case "com.amazonaws.workspacesweb#ValidationException":
2242
- throw await de_ValidationExceptionRes(parsedOutput, context);
2243
- default:
2244
- const parsedBody = parsedOutput.body;
2245
- return throwDefaultError({
2246
- output,
2247
- parsedBody,
2248
- errorCode,
2249
- });
2250
- }
2251
- };
2252
1150
  export const de_GetTrustStoreCommand = async (output, context) => {
2253
1151
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2254
- return de_GetTrustStoreCommandError(output, context);
1152
+ return de_CommandError(output, context);
2255
1153
  }
2256
1154
  const contents = map({
2257
1155
  $metadata: deserializeMetadata(output),
@@ -2263,40 +1161,9 @@ export const de_GetTrustStoreCommand = async (output, context) => {
2263
1161
  Object.assign(contents, doc);
2264
1162
  return contents;
2265
1163
  };
2266
- const de_GetTrustStoreCommandError = async (output, context) => {
2267
- const parsedOutput = {
2268
- ...output,
2269
- body: await parseErrorBody(output.body, context),
2270
- };
2271
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2272
- switch (errorCode) {
2273
- case "AccessDeniedException":
2274
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2275
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2276
- case "InternalServerException":
2277
- case "com.amazonaws.workspacesweb#InternalServerException":
2278
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2279
- case "ResourceNotFoundException":
2280
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
2281
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2282
- case "ThrottlingException":
2283
- case "com.amazonaws.workspacesweb#ThrottlingException":
2284
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2285
- case "ValidationException":
2286
- case "com.amazonaws.workspacesweb#ValidationException":
2287
- throw await de_ValidationExceptionRes(parsedOutput, context);
2288
- default:
2289
- const parsedBody = parsedOutput.body;
2290
- return throwDefaultError({
2291
- output,
2292
- parsedBody,
2293
- errorCode,
2294
- });
2295
- }
2296
- };
2297
1164
  export const de_GetTrustStoreCertificateCommand = async (output, context) => {
2298
1165
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2299
- return de_GetTrustStoreCertificateCommandError(output, context);
1166
+ return de_CommandError(output, context);
2300
1167
  }
2301
1168
  const contents = map({
2302
1169
  $metadata: deserializeMetadata(output),
@@ -2309,40 +1176,9 @@ export const de_GetTrustStoreCertificateCommand = async (output, context) => {
2309
1176
  Object.assign(contents, doc);
2310
1177
  return contents;
2311
1178
  };
2312
- const de_GetTrustStoreCertificateCommandError = async (output, context) => {
2313
- const parsedOutput = {
2314
- ...output,
2315
- body: await parseErrorBody(output.body, context),
2316
- };
2317
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2318
- switch (errorCode) {
2319
- case "AccessDeniedException":
2320
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2321
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2322
- case "InternalServerException":
2323
- case "com.amazonaws.workspacesweb#InternalServerException":
2324
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2325
- case "ResourceNotFoundException":
2326
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
2327
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2328
- case "ThrottlingException":
2329
- case "com.amazonaws.workspacesweb#ThrottlingException":
2330
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2331
- case "ValidationException":
2332
- case "com.amazonaws.workspacesweb#ValidationException":
2333
- throw await de_ValidationExceptionRes(parsedOutput, context);
2334
- default:
2335
- const parsedBody = parsedOutput.body;
2336
- return throwDefaultError({
2337
- output,
2338
- parsedBody,
2339
- errorCode,
2340
- });
2341
- }
2342
- };
2343
1179
  export const de_GetUserAccessLoggingSettingsCommand = async (output, context) => {
2344
1180
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2345
- return de_GetUserAccessLoggingSettingsCommandError(output, context);
1181
+ return de_CommandError(output, context);
2346
1182
  }
2347
1183
  const contents = map({
2348
1184
  $metadata: deserializeMetadata(output),
@@ -2354,40 +1190,9 @@ export const de_GetUserAccessLoggingSettingsCommand = async (output, context) =>
2354
1190
  Object.assign(contents, doc);
2355
1191
  return contents;
2356
1192
  };
2357
- const de_GetUserAccessLoggingSettingsCommandError = async (output, context) => {
2358
- const parsedOutput = {
2359
- ...output,
2360
- body: await parseErrorBody(output.body, context),
2361
- };
2362
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2363
- switch (errorCode) {
2364
- case "AccessDeniedException":
2365
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2366
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2367
- case "InternalServerException":
2368
- case "com.amazonaws.workspacesweb#InternalServerException":
2369
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2370
- case "ResourceNotFoundException":
2371
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
2372
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2373
- case "ThrottlingException":
2374
- case "com.amazonaws.workspacesweb#ThrottlingException":
2375
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2376
- case "ValidationException":
2377
- case "com.amazonaws.workspacesweb#ValidationException":
2378
- throw await de_ValidationExceptionRes(parsedOutput, context);
2379
- default:
2380
- const parsedBody = parsedOutput.body;
2381
- return throwDefaultError({
2382
- output,
2383
- parsedBody,
2384
- errorCode,
2385
- });
2386
- }
2387
- };
2388
1193
  export const de_GetUserSettingsCommand = async (output, context) => {
2389
1194
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2390
- return de_GetUserSettingsCommandError(output, context);
1195
+ return de_CommandError(output, context);
2391
1196
  }
2392
1197
  const contents = map({
2393
1198
  $metadata: deserializeMetadata(output),
@@ -2399,40 +1204,9 @@ export const de_GetUserSettingsCommand = async (output, context) => {
2399
1204
  Object.assign(contents, doc);
2400
1205
  return contents;
2401
1206
  };
2402
- const de_GetUserSettingsCommandError = async (output, context) => {
2403
- const parsedOutput = {
2404
- ...output,
2405
- body: await parseErrorBody(output.body, context),
2406
- };
2407
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2408
- switch (errorCode) {
2409
- case "AccessDeniedException":
2410
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2411
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2412
- case "InternalServerException":
2413
- case "com.amazonaws.workspacesweb#InternalServerException":
2414
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2415
- case "ResourceNotFoundException":
2416
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
2417
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2418
- case "ThrottlingException":
2419
- case "com.amazonaws.workspacesweb#ThrottlingException":
2420
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2421
- case "ValidationException":
2422
- case "com.amazonaws.workspacesweb#ValidationException":
2423
- throw await de_ValidationExceptionRes(parsedOutput, context);
2424
- default:
2425
- const parsedBody = parsedOutput.body;
2426
- return throwDefaultError({
2427
- output,
2428
- parsedBody,
2429
- errorCode,
2430
- });
2431
- }
2432
- };
2433
1207
  export const de_ListBrowserSettingsCommand = async (output, context) => {
2434
1208
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2435
- return de_ListBrowserSettingsCommandError(output, context);
1209
+ return de_CommandError(output, context);
2436
1210
  }
2437
1211
  const contents = map({
2438
1212
  $metadata: deserializeMetadata(output),
@@ -2445,37 +1219,9 @@ export const de_ListBrowserSettingsCommand = async (output, context) => {
2445
1219
  Object.assign(contents, doc);
2446
1220
  return contents;
2447
1221
  };
2448
- const de_ListBrowserSettingsCommandError = async (output, context) => {
2449
- const parsedOutput = {
2450
- ...output,
2451
- body: await parseErrorBody(output.body, context),
2452
- };
2453
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2454
- switch (errorCode) {
2455
- case "AccessDeniedException":
2456
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2457
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2458
- case "InternalServerException":
2459
- case "com.amazonaws.workspacesweb#InternalServerException":
2460
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2461
- case "ThrottlingException":
2462
- case "com.amazonaws.workspacesweb#ThrottlingException":
2463
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2464
- case "ValidationException":
2465
- case "com.amazonaws.workspacesweb#ValidationException":
2466
- throw await de_ValidationExceptionRes(parsedOutput, context);
2467
- default:
2468
- const parsedBody = parsedOutput.body;
2469
- return throwDefaultError({
2470
- output,
2471
- parsedBody,
2472
- errorCode,
2473
- });
2474
- }
2475
- };
2476
1222
  export const de_ListIdentityProvidersCommand = async (output, context) => {
2477
1223
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2478
- return de_ListIdentityProvidersCommandError(output, context);
1224
+ return de_CommandError(output, context);
2479
1225
  }
2480
1226
  const contents = map({
2481
1227
  $metadata: deserializeMetadata(output),
@@ -2488,37 +1234,9 @@ export const de_ListIdentityProvidersCommand = async (output, context) => {
2488
1234
  Object.assign(contents, doc);
2489
1235
  return contents;
2490
1236
  };
2491
- const de_ListIdentityProvidersCommandError = async (output, context) => {
2492
- const parsedOutput = {
2493
- ...output,
2494
- body: await parseErrorBody(output.body, context),
2495
- };
2496
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2497
- switch (errorCode) {
2498
- case "AccessDeniedException":
2499
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2500
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2501
- case "InternalServerException":
2502
- case "com.amazonaws.workspacesweb#InternalServerException":
2503
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2504
- case "ThrottlingException":
2505
- case "com.amazonaws.workspacesweb#ThrottlingException":
2506
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2507
- case "ValidationException":
2508
- case "com.amazonaws.workspacesweb#ValidationException":
2509
- throw await de_ValidationExceptionRes(parsedOutput, context);
2510
- default:
2511
- const parsedBody = parsedOutput.body;
2512
- return throwDefaultError({
2513
- output,
2514
- parsedBody,
2515
- errorCode,
2516
- });
2517
- }
2518
- };
2519
1237
  export const de_ListIpAccessSettingsCommand = async (output, context) => {
2520
1238
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2521
- return de_ListIpAccessSettingsCommandError(output, context);
1239
+ return de_CommandError(output, context);
2522
1240
  }
2523
1241
  const contents = map({
2524
1242
  $metadata: deserializeMetadata(output),
@@ -2531,37 +1249,9 @@ export const de_ListIpAccessSettingsCommand = async (output, context) => {
2531
1249
  Object.assign(contents, doc);
2532
1250
  return contents;
2533
1251
  };
2534
- const de_ListIpAccessSettingsCommandError = async (output, context) => {
2535
- const parsedOutput = {
2536
- ...output,
2537
- body: await parseErrorBody(output.body, context),
2538
- };
2539
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2540
- switch (errorCode) {
2541
- case "AccessDeniedException":
2542
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2543
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2544
- case "InternalServerException":
2545
- case "com.amazonaws.workspacesweb#InternalServerException":
2546
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2547
- case "ThrottlingException":
2548
- case "com.amazonaws.workspacesweb#ThrottlingException":
2549
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2550
- case "ValidationException":
2551
- case "com.amazonaws.workspacesweb#ValidationException":
2552
- throw await de_ValidationExceptionRes(parsedOutput, context);
2553
- default:
2554
- const parsedBody = parsedOutput.body;
2555
- return throwDefaultError({
2556
- output,
2557
- parsedBody,
2558
- errorCode,
2559
- });
2560
- }
2561
- };
2562
1252
  export const de_ListNetworkSettingsCommand = async (output, context) => {
2563
1253
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2564
- return de_ListNetworkSettingsCommandError(output, context);
1254
+ return de_CommandError(output, context);
2565
1255
  }
2566
1256
  const contents = map({
2567
1257
  $metadata: deserializeMetadata(output),
@@ -2574,37 +1264,9 @@ export const de_ListNetworkSettingsCommand = async (output, context) => {
2574
1264
  Object.assign(contents, doc);
2575
1265
  return contents;
2576
1266
  };
2577
- const de_ListNetworkSettingsCommandError = async (output, context) => {
2578
- const parsedOutput = {
2579
- ...output,
2580
- body: await parseErrorBody(output.body, context),
2581
- };
2582
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2583
- switch (errorCode) {
2584
- case "AccessDeniedException":
2585
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2586
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2587
- case "InternalServerException":
2588
- case "com.amazonaws.workspacesweb#InternalServerException":
2589
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2590
- case "ThrottlingException":
2591
- case "com.amazonaws.workspacesweb#ThrottlingException":
2592
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2593
- case "ValidationException":
2594
- case "com.amazonaws.workspacesweb#ValidationException":
2595
- throw await de_ValidationExceptionRes(parsedOutput, context);
2596
- default:
2597
- const parsedBody = parsedOutput.body;
2598
- return throwDefaultError({
2599
- output,
2600
- parsedBody,
2601
- errorCode,
2602
- });
2603
- }
2604
- };
2605
1267
  export const de_ListPortalsCommand = async (output, context) => {
2606
1268
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2607
- return de_ListPortalsCommandError(output, context);
1269
+ return de_CommandError(output, context);
2608
1270
  }
2609
1271
  const contents = map({
2610
1272
  $metadata: deserializeMetadata(output),
@@ -2617,37 +1279,9 @@ export const de_ListPortalsCommand = async (output, context) => {
2617
1279
  Object.assign(contents, doc);
2618
1280
  return contents;
2619
1281
  };
2620
- const de_ListPortalsCommandError = async (output, context) => {
2621
- const parsedOutput = {
2622
- ...output,
2623
- body: await parseErrorBody(output.body, context),
2624
- };
2625
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2626
- switch (errorCode) {
2627
- case "AccessDeniedException":
2628
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2629
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2630
- case "InternalServerException":
2631
- case "com.amazonaws.workspacesweb#InternalServerException":
2632
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2633
- case "ThrottlingException":
2634
- case "com.amazonaws.workspacesweb#ThrottlingException":
2635
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2636
- case "ValidationException":
2637
- case "com.amazonaws.workspacesweb#ValidationException":
2638
- throw await de_ValidationExceptionRes(parsedOutput, context);
2639
- default:
2640
- const parsedBody = parsedOutput.body;
2641
- return throwDefaultError({
2642
- output,
2643
- parsedBody,
2644
- errorCode,
2645
- });
2646
- }
2647
- };
2648
1282
  export const de_ListTagsForResourceCommand = async (output, context) => {
2649
1283
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2650
- return de_ListTagsForResourceCommandError(output, context);
1284
+ return de_CommandError(output, context);
2651
1285
  }
2652
1286
  const contents = map({
2653
1287
  $metadata: deserializeMetadata(output),
@@ -2659,40 +1293,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
2659
1293
  Object.assign(contents, doc);
2660
1294
  return contents;
2661
1295
  };
2662
- const de_ListTagsForResourceCommandError = async (output, context) => {
2663
- const parsedOutput = {
2664
- ...output,
2665
- body: await parseErrorBody(output.body, context),
2666
- };
2667
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2668
- switch (errorCode) {
2669
- case "AccessDeniedException":
2670
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2671
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2672
- case "InternalServerException":
2673
- case "com.amazonaws.workspacesweb#InternalServerException":
2674
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2675
- case "ResourceNotFoundException":
2676
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
2677
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2678
- case "ThrottlingException":
2679
- case "com.amazonaws.workspacesweb#ThrottlingException":
2680
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2681
- case "ValidationException":
2682
- case "com.amazonaws.workspacesweb#ValidationException":
2683
- throw await de_ValidationExceptionRes(parsedOutput, context);
2684
- default:
2685
- const parsedBody = parsedOutput.body;
2686
- return throwDefaultError({
2687
- output,
2688
- parsedBody,
2689
- errorCode,
2690
- });
2691
- }
2692
- };
2693
1296
  export const de_ListTrustStoreCertificatesCommand = async (output, context) => {
2694
1297
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2695
- return de_ListTrustStoreCertificatesCommandError(output, context);
1298
+ return de_CommandError(output, context);
2696
1299
  }
2697
1300
  const contents = map({
2698
1301
  $metadata: deserializeMetadata(output),
@@ -2706,40 +1309,9 @@ export const de_ListTrustStoreCertificatesCommand = async (output, context) => {
2706
1309
  Object.assign(contents, doc);
2707
1310
  return contents;
2708
1311
  };
2709
- const de_ListTrustStoreCertificatesCommandError = async (output, context) => {
2710
- const parsedOutput = {
2711
- ...output,
2712
- body: await parseErrorBody(output.body, context),
2713
- };
2714
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2715
- switch (errorCode) {
2716
- case "AccessDeniedException":
2717
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2718
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2719
- case "InternalServerException":
2720
- case "com.amazonaws.workspacesweb#InternalServerException":
2721
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2722
- case "ResourceNotFoundException":
2723
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
2724
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2725
- case "ThrottlingException":
2726
- case "com.amazonaws.workspacesweb#ThrottlingException":
2727
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2728
- case "ValidationException":
2729
- case "com.amazonaws.workspacesweb#ValidationException":
2730
- throw await de_ValidationExceptionRes(parsedOutput, context);
2731
- default:
2732
- const parsedBody = parsedOutput.body;
2733
- return throwDefaultError({
2734
- output,
2735
- parsedBody,
2736
- errorCode,
2737
- });
2738
- }
2739
- };
2740
1312
  export const de_ListTrustStoresCommand = async (output, context) => {
2741
1313
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2742
- return de_ListTrustStoresCommandError(output, context);
1314
+ return de_CommandError(output, context);
2743
1315
  }
2744
1316
  const contents = map({
2745
1317
  $metadata: deserializeMetadata(output),
@@ -2752,37 +1324,9 @@ export const de_ListTrustStoresCommand = async (output, context) => {
2752
1324
  Object.assign(contents, doc);
2753
1325
  return contents;
2754
1326
  };
2755
- const de_ListTrustStoresCommandError = async (output, context) => {
2756
- const parsedOutput = {
2757
- ...output,
2758
- body: await parseErrorBody(output.body, context),
2759
- };
2760
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2761
- switch (errorCode) {
2762
- case "AccessDeniedException":
2763
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2764
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2765
- case "InternalServerException":
2766
- case "com.amazonaws.workspacesweb#InternalServerException":
2767
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2768
- case "ThrottlingException":
2769
- case "com.amazonaws.workspacesweb#ThrottlingException":
2770
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2771
- case "ValidationException":
2772
- case "com.amazonaws.workspacesweb#ValidationException":
2773
- throw await de_ValidationExceptionRes(parsedOutput, context);
2774
- default:
2775
- const parsedBody = parsedOutput.body;
2776
- return throwDefaultError({
2777
- output,
2778
- parsedBody,
2779
- errorCode,
2780
- });
2781
- }
2782
- };
2783
1327
  export const de_ListUserAccessLoggingSettingsCommand = async (output, context) => {
2784
1328
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2785
- return de_ListUserAccessLoggingSettingsCommandError(output, context);
1329
+ return de_CommandError(output, context);
2786
1330
  }
2787
1331
  const contents = map({
2788
1332
  $metadata: deserializeMetadata(output),
@@ -2795,37 +1339,9 @@ export const de_ListUserAccessLoggingSettingsCommand = async (output, context) =
2795
1339
  Object.assign(contents, doc);
2796
1340
  return contents;
2797
1341
  };
2798
- const de_ListUserAccessLoggingSettingsCommandError = async (output, context) => {
2799
- const parsedOutput = {
2800
- ...output,
2801
- body: await parseErrorBody(output.body, context),
2802
- };
2803
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2804
- switch (errorCode) {
2805
- case "AccessDeniedException":
2806
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2807
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2808
- case "InternalServerException":
2809
- case "com.amazonaws.workspacesweb#InternalServerException":
2810
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2811
- case "ThrottlingException":
2812
- case "com.amazonaws.workspacesweb#ThrottlingException":
2813
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2814
- case "ValidationException":
2815
- case "com.amazonaws.workspacesweb#ValidationException":
2816
- throw await de_ValidationExceptionRes(parsedOutput, context);
2817
- default:
2818
- const parsedBody = parsedOutput.body;
2819
- return throwDefaultError({
2820
- output,
2821
- parsedBody,
2822
- errorCode,
2823
- });
2824
- }
2825
- };
2826
1342
  export const de_ListUserSettingsCommand = async (output, context) => {
2827
1343
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2828
- return de_ListUserSettingsCommandError(output, context);
1344
+ return de_CommandError(output, context);
2829
1345
  }
2830
1346
  const contents = map({
2831
1347
  $metadata: deserializeMetadata(output),
@@ -2838,81 +1354,19 @@ export const de_ListUserSettingsCommand = async (output, context) => {
2838
1354
  Object.assign(contents, doc);
2839
1355
  return contents;
2840
1356
  };
2841
- const de_ListUserSettingsCommandError = async (output, context) => {
2842
- const parsedOutput = {
2843
- ...output,
2844
- body: await parseErrorBody(output.body, context),
2845
- };
2846
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2847
- switch (errorCode) {
2848
- case "AccessDeniedException":
2849
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2850
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2851
- case "InternalServerException":
2852
- case "com.amazonaws.workspacesweb#InternalServerException":
2853
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2854
- case "ThrottlingException":
2855
- case "com.amazonaws.workspacesweb#ThrottlingException":
2856
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2857
- case "ValidationException":
2858
- case "com.amazonaws.workspacesweb#ValidationException":
2859
- throw await de_ValidationExceptionRes(parsedOutput, context);
2860
- default:
2861
- const parsedBody = parsedOutput.body;
2862
- return throwDefaultError({
2863
- output,
2864
- parsedBody,
2865
- errorCode,
2866
- });
2867
- }
2868
- };
2869
1357
  export const de_TagResourceCommand = async (output, context) => {
2870
1358
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2871
- return de_TagResourceCommandError(output, context);
1359
+ return de_CommandError(output, context);
2872
1360
  }
2873
1361
  const contents = map({
2874
1362
  $metadata: deserializeMetadata(output),
2875
1363
  });
2876
1364
  await collectBody(output.body, context);
2877
- return contents;
2878
- };
2879
- const de_TagResourceCommandError = async (output, context) => {
2880
- const parsedOutput = {
2881
- ...output,
2882
- body: await parseErrorBody(output.body, context),
2883
- };
2884
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2885
- switch (errorCode) {
2886
- case "AccessDeniedException":
2887
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2888
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2889
- case "InternalServerException":
2890
- case "com.amazonaws.workspacesweb#InternalServerException":
2891
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2892
- case "ResourceNotFoundException":
2893
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
2894
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2895
- case "ThrottlingException":
2896
- case "com.amazonaws.workspacesweb#ThrottlingException":
2897
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2898
- case "TooManyTagsException":
2899
- case "com.amazonaws.workspacesweb#TooManyTagsException":
2900
- throw await de_TooManyTagsExceptionRes(parsedOutput, context);
2901
- case "ValidationException":
2902
- case "com.amazonaws.workspacesweb#ValidationException":
2903
- throw await de_ValidationExceptionRes(parsedOutput, context);
2904
- default:
2905
- const parsedBody = parsedOutput.body;
2906
- return throwDefaultError({
2907
- output,
2908
- parsedBody,
2909
- errorCode,
2910
- });
2911
- }
1365
+ return contents;
2912
1366
  };
2913
1367
  export const de_UntagResourceCommand = async (output, context) => {
2914
1368
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2915
- return de_UntagResourceCommandError(output, context);
1369
+ return de_CommandError(output, context);
2916
1370
  }
2917
1371
  const contents = map({
2918
1372
  $metadata: deserializeMetadata(output),
@@ -2920,40 +1374,9 @@ export const de_UntagResourceCommand = async (output, context) => {
2920
1374
  await collectBody(output.body, context);
2921
1375
  return contents;
2922
1376
  };
2923
- const de_UntagResourceCommandError = async (output, context) => {
2924
- const parsedOutput = {
2925
- ...output,
2926
- body: await parseErrorBody(output.body, context),
2927
- };
2928
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2929
- switch (errorCode) {
2930
- case "AccessDeniedException":
2931
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2932
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2933
- case "InternalServerException":
2934
- case "com.amazonaws.workspacesweb#InternalServerException":
2935
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2936
- case "ResourceNotFoundException":
2937
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
2938
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2939
- case "ThrottlingException":
2940
- case "com.amazonaws.workspacesweb#ThrottlingException":
2941
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2942
- case "ValidationException":
2943
- case "com.amazonaws.workspacesweb#ValidationException":
2944
- throw await de_ValidationExceptionRes(parsedOutput, context);
2945
- default:
2946
- const parsedBody = parsedOutput.body;
2947
- return throwDefaultError({
2948
- output,
2949
- parsedBody,
2950
- errorCode,
2951
- });
2952
- }
2953
- };
2954
1377
  export const de_UpdateBrowserSettingsCommand = async (output, context) => {
2955
1378
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2956
- return de_UpdateBrowserSettingsCommandError(output, context);
1379
+ return de_CommandError(output, context);
2957
1380
  }
2958
1381
  const contents = map({
2959
1382
  $metadata: deserializeMetadata(output),
@@ -2965,40 +1388,9 @@ export const de_UpdateBrowserSettingsCommand = async (output, context) => {
2965
1388
  Object.assign(contents, doc);
2966
1389
  return contents;
2967
1390
  };
2968
- const de_UpdateBrowserSettingsCommandError = async (output, context) => {
2969
- const parsedOutput = {
2970
- ...output,
2971
- body: await parseErrorBody(output.body, context),
2972
- };
2973
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2974
- switch (errorCode) {
2975
- case "AccessDeniedException":
2976
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2977
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2978
- case "InternalServerException":
2979
- case "com.amazonaws.workspacesweb#InternalServerException":
2980
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2981
- case "ResourceNotFoundException":
2982
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
2983
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2984
- case "ThrottlingException":
2985
- case "com.amazonaws.workspacesweb#ThrottlingException":
2986
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2987
- case "ValidationException":
2988
- case "com.amazonaws.workspacesweb#ValidationException":
2989
- throw await de_ValidationExceptionRes(parsedOutput, context);
2990
- default:
2991
- const parsedBody = parsedOutput.body;
2992
- return throwDefaultError({
2993
- output,
2994
- parsedBody,
2995
- errorCode,
2996
- });
2997
- }
2998
- };
2999
1391
  export const de_UpdateIdentityProviderCommand = async (output, context) => {
3000
1392
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3001
- return de_UpdateIdentityProviderCommandError(output, context);
1393
+ return de_CommandError(output, context);
3002
1394
  }
3003
1395
  const contents = map({
3004
1396
  $metadata: deserializeMetadata(output),
@@ -3010,40 +1402,9 @@ export const de_UpdateIdentityProviderCommand = async (output, context) => {
3010
1402
  Object.assign(contents, doc);
3011
1403
  return contents;
3012
1404
  };
3013
- const de_UpdateIdentityProviderCommandError = async (output, context) => {
3014
- const parsedOutput = {
3015
- ...output,
3016
- body: await parseErrorBody(output.body, context),
3017
- };
3018
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3019
- switch (errorCode) {
3020
- case "AccessDeniedException":
3021
- case "com.amazonaws.workspacesweb#AccessDeniedException":
3022
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3023
- case "InternalServerException":
3024
- case "com.amazonaws.workspacesweb#InternalServerException":
3025
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3026
- case "ResourceNotFoundException":
3027
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
3028
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3029
- case "ThrottlingException":
3030
- case "com.amazonaws.workspacesweb#ThrottlingException":
3031
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3032
- case "ValidationException":
3033
- case "com.amazonaws.workspacesweb#ValidationException":
3034
- throw await de_ValidationExceptionRes(parsedOutput, context);
3035
- default:
3036
- const parsedBody = parsedOutput.body;
3037
- return throwDefaultError({
3038
- output,
3039
- parsedBody,
3040
- errorCode,
3041
- });
3042
- }
3043
- };
3044
1405
  export const de_UpdateIpAccessSettingsCommand = async (output, context) => {
3045
1406
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3046
- return de_UpdateIpAccessSettingsCommandError(output, context);
1407
+ return de_CommandError(output, context);
3047
1408
  }
3048
1409
  const contents = map({
3049
1410
  $metadata: deserializeMetadata(output),
@@ -3055,40 +1416,9 @@ export const de_UpdateIpAccessSettingsCommand = async (output, context) => {
3055
1416
  Object.assign(contents, doc);
3056
1417
  return contents;
3057
1418
  };
3058
- const de_UpdateIpAccessSettingsCommandError = async (output, context) => {
3059
- const parsedOutput = {
3060
- ...output,
3061
- body: await parseErrorBody(output.body, context),
3062
- };
3063
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3064
- switch (errorCode) {
3065
- case "AccessDeniedException":
3066
- case "com.amazonaws.workspacesweb#AccessDeniedException":
3067
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3068
- case "InternalServerException":
3069
- case "com.amazonaws.workspacesweb#InternalServerException":
3070
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3071
- case "ResourceNotFoundException":
3072
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
3073
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3074
- case "ThrottlingException":
3075
- case "com.amazonaws.workspacesweb#ThrottlingException":
3076
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3077
- case "ValidationException":
3078
- case "com.amazonaws.workspacesweb#ValidationException":
3079
- throw await de_ValidationExceptionRes(parsedOutput, context);
3080
- default:
3081
- const parsedBody = parsedOutput.body;
3082
- return throwDefaultError({
3083
- output,
3084
- parsedBody,
3085
- errorCode,
3086
- });
3087
- }
3088
- };
3089
1419
  export const de_UpdateNetworkSettingsCommand = async (output, context) => {
3090
1420
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3091
- return de_UpdateNetworkSettingsCommandError(output, context);
1421
+ return de_CommandError(output, context);
3092
1422
  }
3093
1423
  const contents = map({
3094
1424
  $metadata: deserializeMetadata(output),
@@ -3100,40 +1430,9 @@ export const de_UpdateNetworkSettingsCommand = async (output, context) => {
3100
1430
  Object.assign(contents, doc);
3101
1431
  return contents;
3102
1432
  };
3103
- const de_UpdateNetworkSettingsCommandError = async (output, context) => {
3104
- const parsedOutput = {
3105
- ...output,
3106
- body: await parseErrorBody(output.body, context),
3107
- };
3108
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3109
- switch (errorCode) {
3110
- case "AccessDeniedException":
3111
- case "com.amazonaws.workspacesweb#AccessDeniedException":
3112
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3113
- case "InternalServerException":
3114
- case "com.amazonaws.workspacesweb#InternalServerException":
3115
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3116
- case "ResourceNotFoundException":
3117
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
3118
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3119
- case "ThrottlingException":
3120
- case "com.amazonaws.workspacesweb#ThrottlingException":
3121
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3122
- case "ValidationException":
3123
- case "com.amazonaws.workspacesweb#ValidationException":
3124
- throw await de_ValidationExceptionRes(parsedOutput, context);
3125
- default:
3126
- const parsedBody = parsedOutput.body;
3127
- return throwDefaultError({
3128
- output,
3129
- parsedBody,
3130
- errorCode,
3131
- });
3132
- }
3133
- };
3134
1433
  export const de_UpdatePortalCommand = async (output, context) => {
3135
1434
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3136
- return de_UpdatePortalCommandError(output, context);
1435
+ return de_CommandError(output, context);
3137
1436
  }
3138
1437
  const contents = map({
3139
1438
  $metadata: deserializeMetadata(output),
@@ -3145,43 +1444,9 @@ export const de_UpdatePortalCommand = async (output, context) => {
3145
1444
  Object.assign(contents, doc);
3146
1445
  return contents;
3147
1446
  };
3148
- const de_UpdatePortalCommandError = async (output, context) => {
3149
- const parsedOutput = {
3150
- ...output,
3151
- body: await parseErrorBody(output.body, context),
3152
- };
3153
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3154
- switch (errorCode) {
3155
- case "AccessDeniedException":
3156
- case "com.amazonaws.workspacesweb#AccessDeniedException":
3157
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3158
- case "ConflictException":
3159
- case "com.amazonaws.workspacesweb#ConflictException":
3160
- throw await de_ConflictExceptionRes(parsedOutput, context);
3161
- case "InternalServerException":
3162
- case "com.amazonaws.workspacesweb#InternalServerException":
3163
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3164
- case "ResourceNotFoundException":
3165
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
3166
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3167
- case "ThrottlingException":
3168
- case "com.amazonaws.workspacesweb#ThrottlingException":
3169
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3170
- case "ValidationException":
3171
- case "com.amazonaws.workspacesweb#ValidationException":
3172
- throw await de_ValidationExceptionRes(parsedOutput, context);
3173
- default:
3174
- const parsedBody = parsedOutput.body;
3175
- return throwDefaultError({
3176
- output,
3177
- parsedBody,
3178
- errorCode,
3179
- });
3180
- }
3181
- };
3182
1447
  export const de_UpdateTrustStoreCommand = async (output, context) => {
3183
1448
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3184
- return de_UpdateTrustStoreCommandError(output, context);
1449
+ return de_CommandError(output, context);
3185
1450
  }
3186
1451
  const contents = map({
3187
1452
  $metadata: deserializeMetadata(output),
@@ -3193,43 +1458,9 @@ export const de_UpdateTrustStoreCommand = async (output, context) => {
3193
1458
  Object.assign(contents, doc);
3194
1459
  return contents;
3195
1460
  };
3196
- const de_UpdateTrustStoreCommandError = async (output, context) => {
3197
- const parsedOutput = {
3198
- ...output,
3199
- body: await parseErrorBody(output.body, context),
3200
- };
3201
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3202
- switch (errorCode) {
3203
- case "AccessDeniedException":
3204
- case "com.amazonaws.workspacesweb#AccessDeniedException":
3205
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3206
- case "InternalServerException":
3207
- case "com.amazonaws.workspacesweb#InternalServerException":
3208
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3209
- case "ResourceNotFoundException":
3210
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
3211
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3212
- case "ServiceQuotaExceededException":
3213
- case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
3214
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3215
- case "ThrottlingException":
3216
- case "com.amazonaws.workspacesweb#ThrottlingException":
3217
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3218
- case "ValidationException":
3219
- case "com.amazonaws.workspacesweb#ValidationException":
3220
- throw await de_ValidationExceptionRes(parsedOutput, context);
3221
- default:
3222
- const parsedBody = parsedOutput.body;
3223
- return throwDefaultError({
3224
- output,
3225
- parsedBody,
3226
- errorCode,
3227
- });
3228
- }
3229
- };
3230
1461
  export const de_UpdateUserAccessLoggingSettingsCommand = async (output, context) => {
3231
1462
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3232
- return de_UpdateUserAccessLoggingSettingsCommandError(output, context);
1463
+ return de_CommandError(output, context);
3233
1464
  }
3234
1465
  const contents = map({
3235
1466
  $metadata: deserializeMetadata(output),
@@ -3241,40 +1472,9 @@ export const de_UpdateUserAccessLoggingSettingsCommand = async (output, context)
3241
1472
  Object.assign(contents, doc);
3242
1473
  return contents;
3243
1474
  };
3244
- const de_UpdateUserAccessLoggingSettingsCommandError = async (output, context) => {
3245
- const parsedOutput = {
3246
- ...output,
3247
- body: await parseErrorBody(output.body, context),
3248
- };
3249
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3250
- switch (errorCode) {
3251
- case "AccessDeniedException":
3252
- case "com.amazonaws.workspacesweb#AccessDeniedException":
3253
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3254
- case "InternalServerException":
3255
- case "com.amazonaws.workspacesweb#InternalServerException":
3256
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3257
- case "ResourceNotFoundException":
3258
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
3259
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3260
- case "ThrottlingException":
3261
- case "com.amazonaws.workspacesweb#ThrottlingException":
3262
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3263
- case "ValidationException":
3264
- case "com.amazonaws.workspacesweb#ValidationException":
3265
- throw await de_ValidationExceptionRes(parsedOutput, context);
3266
- default:
3267
- const parsedBody = parsedOutput.body;
3268
- return throwDefaultError({
3269
- output,
3270
- parsedBody,
3271
- errorCode,
3272
- });
3273
- }
3274
- };
3275
1475
  export const de_UpdateUserSettingsCommand = async (output, context) => {
3276
1476
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3277
- return de_UpdateUserSettingsCommandError(output, context);
1477
+ return de_CommandError(output, context);
3278
1478
  }
3279
1479
  const contents = map({
3280
1480
  $metadata: deserializeMetadata(output),
@@ -3286,7 +1486,7 @@ export const de_UpdateUserSettingsCommand = async (output, context) => {
3286
1486
  Object.assign(contents, doc);
3287
1487
  return contents;
3288
1488
  };
3289
- const de_UpdateUserSettingsCommandError = async (output, context) => {
1489
+ const de_CommandError = async (output, context) => {
3290
1490
  const parsedOutput = {
3291
1491
  ...output,
3292
1492
  body: await parseErrorBody(output.body, context),
@@ -3296,6 +1496,9 @@ const de_UpdateUserSettingsCommandError = async (output, context) => {
3296
1496
  case "AccessDeniedException":
3297
1497
  case "com.amazonaws.workspacesweb#AccessDeniedException":
3298
1498
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1499
+ case "ConflictException":
1500
+ case "com.amazonaws.workspacesweb#ConflictException":
1501
+ throw await de_ConflictExceptionRes(parsedOutput, context);
3299
1502
  case "InternalServerException":
3300
1503
  case "com.amazonaws.workspacesweb#InternalServerException":
3301
1504
  throw await de_InternalServerExceptionRes(parsedOutput, context);
@@ -3308,6 +1511,12 @@ const de_UpdateUserSettingsCommandError = async (output, context) => {
3308
1511
  case "ValidationException":
3309
1512
  case "com.amazonaws.workspacesweb#ValidationException":
3310
1513
  throw await de_ValidationExceptionRes(parsedOutput, context);
1514
+ case "ServiceQuotaExceededException":
1515
+ case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
1516
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1517
+ case "TooManyTagsException":
1518
+ case "com.amazonaws.workspacesweb#TooManyTagsException":
1519
+ throw await de_TooManyTagsExceptionRes(parsedOutput, context);
3311
1520
  default:
3312
1521
  const parsedBody = parsedOutput.body;
3313
1522
  return throwDefaultError({