@aws-sdk/client-greengrassv2 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 +35 -29
- package/dist-es/GreengrassV2.js +118 -125
- package/dist-es/GreengrassV2Client.js +22 -28
- package/dist-es/commands/AssociateServiceRoleToAccountCommand.js +21 -28
- package/dist-es/commands/BatchAssociateClientDeviceWithCoreDeviceCommand.js +21 -28
- package/dist-es/commands/BatchDisassociateClientDeviceFromCoreDeviceCommand.js +21 -28
- package/dist-es/commands/CancelDeploymentCommand.js +21 -28
- package/dist-es/commands/CreateComponentVersionCommand.js +21 -28
- package/dist-es/commands/CreateDeploymentCommand.js +21 -28
- package/dist-es/commands/DeleteComponentCommand.js +22 -29
- package/dist-es/commands/DeleteCoreDeviceCommand.js +22 -29
- package/dist-es/commands/DeleteDeploymentCommand.js +22 -29
- package/dist-es/commands/DescribeComponentCommand.js +21 -28
- package/dist-es/commands/DisassociateServiceRoleFromAccountCommand.js +21 -28
- package/dist-es/commands/GetComponentCommand.js +21 -28
- package/dist-es/commands/GetComponentVersionArtifactCommand.js +21 -28
- package/dist-es/commands/GetConnectivityInfoCommand.js +21 -28
- package/dist-es/commands/GetCoreDeviceCommand.js +21 -28
- package/dist-es/commands/GetDeploymentCommand.js +21 -28
- package/dist-es/commands/GetServiceRoleForAccountCommand.js +21 -28
- package/dist-es/commands/ListClientDevicesAssociatedWithCoreDeviceCommand.js +21 -28
- package/dist-es/commands/ListComponentVersionsCommand.js +21 -28
- package/dist-es/commands/ListComponentsCommand.js +21 -28
- package/dist-es/commands/ListCoreDevicesCommand.js +21 -28
- package/dist-es/commands/ListDeploymentsCommand.js +21 -28
- package/dist-es/commands/ListEffectiveDeploymentsCommand.js +21 -28
- package/dist-es/commands/ListInstalledComponentsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/ResolveComponentCandidatesCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateConnectivityInfoCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/GreengrassV2ServiceException.js +5 -10
- package/dist-es/models/models_0.js +387 -198
- package/dist-es/pagination/ListClientDevicesAssociatedWithCoreDevicePaginator.js +25 -68
- package/dist-es/pagination/ListComponentVersionsPaginator.js +25 -68
- package/dist-es/pagination/ListComponentsPaginator.js +25 -68
- package/dist-es/pagination/ListCoreDevicesPaginator.js +25 -68
- package/dist-es/pagination/ListDeploymentsPaginator.js +25 -68
- package/dist-es/pagination/ListEffectiveDeploymentsPaginator.js +25 -68
- package/dist-es/pagination/ListInstalledComponentsPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +2480 -3279
- 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-greengrassv2
|
|
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-greengrassv2
|
|
@@ -643,7 +643,7 @@ exports.deserializeAws_restJson1AssociateServiceRoleToAccountCommand = deseriali
|
|
|
643
643
|
const deserializeAws_restJson1AssociateServiceRoleToAccountCommandError = async (output, context) => {
|
|
644
644
|
const parsedOutput = {
|
|
645
645
|
...output,
|
|
646
|
-
body: await
|
|
646
|
+
body: await parseErrorBody(output.body, context),
|
|
647
647
|
};
|
|
648
648
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
649
649
|
switch (errorCode) {
|
|
@@ -680,7 +680,7 @@ exports.deserializeAws_restJson1BatchAssociateClientDeviceWithCoreDeviceCommand
|
|
|
680
680
|
const deserializeAws_restJson1BatchAssociateClientDeviceWithCoreDeviceCommandError = async (output, context) => {
|
|
681
681
|
const parsedOutput = {
|
|
682
682
|
...output,
|
|
683
|
-
body: await
|
|
683
|
+
body: await parseErrorBody(output.body, context),
|
|
684
684
|
};
|
|
685
685
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
686
686
|
switch (errorCode) {
|
|
@@ -726,7 +726,7 @@ exports.deserializeAws_restJson1BatchDisassociateClientDeviceFromCoreDeviceComma
|
|
|
726
726
|
const deserializeAws_restJson1BatchDisassociateClientDeviceFromCoreDeviceCommandError = async (output, context) => {
|
|
727
727
|
const parsedOutput = {
|
|
728
728
|
...output,
|
|
729
|
-
body: await
|
|
729
|
+
body: await parseErrorBody(output.body, context),
|
|
730
730
|
};
|
|
731
731
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
732
732
|
switch (errorCode) {
|
|
@@ -772,7 +772,7 @@ exports.deserializeAws_restJson1CancelDeploymentCommand = deserializeAws_restJso
|
|
|
772
772
|
const deserializeAws_restJson1CancelDeploymentCommandError = async (output, context) => {
|
|
773
773
|
const parsedOutput = {
|
|
774
774
|
...output,
|
|
775
|
-
body: await
|
|
775
|
+
body: await parseErrorBody(output.body, context),
|
|
776
776
|
};
|
|
777
777
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
778
778
|
switch (errorCode) {
|
|
@@ -833,7 +833,7 @@ exports.deserializeAws_restJson1CreateComponentVersionCommand = deserializeAws_r
|
|
|
833
833
|
const deserializeAws_restJson1CreateComponentVersionCommandError = async (output, context) => {
|
|
834
834
|
const parsedOutput = {
|
|
835
835
|
...output,
|
|
836
|
-
body: await
|
|
836
|
+
body: await parseErrorBody(output.body, context),
|
|
837
837
|
};
|
|
838
838
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
839
839
|
switch (errorCode) {
|
|
@@ -891,7 +891,7 @@ exports.deserializeAws_restJson1CreateDeploymentCommand = deserializeAws_restJso
|
|
|
891
891
|
const deserializeAws_restJson1CreateDeploymentCommandError = async (output, context) => {
|
|
892
892
|
const parsedOutput = {
|
|
893
893
|
...output,
|
|
894
|
-
body: await
|
|
894
|
+
body: await parseErrorBody(output.body, context),
|
|
895
895
|
};
|
|
896
896
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
897
897
|
switch (errorCode) {
|
|
@@ -940,7 +940,7 @@ exports.deserializeAws_restJson1DeleteComponentCommand = deserializeAws_restJson
|
|
|
940
940
|
const deserializeAws_restJson1DeleteComponentCommandError = async (output, context) => {
|
|
941
941
|
const parsedOutput = {
|
|
942
942
|
...output,
|
|
943
|
-
body: await
|
|
943
|
+
body: await parseErrorBody(output.body, context),
|
|
944
944
|
};
|
|
945
945
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
946
946
|
switch (errorCode) {
|
|
@@ -986,7 +986,7 @@ exports.deserializeAws_restJson1DeleteCoreDeviceCommand = deserializeAws_restJso
|
|
|
986
986
|
const deserializeAws_restJson1DeleteCoreDeviceCommandError = async (output, context) => {
|
|
987
987
|
const parsedOutput = {
|
|
988
988
|
...output,
|
|
989
|
-
body: await
|
|
989
|
+
body: await parseErrorBody(output.body, context),
|
|
990
990
|
};
|
|
991
991
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
992
992
|
switch (errorCode) {
|
|
@@ -1032,7 +1032,7 @@ exports.deserializeAws_restJson1DeleteDeploymentCommand = deserializeAws_restJso
|
|
|
1032
1032
|
const deserializeAws_restJson1DeleteDeploymentCommandError = async (output, context) => {
|
|
1033
1033
|
const parsedOutput = {
|
|
1034
1034
|
...output,
|
|
1035
|
-
body: await
|
|
1035
|
+
body: await parseErrorBody(output.body, context),
|
|
1036
1036
|
};
|
|
1037
1037
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1038
1038
|
switch (errorCode) {
|
|
@@ -1105,7 +1105,7 @@ exports.deserializeAws_restJson1DescribeComponentCommand = deserializeAws_restJs
|
|
|
1105
1105
|
const deserializeAws_restJson1DescribeComponentCommandError = async (output, context) => {
|
|
1106
1106
|
const parsedOutput = {
|
|
1107
1107
|
...output,
|
|
1108
|
-
body: await
|
|
1108
|
+
body: await parseErrorBody(output.body, context),
|
|
1109
1109
|
};
|
|
1110
1110
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1111
1111
|
switch (errorCode) {
|
|
@@ -1151,7 +1151,7 @@ exports.deserializeAws_restJson1DisassociateServiceRoleFromAccountCommand = dese
|
|
|
1151
1151
|
const deserializeAws_restJson1DisassociateServiceRoleFromAccountCommandError = async (output, context) => {
|
|
1152
1152
|
const parsedOutput = {
|
|
1153
1153
|
...output,
|
|
1154
|
-
body: await
|
|
1154
|
+
body: await parseErrorBody(output.body, context),
|
|
1155
1155
|
};
|
|
1156
1156
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1157
1157
|
switch (errorCode) {
|
|
@@ -1191,7 +1191,7 @@ exports.deserializeAws_restJson1GetComponentCommand = deserializeAws_restJson1Ge
|
|
|
1191
1191
|
const deserializeAws_restJson1GetComponentCommandError = async (output, context) => {
|
|
1192
1192
|
const parsedOutput = {
|
|
1193
1193
|
...output,
|
|
1194
|
-
body: await
|
|
1194
|
+
body: await parseErrorBody(output.body, context),
|
|
1195
1195
|
};
|
|
1196
1196
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1197
1197
|
switch (errorCode) {
|
|
@@ -1237,7 +1237,7 @@ exports.deserializeAws_restJson1GetComponentVersionArtifactCommand = deserialize
|
|
|
1237
1237
|
const deserializeAws_restJson1GetComponentVersionArtifactCommandError = async (output, context) => {
|
|
1238
1238
|
const parsedOutput = {
|
|
1239
1239
|
...output,
|
|
1240
|
-
body: await
|
|
1240
|
+
body: await parseErrorBody(output.body, context),
|
|
1241
1241
|
};
|
|
1242
1242
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1243
1243
|
switch (errorCode) {
|
|
@@ -1286,7 +1286,7 @@ exports.deserializeAws_restJson1GetConnectivityInfoCommand = deserializeAws_rest
|
|
|
1286
1286
|
const deserializeAws_restJson1GetConnectivityInfoCommandError = async (output, context) => {
|
|
1287
1287
|
const parsedOutput = {
|
|
1288
1288
|
...output,
|
|
1289
|
-
body: await
|
|
1289
|
+
body: await parseErrorBody(output.body, context),
|
|
1290
1290
|
};
|
|
1291
1291
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1292
1292
|
switch (errorCode) {
|
|
@@ -1341,7 +1341,7 @@ exports.deserializeAws_restJson1GetCoreDeviceCommand = deserializeAws_restJson1G
|
|
|
1341
1341
|
const deserializeAws_restJson1GetCoreDeviceCommandError = async (output, context) => {
|
|
1342
1342
|
const parsedOutput = {
|
|
1343
1343
|
...output,
|
|
1344
|
-
body: await
|
|
1344
|
+
body: await parseErrorBody(output.body, context),
|
|
1345
1345
|
};
|
|
1346
1346
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1347
1347
|
switch (errorCode) {
|
|
@@ -1423,7 +1423,7 @@ exports.deserializeAws_restJson1GetDeploymentCommand = deserializeAws_restJson1G
|
|
|
1423
1423
|
const deserializeAws_restJson1GetDeploymentCommandError = async (output, context) => {
|
|
1424
1424
|
const parsedOutput = {
|
|
1425
1425
|
...output,
|
|
1426
|
-
body: await
|
|
1426
|
+
body: await parseErrorBody(output.body, context),
|
|
1427
1427
|
};
|
|
1428
1428
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1429
1429
|
switch (errorCode) {
|
|
@@ -1472,7 +1472,7 @@ exports.deserializeAws_restJson1GetServiceRoleForAccountCommand = deserializeAws
|
|
|
1472
1472
|
const deserializeAws_restJson1GetServiceRoleForAccountCommandError = async (output, context) => {
|
|
1473
1473
|
const parsedOutput = {
|
|
1474
1474
|
...output,
|
|
1475
|
-
body: await
|
|
1475
|
+
body: await parseErrorBody(output.body, context),
|
|
1476
1476
|
};
|
|
1477
1477
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1478
1478
|
switch (errorCode) {
|
|
@@ -1509,7 +1509,7 @@ exports.deserializeAws_restJson1ListClientDevicesAssociatedWithCoreDeviceCommand
|
|
|
1509
1509
|
const deserializeAws_restJson1ListClientDevicesAssociatedWithCoreDeviceCommandError = async (output, context) => {
|
|
1510
1510
|
const parsedOutput = {
|
|
1511
1511
|
...output,
|
|
1512
|
-
body: await
|
|
1512
|
+
body: await parseErrorBody(output.body, context),
|
|
1513
1513
|
};
|
|
1514
1514
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1515
1515
|
switch (errorCode) {
|
|
@@ -1558,7 +1558,7 @@ exports.deserializeAws_restJson1ListComponentsCommand = deserializeAws_restJson1
|
|
|
1558
1558
|
const deserializeAws_restJson1ListComponentsCommandError = 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_restJson1ListComponentVersionsCommand = deserializeAws_re
|
|
|
1607
1607
|
const deserializeAws_restJson1ListComponentVersionsCommandError = 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) {
|
|
@@ -1656,7 +1656,7 @@ exports.deserializeAws_restJson1ListCoreDevicesCommand = deserializeAws_restJson
|
|
|
1656
1656
|
const deserializeAws_restJson1ListCoreDevicesCommandError = async (output, context) => {
|
|
1657
1657
|
const parsedOutput = {
|
|
1658
1658
|
...output,
|
|
1659
|
-
body: await
|
|
1659
|
+
body: await parseErrorBody(output.body, context),
|
|
1660
1660
|
};
|
|
1661
1661
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1662
1662
|
switch (errorCode) {
|
|
@@ -1702,7 +1702,7 @@ exports.deserializeAws_restJson1ListDeploymentsCommand = deserializeAws_restJson
|
|
|
1702
1702
|
const deserializeAws_restJson1ListDeploymentsCommandError = async (output, context) => {
|
|
1703
1703
|
const parsedOutput = {
|
|
1704
1704
|
...output,
|
|
1705
|
-
body: await
|
|
1705
|
+
body: await parseErrorBody(output.body, context),
|
|
1706
1706
|
};
|
|
1707
1707
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1708
1708
|
switch (errorCode) {
|
|
@@ -1748,7 +1748,7 @@ exports.deserializeAws_restJson1ListEffectiveDeploymentsCommand = deserializeAws
|
|
|
1748
1748
|
const deserializeAws_restJson1ListEffectiveDeploymentsCommandError = async (output, context) => {
|
|
1749
1749
|
const parsedOutput = {
|
|
1750
1750
|
...output,
|
|
1751
|
-
body: await
|
|
1751
|
+
body: await parseErrorBody(output.body, context),
|
|
1752
1752
|
};
|
|
1753
1753
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1754
1754
|
switch (errorCode) {
|
|
@@ -1797,7 +1797,7 @@ exports.deserializeAws_restJson1ListInstalledComponentsCommand = deserializeAws_
|
|
|
1797
1797
|
const deserializeAws_restJson1ListInstalledComponentsCommandError = async (output, context) => {
|
|
1798
1798
|
const parsedOutput = {
|
|
1799
1799
|
...output,
|
|
1800
|
-
body: await
|
|
1800
|
+
body: await parseErrorBody(output.body, context),
|
|
1801
1801
|
};
|
|
1802
1802
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1803
1803
|
switch (errorCode) {
|
|
@@ -1843,7 +1843,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
1843
1843
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
1844
1844
|
const parsedOutput = {
|
|
1845
1845
|
...output,
|
|
1846
|
-
body: await
|
|
1846
|
+
body: await parseErrorBody(output.body, context),
|
|
1847
1847
|
};
|
|
1848
1848
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1849
1849
|
switch (errorCode) {
|
|
@@ -1883,7 +1883,7 @@ exports.deserializeAws_restJson1ResolveComponentCandidatesCommand = deserializeA
|
|
|
1883
1883
|
const deserializeAws_restJson1ResolveComponentCandidatesCommandError = async (output, context) => {
|
|
1884
1884
|
const parsedOutput = {
|
|
1885
1885
|
...output,
|
|
1886
|
-
body: await
|
|
1886
|
+
body: await parseErrorBody(output.body, context),
|
|
1887
1887
|
};
|
|
1888
1888
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1889
1889
|
switch (errorCode) {
|
|
@@ -1929,7 +1929,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
1929
1929
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
1930
1930
|
const parsedOutput = {
|
|
1931
1931
|
...output,
|
|
1932
|
-
body: await
|
|
1932
|
+
body: await parseErrorBody(output.body, context),
|
|
1933
1933
|
};
|
|
1934
1934
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1935
1935
|
switch (errorCode) {
|
|
@@ -1966,7 +1966,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
1966
1966
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
1967
1967
|
const parsedOutput = {
|
|
1968
1968
|
...output,
|
|
1969
|
-
body: await
|
|
1969
|
+
body: await parseErrorBody(output.body, context),
|
|
1970
1970
|
};
|
|
1971
1971
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1972
1972
|
switch (errorCode) {
|
|
@@ -2009,7 +2009,7 @@ exports.deserializeAws_restJson1UpdateConnectivityInfoCommand = deserializeAws_r
|
|
|
2009
2009
|
const deserializeAws_restJson1UpdateConnectivityInfoCommandError = async (output, context) => {
|
|
2010
2010
|
const parsedOutput = {
|
|
2011
2011
|
...output,
|
|
2012
|
-
body: await
|
|
2012
|
+
body: await parseErrorBody(output.body, context),
|
|
2013
2013
|
};
|
|
2014
2014
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2015
2015
|
switch (errorCode) {
|
|
@@ -3021,6 +3021,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
3021
3021
|
}
|
|
3022
3022
|
return {};
|
|
3023
3023
|
});
|
|
3024
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
3025
|
+
var _a;
|
|
3026
|
+
const value = await parseBody(errorBody, context);
|
|
3027
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
3028
|
+
return value;
|
|
3029
|
+
};
|
|
3024
3030
|
const loadRestJsonErrorCode = (output, data) => {
|
|
3025
3031
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3026
3032
|
const sanitizeErrorCode = (rawValue) => {
|