@aws-sdk/client-compute-optimizer 3.504.0 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +71 -927
- package/dist-es/protocols/Aws_json1_0.js +76 -932
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1145,7 +1145,7 @@ var se_UpdateEnrollmentStatusCommand = /* @__PURE__ */ __name(async (input, cont
|
|
|
1145
1145
|
}, "se_UpdateEnrollmentStatusCommand");
|
|
1146
1146
|
var de_DeleteRecommendationPreferencesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1147
1147
|
if (output.statusCode >= 300) {
|
|
1148
|
-
return
|
|
1148
|
+
return de_CommandError(output, context);
|
|
1149
1149
|
}
|
|
1150
1150
|
const data = await parseBody(output.body, context);
|
|
1151
1151
|
let contents = {};
|
|
@@ -1156,49 +1156,9 @@ var de_DeleteRecommendationPreferencesCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1156
1156
|
};
|
|
1157
1157
|
return response;
|
|
1158
1158
|
}, "de_DeleteRecommendationPreferencesCommand");
|
|
1159
|
-
var de_DeleteRecommendationPreferencesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1160
|
-
const parsedOutput = {
|
|
1161
|
-
...output,
|
|
1162
|
-
body: await parseErrorBody(output.body, context)
|
|
1163
|
-
};
|
|
1164
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1165
|
-
switch (errorCode) {
|
|
1166
|
-
case "AccessDeniedException":
|
|
1167
|
-
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
1168
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1169
|
-
case "InternalServerException":
|
|
1170
|
-
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
1171
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1172
|
-
case "InvalidParameterValueException":
|
|
1173
|
-
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
1174
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1175
|
-
case "MissingAuthenticationToken":
|
|
1176
|
-
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
1177
|
-
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
1178
|
-
case "OptInRequiredException":
|
|
1179
|
-
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
1180
|
-
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
1181
|
-
case "ResourceNotFoundException":
|
|
1182
|
-
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
1183
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1184
|
-
case "ServiceUnavailableException":
|
|
1185
|
-
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
1186
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1187
|
-
case "ThrottlingException":
|
|
1188
|
-
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
1189
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1190
|
-
default:
|
|
1191
|
-
const parsedBody = parsedOutput.body;
|
|
1192
|
-
return throwDefaultError({
|
|
1193
|
-
output,
|
|
1194
|
-
parsedBody,
|
|
1195
|
-
errorCode
|
|
1196
|
-
});
|
|
1197
|
-
}
|
|
1198
|
-
}, "de_DeleteRecommendationPreferencesCommandError");
|
|
1199
1159
|
var de_DescribeRecommendationExportJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1200
1160
|
if (output.statusCode >= 300) {
|
|
1201
|
-
return
|
|
1161
|
+
return de_CommandError(output, context);
|
|
1202
1162
|
}
|
|
1203
1163
|
const data = await parseBody(output.body, context);
|
|
1204
1164
|
let contents = {};
|
|
@@ -1209,49 +1169,9 @@ var de_DescribeRecommendationExportJobsCommand = /* @__PURE__ */ __name(async (o
|
|
|
1209
1169
|
};
|
|
1210
1170
|
return response;
|
|
1211
1171
|
}, "de_DescribeRecommendationExportJobsCommand");
|
|
1212
|
-
var de_DescribeRecommendationExportJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1213
|
-
const parsedOutput = {
|
|
1214
|
-
...output,
|
|
1215
|
-
body: await parseErrorBody(output.body, context)
|
|
1216
|
-
};
|
|
1217
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1218
|
-
switch (errorCode) {
|
|
1219
|
-
case "AccessDeniedException":
|
|
1220
|
-
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
1221
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1222
|
-
case "InternalServerException":
|
|
1223
|
-
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
1224
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1225
|
-
case "InvalidParameterValueException":
|
|
1226
|
-
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
1227
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1228
|
-
case "MissingAuthenticationToken":
|
|
1229
|
-
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
1230
|
-
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
1231
|
-
case "OptInRequiredException":
|
|
1232
|
-
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
1233
|
-
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
1234
|
-
case "ResourceNotFoundException":
|
|
1235
|
-
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
1236
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1237
|
-
case "ServiceUnavailableException":
|
|
1238
|
-
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
1239
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1240
|
-
case "ThrottlingException":
|
|
1241
|
-
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
1242
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1243
|
-
default:
|
|
1244
|
-
const parsedBody = parsedOutput.body;
|
|
1245
|
-
return throwDefaultError({
|
|
1246
|
-
output,
|
|
1247
|
-
parsedBody,
|
|
1248
|
-
errorCode
|
|
1249
|
-
});
|
|
1250
|
-
}
|
|
1251
|
-
}, "de_DescribeRecommendationExportJobsCommandError");
|
|
1252
1172
|
var de_ExportAutoScalingGroupRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1253
1173
|
if (output.statusCode >= 300) {
|
|
1254
|
-
return
|
|
1174
|
+
return de_CommandError(output, context);
|
|
1255
1175
|
}
|
|
1256
1176
|
const data = await parseBody(output.body, context);
|
|
1257
1177
|
let contents = {};
|
|
@@ -1262,49 +1182,9 @@ var de_ExportAutoScalingGroupRecommendationsCommand = /* @__PURE__ */ __name(asy
|
|
|
1262
1182
|
};
|
|
1263
1183
|
return response;
|
|
1264
1184
|
}, "de_ExportAutoScalingGroupRecommendationsCommand");
|
|
1265
|
-
var de_ExportAutoScalingGroupRecommendationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1266
|
-
const parsedOutput = {
|
|
1267
|
-
...output,
|
|
1268
|
-
body: await parseErrorBody(output.body, context)
|
|
1269
|
-
};
|
|
1270
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1271
|
-
switch (errorCode) {
|
|
1272
|
-
case "AccessDeniedException":
|
|
1273
|
-
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
1274
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1275
|
-
case "InternalServerException":
|
|
1276
|
-
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
1277
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1278
|
-
case "InvalidParameterValueException":
|
|
1279
|
-
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
1280
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1281
|
-
case "LimitExceededException":
|
|
1282
|
-
case "com.amazonaws.computeoptimizer#LimitExceededException":
|
|
1283
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1284
|
-
case "MissingAuthenticationToken":
|
|
1285
|
-
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
1286
|
-
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
1287
|
-
case "OptInRequiredException":
|
|
1288
|
-
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
1289
|
-
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
1290
|
-
case "ServiceUnavailableException":
|
|
1291
|
-
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
1292
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1293
|
-
case "ThrottlingException":
|
|
1294
|
-
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
1295
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1296
|
-
default:
|
|
1297
|
-
const parsedBody = parsedOutput.body;
|
|
1298
|
-
return throwDefaultError({
|
|
1299
|
-
output,
|
|
1300
|
-
parsedBody,
|
|
1301
|
-
errorCode
|
|
1302
|
-
});
|
|
1303
|
-
}
|
|
1304
|
-
}, "de_ExportAutoScalingGroupRecommendationsCommandError");
|
|
1305
1185
|
var de_ExportEBSVolumeRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1306
1186
|
if (output.statusCode >= 300) {
|
|
1307
|
-
return
|
|
1187
|
+
return de_CommandError(output, context);
|
|
1308
1188
|
}
|
|
1309
1189
|
const data = await parseBody(output.body, context);
|
|
1310
1190
|
let contents = {};
|
|
@@ -1315,49 +1195,9 @@ var de_ExportEBSVolumeRecommendationsCommand = /* @__PURE__ */ __name(async (out
|
|
|
1315
1195
|
};
|
|
1316
1196
|
return response;
|
|
1317
1197
|
}, "de_ExportEBSVolumeRecommendationsCommand");
|
|
1318
|
-
var de_ExportEBSVolumeRecommendationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1319
|
-
const parsedOutput = {
|
|
1320
|
-
...output,
|
|
1321
|
-
body: await parseErrorBody(output.body, context)
|
|
1322
|
-
};
|
|
1323
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1324
|
-
switch (errorCode) {
|
|
1325
|
-
case "AccessDeniedException":
|
|
1326
|
-
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
1327
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1328
|
-
case "InternalServerException":
|
|
1329
|
-
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
1330
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1331
|
-
case "InvalidParameterValueException":
|
|
1332
|
-
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
1333
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1334
|
-
case "LimitExceededException":
|
|
1335
|
-
case "com.amazonaws.computeoptimizer#LimitExceededException":
|
|
1336
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1337
|
-
case "MissingAuthenticationToken":
|
|
1338
|
-
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
1339
|
-
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
1340
|
-
case "OptInRequiredException":
|
|
1341
|
-
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
1342
|
-
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
1343
|
-
case "ServiceUnavailableException":
|
|
1344
|
-
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
1345
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1346
|
-
case "ThrottlingException":
|
|
1347
|
-
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
1348
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1349
|
-
default:
|
|
1350
|
-
const parsedBody = parsedOutput.body;
|
|
1351
|
-
return throwDefaultError({
|
|
1352
|
-
output,
|
|
1353
|
-
parsedBody,
|
|
1354
|
-
errorCode
|
|
1355
|
-
});
|
|
1356
|
-
}
|
|
1357
|
-
}, "de_ExportEBSVolumeRecommendationsCommandError");
|
|
1358
1198
|
var de_ExportEC2InstanceRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1359
1199
|
if (output.statusCode >= 300) {
|
|
1360
|
-
return
|
|
1200
|
+
return de_CommandError(output, context);
|
|
1361
1201
|
}
|
|
1362
1202
|
const data = await parseBody(output.body, context);
|
|
1363
1203
|
let contents = {};
|
|
@@ -1368,49 +1208,9 @@ var de_ExportEC2InstanceRecommendationsCommand = /* @__PURE__ */ __name(async (o
|
|
|
1368
1208
|
};
|
|
1369
1209
|
return response;
|
|
1370
1210
|
}, "de_ExportEC2InstanceRecommendationsCommand");
|
|
1371
|
-
var de_ExportEC2InstanceRecommendationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1372
|
-
const parsedOutput = {
|
|
1373
|
-
...output,
|
|
1374
|
-
body: await parseErrorBody(output.body, context)
|
|
1375
|
-
};
|
|
1376
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1377
|
-
switch (errorCode) {
|
|
1378
|
-
case "AccessDeniedException":
|
|
1379
|
-
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
1380
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1381
|
-
case "InternalServerException":
|
|
1382
|
-
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
1383
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1384
|
-
case "InvalidParameterValueException":
|
|
1385
|
-
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
1386
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1387
|
-
case "LimitExceededException":
|
|
1388
|
-
case "com.amazonaws.computeoptimizer#LimitExceededException":
|
|
1389
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1390
|
-
case "MissingAuthenticationToken":
|
|
1391
|
-
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
1392
|
-
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
1393
|
-
case "OptInRequiredException":
|
|
1394
|
-
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
1395
|
-
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
1396
|
-
case "ServiceUnavailableException":
|
|
1397
|
-
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
1398
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1399
|
-
case "ThrottlingException":
|
|
1400
|
-
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
1401
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1402
|
-
default:
|
|
1403
|
-
const parsedBody = parsedOutput.body;
|
|
1404
|
-
return throwDefaultError({
|
|
1405
|
-
output,
|
|
1406
|
-
parsedBody,
|
|
1407
|
-
errorCode
|
|
1408
|
-
});
|
|
1409
|
-
}
|
|
1410
|
-
}, "de_ExportEC2InstanceRecommendationsCommandError");
|
|
1411
1211
|
var de_ExportECSServiceRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1412
1212
|
if (output.statusCode >= 300) {
|
|
1413
|
-
return
|
|
1213
|
+
return de_CommandError(output, context);
|
|
1414
1214
|
}
|
|
1415
1215
|
const data = await parseBody(output.body, context);
|
|
1416
1216
|
let contents = {};
|
|
@@ -1421,49 +1221,9 @@ var de_ExportECSServiceRecommendationsCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1421
1221
|
};
|
|
1422
1222
|
return response;
|
|
1423
1223
|
}, "de_ExportECSServiceRecommendationsCommand");
|
|
1424
|
-
var de_ExportECSServiceRecommendationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1425
|
-
const parsedOutput = {
|
|
1426
|
-
...output,
|
|
1427
|
-
body: await parseErrorBody(output.body, context)
|
|
1428
|
-
};
|
|
1429
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1430
|
-
switch (errorCode) {
|
|
1431
|
-
case "AccessDeniedException":
|
|
1432
|
-
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
1433
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1434
|
-
case "InternalServerException":
|
|
1435
|
-
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
1436
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1437
|
-
case "InvalidParameterValueException":
|
|
1438
|
-
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
1439
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1440
|
-
case "LimitExceededException":
|
|
1441
|
-
case "com.amazonaws.computeoptimizer#LimitExceededException":
|
|
1442
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1443
|
-
case "MissingAuthenticationToken":
|
|
1444
|
-
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
1445
|
-
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
1446
|
-
case "OptInRequiredException":
|
|
1447
|
-
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
1448
|
-
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
1449
|
-
case "ServiceUnavailableException":
|
|
1450
|
-
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
1451
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1452
|
-
case "ThrottlingException":
|
|
1453
|
-
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
1454
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1455
|
-
default:
|
|
1456
|
-
const parsedBody = parsedOutput.body;
|
|
1457
|
-
return throwDefaultError({
|
|
1458
|
-
output,
|
|
1459
|
-
parsedBody,
|
|
1460
|
-
errorCode
|
|
1461
|
-
});
|
|
1462
|
-
}
|
|
1463
|
-
}, "de_ExportECSServiceRecommendationsCommandError");
|
|
1464
1224
|
var de_ExportLambdaFunctionRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1465
1225
|
if (output.statusCode >= 300) {
|
|
1466
|
-
return
|
|
1226
|
+
return de_CommandError(output, context);
|
|
1467
1227
|
}
|
|
1468
1228
|
const data = await parseBody(output.body, context);
|
|
1469
1229
|
let contents = {};
|
|
@@ -1474,102 +1234,22 @@ var de_ExportLambdaFunctionRecommendationsCommand = /* @__PURE__ */ __name(async
|
|
|
1474
1234
|
};
|
|
1475
1235
|
return response;
|
|
1476
1236
|
}, "de_ExportLambdaFunctionRecommendationsCommand");
|
|
1477
|
-
var
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
case "InternalServerException":
|
|
1488
|
-
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
1489
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1490
|
-
case "InvalidParameterValueException":
|
|
1491
|
-
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
1492
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1493
|
-
case "LimitExceededException":
|
|
1494
|
-
case "com.amazonaws.computeoptimizer#LimitExceededException":
|
|
1495
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1496
|
-
case "MissingAuthenticationToken":
|
|
1497
|
-
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
1498
|
-
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
1499
|
-
case "OptInRequiredException":
|
|
1500
|
-
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
1501
|
-
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
1502
|
-
case "ServiceUnavailableException":
|
|
1503
|
-
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
1504
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1505
|
-
case "ThrottlingException":
|
|
1506
|
-
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
1507
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1508
|
-
default:
|
|
1509
|
-
const parsedBody = parsedOutput.body;
|
|
1510
|
-
return throwDefaultError({
|
|
1511
|
-
output,
|
|
1512
|
-
parsedBody,
|
|
1513
|
-
errorCode
|
|
1514
|
-
});
|
|
1515
|
-
}
|
|
1516
|
-
}, "de_ExportLambdaFunctionRecommendationsCommandError");
|
|
1517
|
-
var de_ExportLicenseRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1518
|
-
if (output.statusCode >= 300) {
|
|
1519
|
-
return de_ExportLicenseRecommendationsCommandError(output, context);
|
|
1520
|
-
}
|
|
1521
|
-
const data = await parseBody(output.body, context);
|
|
1522
|
-
let contents = {};
|
|
1523
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1524
|
-
const response = {
|
|
1525
|
-
$metadata: deserializeMetadata(output),
|
|
1526
|
-
...contents
|
|
1237
|
+
var de_ExportLicenseRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1238
|
+
if (output.statusCode >= 300) {
|
|
1239
|
+
return de_CommandError(output, context);
|
|
1240
|
+
}
|
|
1241
|
+
const data = await parseBody(output.body, context);
|
|
1242
|
+
let contents = {};
|
|
1243
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1244
|
+
const response = {
|
|
1245
|
+
$metadata: deserializeMetadata(output),
|
|
1246
|
+
...contents
|
|
1527
1247
|
};
|
|
1528
1248
|
return response;
|
|
1529
1249
|
}, "de_ExportLicenseRecommendationsCommand");
|
|
1530
|
-
var de_ExportLicenseRecommendationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1531
|
-
const parsedOutput = {
|
|
1532
|
-
...output,
|
|
1533
|
-
body: await parseErrorBody(output.body, context)
|
|
1534
|
-
};
|
|
1535
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1536
|
-
switch (errorCode) {
|
|
1537
|
-
case "AccessDeniedException":
|
|
1538
|
-
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
1539
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1540
|
-
case "InternalServerException":
|
|
1541
|
-
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
1542
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1543
|
-
case "InvalidParameterValueException":
|
|
1544
|
-
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
1545
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1546
|
-
case "LimitExceededException":
|
|
1547
|
-
case "com.amazonaws.computeoptimizer#LimitExceededException":
|
|
1548
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1549
|
-
case "MissingAuthenticationToken":
|
|
1550
|
-
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
1551
|
-
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
1552
|
-
case "OptInRequiredException":
|
|
1553
|
-
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
1554
|
-
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
1555
|
-
case "ServiceUnavailableException":
|
|
1556
|
-
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
1557
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1558
|
-
case "ThrottlingException":
|
|
1559
|
-
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
1560
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1561
|
-
default:
|
|
1562
|
-
const parsedBody = parsedOutput.body;
|
|
1563
|
-
return throwDefaultError({
|
|
1564
|
-
output,
|
|
1565
|
-
parsedBody,
|
|
1566
|
-
errorCode
|
|
1567
|
-
});
|
|
1568
|
-
}
|
|
1569
|
-
}, "de_ExportLicenseRecommendationsCommandError");
|
|
1570
1250
|
var de_GetAutoScalingGroupRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1571
1251
|
if (output.statusCode >= 300) {
|
|
1572
|
-
return
|
|
1252
|
+
return de_CommandError(output, context);
|
|
1573
1253
|
}
|
|
1574
1254
|
const data = await parseBody(output.body, context);
|
|
1575
1255
|
let contents = {};
|
|
@@ -1580,49 +1260,9 @@ var de_GetAutoScalingGroupRecommendationsCommand = /* @__PURE__ */ __name(async
|
|
|
1580
1260
|
};
|
|
1581
1261
|
return response;
|
|
1582
1262
|
}, "de_GetAutoScalingGroupRecommendationsCommand");
|
|
1583
|
-
var de_GetAutoScalingGroupRecommendationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1584
|
-
const parsedOutput = {
|
|
1585
|
-
...output,
|
|
1586
|
-
body: await parseErrorBody(output.body, context)
|
|
1587
|
-
};
|
|
1588
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1589
|
-
switch (errorCode) {
|
|
1590
|
-
case "AccessDeniedException":
|
|
1591
|
-
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
1592
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1593
|
-
case "InternalServerException":
|
|
1594
|
-
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
1595
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1596
|
-
case "InvalidParameterValueException":
|
|
1597
|
-
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
1598
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1599
|
-
case "MissingAuthenticationToken":
|
|
1600
|
-
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
1601
|
-
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
1602
|
-
case "OptInRequiredException":
|
|
1603
|
-
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
1604
|
-
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
1605
|
-
case "ResourceNotFoundException":
|
|
1606
|
-
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
1607
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1608
|
-
case "ServiceUnavailableException":
|
|
1609
|
-
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
1610
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1611
|
-
case "ThrottlingException":
|
|
1612
|
-
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
1613
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1614
|
-
default:
|
|
1615
|
-
const parsedBody = parsedOutput.body;
|
|
1616
|
-
return throwDefaultError({
|
|
1617
|
-
output,
|
|
1618
|
-
parsedBody,
|
|
1619
|
-
errorCode
|
|
1620
|
-
});
|
|
1621
|
-
}
|
|
1622
|
-
}, "de_GetAutoScalingGroupRecommendationsCommandError");
|
|
1623
1263
|
var de_GetEBSVolumeRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1624
1264
|
if (output.statusCode >= 300) {
|
|
1625
|
-
return
|
|
1265
|
+
return de_CommandError(output, context);
|
|
1626
1266
|
}
|
|
1627
1267
|
const data = await parseBody(output.body, context);
|
|
1628
1268
|
let contents = {};
|
|
@@ -1633,49 +1273,9 @@ var de_GetEBSVolumeRecommendationsCommand = /* @__PURE__ */ __name(async (output
|
|
|
1633
1273
|
};
|
|
1634
1274
|
return response;
|
|
1635
1275
|
}, "de_GetEBSVolumeRecommendationsCommand");
|
|
1636
|
-
var de_GetEBSVolumeRecommendationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1637
|
-
const parsedOutput = {
|
|
1638
|
-
...output,
|
|
1639
|
-
body: await parseErrorBody(output.body, context)
|
|
1640
|
-
};
|
|
1641
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1642
|
-
switch (errorCode) {
|
|
1643
|
-
case "AccessDeniedException":
|
|
1644
|
-
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
1645
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1646
|
-
case "InternalServerException":
|
|
1647
|
-
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
1648
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1649
|
-
case "InvalidParameterValueException":
|
|
1650
|
-
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
1651
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1652
|
-
case "MissingAuthenticationToken":
|
|
1653
|
-
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
1654
|
-
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
1655
|
-
case "OptInRequiredException":
|
|
1656
|
-
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
1657
|
-
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
1658
|
-
case "ResourceNotFoundException":
|
|
1659
|
-
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
1660
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1661
|
-
case "ServiceUnavailableException":
|
|
1662
|
-
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
1663
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1664
|
-
case "ThrottlingException":
|
|
1665
|
-
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
1666
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1667
|
-
default:
|
|
1668
|
-
const parsedBody = parsedOutput.body;
|
|
1669
|
-
return throwDefaultError({
|
|
1670
|
-
output,
|
|
1671
|
-
parsedBody,
|
|
1672
|
-
errorCode
|
|
1673
|
-
});
|
|
1674
|
-
}
|
|
1675
|
-
}, "de_GetEBSVolumeRecommendationsCommandError");
|
|
1676
1276
|
var de_GetEC2InstanceRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1677
1277
|
if (output.statusCode >= 300) {
|
|
1678
|
-
return
|
|
1278
|
+
return de_CommandError(output, context);
|
|
1679
1279
|
}
|
|
1680
1280
|
const data = await parseBody(output.body, context);
|
|
1681
1281
|
let contents = {};
|
|
@@ -1686,49 +1286,9 @@ var de_GetEC2InstanceRecommendationsCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1686
1286
|
};
|
|
1687
1287
|
return response;
|
|
1688
1288
|
}, "de_GetEC2InstanceRecommendationsCommand");
|
|
1689
|
-
var de_GetEC2InstanceRecommendationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1690
|
-
const parsedOutput = {
|
|
1691
|
-
...output,
|
|
1692
|
-
body: await parseErrorBody(output.body, context)
|
|
1693
|
-
};
|
|
1694
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1695
|
-
switch (errorCode) {
|
|
1696
|
-
case "AccessDeniedException":
|
|
1697
|
-
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
1698
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1699
|
-
case "InternalServerException":
|
|
1700
|
-
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
1701
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1702
|
-
case "InvalidParameterValueException":
|
|
1703
|
-
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
1704
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1705
|
-
case "MissingAuthenticationToken":
|
|
1706
|
-
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
1707
|
-
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
1708
|
-
case "OptInRequiredException":
|
|
1709
|
-
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
1710
|
-
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
1711
|
-
case "ResourceNotFoundException":
|
|
1712
|
-
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
1713
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1714
|
-
case "ServiceUnavailableException":
|
|
1715
|
-
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
1716
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1717
|
-
case "ThrottlingException":
|
|
1718
|
-
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
1719
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1720
|
-
default:
|
|
1721
|
-
const parsedBody = parsedOutput.body;
|
|
1722
|
-
return throwDefaultError({
|
|
1723
|
-
output,
|
|
1724
|
-
parsedBody,
|
|
1725
|
-
errorCode
|
|
1726
|
-
});
|
|
1727
|
-
}
|
|
1728
|
-
}, "de_GetEC2InstanceRecommendationsCommandError");
|
|
1729
1289
|
var de_GetEC2RecommendationProjectedMetricsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1730
1290
|
if (output.statusCode >= 300) {
|
|
1731
|
-
return
|
|
1291
|
+
return de_CommandError(output, context);
|
|
1732
1292
|
}
|
|
1733
1293
|
const data = await parseBody(output.body, context);
|
|
1734
1294
|
let contents = {};
|
|
@@ -1739,49 +1299,9 @@ var de_GetEC2RecommendationProjectedMetricsCommand = /* @__PURE__ */ __name(asyn
|
|
|
1739
1299
|
};
|
|
1740
1300
|
return response;
|
|
1741
1301
|
}, "de_GetEC2RecommendationProjectedMetricsCommand");
|
|
1742
|
-
var de_GetEC2RecommendationProjectedMetricsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1743
|
-
const parsedOutput = {
|
|
1744
|
-
...output,
|
|
1745
|
-
body: await parseErrorBody(output.body, context)
|
|
1746
|
-
};
|
|
1747
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1748
|
-
switch (errorCode) {
|
|
1749
|
-
case "AccessDeniedException":
|
|
1750
|
-
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
1751
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1752
|
-
case "InternalServerException":
|
|
1753
|
-
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
1754
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1755
|
-
case "InvalidParameterValueException":
|
|
1756
|
-
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
1757
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1758
|
-
case "MissingAuthenticationToken":
|
|
1759
|
-
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
1760
|
-
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
1761
|
-
case "OptInRequiredException":
|
|
1762
|
-
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
1763
|
-
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
1764
|
-
case "ResourceNotFoundException":
|
|
1765
|
-
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
1766
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1767
|
-
case "ServiceUnavailableException":
|
|
1768
|
-
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
1769
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1770
|
-
case "ThrottlingException":
|
|
1771
|
-
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
1772
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1773
|
-
default:
|
|
1774
|
-
const parsedBody = parsedOutput.body;
|
|
1775
|
-
return throwDefaultError({
|
|
1776
|
-
output,
|
|
1777
|
-
parsedBody,
|
|
1778
|
-
errorCode
|
|
1779
|
-
});
|
|
1780
|
-
}
|
|
1781
|
-
}, "de_GetEC2RecommendationProjectedMetricsCommandError");
|
|
1782
1302
|
var de_GetECSServiceRecommendationProjectedMetricsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1783
1303
|
if (output.statusCode >= 300) {
|
|
1784
|
-
return
|
|
1304
|
+
return de_CommandError(output, context);
|
|
1785
1305
|
}
|
|
1786
1306
|
const data = await parseBody(output.body, context);
|
|
1787
1307
|
let contents = {};
|
|
@@ -1792,202 +1312,48 @@ var de_GetECSServiceRecommendationProjectedMetricsCommand = /* @__PURE__ */ __na
|
|
|
1792
1312
|
};
|
|
1793
1313
|
return response;
|
|
1794
1314
|
}, "de_GetECSServiceRecommendationProjectedMetricsCommand");
|
|
1795
|
-
var de_GetECSServiceRecommendationProjectedMetricsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1796
|
-
const parsedOutput = {
|
|
1797
|
-
...output,
|
|
1798
|
-
body: await parseErrorBody(output.body, context)
|
|
1799
|
-
};
|
|
1800
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1801
|
-
switch (errorCode) {
|
|
1802
|
-
case "AccessDeniedException":
|
|
1803
|
-
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
1804
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1805
|
-
case "InternalServerException":
|
|
1806
|
-
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
1807
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1808
|
-
case "InvalidParameterValueException":
|
|
1809
|
-
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
1810
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1811
|
-
case "MissingAuthenticationToken":
|
|
1812
|
-
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
1813
|
-
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
1814
|
-
case "OptInRequiredException":
|
|
1815
|
-
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
1816
|
-
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
1817
|
-
case "ResourceNotFoundException":
|
|
1818
|
-
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
1819
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1820
|
-
case "ServiceUnavailableException":
|
|
1821
|
-
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
1822
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1823
|
-
case "ThrottlingException":
|
|
1824
|
-
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
1825
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1826
|
-
default:
|
|
1827
|
-
const parsedBody = parsedOutput.body;
|
|
1828
|
-
return throwDefaultError({
|
|
1829
|
-
output,
|
|
1830
|
-
parsedBody,
|
|
1831
|
-
errorCode
|
|
1832
|
-
});
|
|
1833
|
-
}
|
|
1834
|
-
}, "de_GetECSServiceRecommendationProjectedMetricsCommandError");
|
|
1835
1315
|
var de_GetECSServiceRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1836
1316
|
if (output.statusCode >= 300) {
|
|
1837
|
-
return
|
|
1317
|
+
return de_CommandError(output, context);
|
|
1838
1318
|
}
|
|
1839
1319
|
const data = await parseBody(output.body, context);
|
|
1840
1320
|
let contents = {};
|
|
1841
1321
|
contents = de_GetECSServiceRecommendationsResponse(data, context);
|
|
1842
1322
|
const response = {
|
|
1843
|
-
$metadata: deserializeMetadata(output),
|
|
1844
|
-
...contents
|
|
1845
|
-
};
|
|
1846
|
-
return response;
|
|
1847
|
-
}, "de_GetECSServiceRecommendationsCommand");
|
|
1848
|
-
var
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
case "MissingAuthenticationToken":
|
|
1865
|
-
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
1866
|
-
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
1867
|
-
case "OptInRequiredException":
|
|
1868
|
-
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
1869
|
-
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
1870
|
-
case "ResourceNotFoundException":
|
|
1871
|
-
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
1872
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1873
|
-
case "ServiceUnavailableException":
|
|
1874
|
-
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
1875
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1876
|
-
case "ThrottlingException":
|
|
1877
|
-
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
1878
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1879
|
-
default:
|
|
1880
|
-
const parsedBody = parsedOutput.body;
|
|
1881
|
-
return throwDefaultError({
|
|
1882
|
-
output,
|
|
1883
|
-
parsedBody,
|
|
1884
|
-
errorCode
|
|
1885
|
-
});
|
|
1886
|
-
}
|
|
1887
|
-
}, "de_GetECSServiceRecommendationsCommandError");
|
|
1888
|
-
var de_GetEffectiveRecommendationPreferencesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1889
|
-
if (output.statusCode >= 300) {
|
|
1890
|
-
return de_GetEffectiveRecommendationPreferencesCommandError(output, context);
|
|
1891
|
-
}
|
|
1892
|
-
const data = await parseBody(output.body, context);
|
|
1893
|
-
let contents = {};
|
|
1894
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1895
|
-
const response = {
|
|
1896
|
-
$metadata: deserializeMetadata(output),
|
|
1897
|
-
...contents
|
|
1898
|
-
};
|
|
1899
|
-
return response;
|
|
1900
|
-
}, "de_GetEffectiveRecommendationPreferencesCommand");
|
|
1901
|
-
var de_GetEffectiveRecommendationPreferencesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1902
|
-
const parsedOutput = {
|
|
1903
|
-
...output,
|
|
1904
|
-
body: await parseErrorBody(output.body, context)
|
|
1905
|
-
};
|
|
1906
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1907
|
-
switch (errorCode) {
|
|
1908
|
-
case "AccessDeniedException":
|
|
1909
|
-
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
1910
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1911
|
-
case "InternalServerException":
|
|
1912
|
-
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
1913
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1914
|
-
case "InvalidParameterValueException":
|
|
1915
|
-
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
1916
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1917
|
-
case "MissingAuthenticationToken":
|
|
1918
|
-
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
1919
|
-
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
1920
|
-
case "OptInRequiredException":
|
|
1921
|
-
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
1922
|
-
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
1923
|
-
case "ResourceNotFoundException":
|
|
1924
|
-
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
1925
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1926
|
-
case "ServiceUnavailableException":
|
|
1927
|
-
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
1928
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1929
|
-
case "ThrottlingException":
|
|
1930
|
-
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
1931
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1932
|
-
default:
|
|
1933
|
-
const parsedBody = parsedOutput.body;
|
|
1934
|
-
return throwDefaultError({
|
|
1935
|
-
output,
|
|
1936
|
-
parsedBody,
|
|
1937
|
-
errorCode
|
|
1938
|
-
});
|
|
1939
|
-
}
|
|
1940
|
-
}, "de_GetEffectiveRecommendationPreferencesCommandError");
|
|
1941
|
-
var de_GetEnrollmentStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1942
|
-
if (output.statusCode >= 300) {
|
|
1943
|
-
return de_GetEnrollmentStatusCommandError(output, context);
|
|
1944
|
-
}
|
|
1945
|
-
const data = await parseBody(output.body, context);
|
|
1946
|
-
let contents = {};
|
|
1947
|
-
contents = de_GetEnrollmentStatusResponse(data, context);
|
|
1948
|
-
const response = {
|
|
1949
|
-
$metadata: deserializeMetadata(output),
|
|
1950
|
-
...contents
|
|
1951
|
-
};
|
|
1952
|
-
return response;
|
|
1953
|
-
}, "de_GetEnrollmentStatusCommand");
|
|
1954
|
-
var de_GetEnrollmentStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1955
|
-
const parsedOutput = {
|
|
1956
|
-
...output,
|
|
1957
|
-
body: await parseErrorBody(output.body, context)
|
|
1958
|
-
};
|
|
1959
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1960
|
-
switch (errorCode) {
|
|
1961
|
-
case "AccessDeniedException":
|
|
1962
|
-
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
1963
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1964
|
-
case "InternalServerException":
|
|
1965
|
-
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
1966
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1967
|
-
case "InvalidParameterValueException":
|
|
1968
|
-
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
1969
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1970
|
-
case "MissingAuthenticationToken":
|
|
1971
|
-
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
1972
|
-
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
1973
|
-
case "ServiceUnavailableException":
|
|
1974
|
-
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
1975
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1976
|
-
case "ThrottlingException":
|
|
1977
|
-
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
1978
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1979
|
-
default:
|
|
1980
|
-
const parsedBody = parsedOutput.body;
|
|
1981
|
-
return throwDefaultError({
|
|
1982
|
-
output,
|
|
1983
|
-
parsedBody,
|
|
1984
|
-
errorCode
|
|
1985
|
-
});
|
|
1323
|
+
$metadata: deserializeMetadata(output),
|
|
1324
|
+
...contents
|
|
1325
|
+
};
|
|
1326
|
+
return response;
|
|
1327
|
+
}, "de_GetECSServiceRecommendationsCommand");
|
|
1328
|
+
var de_GetEffectiveRecommendationPreferencesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1329
|
+
if (output.statusCode >= 300) {
|
|
1330
|
+
return de_CommandError(output, context);
|
|
1331
|
+
}
|
|
1332
|
+
const data = await parseBody(output.body, context);
|
|
1333
|
+
let contents = {};
|
|
1334
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1335
|
+
const response = {
|
|
1336
|
+
$metadata: deserializeMetadata(output),
|
|
1337
|
+
...contents
|
|
1338
|
+
};
|
|
1339
|
+
return response;
|
|
1340
|
+
}, "de_GetEffectiveRecommendationPreferencesCommand");
|
|
1341
|
+
var de_GetEnrollmentStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1342
|
+
if (output.statusCode >= 300) {
|
|
1343
|
+
return de_CommandError(output, context);
|
|
1986
1344
|
}
|
|
1987
|
-
|
|
1345
|
+
const data = await parseBody(output.body, context);
|
|
1346
|
+
let contents = {};
|
|
1347
|
+
contents = de_GetEnrollmentStatusResponse(data, context);
|
|
1348
|
+
const response = {
|
|
1349
|
+
$metadata: deserializeMetadata(output),
|
|
1350
|
+
...contents
|
|
1351
|
+
};
|
|
1352
|
+
return response;
|
|
1353
|
+
}, "de_GetEnrollmentStatusCommand");
|
|
1988
1354
|
var de_GetEnrollmentStatusesForOrganizationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1989
1355
|
if (output.statusCode >= 300) {
|
|
1990
|
-
return
|
|
1356
|
+
return de_CommandError(output, context);
|
|
1991
1357
|
}
|
|
1992
1358
|
const data = await parseBody(output.body, context);
|
|
1993
1359
|
let contents = {};
|
|
@@ -1998,43 +1364,9 @@ var de_GetEnrollmentStatusesForOrganizationCommand = /* @__PURE__ */ __name(asyn
|
|
|
1998
1364
|
};
|
|
1999
1365
|
return response;
|
|
2000
1366
|
}, "de_GetEnrollmentStatusesForOrganizationCommand");
|
|
2001
|
-
var de_GetEnrollmentStatusesForOrganizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2002
|
-
const parsedOutput = {
|
|
2003
|
-
...output,
|
|
2004
|
-
body: await parseErrorBody(output.body, context)
|
|
2005
|
-
};
|
|
2006
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2007
|
-
switch (errorCode) {
|
|
2008
|
-
case "AccessDeniedException":
|
|
2009
|
-
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
2010
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2011
|
-
case "InternalServerException":
|
|
2012
|
-
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
2013
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2014
|
-
case "InvalidParameterValueException":
|
|
2015
|
-
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
2016
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2017
|
-
case "MissingAuthenticationToken":
|
|
2018
|
-
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
2019
|
-
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
2020
|
-
case "ServiceUnavailableException":
|
|
2021
|
-
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
2022
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2023
|
-
case "ThrottlingException":
|
|
2024
|
-
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
2025
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2026
|
-
default:
|
|
2027
|
-
const parsedBody = parsedOutput.body;
|
|
2028
|
-
return throwDefaultError({
|
|
2029
|
-
output,
|
|
2030
|
-
parsedBody,
|
|
2031
|
-
errorCode
|
|
2032
|
-
});
|
|
2033
|
-
}
|
|
2034
|
-
}, "de_GetEnrollmentStatusesForOrganizationCommandError");
|
|
2035
1367
|
var de_GetLambdaFunctionRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2036
1368
|
if (output.statusCode >= 300) {
|
|
2037
|
-
return
|
|
1369
|
+
return de_CommandError(output, context);
|
|
2038
1370
|
}
|
|
2039
1371
|
const data = await parseBody(output.body, context);
|
|
2040
1372
|
let contents = {};
|
|
@@ -2045,49 +1377,9 @@ var de_GetLambdaFunctionRecommendationsCommand = /* @__PURE__ */ __name(async (o
|
|
|
2045
1377
|
};
|
|
2046
1378
|
return response;
|
|
2047
1379
|
}, "de_GetLambdaFunctionRecommendationsCommand");
|
|
2048
|
-
var de_GetLambdaFunctionRecommendationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2049
|
-
const parsedOutput = {
|
|
2050
|
-
...output,
|
|
2051
|
-
body: await parseErrorBody(output.body, context)
|
|
2052
|
-
};
|
|
2053
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2054
|
-
switch (errorCode) {
|
|
2055
|
-
case "AccessDeniedException":
|
|
2056
|
-
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
2057
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2058
|
-
case "InternalServerException":
|
|
2059
|
-
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
2060
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2061
|
-
case "InvalidParameterValueException":
|
|
2062
|
-
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
2063
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2064
|
-
case "LimitExceededException":
|
|
2065
|
-
case "com.amazonaws.computeoptimizer#LimitExceededException":
|
|
2066
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2067
|
-
case "MissingAuthenticationToken":
|
|
2068
|
-
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
2069
|
-
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
2070
|
-
case "OptInRequiredException":
|
|
2071
|
-
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
2072
|
-
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
2073
|
-
case "ServiceUnavailableException":
|
|
2074
|
-
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
2075
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2076
|
-
case "ThrottlingException":
|
|
2077
|
-
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
2078
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2079
|
-
default:
|
|
2080
|
-
const parsedBody = parsedOutput.body;
|
|
2081
|
-
return throwDefaultError({
|
|
2082
|
-
output,
|
|
2083
|
-
parsedBody,
|
|
2084
|
-
errorCode
|
|
2085
|
-
});
|
|
2086
|
-
}
|
|
2087
|
-
}, "de_GetLambdaFunctionRecommendationsCommandError");
|
|
2088
1380
|
var de_GetLicenseRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2089
1381
|
if (output.statusCode >= 300) {
|
|
2090
|
-
return
|
|
1382
|
+
return de_CommandError(output, context);
|
|
2091
1383
|
}
|
|
2092
1384
|
const data = await parseBody(output.body, context);
|
|
2093
1385
|
let contents = {};
|
|
@@ -2098,49 +1390,9 @@ var de_GetLicenseRecommendationsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2098
1390
|
};
|
|
2099
1391
|
return response;
|
|
2100
1392
|
}, "de_GetLicenseRecommendationsCommand");
|
|
2101
|
-
var de_GetLicenseRecommendationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2102
|
-
const parsedOutput = {
|
|
2103
|
-
...output,
|
|
2104
|
-
body: await parseErrorBody(output.body, context)
|
|
2105
|
-
};
|
|
2106
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2107
|
-
switch (errorCode) {
|
|
2108
|
-
case "AccessDeniedException":
|
|
2109
|
-
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
2110
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2111
|
-
case "InternalServerException":
|
|
2112
|
-
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
2113
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2114
|
-
case "InvalidParameterValueException":
|
|
2115
|
-
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
2116
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2117
|
-
case "MissingAuthenticationToken":
|
|
2118
|
-
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
2119
|
-
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
2120
|
-
case "OptInRequiredException":
|
|
2121
|
-
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
2122
|
-
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
2123
|
-
case "ResourceNotFoundException":
|
|
2124
|
-
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
2125
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2126
|
-
case "ServiceUnavailableException":
|
|
2127
|
-
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
2128
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2129
|
-
case "ThrottlingException":
|
|
2130
|
-
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
2131
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2132
|
-
default:
|
|
2133
|
-
const parsedBody = parsedOutput.body;
|
|
2134
|
-
return throwDefaultError({
|
|
2135
|
-
output,
|
|
2136
|
-
parsedBody,
|
|
2137
|
-
errorCode
|
|
2138
|
-
});
|
|
2139
|
-
}
|
|
2140
|
-
}, "de_GetLicenseRecommendationsCommandError");
|
|
2141
1393
|
var de_GetRecommendationPreferencesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2142
1394
|
if (output.statusCode >= 300) {
|
|
2143
|
-
return
|
|
1395
|
+
return de_CommandError(output, context);
|
|
2144
1396
|
}
|
|
2145
1397
|
const data = await parseBody(output.body, context);
|
|
2146
1398
|
let contents = {};
|
|
@@ -2151,49 +1403,9 @@ var de_GetRecommendationPreferencesCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
2151
1403
|
};
|
|
2152
1404
|
return response;
|
|
2153
1405
|
}, "de_GetRecommendationPreferencesCommand");
|
|
2154
|
-
var de_GetRecommendationPreferencesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2155
|
-
const parsedOutput = {
|
|
2156
|
-
...output,
|
|
2157
|
-
body: await parseErrorBody(output.body, context)
|
|
2158
|
-
};
|
|
2159
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2160
|
-
switch (errorCode) {
|
|
2161
|
-
case "AccessDeniedException":
|
|
2162
|
-
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
2163
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2164
|
-
case "InternalServerException":
|
|
2165
|
-
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
2166
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2167
|
-
case "InvalidParameterValueException":
|
|
2168
|
-
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
2169
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2170
|
-
case "MissingAuthenticationToken":
|
|
2171
|
-
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
2172
|
-
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
2173
|
-
case "OptInRequiredException":
|
|
2174
|
-
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
2175
|
-
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
2176
|
-
case "ResourceNotFoundException":
|
|
2177
|
-
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
2178
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2179
|
-
case "ServiceUnavailableException":
|
|
2180
|
-
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
2181
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2182
|
-
case "ThrottlingException":
|
|
2183
|
-
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
2184
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2185
|
-
default:
|
|
2186
|
-
const parsedBody = parsedOutput.body;
|
|
2187
|
-
return throwDefaultError({
|
|
2188
|
-
output,
|
|
2189
|
-
parsedBody,
|
|
2190
|
-
errorCode
|
|
2191
|
-
});
|
|
2192
|
-
}
|
|
2193
|
-
}, "de_GetRecommendationPreferencesCommandError");
|
|
2194
1406
|
var de_GetRecommendationSummariesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2195
1407
|
if (output.statusCode >= 300) {
|
|
2196
|
-
return
|
|
1408
|
+
return de_CommandError(output, context);
|
|
2197
1409
|
}
|
|
2198
1410
|
const data = await parseBody(output.body, context);
|
|
2199
1411
|
let contents = {};
|
|
@@ -2204,46 +1416,9 @@ var de_GetRecommendationSummariesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2204
1416
|
};
|
|
2205
1417
|
return response;
|
|
2206
1418
|
}, "de_GetRecommendationSummariesCommand");
|
|
2207
|
-
var de_GetRecommendationSummariesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2208
|
-
const parsedOutput = {
|
|
2209
|
-
...output,
|
|
2210
|
-
body: await parseErrorBody(output.body, context)
|
|
2211
|
-
};
|
|
2212
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2213
|
-
switch (errorCode) {
|
|
2214
|
-
case "AccessDeniedException":
|
|
2215
|
-
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
2216
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2217
|
-
case "InternalServerException":
|
|
2218
|
-
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
2219
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2220
|
-
case "InvalidParameterValueException":
|
|
2221
|
-
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
2222
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2223
|
-
case "MissingAuthenticationToken":
|
|
2224
|
-
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
2225
|
-
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
2226
|
-
case "OptInRequiredException":
|
|
2227
|
-
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
2228
|
-
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
2229
|
-
case "ServiceUnavailableException":
|
|
2230
|
-
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
2231
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2232
|
-
case "ThrottlingException":
|
|
2233
|
-
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
2234
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2235
|
-
default:
|
|
2236
|
-
const parsedBody = parsedOutput.body;
|
|
2237
|
-
return throwDefaultError({
|
|
2238
|
-
output,
|
|
2239
|
-
parsedBody,
|
|
2240
|
-
errorCode
|
|
2241
|
-
});
|
|
2242
|
-
}
|
|
2243
|
-
}, "de_GetRecommendationSummariesCommandError");
|
|
2244
1419
|
var de_PutRecommendationPreferencesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2245
1420
|
if (output.statusCode >= 300) {
|
|
2246
|
-
return
|
|
1421
|
+
return de_CommandError(output, context);
|
|
2247
1422
|
}
|
|
2248
1423
|
const data = await parseBody(output.body, context);
|
|
2249
1424
|
let contents = {};
|
|
@@ -2254,49 +1429,9 @@ var de_PutRecommendationPreferencesCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
2254
1429
|
};
|
|
2255
1430
|
return response;
|
|
2256
1431
|
}, "de_PutRecommendationPreferencesCommand");
|
|
2257
|
-
var de_PutRecommendationPreferencesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2258
|
-
const parsedOutput = {
|
|
2259
|
-
...output,
|
|
2260
|
-
body: await parseErrorBody(output.body, context)
|
|
2261
|
-
};
|
|
2262
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2263
|
-
switch (errorCode) {
|
|
2264
|
-
case "AccessDeniedException":
|
|
2265
|
-
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
2266
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2267
|
-
case "InternalServerException":
|
|
2268
|
-
case "com.amazonaws.computeoptimizer#InternalServerException":
|
|
2269
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2270
|
-
case "InvalidParameterValueException":
|
|
2271
|
-
case "com.amazonaws.computeoptimizer#InvalidParameterValueException":
|
|
2272
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2273
|
-
case "MissingAuthenticationToken":
|
|
2274
|
-
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
2275
|
-
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
2276
|
-
case "OptInRequiredException":
|
|
2277
|
-
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
2278
|
-
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
2279
|
-
case "ResourceNotFoundException":
|
|
2280
|
-
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
2281
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2282
|
-
case "ServiceUnavailableException":
|
|
2283
|
-
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
2284
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2285
|
-
case "ThrottlingException":
|
|
2286
|
-
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
2287
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2288
|
-
default:
|
|
2289
|
-
const parsedBody = parsedOutput.body;
|
|
2290
|
-
return throwDefaultError({
|
|
2291
|
-
output,
|
|
2292
|
-
parsedBody,
|
|
2293
|
-
errorCode
|
|
2294
|
-
});
|
|
2295
|
-
}
|
|
2296
|
-
}, "de_PutRecommendationPreferencesCommandError");
|
|
2297
1432
|
var de_UpdateEnrollmentStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2298
1433
|
if (output.statusCode >= 300) {
|
|
2299
|
-
return
|
|
1434
|
+
return de_CommandError(output, context);
|
|
2300
1435
|
}
|
|
2301
1436
|
const data = await parseBody(output.body, context);
|
|
2302
1437
|
let contents = {};
|
|
@@ -2307,7 +1442,7 @@ var de_UpdateEnrollmentStatusCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2307
1442
|
};
|
|
2308
1443
|
return response;
|
|
2309
1444
|
}, "de_UpdateEnrollmentStatusCommand");
|
|
2310
|
-
var
|
|
1445
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2311
1446
|
const parsedOutput = {
|
|
2312
1447
|
...output,
|
|
2313
1448
|
body: await parseErrorBody(output.body, context)
|
|
@@ -2326,12 +1461,21 @@ var de_UpdateEnrollmentStatusCommandError = /* @__PURE__ */ __name(async (output
|
|
|
2326
1461
|
case "MissingAuthenticationToken":
|
|
2327
1462
|
case "com.amazonaws.computeoptimizer#MissingAuthenticationToken":
|
|
2328
1463
|
throw await de_MissingAuthenticationTokenRes(parsedOutput, context);
|
|
1464
|
+
case "OptInRequiredException":
|
|
1465
|
+
case "com.amazonaws.computeoptimizer#OptInRequiredException":
|
|
1466
|
+
throw await de_OptInRequiredExceptionRes(parsedOutput, context);
|
|
1467
|
+
case "ResourceNotFoundException":
|
|
1468
|
+
case "com.amazonaws.computeoptimizer#ResourceNotFoundException":
|
|
1469
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2329
1470
|
case "ServiceUnavailableException":
|
|
2330
1471
|
case "com.amazonaws.computeoptimizer#ServiceUnavailableException":
|
|
2331
1472
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2332
1473
|
case "ThrottlingException":
|
|
2333
1474
|
case "com.amazonaws.computeoptimizer#ThrottlingException":
|
|
2334
1475
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1476
|
+
case "LimitExceededException":
|
|
1477
|
+
case "com.amazonaws.computeoptimizer#LimitExceededException":
|
|
1478
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2335
1479
|
default:
|
|
2336
1480
|
const parsedBody = parsedOutput.body;
|
|
2337
1481
|
return throwDefaultError({
|
|
@@ -2340,7 +1484,7 @@ var de_UpdateEnrollmentStatusCommandError = /* @__PURE__ */ __name(async (output
|
|
|
2340
1484
|
errorCode
|
|
2341
1485
|
});
|
|
2342
1486
|
}
|
|
2343
|
-
}, "
|
|
1487
|
+
}, "de_CommandError");
|
|
2344
1488
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2345
1489
|
const body = parsedOutput.body;
|
|
2346
1490
|
const deserialized = (0, import_smithy_client._json)(body);
|