@aws-sdk/client-migrationhuborchestrator 3.503.1 → 3.507.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -798,7 +798,7 @@ var se_UpdateWorkflowStepGroupCommand = /* @__PURE__ */ __name(async (input, con
798
798
  }, "se_UpdateWorkflowStepGroupCommand");
799
799
  var de_CreateWorkflowCommand = /* @__PURE__ */ __name(async (output, context) => {
800
800
  if (output.statusCode !== 200 && output.statusCode >= 300) {
801
- return de_CreateWorkflowCommandError(output, context);
801
+ return de_CommandError(output, context);
802
802
  }
803
803
  const contents = (0, import_smithy_client.map)({
804
804
  $metadata: deserializeMetadata(output)
@@ -820,37 +820,9 @@ var de_CreateWorkflowCommand = /* @__PURE__ */ __name(async (output, context) =>
820
820
  Object.assign(contents, doc);
821
821
  return contents;
822
822
  }, "de_CreateWorkflowCommand");
823
- var de_CreateWorkflowCommandError = /* @__PURE__ */ __name(async (output, context) => {
824
- const parsedOutput = {
825
- ...output,
826
- body: await parseErrorBody(output.body, context)
827
- };
828
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
829
- switch (errorCode) {
830
- case "AccessDeniedException":
831
- case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
832
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
833
- case "InternalServerException":
834
- case "com.amazonaws.migrationhuborchestrator#InternalServerException":
835
- throw await de_InternalServerExceptionRes(parsedOutput, context);
836
- case "ThrottlingException":
837
- case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
838
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
839
- case "ValidationException":
840
- case "com.amazonaws.migrationhuborchestrator#ValidationException":
841
- throw await de_ValidationExceptionRes(parsedOutput, context);
842
- default:
843
- const parsedBody = parsedOutput.body;
844
- return throwDefaultError({
845
- output,
846
- parsedBody,
847
- errorCode
848
- });
849
- }
850
- }, "de_CreateWorkflowCommandError");
851
823
  var de_CreateWorkflowStepCommand = /* @__PURE__ */ __name(async (output, context) => {
852
824
  if (output.statusCode !== 200 && output.statusCode >= 300) {
853
- return de_CreateWorkflowStepCommandError(output, context);
825
+ return de_CommandError(output, context);
854
826
  }
855
827
  const contents = (0, import_smithy_client.map)({
856
828
  $metadata: deserializeMetadata(output)
@@ -865,37 +837,9 @@ var de_CreateWorkflowStepCommand = /* @__PURE__ */ __name(async (output, context
865
837
  Object.assign(contents, doc);
866
838
  return contents;
867
839
  }, "de_CreateWorkflowStepCommand");
868
- var de_CreateWorkflowStepCommandError = /* @__PURE__ */ __name(async (output, context) => {
869
- const parsedOutput = {
870
- ...output,
871
- body: await parseErrorBody(output.body, context)
872
- };
873
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
874
- switch (errorCode) {
875
- case "AccessDeniedException":
876
- case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
877
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
878
- case "InternalServerException":
879
- case "com.amazonaws.migrationhuborchestrator#InternalServerException":
880
- throw await de_InternalServerExceptionRes(parsedOutput, context);
881
- case "ThrottlingException":
882
- case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
883
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
884
- case "ValidationException":
885
- case "com.amazonaws.migrationhuborchestrator#ValidationException":
886
- throw await de_ValidationExceptionRes(parsedOutput, context);
887
- default:
888
- const parsedBody = parsedOutput.body;
889
- return throwDefaultError({
890
- output,
891
- parsedBody,
892
- errorCode
893
- });
894
- }
895
- }, "de_CreateWorkflowStepCommandError");
896
840
  var de_CreateWorkflowStepGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
897
841
  if (output.statusCode !== 200 && output.statusCode >= 300) {
898
- return de_CreateWorkflowStepGroupCommandError(output, context);
842
+ return de_CommandError(output, context);
899
843
  }
900
844
  const contents = (0, import_smithy_client.map)({
901
845
  $metadata: deserializeMetadata(output)
@@ -914,37 +858,9 @@ var de_CreateWorkflowStepGroupCommand = /* @__PURE__ */ __name(async (output, co
914
858
  Object.assign(contents, doc);
915
859
  return contents;
916
860
  }, "de_CreateWorkflowStepGroupCommand");
917
- var de_CreateWorkflowStepGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
918
- const parsedOutput = {
919
- ...output,
920
- body: await parseErrorBody(output.body, context)
921
- };
922
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
923
- switch (errorCode) {
924
- case "AccessDeniedException":
925
- case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
926
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
927
- case "InternalServerException":
928
- case "com.amazonaws.migrationhuborchestrator#InternalServerException":
929
- throw await de_InternalServerExceptionRes(parsedOutput, context);
930
- case "ThrottlingException":
931
- case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
932
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
933
- case "ValidationException":
934
- case "com.amazonaws.migrationhuborchestrator#ValidationException":
935
- throw await de_ValidationExceptionRes(parsedOutput, context);
936
- default:
937
- const parsedBody = parsedOutput.body;
938
- return throwDefaultError({
939
- output,
940
- parsedBody,
941
- errorCode
942
- });
943
- }
944
- }, "de_CreateWorkflowStepGroupCommandError");
945
861
  var de_DeleteWorkflowCommand = /* @__PURE__ */ __name(async (output, context) => {
946
862
  if (output.statusCode !== 202 && output.statusCode >= 300) {
947
- return de_DeleteWorkflowCommandError(output, context);
863
+ return de_CommandError(output, context);
948
864
  }
949
865
  const contents = (0, import_smithy_client.map)({
950
866
  $metadata: deserializeMetadata(output)
@@ -958,40 +874,9 @@ var de_DeleteWorkflowCommand = /* @__PURE__ */ __name(async (output, context) =>
958
874
  Object.assign(contents, doc);
959
875
  return contents;
960
876
  }, "de_DeleteWorkflowCommand");
961
- var de_DeleteWorkflowCommandError = /* @__PURE__ */ __name(async (output, context) => {
962
- const parsedOutput = {
963
- ...output,
964
- body: await parseErrorBody(output.body, context)
965
- };
966
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
967
- switch (errorCode) {
968
- case "AccessDeniedException":
969
- case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
970
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
971
- case "InternalServerException":
972
- case "com.amazonaws.migrationhuborchestrator#InternalServerException":
973
- throw await de_InternalServerExceptionRes(parsedOutput, context);
974
- case "ResourceNotFoundException":
975
- case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
976
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
977
- case "ThrottlingException":
978
- case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
979
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
980
- case "ValidationException":
981
- case "com.amazonaws.migrationhuborchestrator#ValidationException":
982
- throw await de_ValidationExceptionRes(parsedOutput, context);
983
- default:
984
- const parsedBody = parsedOutput.body;
985
- return throwDefaultError({
986
- output,
987
- parsedBody,
988
- errorCode
989
- });
990
- }
991
- }, "de_DeleteWorkflowCommandError");
992
877
  var de_DeleteWorkflowStepCommand = /* @__PURE__ */ __name(async (output, context) => {
993
878
  if (output.statusCode !== 200 && output.statusCode >= 300) {
994
- return de_DeleteWorkflowStepCommandError(output, context);
879
+ return de_CommandError(output, context);
995
880
  }
996
881
  const contents = (0, import_smithy_client.map)({
997
882
  $metadata: deserializeMetadata(output)
@@ -999,40 +884,9 @@ var de_DeleteWorkflowStepCommand = /* @__PURE__ */ __name(async (output, context
999
884
  await (0, import_smithy_client.collectBody)(output.body, context);
1000
885
  return contents;
1001
886
  }, "de_DeleteWorkflowStepCommand");
1002
- var de_DeleteWorkflowStepCommandError = /* @__PURE__ */ __name(async (output, context) => {
1003
- const parsedOutput = {
1004
- ...output,
1005
- body: await parseErrorBody(output.body, context)
1006
- };
1007
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1008
- switch (errorCode) {
1009
- case "AccessDeniedException":
1010
- case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
1011
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1012
- case "InternalServerException":
1013
- case "com.amazonaws.migrationhuborchestrator#InternalServerException":
1014
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1015
- case "ResourceNotFoundException":
1016
- case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
1017
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1018
- case "ThrottlingException":
1019
- case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
1020
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1021
- case "ValidationException":
1022
- case "com.amazonaws.migrationhuborchestrator#ValidationException":
1023
- throw await de_ValidationExceptionRes(parsedOutput, context);
1024
- default:
1025
- const parsedBody = parsedOutput.body;
1026
- return throwDefaultError({
1027
- output,
1028
- parsedBody,
1029
- errorCode
1030
- });
1031
- }
1032
- }, "de_DeleteWorkflowStepCommandError");
1033
887
  var de_DeleteWorkflowStepGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1034
888
  if (output.statusCode !== 202 && output.statusCode >= 300) {
1035
- return de_DeleteWorkflowStepGroupCommandError(output, context);
889
+ return de_CommandError(output, context);
1036
890
  }
1037
891
  const contents = (0, import_smithy_client.map)({
1038
892
  $metadata: deserializeMetadata(output)
@@ -1040,40 +894,9 @@ var de_DeleteWorkflowStepGroupCommand = /* @__PURE__ */ __name(async (output, co
1040
894
  await (0, import_smithy_client.collectBody)(output.body, context);
1041
895
  return contents;
1042
896
  }, "de_DeleteWorkflowStepGroupCommand");
1043
- var de_DeleteWorkflowStepGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1044
- const parsedOutput = {
1045
- ...output,
1046
- body: await parseErrorBody(output.body, context)
1047
- };
1048
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1049
- switch (errorCode) {
1050
- case "AccessDeniedException":
1051
- case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
1052
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1053
- case "InternalServerException":
1054
- case "com.amazonaws.migrationhuborchestrator#InternalServerException":
1055
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1056
- case "ResourceNotFoundException":
1057
- case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
1058
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1059
- case "ThrottlingException":
1060
- case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
1061
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1062
- case "ValidationException":
1063
- case "com.amazonaws.migrationhuborchestrator#ValidationException":
1064
- throw await de_ValidationExceptionRes(parsedOutput, context);
1065
- default:
1066
- const parsedBody = parsedOutput.body;
1067
- return throwDefaultError({
1068
- output,
1069
- parsedBody,
1070
- errorCode
1071
- });
1072
- }
1073
- }, "de_DeleteWorkflowStepGroupCommandError");
1074
897
  var de_GetTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
1075
898
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1076
- return de_GetTemplateCommandError(output, context);
899
+ return de_CommandError(output, context);
1077
900
  }
1078
901
  const contents = (0, import_smithy_client.map)({
1079
902
  $metadata: deserializeMetadata(output)
@@ -1091,37 +914,9 @@ var de_GetTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
1091
914
  Object.assign(contents, doc);
1092
915
  return contents;
1093
916
  }, "de_GetTemplateCommand");
1094
- var de_GetTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
1095
- const parsedOutput = {
1096
- ...output,
1097
- body: await parseErrorBody(output.body, context)
1098
- };
1099
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1100
- switch (errorCode) {
1101
- case "AccessDeniedException":
1102
- case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
1103
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1104
- case "InternalServerException":
1105
- case "com.amazonaws.migrationhuborchestrator#InternalServerException":
1106
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1107
- case "ResourceNotFoundException":
1108
- case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
1109
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1110
- case "ThrottlingException":
1111
- case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
1112
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1113
- default:
1114
- const parsedBody = parsedOutput.body;
1115
- return throwDefaultError({
1116
- output,
1117
- parsedBody,
1118
- errorCode
1119
- });
1120
- }
1121
- }, "de_GetTemplateCommandError");
1122
917
  var de_GetTemplateStepCommand = /* @__PURE__ */ __name(async (output, context) => {
1123
918
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1124
- return de_GetTemplateStepCommandError(output, context);
919
+ return de_CommandError(output, context);
1125
920
  }
1126
921
  const contents = (0, import_smithy_client.map)({
1127
922
  $metadata: deserializeMetadata(output)
@@ -1143,40 +938,9 @@ var de_GetTemplateStepCommand = /* @__PURE__ */ __name(async (output, context) =
1143
938
  Object.assign(contents, doc);
1144
939
  return contents;
1145
940
  }, "de_GetTemplateStepCommand");
1146
- var de_GetTemplateStepCommandError = /* @__PURE__ */ __name(async (output, context) => {
1147
- const parsedOutput = {
1148
- ...output,
1149
- body: await parseErrorBody(output.body, context)
1150
- };
1151
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1152
- switch (errorCode) {
1153
- case "AccessDeniedException":
1154
- case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
1155
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1156
- case "InternalServerException":
1157
- case "com.amazonaws.migrationhuborchestrator#InternalServerException":
1158
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1159
- case "ResourceNotFoundException":
1160
- case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
1161
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1162
- case "ThrottlingException":
1163
- case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
1164
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1165
- case "ValidationException":
1166
- case "com.amazonaws.migrationhuborchestrator#ValidationException":
1167
- throw await de_ValidationExceptionRes(parsedOutput, context);
1168
- default:
1169
- const parsedBody = parsedOutput.body;
1170
- return throwDefaultError({
1171
- output,
1172
- parsedBody,
1173
- errorCode
1174
- });
1175
- }
1176
- }, "de_GetTemplateStepCommandError");
1177
941
  var de_GetTemplateStepGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1178
942
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1179
- return de_GetTemplateStepGroupCommandError(output, context);
943
+ return de_CommandError(output, context);
1180
944
  }
1181
945
  const contents = (0, import_smithy_client.map)({
1182
946
  $metadata: deserializeMetadata(output)
@@ -1197,40 +961,9 @@ var de_GetTemplateStepGroupCommand = /* @__PURE__ */ __name(async (output, conte
1197
961
  Object.assign(contents, doc);
1198
962
  return contents;
1199
963
  }, "de_GetTemplateStepGroupCommand");
1200
- var de_GetTemplateStepGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1201
- const parsedOutput = {
1202
- ...output,
1203
- body: await parseErrorBody(output.body, context)
1204
- };
1205
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1206
- switch (errorCode) {
1207
- case "AccessDeniedException":
1208
- case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
1209
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1210
- case "InternalServerException":
1211
- case "com.amazonaws.migrationhuborchestrator#InternalServerException":
1212
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1213
- case "ResourceNotFoundException":
1214
- case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
1215
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1216
- case "ThrottlingException":
1217
- case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
1218
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1219
- case "ValidationException":
1220
- case "com.amazonaws.migrationhuborchestrator#ValidationException":
1221
- throw await de_ValidationExceptionRes(parsedOutput, context);
1222
- default:
1223
- const parsedBody = parsedOutput.body;
1224
- return throwDefaultError({
1225
- output,
1226
- parsedBody,
1227
- errorCode
1228
- });
1229
- }
1230
- }, "de_GetTemplateStepGroupCommandError");
1231
964
  var de_GetWorkflowCommand = /* @__PURE__ */ __name(async (output, context) => {
1232
965
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1233
- return de_GetWorkflowCommandError(output, context);
966
+ return de_CommandError(output, context);
1234
967
  }
1235
968
  const contents = (0, import_smithy_client.map)({
1236
969
  $metadata: deserializeMetadata(output)
@@ -1261,40 +994,9 @@ var de_GetWorkflowCommand = /* @__PURE__ */ __name(async (output, context) => {
1261
994
  Object.assign(contents, doc);
1262
995
  return contents;
1263
996
  }, "de_GetWorkflowCommand");
1264
- var de_GetWorkflowCommandError = /* @__PURE__ */ __name(async (output, context) => {
1265
- const parsedOutput = {
1266
- ...output,
1267
- body: await parseErrorBody(output.body, context)
1268
- };
1269
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1270
- switch (errorCode) {
1271
- case "AccessDeniedException":
1272
- case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
1273
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1274
- case "InternalServerException":
1275
- case "com.amazonaws.migrationhuborchestrator#InternalServerException":
1276
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1277
- case "ResourceNotFoundException":
1278
- case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
1279
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1280
- case "ThrottlingException":
1281
- case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
1282
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1283
- case "ValidationException":
1284
- case "com.amazonaws.migrationhuborchestrator#ValidationException":
1285
- throw await de_ValidationExceptionRes(parsedOutput, context);
1286
- default:
1287
- const parsedBody = parsedOutput.body;
1288
- return throwDefaultError({
1289
- output,
1290
- parsedBody,
1291
- errorCode
1292
- });
1293
- }
1294
- }, "de_GetWorkflowCommandError");
1295
997
  var de_GetWorkflowStepCommand = /* @__PURE__ */ __name(async (output, context) => {
1296
998
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1297
- return de_GetWorkflowStepCommandError(output, context);
999
+ return de_CommandError(output, context);
1298
1000
  }
1299
1001
  const contents = (0, import_smithy_client.map)({
1300
1002
  $metadata: deserializeMetadata(output)
@@ -1326,37 +1028,9 @@ var de_GetWorkflowStepCommand = /* @__PURE__ */ __name(async (output, context) =
1326
1028
  Object.assign(contents, doc);
1327
1029
  return contents;
1328
1030
  }, "de_GetWorkflowStepCommand");
1329
- var de_GetWorkflowStepCommandError = /* @__PURE__ */ __name(async (output, context) => {
1330
- const parsedOutput = {
1331
- ...output,
1332
- body: await parseErrorBody(output.body, context)
1333
- };
1334
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1335
- switch (errorCode) {
1336
- case "AccessDeniedException":
1337
- case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
1338
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1339
- case "InternalServerException":
1340
- case "com.amazonaws.migrationhuborchestrator#InternalServerException":
1341
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1342
- case "ResourceNotFoundException":
1343
- case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
1344
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1345
- case "ThrottlingException":
1346
- case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
1347
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1348
- default:
1349
- const parsedBody = parsedOutput.body;
1350
- return throwDefaultError({
1351
- output,
1352
- parsedBody,
1353
- errorCode
1354
- });
1355
- }
1356
- }, "de_GetWorkflowStepCommandError");
1357
1031
  var de_GetWorkflowStepGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1358
1032
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1359
- return de_GetWorkflowStepGroupCommandError(output, context);
1033
+ return de_CommandError(output, context);
1360
1034
  }
1361
1035
  const contents = (0, import_smithy_client.map)({
1362
1036
  $metadata: deserializeMetadata(output)
@@ -1379,40 +1053,9 @@ var de_GetWorkflowStepGroupCommand = /* @__PURE__ */ __name(async (output, conte
1379
1053
  Object.assign(contents, doc);
1380
1054
  return contents;
1381
1055
  }, "de_GetWorkflowStepGroupCommand");
1382
- var de_GetWorkflowStepGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1383
- const parsedOutput = {
1384
- ...output,
1385
- body: await parseErrorBody(output.body, context)
1386
- };
1387
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1388
- switch (errorCode) {
1389
- case "AccessDeniedException":
1390
- case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
1391
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1392
- case "InternalServerException":
1393
- case "com.amazonaws.migrationhuborchestrator#InternalServerException":
1394
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1395
- case "ResourceNotFoundException":
1396
- case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
1397
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1398
- case "ThrottlingException":
1399
- case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
1400
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1401
- case "ValidationException":
1402
- case "com.amazonaws.migrationhuborchestrator#ValidationException":
1403
- throw await de_ValidationExceptionRes(parsedOutput, context);
1404
- default:
1405
- const parsedBody = parsedOutput.body;
1406
- return throwDefaultError({
1407
- output,
1408
- parsedBody,
1409
- errorCode
1410
- });
1411
- }
1412
- }, "de_GetWorkflowStepGroupCommandError");
1413
1056
  var de_ListPluginsCommand = /* @__PURE__ */ __name(async (output, context) => {
1414
1057
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1415
- return de_ListPluginsCommandError(output, context);
1058
+ return de_CommandError(output, context);
1416
1059
  }
1417
1060
  const contents = (0, import_smithy_client.map)({
1418
1061
  $metadata: deserializeMetadata(output)
@@ -1425,34 +1068,9 @@ var de_ListPluginsCommand = /* @__PURE__ */ __name(async (output, context) => {
1425
1068
  Object.assign(contents, doc);
1426
1069
  return contents;
1427
1070
  }, "de_ListPluginsCommand");
1428
- var de_ListPluginsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1429
- const parsedOutput = {
1430
- ...output,
1431
- body: await parseErrorBody(output.body, context)
1432
- };
1433
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1434
- switch (errorCode) {
1435
- case "AccessDeniedException":
1436
- case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
1437
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1438
- case "InternalServerException":
1439
- case "com.amazonaws.migrationhuborchestrator#InternalServerException":
1440
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1441
- case "ValidationException":
1442
- case "com.amazonaws.migrationhuborchestrator#ValidationException":
1443
- throw await de_ValidationExceptionRes(parsedOutput, context);
1444
- default:
1445
- const parsedBody = parsedOutput.body;
1446
- return throwDefaultError({
1447
- output,
1448
- parsedBody,
1449
- errorCode
1450
- });
1451
- }
1452
- }, "de_ListPluginsCommandError");
1453
1071
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1454
1072
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1455
- return de_ListTagsForResourceCommandError(output, context);
1073
+ return de_CommandError(output, context);
1456
1074
  }
1457
1075
  const contents = (0, import_smithy_client.map)({
1458
1076
  $metadata: deserializeMetadata(output)
@@ -1464,31 +1082,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
1464
1082
  Object.assign(contents, doc);
1465
1083
  return contents;
1466
1084
  }, "de_ListTagsForResourceCommand");
1467
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1468
- const parsedOutput = {
1469
- ...output,
1470
- body: await parseErrorBody(output.body, context)
1471
- };
1472
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1473
- switch (errorCode) {
1474
- case "ResourceNotFoundException":
1475
- case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
1476
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1477
- case "ValidationException":
1478
- case "com.amazonaws.migrationhuborchestrator#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
- }, "de_ListTagsForResourceCommandError");
1489
1085
  var de_ListTemplatesCommand = /* @__PURE__ */ __name(async (output, context) => {
1490
1086
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1491
- return de_ListTemplatesCommandError(output, context);
1087
+ return de_CommandError(output, context);
1492
1088
  }
1493
1089
  const contents = (0, import_smithy_client.map)({
1494
1090
  $metadata: deserializeMetadata(output)
@@ -1501,34 +1097,9 @@ var de_ListTemplatesCommand = /* @__PURE__ */ __name(async (output, context) =>
1501
1097
  Object.assign(contents, doc);
1502
1098
  return contents;
1503
1099
  }, "de_ListTemplatesCommand");
1504
- var de_ListTemplatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1505
- const parsedOutput = {
1506
- ...output,
1507
- body: await parseErrorBody(output.body, context)
1508
- };
1509
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1510
- switch (errorCode) {
1511
- case "AccessDeniedException":
1512
- case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
1513
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1514
- case "InternalServerException":
1515
- case "com.amazonaws.migrationhuborchestrator#InternalServerException":
1516
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1517
- case "ThrottlingException":
1518
- case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
1519
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1520
- default:
1521
- const parsedBody = parsedOutput.body;
1522
- return throwDefaultError({
1523
- output,
1524
- parsedBody,
1525
- errorCode
1526
- });
1527
- }
1528
- }, "de_ListTemplatesCommandError");
1529
1100
  var de_ListTemplateStepGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
1530
1101
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1531
- return de_ListTemplateStepGroupsCommandError(output, context);
1102
+ return de_CommandError(output, context);
1532
1103
  }
1533
1104
  const contents = (0, import_smithy_client.map)({
1534
1105
  $metadata: deserializeMetadata(output)
@@ -1541,37 +1112,9 @@ var de_ListTemplateStepGroupsCommand = /* @__PURE__ */ __name(async (output, con
1541
1112
  Object.assign(contents, doc);
1542
1113
  return contents;
1543
1114
  }, "de_ListTemplateStepGroupsCommand");
1544
- var de_ListTemplateStepGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1545
- const parsedOutput = {
1546
- ...output,
1547
- body: await parseErrorBody(output.body, context)
1548
- };
1549
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1550
- switch (errorCode) {
1551
- case "AccessDeniedException":
1552
- case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
1553
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1554
- case "InternalServerException":
1555
- case "com.amazonaws.migrationhuborchestrator#InternalServerException":
1556
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1557
- case "ResourceNotFoundException":
1558
- case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
1559
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1560
- case "ThrottlingException":
1561
- case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
1562
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1563
- default:
1564
- const parsedBody = parsedOutput.body;
1565
- return throwDefaultError({
1566
- output,
1567
- parsedBody,
1568
- errorCode
1569
- });
1570
- }
1571
- }, "de_ListTemplateStepGroupsCommandError");
1572
1115
  var de_ListTemplateStepsCommand = /* @__PURE__ */ __name(async (output, context) => {
1573
1116
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1574
- return de_ListTemplateStepsCommandError(output, context);
1117
+ return de_CommandError(output, context);
1575
1118
  }
1576
1119
  const contents = (0, import_smithy_client.map)({
1577
1120
  $metadata: deserializeMetadata(output)
@@ -1581,89 +1124,27 @@ var de_ListTemplateStepsCommand = /* @__PURE__ */ __name(async (output, context)
1581
1124
  nextToken: import_smithy_client.expectString,
1582
1125
  templateStepSummaryList: import_smithy_client._json
1583
1126
  });
1584
- Object.assign(contents, doc);
1585
- return contents;
1586
- }, "de_ListTemplateStepsCommand");
1587
- var de_ListTemplateStepsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1588
- const parsedOutput = {
1589
- ...output,
1590
- body: await parseErrorBody(output.body, context)
1591
- };
1592
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1593
- switch (errorCode) {
1594
- case "AccessDeniedException":
1595
- case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
1596
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1597
- case "InternalServerException":
1598
- case "com.amazonaws.migrationhuborchestrator#InternalServerException":
1599
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1600
- case "ResourceNotFoundException":
1601
- case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
1602
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1603
- case "ThrottlingException":
1604
- case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
1605
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1606
- case "ValidationException":
1607
- case "com.amazonaws.migrationhuborchestrator#ValidationException":
1608
- throw await de_ValidationExceptionRes(parsedOutput, context);
1609
- default:
1610
- const parsedBody = parsedOutput.body;
1611
- return throwDefaultError({
1612
- output,
1613
- parsedBody,
1614
- errorCode
1615
- });
1616
- }
1617
- }, "de_ListTemplateStepsCommandError");
1618
- var de_ListWorkflowsCommand = /* @__PURE__ */ __name(async (output, context) => {
1619
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1620
- return de_ListWorkflowsCommandError(output, context);
1621
- }
1622
- const contents = (0, import_smithy_client.map)({
1623
- $metadata: deserializeMetadata(output)
1624
- });
1625
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1626
- const doc = (0, import_smithy_client.take)(data, {
1627
- migrationWorkflowSummary: (_) => de_MigrationWorkflowSummaryList(_, context),
1628
- nextToken: import_smithy_client.expectString
1629
- });
1630
- Object.assign(contents, doc);
1631
- return contents;
1632
- }, "de_ListWorkflowsCommand");
1633
- var de_ListWorkflowsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1634
- const parsedOutput = {
1635
- ...output,
1636
- body: await parseErrorBody(output.body, context)
1637
- };
1638
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1639
- switch (errorCode) {
1640
- case "AccessDeniedException":
1641
- case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
1642
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1643
- case "InternalServerException":
1644
- case "com.amazonaws.migrationhuborchestrator#InternalServerException":
1645
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1646
- case "ResourceNotFoundException":
1647
- case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
1648
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1649
- case "ThrottlingException":
1650
- case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
1651
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1652
- case "ValidationException":
1653
- case "com.amazonaws.migrationhuborchestrator#ValidationException":
1654
- throw await de_ValidationExceptionRes(parsedOutput, context);
1655
- default:
1656
- const parsedBody = parsedOutput.body;
1657
- return throwDefaultError({
1658
- output,
1659
- parsedBody,
1660
- errorCode
1661
- });
1127
+ Object.assign(contents, doc);
1128
+ return contents;
1129
+ }, "de_ListTemplateStepsCommand");
1130
+ var de_ListWorkflowsCommand = /* @__PURE__ */ __name(async (output, context) => {
1131
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1132
+ return de_CommandError(output, context);
1662
1133
  }
1663
- }, "de_ListWorkflowsCommandError");
1134
+ const contents = (0, import_smithy_client.map)({
1135
+ $metadata: deserializeMetadata(output)
1136
+ });
1137
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1138
+ const doc = (0, import_smithy_client.take)(data, {
1139
+ migrationWorkflowSummary: (_) => de_MigrationWorkflowSummaryList(_, context),
1140
+ nextToken: import_smithy_client.expectString
1141
+ });
1142
+ Object.assign(contents, doc);
1143
+ return contents;
1144
+ }, "de_ListWorkflowsCommand");
1664
1145
  var de_ListWorkflowStepGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
1665
1146
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1666
- return de_ListWorkflowStepGroupsCommandError(output, context);
1147
+ return de_CommandError(output, context);
1667
1148
  }
1668
1149
  const contents = (0, import_smithy_client.map)({
1669
1150
  $metadata: deserializeMetadata(output)
@@ -1676,40 +1157,9 @@ var de_ListWorkflowStepGroupsCommand = /* @__PURE__ */ __name(async (output, con
1676
1157
  Object.assign(contents, doc);
1677
1158
  return contents;
1678
1159
  }, "de_ListWorkflowStepGroupsCommand");
1679
- var de_ListWorkflowStepGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1680
- const parsedOutput = {
1681
- ...output,
1682
- body: await parseErrorBody(output.body, context)
1683
- };
1684
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1685
- switch (errorCode) {
1686
- case "AccessDeniedException":
1687
- case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
1688
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1689
- case "InternalServerException":
1690
- case "com.amazonaws.migrationhuborchestrator#InternalServerException":
1691
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1692
- case "ResourceNotFoundException":
1693
- case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
1694
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1695
- case "ThrottlingException":
1696
- case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
1697
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1698
- case "ValidationException":
1699
- case "com.amazonaws.migrationhuborchestrator#ValidationException":
1700
- throw await de_ValidationExceptionRes(parsedOutput, context);
1701
- default:
1702
- const parsedBody = parsedOutput.body;
1703
- return throwDefaultError({
1704
- output,
1705
- parsedBody,
1706
- errorCode
1707
- });
1708
- }
1709
- }, "de_ListWorkflowStepGroupsCommandError");
1710
1160
  var de_ListWorkflowStepsCommand = /* @__PURE__ */ __name(async (output, context) => {
1711
1161
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1712
- return de_ListWorkflowStepsCommandError(output, context);
1162
+ return de_CommandError(output, context);
1713
1163
  }
1714
1164
  const contents = (0, import_smithy_client.map)({
1715
1165
  $metadata: deserializeMetadata(output)
@@ -1722,37 +1172,9 @@ var de_ListWorkflowStepsCommand = /* @__PURE__ */ __name(async (output, context)
1722
1172
  Object.assign(contents, doc);
1723
1173
  return contents;
1724
1174
  }, "de_ListWorkflowStepsCommand");
1725
- var de_ListWorkflowStepsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1726
- const parsedOutput = {
1727
- ...output,
1728
- body: await parseErrorBody(output.body, context)
1729
- };
1730
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1731
- switch (errorCode) {
1732
- case "AccessDeniedException":
1733
- case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
1734
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1735
- case "InternalServerException":
1736
- case "com.amazonaws.migrationhuborchestrator#InternalServerException":
1737
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1738
- case "ThrottlingException":
1739
- case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
1740
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1741
- case "ValidationException":
1742
- case "com.amazonaws.migrationhuborchestrator#ValidationException":
1743
- throw await de_ValidationExceptionRes(parsedOutput, context);
1744
- default:
1745
- const parsedBody = parsedOutput.body;
1746
- return throwDefaultError({
1747
- output,
1748
- parsedBody,
1749
- errorCode
1750
- });
1751
- }
1752
- }, "de_ListWorkflowStepsCommandError");
1753
1175
  var de_RetryWorkflowStepCommand = /* @__PURE__ */ __name(async (output, context) => {
1754
1176
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1755
- return de_RetryWorkflowStepCommandError(output, context);
1177
+ return de_CommandError(output, context);
1756
1178
  }
1757
1179
  const contents = (0, import_smithy_client.map)({
1758
1180
  $metadata: deserializeMetadata(output)
@@ -1767,37 +1189,9 @@ var de_RetryWorkflowStepCommand = /* @__PURE__ */ __name(async (output, context)
1767
1189
  Object.assign(contents, doc);
1768
1190
  return contents;
1769
1191
  }, "de_RetryWorkflowStepCommand");
1770
- var de_RetryWorkflowStepCommandError = /* @__PURE__ */ __name(async (output, context) => {
1771
- const parsedOutput = {
1772
- ...output,
1773
- body: await parseErrorBody(output.body, context)
1774
- };
1775
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1776
- switch (errorCode) {
1777
- case "AccessDeniedException":
1778
- case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
1779
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1780
- case "InternalServerException":
1781
- case "com.amazonaws.migrationhuborchestrator#InternalServerException":
1782
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1783
- case "ResourceNotFoundException":
1784
- case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
1785
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1786
- case "ThrottlingException":
1787
- case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
1788
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1789
- default:
1790
- const parsedBody = parsedOutput.body;
1791
- return throwDefaultError({
1792
- output,
1793
- parsedBody,
1794
- errorCode
1795
- });
1796
- }
1797
- }, "de_RetryWorkflowStepCommandError");
1798
1192
  var de_StartWorkflowCommand = /* @__PURE__ */ __name(async (output, context) => {
1799
1193
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1800
- return de_StartWorkflowCommandError(output, context);
1194
+ return de_CommandError(output, context);
1801
1195
  }
1802
1196
  const contents = (0, import_smithy_client.map)({
1803
1197
  $metadata: deserializeMetadata(output)
@@ -1813,40 +1207,9 @@ var de_StartWorkflowCommand = /* @__PURE__ */ __name(async (output, context) =>
1813
1207
  Object.assign(contents, doc);
1814
1208
  return contents;
1815
1209
  }, "de_StartWorkflowCommand");
1816
- var de_StartWorkflowCommandError = /* @__PURE__ */ __name(async (output, context) => {
1817
- const parsedOutput = {
1818
- ...output,
1819
- body: await parseErrorBody(output.body, context)
1820
- };
1821
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1822
- switch (errorCode) {
1823
- case "AccessDeniedException":
1824
- case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
1825
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1826
- case "InternalServerException":
1827
- case "com.amazonaws.migrationhuborchestrator#InternalServerException":
1828
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1829
- case "ResourceNotFoundException":
1830
- case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
1831
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1832
- case "ThrottlingException":
1833
- case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
1834
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1835
- case "ValidationException":
1836
- case "com.amazonaws.migrationhuborchestrator#ValidationException":
1837
- throw await de_ValidationExceptionRes(parsedOutput, context);
1838
- default:
1839
- const parsedBody = parsedOutput.body;
1840
- return throwDefaultError({
1841
- output,
1842
- parsedBody,
1843
- errorCode
1844
- });
1845
- }
1846
- }, "de_StartWorkflowCommandError");
1847
1210
  var de_StopWorkflowCommand = /* @__PURE__ */ __name(async (output, context) => {
1848
1211
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1849
- return de_StopWorkflowCommandError(output, context);
1212
+ return de_CommandError(output, context);
1850
1213
  }
1851
1214
  const contents = (0, import_smithy_client.map)({
1852
1215
  $metadata: deserializeMetadata(output)
@@ -1862,40 +1225,9 @@ var de_StopWorkflowCommand = /* @__PURE__ */ __name(async (output, context) => {
1862
1225
  Object.assign(contents, doc);
1863
1226
  return contents;
1864
1227
  }, "de_StopWorkflowCommand");
1865
- var de_StopWorkflowCommandError = /* @__PURE__ */ __name(async (output, context) => {
1866
- const parsedOutput = {
1867
- ...output,
1868
- body: await parseErrorBody(output.body, context)
1869
- };
1870
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1871
- switch (errorCode) {
1872
- case "AccessDeniedException":
1873
- case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
1874
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1875
- case "InternalServerException":
1876
- case "com.amazonaws.migrationhuborchestrator#InternalServerException":
1877
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1878
- case "ResourceNotFoundException":
1879
- case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
1880
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1881
- case "ThrottlingException":
1882
- case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
1883
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1884
- case "ValidationException":
1885
- case "com.amazonaws.migrationhuborchestrator#ValidationException":
1886
- throw await de_ValidationExceptionRes(parsedOutput, context);
1887
- default:
1888
- const parsedBody = parsedOutput.body;
1889
- return throwDefaultError({
1890
- output,
1891
- parsedBody,
1892
- errorCode
1893
- });
1894
- }
1895
- }, "de_StopWorkflowCommandError");
1896
1228
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1897
1229
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1898
- return de_TagResourceCommandError(output, context);
1230
+ return de_CommandError(output, context);
1899
1231
  }
1900
1232
  const contents = (0, import_smithy_client.map)({
1901
1233
  $metadata: deserializeMetadata(output)
@@ -1903,31 +1235,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1903
1235
  await (0, import_smithy_client.collectBody)(output.body, context);
1904
1236
  return contents;
1905
1237
  }, "de_TagResourceCommand");
1906
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1907
- const parsedOutput = {
1908
- ...output,
1909
- body: await parseErrorBody(output.body, context)
1910
- };
1911
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1912
- switch (errorCode) {
1913
- case "ResourceNotFoundException":
1914
- case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
1915
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1916
- case "ValidationException":
1917
- case "com.amazonaws.migrationhuborchestrator#ValidationException":
1918
- throw await de_ValidationExceptionRes(parsedOutput, context);
1919
- default:
1920
- const parsedBody = parsedOutput.body;
1921
- return throwDefaultError({
1922
- output,
1923
- parsedBody,
1924
- errorCode
1925
- });
1926
- }
1927
- }, "de_TagResourceCommandError");
1928
1238
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1929
1239
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1930
- return de_UntagResourceCommandError(output, context);
1240
+ return de_CommandError(output, context);
1931
1241
  }
1932
1242
  const contents = (0, import_smithy_client.map)({
1933
1243
  $metadata: deserializeMetadata(output)
@@ -1935,31 +1245,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
1935
1245
  await (0, import_smithy_client.collectBody)(output.body, context);
1936
1246
  return contents;
1937
1247
  }, "de_UntagResourceCommand");
1938
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1939
- const parsedOutput = {
1940
- ...output,
1941
- body: await parseErrorBody(output.body, context)
1942
- };
1943
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1944
- switch (errorCode) {
1945
- case "ResourceNotFoundException":
1946
- case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
1947
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1948
- case "ValidationException":
1949
- case "com.amazonaws.migrationhuborchestrator#ValidationException":
1950
- throw await de_ValidationExceptionRes(parsedOutput, context);
1951
- default:
1952
- const parsedBody = parsedOutput.body;
1953
- return throwDefaultError({
1954
- output,
1955
- parsedBody,
1956
- errorCode
1957
- });
1958
- }
1959
- }, "de_UntagResourceCommandError");
1960
1248
  var de_UpdateWorkflowCommand = /* @__PURE__ */ __name(async (output, context) => {
1961
1249
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1962
- return de_UpdateWorkflowCommandError(output, context);
1250
+ return de_CommandError(output, context);
1963
1251
  }
1964
1252
  const contents = (0, import_smithy_client.map)({
1965
1253
  $metadata: deserializeMetadata(output)
@@ -1982,40 +1270,9 @@ var de_UpdateWorkflowCommand = /* @__PURE__ */ __name(async (output, context) =>
1982
1270
  Object.assign(contents, doc);
1983
1271
  return contents;
1984
1272
  }, "de_UpdateWorkflowCommand");
1985
- var de_UpdateWorkflowCommandError = /* @__PURE__ */ __name(async (output, context) => {
1986
- const parsedOutput = {
1987
- ...output,
1988
- body: await parseErrorBody(output.body, context)
1989
- };
1990
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1991
- switch (errorCode) {
1992
- case "AccessDeniedException":
1993
- case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
1994
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1995
- case "InternalServerException":
1996
- case "com.amazonaws.migrationhuborchestrator#InternalServerException":
1997
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1998
- case "ResourceNotFoundException":
1999
- case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
2000
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2001
- case "ThrottlingException":
2002
- case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
2003
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2004
- case "ValidationException":
2005
- case "com.amazonaws.migrationhuborchestrator#ValidationException":
2006
- throw await de_ValidationExceptionRes(parsedOutput, context);
2007
- default:
2008
- const parsedBody = parsedOutput.body;
2009
- return throwDefaultError({
2010
- output,
2011
- parsedBody,
2012
- errorCode
2013
- });
2014
- }
2015
- }, "de_UpdateWorkflowCommandError");
2016
1273
  var de_UpdateWorkflowStepCommand = /* @__PURE__ */ __name(async (output, context) => {
2017
1274
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2018
- return de_UpdateWorkflowStepCommandError(output, context);
1275
+ return de_CommandError(output, context);
2019
1276
  }
2020
1277
  const contents = (0, import_smithy_client.map)({
2021
1278
  $metadata: deserializeMetadata(output)
@@ -2030,37 +1287,9 @@ var de_UpdateWorkflowStepCommand = /* @__PURE__ */ __name(async (output, context
2030
1287
  Object.assign(contents, doc);
2031
1288
  return contents;
2032
1289
  }, "de_UpdateWorkflowStepCommand");
2033
- var de_UpdateWorkflowStepCommandError = /* @__PURE__ */ __name(async (output, context) => {
2034
- const parsedOutput = {
2035
- ...output,
2036
- body: await parseErrorBody(output.body, context)
2037
- };
2038
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2039
- switch (errorCode) {
2040
- case "AccessDeniedException":
2041
- case "com.amazonaws.migrationhuborchestrator#AccessDeniedException":
2042
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2043
- case "InternalServerException":
2044
- case "com.amazonaws.migrationhuborchestrator#InternalServerException":
2045
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2046
- case "ThrottlingException":
2047
- case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
2048
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2049
- case "ValidationException":
2050
- case "com.amazonaws.migrationhuborchestrator#ValidationException":
2051
- throw await de_ValidationExceptionRes(parsedOutput, context);
2052
- default:
2053
- const parsedBody = parsedOutput.body;
2054
- return throwDefaultError({
2055
- output,
2056
- parsedBody,
2057
- errorCode
2058
- });
2059
- }
2060
- }, "de_UpdateWorkflowStepCommandError");
2061
1290
  var de_UpdateWorkflowStepGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
2062
1291
  if (output.statusCode !== 202 && output.statusCode >= 300) {
2063
- return de_UpdateWorkflowStepGroupCommandError(output, context);
1292
+ return de_CommandError(output, context);
2064
1293
  }
2065
1294
  const contents = (0, import_smithy_client.map)({
2066
1295
  $metadata: deserializeMetadata(output)
@@ -2079,7 +1308,7 @@ var de_UpdateWorkflowStepGroupCommand = /* @__PURE__ */ __name(async (output, co
2079
1308
  Object.assign(contents, doc);
2080
1309
  return contents;
2081
1310
  }, "de_UpdateWorkflowStepGroupCommand");
2082
- var de_UpdateWorkflowStepGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1311
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
2083
1312
  const parsedOutput = {
2084
1313
  ...output,
2085
1314
  body: await parseErrorBody(output.body, context)
@@ -2092,15 +1321,15 @@ var de_UpdateWorkflowStepGroupCommandError = /* @__PURE__ */ __name(async (outpu
2092
1321
  case "InternalServerException":
2093
1322
  case "com.amazonaws.migrationhuborchestrator#InternalServerException":
2094
1323
  throw await de_InternalServerExceptionRes(parsedOutput, context);
2095
- case "ResourceNotFoundException":
2096
- case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
2097
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2098
1324
  case "ThrottlingException":
2099
1325
  case "com.amazonaws.migrationhuborchestrator#ThrottlingException":
2100
1326
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
2101
1327
  case "ValidationException":
2102
1328
  case "com.amazonaws.migrationhuborchestrator#ValidationException":
2103
1329
  throw await de_ValidationExceptionRes(parsedOutput, context);
1330
+ case "ResourceNotFoundException":
1331
+ case "com.amazonaws.migrationhuborchestrator#ResourceNotFoundException":
1332
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2104
1333
  default:
2105
1334
  const parsedBody = parsedOutput.body;
2106
1335
  return throwDefaultError({
@@ -2109,7 +1338,7 @@ var de_UpdateWorkflowStepGroupCommandError = /* @__PURE__ */ __name(async (outpu
2109
1338
  errorCode
2110
1339
  });
2111
1340
  }
2112
- }, "de_UpdateWorkflowStepGroupCommandError");
1341
+ }, "de_CommandError");
2113
1342
  var throwDefaultError = (0, import_smithy_client.withBaseException)(MigrationHubOrchestratorServiceException);
2114
1343
  var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2115
1344
  const contents = (0, import_smithy_client.map)({});