@aws-sdk/client-mediatailor 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 +48 -42
- package/dist-es/MediaTailor.js +170 -177
- package/dist-es/MediaTailorClient.js +22 -28
- package/dist-es/commands/ConfigureLogsForPlaybackConfigurationCommand.js +21 -28
- package/dist-es/commands/CreateChannelCommand.js +21 -28
- package/dist-es/commands/CreateLiveSourceCommand.js +21 -28
- package/dist-es/commands/CreatePrefetchScheduleCommand.js +21 -28
- package/dist-es/commands/CreateProgramCommand.js +21 -28
- package/dist-es/commands/CreateSourceLocationCommand.js +21 -28
- package/dist-es/commands/CreateVodSourceCommand.js +21 -28
- package/dist-es/commands/DeleteChannelCommand.js +21 -28
- package/dist-es/commands/DeleteChannelPolicyCommand.js +21 -28
- package/dist-es/commands/DeleteLiveSourceCommand.js +21 -28
- package/dist-es/commands/DeletePlaybackConfigurationCommand.js +21 -28
- package/dist-es/commands/DeletePrefetchScheduleCommand.js +21 -28
- package/dist-es/commands/DeleteProgramCommand.js +21 -28
- package/dist-es/commands/DeleteSourceLocationCommand.js +21 -28
- package/dist-es/commands/DeleteVodSourceCommand.js +21 -28
- package/dist-es/commands/DescribeChannelCommand.js +21 -28
- package/dist-es/commands/DescribeLiveSourceCommand.js +21 -28
- package/dist-es/commands/DescribeProgramCommand.js +21 -28
- package/dist-es/commands/DescribeSourceLocationCommand.js +21 -28
- package/dist-es/commands/DescribeVodSourceCommand.js +21 -28
- package/dist-es/commands/GetChannelPolicyCommand.js +21 -28
- package/dist-es/commands/GetChannelScheduleCommand.js +21 -28
- package/dist-es/commands/GetPlaybackConfigurationCommand.js +21 -28
- package/dist-es/commands/GetPrefetchScheduleCommand.js +21 -28
- package/dist-es/commands/ListAlertsCommand.js +21 -28
- package/dist-es/commands/ListChannelsCommand.js +21 -28
- package/dist-es/commands/ListLiveSourcesCommand.js +21 -28
- package/dist-es/commands/ListPlaybackConfigurationsCommand.js +21 -28
- package/dist-es/commands/ListPrefetchSchedulesCommand.js +21 -28
- package/dist-es/commands/ListSourceLocationsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/ListVodSourcesCommand.js +21 -28
- package/dist-es/commands/PutChannelPolicyCommand.js +21 -28
- package/dist-es/commands/PutPlaybackConfigurationCommand.js +21 -28
- package/dist-es/commands/StartChannelCommand.js +21 -28
- package/dist-es/commands/StopChannelCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +22 -29
- package/dist-es/commands/UntagResourceCommand.js +22 -29
- package/dist-es/commands/UpdateChannelCommand.js +21 -28
- package/dist-es/commands/UpdateLiveSourceCommand.js +21 -28
- package/dist-es/commands/UpdateSourceLocationCommand.js +21 -28
- package/dist-es/commands/UpdateVodSourceCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/MediaTailorServiceException.js +5 -10
- package/dist-es/models/models_0.js +369 -132
- package/dist-es/pagination/GetChannelSchedulePaginator.js +25 -68
- package/dist-es/pagination/ListAlertsPaginator.js +25 -68
- package/dist-es/pagination/ListChannelsPaginator.js +25 -68
- package/dist-es/pagination/ListLiveSourcesPaginator.js +25 -68
- package/dist-es/pagination/ListPlaybackConfigurationsPaginator.js +25 -68
- package/dist-es/pagination/ListPrefetchSchedulesPaginator.js +25 -68
- package/dist-es/pagination/ListSourceLocationsPaginator.js +25 -68
- package/dist-es/pagination/ListVodSourcesPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +2754 -3645
- 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-mediatailor
|
|
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-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) => {
|