@aws-sdk/client-schemas 3.504.0 → 3.507.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -819,7 +819,7 @@ var se_UpdateSchemaCommand = /* @__PURE__ */ __name(async (input, context) => {
819
819
  }, "se_UpdateSchemaCommand");
820
820
  var de_CreateDiscovererCommand = /* @__PURE__ */ __name(async (output, context) => {
821
821
  if (output.statusCode !== 201 && output.statusCode >= 300) {
822
- return de_CreateDiscovererCommandError(output, context);
822
+ return de_CommandError(output, context);
823
823
  }
824
824
  const contents = (0, import_smithy_client.map)({
825
825
  $metadata: deserializeMetadata(output)
@@ -837,43 +837,9 @@ var de_CreateDiscovererCommand = /* @__PURE__ */ __name(async (output, context)
837
837
  Object.assign(contents, doc);
838
838
  return contents;
839
839
  }, "de_CreateDiscovererCommand");
840
- var de_CreateDiscovererCommandError = /* @__PURE__ */ __name(async (output, context) => {
841
- const parsedOutput = {
842
- ...output,
843
- body: await parseErrorBody(output.body, context)
844
- };
845
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
846
- switch (errorCode) {
847
- case "BadRequestException":
848
- case "com.amazonaws.schemas#BadRequestException":
849
- throw await de_BadRequestExceptionRes(parsedOutput, context);
850
- case "ConflictException":
851
- case "com.amazonaws.schemas#ConflictException":
852
- throw await de_ConflictExceptionRes(parsedOutput, context);
853
- case "ForbiddenException":
854
- case "com.amazonaws.schemas#ForbiddenException":
855
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
856
- case "InternalServerErrorException":
857
- case "com.amazonaws.schemas#InternalServerErrorException":
858
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
859
- case "ServiceUnavailableException":
860
- case "com.amazonaws.schemas#ServiceUnavailableException":
861
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
862
- case "UnauthorizedException":
863
- case "com.amazonaws.schemas#UnauthorizedException":
864
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
865
- default:
866
- const parsedBody = parsedOutput.body;
867
- return throwDefaultError({
868
- output,
869
- parsedBody,
870
- errorCode
871
- });
872
- }
873
- }, "de_CreateDiscovererCommandError");
874
840
  var de_CreateRegistryCommand = /* @__PURE__ */ __name(async (output, context) => {
875
841
  if (output.statusCode !== 201 && output.statusCode >= 300) {
876
- return de_CreateRegistryCommandError(output, context);
842
+ return de_CommandError(output, context);
877
843
  }
878
844
  const contents = (0, import_smithy_client.map)({
879
845
  $metadata: deserializeMetadata(output)
@@ -888,43 +854,9 @@ var de_CreateRegistryCommand = /* @__PURE__ */ __name(async (output, context) =>
888
854
  Object.assign(contents, doc);
889
855
  return contents;
890
856
  }, "de_CreateRegistryCommand");
891
- var de_CreateRegistryCommandError = /* @__PURE__ */ __name(async (output, context) => {
892
- const parsedOutput = {
893
- ...output,
894
- body: await parseErrorBody(output.body, context)
895
- };
896
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
897
- switch (errorCode) {
898
- case "BadRequestException":
899
- case "com.amazonaws.schemas#BadRequestException":
900
- throw await de_BadRequestExceptionRes(parsedOutput, context);
901
- case "ConflictException":
902
- case "com.amazonaws.schemas#ConflictException":
903
- throw await de_ConflictExceptionRes(parsedOutput, context);
904
- case "ForbiddenException":
905
- case "com.amazonaws.schemas#ForbiddenException":
906
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
907
- case "InternalServerErrorException":
908
- case "com.amazonaws.schemas#InternalServerErrorException":
909
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
910
- case "ServiceUnavailableException":
911
- case "com.amazonaws.schemas#ServiceUnavailableException":
912
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
913
- case "UnauthorizedException":
914
- case "com.amazonaws.schemas#UnauthorizedException":
915
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
916
- default:
917
- const parsedBody = parsedOutput.body;
918
- return throwDefaultError({
919
- output,
920
- parsedBody,
921
- errorCode
922
- });
923
- }
924
- }, "de_CreateRegistryCommandError");
925
857
  var de_CreateSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {
926
858
  if (output.statusCode !== 201 && output.statusCode >= 300) {
927
- return de_CreateSchemaCommandError(output, context);
859
+ return de_CommandError(output, context);
928
860
  }
929
861
  const contents = (0, import_smithy_client.map)({
930
862
  $metadata: deserializeMetadata(output)
@@ -943,37 +875,9 @@ var de_CreateSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {
943
875
  Object.assign(contents, doc);
944
876
  return contents;
945
877
  }, "de_CreateSchemaCommand");
946
- var de_CreateSchemaCommandError = /* @__PURE__ */ __name(async (output, context) => {
947
- const parsedOutput = {
948
- ...output,
949
- body: await parseErrorBody(output.body, context)
950
- };
951
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
952
- switch (errorCode) {
953
- case "BadRequestException":
954
- case "com.amazonaws.schemas#BadRequestException":
955
- throw await de_BadRequestExceptionRes(parsedOutput, context);
956
- case "ForbiddenException":
957
- case "com.amazonaws.schemas#ForbiddenException":
958
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
959
- case "InternalServerErrorException":
960
- case "com.amazonaws.schemas#InternalServerErrorException":
961
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
962
- case "ServiceUnavailableException":
963
- case "com.amazonaws.schemas#ServiceUnavailableException":
964
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
965
- default:
966
- const parsedBody = parsedOutput.body;
967
- return throwDefaultError({
968
- output,
969
- parsedBody,
970
- errorCode
971
- });
972
- }
973
- }, "de_CreateSchemaCommandError");
974
878
  var de_DeleteDiscovererCommand = /* @__PURE__ */ __name(async (output, context) => {
975
879
  if (output.statusCode !== 204 && output.statusCode >= 300) {
976
- return de_DeleteDiscovererCommandError(output, context);
880
+ return de_CommandError(output, context);
977
881
  }
978
882
  const contents = (0, import_smithy_client.map)({
979
883
  $metadata: deserializeMetadata(output)
@@ -981,43 +885,9 @@ var de_DeleteDiscovererCommand = /* @__PURE__ */ __name(async (output, context)
981
885
  await (0, import_smithy_client.collectBody)(output.body, context);
982
886
  return contents;
983
887
  }, "de_DeleteDiscovererCommand");
984
- var de_DeleteDiscovererCommandError = /* @__PURE__ */ __name(async (output, context) => {
985
- const parsedOutput = {
986
- ...output,
987
- body: await parseErrorBody(output.body, context)
988
- };
989
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
990
- switch (errorCode) {
991
- case "BadRequestException":
992
- case "com.amazonaws.schemas#BadRequestException":
993
- throw await de_BadRequestExceptionRes(parsedOutput, context);
994
- case "ForbiddenException":
995
- case "com.amazonaws.schemas#ForbiddenException":
996
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
997
- case "InternalServerErrorException":
998
- case "com.amazonaws.schemas#InternalServerErrorException":
999
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1000
- case "NotFoundException":
1001
- case "com.amazonaws.schemas#NotFoundException":
1002
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1003
- case "ServiceUnavailableException":
1004
- case "com.amazonaws.schemas#ServiceUnavailableException":
1005
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1006
- case "UnauthorizedException":
1007
- case "com.amazonaws.schemas#UnauthorizedException":
1008
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1009
- default:
1010
- const parsedBody = parsedOutput.body;
1011
- return throwDefaultError({
1012
- output,
1013
- parsedBody,
1014
- errorCode
1015
- });
1016
- }
1017
- }, "de_DeleteDiscovererCommandError");
1018
888
  var de_DeleteRegistryCommand = /* @__PURE__ */ __name(async (output, context) => {
1019
889
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1020
- return de_DeleteRegistryCommandError(output, context);
890
+ return de_CommandError(output, context);
1021
891
  }
1022
892
  const contents = (0, import_smithy_client.map)({
1023
893
  $metadata: deserializeMetadata(output)
@@ -1025,43 +895,9 @@ var de_DeleteRegistryCommand = /* @__PURE__ */ __name(async (output, context) =>
1025
895
  await (0, import_smithy_client.collectBody)(output.body, context);
1026
896
  return contents;
1027
897
  }, "de_DeleteRegistryCommand");
1028
- var de_DeleteRegistryCommandError = /* @__PURE__ */ __name(async (output, context) => {
1029
- const parsedOutput = {
1030
- ...output,
1031
- body: await parseErrorBody(output.body, context)
1032
- };
1033
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1034
- switch (errorCode) {
1035
- case "BadRequestException":
1036
- case "com.amazonaws.schemas#BadRequestException":
1037
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1038
- case "ForbiddenException":
1039
- case "com.amazonaws.schemas#ForbiddenException":
1040
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1041
- case "InternalServerErrorException":
1042
- case "com.amazonaws.schemas#InternalServerErrorException":
1043
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1044
- case "NotFoundException":
1045
- case "com.amazonaws.schemas#NotFoundException":
1046
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1047
- case "ServiceUnavailableException":
1048
- case "com.amazonaws.schemas#ServiceUnavailableException":
1049
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1050
- case "UnauthorizedException":
1051
- case "com.amazonaws.schemas#UnauthorizedException":
1052
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1053
- default:
1054
- const parsedBody = parsedOutput.body;
1055
- return throwDefaultError({
1056
- output,
1057
- parsedBody,
1058
- errorCode
1059
- });
1060
- }
1061
- }, "de_DeleteRegistryCommandError");
1062
898
  var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1063
899
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1064
- return de_DeleteResourcePolicyCommandError(output, context);
900
+ return de_CommandError(output, context);
1065
901
  }
1066
902
  const contents = (0, import_smithy_client.map)({
1067
903
  $metadata: deserializeMetadata(output)
@@ -1069,43 +905,9 @@ var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, conte
1069
905
  await (0, import_smithy_client.collectBody)(output.body, context);
1070
906
  return contents;
1071
907
  }, "de_DeleteResourcePolicyCommand");
1072
- var de_DeleteResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1073
- const parsedOutput = {
1074
- ...output,
1075
- body: await parseErrorBody(output.body, context)
1076
- };
1077
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1078
- switch (errorCode) {
1079
- case "BadRequestException":
1080
- case "com.amazonaws.schemas#BadRequestException":
1081
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1082
- case "ForbiddenException":
1083
- case "com.amazonaws.schemas#ForbiddenException":
1084
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1085
- case "InternalServerErrorException":
1086
- case "com.amazonaws.schemas#InternalServerErrorException":
1087
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1088
- case "NotFoundException":
1089
- case "com.amazonaws.schemas#NotFoundException":
1090
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1091
- case "ServiceUnavailableException":
1092
- case "com.amazonaws.schemas#ServiceUnavailableException":
1093
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1094
- case "UnauthorizedException":
1095
- case "com.amazonaws.schemas#UnauthorizedException":
1096
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1097
- default:
1098
- const parsedBody = parsedOutput.body;
1099
- return throwDefaultError({
1100
- output,
1101
- parsedBody,
1102
- errorCode
1103
- });
1104
- }
1105
- }, "de_DeleteResourcePolicyCommandError");
1106
908
  var de_DeleteSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {
1107
909
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1108
- return de_DeleteSchemaCommandError(output, context);
910
+ return de_CommandError(output, context);
1109
911
  }
1110
912
  const contents = (0, import_smithy_client.map)({
1111
913
  $metadata: deserializeMetadata(output)
@@ -1113,43 +915,9 @@ var de_DeleteSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {
1113
915
  await (0, import_smithy_client.collectBody)(output.body, context);
1114
916
  return contents;
1115
917
  }, "de_DeleteSchemaCommand");
1116
- var de_DeleteSchemaCommandError = /* @__PURE__ */ __name(async (output, context) => {
1117
- const parsedOutput = {
1118
- ...output,
1119
- body: await parseErrorBody(output.body, context)
1120
- };
1121
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1122
- switch (errorCode) {
1123
- case "BadRequestException":
1124
- case "com.amazonaws.schemas#BadRequestException":
1125
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1126
- case "ForbiddenException":
1127
- case "com.amazonaws.schemas#ForbiddenException":
1128
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1129
- case "InternalServerErrorException":
1130
- case "com.amazonaws.schemas#InternalServerErrorException":
1131
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1132
- case "NotFoundException":
1133
- case "com.amazonaws.schemas#NotFoundException":
1134
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1135
- case "ServiceUnavailableException":
1136
- case "com.amazonaws.schemas#ServiceUnavailableException":
1137
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1138
- case "UnauthorizedException":
1139
- case "com.amazonaws.schemas#UnauthorizedException":
1140
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1141
- default:
1142
- const parsedBody = parsedOutput.body;
1143
- return throwDefaultError({
1144
- output,
1145
- parsedBody,
1146
- errorCode
1147
- });
1148
- }
1149
- }, "de_DeleteSchemaCommandError");
1150
918
  var de_DeleteSchemaVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
1151
919
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1152
- return de_DeleteSchemaVersionCommandError(output, context);
920
+ return de_CommandError(output, context);
1153
921
  }
1154
922
  const contents = (0, import_smithy_client.map)({
1155
923
  $metadata: deserializeMetadata(output)
@@ -1157,43 +925,9 @@ var de_DeleteSchemaVersionCommand = /* @__PURE__ */ __name(async (output, contex
1157
925
  await (0, import_smithy_client.collectBody)(output.body, context);
1158
926
  return contents;
1159
927
  }, "de_DeleteSchemaVersionCommand");
1160
- var de_DeleteSchemaVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1161
- const parsedOutput = {
1162
- ...output,
1163
- body: await parseErrorBody(output.body, context)
1164
- };
1165
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1166
- switch (errorCode) {
1167
- case "BadRequestException":
1168
- case "com.amazonaws.schemas#BadRequestException":
1169
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1170
- case "ForbiddenException":
1171
- case "com.amazonaws.schemas#ForbiddenException":
1172
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1173
- case "InternalServerErrorException":
1174
- case "com.amazonaws.schemas#InternalServerErrorException":
1175
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1176
- case "NotFoundException":
1177
- case "com.amazonaws.schemas#NotFoundException":
1178
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1179
- case "ServiceUnavailableException":
1180
- case "com.amazonaws.schemas#ServiceUnavailableException":
1181
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1182
- case "UnauthorizedException":
1183
- case "com.amazonaws.schemas#UnauthorizedException":
1184
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1185
- default:
1186
- const parsedBody = parsedOutput.body;
1187
- return throwDefaultError({
1188
- output,
1189
- parsedBody,
1190
- errorCode
1191
- });
1192
- }
1193
- }, "de_DeleteSchemaVersionCommandError");
1194
928
  var de_DescribeCodeBindingCommand = /* @__PURE__ */ __name(async (output, context) => {
1195
929
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1196
- return de_DescribeCodeBindingCommandError(output, context);
930
+ return de_CommandError(output, context);
1197
931
  }
1198
932
  const contents = (0, import_smithy_client.map)({
1199
933
  $metadata: deserializeMetadata(output)
@@ -1208,43 +942,9 @@ var de_DescribeCodeBindingCommand = /* @__PURE__ */ __name(async (output, contex
1208
942
  Object.assign(contents, doc);
1209
943
  return contents;
1210
944
  }, "de_DescribeCodeBindingCommand");
1211
- var de_DescribeCodeBindingCommandError = /* @__PURE__ */ __name(async (output, context) => {
1212
- const parsedOutput = {
1213
- ...output,
1214
- body: await parseErrorBody(output.body, context)
1215
- };
1216
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1217
- switch (errorCode) {
1218
- case "BadRequestException":
1219
- case "com.amazonaws.schemas#BadRequestException":
1220
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1221
- case "ForbiddenException":
1222
- case "com.amazonaws.schemas#ForbiddenException":
1223
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1224
- case "InternalServerErrorException":
1225
- case "com.amazonaws.schemas#InternalServerErrorException":
1226
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1227
- case "NotFoundException":
1228
- case "com.amazonaws.schemas#NotFoundException":
1229
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1230
- case "TooManyRequestsException":
1231
- case "com.amazonaws.schemas#TooManyRequestsException":
1232
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1233
- case "UnauthorizedException":
1234
- case "com.amazonaws.schemas#UnauthorizedException":
1235
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1236
- default:
1237
- const parsedBody = parsedOutput.body;
1238
- return throwDefaultError({
1239
- output,
1240
- parsedBody,
1241
- errorCode
1242
- });
1243
- }
1244
- }, "de_DescribeCodeBindingCommandError");
1245
945
  var de_DescribeDiscovererCommand = /* @__PURE__ */ __name(async (output, context) => {
1246
946
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1247
- return de_DescribeDiscovererCommandError(output, context);
947
+ return de_CommandError(output, context);
1248
948
  }
1249
949
  const contents = (0, import_smithy_client.map)({
1250
950
  $metadata: deserializeMetadata(output)
@@ -1262,43 +962,9 @@ var de_DescribeDiscovererCommand = /* @__PURE__ */ __name(async (output, context
1262
962
  Object.assign(contents, doc);
1263
963
  return contents;
1264
964
  }, "de_DescribeDiscovererCommand");
1265
- var de_DescribeDiscovererCommandError = /* @__PURE__ */ __name(async (output, context) => {
1266
- const parsedOutput = {
1267
- ...output,
1268
- body: await parseErrorBody(output.body, context)
1269
- };
1270
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1271
- switch (errorCode) {
1272
- case "BadRequestException":
1273
- case "com.amazonaws.schemas#BadRequestException":
1274
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1275
- case "ForbiddenException":
1276
- case "com.amazonaws.schemas#ForbiddenException":
1277
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1278
- case "InternalServerErrorException":
1279
- case "com.amazonaws.schemas#InternalServerErrorException":
1280
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1281
- case "NotFoundException":
1282
- case "com.amazonaws.schemas#NotFoundException":
1283
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1284
- case "ServiceUnavailableException":
1285
- case "com.amazonaws.schemas#ServiceUnavailableException":
1286
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1287
- case "UnauthorizedException":
1288
- case "com.amazonaws.schemas#UnauthorizedException":
1289
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1290
- default:
1291
- const parsedBody = parsedOutput.body;
1292
- return throwDefaultError({
1293
- output,
1294
- parsedBody,
1295
- errorCode
1296
- });
1297
- }
1298
- }, "de_DescribeDiscovererCommandError");
1299
965
  var de_DescribeRegistryCommand = /* @__PURE__ */ __name(async (output, context) => {
1300
966
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1301
- return de_DescribeRegistryCommandError(output, context);
967
+ return de_CommandError(output, context);
1302
968
  }
1303
969
  const contents = (0, import_smithy_client.map)({
1304
970
  $metadata: deserializeMetadata(output)
@@ -1313,43 +979,9 @@ var de_DescribeRegistryCommand = /* @__PURE__ */ __name(async (output, context)
1313
979
  Object.assign(contents, doc);
1314
980
  return contents;
1315
981
  }, "de_DescribeRegistryCommand");
1316
- var de_DescribeRegistryCommandError = /* @__PURE__ */ __name(async (output, context) => {
1317
- const parsedOutput = {
1318
- ...output,
1319
- body: await parseErrorBody(output.body, context)
1320
- };
1321
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1322
- switch (errorCode) {
1323
- case "BadRequestException":
1324
- case "com.amazonaws.schemas#BadRequestException":
1325
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1326
- case "ForbiddenException":
1327
- case "com.amazonaws.schemas#ForbiddenException":
1328
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1329
- case "InternalServerErrorException":
1330
- case "com.amazonaws.schemas#InternalServerErrorException":
1331
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1332
- case "NotFoundException":
1333
- case "com.amazonaws.schemas#NotFoundException":
1334
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1335
- case "ServiceUnavailableException":
1336
- case "com.amazonaws.schemas#ServiceUnavailableException":
1337
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1338
- case "UnauthorizedException":
1339
- case "com.amazonaws.schemas#UnauthorizedException":
1340
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1341
- default:
1342
- const parsedBody = parsedOutput.body;
1343
- return throwDefaultError({
1344
- output,
1345
- parsedBody,
1346
- errorCode
1347
- });
1348
- }
1349
- }, "de_DescribeRegistryCommandError");
1350
982
  var de_DescribeSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {
1351
983
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1352
- return de_DescribeSchemaCommandError(output, context);
984
+ return de_CommandError(output, context);
1353
985
  }
1354
986
  const contents = (0, import_smithy_client.map)({
1355
987
  $metadata: deserializeMetadata(output)
@@ -1369,43 +1001,9 @@ var de_DescribeSchemaCommand = /* @__PURE__ */ __name(async (output, context) =>
1369
1001
  Object.assign(contents, doc);
1370
1002
  return contents;
1371
1003
  }, "de_DescribeSchemaCommand");
1372
- var de_DescribeSchemaCommandError = /* @__PURE__ */ __name(async (output, context) => {
1373
- const parsedOutput = {
1374
- ...output,
1375
- body: await parseErrorBody(output.body, context)
1376
- };
1377
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1378
- switch (errorCode) {
1379
- case "BadRequestException":
1380
- case "com.amazonaws.schemas#BadRequestException":
1381
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1382
- case "ForbiddenException":
1383
- case "com.amazonaws.schemas#ForbiddenException":
1384
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1385
- case "InternalServerErrorException":
1386
- case "com.amazonaws.schemas#InternalServerErrorException":
1387
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1388
- case "NotFoundException":
1389
- case "com.amazonaws.schemas#NotFoundException":
1390
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1391
- case "ServiceUnavailableException":
1392
- case "com.amazonaws.schemas#ServiceUnavailableException":
1393
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1394
- case "UnauthorizedException":
1395
- case "com.amazonaws.schemas#UnauthorizedException":
1396
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1397
- default:
1398
- const parsedBody = parsedOutput.body;
1399
- return throwDefaultError({
1400
- output,
1401
- parsedBody,
1402
- errorCode
1403
- });
1404
- }
1405
- }, "de_DescribeSchemaCommandError");
1406
1004
  var de_ExportSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {
1407
1005
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1408
- return de_ExportSchemaCommandError(output, context);
1006
+ return de_CommandError(output, context);
1409
1007
  }
1410
1008
  const contents = (0, import_smithy_client.map)({
1411
1009
  $metadata: deserializeMetadata(output)
@@ -1421,46 +1019,9 @@ var de_ExportSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {
1421
1019
  Object.assign(contents, doc);
1422
1020
  return contents;
1423
1021
  }, "de_ExportSchemaCommand");
1424
- var de_ExportSchemaCommandError = /* @__PURE__ */ __name(async (output, context) => {
1425
- const parsedOutput = {
1426
- ...output,
1427
- body: await parseErrorBody(output.body, context)
1428
- };
1429
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1430
- switch (errorCode) {
1431
- case "BadRequestException":
1432
- case "com.amazonaws.schemas#BadRequestException":
1433
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1434
- case "ForbiddenException":
1435
- case "com.amazonaws.schemas#ForbiddenException":
1436
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1437
- case "InternalServerErrorException":
1438
- case "com.amazonaws.schemas#InternalServerErrorException":
1439
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1440
- case "NotFoundException":
1441
- case "com.amazonaws.schemas#NotFoundException":
1442
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1443
- case "ServiceUnavailableException":
1444
- case "com.amazonaws.schemas#ServiceUnavailableException":
1445
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1446
- case "TooManyRequestsException":
1447
- case "com.amazonaws.schemas#TooManyRequestsException":
1448
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1449
- case "UnauthorizedException":
1450
- case "com.amazonaws.schemas#UnauthorizedException":
1451
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1452
- default:
1453
- const parsedBody = parsedOutput.body;
1454
- return throwDefaultError({
1455
- output,
1456
- parsedBody,
1457
- errorCode
1458
- });
1459
- }
1460
- }, "de_ExportSchemaCommandError");
1461
1022
  var de_GetCodeBindingSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1462
1023
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1463
- return de_GetCodeBindingSourceCommandError(output, context);
1024
+ return de_CommandError(output, context);
1464
1025
  }
1465
1026
  const contents = (0, import_smithy_client.map)({
1466
1027
  $metadata: deserializeMetadata(output)
@@ -1469,43 +1030,9 @@ var de_GetCodeBindingSourceCommand = /* @__PURE__ */ __name(async (output, conte
1469
1030
  contents.Body = data;
1470
1031
  return contents;
1471
1032
  }, "de_GetCodeBindingSourceCommand");
1472
- var de_GetCodeBindingSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1473
- const parsedOutput = {
1474
- ...output,
1475
- body: await parseErrorBody(output.body, context)
1476
- };
1477
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1478
- switch (errorCode) {
1479
- case "BadRequestException":
1480
- case "com.amazonaws.schemas#BadRequestException":
1481
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1482
- case "ForbiddenException":
1483
- case "com.amazonaws.schemas#ForbiddenException":
1484
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1485
- case "InternalServerErrorException":
1486
- case "com.amazonaws.schemas#InternalServerErrorException":
1487
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1488
- case "NotFoundException":
1489
- case "com.amazonaws.schemas#NotFoundException":
1490
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1491
- case "TooManyRequestsException":
1492
- case "com.amazonaws.schemas#TooManyRequestsException":
1493
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1494
- case "UnauthorizedException":
1495
- case "com.amazonaws.schemas#UnauthorizedException":
1496
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1497
- default:
1498
- const parsedBody = parsedOutput.body;
1499
- return throwDefaultError({
1500
- output,
1501
- parsedBody,
1502
- errorCode
1503
- });
1504
- }
1505
- }, "de_GetCodeBindingSourceCommandError");
1506
1033
  var de_GetDiscoveredSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {
1507
1034
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1508
- return de_GetDiscoveredSchemaCommandError(output, context);
1035
+ return de_CommandError(output, context);
1509
1036
  }
1510
1037
  const contents = (0, import_smithy_client.map)({
1511
1038
  $metadata: deserializeMetadata(output)
@@ -1517,40 +1044,9 @@ var de_GetDiscoveredSchemaCommand = /* @__PURE__ */ __name(async (output, contex
1517
1044
  Object.assign(contents, doc);
1518
1045
  return contents;
1519
1046
  }, "de_GetDiscoveredSchemaCommand");
1520
- var de_GetDiscoveredSchemaCommandError = /* @__PURE__ */ __name(async (output, context) => {
1521
- const parsedOutput = {
1522
- ...output,
1523
- body: await parseErrorBody(output.body, context)
1524
- };
1525
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1526
- switch (errorCode) {
1527
- case "BadRequestException":
1528
- case "com.amazonaws.schemas#BadRequestException":
1529
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1530
- case "ForbiddenException":
1531
- case "com.amazonaws.schemas#ForbiddenException":
1532
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1533
- case "InternalServerErrorException":
1534
- case "com.amazonaws.schemas#InternalServerErrorException":
1535
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1536
- case "ServiceUnavailableException":
1537
- case "com.amazonaws.schemas#ServiceUnavailableException":
1538
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1539
- case "UnauthorizedException":
1540
- case "com.amazonaws.schemas#UnauthorizedException":
1541
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1542
- default:
1543
- const parsedBody = parsedOutput.body;
1544
- return throwDefaultError({
1545
- output,
1546
- parsedBody,
1547
- errorCode
1548
- });
1549
- }
1550
- }, "de_GetDiscoveredSchemaCommandError");
1551
1047
  var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1552
1048
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1553
- return de_GetResourcePolicyCommandError(output, context);
1049
+ return de_CommandError(output, context);
1554
1050
  }
1555
1051
  const contents = (0, import_smithy_client.map)({
1556
1052
  $metadata: deserializeMetadata(output)
@@ -1563,43 +1059,9 @@ var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context)
1563
1059
  Object.assign(contents, doc);
1564
1060
  return contents;
1565
1061
  }, "de_GetResourcePolicyCommand");
1566
- var de_GetResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1567
- const parsedOutput = {
1568
- ...output,
1569
- body: await parseErrorBody(output.body, context)
1570
- };
1571
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1572
- switch (errorCode) {
1573
- case "BadRequestException":
1574
- case "com.amazonaws.schemas#BadRequestException":
1575
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1576
- case "ForbiddenException":
1577
- case "com.amazonaws.schemas#ForbiddenException":
1578
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1579
- case "InternalServerErrorException":
1580
- case "com.amazonaws.schemas#InternalServerErrorException":
1581
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1582
- case "NotFoundException":
1583
- case "com.amazonaws.schemas#NotFoundException":
1584
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1585
- case "ServiceUnavailableException":
1586
- case "com.amazonaws.schemas#ServiceUnavailableException":
1587
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1588
- case "UnauthorizedException":
1589
- case "com.amazonaws.schemas#UnauthorizedException":
1590
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1591
- default:
1592
- const parsedBody = parsedOutput.body;
1593
- return throwDefaultError({
1594
- output,
1595
- parsedBody,
1596
- errorCode
1597
- });
1598
- }
1599
- }, "de_GetResourcePolicyCommandError");
1600
1062
  var de_ListDiscoverersCommand = /* @__PURE__ */ __name(async (output, context) => {
1601
1063
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1602
- return de_ListDiscoverersCommandError(output, context);
1064
+ return de_CommandError(output, context);
1603
1065
  }
1604
1066
  const contents = (0, import_smithy_client.map)({
1605
1067
  $metadata: deserializeMetadata(output)
@@ -1612,40 +1074,9 @@ var de_ListDiscoverersCommand = /* @__PURE__ */ __name(async (output, context) =
1612
1074
  Object.assign(contents, doc);
1613
1075
  return contents;
1614
1076
  }, "de_ListDiscoverersCommand");
1615
- var de_ListDiscoverersCommandError = /* @__PURE__ */ __name(async (output, context) => {
1616
- const parsedOutput = {
1617
- ...output,
1618
- body: await parseErrorBody(output.body, context)
1619
- };
1620
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1621
- switch (errorCode) {
1622
- case "BadRequestException":
1623
- case "com.amazonaws.schemas#BadRequestException":
1624
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1625
- case "ForbiddenException":
1626
- case "com.amazonaws.schemas#ForbiddenException":
1627
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1628
- case "InternalServerErrorException":
1629
- case "com.amazonaws.schemas#InternalServerErrorException":
1630
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1631
- case "ServiceUnavailableException":
1632
- case "com.amazonaws.schemas#ServiceUnavailableException":
1633
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1634
- case "UnauthorizedException":
1635
- case "com.amazonaws.schemas#UnauthorizedException":
1636
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1637
- default:
1638
- const parsedBody = parsedOutput.body;
1639
- return throwDefaultError({
1640
- output,
1641
- parsedBody,
1642
- errorCode
1643
- });
1644
- }
1645
- }, "de_ListDiscoverersCommandError");
1646
1077
  var de_ListRegistriesCommand = /* @__PURE__ */ __name(async (output, context) => {
1647
1078
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1648
- return de_ListRegistriesCommandError(output, context);
1079
+ return de_CommandError(output, context);
1649
1080
  }
1650
1081
  const contents = (0, import_smithy_client.map)({
1651
1082
  $metadata: deserializeMetadata(output)
@@ -1658,40 +1089,9 @@ var de_ListRegistriesCommand = /* @__PURE__ */ __name(async (output, context) =>
1658
1089
  Object.assign(contents, doc);
1659
1090
  return contents;
1660
1091
  }, "de_ListRegistriesCommand");
1661
- var de_ListRegistriesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1662
- const parsedOutput = {
1663
- ...output,
1664
- body: await parseErrorBody(output.body, context)
1665
- };
1666
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1667
- switch (errorCode) {
1668
- case "BadRequestException":
1669
- case "com.amazonaws.schemas#BadRequestException":
1670
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1671
- case "ForbiddenException":
1672
- case "com.amazonaws.schemas#ForbiddenException":
1673
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1674
- case "InternalServerErrorException":
1675
- case "com.amazonaws.schemas#InternalServerErrorException":
1676
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1677
- case "ServiceUnavailableException":
1678
- case "com.amazonaws.schemas#ServiceUnavailableException":
1679
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1680
- case "UnauthorizedException":
1681
- case "com.amazonaws.schemas#UnauthorizedException":
1682
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1683
- default:
1684
- const parsedBody = parsedOutput.body;
1685
- return throwDefaultError({
1686
- output,
1687
- parsedBody,
1688
- errorCode
1689
- });
1690
- }
1691
- }, "de_ListRegistriesCommandError");
1692
1092
  var de_ListSchemasCommand = /* @__PURE__ */ __name(async (output, context) => {
1693
1093
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1694
- return de_ListSchemasCommandError(output, context);
1094
+ return de_CommandError(output, context);
1695
1095
  }
1696
1096
  const contents = (0, import_smithy_client.map)({
1697
1097
  $metadata: deserializeMetadata(output)
@@ -1704,40 +1104,9 @@ var de_ListSchemasCommand = /* @__PURE__ */ __name(async (output, context) => {
1704
1104
  Object.assign(contents, doc);
1705
1105
  return contents;
1706
1106
  }, "de_ListSchemasCommand");
1707
- var de_ListSchemasCommandError = /* @__PURE__ */ __name(async (output, context) => {
1708
- const parsedOutput = {
1709
- ...output,
1710
- body: await parseErrorBody(output.body, context)
1711
- };
1712
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1713
- switch (errorCode) {
1714
- case "BadRequestException":
1715
- case "com.amazonaws.schemas#BadRequestException":
1716
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1717
- case "ForbiddenException":
1718
- case "com.amazonaws.schemas#ForbiddenException":
1719
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1720
- case "InternalServerErrorException":
1721
- case "com.amazonaws.schemas#InternalServerErrorException":
1722
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1723
- case "ServiceUnavailableException":
1724
- case "com.amazonaws.schemas#ServiceUnavailableException":
1725
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1726
- case "UnauthorizedException":
1727
- case "com.amazonaws.schemas#UnauthorizedException":
1728
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1729
- default:
1730
- const parsedBody = parsedOutput.body;
1731
- return throwDefaultError({
1732
- output,
1733
- parsedBody,
1734
- errorCode
1735
- });
1736
- }
1737
- }, "de_ListSchemasCommandError");
1738
1107
  var de_ListSchemaVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1739
1108
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1740
- return de_ListSchemaVersionsCommandError(output, context);
1109
+ return de_CommandError(output, context);
1741
1110
  }
1742
1111
  const contents = (0, import_smithy_client.map)({
1743
1112
  $metadata: deserializeMetadata(output)
@@ -1750,43 +1119,9 @@ var de_ListSchemaVersionsCommand = /* @__PURE__ */ __name(async (output, context
1750
1119
  Object.assign(contents, doc);
1751
1120
  return contents;
1752
1121
  }, "de_ListSchemaVersionsCommand");
1753
- var de_ListSchemaVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1754
- const parsedOutput = {
1755
- ...output,
1756
- body: await parseErrorBody(output.body, context)
1757
- };
1758
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1759
- switch (errorCode) {
1760
- case "BadRequestException":
1761
- case "com.amazonaws.schemas#BadRequestException":
1762
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1763
- case "ForbiddenException":
1764
- case "com.amazonaws.schemas#ForbiddenException":
1765
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1766
- case "InternalServerErrorException":
1767
- case "com.amazonaws.schemas#InternalServerErrorException":
1768
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1769
- case "NotFoundException":
1770
- case "com.amazonaws.schemas#NotFoundException":
1771
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1772
- case "ServiceUnavailableException":
1773
- case "com.amazonaws.schemas#ServiceUnavailableException":
1774
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1775
- case "UnauthorizedException":
1776
- case "com.amazonaws.schemas#UnauthorizedException":
1777
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1778
- default:
1779
- const parsedBody = parsedOutput.body;
1780
- return throwDefaultError({
1781
- output,
1782
- parsedBody,
1783
- errorCode
1784
- });
1785
- }
1786
- }, "de_ListSchemaVersionsCommandError");
1787
1122
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1788
1123
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1789
- return de_ListTagsForResourceCommandError(output, context);
1124
+ return de_CommandError(output, context);
1790
1125
  }
1791
1126
  const contents = (0, import_smithy_client.map)({
1792
1127
  $metadata: deserializeMetadata(output)
@@ -1798,143 +1133,41 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
1798
1133
  Object.assign(contents, doc);
1799
1134
  return contents;
1800
1135
  }, "de_ListTagsForResourceCommand");
1801
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1802
- const parsedOutput = {
1803
- ...output,
1804
- body: await parseErrorBody(output.body, context)
1805
- };
1806
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1807
- switch (errorCode) {
1808
- case "BadRequestException":
1809
- case "com.amazonaws.schemas#BadRequestException":
1810
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1811
- case "ForbiddenException":
1812
- case "com.amazonaws.schemas#ForbiddenException":
1813
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1814
- case "InternalServerErrorException":
1815
- case "com.amazonaws.schemas#InternalServerErrorException":
1816
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1817
- case "NotFoundException":
1818
- case "com.amazonaws.schemas#NotFoundException":
1819
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1820
- default:
1821
- const parsedBody = parsedOutput.body;
1822
- return throwDefaultError({
1823
- output,
1824
- parsedBody,
1825
- errorCode
1826
- });
1827
- }
1828
- }, "de_ListTagsForResourceCommandError");
1829
1136
  var de_PutCodeBindingCommand = /* @__PURE__ */ __name(async (output, context) => {
1830
1137
  if (output.statusCode !== 202 && output.statusCode >= 300) {
1831
- return de_PutCodeBindingCommandError(output, context);
1832
- }
1833
- const contents = (0, import_smithy_client.map)({
1834
- $metadata: deserializeMetadata(output)
1835
- });
1836
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1837
- const doc = (0, import_smithy_client.take)(data, {
1838
- CreationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1839
- LastModified: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1840
- SchemaVersion: import_smithy_client.expectString,
1841
- Status: import_smithy_client.expectString
1842
- });
1843
- Object.assign(contents, doc);
1844
- return contents;
1845
- }, "de_PutCodeBindingCommand");
1846
- var de_PutCodeBindingCommandError = /* @__PURE__ */ __name(async (output, context) => {
1847
- const parsedOutput = {
1848
- ...output,
1849
- body: await parseErrorBody(output.body, context)
1850
- };
1851
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1852
- switch (errorCode) {
1853
- case "BadRequestException":
1854
- case "com.amazonaws.schemas#BadRequestException":
1855
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1856
- case "ForbiddenException":
1857
- case "com.amazonaws.schemas#ForbiddenException":
1858
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1859
- case "GoneException":
1860
- case "com.amazonaws.schemas#GoneException":
1861
- throw await de_GoneExceptionRes(parsedOutput, context);
1862
- case "InternalServerErrorException":
1863
- case "com.amazonaws.schemas#InternalServerErrorException":
1864
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1865
- case "NotFoundException":
1866
- case "com.amazonaws.schemas#NotFoundException":
1867
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1868
- case "TooManyRequestsException":
1869
- case "com.amazonaws.schemas#TooManyRequestsException":
1870
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1871
- case "UnauthorizedException":
1872
- case "com.amazonaws.schemas#UnauthorizedException":
1873
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1874
- default:
1875
- const parsedBody = parsedOutput.body;
1876
- return throwDefaultError({
1877
- output,
1878
- parsedBody,
1879
- errorCode
1880
- });
1881
- }
1882
- }, "de_PutCodeBindingCommandError");
1883
- var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1884
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1885
- return de_PutResourcePolicyCommandError(output, context);
1138
+ return de_CommandError(output, context);
1886
1139
  }
1887
- const contents = (0, import_smithy_client.map)({
1888
- $metadata: deserializeMetadata(output)
1889
- });
1890
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1891
- const doc = (0, import_smithy_client.take)(data, {
1892
- Policy: (_) => new import_smithy_client.LazyJsonString(_),
1893
- RevisionId: import_smithy_client.expectString
1894
- });
1895
- Object.assign(contents, doc);
1896
- return contents;
1897
- }, "de_PutResourcePolicyCommand");
1898
- var de_PutResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1899
- const parsedOutput = {
1900
- ...output,
1901
- body: await parseErrorBody(output.body, context)
1902
- };
1903
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1904
- switch (errorCode) {
1905
- case "BadRequestException":
1906
- case "com.amazonaws.schemas#BadRequestException":
1907
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1908
- case "ForbiddenException":
1909
- case "com.amazonaws.schemas#ForbiddenException":
1910
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1911
- case "InternalServerErrorException":
1912
- case "com.amazonaws.schemas#InternalServerErrorException":
1913
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1914
- case "NotFoundException":
1915
- case "com.amazonaws.schemas#NotFoundException":
1916
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1917
- case "PreconditionFailedException":
1918
- case "com.amazonaws.schemas#PreconditionFailedException":
1919
- throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
1920
- case "ServiceUnavailableException":
1921
- case "com.amazonaws.schemas#ServiceUnavailableException":
1922
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1923
- case "UnauthorizedException":
1924
- case "com.amazonaws.schemas#UnauthorizedException":
1925
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1926
- default:
1927
- const parsedBody = parsedOutput.body;
1928
- return throwDefaultError({
1929
- output,
1930
- parsedBody,
1931
- errorCode
1932
- });
1140
+ const contents = (0, import_smithy_client.map)({
1141
+ $metadata: deserializeMetadata(output)
1142
+ });
1143
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1144
+ const doc = (0, import_smithy_client.take)(data, {
1145
+ CreationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1146
+ LastModified: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1147
+ SchemaVersion: import_smithy_client.expectString,
1148
+ Status: import_smithy_client.expectString
1149
+ });
1150
+ Object.assign(contents, doc);
1151
+ return contents;
1152
+ }, "de_PutCodeBindingCommand");
1153
+ var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1154
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1155
+ return de_CommandError(output, context);
1933
1156
  }
1934
- }, "de_PutResourcePolicyCommandError");
1157
+ const contents = (0, import_smithy_client.map)({
1158
+ $metadata: deserializeMetadata(output)
1159
+ });
1160
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1161
+ const doc = (0, import_smithy_client.take)(data, {
1162
+ Policy: (_) => new import_smithy_client.LazyJsonString(_),
1163
+ RevisionId: import_smithy_client.expectString
1164
+ });
1165
+ Object.assign(contents, doc);
1166
+ return contents;
1167
+ }, "de_PutResourcePolicyCommand");
1935
1168
  var de_SearchSchemasCommand = /* @__PURE__ */ __name(async (output, context) => {
1936
1169
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1937
- return de_SearchSchemasCommandError(output, context);
1170
+ return de_CommandError(output, context);
1938
1171
  }
1939
1172
  const contents = (0, import_smithy_client.map)({
1940
1173
  $metadata: deserializeMetadata(output)
@@ -1947,40 +1180,9 @@ var de_SearchSchemasCommand = /* @__PURE__ */ __name(async (output, context) =>
1947
1180
  Object.assign(contents, doc);
1948
1181
  return contents;
1949
1182
  }, "de_SearchSchemasCommand");
1950
- var de_SearchSchemasCommandError = /* @__PURE__ */ __name(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 "BadRequestException":
1958
- case "com.amazonaws.schemas#BadRequestException":
1959
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1960
- case "ForbiddenException":
1961
- case "com.amazonaws.schemas#ForbiddenException":
1962
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1963
- case "InternalServerErrorException":
1964
- case "com.amazonaws.schemas#InternalServerErrorException":
1965
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1966
- case "ServiceUnavailableException":
1967
- case "com.amazonaws.schemas#ServiceUnavailableException":
1968
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1969
- case "UnauthorizedException":
1970
- case "com.amazonaws.schemas#UnauthorizedException":
1971
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1972
- default:
1973
- const parsedBody = parsedOutput.body;
1974
- return throwDefaultError({
1975
- output,
1976
- parsedBody,
1977
- errorCode
1978
- });
1979
- }
1980
- }, "de_SearchSchemasCommandError");
1981
1183
  var de_StartDiscovererCommand = /* @__PURE__ */ __name(async (output, context) => {
1982
1184
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1983
- return de_StartDiscovererCommandError(output, context);
1185
+ return de_CommandError(output, context);
1984
1186
  }
1985
1187
  const contents = (0, import_smithy_client.map)({
1986
1188
  $metadata: deserializeMetadata(output)
@@ -1993,43 +1195,9 @@ var de_StartDiscovererCommand = /* @__PURE__ */ __name(async (output, context) =
1993
1195
  Object.assign(contents, doc);
1994
1196
  return contents;
1995
1197
  }, "de_StartDiscovererCommand");
1996
- var de_StartDiscovererCommandError = /* @__PURE__ */ __name(async (output, context) => {
1997
- const parsedOutput = {
1998
- ...output,
1999
- body: await parseErrorBody(output.body, context)
2000
- };
2001
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2002
- switch (errorCode) {
2003
- case "BadRequestException":
2004
- case "com.amazonaws.schemas#BadRequestException":
2005
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2006
- case "ForbiddenException":
2007
- case "com.amazonaws.schemas#ForbiddenException":
2008
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2009
- case "InternalServerErrorException":
2010
- case "com.amazonaws.schemas#InternalServerErrorException":
2011
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2012
- case "NotFoundException":
2013
- case "com.amazonaws.schemas#NotFoundException":
2014
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2015
- case "ServiceUnavailableException":
2016
- case "com.amazonaws.schemas#ServiceUnavailableException":
2017
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2018
- case "UnauthorizedException":
2019
- case "com.amazonaws.schemas#UnauthorizedException":
2020
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2021
- default:
2022
- const parsedBody = parsedOutput.body;
2023
- return throwDefaultError({
2024
- output,
2025
- parsedBody,
2026
- errorCode
2027
- });
2028
- }
2029
- }, "de_StartDiscovererCommandError");
2030
1198
  var de_StopDiscovererCommand = /* @__PURE__ */ __name(async (output, context) => {
2031
1199
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2032
- return de_StopDiscovererCommandError(output, context);
1200
+ return de_CommandError(output, context);
2033
1201
  }
2034
1202
  const contents = (0, import_smithy_client.map)({
2035
1203
  $metadata: deserializeMetadata(output)
@@ -2042,43 +1210,9 @@ var de_StopDiscovererCommand = /* @__PURE__ */ __name(async (output, context) =>
2042
1210
  Object.assign(contents, doc);
2043
1211
  return contents;
2044
1212
  }, "de_StopDiscovererCommand");
2045
- var de_StopDiscovererCommandError = /* @__PURE__ */ __name(async (output, context) => {
2046
- const parsedOutput = {
2047
- ...output,
2048
- body: await parseErrorBody(output.body, context)
2049
- };
2050
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2051
- switch (errorCode) {
2052
- case "BadRequestException":
2053
- case "com.amazonaws.schemas#BadRequestException":
2054
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2055
- case "ForbiddenException":
2056
- case "com.amazonaws.schemas#ForbiddenException":
2057
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2058
- case "InternalServerErrorException":
2059
- case "com.amazonaws.schemas#InternalServerErrorException":
2060
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2061
- case "NotFoundException":
2062
- case "com.amazonaws.schemas#NotFoundException":
2063
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2064
- case "ServiceUnavailableException":
2065
- case "com.amazonaws.schemas#ServiceUnavailableException":
2066
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2067
- case "UnauthorizedException":
2068
- case "com.amazonaws.schemas#UnauthorizedException":
2069
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2070
- default:
2071
- const parsedBody = parsedOutput.body;
2072
- return throwDefaultError({
2073
- output,
2074
- parsedBody,
2075
- errorCode
2076
- });
2077
- }
2078
- }, "de_StopDiscovererCommandError");
2079
1213
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2080
1214
  if (output.statusCode !== 204 && output.statusCode >= 300) {
2081
- return de_TagResourceCommandError(output, context);
1215
+ return de_CommandError(output, context);
2082
1216
  }
2083
1217
  const contents = (0, import_smithy_client.map)({
2084
1218
  $metadata: deserializeMetadata(output)
@@ -2086,37 +1220,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2086
1220
  await (0, import_smithy_client.collectBody)(output.body, context);
2087
1221
  return contents;
2088
1222
  }, "de_TagResourceCommand");
2089
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2090
- const parsedOutput = {
2091
- ...output,
2092
- body: await parseErrorBody(output.body, context)
2093
- };
2094
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2095
- switch (errorCode) {
2096
- case "BadRequestException":
2097
- case "com.amazonaws.schemas#BadRequestException":
2098
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2099
- case "ForbiddenException":
2100
- case "com.amazonaws.schemas#ForbiddenException":
2101
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2102
- case "InternalServerErrorException":
2103
- case "com.amazonaws.schemas#InternalServerErrorException":
2104
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2105
- case "NotFoundException":
2106
- case "com.amazonaws.schemas#NotFoundException":
2107
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2108
- default:
2109
- const parsedBody = parsedOutput.body;
2110
- return throwDefaultError({
2111
- output,
2112
- parsedBody,
2113
- errorCode
2114
- });
2115
- }
2116
- }, "de_TagResourceCommandError");
2117
1223
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2118
1224
  if (output.statusCode !== 204 && output.statusCode >= 300) {
2119
- return de_UntagResourceCommandError(output, context);
1225
+ return de_CommandError(output, context);
2120
1226
  }
2121
1227
  const contents = (0, import_smithy_client.map)({
2122
1228
  $metadata: deserializeMetadata(output)
@@ -2124,37 +1230,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
2124
1230
  await (0, import_smithy_client.collectBody)(output.body, context);
2125
1231
  return contents;
2126
1232
  }, "de_UntagResourceCommand");
2127
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2128
- const parsedOutput = {
2129
- ...output,
2130
- body: await parseErrorBody(output.body, context)
2131
- };
2132
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2133
- switch (errorCode) {
2134
- case "BadRequestException":
2135
- case "com.amazonaws.schemas#BadRequestException":
2136
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2137
- case "ForbiddenException":
2138
- case "com.amazonaws.schemas#ForbiddenException":
2139
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2140
- case "InternalServerErrorException":
2141
- case "com.amazonaws.schemas#InternalServerErrorException":
2142
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2143
- case "NotFoundException":
2144
- case "com.amazonaws.schemas#NotFoundException":
2145
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2146
- default:
2147
- const parsedBody = parsedOutput.body;
2148
- return throwDefaultError({
2149
- output,
2150
- parsedBody,
2151
- errorCode
2152
- });
2153
- }
2154
- }, "de_UntagResourceCommandError");
2155
1233
  var de_UpdateDiscovererCommand = /* @__PURE__ */ __name(async (output, context) => {
2156
1234
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2157
- return de_UpdateDiscovererCommandError(output, context);
1235
+ return de_CommandError(output, context);
2158
1236
  }
2159
1237
  const contents = (0, import_smithy_client.map)({
2160
1238
  $metadata: deserializeMetadata(output)
@@ -2172,43 +1250,9 @@ var de_UpdateDiscovererCommand = /* @__PURE__ */ __name(async (output, context)
2172
1250
  Object.assign(contents, doc);
2173
1251
  return contents;
2174
1252
  }, "de_UpdateDiscovererCommand");
2175
- var de_UpdateDiscovererCommandError = /* @__PURE__ */ __name(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 "BadRequestException":
2183
- case "com.amazonaws.schemas#BadRequestException":
2184
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2185
- case "ForbiddenException":
2186
- case "com.amazonaws.schemas#ForbiddenException":
2187
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2188
- case "InternalServerErrorException":
2189
- case "com.amazonaws.schemas#InternalServerErrorException":
2190
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2191
- case "NotFoundException":
2192
- case "com.amazonaws.schemas#NotFoundException":
2193
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2194
- case "ServiceUnavailableException":
2195
- case "com.amazonaws.schemas#ServiceUnavailableException":
2196
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2197
- case "UnauthorizedException":
2198
- case "com.amazonaws.schemas#UnauthorizedException":
2199
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2200
- default:
2201
- const parsedBody = parsedOutput.body;
2202
- return throwDefaultError({
2203
- output,
2204
- parsedBody,
2205
- errorCode
2206
- });
2207
- }
2208
- }, "de_UpdateDiscovererCommandError");
2209
1253
  var de_UpdateRegistryCommand = /* @__PURE__ */ __name(async (output, context) => {
2210
1254
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2211
- return de_UpdateRegistryCommandError(output, context);
1255
+ return de_CommandError(output, context);
2212
1256
  }
2213
1257
  const contents = (0, import_smithy_client.map)({
2214
1258
  $metadata: deserializeMetadata(output)
@@ -2223,43 +1267,9 @@ var de_UpdateRegistryCommand = /* @__PURE__ */ __name(async (output, context) =>
2223
1267
  Object.assign(contents, doc);
2224
1268
  return contents;
2225
1269
  }, "de_UpdateRegistryCommand");
2226
- var de_UpdateRegistryCommandError = /* @__PURE__ */ __name(async (output, context) => {
2227
- const parsedOutput = {
2228
- ...output,
2229
- body: await parseErrorBody(output.body, context)
2230
- };
2231
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2232
- switch (errorCode) {
2233
- case "BadRequestException":
2234
- case "com.amazonaws.schemas#BadRequestException":
2235
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2236
- case "ForbiddenException":
2237
- case "com.amazonaws.schemas#ForbiddenException":
2238
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2239
- case "InternalServerErrorException":
2240
- case "com.amazonaws.schemas#InternalServerErrorException":
2241
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2242
- case "NotFoundException":
2243
- case "com.amazonaws.schemas#NotFoundException":
2244
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2245
- case "ServiceUnavailableException":
2246
- case "com.amazonaws.schemas#ServiceUnavailableException":
2247
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2248
- case "UnauthorizedException":
2249
- case "com.amazonaws.schemas#UnauthorizedException":
2250
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2251
- default:
2252
- const parsedBody = parsedOutput.body;
2253
- return throwDefaultError({
2254
- output,
2255
- parsedBody,
2256
- errorCode
2257
- });
2258
- }
2259
- }, "de_UpdateRegistryCommandError");
2260
1270
  var de_UpdateSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {
2261
1271
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2262
- return de_UpdateSchemaCommandError(output, context);
1272
+ return de_CommandError(output, context);
2263
1273
  }
2264
1274
  const contents = (0, import_smithy_client.map)({
2265
1275
  $metadata: deserializeMetadata(output)
@@ -2278,7 +1288,7 @@ var de_UpdateSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {
2278
1288
  Object.assign(contents, doc);
2279
1289
  return contents;
2280
1290
  }, "de_UpdateSchemaCommand");
2281
- var de_UpdateSchemaCommandError = /* @__PURE__ */ __name(async (output, context) => {
1291
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
2282
1292
  const parsedOutput = {
2283
1293
  ...output,
2284
1294
  body: await parseErrorBody(output.body, context)
@@ -2288,18 +1298,33 @@ var de_UpdateSchemaCommandError = /* @__PURE__ */ __name(async (output, context)
2288
1298
  case "BadRequestException":
2289
1299
  case "com.amazonaws.schemas#BadRequestException":
2290
1300
  throw await de_BadRequestExceptionRes(parsedOutput, context);
1301
+ case "ConflictException":
1302
+ case "com.amazonaws.schemas#ConflictException":
1303
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2291
1304
  case "ForbiddenException":
2292
1305
  case "com.amazonaws.schemas#ForbiddenException":
2293
1306
  throw await de_ForbiddenExceptionRes(parsedOutput, context);
2294
1307
  case "InternalServerErrorException":
2295
1308
  case "com.amazonaws.schemas#InternalServerErrorException":
2296
1309
  throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2297
- case "NotFoundException":
2298
- case "com.amazonaws.schemas#NotFoundException":
2299
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2300
1310
  case "ServiceUnavailableException":
2301
1311
  case "com.amazonaws.schemas#ServiceUnavailableException":
2302
1312
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1313
+ case "UnauthorizedException":
1314
+ case "com.amazonaws.schemas#UnauthorizedException":
1315
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1316
+ case "NotFoundException":
1317
+ case "com.amazonaws.schemas#NotFoundException":
1318
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1319
+ case "TooManyRequestsException":
1320
+ case "com.amazonaws.schemas#TooManyRequestsException":
1321
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1322
+ case "GoneException":
1323
+ case "com.amazonaws.schemas#GoneException":
1324
+ throw await de_GoneExceptionRes(parsedOutput, context);
1325
+ case "PreconditionFailedException":
1326
+ case "com.amazonaws.schemas#PreconditionFailedException":
1327
+ throw await de_PreconditionFailedExceptionRes(parsedOutput, context);
2303
1328
  default:
2304
1329
  const parsedBody = parsedOutput.body;
2305
1330
  return throwDefaultError({
@@ -2308,7 +1333,7 @@ var de_UpdateSchemaCommandError = /* @__PURE__ */ __name(async (output, context)
2308
1333
  errorCode
2309
1334
  });
2310
1335
  }
2311
- }, "de_UpdateSchemaCommandError");
1336
+ }, "de_CommandError");
2312
1337
  var throwDefaultError = (0, import_smithy_client.withBaseException)(SchemasServiceException);
2313
1338
  var de_BadRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2314
1339
  const contents = (0, import_smithy_client.map)({});