@aws-sdk/client-migration-hub-refactor-spaces 3.117.0 → 3.121.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/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +120 -97
- package/dist-es/protocols/Aws_restJson1.js +120 -97
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** fallback to status code for unmodeled errors ([#3752](https://github.com/aws/aws-sdk-js-v3/issues/3752)) ([49bcc4f](https://github.com/aws/aws-sdk-js-v3/commit/49bcc4f153e890e798a8e82fd5fc397b2dcc449f))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [3.118.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.118.0...v3.118.1) (2022-06-27)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-migration-hub-refactor-spaces
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.118.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.117.0...v3.118.0) (2022-06-24)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-migration-hub-refactor-spaces
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.117.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.116.0...v3.117.0) (2022-06-23)
|
|
7
34
|
|
|
8
35
|
|
|
@@ -951,8 +951,7 @@ const deserializeAws_restJson1CreateApplicationCommandError = async (output, con
|
|
|
951
951
|
body: await parseBody(output.body, context),
|
|
952
952
|
};
|
|
953
953
|
let response;
|
|
954
|
-
|
|
955
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
954
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
956
955
|
switch (errorCode) {
|
|
957
956
|
case "AccessDeniedException":
|
|
958
957
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
@@ -977,10 +976,12 @@ const deserializeAws_restJson1CreateApplicationCommandError = async (output, con
|
|
|
977
976
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
978
977
|
default:
|
|
979
978
|
const parsedBody = parsedOutput.body;
|
|
979
|
+
const $metadata = deserializeMetadata(output);
|
|
980
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
980
981
|
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
981
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
982
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
982
983
|
$fault: "client",
|
|
983
|
-
$metadata
|
|
984
|
+
$metadata,
|
|
984
985
|
});
|
|
985
986
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
986
987
|
}
|
|
@@ -1042,8 +1043,7 @@ const deserializeAws_restJson1CreateEnvironmentCommandError = async (output, con
|
|
|
1042
1043
|
body: await parseBody(output.body, context),
|
|
1043
1044
|
};
|
|
1044
1045
|
let response;
|
|
1045
|
-
|
|
1046
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1046
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1047
1047
|
switch (errorCode) {
|
|
1048
1048
|
case "AccessDeniedException":
|
|
1049
1049
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
@@ -1068,10 +1068,12 @@ const deserializeAws_restJson1CreateEnvironmentCommandError = async (output, con
|
|
|
1068
1068
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1069
1069
|
default:
|
|
1070
1070
|
const parsedBody = parsedOutput.body;
|
|
1071
|
+
const $metadata = deserializeMetadata(output);
|
|
1072
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1071
1073
|
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
1072
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1074
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1073
1075
|
$fault: "client",
|
|
1074
|
-
$metadata
|
|
1076
|
+
$metadata,
|
|
1075
1077
|
});
|
|
1076
1078
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1077
1079
|
}
|
|
@@ -1141,8 +1143,7 @@ const deserializeAws_restJson1CreateRouteCommandError = async (output, context)
|
|
|
1141
1143
|
body: await parseBody(output.body, context),
|
|
1142
1144
|
};
|
|
1143
1145
|
let response;
|
|
1144
|
-
|
|
1145
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1146
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1146
1147
|
switch (errorCode) {
|
|
1147
1148
|
case "AccessDeniedException":
|
|
1148
1149
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
@@ -1167,10 +1168,12 @@ const deserializeAws_restJson1CreateRouteCommandError = async (output, context)
|
|
|
1167
1168
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1168
1169
|
default:
|
|
1169
1170
|
const parsedBody = parsedOutput.body;
|
|
1171
|
+
const $metadata = deserializeMetadata(output);
|
|
1172
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1170
1173
|
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
1171
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1174
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1172
1175
|
$fault: "client",
|
|
1173
|
-
$metadata
|
|
1176
|
+
$metadata,
|
|
1174
1177
|
});
|
|
1175
1178
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1176
1179
|
}
|
|
@@ -1256,8 +1259,7 @@ const deserializeAws_restJson1CreateServiceCommandError = async (output, context
|
|
|
1256
1259
|
body: await parseBody(output.body, context),
|
|
1257
1260
|
};
|
|
1258
1261
|
let response;
|
|
1259
|
-
|
|
1260
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1262
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1261
1263
|
switch (errorCode) {
|
|
1262
1264
|
case "AccessDeniedException":
|
|
1263
1265
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
@@ -1282,10 +1284,12 @@ const deserializeAws_restJson1CreateServiceCommandError = async (output, context
|
|
|
1282
1284
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1283
1285
|
default:
|
|
1284
1286
|
const parsedBody = parsedOutput.body;
|
|
1287
|
+
const $metadata = deserializeMetadata(output);
|
|
1288
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1285
1289
|
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
1286
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1290
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1287
1291
|
$fault: "client",
|
|
1288
|
-
$metadata
|
|
1292
|
+
$metadata,
|
|
1289
1293
|
});
|
|
1290
1294
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1291
1295
|
}
|
|
@@ -1331,8 +1335,7 @@ const deserializeAws_restJson1DeleteApplicationCommandError = async (output, con
|
|
|
1331
1335
|
body: await parseBody(output.body, context),
|
|
1332
1336
|
};
|
|
1333
1337
|
let response;
|
|
1334
|
-
|
|
1335
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1338
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1336
1339
|
switch (errorCode) {
|
|
1337
1340
|
case "AccessDeniedException":
|
|
1338
1341
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
@@ -1354,10 +1357,12 @@ const deserializeAws_restJson1DeleteApplicationCommandError = async (output, con
|
|
|
1354
1357
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1355
1358
|
default:
|
|
1356
1359
|
const parsedBody = parsedOutput.body;
|
|
1360
|
+
const $metadata = deserializeMetadata(output);
|
|
1361
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1357
1362
|
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
1358
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1363
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1359
1364
|
$fault: "client",
|
|
1360
|
-
$metadata
|
|
1365
|
+
$metadata,
|
|
1361
1366
|
});
|
|
1362
1367
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1363
1368
|
}
|
|
@@ -1399,8 +1404,7 @@ const deserializeAws_restJson1DeleteEnvironmentCommandError = async (output, con
|
|
|
1399
1404
|
body: await parseBody(output.body, context),
|
|
1400
1405
|
};
|
|
1401
1406
|
let response;
|
|
1402
|
-
|
|
1403
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1407
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1404
1408
|
switch (errorCode) {
|
|
1405
1409
|
case "AccessDeniedException":
|
|
1406
1410
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
@@ -1422,10 +1426,12 @@ const deserializeAws_restJson1DeleteEnvironmentCommandError = async (output, con
|
|
|
1422
1426
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1423
1427
|
default:
|
|
1424
1428
|
const parsedBody = parsedOutput.body;
|
|
1429
|
+
const $metadata = deserializeMetadata(output);
|
|
1430
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1425
1431
|
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
1426
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1432
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1427
1433
|
$fault: "client",
|
|
1428
|
-
$metadata
|
|
1434
|
+
$metadata,
|
|
1429
1435
|
});
|
|
1430
1436
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1431
1437
|
}
|
|
@@ -1447,8 +1453,7 @@ const deserializeAws_restJson1DeleteResourcePolicyCommandError = async (output,
|
|
|
1447
1453
|
body: await parseBody(output.body, context),
|
|
1448
1454
|
};
|
|
1449
1455
|
let response;
|
|
1450
|
-
|
|
1451
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1456
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1452
1457
|
switch (errorCode) {
|
|
1453
1458
|
case "AccessDeniedException":
|
|
1454
1459
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
@@ -1467,10 +1472,12 @@ const deserializeAws_restJson1DeleteResourcePolicyCommandError = async (output,
|
|
|
1467
1472
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1468
1473
|
default:
|
|
1469
1474
|
const parsedBody = parsedOutput.body;
|
|
1475
|
+
const $metadata = deserializeMetadata(output);
|
|
1476
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1470
1477
|
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
1471
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1478
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1472
1479
|
$fault: "client",
|
|
1473
|
-
$metadata
|
|
1480
|
+
$metadata,
|
|
1474
1481
|
});
|
|
1475
1482
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1476
1483
|
}
|
|
@@ -1516,8 +1523,7 @@ const deserializeAws_restJson1DeleteRouteCommandError = async (output, context)
|
|
|
1516
1523
|
body: await parseBody(output.body, context),
|
|
1517
1524
|
};
|
|
1518
1525
|
let response;
|
|
1519
|
-
|
|
1520
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1526
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1521
1527
|
switch (errorCode) {
|
|
1522
1528
|
case "AccessDeniedException":
|
|
1523
1529
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
@@ -1539,10 +1545,12 @@ const deserializeAws_restJson1DeleteRouteCommandError = async (output, context)
|
|
|
1539
1545
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1540
1546
|
default:
|
|
1541
1547
|
const parsedBody = parsedOutput.body;
|
|
1548
|
+
const $metadata = deserializeMetadata(output);
|
|
1549
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1542
1550
|
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
1543
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1551
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1544
1552
|
$fault: "client",
|
|
1545
|
-
$metadata
|
|
1553
|
+
$metadata,
|
|
1546
1554
|
});
|
|
1547
1555
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1548
1556
|
}
|
|
@@ -1592,8 +1600,7 @@ const deserializeAws_restJson1DeleteServiceCommandError = async (output, context
|
|
|
1592
1600
|
body: await parseBody(output.body, context),
|
|
1593
1601
|
};
|
|
1594
1602
|
let response;
|
|
1595
|
-
|
|
1596
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1603
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1597
1604
|
switch (errorCode) {
|
|
1598
1605
|
case "AccessDeniedException":
|
|
1599
1606
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
@@ -1615,10 +1622,12 @@ const deserializeAws_restJson1DeleteServiceCommandError = async (output, context
|
|
|
1615
1622
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1616
1623
|
default:
|
|
1617
1624
|
const parsedBody = parsedOutput.body;
|
|
1625
|
+
const $metadata = deserializeMetadata(output);
|
|
1626
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1618
1627
|
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
1619
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1628
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1620
1629
|
$fault: "client",
|
|
1621
|
-
$metadata
|
|
1630
|
+
$metadata,
|
|
1622
1631
|
});
|
|
1623
1632
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1624
1633
|
}
|
|
@@ -1696,8 +1705,7 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
|
|
|
1696
1705
|
body: await parseBody(output.body, context),
|
|
1697
1706
|
};
|
|
1698
1707
|
let response;
|
|
1699
|
-
|
|
1700
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1708
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1701
1709
|
switch (errorCode) {
|
|
1702
1710
|
case "AccessDeniedException":
|
|
1703
1711
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
@@ -1716,10 +1724,12 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
|
|
|
1716
1724
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1717
1725
|
default:
|
|
1718
1726
|
const parsedBody = parsedOutput.body;
|
|
1727
|
+
const $metadata = deserializeMetadata(output);
|
|
1728
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1719
1729
|
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
1720
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1730
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1721
1731
|
$fault: "client",
|
|
1722
|
-
$metadata
|
|
1732
|
+
$metadata,
|
|
1723
1733
|
});
|
|
1724
1734
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1725
1735
|
}
|
|
@@ -1789,8 +1799,7 @@ const deserializeAws_restJson1GetEnvironmentCommandError = async (output, contex
|
|
|
1789
1799
|
body: await parseBody(output.body, context),
|
|
1790
1800
|
};
|
|
1791
1801
|
let response;
|
|
1792
|
-
|
|
1793
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1802
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1794
1803
|
switch (errorCode) {
|
|
1795
1804
|
case "AccessDeniedException":
|
|
1796
1805
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
@@ -1809,10 +1818,12 @@ const deserializeAws_restJson1GetEnvironmentCommandError = async (output, contex
|
|
|
1809
1818
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1810
1819
|
default:
|
|
1811
1820
|
const parsedBody = parsedOutput.body;
|
|
1821
|
+
const $metadata = deserializeMetadata(output);
|
|
1822
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1812
1823
|
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
1813
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1824
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1814
1825
|
$fault: "client",
|
|
1815
|
-
$metadata
|
|
1826
|
+
$metadata,
|
|
1816
1827
|
});
|
|
1817
1828
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1818
1829
|
}
|
|
@@ -1838,8 +1849,7 @@ const deserializeAws_restJson1GetResourcePolicyCommandError = async (output, con
|
|
|
1838
1849
|
body: await parseBody(output.body, context),
|
|
1839
1850
|
};
|
|
1840
1851
|
let response;
|
|
1841
|
-
|
|
1842
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1852
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1843
1853
|
switch (errorCode) {
|
|
1844
1854
|
case "AccessDeniedException":
|
|
1845
1855
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
@@ -1858,10 +1868,12 @@ const deserializeAws_restJson1GetResourcePolicyCommandError = async (output, con
|
|
|
1858
1868
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1859
1869
|
default:
|
|
1860
1870
|
const parsedBody = parsedOutput.body;
|
|
1871
|
+
const $metadata = deserializeMetadata(output);
|
|
1872
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1861
1873
|
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
1862
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1874
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1863
1875
|
$fault: "client",
|
|
1864
|
-
$metadata
|
|
1876
|
+
$metadata,
|
|
1865
1877
|
});
|
|
1866
1878
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1867
1879
|
}
|
|
@@ -1951,8 +1963,7 @@ const deserializeAws_restJson1GetRouteCommandError = async (output, context) =>
|
|
|
1951
1963
|
body: await parseBody(output.body, context),
|
|
1952
1964
|
};
|
|
1953
1965
|
let response;
|
|
1954
|
-
|
|
1955
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1966
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1956
1967
|
switch (errorCode) {
|
|
1957
1968
|
case "AccessDeniedException":
|
|
1958
1969
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
@@ -1971,10 +1982,12 @@ const deserializeAws_restJson1GetRouteCommandError = async (output, context) =>
|
|
|
1971
1982
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1972
1983
|
default:
|
|
1973
1984
|
const parsedBody = parsedOutput.body;
|
|
1985
|
+
const $metadata = deserializeMetadata(output);
|
|
1986
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1974
1987
|
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
1975
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1988
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1976
1989
|
$fault: "client",
|
|
1977
|
-
$metadata
|
|
1990
|
+
$metadata,
|
|
1978
1991
|
});
|
|
1979
1992
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1980
1993
|
}
|
|
@@ -2064,8 +2077,7 @@ const deserializeAws_restJson1GetServiceCommandError = async (output, context) =
|
|
|
2064
2077
|
body: await parseBody(output.body, context),
|
|
2065
2078
|
};
|
|
2066
2079
|
let response;
|
|
2067
|
-
|
|
2068
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2080
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2069
2081
|
switch (errorCode) {
|
|
2070
2082
|
case "AccessDeniedException":
|
|
2071
2083
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
@@ -2084,10 +2096,12 @@ const deserializeAws_restJson1GetServiceCommandError = async (output, context) =
|
|
|
2084
2096
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2085
2097
|
default:
|
|
2086
2098
|
const parsedBody = parsedOutput.body;
|
|
2099
|
+
const $metadata = deserializeMetadata(output);
|
|
2100
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2087
2101
|
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
2088
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2102
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2089
2103
|
$fault: "client",
|
|
2090
|
-
$metadata
|
|
2104
|
+
$metadata,
|
|
2091
2105
|
});
|
|
2092
2106
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2093
2107
|
}
|
|
@@ -2117,8 +2131,7 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
|
|
|
2117
2131
|
body: await parseBody(output.body, context),
|
|
2118
2132
|
};
|
|
2119
2133
|
let response;
|
|
2120
|
-
|
|
2121
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2134
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2122
2135
|
switch (errorCode) {
|
|
2123
2136
|
case "AccessDeniedException":
|
|
2124
2137
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
@@ -2143,10 +2156,12 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
|
|
|
2143
2156
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2144
2157
|
default:
|
|
2145
2158
|
const parsedBody = parsedOutput.body;
|
|
2159
|
+
const $metadata = deserializeMetadata(output);
|
|
2160
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2146
2161
|
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
2147
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2162
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2148
2163
|
$fault: "client",
|
|
2149
|
-
$metadata
|
|
2164
|
+
$metadata,
|
|
2150
2165
|
});
|
|
2151
2166
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2152
2167
|
}
|
|
@@ -2176,8 +2191,7 @@ const deserializeAws_restJson1ListEnvironmentsCommandError = async (output, cont
|
|
|
2176
2191
|
body: await parseBody(output.body, context),
|
|
2177
2192
|
};
|
|
2178
2193
|
let response;
|
|
2179
|
-
|
|
2180
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2194
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2181
2195
|
switch (errorCode) {
|
|
2182
2196
|
case "AccessDeniedException":
|
|
2183
2197
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
@@ -2196,10 +2210,12 @@ const deserializeAws_restJson1ListEnvironmentsCommandError = async (output, cont
|
|
|
2196
2210
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2197
2211
|
default:
|
|
2198
2212
|
const parsedBody = parsedOutput.body;
|
|
2213
|
+
const $metadata = deserializeMetadata(output);
|
|
2214
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2199
2215
|
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
2200
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2216
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2201
2217
|
$fault: "client",
|
|
2202
|
-
$metadata
|
|
2218
|
+
$metadata,
|
|
2203
2219
|
});
|
|
2204
2220
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2205
2221
|
}
|
|
@@ -2229,8 +2245,7 @@ const deserializeAws_restJson1ListEnvironmentVpcsCommandError = async (output, c
|
|
|
2229
2245
|
body: await parseBody(output.body, context),
|
|
2230
2246
|
};
|
|
2231
2247
|
let response;
|
|
2232
|
-
|
|
2233
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2248
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2234
2249
|
switch (errorCode) {
|
|
2235
2250
|
case "AccessDeniedException":
|
|
2236
2251
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
@@ -2249,10 +2264,12 @@ const deserializeAws_restJson1ListEnvironmentVpcsCommandError = async (output, c
|
|
|
2249
2264
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2250
2265
|
default:
|
|
2251
2266
|
const parsedBody = parsedOutput.body;
|
|
2267
|
+
const $metadata = deserializeMetadata(output);
|
|
2268
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2252
2269
|
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
2253
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2270
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2254
2271
|
$fault: "client",
|
|
2255
|
-
$metadata
|
|
2272
|
+
$metadata,
|
|
2256
2273
|
});
|
|
2257
2274
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2258
2275
|
}
|
|
@@ -2282,8 +2299,7 @@ const deserializeAws_restJson1ListRoutesCommandError = async (output, context) =
|
|
|
2282
2299
|
body: await parseBody(output.body, context),
|
|
2283
2300
|
};
|
|
2284
2301
|
let response;
|
|
2285
|
-
|
|
2286
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2302
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2287
2303
|
switch (errorCode) {
|
|
2288
2304
|
case "AccessDeniedException":
|
|
2289
2305
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
@@ -2308,10 +2324,12 @@ const deserializeAws_restJson1ListRoutesCommandError = async (output, context) =
|
|
|
2308
2324
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2309
2325
|
default:
|
|
2310
2326
|
const parsedBody = parsedOutput.body;
|
|
2327
|
+
const $metadata = deserializeMetadata(output);
|
|
2328
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2311
2329
|
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
2312
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2330
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2313
2331
|
$fault: "client",
|
|
2314
|
-
$metadata
|
|
2332
|
+
$metadata,
|
|
2315
2333
|
});
|
|
2316
2334
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2317
2335
|
}
|
|
@@ -2341,8 +2359,7 @@ const deserializeAws_restJson1ListServicesCommandError = async (output, context)
|
|
|
2341
2359
|
body: await parseBody(output.body, context),
|
|
2342
2360
|
};
|
|
2343
2361
|
let response;
|
|
2344
|
-
|
|
2345
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2362
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2346
2363
|
switch (errorCode) {
|
|
2347
2364
|
case "AccessDeniedException":
|
|
2348
2365
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
@@ -2367,10 +2384,12 @@ const deserializeAws_restJson1ListServicesCommandError = async (output, context)
|
|
|
2367
2384
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2368
2385
|
default:
|
|
2369
2386
|
const parsedBody = parsedOutput.body;
|
|
2387
|
+
const $metadata = deserializeMetadata(output);
|
|
2388
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2370
2389
|
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
2371
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2390
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2372
2391
|
$fault: "client",
|
|
2373
|
-
$metadata
|
|
2392
|
+
$metadata,
|
|
2374
2393
|
});
|
|
2375
2394
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2376
2395
|
}
|
|
@@ -2396,8 +2415,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2396
2415
|
body: await parseBody(output.body, context),
|
|
2397
2416
|
};
|
|
2398
2417
|
let response;
|
|
2399
|
-
|
|
2400
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2418
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2401
2419
|
switch (errorCode) {
|
|
2402
2420
|
case "InternalServerException":
|
|
2403
2421
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
@@ -2410,10 +2428,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2410
2428
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2411
2429
|
default:
|
|
2412
2430
|
const parsedBody = parsedOutput.body;
|
|
2431
|
+
const $metadata = deserializeMetadata(output);
|
|
2432
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2413
2433
|
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
2414
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2434
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2415
2435
|
$fault: "client",
|
|
2416
|
-
$metadata
|
|
2436
|
+
$metadata,
|
|
2417
2437
|
});
|
|
2418
2438
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2419
2439
|
}
|
|
@@ -2435,8 +2455,7 @@ const deserializeAws_restJson1PutResourcePolicyCommandError = async (output, con
|
|
|
2435
2455
|
body: await parseBody(output.body, context),
|
|
2436
2456
|
};
|
|
2437
2457
|
let response;
|
|
2438
|
-
|
|
2439
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2458
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2440
2459
|
switch (errorCode) {
|
|
2441
2460
|
case "AccessDeniedException":
|
|
2442
2461
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
@@ -2458,10 +2477,12 @@ const deserializeAws_restJson1PutResourcePolicyCommandError = async (output, con
|
|
|
2458
2477
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2459
2478
|
default:
|
|
2460
2479
|
const parsedBody = parsedOutput.body;
|
|
2480
|
+
const $metadata = deserializeMetadata(output);
|
|
2481
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2461
2482
|
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
2462
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2483
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2463
2484
|
$fault: "client",
|
|
2464
|
-
$metadata
|
|
2485
|
+
$metadata,
|
|
2465
2486
|
});
|
|
2466
2487
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2467
2488
|
}
|
|
@@ -2483,8 +2504,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2483
2504
|
body: await parseBody(output.body, context),
|
|
2484
2505
|
};
|
|
2485
2506
|
let response;
|
|
2486
|
-
|
|
2487
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2507
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2488
2508
|
switch (errorCode) {
|
|
2489
2509
|
case "InternalServerException":
|
|
2490
2510
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
@@ -2497,10 +2517,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2497
2517
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2498
2518
|
default:
|
|
2499
2519
|
const parsedBody = parsedOutput.body;
|
|
2520
|
+
const $metadata = deserializeMetadata(output);
|
|
2521
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2500
2522
|
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
2501
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2523
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2502
2524
|
$fault: "client",
|
|
2503
|
-
$metadata
|
|
2525
|
+
$metadata,
|
|
2504
2526
|
});
|
|
2505
2527
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2506
2528
|
}
|
|
@@ -2522,8 +2544,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2522
2544
|
body: await parseBody(output.body, context),
|
|
2523
2545
|
};
|
|
2524
2546
|
let response;
|
|
2525
|
-
|
|
2526
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2547
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2527
2548
|
switch (errorCode) {
|
|
2528
2549
|
case "InternalServerException":
|
|
2529
2550
|
case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
|
|
@@ -2536,10 +2557,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2536
2557
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2537
2558
|
default:
|
|
2538
2559
|
const parsedBody = parsedOutput.body;
|
|
2560
|
+
const $metadata = deserializeMetadata(output);
|
|
2561
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2539
2562
|
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
2540
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2563
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2541
2564
|
$fault: "client",
|
|
2542
|
-
$metadata
|
|
2565
|
+
$metadata,
|
|
2543
2566
|
});
|
|
2544
2567
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2545
2568
|
}
|
|
@@ -2585,8 +2608,7 @@ const deserializeAws_restJson1UpdateRouteCommandError = async (output, context)
|
|
|
2585
2608
|
body: await parseBody(output.body, context),
|
|
2586
2609
|
};
|
|
2587
2610
|
let response;
|
|
2588
|
-
|
|
2589
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2611
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2590
2612
|
switch (errorCode) {
|
|
2591
2613
|
case "AccessDeniedException":
|
|
2592
2614
|
case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
|
|
@@ -2605,10 +2627,12 @@ const deserializeAws_restJson1UpdateRouteCommandError = async (output, context)
|
|
|
2605
2627
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2606
2628
|
default:
|
|
2607
2629
|
const parsedBody = parsedOutput.body;
|
|
2630
|
+
const $metadata = deserializeMetadata(output);
|
|
2631
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2608
2632
|
response = new MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException({
|
|
2609
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2633
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2610
2634
|
$fault: "client",
|
|
2611
|
-
$metadata
|
|
2635
|
+
$metadata,
|
|
2612
2636
|
});
|
|
2613
2637
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2614
2638
|
}
|
|
@@ -3174,5 +3198,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
3174
3198
|
if (data["__type"] !== undefined) {
|
|
3175
3199
|
return sanitizeErrorCode(data["__type"]);
|
|
3176
3200
|
}
|
|
3177
|
-
return "";
|
|
3178
3201
|
};
|