@aws-sdk/client-mediaconnect 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 +36 -30
- package/dist-es/MediaConnect.js +122 -129
- package/dist-es/MediaConnectClient.js +22 -28
- package/dist-es/commands/AddFlowMediaStreamsCommand.js +21 -28
- package/dist-es/commands/AddFlowOutputsCommand.js +21 -28
- package/dist-es/commands/AddFlowSourcesCommand.js +21 -28
- package/dist-es/commands/AddFlowVpcInterfacesCommand.js +21 -28
- package/dist-es/commands/CreateFlowCommand.js +21 -28
- package/dist-es/commands/DeleteFlowCommand.js +21 -28
- package/dist-es/commands/DescribeFlowCommand.js +21 -28
- package/dist-es/commands/DescribeOfferingCommand.js +21 -28
- package/dist-es/commands/DescribeReservationCommand.js +21 -28
- package/dist-es/commands/GrantFlowEntitlementsCommand.js +21 -28
- package/dist-es/commands/ListEntitlementsCommand.js +21 -28
- package/dist-es/commands/ListFlowsCommand.js +21 -28
- package/dist-es/commands/ListOfferingsCommand.js +21 -28
- package/dist-es/commands/ListReservationsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/PurchaseOfferingCommand.js +21 -28
- package/dist-es/commands/RemoveFlowMediaStreamCommand.js +21 -28
- package/dist-es/commands/RemoveFlowOutputCommand.js +21 -28
- package/dist-es/commands/RemoveFlowSourceCommand.js +21 -28
- package/dist-es/commands/RemoveFlowVpcInterfaceCommand.js +21 -28
- package/dist-es/commands/RevokeFlowEntitlementCommand.js +21 -28
- package/dist-es/commands/StartFlowCommand.js +21 -28
- package/dist-es/commands/StopFlowCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +22 -29
- package/dist-es/commands/UntagResourceCommand.js +22 -29
- package/dist-es/commands/UpdateFlowCommand.js +21 -28
- package/dist-es/commands/UpdateFlowEntitlementCommand.js +21 -28
- package/dist-es/commands/UpdateFlowMediaStreamCommand.js +21 -28
- package/dist-es/commands/UpdateFlowOutputCommand.js +21 -28
- package/dist-es/commands/UpdateFlowSourceCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/MediaConnectServiceException.js +5 -10
- package/dist-es/models/models_0.js +411 -210
- package/dist-es/pagination/ListEntitlementsPaginator.js +25 -68
- package/dist-es/pagination/ListFlowsPaginator.js +25 -68
- package/dist-es/pagination/ListOfferingsPaginator.js +25 -68
- package/dist-es/pagination/ListReservationsPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +2553 -3353
- 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/dist-es/waiters/waitForFlowActive.js +60 -80
- package/dist-es/waiters/waitForFlowDeleted.js +45 -65
- package/dist-es/waiters/waitForFlowStandby.js +51 -71
- package/package.json +34 -34
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-mediaconnect
|
|
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-mediaconnect
|
|
@@ -712,7 +712,7 @@ exports.deserializeAws_restJson1AddFlowMediaStreamsCommand = deserializeAws_rest
|
|
|
712
712
|
const deserializeAws_restJson1AddFlowMediaStreamsCommandError = async (output, context) => {
|
|
713
713
|
const parsedOutput = {
|
|
714
714
|
...output,
|
|
715
|
-
body: await
|
|
715
|
+
body: await parseErrorBody(output.body, context),
|
|
716
716
|
};
|
|
717
717
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
718
718
|
switch (errorCode) {
|
|
@@ -764,7 +764,7 @@ exports.deserializeAws_restJson1AddFlowOutputsCommand = deserializeAws_restJson1
|
|
|
764
764
|
const deserializeAws_restJson1AddFlowOutputsCommandError = async (output, context) => {
|
|
765
765
|
const parsedOutput = {
|
|
766
766
|
...output,
|
|
767
|
-
body: await
|
|
767
|
+
body: await parseErrorBody(output.body, context),
|
|
768
768
|
};
|
|
769
769
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
770
770
|
switch (errorCode) {
|
|
@@ -819,7 +819,7 @@ exports.deserializeAws_restJson1AddFlowSourcesCommand = deserializeAws_restJson1
|
|
|
819
819
|
const deserializeAws_restJson1AddFlowSourcesCommandError = async (output, context) => {
|
|
820
820
|
const parsedOutput = {
|
|
821
821
|
...output,
|
|
822
|
-
body: await
|
|
822
|
+
body: await parseErrorBody(output.body, context),
|
|
823
823
|
};
|
|
824
824
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
825
825
|
switch (errorCode) {
|
|
@@ -871,7 +871,7 @@ exports.deserializeAws_restJson1AddFlowVpcInterfacesCommand = deserializeAws_res
|
|
|
871
871
|
const deserializeAws_restJson1AddFlowVpcInterfacesCommandError = async (output, context) => {
|
|
872
872
|
const parsedOutput = {
|
|
873
873
|
...output,
|
|
874
|
-
body: await
|
|
874
|
+
body: await parseErrorBody(output.body, context),
|
|
875
875
|
};
|
|
876
876
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
877
877
|
switch (errorCode) {
|
|
@@ -920,7 +920,7 @@ exports.deserializeAws_restJson1CreateFlowCommand = deserializeAws_restJson1Crea
|
|
|
920
920
|
const deserializeAws_restJson1CreateFlowCommandError = async (output, context) => {
|
|
921
921
|
const parsedOutput = {
|
|
922
922
|
...output,
|
|
923
|
-
body: await
|
|
923
|
+
body: await parseErrorBody(output.body, context),
|
|
924
924
|
};
|
|
925
925
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
926
926
|
switch (errorCode) {
|
|
@@ -972,7 +972,7 @@ exports.deserializeAws_restJson1DeleteFlowCommand = deserializeAws_restJson1Dele
|
|
|
972
972
|
const deserializeAws_restJson1DeleteFlowCommandError = async (output, context) => {
|
|
973
973
|
const parsedOutput = {
|
|
974
974
|
...output,
|
|
975
|
-
body: await
|
|
975
|
+
body: await parseErrorBody(output.body, context),
|
|
976
976
|
};
|
|
977
977
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
978
978
|
switch (errorCode) {
|
|
@@ -1024,7 +1024,7 @@ exports.deserializeAws_restJson1DescribeFlowCommand = deserializeAws_restJson1De
|
|
|
1024
1024
|
const deserializeAws_restJson1DescribeFlowCommandError = async (output, context) => {
|
|
1025
1025
|
const parsedOutput = {
|
|
1026
1026
|
...output,
|
|
1027
|
-
body: await
|
|
1027
|
+
body: await parseErrorBody(output.body, context),
|
|
1028
1028
|
};
|
|
1029
1029
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1030
1030
|
switch (errorCode) {
|
|
@@ -1073,7 +1073,7 @@ exports.deserializeAws_restJson1DescribeOfferingCommand = deserializeAws_restJso
|
|
|
1073
1073
|
const deserializeAws_restJson1DescribeOfferingCommandError = async (output, context) => {
|
|
1074
1074
|
const parsedOutput = {
|
|
1075
1075
|
...output,
|
|
1076
|
-
body: await
|
|
1076
|
+
body: await parseErrorBody(output.body, context),
|
|
1077
1077
|
};
|
|
1078
1078
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1079
1079
|
switch (errorCode) {
|
|
@@ -1119,7 +1119,7 @@ exports.deserializeAws_restJson1DescribeReservationCommand = deserializeAws_rest
|
|
|
1119
1119
|
const deserializeAws_restJson1DescribeReservationCommandError = async (output, context) => {
|
|
1120
1120
|
const parsedOutput = {
|
|
1121
1121
|
...output,
|
|
1122
|
-
body: await
|
|
1122
|
+
body: await parseErrorBody(output.body, context),
|
|
1123
1123
|
};
|
|
1124
1124
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1125
1125
|
switch (errorCode) {
|
|
@@ -1168,7 +1168,7 @@ exports.deserializeAws_restJson1GrantFlowEntitlementsCommand = deserializeAws_re
|
|
|
1168
1168
|
const deserializeAws_restJson1GrantFlowEntitlementsCommandError = async (output, context) => {
|
|
1169
1169
|
const parsedOutput = {
|
|
1170
1170
|
...output,
|
|
1171
|
-
body: await
|
|
1171
|
+
body: await parseErrorBody(output.body, context),
|
|
1172
1172
|
};
|
|
1173
1173
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1174
1174
|
switch (errorCode) {
|
|
@@ -1223,7 +1223,7 @@ exports.deserializeAws_restJson1ListEntitlementsCommand = deserializeAws_restJso
|
|
|
1223
1223
|
const deserializeAws_restJson1ListEntitlementsCommandError = async (output, context) => {
|
|
1224
1224
|
const parsedOutput = {
|
|
1225
1225
|
...output,
|
|
1226
|
-
body: await
|
|
1226
|
+
body: await parseErrorBody(output.body, context),
|
|
1227
1227
|
};
|
|
1228
1228
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1229
1229
|
switch (errorCode) {
|
|
@@ -1269,7 +1269,7 @@ exports.deserializeAws_restJson1ListFlowsCommand = deserializeAws_restJson1ListF
|
|
|
1269
1269
|
const deserializeAws_restJson1ListFlowsCommandError = async (output, context) => {
|
|
1270
1270
|
const parsedOutput = {
|
|
1271
1271
|
...output,
|
|
1272
|
-
body: await
|
|
1272
|
+
body: await parseErrorBody(output.body, context),
|
|
1273
1273
|
};
|
|
1274
1274
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1275
1275
|
switch (errorCode) {
|
|
@@ -1315,7 +1315,7 @@ exports.deserializeAws_restJson1ListOfferingsCommand = deserializeAws_restJson1L
|
|
|
1315
1315
|
const deserializeAws_restJson1ListOfferingsCommandError = async (output, context) => {
|
|
1316
1316
|
const parsedOutput = {
|
|
1317
1317
|
...output,
|
|
1318
|
-
body: await
|
|
1318
|
+
body: await parseErrorBody(output.body, context),
|
|
1319
1319
|
};
|
|
1320
1320
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1321
1321
|
switch (errorCode) {
|
|
@@ -1361,7 +1361,7 @@ exports.deserializeAws_restJson1ListReservationsCommand = deserializeAws_restJso
|
|
|
1361
1361
|
const deserializeAws_restJson1ListReservationsCommandError = async (output, context) => {
|
|
1362
1362
|
const parsedOutput = {
|
|
1363
1363
|
...output,
|
|
1364
|
-
body: await
|
|
1364
|
+
body: await parseErrorBody(output.body, context),
|
|
1365
1365
|
};
|
|
1366
1366
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1367
1367
|
switch (errorCode) {
|
|
@@ -1404,7 +1404,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
1404
1404
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
1405
1405
|
const parsedOutput = {
|
|
1406
1406
|
...output,
|
|
1407
|
-
body: await
|
|
1407
|
+
body: await parseErrorBody(output.body, context),
|
|
1408
1408
|
};
|
|
1409
1409
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1410
1410
|
switch (errorCode) {
|
|
@@ -1444,7 +1444,7 @@ exports.deserializeAws_restJson1PurchaseOfferingCommand = deserializeAws_restJso
|
|
|
1444
1444
|
const deserializeAws_restJson1PurchaseOfferingCommandError = async (output, context) => {
|
|
1445
1445
|
const parsedOutput = {
|
|
1446
1446
|
...output,
|
|
1447
|
-
body: await
|
|
1447
|
+
body: await parseErrorBody(output.body, context),
|
|
1448
1448
|
};
|
|
1449
1449
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1450
1450
|
switch (errorCode) {
|
|
@@ -1496,7 +1496,7 @@ exports.deserializeAws_restJson1RemoveFlowMediaStreamCommand = deserializeAws_re
|
|
|
1496
1496
|
const deserializeAws_restJson1RemoveFlowMediaStreamCommandError = async (output, context) => {
|
|
1497
1497
|
const parsedOutput = {
|
|
1498
1498
|
...output,
|
|
1499
|
-
body: await
|
|
1499
|
+
body: await parseErrorBody(output.body, context),
|
|
1500
1500
|
};
|
|
1501
1501
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1502
1502
|
switch (errorCode) {
|
|
@@ -1548,7 +1548,7 @@ exports.deserializeAws_restJson1RemoveFlowOutputCommand = deserializeAws_restJso
|
|
|
1548
1548
|
const deserializeAws_restJson1RemoveFlowOutputCommandError = async (output, context) => {
|
|
1549
1549
|
const parsedOutput = {
|
|
1550
1550
|
...output,
|
|
1551
|
-
body: await
|
|
1551
|
+
body: await parseErrorBody(output.body, context),
|
|
1552
1552
|
};
|
|
1553
1553
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1554
1554
|
switch (errorCode) {
|
|
@@ -1600,7 +1600,7 @@ exports.deserializeAws_restJson1RemoveFlowSourceCommand = deserializeAws_restJso
|
|
|
1600
1600
|
const deserializeAws_restJson1RemoveFlowSourceCommandError = async (output, context) => {
|
|
1601
1601
|
const parsedOutput = {
|
|
1602
1602
|
...output,
|
|
1603
|
-
body: await
|
|
1603
|
+
body: await parseErrorBody(output.body, context),
|
|
1604
1604
|
};
|
|
1605
1605
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1606
1606
|
switch (errorCode) {
|
|
@@ -1655,7 +1655,7 @@ exports.deserializeAws_restJson1RemoveFlowVpcInterfaceCommand = deserializeAws_r
|
|
|
1655
1655
|
const deserializeAws_restJson1RemoveFlowVpcInterfaceCommandError = async (output, context) => {
|
|
1656
1656
|
const parsedOutput = {
|
|
1657
1657
|
...output,
|
|
1658
|
-
body: await
|
|
1658
|
+
body: await parseErrorBody(output.body, context),
|
|
1659
1659
|
};
|
|
1660
1660
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1661
1661
|
switch (errorCode) {
|
|
@@ -1707,7 +1707,7 @@ exports.deserializeAws_restJson1RevokeFlowEntitlementCommand = deserializeAws_re
|
|
|
1707
1707
|
const deserializeAws_restJson1RevokeFlowEntitlementCommandError = async (output, context) => {
|
|
1708
1708
|
const parsedOutput = {
|
|
1709
1709
|
...output,
|
|
1710
|
-
body: await
|
|
1710
|
+
body: await parseErrorBody(output.body, context),
|
|
1711
1711
|
};
|
|
1712
1712
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1713
1713
|
switch (errorCode) {
|
|
@@ -1759,7 +1759,7 @@ exports.deserializeAws_restJson1StartFlowCommand = deserializeAws_restJson1Start
|
|
|
1759
1759
|
const deserializeAws_restJson1StartFlowCommandError = async (output, context) => {
|
|
1760
1760
|
const parsedOutput = {
|
|
1761
1761
|
...output,
|
|
1762
|
-
body: await
|
|
1762
|
+
body: await parseErrorBody(output.body, context),
|
|
1763
1763
|
};
|
|
1764
1764
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1765
1765
|
switch (errorCode) {
|
|
@@ -1811,7 +1811,7 @@ exports.deserializeAws_restJson1StopFlowCommand = deserializeAws_restJson1StopFl
|
|
|
1811
1811
|
const deserializeAws_restJson1StopFlowCommandError = async (output, context) => {
|
|
1812
1812
|
const parsedOutput = {
|
|
1813
1813
|
...output,
|
|
1814
|
-
body: await
|
|
1814
|
+
body: await parseErrorBody(output.body, context),
|
|
1815
1815
|
};
|
|
1816
1816
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1817
1817
|
switch (errorCode) {
|
|
@@ -1857,7 +1857,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
1857
1857
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
1858
1858
|
const parsedOutput = {
|
|
1859
1859
|
...output,
|
|
1860
|
-
body: await
|
|
1860
|
+
body: await parseErrorBody(output.body, context),
|
|
1861
1861
|
};
|
|
1862
1862
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1863
1863
|
switch (errorCode) {
|
|
@@ -1894,7 +1894,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
1894
1894
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
1895
1895
|
const parsedOutput = {
|
|
1896
1896
|
...output,
|
|
1897
|
-
body: await
|
|
1897
|
+
body: await parseErrorBody(output.body, context),
|
|
1898
1898
|
};
|
|
1899
1899
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1900
1900
|
switch (errorCode) {
|
|
@@ -1934,7 +1934,7 @@ exports.deserializeAws_restJson1UpdateFlowCommand = deserializeAws_restJson1Upda
|
|
|
1934
1934
|
const deserializeAws_restJson1UpdateFlowCommandError = async (output, context) => {
|
|
1935
1935
|
const parsedOutput = {
|
|
1936
1936
|
...output,
|
|
1937
|
-
body: await
|
|
1937
|
+
body: await parseErrorBody(output.body, context),
|
|
1938
1938
|
};
|
|
1939
1939
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1940
1940
|
switch (errorCode) {
|
|
@@ -1986,7 +1986,7 @@ exports.deserializeAws_restJson1UpdateFlowEntitlementCommand = deserializeAws_re
|
|
|
1986
1986
|
const deserializeAws_restJson1UpdateFlowEntitlementCommandError = async (output, context) => {
|
|
1987
1987
|
const parsedOutput = {
|
|
1988
1988
|
...output,
|
|
1989
|
-
body: await
|
|
1989
|
+
body: await parseErrorBody(output.body, context),
|
|
1990
1990
|
};
|
|
1991
1991
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1992
1992
|
switch (errorCode) {
|
|
@@ -2038,7 +2038,7 @@ exports.deserializeAws_restJson1UpdateFlowMediaStreamCommand = deserializeAws_re
|
|
|
2038
2038
|
const deserializeAws_restJson1UpdateFlowMediaStreamCommandError = async (output, context) => {
|
|
2039
2039
|
const parsedOutput = {
|
|
2040
2040
|
...output,
|
|
2041
|
-
body: await
|
|
2041
|
+
body: await parseErrorBody(output.body, context),
|
|
2042
2042
|
};
|
|
2043
2043
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2044
2044
|
switch (errorCode) {
|
|
@@ -2090,7 +2090,7 @@ exports.deserializeAws_restJson1UpdateFlowOutputCommand = deserializeAws_restJso
|
|
|
2090
2090
|
const deserializeAws_restJson1UpdateFlowOutputCommandError = async (output, context) => {
|
|
2091
2091
|
const parsedOutput = {
|
|
2092
2092
|
...output,
|
|
2093
|
-
body: await
|
|
2093
|
+
body: await parseErrorBody(output.body, context),
|
|
2094
2094
|
};
|
|
2095
2095
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2096
2096
|
switch (errorCode) {
|
|
@@ -2142,7 +2142,7 @@ exports.deserializeAws_restJson1UpdateFlowSourceCommand = deserializeAws_restJso
|
|
|
2142
2142
|
const deserializeAws_restJson1UpdateFlowSourceCommandError = async (output, context) => {
|
|
2143
2143
|
const parsedOutput = {
|
|
2144
2144
|
...output,
|
|
2145
|
-
body: await
|
|
2145
|
+
body: await parseErrorBody(output.body, context),
|
|
2146
2146
|
};
|
|
2147
2147
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2148
2148
|
switch (errorCode) {
|
|
@@ -3068,6 +3068,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
3068
3068
|
}
|
|
3069
3069
|
return {};
|
|
3070
3070
|
});
|
|
3071
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
3072
|
+
var _a;
|
|
3073
|
+
const value = await parseBody(errorBody, context);
|
|
3074
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
3075
|
+
return value;
|
|
3076
|
+
};
|
|
3071
3077
|
const loadRestJsonErrorCode = (output, data) => {
|
|
3072
3078
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3073
3079
|
const sanitizeErrorCode = (rawValue) => {
|