@aws-sdk/client-mediatailor 3.179.0 → 3.181.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 +48 -42
- package/dist-es/protocols/Aws_restJson1.js +55 -42
- package/package.json +6 -6
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.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **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))
|
|
12
|
+
* **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))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
19
|
+
|
|
20
|
+
**Note:** Version bump only for package @aws-sdk/client-mediatailor
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.179.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.178.0...v3.179.0) (2022-09-26)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-mediatailor
|
|
@@ -959,7 +959,7 @@ exports.deserializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommand = d
|
|
|
959
959
|
const deserializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommandError = async (output, context) => {
|
|
960
960
|
const parsedOutput = {
|
|
961
961
|
...output,
|
|
962
|
-
body: await
|
|
962
|
+
body: await parseErrorBody(output.body, context),
|
|
963
963
|
};
|
|
964
964
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
965
965
|
const parsedBody = parsedOutput.body;
|
|
@@ -1014,7 +1014,7 @@ exports.deserializeAws_restJson1CreateChannelCommand = deserializeAws_restJson1C
|
|
|
1014
1014
|
const deserializeAws_restJson1CreateChannelCommandError = async (output, context) => {
|
|
1015
1015
|
const parsedOutput = {
|
|
1016
1016
|
...output,
|
|
1017
|
-
body: await
|
|
1017
|
+
body: await parseErrorBody(output.body, context),
|
|
1018
1018
|
};
|
|
1019
1019
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1020
1020
|
const parsedBody = parsedOutput.body;
|
|
@@ -1060,7 +1060,7 @@ exports.deserializeAws_restJson1CreateLiveSourceCommand = deserializeAws_restJso
|
|
|
1060
1060
|
const deserializeAws_restJson1CreateLiveSourceCommandError = async (output, context) => {
|
|
1061
1061
|
const parsedOutput = {
|
|
1062
1062
|
...output,
|
|
1063
|
-
body: await
|
|
1063
|
+
body: await parseErrorBody(output.body, context),
|
|
1064
1064
|
};
|
|
1065
1065
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1066
1066
|
const parsedBody = parsedOutput.body;
|
|
@@ -1103,7 +1103,7 @@ exports.deserializeAws_restJson1CreatePrefetchScheduleCommand = deserializeAws_r
|
|
|
1103
1103
|
const deserializeAws_restJson1CreatePrefetchScheduleCommandError = async (output, context) => {
|
|
1104
1104
|
const parsedOutput = {
|
|
1105
1105
|
...output,
|
|
1106
|
-
body: await
|
|
1106
|
+
body: await parseErrorBody(output.body, context),
|
|
1107
1107
|
};
|
|
1108
1108
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1109
1109
|
const parsedBody = parsedOutput.body;
|
|
@@ -1155,7 +1155,7 @@ exports.deserializeAws_restJson1CreateProgramCommand = deserializeAws_restJson1C
|
|
|
1155
1155
|
const deserializeAws_restJson1CreateProgramCommandError = async (output, context) => {
|
|
1156
1156
|
const parsedOutput = {
|
|
1157
1157
|
...output,
|
|
1158
|
-
body: await
|
|
1158
|
+
body: await parseErrorBody(output.body, context),
|
|
1159
1159
|
};
|
|
1160
1160
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1161
1161
|
const parsedBody = parsedOutput.body;
|
|
@@ -1207,7 +1207,7 @@ exports.deserializeAws_restJson1CreateSourceLocationCommand = deserializeAws_res
|
|
|
1207
1207
|
const deserializeAws_restJson1CreateSourceLocationCommandError = async (output, context) => {
|
|
1208
1208
|
const parsedOutput = {
|
|
1209
1209
|
...output,
|
|
1210
|
-
body: await
|
|
1210
|
+
body: await parseErrorBody(output.body, context),
|
|
1211
1211
|
};
|
|
1212
1212
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1213
1213
|
const parsedBody = parsedOutput.body;
|
|
@@ -1253,7 +1253,7 @@ exports.deserializeAws_restJson1CreateVodSourceCommand = deserializeAws_restJson
|
|
|
1253
1253
|
const deserializeAws_restJson1CreateVodSourceCommandError = async (output, context) => {
|
|
1254
1254
|
const parsedOutput = {
|
|
1255
1255
|
...output,
|
|
1256
|
-
body: await
|
|
1256
|
+
body: await parseErrorBody(output.body, context),
|
|
1257
1257
|
};
|
|
1258
1258
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1259
1259
|
const parsedBody = parsedOutput.body;
|
|
@@ -1278,7 +1278,7 @@ exports.deserializeAws_restJson1DeleteChannelCommand = deserializeAws_restJson1D
|
|
|
1278
1278
|
const deserializeAws_restJson1DeleteChannelCommandError = async (output, context) => {
|
|
1279
1279
|
const parsedOutput = {
|
|
1280
1280
|
...output,
|
|
1281
|
-
body: await
|
|
1281
|
+
body: await parseErrorBody(output.body, context),
|
|
1282
1282
|
};
|
|
1283
1283
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1284
1284
|
const parsedBody = parsedOutput.body;
|
|
@@ -1303,7 +1303,7 @@ exports.deserializeAws_restJson1DeleteChannelPolicyCommand = deserializeAws_rest
|
|
|
1303
1303
|
const deserializeAws_restJson1DeleteChannelPolicyCommandError = async (output, context) => {
|
|
1304
1304
|
const parsedOutput = {
|
|
1305
1305
|
...output,
|
|
1306
|
-
body: await
|
|
1306
|
+
body: await parseErrorBody(output.body, context),
|
|
1307
1307
|
};
|
|
1308
1308
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1309
1309
|
const parsedBody = parsedOutput.body;
|
|
@@ -1328,7 +1328,7 @@ exports.deserializeAws_restJson1DeleteLiveSourceCommand = deserializeAws_restJso
|
|
|
1328
1328
|
const deserializeAws_restJson1DeleteLiveSourceCommandError = async (output, context) => {
|
|
1329
1329
|
const parsedOutput = {
|
|
1330
1330
|
...output,
|
|
1331
|
-
body: await
|
|
1331
|
+
body: await parseErrorBody(output.body, context),
|
|
1332
1332
|
};
|
|
1333
1333
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1334
1334
|
const parsedBody = parsedOutput.body;
|
|
@@ -1353,7 +1353,7 @@ exports.deserializeAws_restJson1DeletePlaybackConfigurationCommand = deserialize
|
|
|
1353
1353
|
const deserializeAws_restJson1DeletePlaybackConfigurationCommandError = async (output, context) => {
|
|
1354
1354
|
const parsedOutput = {
|
|
1355
1355
|
...output,
|
|
1356
|
-
body: await
|
|
1356
|
+
body: await parseErrorBody(output.body, context),
|
|
1357
1357
|
};
|
|
1358
1358
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1359
1359
|
const parsedBody = parsedOutput.body;
|
|
@@ -1378,7 +1378,7 @@ exports.deserializeAws_restJson1DeletePrefetchScheduleCommand = deserializeAws_r
|
|
|
1378
1378
|
const deserializeAws_restJson1DeletePrefetchScheduleCommandError = async (output, context) => {
|
|
1379
1379
|
const parsedOutput = {
|
|
1380
1380
|
...output,
|
|
1381
|
-
body: await
|
|
1381
|
+
body: await parseErrorBody(output.body, context),
|
|
1382
1382
|
};
|
|
1383
1383
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1384
1384
|
const parsedBody = parsedOutput.body;
|
|
@@ -1403,7 +1403,7 @@ exports.deserializeAws_restJson1DeleteProgramCommand = deserializeAws_restJson1D
|
|
|
1403
1403
|
const deserializeAws_restJson1DeleteProgramCommandError = async (output, context) => {
|
|
1404
1404
|
const parsedOutput = {
|
|
1405
1405
|
...output,
|
|
1406
|
-
body: await
|
|
1406
|
+
body: await parseErrorBody(output.body, context),
|
|
1407
1407
|
};
|
|
1408
1408
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1409
1409
|
const parsedBody = parsedOutput.body;
|
|
@@ -1428,7 +1428,7 @@ exports.deserializeAws_restJson1DeleteSourceLocationCommand = deserializeAws_res
|
|
|
1428
1428
|
const deserializeAws_restJson1DeleteSourceLocationCommandError = async (output, context) => {
|
|
1429
1429
|
const parsedOutput = {
|
|
1430
1430
|
...output,
|
|
1431
|
-
body: await
|
|
1431
|
+
body: await parseErrorBody(output.body, context),
|
|
1432
1432
|
};
|
|
1433
1433
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1434
1434
|
const parsedBody = parsedOutput.body;
|
|
@@ -1453,7 +1453,7 @@ exports.deserializeAws_restJson1DeleteVodSourceCommand = deserializeAws_restJson
|
|
|
1453
1453
|
const deserializeAws_restJson1DeleteVodSourceCommandError = async (output, context) => {
|
|
1454
1454
|
const parsedOutput = {
|
|
1455
1455
|
...output,
|
|
1456
|
-
body: await
|
|
1456
|
+
body: await parseErrorBody(output.body, context),
|
|
1457
1457
|
};
|
|
1458
1458
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1459
1459
|
const parsedBody = parsedOutput.body;
|
|
@@ -1508,7 +1508,7 @@ exports.deserializeAws_restJson1DescribeChannelCommand = deserializeAws_restJson
|
|
|
1508
1508
|
const deserializeAws_restJson1DescribeChannelCommandError = async (output, context) => {
|
|
1509
1509
|
const parsedOutput = {
|
|
1510
1510
|
...output,
|
|
1511
|
-
body: await
|
|
1511
|
+
body: await parseErrorBody(output.body, context),
|
|
1512
1512
|
};
|
|
1513
1513
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1514
1514
|
const parsedBody = parsedOutput.body;
|
|
@@ -1554,7 +1554,7 @@ exports.deserializeAws_restJson1DescribeLiveSourceCommand = deserializeAws_restJ
|
|
|
1554
1554
|
const deserializeAws_restJson1DescribeLiveSourceCommandError = async (output, context) => {
|
|
1555
1555
|
const parsedOutput = {
|
|
1556
1556
|
...output,
|
|
1557
|
-
body: await
|
|
1557
|
+
body: await parseErrorBody(output.body, context),
|
|
1558
1558
|
};
|
|
1559
1559
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1560
1560
|
const parsedBody = parsedOutput.body;
|
|
@@ -1606,7 +1606,7 @@ exports.deserializeAws_restJson1DescribeProgramCommand = deserializeAws_restJson
|
|
|
1606
1606
|
const deserializeAws_restJson1DescribeProgramCommandError = async (output, context) => {
|
|
1607
1607
|
const parsedOutput = {
|
|
1608
1608
|
...output,
|
|
1609
|
-
body: await
|
|
1609
|
+
body: await parseErrorBody(output.body, context),
|
|
1610
1610
|
};
|
|
1611
1611
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1612
1612
|
const parsedBody = parsedOutput.body;
|
|
@@ -1658,7 +1658,7 @@ exports.deserializeAws_restJson1DescribeSourceLocationCommand = deserializeAws_r
|
|
|
1658
1658
|
const deserializeAws_restJson1DescribeSourceLocationCommandError = async (output, context) => {
|
|
1659
1659
|
const parsedOutput = {
|
|
1660
1660
|
...output,
|
|
1661
|
-
body: await
|
|
1661
|
+
body: await parseErrorBody(output.body, context),
|
|
1662
1662
|
};
|
|
1663
1663
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1664
1664
|
const parsedBody = parsedOutput.body;
|
|
@@ -1704,7 +1704,7 @@ exports.deserializeAws_restJson1DescribeVodSourceCommand = deserializeAws_restJs
|
|
|
1704
1704
|
const deserializeAws_restJson1DescribeVodSourceCommandError = async (output, context) => {
|
|
1705
1705
|
const parsedOutput = {
|
|
1706
1706
|
...output,
|
|
1707
|
-
body: await
|
|
1707
|
+
body: await parseErrorBody(output.body, context),
|
|
1708
1708
|
};
|
|
1709
1709
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1710
1710
|
const parsedBody = parsedOutput.body;
|
|
@@ -1732,7 +1732,7 @@ exports.deserializeAws_restJson1GetChannelPolicyCommand = deserializeAws_restJso
|
|
|
1732
1732
|
const deserializeAws_restJson1GetChannelPolicyCommandError = async (output, context) => {
|
|
1733
1733
|
const parsedOutput = {
|
|
1734
1734
|
...output,
|
|
1735
|
-
body: await
|
|
1735
|
+
body: await parseErrorBody(output.body, context),
|
|
1736
1736
|
};
|
|
1737
1737
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1738
1738
|
const parsedBody = parsedOutput.body;
|
|
@@ -1763,7 +1763,7 @@ exports.deserializeAws_restJson1GetChannelScheduleCommand = deserializeAws_restJ
|
|
|
1763
1763
|
const deserializeAws_restJson1GetChannelScheduleCommandError = async (output, context) => {
|
|
1764
1764
|
const parsedOutput = {
|
|
1765
1765
|
...output,
|
|
1766
|
-
body: await
|
|
1766
|
+
body: await parseErrorBody(output.body, context),
|
|
1767
1767
|
};
|
|
1768
1768
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1769
1769
|
const parsedBody = parsedOutput.body;
|
|
@@ -1845,7 +1845,7 @@ exports.deserializeAws_restJson1GetPlaybackConfigurationCommand = deserializeAws
|
|
|
1845
1845
|
const deserializeAws_restJson1GetPlaybackConfigurationCommandError = async (output, context) => {
|
|
1846
1846
|
const parsedOutput = {
|
|
1847
1847
|
...output,
|
|
1848
|
-
body: await
|
|
1848
|
+
body: await parseErrorBody(output.body, context),
|
|
1849
1849
|
};
|
|
1850
1850
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1851
1851
|
const parsedBody = parsedOutput.body;
|
|
@@ -1888,7 +1888,7 @@ exports.deserializeAws_restJson1GetPrefetchScheduleCommand = deserializeAws_rest
|
|
|
1888
1888
|
const deserializeAws_restJson1GetPrefetchScheduleCommandError = async (output, context) => {
|
|
1889
1889
|
const parsedOutput = {
|
|
1890
1890
|
...output,
|
|
1891
|
-
body: await
|
|
1891
|
+
body: await parseErrorBody(output.body, context),
|
|
1892
1892
|
};
|
|
1893
1893
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1894
1894
|
const parsedBody = parsedOutput.body;
|
|
@@ -1919,7 +1919,7 @@ exports.deserializeAws_restJson1ListAlertsCommand = deserializeAws_restJson1List
|
|
|
1919
1919
|
const deserializeAws_restJson1ListAlertsCommandError = async (output, context) => {
|
|
1920
1920
|
const parsedOutput = {
|
|
1921
1921
|
...output,
|
|
1922
|
-
body: await
|
|
1922
|
+
body: await parseErrorBody(output.body, context),
|
|
1923
1923
|
};
|
|
1924
1924
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1925
1925
|
const parsedBody = parsedOutput.body;
|
|
@@ -1950,7 +1950,7 @@ exports.deserializeAws_restJson1ListChannelsCommand = deserializeAws_restJson1Li
|
|
|
1950
1950
|
const deserializeAws_restJson1ListChannelsCommandError = 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
|
const parsedBody = parsedOutput.body;
|
|
@@ -1981,7 +1981,7 @@ exports.deserializeAws_restJson1ListLiveSourcesCommand = deserializeAws_restJson
|
|
|
1981
1981
|
const deserializeAws_restJson1ListLiveSourcesCommandError = async (output, context) => {
|
|
1982
1982
|
const parsedOutput = {
|
|
1983
1983
|
...output,
|
|
1984
|
-
body: await
|
|
1984
|
+
body: await parseErrorBody(output.body, context),
|
|
1985
1985
|
};
|
|
1986
1986
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1987
1987
|
const parsedBody = parsedOutput.body;
|
|
@@ -2012,7 +2012,7 @@ exports.deserializeAws_restJson1ListPlaybackConfigurationsCommand = deserializeA
|
|
|
2012
2012
|
const deserializeAws_restJson1ListPlaybackConfigurationsCommandError = async (output, context) => {
|
|
2013
2013
|
const parsedOutput = {
|
|
2014
2014
|
...output,
|
|
2015
|
-
body: await
|
|
2015
|
+
body: await parseErrorBody(output.body, context),
|
|
2016
2016
|
};
|
|
2017
2017
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2018
2018
|
const parsedBody = parsedOutput.body;
|
|
@@ -2043,7 +2043,7 @@ exports.deserializeAws_restJson1ListPrefetchSchedulesCommand = deserializeAws_re
|
|
|
2043
2043
|
const deserializeAws_restJson1ListPrefetchSchedulesCommandError = async (output, context) => {
|
|
2044
2044
|
const parsedOutput = {
|
|
2045
2045
|
...output,
|
|
2046
|
-
body: await
|
|
2046
|
+
body: await parseErrorBody(output.body, context),
|
|
2047
2047
|
};
|
|
2048
2048
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2049
2049
|
const parsedBody = parsedOutput.body;
|
|
@@ -2074,7 +2074,7 @@ exports.deserializeAws_restJson1ListSourceLocationsCommand = deserializeAws_rest
|
|
|
2074
2074
|
const deserializeAws_restJson1ListSourceLocationsCommandError = async (output, context) => {
|
|
2075
2075
|
const parsedOutput = {
|
|
2076
2076
|
...output,
|
|
2077
|
-
body: await
|
|
2077
|
+
body: await parseErrorBody(output.body, context),
|
|
2078
2078
|
};
|
|
2079
2079
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2080
2080
|
const parsedBody = parsedOutput.body;
|
|
@@ -2102,7 +2102,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
2102
2102
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
2103
2103
|
const parsedOutput = {
|
|
2104
2104
|
...output,
|
|
2105
|
-
body: await
|
|
2105
|
+
body: await parseErrorBody(output.body, context),
|
|
2106
2106
|
};
|
|
2107
2107
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2108
2108
|
switch (errorCode) {
|
|
@@ -2139,7 +2139,7 @@ exports.deserializeAws_restJson1ListVodSourcesCommand = deserializeAws_restJson1
|
|
|
2139
2139
|
const deserializeAws_restJson1ListVodSourcesCommandError = async (output, context) => {
|
|
2140
2140
|
const parsedOutput = {
|
|
2141
2141
|
...output,
|
|
2142
|
-
body: await
|
|
2142
|
+
body: await parseErrorBody(output.body, context),
|
|
2143
2143
|
};
|
|
2144
2144
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2145
2145
|
const parsedBody = parsedOutput.body;
|
|
@@ -2164,7 +2164,7 @@ exports.deserializeAws_restJson1PutChannelPolicyCommand = deserializeAws_restJso
|
|
|
2164
2164
|
const deserializeAws_restJson1PutChannelPolicyCommandError = async (output, context) => {
|
|
2165
2165
|
const parsedOutput = {
|
|
2166
2166
|
...output,
|
|
2167
|
-
body: await
|
|
2167
|
+
body: await parseErrorBody(output.body, context),
|
|
2168
2168
|
};
|
|
2169
2169
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2170
2170
|
const parsedBody = parsedOutput.body;
|
|
@@ -2246,7 +2246,7 @@ exports.deserializeAws_restJson1PutPlaybackConfigurationCommand = deserializeAws
|
|
|
2246
2246
|
const deserializeAws_restJson1PutPlaybackConfigurationCommandError = async (output, context) => {
|
|
2247
2247
|
const parsedOutput = {
|
|
2248
2248
|
...output,
|
|
2249
|
-
body: await
|
|
2249
|
+
body: await parseErrorBody(output.body, context),
|
|
2250
2250
|
};
|
|
2251
2251
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2252
2252
|
const parsedBody = parsedOutput.body;
|
|
@@ -2271,7 +2271,7 @@ exports.deserializeAws_restJson1StartChannelCommand = deserializeAws_restJson1St
|
|
|
2271
2271
|
const deserializeAws_restJson1StartChannelCommandError = async (output, context) => {
|
|
2272
2272
|
const parsedOutput = {
|
|
2273
2273
|
...output,
|
|
2274
|
-
body: await
|
|
2274
|
+
body: await parseErrorBody(output.body, context),
|
|
2275
2275
|
};
|
|
2276
2276
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2277
2277
|
const parsedBody = parsedOutput.body;
|
|
@@ -2296,7 +2296,7 @@ exports.deserializeAws_restJson1StopChannelCommand = deserializeAws_restJson1Sto
|
|
|
2296
2296
|
const deserializeAws_restJson1StopChannelCommandError = async (output, context) => {
|
|
2297
2297
|
const parsedOutput = {
|
|
2298
2298
|
...output,
|
|
2299
|
-
body: await
|
|
2299
|
+
body: await parseErrorBody(output.body, context),
|
|
2300
2300
|
};
|
|
2301
2301
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2302
2302
|
const parsedBody = parsedOutput.body;
|
|
@@ -2321,7 +2321,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
2321
2321
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
2322
2322
|
const parsedOutput = {
|
|
2323
2323
|
...output,
|
|
2324
|
-
body: await
|
|
2324
|
+
body: await parseErrorBody(output.body, context),
|
|
2325
2325
|
};
|
|
2326
2326
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2327
2327
|
switch (errorCode) {
|
|
@@ -2352,7 +2352,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
2352
2352
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
2353
2353
|
const parsedOutput = {
|
|
2354
2354
|
...output,
|
|
2355
|
-
body: await
|
|
2355
|
+
body: await parseErrorBody(output.body, context),
|
|
2356
2356
|
};
|
|
2357
2357
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2358
2358
|
switch (errorCode) {
|
|
@@ -2413,7 +2413,7 @@ exports.deserializeAws_restJson1UpdateChannelCommand = deserializeAws_restJson1U
|
|
|
2413
2413
|
const deserializeAws_restJson1UpdateChannelCommandError = async (output, context) => {
|
|
2414
2414
|
const parsedOutput = {
|
|
2415
2415
|
...output,
|
|
2416
|
-
body: await
|
|
2416
|
+
body: await parseErrorBody(output.body, context),
|
|
2417
2417
|
};
|
|
2418
2418
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2419
2419
|
const parsedBody = parsedOutput.body;
|
|
@@ -2459,7 +2459,7 @@ exports.deserializeAws_restJson1UpdateLiveSourceCommand = deserializeAws_restJso
|
|
|
2459
2459
|
const deserializeAws_restJson1UpdateLiveSourceCommandError = async (output, context) => {
|
|
2460
2460
|
const parsedOutput = {
|
|
2461
2461
|
...output,
|
|
2462
|
-
body: await
|
|
2462
|
+
body: await parseErrorBody(output.body, context),
|
|
2463
2463
|
};
|
|
2464
2464
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2465
2465
|
const parsedBody = parsedOutput.body;
|
|
@@ -2511,7 +2511,7 @@ exports.deserializeAws_restJson1UpdateSourceLocationCommand = deserializeAws_res
|
|
|
2511
2511
|
const deserializeAws_restJson1UpdateSourceLocationCommandError = async (output, context) => {
|
|
2512
2512
|
const parsedOutput = {
|
|
2513
2513
|
...output,
|
|
2514
|
-
body: await
|
|
2514
|
+
body: await parseErrorBody(output.body, context),
|
|
2515
2515
|
};
|
|
2516
2516
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2517
2517
|
const parsedBody = parsedOutput.body;
|
|
@@ -2557,7 +2557,7 @@ exports.deserializeAws_restJson1UpdateVodSourceCommand = deserializeAws_restJson
|
|
|
2557
2557
|
const deserializeAws_restJson1UpdateVodSourceCommandError = async (output, context) => {
|
|
2558
2558
|
const parsedOutput = {
|
|
2559
2559
|
...output,
|
|
2560
|
-
body: await
|
|
2560
|
+
body: await parseErrorBody(output.body, context),
|
|
2561
2561
|
};
|
|
2562
2562
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2563
2563
|
const parsedBody = parsedOutput.body;
|
|
@@ -3353,6 +3353,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
3353
3353
|
}
|
|
3354
3354
|
return {};
|
|
3355
3355
|
});
|
|
3356
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
3357
|
+
var _a;
|
|
3358
|
+
const value = await parseBody(errorBody, context);
|
|
3359
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
3360
|
+
return value;
|
|
3361
|
+
};
|
|
3356
3362
|
const loadRestJsonErrorCode = (output, data) => {
|
|
3357
3363
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3358
3364
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -1114,7 +1114,7 @@ var deserializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommandError =
|
|
|
1114
1114
|
case 0:
|
|
1115
1115
|
_a = [__assign({}, output)];
|
|
1116
1116
|
_b = {};
|
|
1117
|
-
return [4,
|
|
1117
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1118
1118
|
case 1:
|
|
1119
1119
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
1120
1120
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1187,7 +1187,7 @@ var deserializeAws_restJson1CreateChannelCommandError = function (output, contex
|
|
|
1187
1187
|
case 0:
|
|
1188
1188
|
_a = [__assign({}, output)];
|
|
1189
1189
|
_b = {};
|
|
1190
|
-
return [4,
|
|
1190
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1191
1191
|
case 1:
|
|
1192
1192
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
1193
1193
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1251,7 +1251,7 @@ var deserializeAws_restJson1CreateLiveSourceCommandError = function (output, con
|
|
|
1251
1251
|
case 0:
|
|
1252
1252
|
_a = [__assign({}, output)];
|
|
1253
1253
|
_b = {};
|
|
1254
|
-
return [4,
|
|
1254
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1255
1255
|
case 1:
|
|
1256
1256
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
1257
1257
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1312,7 +1312,7 @@ var deserializeAws_restJson1CreatePrefetchScheduleCommandError = function (outpu
|
|
|
1312
1312
|
case 0:
|
|
1313
1313
|
_a = [__assign({}, output)];
|
|
1314
1314
|
_b = {};
|
|
1315
|
-
return [4,
|
|
1315
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1316
1316
|
case 1:
|
|
1317
1317
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
1318
1318
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1382,7 +1382,7 @@ var deserializeAws_restJson1CreateProgramCommandError = function (output, contex
|
|
|
1382
1382
|
case 0:
|
|
1383
1383
|
_a = [__assign({}, output)];
|
|
1384
1384
|
_b = {};
|
|
1385
|
-
return [4,
|
|
1385
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1386
1386
|
case 1:
|
|
1387
1387
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
1388
1388
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1452,7 +1452,7 @@ var deserializeAws_restJson1CreateSourceLocationCommandError = function (output,
|
|
|
1452
1452
|
case 0:
|
|
1453
1453
|
_a = [__assign({}, output)];
|
|
1454
1454
|
_b = {};
|
|
1455
|
-
return [4,
|
|
1455
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1456
1456
|
case 1:
|
|
1457
1457
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
1458
1458
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1516,7 +1516,7 @@ var deserializeAws_restJson1CreateVodSourceCommandError = function (output, cont
|
|
|
1516
1516
|
case 0:
|
|
1517
1517
|
_a = [__assign({}, output)];
|
|
1518
1518
|
_b = {};
|
|
1519
|
-
return [4,
|
|
1519
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1520
1520
|
case 1:
|
|
1521
1521
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
1522
1522
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1557,7 +1557,7 @@ var deserializeAws_restJson1DeleteChannelCommandError = function (output, contex
|
|
|
1557
1557
|
case 0:
|
|
1558
1558
|
_a = [__assign({}, output)];
|
|
1559
1559
|
_b = {};
|
|
1560
|
-
return [4,
|
|
1560
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1561
1561
|
case 1:
|
|
1562
1562
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
1563
1563
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1598,7 +1598,7 @@ var deserializeAws_restJson1DeleteChannelPolicyCommandError = function (output,
|
|
|
1598
1598
|
case 0:
|
|
1599
1599
|
_a = [__assign({}, output)];
|
|
1600
1600
|
_b = {};
|
|
1601
|
-
return [4,
|
|
1601
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1602
1602
|
case 1:
|
|
1603
1603
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
1604
1604
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1639,7 +1639,7 @@ var deserializeAws_restJson1DeleteLiveSourceCommandError = function (output, con
|
|
|
1639
1639
|
case 0:
|
|
1640
1640
|
_a = [__assign({}, output)];
|
|
1641
1641
|
_b = {};
|
|
1642
|
-
return [4,
|
|
1642
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1643
1643
|
case 1:
|
|
1644
1644
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
1645
1645
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1680,7 +1680,7 @@ var deserializeAws_restJson1DeletePlaybackConfigurationCommandError = function (
|
|
|
1680
1680
|
case 0:
|
|
1681
1681
|
_a = [__assign({}, output)];
|
|
1682
1682
|
_b = {};
|
|
1683
|
-
return [4,
|
|
1683
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1684
1684
|
case 1:
|
|
1685
1685
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
1686
1686
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1721,7 +1721,7 @@ var deserializeAws_restJson1DeletePrefetchScheduleCommandError = function (outpu
|
|
|
1721
1721
|
case 0:
|
|
1722
1722
|
_a = [__assign({}, output)];
|
|
1723
1723
|
_b = {};
|
|
1724
|
-
return [4,
|
|
1724
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1725
1725
|
case 1:
|
|
1726
1726
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
1727
1727
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1762,7 +1762,7 @@ var deserializeAws_restJson1DeleteProgramCommandError = function (output, contex
|
|
|
1762
1762
|
case 0:
|
|
1763
1763
|
_a = [__assign({}, output)];
|
|
1764
1764
|
_b = {};
|
|
1765
|
-
return [4,
|
|
1765
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1766
1766
|
case 1:
|
|
1767
1767
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
1768
1768
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1803,7 +1803,7 @@ var deserializeAws_restJson1DeleteSourceLocationCommandError = function (output,
|
|
|
1803
1803
|
case 0:
|
|
1804
1804
|
_a = [__assign({}, output)];
|
|
1805
1805
|
_b = {};
|
|
1806
|
-
return [4,
|
|
1806
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1807
1807
|
case 1:
|
|
1808
1808
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
1809
1809
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1844,7 +1844,7 @@ var deserializeAws_restJson1DeleteVodSourceCommandError = function (output, cont
|
|
|
1844
1844
|
case 0:
|
|
1845
1845
|
_a = [__assign({}, output)];
|
|
1846
1846
|
_b = {};
|
|
1847
|
-
return [4,
|
|
1847
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1848
1848
|
case 1:
|
|
1849
1849
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
1850
1850
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1917,7 +1917,7 @@ var deserializeAws_restJson1DescribeChannelCommandError = function (output, cont
|
|
|
1917
1917
|
case 0:
|
|
1918
1918
|
_a = [__assign({}, output)];
|
|
1919
1919
|
_b = {};
|
|
1920
|
-
return [4,
|
|
1920
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1921
1921
|
case 1:
|
|
1922
1922
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
1923
1923
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1981,7 +1981,7 @@ var deserializeAws_restJson1DescribeLiveSourceCommandError = function (output, c
|
|
|
1981
1981
|
case 0:
|
|
1982
1982
|
_a = [__assign({}, output)];
|
|
1983
1983
|
_b = {};
|
|
1984
|
-
return [4,
|
|
1984
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1985
1985
|
case 1:
|
|
1986
1986
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
1987
1987
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2051,7 +2051,7 @@ var deserializeAws_restJson1DescribeProgramCommandError = function (output, cont
|
|
|
2051
2051
|
case 0:
|
|
2052
2052
|
_a = [__assign({}, output)];
|
|
2053
2053
|
_b = {};
|
|
2054
|
-
return [4,
|
|
2054
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2055
2055
|
case 1:
|
|
2056
2056
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2057
2057
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2121,7 +2121,7 @@ var deserializeAws_restJson1DescribeSourceLocationCommandError = function (outpu
|
|
|
2121
2121
|
case 0:
|
|
2122
2122
|
_a = [__assign({}, output)];
|
|
2123
2123
|
_b = {};
|
|
2124
|
-
return [4,
|
|
2124
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2125
2125
|
case 1:
|
|
2126
2126
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2127
2127
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2185,7 +2185,7 @@ var deserializeAws_restJson1DescribeVodSourceCommandError = function (output, co
|
|
|
2185
2185
|
case 0:
|
|
2186
2186
|
_a = [__assign({}, output)];
|
|
2187
2187
|
_b = {};
|
|
2188
|
-
return [4,
|
|
2188
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2189
2189
|
case 1:
|
|
2190
2190
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2191
2191
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2231,7 +2231,7 @@ var deserializeAws_restJson1GetChannelPolicyCommandError = function (output, con
|
|
|
2231
2231
|
case 0:
|
|
2232
2232
|
_a = [__assign({}, output)];
|
|
2233
2233
|
_b = {};
|
|
2234
|
-
return [4,
|
|
2234
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2235
2235
|
case 1:
|
|
2236
2236
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2237
2237
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2280,7 +2280,7 @@ var deserializeAws_restJson1GetChannelScheduleCommandError = function (output, c
|
|
|
2280
2280
|
case 0:
|
|
2281
2281
|
_a = [__assign({}, output)];
|
|
2282
2282
|
_b = {};
|
|
2283
|
-
return [4,
|
|
2283
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2284
2284
|
case 1:
|
|
2285
2285
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2286
2286
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2380,7 +2380,7 @@ var deserializeAws_restJson1GetPlaybackConfigurationCommandError = function (out
|
|
|
2380
2380
|
case 0:
|
|
2381
2381
|
_a = [__assign({}, output)];
|
|
2382
2382
|
_b = {};
|
|
2383
|
-
return [4,
|
|
2383
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2384
2384
|
case 1:
|
|
2385
2385
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2386
2386
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2441,7 +2441,7 @@ var deserializeAws_restJson1GetPrefetchScheduleCommandError = function (output,
|
|
|
2441
2441
|
case 0:
|
|
2442
2442
|
_a = [__assign({}, output)];
|
|
2443
2443
|
_b = {};
|
|
2444
|
-
return [4,
|
|
2444
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2445
2445
|
case 1:
|
|
2446
2446
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2447
2447
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2490,7 +2490,7 @@ var deserializeAws_restJson1ListAlertsCommandError = function (output, context)
|
|
|
2490
2490
|
case 0:
|
|
2491
2491
|
_a = [__assign({}, output)];
|
|
2492
2492
|
_b = {};
|
|
2493
|
-
return [4,
|
|
2493
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2494
2494
|
case 1:
|
|
2495
2495
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2496
2496
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2539,7 +2539,7 @@ var deserializeAws_restJson1ListChannelsCommandError = function (output, context
|
|
|
2539
2539
|
case 0:
|
|
2540
2540
|
_a = [__assign({}, output)];
|
|
2541
2541
|
_b = {};
|
|
2542
|
-
return [4,
|
|
2542
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2543
2543
|
case 1:
|
|
2544
2544
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2545
2545
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2588,7 +2588,7 @@ var deserializeAws_restJson1ListLiveSourcesCommandError = function (output, cont
|
|
|
2588
2588
|
case 0:
|
|
2589
2589
|
_a = [__assign({}, output)];
|
|
2590
2590
|
_b = {};
|
|
2591
|
-
return [4,
|
|
2591
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2592
2592
|
case 1:
|
|
2593
2593
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2594
2594
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2637,7 +2637,7 @@ var deserializeAws_restJson1ListPlaybackConfigurationsCommandError = function (o
|
|
|
2637
2637
|
case 0:
|
|
2638
2638
|
_a = [__assign({}, output)];
|
|
2639
2639
|
_b = {};
|
|
2640
|
-
return [4,
|
|
2640
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2641
2641
|
case 1:
|
|
2642
2642
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2643
2643
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2686,7 +2686,7 @@ var deserializeAws_restJson1ListPrefetchSchedulesCommandError = function (output
|
|
|
2686
2686
|
case 0:
|
|
2687
2687
|
_a = [__assign({}, output)];
|
|
2688
2688
|
_b = {};
|
|
2689
|
-
return [4,
|
|
2689
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2690
2690
|
case 1:
|
|
2691
2691
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2692
2692
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2735,7 +2735,7 @@ var deserializeAws_restJson1ListSourceLocationsCommandError = function (output,
|
|
|
2735
2735
|
case 0:
|
|
2736
2736
|
_a = [__assign({}, output)];
|
|
2737
2737
|
_b = {};
|
|
2738
|
-
return [4,
|
|
2738
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2739
2739
|
case 1:
|
|
2740
2740
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2741
2741
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2781,7 +2781,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2781
2781
|
case 0:
|
|
2782
2782
|
_a = [__assign({}, output)];
|
|
2783
2783
|
_c = {};
|
|
2784
|
-
return [4,
|
|
2784
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2785
2785
|
case 1:
|
|
2786
2786
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2787
2787
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2840,7 +2840,7 @@ var deserializeAws_restJson1ListVodSourcesCommandError = function (output, conte
|
|
|
2840
2840
|
case 0:
|
|
2841
2841
|
_a = [__assign({}, output)];
|
|
2842
2842
|
_b = {};
|
|
2843
|
-
return [4,
|
|
2843
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2844
2844
|
case 1:
|
|
2845
2845
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2846
2846
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2881,7 +2881,7 @@ var deserializeAws_restJson1PutChannelPolicyCommandError = function (output, con
|
|
|
2881
2881
|
case 0:
|
|
2882
2882
|
_a = [__assign({}, output)];
|
|
2883
2883
|
_b = {};
|
|
2884
|
-
return [4,
|
|
2884
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2885
2885
|
case 1:
|
|
2886
2886
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2887
2887
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2981,7 +2981,7 @@ var deserializeAws_restJson1PutPlaybackConfigurationCommandError = function (out
|
|
|
2981
2981
|
case 0:
|
|
2982
2982
|
_a = [__assign({}, output)];
|
|
2983
2983
|
_b = {};
|
|
2984
|
-
return [4,
|
|
2984
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2985
2985
|
case 1:
|
|
2986
2986
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
2987
2987
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3022,7 +3022,7 @@ var deserializeAws_restJson1StartChannelCommandError = function (output, context
|
|
|
3022
3022
|
case 0:
|
|
3023
3023
|
_a = [__assign({}, output)];
|
|
3024
3024
|
_b = {};
|
|
3025
|
-
return [4,
|
|
3025
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3026
3026
|
case 1:
|
|
3027
3027
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
3028
3028
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3063,7 +3063,7 @@ var deserializeAws_restJson1StopChannelCommandError = function (output, context)
|
|
|
3063
3063
|
case 0:
|
|
3064
3064
|
_a = [__assign({}, output)];
|
|
3065
3065
|
_b = {};
|
|
3066
|
-
return [4,
|
|
3066
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3067
3067
|
case 1:
|
|
3068
3068
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
3069
3069
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3104,7 +3104,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
3104
3104
|
case 0:
|
|
3105
3105
|
_a = [__assign({}, output)];
|
|
3106
3106
|
_c = {};
|
|
3107
|
-
return [4,
|
|
3107
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3108
3108
|
case 1:
|
|
3109
3109
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3110
3110
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3155,7 +3155,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
3155
3155
|
case 0:
|
|
3156
3156
|
_a = [__assign({}, output)];
|
|
3157
3157
|
_c = {};
|
|
3158
|
-
return [4,
|
|
3158
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3159
3159
|
case 1:
|
|
3160
3160
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3161
3161
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3238,7 +3238,7 @@ var deserializeAws_restJson1UpdateChannelCommandError = function (output, contex
|
|
|
3238
3238
|
case 0:
|
|
3239
3239
|
_a = [__assign({}, output)];
|
|
3240
3240
|
_b = {};
|
|
3241
|
-
return [4,
|
|
3241
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3242
3242
|
case 1:
|
|
3243
3243
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
3244
3244
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3302,7 +3302,7 @@ var deserializeAws_restJson1UpdateLiveSourceCommandError = function (output, con
|
|
|
3302
3302
|
case 0:
|
|
3303
3303
|
_a = [__assign({}, output)];
|
|
3304
3304
|
_b = {};
|
|
3305
|
-
return [4,
|
|
3305
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3306
3306
|
case 1:
|
|
3307
3307
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
3308
3308
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3372,7 +3372,7 @@ var deserializeAws_restJson1UpdateSourceLocationCommandError = function (output,
|
|
|
3372
3372
|
case 0:
|
|
3373
3373
|
_a = [__assign({}, output)];
|
|
3374
3374
|
_b = {};
|
|
3375
|
-
return [4,
|
|
3375
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3376
3376
|
case 1:
|
|
3377
3377
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
3378
3378
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3436,7 +3436,7 @@ var deserializeAws_restJson1UpdateVodSourceCommandError = function (output, cont
|
|
|
3436
3436
|
case 0:
|
|
3437
3437
|
_a = [__assign({}, output)];
|
|
3438
3438
|
_b = {};
|
|
3439
|
-
return [4,
|
|
3439
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3440
3440
|
case 1:
|
|
3441
3441
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
3442
3442
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4158,6 +4158,19 @@ var parseBody = function (streamBody, context) {
|
|
|
4158
4158
|
return {};
|
|
4159
4159
|
});
|
|
4160
4160
|
};
|
|
4161
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4162
|
+
var value;
|
|
4163
|
+
var _a;
|
|
4164
|
+
return __generator(this, function (_b) {
|
|
4165
|
+
switch (_b.label) {
|
|
4166
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
4167
|
+
case 1:
|
|
4168
|
+
value = _b.sent();
|
|
4169
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
4170
|
+
return [2, value];
|
|
4171
|
+
}
|
|
4172
|
+
});
|
|
4173
|
+
}); };
|
|
4161
4174
|
var loadRestJsonErrorCode = function (output, data) {
|
|
4162
4175
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
4163
4176
|
var sanitizeErrorCode = function (rawValue) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-mediatailor",
|
|
3
3
|
"description": "AWS SDK for JavaScript Mediatailor Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.181.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.181.0",
|
|
23
23
|
"@aws-sdk/config-resolver": "3.178.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.181.0",
|
|
25
25
|
"@aws-sdk/fetch-http-handler": "3.178.0",
|
|
26
26
|
"@aws-sdk/hash-node": "3.178.0",
|
|
27
27
|
"@aws-sdk/invalid-dependency": "3.178.0",
|
|
@@ -37,15 +37,15 @@
|
|
|
37
37
|
"@aws-sdk/node-config-provider": "3.178.0",
|
|
38
38
|
"@aws-sdk/node-http-handler": "3.178.0",
|
|
39
39
|
"@aws-sdk/protocol-http": "3.178.0",
|
|
40
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
+
"@aws-sdk/smithy-client": "3.180.0",
|
|
41
41
|
"@aws-sdk/types": "3.178.0",
|
|
42
42
|
"@aws-sdk/url-parser": "3.178.0",
|
|
43
43
|
"@aws-sdk/util-base64-browser": "3.170.0",
|
|
44
44
|
"@aws-sdk/util-base64-node": "3.170.0",
|
|
45
45
|
"@aws-sdk/util-body-length-browser": "3.170.0",
|
|
46
46
|
"@aws-sdk/util-body-length-node": "3.170.0",
|
|
47
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
48
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
47
|
+
"@aws-sdk/util-defaults-mode-browser": "3.180.0",
|
|
48
|
+
"@aws-sdk/util-defaults-mode-node": "3.180.0",
|
|
49
49
|
"@aws-sdk/util-user-agent-browser": "3.178.0",
|
|
50
50
|
"@aws-sdk/util-user-agent-node": "3.178.0",
|
|
51
51
|
"@aws-sdk/util-utf8-browser": "3.170.0",
|