@aws-sdk/client-compute-optimizer 3.523.0 → 3.529.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 +26 -66
- package/dist-es/protocols/Aws_json1_0.js +1 -40
- package/package.json +17 -17
- package/dist-cjs/ComputeOptimizer.js +0 -1
- package/dist-cjs/ComputeOptimizerClient.js +0 -1
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
- package/dist-cjs/commands/DeleteRecommendationPreferencesCommand.js +0 -1
- package/dist-cjs/commands/DescribeRecommendationExportJobsCommand.js +0 -1
- package/dist-cjs/commands/ExportAutoScalingGroupRecommendationsCommand.js +0 -1
- package/dist-cjs/commands/ExportEBSVolumeRecommendationsCommand.js +0 -1
- package/dist-cjs/commands/ExportEC2InstanceRecommendationsCommand.js +0 -1
- package/dist-cjs/commands/ExportECSServiceRecommendationsCommand.js +0 -1
- package/dist-cjs/commands/ExportLambdaFunctionRecommendationsCommand.js +0 -1
- package/dist-cjs/commands/ExportLicenseRecommendationsCommand.js +0 -1
- package/dist-cjs/commands/GetAutoScalingGroupRecommendationsCommand.js +0 -1
- package/dist-cjs/commands/GetEBSVolumeRecommendationsCommand.js +0 -1
- package/dist-cjs/commands/GetEC2InstanceRecommendationsCommand.js +0 -1
- package/dist-cjs/commands/GetEC2RecommendationProjectedMetricsCommand.js +0 -1
- package/dist-cjs/commands/GetECSServiceRecommendationProjectedMetricsCommand.js +0 -1
- package/dist-cjs/commands/GetECSServiceRecommendationsCommand.js +0 -1
- package/dist-cjs/commands/GetEffectiveRecommendationPreferencesCommand.js +0 -1
- package/dist-cjs/commands/GetEnrollmentStatusCommand.js +0 -1
- package/dist-cjs/commands/GetEnrollmentStatusesForOrganizationCommand.js +0 -1
- package/dist-cjs/commands/GetLambdaFunctionRecommendationsCommand.js +0 -1
- package/dist-cjs/commands/GetLicenseRecommendationsCommand.js +0 -1
- package/dist-cjs/commands/GetRecommendationPreferencesCommand.js +0 -1
- package/dist-cjs/commands/GetRecommendationSummariesCommand.js +0 -1
- package/dist-cjs/commands/PutRecommendationPreferencesCommand.js +0 -1
- package/dist-cjs/commands/UpdateEnrollmentStatusCommand.js +0 -1
- package/dist-cjs/commands/index.js +0 -1
- package/dist-cjs/endpoint/EndpointParameters.js +0 -1
- package/dist-cjs/extensionConfiguration.js +0 -1
- package/dist-cjs/models/ComputeOptimizerServiceException.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/pagination/DescribeRecommendationExportJobsPaginator.js +0 -1
- package/dist-cjs/pagination/GetEnrollmentStatusesForOrganizationPaginator.js +0 -1
- package/dist-cjs/pagination/GetLambdaFunctionRecommendationsPaginator.js +0 -1
- package/dist-cjs/pagination/GetRecommendationPreferencesPaginator.js +0 -1
- package/dist-cjs/pagination/GetRecommendationSummariesPaginator.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/index.js +0 -1
- package/dist-cjs/protocols/Aws_json1_0.js +0 -1
- package/dist-cjs/runtimeExtensions.js +0 -1
package/dist-cjs/index.js
CHANGED
|
@@ -285,6 +285,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
285
285
|
var import_types = require("@smithy/types");
|
|
286
286
|
|
|
287
287
|
// src/protocols/Aws_json1_0.ts
|
|
288
|
+
var import_core2 = require("@aws-sdk/core");
|
|
288
289
|
|
|
289
290
|
|
|
290
291
|
|
|
@@ -1205,7 +1206,7 @@ var de_DeleteRecommendationPreferencesCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1205
1206
|
if (output.statusCode >= 300) {
|
|
1206
1207
|
return de_CommandError(output, context);
|
|
1207
1208
|
}
|
|
1208
|
-
const data = await
|
|
1209
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1209
1210
|
let contents = {};
|
|
1210
1211
|
contents = (0, import_smithy_client._json)(data);
|
|
1211
1212
|
const response = {
|
|
@@ -1218,7 +1219,7 @@ var de_DescribeRecommendationExportJobsCommand = /* @__PURE__ */ __name(async (o
|
|
|
1218
1219
|
if (output.statusCode >= 300) {
|
|
1219
1220
|
return de_CommandError(output, context);
|
|
1220
1221
|
}
|
|
1221
|
-
const data = await
|
|
1222
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1222
1223
|
let contents = {};
|
|
1223
1224
|
contents = de_DescribeRecommendationExportJobsResponse(data, context);
|
|
1224
1225
|
const response = {
|
|
@@ -1231,7 +1232,7 @@ var de_ExportAutoScalingGroupRecommendationsCommand = /* @__PURE__ */ __name(asy
|
|
|
1231
1232
|
if (output.statusCode >= 300) {
|
|
1232
1233
|
return de_CommandError(output, context);
|
|
1233
1234
|
}
|
|
1234
|
-
const data = await
|
|
1235
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1235
1236
|
let contents = {};
|
|
1236
1237
|
contents = (0, import_smithy_client._json)(data);
|
|
1237
1238
|
const response = {
|
|
@@ -1244,7 +1245,7 @@ var de_ExportEBSVolumeRecommendationsCommand = /* @__PURE__ */ __name(async (out
|
|
|
1244
1245
|
if (output.statusCode >= 300) {
|
|
1245
1246
|
return de_CommandError(output, context);
|
|
1246
1247
|
}
|
|
1247
|
-
const data = await
|
|
1248
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1248
1249
|
let contents = {};
|
|
1249
1250
|
contents = (0, import_smithy_client._json)(data);
|
|
1250
1251
|
const response = {
|
|
@@ -1257,7 +1258,7 @@ var de_ExportEC2InstanceRecommendationsCommand = /* @__PURE__ */ __name(async (o
|
|
|
1257
1258
|
if (output.statusCode >= 300) {
|
|
1258
1259
|
return de_CommandError(output, context);
|
|
1259
1260
|
}
|
|
1260
|
-
const data = await
|
|
1261
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1261
1262
|
let contents = {};
|
|
1262
1263
|
contents = (0, import_smithy_client._json)(data);
|
|
1263
1264
|
const response = {
|
|
@@ -1270,7 +1271,7 @@ var de_ExportECSServiceRecommendationsCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1270
1271
|
if (output.statusCode >= 300) {
|
|
1271
1272
|
return de_CommandError(output, context);
|
|
1272
1273
|
}
|
|
1273
|
-
const data = await
|
|
1274
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1274
1275
|
let contents = {};
|
|
1275
1276
|
contents = (0, import_smithy_client._json)(data);
|
|
1276
1277
|
const response = {
|
|
@@ -1283,7 +1284,7 @@ var de_ExportLambdaFunctionRecommendationsCommand = /* @__PURE__ */ __name(async
|
|
|
1283
1284
|
if (output.statusCode >= 300) {
|
|
1284
1285
|
return de_CommandError(output, context);
|
|
1285
1286
|
}
|
|
1286
|
-
const data = await
|
|
1287
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1287
1288
|
let contents = {};
|
|
1288
1289
|
contents = (0, import_smithy_client._json)(data);
|
|
1289
1290
|
const response = {
|
|
@@ -1296,7 +1297,7 @@ var de_ExportLicenseRecommendationsCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1296
1297
|
if (output.statusCode >= 300) {
|
|
1297
1298
|
return de_CommandError(output, context);
|
|
1298
1299
|
}
|
|
1299
|
-
const data = await
|
|
1300
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1300
1301
|
let contents = {};
|
|
1301
1302
|
contents = (0, import_smithy_client._json)(data);
|
|
1302
1303
|
const response = {
|
|
@@ -1309,7 +1310,7 @@ var de_GetAutoScalingGroupRecommendationsCommand = /* @__PURE__ */ __name(async
|
|
|
1309
1310
|
if (output.statusCode >= 300) {
|
|
1310
1311
|
return de_CommandError(output, context);
|
|
1311
1312
|
}
|
|
1312
|
-
const data = await
|
|
1313
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1313
1314
|
let contents = {};
|
|
1314
1315
|
contents = de_GetAutoScalingGroupRecommendationsResponse(data, context);
|
|
1315
1316
|
const response = {
|
|
@@ -1322,7 +1323,7 @@ var de_GetEBSVolumeRecommendationsCommand = /* @__PURE__ */ __name(async (output
|
|
|
1322
1323
|
if (output.statusCode >= 300) {
|
|
1323
1324
|
return de_CommandError(output, context);
|
|
1324
1325
|
}
|
|
1325
|
-
const data = await
|
|
1326
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1326
1327
|
let contents = {};
|
|
1327
1328
|
contents = de_GetEBSVolumeRecommendationsResponse(data, context);
|
|
1328
1329
|
const response = {
|
|
@@ -1335,7 +1336,7 @@ var de_GetEC2InstanceRecommendationsCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1335
1336
|
if (output.statusCode >= 300) {
|
|
1336
1337
|
return de_CommandError(output, context);
|
|
1337
1338
|
}
|
|
1338
|
-
const data = await
|
|
1339
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1339
1340
|
let contents = {};
|
|
1340
1341
|
contents = de_GetEC2InstanceRecommendationsResponse(data, context);
|
|
1341
1342
|
const response = {
|
|
@@ -1348,7 +1349,7 @@ var de_GetEC2RecommendationProjectedMetricsCommand = /* @__PURE__ */ __name(asyn
|
|
|
1348
1349
|
if (output.statusCode >= 300) {
|
|
1349
1350
|
return de_CommandError(output, context);
|
|
1350
1351
|
}
|
|
1351
|
-
const data = await
|
|
1352
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1352
1353
|
let contents = {};
|
|
1353
1354
|
contents = de_GetEC2RecommendationProjectedMetricsResponse(data, context);
|
|
1354
1355
|
const response = {
|
|
@@ -1361,7 +1362,7 @@ var de_GetECSServiceRecommendationProjectedMetricsCommand = /* @__PURE__ */ __na
|
|
|
1361
1362
|
if (output.statusCode >= 300) {
|
|
1362
1363
|
return de_CommandError(output, context);
|
|
1363
1364
|
}
|
|
1364
|
-
const data = await
|
|
1365
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1365
1366
|
let contents = {};
|
|
1366
1367
|
contents = de_GetECSServiceRecommendationProjectedMetricsResponse(data, context);
|
|
1367
1368
|
const response = {
|
|
@@ -1374,7 +1375,7 @@ var de_GetECSServiceRecommendationsCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1374
1375
|
if (output.statusCode >= 300) {
|
|
1375
1376
|
return de_CommandError(output, context);
|
|
1376
1377
|
}
|
|
1377
|
-
const data = await
|
|
1378
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1378
1379
|
let contents = {};
|
|
1379
1380
|
contents = de_GetECSServiceRecommendationsResponse(data, context);
|
|
1380
1381
|
const response = {
|
|
@@ -1387,7 +1388,7 @@ var de_GetEffectiveRecommendationPreferencesCommand = /* @__PURE__ */ __name(asy
|
|
|
1387
1388
|
if (output.statusCode >= 300) {
|
|
1388
1389
|
return de_CommandError(output, context);
|
|
1389
1390
|
}
|
|
1390
|
-
const data = await
|
|
1391
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1391
1392
|
let contents = {};
|
|
1392
1393
|
contents = (0, import_smithy_client._json)(data);
|
|
1393
1394
|
const response = {
|
|
@@ -1400,7 +1401,7 @@ var de_GetEnrollmentStatusCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1400
1401
|
if (output.statusCode >= 300) {
|
|
1401
1402
|
return de_CommandError(output, context);
|
|
1402
1403
|
}
|
|
1403
|
-
const data = await
|
|
1404
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1404
1405
|
let contents = {};
|
|
1405
1406
|
contents = de_GetEnrollmentStatusResponse(data, context);
|
|
1406
1407
|
const response = {
|
|
@@ -1413,7 +1414,7 @@ var de_GetEnrollmentStatusesForOrganizationCommand = /* @__PURE__ */ __name(asyn
|
|
|
1413
1414
|
if (output.statusCode >= 300) {
|
|
1414
1415
|
return de_CommandError(output, context);
|
|
1415
1416
|
}
|
|
1416
|
-
const data = await
|
|
1417
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1417
1418
|
let contents = {};
|
|
1418
1419
|
contents = de_GetEnrollmentStatusesForOrganizationResponse(data, context);
|
|
1419
1420
|
const response = {
|
|
@@ -1426,7 +1427,7 @@ var de_GetLambdaFunctionRecommendationsCommand = /* @__PURE__ */ __name(async (o
|
|
|
1426
1427
|
if (output.statusCode >= 300) {
|
|
1427
1428
|
return de_CommandError(output, context);
|
|
1428
1429
|
}
|
|
1429
|
-
const data = await
|
|
1430
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1430
1431
|
let contents = {};
|
|
1431
1432
|
contents = de_GetLambdaFunctionRecommendationsResponse(data, context);
|
|
1432
1433
|
const response = {
|
|
@@ -1439,7 +1440,7 @@ var de_GetLicenseRecommendationsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1439
1440
|
if (output.statusCode >= 300) {
|
|
1440
1441
|
return de_CommandError(output, context);
|
|
1441
1442
|
}
|
|
1442
|
-
const data = await
|
|
1443
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1443
1444
|
let contents = {};
|
|
1444
1445
|
contents = de_GetLicenseRecommendationsResponse(data, context);
|
|
1445
1446
|
const response = {
|
|
@@ -1452,7 +1453,7 @@ var de_GetRecommendationPreferencesCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1452
1453
|
if (output.statusCode >= 300) {
|
|
1453
1454
|
return de_CommandError(output, context);
|
|
1454
1455
|
}
|
|
1455
|
-
const data = await
|
|
1456
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1456
1457
|
let contents = {};
|
|
1457
1458
|
contents = (0, import_smithy_client._json)(data);
|
|
1458
1459
|
const response = {
|
|
@@ -1465,7 +1466,7 @@ var de_GetRecommendationSummariesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1465
1466
|
if (output.statusCode >= 300) {
|
|
1466
1467
|
return de_CommandError(output, context);
|
|
1467
1468
|
}
|
|
1468
|
-
const data = await
|
|
1469
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1469
1470
|
let contents = {};
|
|
1470
1471
|
contents = de_GetRecommendationSummariesResponse(data, context);
|
|
1471
1472
|
const response = {
|
|
@@ -1478,7 +1479,7 @@ var de_PutRecommendationPreferencesCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1478
1479
|
if (output.statusCode >= 300) {
|
|
1479
1480
|
return de_CommandError(output, context);
|
|
1480
1481
|
}
|
|
1481
|
-
const data = await
|
|
1482
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1482
1483
|
let contents = {};
|
|
1483
1484
|
contents = (0, import_smithy_client._json)(data);
|
|
1484
1485
|
const response = {
|
|
@@ -1491,7 +1492,7 @@ var de_UpdateEnrollmentStatusCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1491
1492
|
if (output.statusCode >= 300) {
|
|
1492
1493
|
return de_CommandError(output, context);
|
|
1493
1494
|
}
|
|
1494
|
-
const data = await
|
|
1495
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1495
1496
|
let contents = {};
|
|
1496
1497
|
contents = (0, import_smithy_client._json)(data);
|
|
1497
1498
|
const response = {
|
|
@@ -1503,9 +1504,9 @@ var de_UpdateEnrollmentStatusCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1503
1504
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1504
1505
|
const parsedOutput = {
|
|
1505
1506
|
...output,
|
|
1506
|
-
body: await
|
|
1507
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1507
1508
|
};
|
|
1508
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1509
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1509
1510
|
switch (errorCode) {
|
|
1510
1511
|
case "AccessDeniedException":
|
|
1511
1512
|
case "com.amazonaws.computeoptimizer#AccessDeniedException":
|
|
@@ -2270,7 +2271,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
2270
2271
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2271
2272
|
cfId: output.headers["x-amz-cf-id"]
|
|
2272
2273
|
}), "deserializeMetadata");
|
|
2273
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
2274
2274
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(ComputeOptimizerServiceException);
|
|
2275
2275
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
2276
2276
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -2297,46 +2297,6 @@ function sharedHeaders(operation) {
|
|
|
2297
2297
|
};
|
|
2298
2298
|
}
|
|
2299
2299
|
__name(sharedHeaders, "sharedHeaders");
|
|
2300
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2301
|
-
if (encoded.length) {
|
|
2302
|
-
return JSON.parse(encoded);
|
|
2303
|
-
}
|
|
2304
|
-
return {};
|
|
2305
|
-
}), "parseBody");
|
|
2306
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
2307
|
-
const value = await parseBody(errorBody, context);
|
|
2308
|
-
value.message = value.message ?? value.Message;
|
|
2309
|
-
return value;
|
|
2310
|
-
}, "parseErrorBody");
|
|
2311
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
2312
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
2313
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
2314
|
-
let cleanValue = rawValue;
|
|
2315
|
-
if (typeof cleanValue === "number") {
|
|
2316
|
-
cleanValue = cleanValue.toString();
|
|
2317
|
-
}
|
|
2318
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2319
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2320
|
-
}
|
|
2321
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2322
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2323
|
-
}
|
|
2324
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2325
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2326
|
-
}
|
|
2327
|
-
return cleanValue;
|
|
2328
|
-
}, "sanitizeErrorCode");
|
|
2329
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2330
|
-
if (headerKey !== void 0) {
|
|
2331
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2332
|
-
}
|
|
2333
|
-
if (data.code !== void 0) {
|
|
2334
|
-
return sanitizeErrorCode(data.code);
|
|
2335
|
-
}
|
|
2336
|
-
if (data["__type"] !== void 0) {
|
|
2337
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2338
|
-
}
|
|
2339
|
-
}, "loadRestJsonErrorCode");
|
|
2340
2300
|
|
|
2341
2301
|
// src/commands/DeleteRecommendationPreferencesCommand.ts
|
|
2342
2302
|
var _DeleteRecommendationPreferencesCommand = class _DeleteRecommendationPreferencesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
1
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { ComputeOptimizerServiceException as __BaseException } from "../models/ComputeOptimizerServiceException";
|
|
@@ -1297,43 +1298,3 @@ function sharedHeaders(operation) {
|
|
|
1297
1298
|
"x-amz-target": `ComputeOptimizerService.${operation}`,
|
|
1298
1299
|
};
|
|
1299
1300
|
}
|
|
1300
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1301
|
-
if (encoded.length) {
|
|
1302
|
-
return JSON.parse(encoded);
|
|
1303
|
-
}
|
|
1304
|
-
return {};
|
|
1305
|
-
});
|
|
1306
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1307
|
-
const value = await parseBody(errorBody, context);
|
|
1308
|
-
value.message = value.message ?? value.Message;
|
|
1309
|
-
return value;
|
|
1310
|
-
};
|
|
1311
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1312
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1313
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1314
|
-
let cleanValue = rawValue;
|
|
1315
|
-
if (typeof cleanValue === "number") {
|
|
1316
|
-
cleanValue = cleanValue.toString();
|
|
1317
|
-
}
|
|
1318
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1319
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1320
|
-
}
|
|
1321
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1322
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1323
|
-
}
|
|
1324
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1325
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1326
|
-
}
|
|
1327
|
-
return cleanValue;
|
|
1328
|
-
};
|
|
1329
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1330
|
-
if (headerKey !== undefined) {
|
|
1331
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1332
|
-
}
|
|
1333
|
-
if (data.code !== undefined) {
|
|
1334
|
-
return sanitizeErrorCode(data.code);
|
|
1335
|
-
}
|
|
1336
|
-
if (data["__type"] !== undefined) {
|
|
1337
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1338
|
-
}
|
|
1339
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-compute-optimizer",
|
|
3
3
|
"description": "AWS SDK for JavaScript Compute Optimizer Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-compute-optimizer",
|
|
@@ -20,40 +20,40 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.529.0",
|
|
24
|
+
"@aws-sdk/core": "3.529.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.523.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "3.525.0",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "3.525.0",
|
|
31
31
|
"@aws-sdk/types": "3.523.0",
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.525.0",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "3.523.0",
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
35
|
-
"@smithy/config-resolver": "^2.1.
|
|
36
|
-
"@smithy/core": "^1.3.
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "3.525.0",
|
|
35
|
+
"@smithy/config-resolver": "^2.1.4",
|
|
36
|
+
"@smithy/core": "^1.3.5",
|
|
37
37
|
"@smithy/fetch-http-handler": "^2.4.3",
|
|
38
38
|
"@smithy/hash-node": "^2.1.3",
|
|
39
39
|
"@smithy/invalid-dependency": "^2.1.3",
|
|
40
40
|
"@smithy/middleware-content-length": "^2.1.3",
|
|
41
|
-
"@smithy/middleware-endpoint": "^2.4.
|
|
42
|
-
"@smithy/middleware-retry": "^2.1.
|
|
41
|
+
"@smithy/middleware-endpoint": "^2.4.4",
|
|
42
|
+
"@smithy/middleware-retry": "^2.1.4",
|
|
43
43
|
"@smithy/middleware-serde": "^2.1.3",
|
|
44
44
|
"@smithy/middleware-stack": "^2.1.3",
|
|
45
|
-
"@smithy/node-config-provider": "^2.2.
|
|
45
|
+
"@smithy/node-config-provider": "^2.2.4",
|
|
46
46
|
"@smithy/node-http-handler": "^2.4.1",
|
|
47
47
|
"@smithy/protocol-http": "^3.2.1",
|
|
48
|
-
"@smithy/smithy-client": "^2.4.
|
|
48
|
+
"@smithy/smithy-client": "^2.4.2",
|
|
49
49
|
"@smithy/types": "^2.10.1",
|
|
50
50
|
"@smithy/url-parser": "^2.1.3",
|
|
51
51
|
"@smithy/util-base64": "^2.1.1",
|
|
52
52
|
"@smithy/util-body-length-browser": "^2.1.1",
|
|
53
53
|
"@smithy/util-body-length-node": "^2.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^2.1.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^2.2.
|
|
56
|
-
"@smithy/util-endpoints": "^1.1.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^2.1.4",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^2.2.3",
|
|
56
|
+
"@smithy/util-endpoints": "^1.1.4",
|
|
57
57
|
"@smithy/util-middleware": "^2.1.3",
|
|
58
58
|
"@smithy/util-retry": "^2.1.3",
|
|
59
59
|
"@smithy/util-utf8": "^2.1.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
package/dist-cjs/models/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|