@aws-sdk/client-migration-hub-refactor-spaces 3.180.0 → 3.183.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 +20 -0
- package/dist-cjs/protocols/Aws_restJson1.js +30 -24
- package/dist-es/MigrationHubRefactorSpaces.js +98 -105
- package/dist-es/MigrationHubRefactorSpacesClient.js +22 -28
- package/dist-es/commands/CreateApplicationCommand.js +21 -28
- package/dist-es/commands/CreateEnvironmentCommand.js +21 -28
- package/dist-es/commands/CreateRouteCommand.js +21 -28
- package/dist-es/commands/CreateServiceCommand.js +21 -28
- package/dist-es/commands/DeleteApplicationCommand.js +21 -28
- package/dist-es/commands/DeleteEnvironmentCommand.js +21 -28
- package/dist-es/commands/DeleteResourcePolicyCommand.js +21 -28
- package/dist-es/commands/DeleteRouteCommand.js +21 -28
- package/dist-es/commands/DeleteServiceCommand.js +21 -28
- package/dist-es/commands/GetApplicationCommand.js +21 -28
- package/dist-es/commands/GetEnvironmentCommand.js +21 -28
- package/dist-es/commands/GetResourcePolicyCommand.js +21 -28
- package/dist-es/commands/GetRouteCommand.js +21 -28
- package/dist-es/commands/GetServiceCommand.js +21 -28
- package/dist-es/commands/ListApplicationsCommand.js +21 -28
- package/dist-es/commands/ListEnvironmentVpcsCommand.js +21 -28
- package/dist-es/commands/ListEnvironmentsCommand.js +21 -28
- package/dist-es/commands/ListRoutesCommand.js +21 -28
- package/dist-es/commands/ListServicesCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/PutResourcePolicyCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateRouteCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/MigrationHubRefactorSpacesServiceException.js +5 -10
- package/dist-es/models/models_0.js +333 -181
- package/dist-es/pagination/ListApplicationsPaginator.js +25 -68
- package/dist-es/pagination/ListEnvironmentVpcsPaginator.js +25 -68
- package/dist-es/pagination/ListEnvironmentsPaginator.js +25 -68
- package/dist-es/pagination/ListRoutesPaginator.js +25 -68
- package/dist-es/pagination/ListServicesPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +2213 -2965
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
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.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-migration-hub-refactor-spaces
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-migration-hub-refactor-spaces
|
|
@@ -594,7 +594,7 @@ exports.deserializeAws_restJson1CreateApplicationCommand = deserializeAws_restJs
|
|
|
594
594
|
const deserializeAws_restJson1CreateApplicationCommandError = async (output, context) => {
|
|
595
595
|
const parsedOutput = {
|
|
596
596
|
...output,
|
|
597
|
-
body: await
|
|
597
|
+
body: await parseErrorBody(output.body, context),
|
|
598
598
|
};
|
|
599
599
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
600
600
|
switch (errorCode) {
|
|
@@ -673,7 +673,7 @@ exports.deserializeAws_restJson1CreateEnvironmentCommand = deserializeAws_restJs
|
|
|
673
673
|
const deserializeAws_restJson1CreateEnvironmentCommandError = async (output, context) => {
|
|
674
674
|
const parsedOutput = {
|
|
675
675
|
...output,
|
|
676
|
-
body: await
|
|
676
|
+
body: await parseErrorBody(output.body, context),
|
|
677
677
|
};
|
|
678
678
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
679
679
|
switch (errorCode) {
|
|
@@ -758,7 +758,7 @@ exports.deserializeAws_restJson1CreateRouteCommand = deserializeAws_restJson1Cre
|
|
|
758
758
|
const deserializeAws_restJson1CreateRouteCommandError = async (output, context) => {
|
|
759
759
|
const parsedOutput = {
|
|
760
760
|
...output,
|
|
761
|
-
body: await
|
|
761
|
+
body: await parseErrorBody(output.body, context),
|
|
762
762
|
};
|
|
763
763
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
764
764
|
switch (errorCode) {
|
|
@@ -855,7 +855,7 @@ exports.deserializeAws_restJson1CreateServiceCommand = deserializeAws_restJson1C
|
|
|
855
855
|
const deserializeAws_restJson1CreateServiceCommandError = async (output, context) => {
|
|
856
856
|
const parsedOutput = {
|
|
857
857
|
...output,
|
|
858
|
-
body: await
|
|
858
|
+
body: await parseErrorBody(output.body, context),
|
|
859
859
|
};
|
|
860
860
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
861
861
|
switch (errorCode) {
|
|
@@ -922,7 +922,7 @@ exports.deserializeAws_restJson1DeleteApplicationCommand = deserializeAws_restJs
|
|
|
922
922
|
const deserializeAws_restJson1DeleteApplicationCommandError = async (output, context) => {
|
|
923
923
|
const parsedOutput = {
|
|
924
924
|
...output,
|
|
925
|
-
body: await
|
|
925
|
+
body: await parseErrorBody(output.body, context),
|
|
926
926
|
};
|
|
927
927
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
928
928
|
switch (errorCode) {
|
|
@@ -983,7 +983,7 @@ exports.deserializeAws_restJson1DeleteEnvironmentCommand = deserializeAws_restJs
|
|
|
983
983
|
const deserializeAws_restJson1DeleteEnvironmentCommandError = async (output, context) => {
|
|
984
984
|
const parsedOutput = {
|
|
985
985
|
...output,
|
|
986
|
-
body: await
|
|
986
|
+
body: await parseErrorBody(output.body, context),
|
|
987
987
|
};
|
|
988
988
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
989
989
|
switch (errorCode) {
|
|
@@ -1029,7 +1029,7 @@ exports.deserializeAws_restJson1DeleteResourcePolicyCommand = deserializeAws_res
|
|
|
1029
1029
|
const deserializeAws_restJson1DeleteResourcePolicyCommandError = async (output, context) => {
|
|
1030
1030
|
const parsedOutput = {
|
|
1031
1031
|
...output,
|
|
1032
|
-
body: await
|
|
1032
|
+
body: await parseErrorBody(output.body, context),
|
|
1033
1033
|
};
|
|
1034
1034
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1035
1035
|
switch (errorCode) {
|
|
@@ -1090,7 +1090,7 @@ exports.deserializeAws_restJson1DeleteRouteCommand = deserializeAws_restJson1Del
|
|
|
1090
1090
|
const deserializeAws_restJson1DeleteRouteCommandError = async (output, context) => {
|
|
1091
1091
|
const parsedOutput = {
|
|
1092
1092
|
...output,
|
|
1093
|
-
body: await
|
|
1093
|
+
body: await parseErrorBody(output.body, context),
|
|
1094
1094
|
};
|
|
1095
1095
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1096
1096
|
switch (errorCode) {
|
|
@@ -1157,7 +1157,7 @@ exports.deserializeAws_restJson1DeleteServiceCommand = deserializeAws_restJson1D
|
|
|
1157
1157
|
const deserializeAws_restJson1DeleteServiceCommandError = async (output, context) => {
|
|
1158
1158
|
const parsedOutput = {
|
|
1159
1159
|
...output,
|
|
1160
|
-
body: await
|
|
1160
|
+
body: await parseErrorBody(output.body, context),
|
|
1161
1161
|
};
|
|
1162
1162
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1163
1163
|
switch (errorCode) {
|
|
@@ -1245,7 +1245,7 @@ exports.deserializeAws_restJson1GetApplicationCommand = deserializeAws_restJson1
|
|
|
1245
1245
|
const deserializeAws_restJson1GetApplicationCommandError = async (output, context) => {
|
|
1246
1246
|
const parsedOutput = {
|
|
1247
1247
|
...output,
|
|
1248
|
-
body: await
|
|
1248
|
+
body: await parseErrorBody(output.body, context),
|
|
1249
1249
|
};
|
|
1250
1250
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1251
1251
|
switch (errorCode) {
|
|
@@ -1324,7 +1324,7 @@ exports.deserializeAws_restJson1GetEnvironmentCommand = deserializeAws_restJson1
|
|
|
1324
1324
|
const deserializeAws_restJson1GetEnvironmentCommandError = async (output, context) => {
|
|
1325
1325
|
const parsedOutput = {
|
|
1326
1326
|
...output,
|
|
1327
|
-
body: await
|
|
1327
|
+
body: await parseErrorBody(output.body, context),
|
|
1328
1328
|
};
|
|
1329
1329
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1330
1330
|
switch (errorCode) {
|
|
@@ -1370,7 +1370,7 @@ exports.deserializeAws_restJson1GetResourcePolicyCommand = deserializeAws_restJs
|
|
|
1370
1370
|
const deserializeAws_restJson1GetResourcePolicyCommandError = async (output, context) => {
|
|
1371
1371
|
const parsedOutput = {
|
|
1372
1372
|
...output,
|
|
1373
|
-
body: await
|
|
1373
|
+
body: await parseErrorBody(output.body, context),
|
|
1374
1374
|
};
|
|
1375
1375
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1376
1376
|
switch (errorCode) {
|
|
@@ -1464,7 +1464,7 @@ exports.deserializeAws_restJson1GetRouteCommand = deserializeAws_restJson1GetRou
|
|
|
1464
1464
|
const deserializeAws_restJson1GetRouteCommandError = async (output, context) => {
|
|
1465
1465
|
const parsedOutput = {
|
|
1466
1466
|
...output,
|
|
1467
|
-
body: await
|
|
1467
|
+
body: await parseErrorBody(output.body, context),
|
|
1468
1468
|
};
|
|
1469
1469
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1470
1470
|
switch (errorCode) {
|
|
@@ -1558,7 +1558,7 @@ exports.deserializeAws_restJson1GetServiceCommand = deserializeAws_restJson1GetS
|
|
|
1558
1558
|
const deserializeAws_restJson1GetServiceCommandError = async (output, context) => {
|
|
1559
1559
|
const parsedOutput = {
|
|
1560
1560
|
...output,
|
|
1561
|
-
body: await
|
|
1561
|
+
body: await parseErrorBody(output.body, context),
|
|
1562
1562
|
};
|
|
1563
1563
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1564
1564
|
switch (errorCode) {
|
|
@@ -1607,7 +1607,7 @@ exports.deserializeAws_restJson1ListApplicationsCommand = deserializeAws_restJso
|
|
|
1607
1607
|
const deserializeAws_restJson1ListApplicationsCommandError = async (output, context) => {
|
|
1608
1608
|
const parsedOutput = {
|
|
1609
1609
|
...output,
|
|
1610
|
-
body: await
|
|
1610
|
+
body: await parseErrorBody(output.body, context),
|
|
1611
1611
|
};
|
|
1612
1612
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1613
1613
|
switch (errorCode) {
|
|
@@ -1662,7 +1662,7 @@ exports.deserializeAws_restJson1ListEnvironmentsCommand = deserializeAws_restJso
|
|
|
1662
1662
|
const deserializeAws_restJson1ListEnvironmentsCommandError = async (output, context) => {
|
|
1663
1663
|
const parsedOutput = {
|
|
1664
1664
|
...output,
|
|
1665
|
-
body: await
|
|
1665
|
+
body: await parseErrorBody(output.body, context),
|
|
1666
1666
|
};
|
|
1667
1667
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1668
1668
|
switch (errorCode) {
|
|
@@ -1711,7 +1711,7 @@ exports.deserializeAws_restJson1ListEnvironmentVpcsCommand = deserializeAws_rest
|
|
|
1711
1711
|
const deserializeAws_restJson1ListEnvironmentVpcsCommandError = async (output, context) => {
|
|
1712
1712
|
const parsedOutput = {
|
|
1713
1713
|
...output,
|
|
1714
|
-
body: await
|
|
1714
|
+
body: await parseErrorBody(output.body, context),
|
|
1715
1715
|
};
|
|
1716
1716
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1717
1717
|
switch (errorCode) {
|
|
@@ -1760,7 +1760,7 @@ exports.deserializeAws_restJson1ListRoutesCommand = deserializeAws_restJson1List
|
|
|
1760
1760
|
const deserializeAws_restJson1ListRoutesCommandError = async (output, context) => {
|
|
1761
1761
|
const parsedOutput = {
|
|
1762
1762
|
...output,
|
|
1763
|
-
body: await
|
|
1763
|
+
body: await parseErrorBody(output.body, context),
|
|
1764
1764
|
};
|
|
1765
1765
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1766
1766
|
switch (errorCode) {
|
|
@@ -1815,7 +1815,7 @@ exports.deserializeAws_restJson1ListServicesCommand = deserializeAws_restJson1Li
|
|
|
1815
1815
|
const deserializeAws_restJson1ListServicesCommandError = async (output, context) => {
|
|
1816
1816
|
const parsedOutput = {
|
|
1817
1817
|
...output,
|
|
1818
|
-
body: await
|
|
1818
|
+
body: await parseErrorBody(output.body, context),
|
|
1819
1819
|
};
|
|
1820
1820
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1821
1821
|
switch (errorCode) {
|
|
@@ -1867,7 +1867,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
1867
1867
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
1868
1868
|
const parsedOutput = {
|
|
1869
1869
|
...output,
|
|
1870
|
-
body: await
|
|
1870
|
+
body: await parseErrorBody(output.body, context),
|
|
1871
1871
|
};
|
|
1872
1872
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1873
1873
|
switch (errorCode) {
|
|
@@ -1904,7 +1904,7 @@ exports.deserializeAws_restJson1PutResourcePolicyCommand = deserializeAws_restJs
|
|
|
1904
1904
|
const deserializeAws_restJson1PutResourcePolicyCommandError = async (output, context) => {
|
|
1905
1905
|
const parsedOutput = {
|
|
1906
1906
|
...output,
|
|
1907
|
-
body: await
|
|
1907
|
+
body: await parseErrorBody(output.body, context),
|
|
1908
1908
|
};
|
|
1909
1909
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1910
1910
|
switch (errorCode) {
|
|
@@ -1950,7 +1950,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
1950
1950
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
1951
1951
|
const parsedOutput = {
|
|
1952
1952
|
...output,
|
|
1953
|
-
body: await
|
|
1953
|
+
body: await parseErrorBody(output.body, context),
|
|
1954
1954
|
};
|
|
1955
1955
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1956
1956
|
switch (errorCode) {
|
|
@@ -1987,7 +1987,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
1987
1987
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
1988
1988
|
const parsedOutput = {
|
|
1989
1989
|
...output,
|
|
1990
|
-
body: await
|
|
1990
|
+
body: await parseErrorBody(output.body, context),
|
|
1991
1991
|
};
|
|
1992
1992
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1993
1993
|
switch (errorCode) {
|
|
@@ -2042,7 +2042,7 @@ exports.deserializeAws_restJson1UpdateRouteCommand = deserializeAws_restJson1Upd
|
|
|
2042
2042
|
const deserializeAws_restJson1UpdateRouteCommandError = async (output, context) => {
|
|
2043
2043
|
const parsedOutput = {
|
|
2044
2044
|
...output,
|
|
2045
|
-
body: await
|
|
2045
|
+
body: await parseErrorBody(output.body, context),
|
|
2046
2046
|
};
|
|
2047
2047
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2048
2048
|
switch (errorCode) {
|
|
@@ -2582,6 +2582,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
2582
2582
|
}
|
|
2583
2583
|
return {};
|
|
2584
2584
|
});
|
|
2585
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2586
|
+
var _a;
|
|
2587
|
+
const value = await parseBody(errorBody, context);
|
|
2588
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2589
|
+
return value;
|
|
2590
|
+
};
|
|
2585
2591
|
const loadRestJsonErrorCode = (output, data) => {
|
|
2586
2592
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2587
2593
|
const sanitizeErrorCode = (rawValue) => {
|