@aws-sdk/client-migrationhubstrategy 3.504.0 → 3.509.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 +39 -624
- package/dist-es/protocols/Aws_restJson1.js +38 -623
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1045,7 +1045,7 @@ var se_UpdateServerConfigCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
1045
1045
|
}, "se_UpdateServerConfigCommand");
|
|
1046
1046
|
var de_GetApplicationComponentDetailsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1047
1047
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1048
|
-
return
|
|
1048
|
+
return de_CommandError(output, context);
|
|
1049
1049
|
}
|
|
1050
1050
|
const contents = (0, import_smithy_client.map)({
|
|
1051
1051
|
$metadata: deserializeMetadata(output)
|
|
@@ -1060,34 +1060,9 @@ var de_GetApplicationComponentDetailsCommand = /* @__PURE__ */ __name(async (out
|
|
|
1060
1060
|
Object.assign(contents, doc);
|
|
1061
1061
|
return contents;
|
|
1062
1062
|
}, "de_GetApplicationComponentDetailsCommand");
|
|
1063
|
-
var de_GetApplicationComponentDetailsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1064
|
-
const parsedOutput = {
|
|
1065
|
-
...output,
|
|
1066
|
-
body: await parseErrorBody(output.body, context)
|
|
1067
|
-
};
|
|
1068
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1069
|
-
switch (errorCode) {
|
|
1070
|
-
case "InternalServerException":
|
|
1071
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1072
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1073
|
-
case "ResourceNotFoundException":
|
|
1074
|
-
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException":
|
|
1075
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1076
|
-
case "ThrottlingException":
|
|
1077
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1078
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1079
|
-
default:
|
|
1080
|
-
const parsedBody = parsedOutput.body;
|
|
1081
|
-
return throwDefaultError({
|
|
1082
|
-
output,
|
|
1083
|
-
parsedBody,
|
|
1084
|
-
errorCode
|
|
1085
|
-
});
|
|
1086
|
-
}
|
|
1087
|
-
}, "de_GetApplicationComponentDetailsCommandError");
|
|
1088
1063
|
var de_GetApplicationComponentStrategiesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1089
1064
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1090
|
-
return
|
|
1065
|
+
return de_CommandError(output, context);
|
|
1091
1066
|
}
|
|
1092
1067
|
const contents = (0, import_smithy_client.map)({
|
|
1093
1068
|
$metadata: deserializeMetadata(output)
|
|
@@ -1099,34 +1074,9 @@ var de_GetApplicationComponentStrategiesCommand = /* @__PURE__ */ __name(async (
|
|
|
1099
1074
|
Object.assign(contents, doc);
|
|
1100
1075
|
return contents;
|
|
1101
1076
|
}, "de_GetApplicationComponentStrategiesCommand");
|
|
1102
|
-
var de_GetApplicationComponentStrategiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1103
|
-
const parsedOutput = {
|
|
1104
|
-
...output,
|
|
1105
|
-
body: await parseErrorBody(output.body, context)
|
|
1106
|
-
};
|
|
1107
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1108
|
-
switch (errorCode) {
|
|
1109
|
-
case "InternalServerException":
|
|
1110
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1111
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1112
|
-
case "ResourceNotFoundException":
|
|
1113
|
-
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException":
|
|
1114
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1115
|
-
case "ThrottlingException":
|
|
1116
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1117
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1118
|
-
default:
|
|
1119
|
-
const parsedBody = parsedOutput.body;
|
|
1120
|
-
return throwDefaultError({
|
|
1121
|
-
output,
|
|
1122
|
-
parsedBody,
|
|
1123
|
-
errorCode
|
|
1124
|
-
});
|
|
1125
|
-
}
|
|
1126
|
-
}, "de_GetApplicationComponentStrategiesCommandError");
|
|
1127
1077
|
var de_GetAssessmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1128
1078
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1129
|
-
return
|
|
1079
|
+
return de_CommandError(output, context);
|
|
1130
1080
|
}
|
|
1131
1081
|
const contents = (0, import_smithy_client.map)({
|
|
1132
1082
|
$metadata: deserializeMetadata(output)
|
|
@@ -1140,37 +1090,9 @@ var de_GetAssessmentCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1140
1090
|
Object.assign(contents, doc);
|
|
1141
1091
|
return contents;
|
|
1142
1092
|
}, "de_GetAssessmentCommand");
|
|
1143
|
-
var de_GetAssessmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1144
|
-
const parsedOutput = {
|
|
1145
|
-
...output,
|
|
1146
|
-
body: await parseErrorBody(output.body, context)
|
|
1147
|
-
};
|
|
1148
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1149
|
-
switch (errorCode) {
|
|
1150
|
-
case "AccessDeniedException":
|
|
1151
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
1152
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1153
|
-
case "InternalServerException":
|
|
1154
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1155
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1156
|
-
case "ResourceNotFoundException":
|
|
1157
|
-
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException":
|
|
1158
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1159
|
-
case "ThrottlingException":
|
|
1160
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1161
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1162
|
-
default:
|
|
1163
|
-
const parsedBody = parsedOutput.body;
|
|
1164
|
-
return throwDefaultError({
|
|
1165
|
-
output,
|
|
1166
|
-
parsedBody,
|
|
1167
|
-
errorCode
|
|
1168
|
-
});
|
|
1169
|
-
}
|
|
1170
|
-
}, "de_GetAssessmentCommandError");
|
|
1171
1093
|
var de_GetImportFileTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1172
1094
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1173
|
-
return
|
|
1095
|
+
return de_CommandError(output, context);
|
|
1174
1096
|
}
|
|
1175
1097
|
const contents = (0, import_smithy_client.map)({
|
|
1176
1098
|
$metadata: deserializeMetadata(output)
|
|
@@ -1192,40 +1114,9 @@ var de_GetImportFileTaskCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1192
1114
|
Object.assign(contents, doc);
|
|
1193
1115
|
return contents;
|
|
1194
1116
|
}, "de_GetImportFileTaskCommand");
|
|
1195
|
-
var de_GetImportFileTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1196
|
-
const parsedOutput = {
|
|
1197
|
-
...output,
|
|
1198
|
-
body: await parseErrorBody(output.body, context)
|
|
1199
|
-
};
|
|
1200
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1201
|
-
switch (errorCode) {
|
|
1202
|
-
case "AccessDeniedException":
|
|
1203
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
1204
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1205
|
-
case "InternalServerException":
|
|
1206
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1207
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1208
|
-
case "ResourceNotFoundException":
|
|
1209
|
-
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException":
|
|
1210
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1211
|
-
case "ThrottlingException":
|
|
1212
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1213
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1214
|
-
case "ValidationException":
|
|
1215
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
1216
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1217
|
-
default:
|
|
1218
|
-
const parsedBody = parsedOutput.body;
|
|
1219
|
-
return throwDefaultError({
|
|
1220
|
-
output,
|
|
1221
|
-
parsedBody,
|
|
1222
|
-
errorCode
|
|
1223
|
-
});
|
|
1224
|
-
}
|
|
1225
|
-
}, "de_GetImportFileTaskCommandError");
|
|
1226
1117
|
var de_GetLatestAssessmentIdCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1227
1118
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1228
|
-
return
|
|
1119
|
+
return de_CommandError(output, context);
|
|
1229
1120
|
}
|
|
1230
1121
|
const contents = (0, import_smithy_client.map)({
|
|
1231
1122
|
$metadata: deserializeMetadata(output)
|
|
@@ -1237,37 +1128,9 @@ var de_GetLatestAssessmentIdCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1237
1128
|
Object.assign(contents, doc);
|
|
1238
1129
|
return contents;
|
|
1239
1130
|
}, "de_GetLatestAssessmentIdCommand");
|
|
1240
|
-
var de_GetLatestAssessmentIdCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1241
|
-
const parsedOutput = {
|
|
1242
|
-
...output,
|
|
1243
|
-
body: await parseErrorBody(output.body, context)
|
|
1244
|
-
};
|
|
1245
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1246
|
-
switch (errorCode) {
|
|
1247
|
-
case "AccessDeniedException":
|
|
1248
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
1249
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1250
|
-
case "DependencyException":
|
|
1251
|
-
case "com.amazonaws.migrationhubstrategy#DependencyException":
|
|
1252
|
-
throw await de_DependencyExceptionRes(parsedOutput, context);
|
|
1253
|
-
case "InternalServerException":
|
|
1254
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1255
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1256
|
-
case "ValidationException":
|
|
1257
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
1258
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1259
|
-
default:
|
|
1260
|
-
const parsedBody = parsedOutput.body;
|
|
1261
|
-
return throwDefaultError({
|
|
1262
|
-
output,
|
|
1263
|
-
parsedBody,
|
|
1264
|
-
errorCode
|
|
1265
|
-
});
|
|
1266
|
-
}
|
|
1267
|
-
}, "de_GetLatestAssessmentIdCommandError");
|
|
1268
1131
|
var de_GetPortfolioPreferencesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1269
1132
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1270
|
-
return
|
|
1133
|
+
return de_CommandError(output, context);
|
|
1271
1134
|
}
|
|
1272
1135
|
const contents = (0, import_smithy_client.map)({
|
|
1273
1136
|
$metadata: deserializeMetadata(output)
|
|
@@ -1282,37 +1145,9 @@ var de_GetPortfolioPreferencesCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1282
1145
|
Object.assign(contents, doc);
|
|
1283
1146
|
return contents;
|
|
1284
1147
|
}, "de_GetPortfolioPreferencesCommand");
|
|
1285
|
-
var de_GetPortfolioPreferencesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1286
|
-
const parsedOutput = {
|
|
1287
|
-
...output,
|
|
1288
|
-
body: await parseErrorBody(output.body, context)
|
|
1289
|
-
};
|
|
1290
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1291
|
-
switch (errorCode) {
|
|
1292
|
-
case "AccessDeniedException":
|
|
1293
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
1294
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1295
|
-
case "InternalServerException":
|
|
1296
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1297
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1298
|
-
case "ResourceNotFoundException":
|
|
1299
|
-
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException":
|
|
1300
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1301
|
-
case "ThrottlingException":
|
|
1302
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1303
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1304
|
-
default:
|
|
1305
|
-
const parsedBody = parsedOutput.body;
|
|
1306
|
-
return throwDefaultError({
|
|
1307
|
-
output,
|
|
1308
|
-
parsedBody,
|
|
1309
|
-
errorCode
|
|
1310
|
-
});
|
|
1311
|
-
}
|
|
1312
|
-
}, "de_GetPortfolioPreferencesCommandError");
|
|
1313
1148
|
var de_GetPortfolioSummaryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1314
1149
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1315
|
-
return
|
|
1150
|
+
return de_CommandError(output, context);
|
|
1316
1151
|
}
|
|
1317
1152
|
const contents = (0, import_smithy_client.map)({
|
|
1318
1153
|
$metadata: deserializeMetadata(output)
|
|
@@ -1324,34 +1159,9 @@ var de_GetPortfolioSummaryCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1324
1159
|
Object.assign(contents, doc);
|
|
1325
1160
|
return contents;
|
|
1326
1161
|
}, "de_GetPortfolioSummaryCommand");
|
|
1327
|
-
var de_GetPortfolioSummaryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1328
|
-
const parsedOutput = {
|
|
1329
|
-
...output,
|
|
1330
|
-
body: await parseErrorBody(output.body, context)
|
|
1331
|
-
};
|
|
1332
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1333
|
-
switch (errorCode) {
|
|
1334
|
-
case "AccessDeniedException":
|
|
1335
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
1336
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1337
|
-
case "InternalServerException":
|
|
1338
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1339
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1340
|
-
case "ThrottlingException":
|
|
1341
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1342
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1343
|
-
default:
|
|
1344
|
-
const parsedBody = parsedOutput.body;
|
|
1345
|
-
return throwDefaultError({
|
|
1346
|
-
output,
|
|
1347
|
-
parsedBody,
|
|
1348
|
-
errorCode
|
|
1349
|
-
});
|
|
1350
|
-
}
|
|
1351
|
-
}, "de_GetPortfolioSummaryCommandError");
|
|
1352
1162
|
var de_GetRecommendationReportDetailsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1353
1163
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1354
|
-
return
|
|
1164
|
+
return de_CommandError(output, context);
|
|
1355
1165
|
}
|
|
1356
1166
|
const contents = (0, import_smithy_client.map)({
|
|
1357
1167
|
$metadata: deserializeMetadata(output)
|
|
@@ -1364,40 +1174,9 @@ var de_GetRecommendationReportDetailsCommand = /* @__PURE__ */ __name(async (out
|
|
|
1364
1174
|
Object.assign(contents, doc);
|
|
1365
1175
|
return contents;
|
|
1366
1176
|
}, "de_GetRecommendationReportDetailsCommand");
|
|
1367
|
-
var de_GetRecommendationReportDetailsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1368
|
-
const parsedOutput = {
|
|
1369
|
-
...output,
|
|
1370
|
-
body: await parseErrorBody(output.body, context)
|
|
1371
|
-
};
|
|
1372
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1373
|
-
switch (errorCode) {
|
|
1374
|
-
case "AccessDeniedException":
|
|
1375
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
1376
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1377
|
-
case "InternalServerException":
|
|
1378
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1379
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1380
|
-
case "ResourceNotFoundException":
|
|
1381
|
-
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException":
|
|
1382
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1383
|
-
case "ThrottlingException":
|
|
1384
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1385
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1386
|
-
case "ValidationException":
|
|
1387
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
1388
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1389
|
-
default:
|
|
1390
|
-
const parsedBody = parsedOutput.body;
|
|
1391
|
-
return throwDefaultError({
|
|
1392
|
-
output,
|
|
1393
|
-
parsedBody,
|
|
1394
|
-
errorCode
|
|
1395
|
-
});
|
|
1396
|
-
}
|
|
1397
|
-
}, "de_GetRecommendationReportDetailsCommandError");
|
|
1398
1177
|
var de_GetServerDetailsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1399
1178
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1400
|
-
return
|
|
1179
|
+
return de_CommandError(output, context);
|
|
1401
1180
|
}
|
|
1402
1181
|
const contents = (0, import_smithy_client.map)({
|
|
1403
1182
|
$metadata: deserializeMetadata(output)
|
|
@@ -1411,40 +1190,9 @@ var de_GetServerDetailsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1411
1190
|
Object.assign(contents, doc);
|
|
1412
1191
|
return contents;
|
|
1413
1192
|
}, "de_GetServerDetailsCommand");
|
|
1414
|
-
var de_GetServerDetailsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1415
|
-
const parsedOutput = {
|
|
1416
|
-
...output,
|
|
1417
|
-
body: await parseErrorBody(output.body, context)
|
|
1418
|
-
};
|
|
1419
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1420
|
-
switch (errorCode) {
|
|
1421
|
-
case "AccessDeniedException":
|
|
1422
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
1423
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1424
|
-
case "InternalServerException":
|
|
1425
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1426
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1427
|
-
case "ResourceNotFoundException":
|
|
1428
|
-
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException":
|
|
1429
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1430
|
-
case "ThrottlingException":
|
|
1431
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1432
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1433
|
-
case "ValidationException":
|
|
1434
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
1435
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1436
|
-
default:
|
|
1437
|
-
const parsedBody = parsedOutput.body;
|
|
1438
|
-
return throwDefaultError({
|
|
1439
|
-
output,
|
|
1440
|
-
parsedBody,
|
|
1441
|
-
errorCode
|
|
1442
|
-
});
|
|
1443
|
-
}
|
|
1444
|
-
}, "de_GetServerDetailsCommandError");
|
|
1445
1193
|
var de_GetServerStrategiesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1446
1194
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1447
|
-
return
|
|
1195
|
+
return de_CommandError(output, context);
|
|
1448
1196
|
}
|
|
1449
1197
|
const contents = (0, import_smithy_client.map)({
|
|
1450
1198
|
$metadata: deserializeMetadata(output)
|
|
@@ -1456,40 +1204,9 @@ var de_GetServerStrategiesCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1456
1204
|
Object.assign(contents, doc);
|
|
1457
1205
|
return contents;
|
|
1458
1206
|
}, "de_GetServerStrategiesCommand");
|
|
1459
|
-
var de_GetServerStrategiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1460
|
-
const parsedOutput = {
|
|
1461
|
-
...output,
|
|
1462
|
-
body: await parseErrorBody(output.body, context)
|
|
1463
|
-
};
|
|
1464
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1465
|
-
switch (errorCode) {
|
|
1466
|
-
case "AccessDeniedException":
|
|
1467
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
1468
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1469
|
-
case "InternalServerException":
|
|
1470
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1471
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1472
|
-
case "ResourceNotFoundException":
|
|
1473
|
-
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException":
|
|
1474
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1475
|
-
case "ThrottlingException":
|
|
1476
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1477
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1478
|
-
case "ValidationException":
|
|
1479
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
1480
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1481
|
-
default:
|
|
1482
|
-
const parsedBody = parsedOutput.body;
|
|
1483
|
-
return throwDefaultError({
|
|
1484
|
-
output,
|
|
1485
|
-
parsedBody,
|
|
1486
|
-
errorCode
|
|
1487
|
-
});
|
|
1488
|
-
}
|
|
1489
|
-
}, "de_GetServerStrategiesCommandError");
|
|
1490
1207
|
var de_ListAnalyzableServersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1491
1208
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1492
|
-
return
|
|
1209
|
+
return de_CommandError(output, context);
|
|
1493
1210
|
}
|
|
1494
1211
|
const contents = (0, import_smithy_client.map)({
|
|
1495
1212
|
$metadata: deserializeMetadata(output)
|
|
@@ -1502,37 +1219,9 @@ var de_ListAnalyzableServersCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1502
1219
|
Object.assign(contents, doc);
|
|
1503
1220
|
return contents;
|
|
1504
1221
|
}, "de_ListAnalyzableServersCommand");
|
|
1505
|
-
var de_ListAnalyzableServersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1506
|
-
const parsedOutput = {
|
|
1507
|
-
...output,
|
|
1508
|
-
body: await parseErrorBody(output.body, context)
|
|
1509
|
-
};
|
|
1510
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1511
|
-
switch (errorCode) {
|
|
1512
|
-
case "AccessDeniedException":
|
|
1513
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
1514
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1515
|
-
case "InternalServerException":
|
|
1516
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1517
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1518
|
-
case "ThrottlingException":
|
|
1519
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1520
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1521
|
-
case "ValidationException":
|
|
1522
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
1523
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1524
|
-
default:
|
|
1525
|
-
const parsedBody = parsedOutput.body;
|
|
1526
|
-
return throwDefaultError({
|
|
1527
|
-
output,
|
|
1528
|
-
parsedBody,
|
|
1529
|
-
errorCode
|
|
1530
|
-
});
|
|
1531
|
-
}
|
|
1532
|
-
}, "de_ListAnalyzableServersCommandError");
|
|
1533
1222
|
var de_ListApplicationComponentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1534
1223
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1535
|
-
return
|
|
1224
|
+
return de_CommandError(output, context);
|
|
1536
1225
|
}
|
|
1537
1226
|
const contents = (0, import_smithy_client.map)({
|
|
1538
1227
|
$metadata: deserializeMetadata(output)
|
|
@@ -1545,37 +1234,9 @@ var de_ListApplicationComponentsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1545
1234
|
Object.assign(contents, doc);
|
|
1546
1235
|
return contents;
|
|
1547
1236
|
}, "de_ListApplicationComponentsCommand");
|
|
1548
|
-
var de_ListApplicationComponentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1549
|
-
const parsedOutput = {
|
|
1550
|
-
...output,
|
|
1551
|
-
body: await parseErrorBody(output.body, context)
|
|
1552
|
-
};
|
|
1553
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1554
|
-
switch (errorCode) {
|
|
1555
|
-
case "AccessDeniedException":
|
|
1556
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
1557
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1558
|
-
case "InternalServerException":
|
|
1559
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1560
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1561
|
-
case "ServiceLinkedRoleLockClientException":
|
|
1562
|
-
case "com.amazonaws.migrationhubstrategy#ServiceLinkedRoleLockClientException":
|
|
1563
|
-
throw await de_ServiceLinkedRoleLockClientExceptionRes(parsedOutput, context);
|
|
1564
|
-
case "ValidationException":
|
|
1565
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
1566
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1567
|
-
default:
|
|
1568
|
-
const parsedBody = parsedOutput.body;
|
|
1569
|
-
return throwDefaultError({
|
|
1570
|
-
output,
|
|
1571
|
-
parsedBody,
|
|
1572
|
-
errorCode
|
|
1573
|
-
});
|
|
1574
|
-
}
|
|
1575
|
-
}, "de_ListApplicationComponentsCommandError");
|
|
1576
1237
|
var de_ListCollectorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1577
1238
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1578
|
-
return
|
|
1239
|
+
return de_CommandError(output, context);
|
|
1579
1240
|
}
|
|
1580
1241
|
const contents = (0, import_smithy_client.map)({
|
|
1581
1242
|
$metadata: deserializeMetadata(output)
|
|
@@ -1588,37 +1249,9 @@ var de_ListCollectorsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1588
1249
|
Object.assign(contents, doc);
|
|
1589
1250
|
return contents;
|
|
1590
1251
|
}, "de_ListCollectorsCommand");
|
|
1591
|
-
var de_ListCollectorsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1592
|
-
const parsedOutput = {
|
|
1593
|
-
...output,
|
|
1594
|
-
body: await parseErrorBody(output.body, context)
|
|
1595
|
-
};
|
|
1596
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1597
|
-
switch (errorCode) {
|
|
1598
|
-
case "AccessDeniedException":
|
|
1599
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
1600
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1601
|
-
case "InternalServerException":
|
|
1602
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1603
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1604
|
-
case "ThrottlingException":
|
|
1605
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1606
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1607
|
-
case "ValidationException":
|
|
1608
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
1609
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1610
|
-
default:
|
|
1611
|
-
const parsedBody = parsedOutput.body;
|
|
1612
|
-
return throwDefaultError({
|
|
1613
|
-
output,
|
|
1614
|
-
parsedBody,
|
|
1615
|
-
errorCode
|
|
1616
|
-
});
|
|
1617
|
-
}
|
|
1618
|
-
}, "de_ListCollectorsCommandError");
|
|
1619
1252
|
var de_ListImportFileTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1620
1253
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1621
|
-
return
|
|
1254
|
+
return de_CommandError(output, context);
|
|
1622
1255
|
}
|
|
1623
1256
|
const contents = (0, import_smithy_client.map)({
|
|
1624
1257
|
$metadata: deserializeMetadata(output)
|
|
@@ -1631,37 +1264,9 @@ var de_ListImportFileTaskCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1631
1264
|
Object.assign(contents, doc);
|
|
1632
1265
|
return contents;
|
|
1633
1266
|
}, "de_ListImportFileTaskCommand");
|
|
1634
|
-
var de_ListImportFileTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1635
|
-
const parsedOutput = {
|
|
1636
|
-
...output,
|
|
1637
|
-
body: await parseErrorBody(output.body, context)
|
|
1638
|
-
};
|
|
1639
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1640
|
-
switch (errorCode) {
|
|
1641
|
-
case "AccessDeniedException":
|
|
1642
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
1643
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1644
|
-
case "InternalServerException":
|
|
1645
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1646
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1647
|
-
case "ThrottlingException":
|
|
1648
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1649
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1650
|
-
case "ValidationException":
|
|
1651
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
1652
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1653
|
-
default:
|
|
1654
|
-
const parsedBody = parsedOutput.body;
|
|
1655
|
-
return throwDefaultError({
|
|
1656
|
-
output,
|
|
1657
|
-
parsedBody,
|
|
1658
|
-
errorCode
|
|
1659
|
-
});
|
|
1660
|
-
}
|
|
1661
|
-
}, "de_ListImportFileTaskCommandError");
|
|
1662
1267
|
var de_ListServersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1663
1268
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1664
|
-
return
|
|
1269
|
+
return de_CommandError(output, context);
|
|
1665
1270
|
}
|
|
1666
1271
|
const contents = (0, import_smithy_client.map)({
|
|
1667
1272
|
$metadata: deserializeMetadata(output)
|
|
@@ -1674,37 +1279,9 @@ var de_ListServersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1674
1279
|
Object.assign(contents, doc);
|
|
1675
1280
|
return contents;
|
|
1676
1281
|
}, "de_ListServersCommand");
|
|
1677
|
-
var de_ListServersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1678
|
-
const parsedOutput = {
|
|
1679
|
-
...output,
|
|
1680
|
-
body: await parseErrorBody(output.body, context)
|
|
1681
|
-
};
|
|
1682
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1683
|
-
switch (errorCode) {
|
|
1684
|
-
case "AccessDeniedException":
|
|
1685
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
1686
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1687
|
-
case "InternalServerException":
|
|
1688
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1689
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1690
|
-
case "ThrottlingException":
|
|
1691
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1692
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1693
|
-
case "ValidationException":
|
|
1694
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
1695
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1696
|
-
default:
|
|
1697
|
-
const parsedBody = parsedOutput.body;
|
|
1698
|
-
return throwDefaultError({
|
|
1699
|
-
output,
|
|
1700
|
-
parsedBody,
|
|
1701
|
-
errorCode
|
|
1702
|
-
});
|
|
1703
|
-
}
|
|
1704
|
-
}, "de_ListServersCommandError");
|
|
1705
1282
|
var de_PutPortfolioPreferencesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1706
1283
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1707
|
-
return
|
|
1284
|
+
return de_CommandError(output, context);
|
|
1708
1285
|
}
|
|
1709
1286
|
const contents = (0, import_smithy_client.map)({
|
|
1710
1287
|
$metadata: deserializeMetadata(output)
|
|
@@ -1712,40 +1289,9 @@ var de_PutPortfolioPreferencesCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1712
1289
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1713
1290
|
return contents;
|
|
1714
1291
|
}, "de_PutPortfolioPreferencesCommand");
|
|
1715
|
-
var de_PutPortfolioPreferencesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1716
|
-
const parsedOutput = {
|
|
1717
|
-
...output,
|
|
1718
|
-
body: await parseErrorBody(output.body, context)
|
|
1719
|
-
};
|
|
1720
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1721
|
-
switch (errorCode) {
|
|
1722
|
-
case "AccessDeniedException":
|
|
1723
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
1724
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1725
|
-
case "ConflictException":
|
|
1726
|
-
case "com.amazonaws.migrationhubstrategy#ConflictException":
|
|
1727
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1728
|
-
case "InternalServerException":
|
|
1729
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1730
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1731
|
-
case "ThrottlingException":
|
|
1732
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1733
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1734
|
-
case "ValidationException":
|
|
1735
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
1736
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1737
|
-
default:
|
|
1738
|
-
const parsedBody = parsedOutput.body;
|
|
1739
|
-
return throwDefaultError({
|
|
1740
|
-
output,
|
|
1741
|
-
parsedBody,
|
|
1742
|
-
errorCode
|
|
1743
|
-
});
|
|
1744
|
-
}
|
|
1745
|
-
}, "de_PutPortfolioPreferencesCommandError");
|
|
1746
1292
|
var de_StartAssessmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1747
1293
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1748
|
-
return
|
|
1294
|
+
return de_CommandError(output, context);
|
|
1749
1295
|
}
|
|
1750
1296
|
const contents = (0, import_smithy_client.map)({
|
|
1751
1297
|
$metadata: deserializeMetadata(output)
|
|
@@ -1757,37 +1303,9 @@ var de_StartAssessmentCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1757
1303
|
Object.assign(contents, doc);
|
|
1758
1304
|
return contents;
|
|
1759
1305
|
}, "de_StartAssessmentCommand");
|
|
1760
|
-
var de_StartAssessmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1761
|
-
const parsedOutput = {
|
|
1762
|
-
...output,
|
|
1763
|
-
body: await parseErrorBody(output.body, context)
|
|
1764
|
-
};
|
|
1765
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1766
|
-
switch (errorCode) {
|
|
1767
|
-
case "AccessDeniedException":
|
|
1768
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
1769
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1770
|
-
case "InternalServerException":
|
|
1771
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1772
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1773
|
-
case "ServiceQuotaExceededException":
|
|
1774
|
-
case "com.amazonaws.migrationhubstrategy#ServiceQuotaExceededException":
|
|
1775
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1776
|
-
case "ThrottlingException":
|
|
1777
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1778
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1779
|
-
default:
|
|
1780
|
-
const parsedBody = parsedOutput.body;
|
|
1781
|
-
return throwDefaultError({
|
|
1782
|
-
output,
|
|
1783
|
-
parsedBody,
|
|
1784
|
-
errorCode
|
|
1785
|
-
});
|
|
1786
|
-
}
|
|
1787
|
-
}, "de_StartAssessmentCommandError");
|
|
1788
1306
|
var de_StartImportFileTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1789
1307
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1790
|
-
return
|
|
1308
|
+
return de_CommandError(output, context);
|
|
1791
1309
|
}
|
|
1792
1310
|
const contents = (0, import_smithy_client.map)({
|
|
1793
1311
|
$metadata: deserializeMetadata(output)
|
|
@@ -1799,40 +1317,9 @@ var de_StartImportFileTaskCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1799
1317
|
Object.assign(contents, doc);
|
|
1800
1318
|
return contents;
|
|
1801
1319
|
}, "de_StartImportFileTaskCommand");
|
|
1802
|
-
var de_StartImportFileTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1803
|
-
const parsedOutput = {
|
|
1804
|
-
...output,
|
|
1805
|
-
body: await parseErrorBody(output.body, context)
|
|
1806
|
-
};
|
|
1807
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1808
|
-
switch (errorCode) {
|
|
1809
|
-
case "AccessDeniedException":
|
|
1810
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
1811
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1812
|
-
case "InternalServerException":
|
|
1813
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1814
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1815
|
-
case "ServiceQuotaExceededException":
|
|
1816
|
-
case "com.amazonaws.migrationhubstrategy#ServiceQuotaExceededException":
|
|
1817
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1818
|
-
case "ThrottlingException":
|
|
1819
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1820
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1821
|
-
case "ValidationException":
|
|
1822
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
1823
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1824
|
-
default:
|
|
1825
|
-
const parsedBody = parsedOutput.body;
|
|
1826
|
-
return throwDefaultError({
|
|
1827
|
-
output,
|
|
1828
|
-
parsedBody,
|
|
1829
|
-
errorCode
|
|
1830
|
-
});
|
|
1831
|
-
}
|
|
1832
|
-
}, "de_StartImportFileTaskCommandError");
|
|
1833
1320
|
var de_StartRecommendationReportGenerationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1834
1321
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1835
|
-
return
|
|
1322
|
+
return de_CommandError(output, context);
|
|
1836
1323
|
}
|
|
1837
1324
|
const contents = (0, import_smithy_client.map)({
|
|
1838
1325
|
$metadata: deserializeMetadata(output)
|
|
@@ -1844,40 +1331,9 @@ var de_StartRecommendationReportGenerationCommand = /* @__PURE__ */ __name(async
|
|
|
1844
1331
|
Object.assign(contents, doc);
|
|
1845
1332
|
return contents;
|
|
1846
1333
|
}, "de_StartRecommendationReportGenerationCommand");
|
|
1847
|
-
var de_StartRecommendationReportGenerationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1848
|
-
const parsedOutput = {
|
|
1849
|
-
...output,
|
|
1850
|
-
body: await parseErrorBody(output.body, context)
|
|
1851
|
-
};
|
|
1852
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1853
|
-
switch (errorCode) {
|
|
1854
|
-
case "AccessDeniedException":
|
|
1855
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
1856
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1857
|
-
case "ConflictException":
|
|
1858
|
-
case "com.amazonaws.migrationhubstrategy#ConflictException":
|
|
1859
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1860
|
-
case "InternalServerException":
|
|
1861
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1862
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1863
|
-
case "ThrottlingException":
|
|
1864
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1865
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1866
|
-
case "ValidationException":
|
|
1867
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
1868
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1869
|
-
default:
|
|
1870
|
-
const parsedBody = parsedOutput.body;
|
|
1871
|
-
return throwDefaultError({
|
|
1872
|
-
output,
|
|
1873
|
-
parsedBody,
|
|
1874
|
-
errorCode
|
|
1875
|
-
});
|
|
1876
|
-
}
|
|
1877
|
-
}, "de_StartRecommendationReportGenerationCommandError");
|
|
1878
1334
|
var de_StopAssessmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1879
1335
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1880
|
-
return
|
|
1336
|
+
return de_CommandError(output, context);
|
|
1881
1337
|
}
|
|
1882
1338
|
const contents = (0, import_smithy_client.map)({
|
|
1883
1339
|
$metadata: deserializeMetadata(output)
|
|
@@ -1885,37 +1341,9 @@ var de_StopAssessmentCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1885
1341
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1886
1342
|
return contents;
|
|
1887
1343
|
}, "de_StopAssessmentCommand");
|
|
1888
|
-
var de_StopAssessmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1889
|
-
const parsedOutput = {
|
|
1890
|
-
...output,
|
|
1891
|
-
body: await parseErrorBody(output.body, context)
|
|
1892
|
-
};
|
|
1893
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1894
|
-
switch (errorCode) {
|
|
1895
|
-
case "AccessDeniedException":
|
|
1896
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
1897
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1898
|
-
case "InternalServerException":
|
|
1899
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1900
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1901
|
-
case "ThrottlingException":
|
|
1902
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1903
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1904
|
-
case "ValidationException":
|
|
1905
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
1906
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1907
|
-
default:
|
|
1908
|
-
const parsedBody = parsedOutput.body;
|
|
1909
|
-
return throwDefaultError({
|
|
1910
|
-
output,
|
|
1911
|
-
parsedBody,
|
|
1912
|
-
errorCode
|
|
1913
|
-
});
|
|
1914
|
-
}
|
|
1915
|
-
}, "de_StopAssessmentCommandError");
|
|
1916
1344
|
var de_UpdateApplicationComponentConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1917
1345
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1918
|
-
return
|
|
1346
|
+
return de_CommandError(output, context);
|
|
1919
1347
|
}
|
|
1920
1348
|
const contents = (0, import_smithy_client.map)({
|
|
1921
1349
|
$metadata: deserializeMetadata(output)
|
|
@@ -1923,37 +1351,9 @@ var de_UpdateApplicationComponentConfigCommand = /* @__PURE__ */ __name(async (o
|
|
|
1923
1351
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1924
1352
|
return contents;
|
|
1925
1353
|
}, "de_UpdateApplicationComponentConfigCommand");
|
|
1926
|
-
var de_UpdateApplicationComponentConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1927
|
-
const parsedOutput = {
|
|
1928
|
-
...output,
|
|
1929
|
-
body: await parseErrorBody(output.body, context)
|
|
1930
|
-
};
|
|
1931
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1932
|
-
switch (errorCode) {
|
|
1933
|
-
case "InternalServerException":
|
|
1934
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1935
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1936
|
-
case "ResourceNotFoundException":
|
|
1937
|
-
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException":
|
|
1938
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1939
|
-
case "ThrottlingException":
|
|
1940
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1941
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1942
|
-
case "ValidationException":
|
|
1943
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
1944
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1945
|
-
default:
|
|
1946
|
-
const parsedBody = parsedOutput.body;
|
|
1947
|
-
return throwDefaultError({
|
|
1948
|
-
output,
|
|
1949
|
-
parsedBody,
|
|
1950
|
-
errorCode
|
|
1951
|
-
});
|
|
1952
|
-
}
|
|
1953
|
-
}, "de_UpdateApplicationComponentConfigCommandError");
|
|
1954
1354
|
var de_UpdateServerConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1955
1355
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1956
|
-
return
|
|
1356
|
+
return de_CommandError(output, context);
|
|
1957
1357
|
}
|
|
1958
1358
|
const contents = (0, import_smithy_client.map)({
|
|
1959
1359
|
$metadata: deserializeMetadata(output)
|
|
@@ -1961,7 +1361,7 @@ var de_UpdateServerConfigCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1961
1361
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1962
1362
|
return contents;
|
|
1963
1363
|
}, "de_UpdateServerConfigCommand");
|
|
1964
|
-
var
|
|
1364
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1965
1365
|
const parsedOutput = {
|
|
1966
1366
|
...output,
|
|
1967
1367
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1977,9 +1377,24 @@ var de_UpdateServerConfigCommandError = /* @__PURE__ */ __name(async (output, co
|
|
|
1977
1377
|
case "ThrottlingException":
|
|
1978
1378
|
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1979
1379
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1380
|
+
case "AccessDeniedException":
|
|
1381
|
+
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
1382
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1980
1383
|
case "ValidationException":
|
|
1981
1384
|
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
1982
1385
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1386
|
+
case "DependencyException":
|
|
1387
|
+
case "com.amazonaws.migrationhubstrategy#DependencyException":
|
|
1388
|
+
throw await de_DependencyExceptionRes(parsedOutput, context);
|
|
1389
|
+
case "ServiceLinkedRoleLockClientException":
|
|
1390
|
+
case "com.amazonaws.migrationhubstrategy#ServiceLinkedRoleLockClientException":
|
|
1391
|
+
throw await de_ServiceLinkedRoleLockClientExceptionRes(parsedOutput, context);
|
|
1392
|
+
case "ConflictException":
|
|
1393
|
+
case "com.amazonaws.migrationhubstrategy#ConflictException":
|
|
1394
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1395
|
+
case "ServiceQuotaExceededException":
|
|
1396
|
+
case "com.amazonaws.migrationhubstrategy#ServiceQuotaExceededException":
|
|
1397
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1983
1398
|
default:
|
|
1984
1399
|
const parsedBody = parsedOutput.body;
|
|
1985
1400
|
return throwDefaultError({
|
|
@@ -1988,7 +1403,7 @@ var de_UpdateServerConfigCommandError = /* @__PURE__ */ __name(async (output, co
|
|
|
1988
1403
|
errorCode
|
|
1989
1404
|
});
|
|
1990
1405
|
}
|
|
1991
|
-
}, "
|
|
1406
|
+
}, "de_CommandError");
|
|
1992
1407
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(MigrationHubStrategyServiceException);
|
|
1993
1408
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1994
1409
|
const contents = (0, import_smithy_client.map)({});
|