@aws-sdk/client-migrationhubstrategy 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 +21 -61
- package/dist-es/protocols/Aws_restJson1.js +1 -40
- package/package.json +17 -17
- package/dist-cjs/MigrationHubStrategy.js +0 -1
- package/dist-cjs/MigrationHubStrategyClient.js +0 -1
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
- package/dist-cjs/commands/GetApplicationComponentDetailsCommand.js +0 -1
- package/dist-cjs/commands/GetApplicationComponentStrategiesCommand.js +0 -1
- package/dist-cjs/commands/GetAssessmentCommand.js +0 -1
- package/dist-cjs/commands/GetImportFileTaskCommand.js +0 -1
- package/dist-cjs/commands/GetLatestAssessmentIdCommand.js +0 -1
- package/dist-cjs/commands/GetPortfolioPreferencesCommand.js +0 -1
- package/dist-cjs/commands/GetPortfolioSummaryCommand.js +0 -1
- package/dist-cjs/commands/GetRecommendationReportDetailsCommand.js +0 -1
- package/dist-cjs/commands/GetServerDetailsCommand.js +0 -1
- package/dist-cjs/commands/GetServerStrategiesCommand.js +0 -1
- package/dist-cjs/commands/ListAnalyzableServersCommand.js +0 -1
- package/dist-cjs/commands/ListApplicationComponentsCommand.js +0 -1
- package/dist-cjs/commands/ListCollectorsCommand.js +0 -1
- package/dist-cjs/commands/ListImportFileTaskCommand.js +0 -1
- package/dist-cjs/commands/ListServersCommand.js +0 -1
- package/dist-cjs/commands/PutPortfolioPreferencesCommand.js +0 -1
- package/dist-cjs/commands/StartAssessmentCommand.js +0 -1
- package/dist-cjs/commands/StartImportFileTaskCommand.js +0 -1
- package/dist-cjs/commands/StartRecommendationReportGenerationCommand.js +0 -1
- package/dist-cjs/commands/StopAssessmentCommand.js +0 -1
- package/dist-cjs/commands/UpdateApplicationComponentConfigCommand.js +0 -1
- package/dist-cjs/commands/UpdateServerConfigCommand.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/MigrationHubStrategyServiceException.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/pagination/GetServerDetailsPaginator.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListAnalyzableServersPaginator.js +0 -1
- package/dist-cjs/pagination/ListApplicationComponentsPaginator.js +0 -1
- package/dist-cjs/pagination/ListCollectorsPaginator.js +0 -1
- package/dist-cjs/pagination/ListImportFileTaskPaginator.js +0 -1
- package/dist-cjs/pagination/ListServersPaginator.js +0 -1
- package/dist-cjs/pagination/index.js +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js +0 -1
- package/dist-cjs/runtimeExtensions.js +0 -1
package/dist-cjs/index.js
CHANGED
|
@@ -267,6 +267,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
267
267
|
var import_types = require("@smithy/types");
|
|
268
268
|
|
|
269
269
|
// src/protocols/Aws_restJson1.ts
|
|
270
|
+
var import_core2 = require("@aws-sdk/core");
|
|
270
271
|
|
|
271
272
|
|
|
272
273
|
|
|
@@ -1108,7 +1109,7 @@ var de_GetApplicationComponentDetailsCommand = /* @__PURE__ */ __name(async (out
|
|
|
1108
1109
|
const contents = (0, import_smithy_client.map)({
|
|
1109
1110
|
$metadata: deserializeMetadata(output)
|
|
1110
1111
|
});
|
|
1111
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1112
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1112
1113
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1113
1114
|
applicationComponentDetail: (_) => de_ApplicationComponentDetail(_, context),
|
|
1114
1115
|
associatedApplications: import_smithy_client._json,
|
|
@@ -1125,7 +1126,7 @@ var de_GetApplicationComponentStrategiesCommand = /* @__PURE__ */ __name(async (
|
|
|
1125
1126
|
const contents = (0, import_smithy_client.map)({
|
|
1126
1127
|
$metadata: deserializeMetadata(output)
|
|
1127
1128
|
});
|
|
1128
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1129
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1129
1130
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1130
1131
|
applicationComponentStrategies: import_smithy_client._json
|
|
1131
1132
|
});
|
|
@@ -1139,7 +1140,7 @@ var de_GetAssessmentCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1139
1140
|
const contents = (0, import_smithy_client.map)({
|
|
1140
1141
|
$metadata: deserializeMetadata(output)
|
|
1141
1142
|
});
|
|
1142
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1143
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1143
1144
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1144
1145
|
assessmentTargets: import_smithy_client._json,
|
|
1145
1146
|
dataCollectionDetails: (_) => de_DataCollectionDetails(_, context),
|
|
@@ -1155,7 +1156,7 @@ var de_GetImportFileTaskCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1155
1156
|
const contents = (0, import_smithy_client.map)({
|
|
1156
1157
|
$metadata: deserializeMetadata(output)
|
|
1157
1158
|
});
|
|
1158
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1159
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1159
1160
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1160
1161
|
completionTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1161
1162
|
id: import_smithy_client.expectString,
|
|
@@ -1179,7 +1180,7 @@ var de_GetLatestAssessmentIdCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1179
1180
|
const contents = (0, import_smithy_client.map)({
|
|
1180
1181
|
$metadata: deserializeMetadata(output)
|
|
1181
1182
|
});
|
|
1182
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1183
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1183
1184
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1184
1185
|
id: import_smithy_client.expectString
|
|
1185
1186
|
});
|
|
@@ -1193,7 +1194,7 @@ var de_GetPortfolioPreferencesCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1193
1194
|
const contents = (0, import_smithy_client.map)({
|
|
1194
1195
|
$metadata: deserializeMetadata(output)
|
|
1195
1196
|
});
|
|
1196
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1197
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1197
1198
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1198
1199
|
applicationMode: import_smithy_client.expectString,
|
|
1199
1200
|
applicationPreferences: import_smithy_client._json,
|
|
@@ -1210,7 +1211,7 @@ var de_GetPortfolioSummaryCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1210
1211
|
const contents = (0, import_smithy_client.map)({
|
|
1211
1212
|
$metadata: deserializeMetadata(output)
|
|
1212
1213
|
});
|
|
1213
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1214
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1214
1215
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1215
1216
|
assessmentSummary: (_) => de_AssessmentSummary(_, context)
|
|
1216
1217
|
});
|
|
@@ -1224,7 +1225,7 @@ var de_GetRecommendationReportDetailsCommand = /* @__PURE__ */ __name(async (out
|
|
|
1224
1225
|
const contents = (0, import_smithy_client.map)({
|
|
1225
1226
|
$metadata: deserializeMetadata(output)
|
|
1226
1227
|
});
|
|
1227
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1228
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1228
1229
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1229
1230
|
id: import_smithy_client.expectString,
|
|
1230
1231
|
recommendationReportDetails: (_) => de_RecommendationReportDetails(_, context)
|
|
@@ -1239,7 +1240,7 @@ var de_GetServerDetailsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1239
1240
|
const contents = (0, import_smithy_client.map)({
|
|
1240
1241
|
$metadata: deserializeMetadata(output)
|
|
1241
1242
|
});
|
|
1242
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1243
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1243
1244
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1244
1245
|
associatedApplications: import_smithy_client._json,
|
|
1245
1246
|
nextToken: import_smithy_client.expectString,
|
|
@@ -1255,7 +1256,7 @@ var de_GetServerStrategiesCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1255
1256
|
const contents = (0, import_smithy_client.map)({
|
|
1256
1257
|
$metadata: deserializeMetadata(output)
|
|
1257
1258
|
});
|
|
1258
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1259
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1259
1260
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1260
1261
|
serverStrategies: import_smithy_client._json
|
|
1261
1262
|
});
|
|
@@ -1269,7 +1270,7 @@ var de_ListAnalyzableServersCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1269
1270
|
const contents = (0, import_smithy_client.map)({
|
|
1270
1271
|
$metadata: deserializeMetadata(output)
|
|
1271
1272
|
});
|
|
1272
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1273
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1273
1274
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1274
1275
|
analyzableServers: import_smithy_client._json,
|
|
1275
1276
|
nextToken: import_smithy_client.expectString
|
|
@@ -1284,7 +1285,7 @@ var de_ListApplicationComponentsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1284
1285
|
const contents = (0, import_smithy_client.map)({
|
|
1285
1286
|
$metadata: deserializeMetadata(output)
|
|
1286
1287
|
});
|
|
1287
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1288
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1288
1289
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1289
1290
|
applicationComponentInfos: (_) => de_ApplicationComponentDetails(_, context),
|
|
1290
1291
|
nextToken: import_smithy_client.expectString
|
|
@@ -1299,7 +1300,7 @@ var de_ListCollectorsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1299
1300
|
const contents = (0, import_smithy_client.map)({
|
|
1300
1301
|
$metadata: deserializeMetadata(output)
|
|
1301
1302
|
});
|
|
1302
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1303
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1303
1304
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1304
1305
|
Collectors: import_smithy_client._json,
|
|
1305
1306
|
nextToken: import_smithy_client.expectString
|
|
@@ -1314,7 +1315,7 @@ var de_ListImportFileTaskCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1314
1315
|
const contents = (0, import_smithy_client.map)({
|
|
1315
1316
|
$metadata: deserializeMetadata(output)
|
|
1316
1317
|
});
|
|
1317
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1318
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1318
1319
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1319
1320
|
nextToken: import_smithy_client.expectString,
|
|
1320
1321
|
taskInfos: (_) => de_ListImportFileTaskInformation(_, context)
|
|
@@ -1329,7 +1330,7 @@ var de_ListServersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1329
1330
|
const contents = (0, import_smithy_client.map)({
|
|
1330
1331
|
$metadata: deserializeMetadata(output)
|
|
1331
1332
|
});
|
|
1332
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1333
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1333
1334
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1334
1335
|
nextToken: import_smithy_client.expectString,
|
|
1335
1336
|
serverInfos: (_) => de_ServerDetails(_, context)
|
|
@@ -1354,7 +1355,7 @@ var de_StartAssessmentCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1354
1355
|
const contents = (0, import_smithy_client.map)({
|
|
1355
1356
|
$metadata: deserializeMetadata(output)
|
|
1356
1357
|
});
|
|
1357
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1358
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1358
1359
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1359
1360
|
assessmentId: import_smithy_client.expectString
|
|
1360
1361
|
});
|
|
@@ -1368,7 +1369,7 @@ var de_StartImportFileTaskCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1368
1369
|
const contents = (0, import_smithy_client.map)({
|
|
1369
1370
|
$metadata: deserializeMetadata(output)
|
|
1370
1371
|
});
|
|
1371
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1372
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1372
1373
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1373
1374
|
id: import_smithy_client.expectString
|
|
1374
1375
|
});
|
|
@@ -1382,7 +1383,7 @@ var de_StartRecommendationReportGenerationCommand = /* @__PURE__ */ __name(async
|
|
|
1382
1383
|
const contents = (0, import_smithy_client.map)({
|
|
1383
1384
|
$metadata: deserializeMetadata(output)
|
|
1384
1385
|
});
|
|
1385
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1386
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1386
1387
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1387
1388
|
id: import_smithy_client.expectString
|
|
1388
1389
|
});
|
|
@@ -1422,9 +1423,9 @@ var de_UpdateServerConfigCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1422
1423
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1423
1424
|
const parsedOutput = {
|
|
1424
1425
|
...output,
|
|
1425
|
-
body: await
|
|
1426
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1426
1427
|
};
|
|
1427
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1428
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1428
1429
|
switch (errorCode) {
|
|
1429
1430
|
case "InternalServerException":
|
|
1430
1431
|
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
@@ -1701,49 +1702,8 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
1701
1702
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1702
1703
|
cfId: output.headers["x-amz-cf-id"]
|
|
1703
1704
|
}), "deserializeMetadata");
|
|
1704
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1705
1705
|
var _mR = "maxResults";
|
|
1706
1706
|
var _nT = "nextToken";
|
|
1707
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1708
|
-
if (encoded.length) {
|
|
1709
|
-
return JSON.parse(encoded);
|
|
1710
|
-
}
|
|
1711
|
-
return {};
|
|
1712
|
-
}), "parseBody");
|
|
1713
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1714
|
-
const value = await parseBody(errorBody, context);
|
|
1715
|
-
value.message = value.message ?? value.Message;
|
|
1716
|
-
return value;
|
|
1717
|
-
}, "parseErrorBody");
|
|
1718
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1719
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1720
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1721
|
-
let cleanValue = rawValue;
|
|
1722
|
-
if (typeof cleanValue === "number") {
|
|
1723
|
-
cleanValue = cleanValue.toString();
|
|
1724
|
-
}
|
|
1725
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1726
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1727
|
-
}
|
|
1728
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1729
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1730
|
-
}
|
|
1731
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1732
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1733
|
-
}
|
|
1734
|
-
return cleanValue;
|
|
1735
|
-
}, "sanitizeErrorCode");
|
|
1736
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1737
|
-
if (headerKey !== void 0) {
|
|
1738
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1739
|
-
}
|
|
1740
|
-
if (data.code !== void 0) {
|
|
1741
|
-
return sanitizeErrorCode(data.code);
|
|
1742
|
-
}
|
|
1743
|
-
if (data["__type"] !== void 0) {
|
|
1744
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1745
|
-
}
|
|
1746
|
-
}, "loadRestJsonErrorCode");
|
|
1747
1707
|
|
|
1748
1708
|
// src/commands/GetApplicationComponentDetailsCommand.ts
|
|
1749
1709
|
var _GetApplicationComponentDetailsCommand = class _GetApplicationComponentDetailsCommand 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 { requestBuilder as rb } from "@smithy/core";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { MigrationHubStrategyServiceException as __BaseException } from "../models/MigrationHubStrategyServiceException";
|
|
@@ -901,43 +902,3 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
901
902
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
902
903
|
const _mR = "maxResults";
|
|
903
904
|
const _nT = "nextToken";
|
|
904
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
905
|
-
if (encoded.length) {
|
|
906
|
-
return JSON.parse(encoded);
|
|
907
|
-
}
|
|
908
|
-
return {};
|
|
909
|
-
});
|
|
910
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
911
|
-
const value = await parseBody(errorBody, context);
|
|
912
|
-
value.message = value.message ?? value.Message;
|
|
913
|
-
return value;
|
|
914
|
-
};
|
|
915
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
916
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
917
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
918
|
-
let cleanValue = rawValue;
|
|
919
|
-
if (typeof cleanValue === "number") {
|
|
920
|
-
cleanValue = cleanValue.toString();
|
|
921
|
-
}
|
|
922
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
923
|
-
cleanValue = cleanValue.split(",")[0];
|
|
924
|
-
}
|
|
925
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
926
|
-
cleanValue = cleanValue.split(":")[0];
|
|
927
|
-
}
|
|
928
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
929
|
-
cleanValue = cleanValue.split("#")[1];
|
|
930
|
-
}
|
|
931
|
-
return cleanValue;
|
|
932
|
-
};
|
|
933
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
934
|
-
if (headerKey !== undefined) {
|
|
935
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
936
|
-
}
|
|
937
|
-
if (data.code !== undefined) {
|
|
938
|
-
return sanitizeErrorCode(data.code);
|
|
939
|
-
}
|
|
940
|
-
if (data["__type"] !== undefined) {
|
|
941
|
-
return sanitizeErrorCode(data["__type"]);
|
|
942
|
-
}
|
|
943
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-migrationhubstrategy",
|
|
3
3
|
"description": "AWS SDK for JavaScript Migrationhubstrategy 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-migrationhubstrategy",
|
|
@@ -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");
|
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");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|