@aws-sdk/client-mediatailor 3.51.0 → 3.54.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 +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/MediaTailorServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +18 -3
- package/dist-cjs/protocols/Aws_restJson1.js +187 -409
- package/dist-es/index.js +1 -0
- package/dist-es/models/MediaTailorServiceException.js +12 -0
- package/dist-es/models/models_0.js +15 -1
- package/dist-es/protocols/Aws_restJson1.js +349 -321
- package/dist-types/MediaTailorClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/MediaTailorServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +9 -4
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/MediaTailorClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/MediaTailorServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +7 -4
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +33 -33
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { MediaTailorServiceException as __BaseException } from "../models/MediaTailorServiceException";
|
|
5
|
+
import { BadRequestException, } from "../models/models_0";
|
|
4
6
|
export var serializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
7
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
6
8
|
return __generator(this, function (_c) {
|
|
@@ -1357,7 +1359,7 @@ export var deserializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommand
|
|
|
1357
1359
|
});
|
|
1358
1360
|
}); };
|
|
1359
1361
|
var deserializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1360
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
1362
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
1361
1363
|
var _b;
|
|
1362
1364
|
return __generator(this, function (_c) {
|
|
1363
1365
|
switch (_c.label) {
|
|
@@ -1372,13 +1374,14 @@ var deserializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommandError =
|
|
|
1372
1374
|
switch (errorCode) {
|
|
1373
1375
|
default:
|
|
1374
1376
|
parsedBody = parsedOutput.body;
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
+
response = new __BaseException({
|
|
1378
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1379
|
+
$fault: "client",
|
|
1380
|
+
$metadata: deserializeMetadata(output),
|
|
1381
|
+
});
|
|
1382
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1377
1383
|
}
|
|
1378
|
-
|
|
1379
|
-
response.message = message;
|
|
1380
|
-
delete response.Message;
|
|
1381
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1384
|
+
return [2];
|
|
1382
1385
|
}
|
|
1383
1386
|
});
|
|
1384
1387
|
}); };
|
|
@@ -1439,7 +1442,7 @@ export var deserializeAws_restJson1CreateChannelCommand = function (output, cont
|
|
|
1439
1442
|
});
|
|
1440
1443
|
}); };
|
|
1441
1444
|
var deserializeAws_restJson1CreateChannelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1442
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
1445
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
1443
1446
|
var _b;
|
|
1444
1447
|
return __generator(this, function (_c) {
|
|
1445
1448
|
switch (_c.label) {
|
|
@@ -1454,13 +1457,14 @@ var deserializeAws_restJson1CreateChannelCommandError = function (output, contex
|
|
|
1454
1457
|
switch (errorCode) {
|
|
1455
1458
|
default:
|
|
1456
1459
|
parsedBody = parsedOutput.body;
|
|
1457
|
-
|
|
1458
|
-
|
|
1460
|
+
response = new __BaseException({
|
|
1461
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1462
|
+
$fault: "client",
|
|
1463
|
+
$metadata: deserializeMetadata(output),
|
|
1464
|
+
});
|
|
1465
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1459
1466
|
}
|
|
1460
|
-
|
|
1461
|
-
response.message = message;
|
|
1462
|
-
delete response.Message;
|
|
1463
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1467
|
+
return [2];
|
|
1464
1468
|
}
|
|
1465
1469
|
});
|
|
1466
1470
|
}); };
|
|
@@ -1509,7 +1513,7 @@ export var deserializeAws_restJson1CreatePrefetchScheduleCommand = function (out
|
|
|
1509
1513
|
});
|
|
1510
1514
|
}); };
|
|
1511
1515
|
var deserializeAws_restJson1CreatePrefetchScheduleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1512
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
1516
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
1513
1517
|
var _b;
|
|
1514
1518
|
return __generator(this, function (_c) {
|
|
1515
1519
|
switch (_c.label) {
|
|
@@ -1524,13 +1528,14 @@ var deserializeAws_restJson1CreatePrefetchScheduleCommandError = function (outpu
|
|
|
1524
1528
|
switch (errorCode) {
|
|
1525
1529
|
default:
|
|
1526
1530
|
parsedBody = parsedOutput.body;
|
|
1527
|
-
|
|
1528
|
-
|
|
1531
|
+
response = new __BaseException({
|
|
1532
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1533
|
+
$fault: "client",
|
|
1534
|
+
$metadata: deserializeMetadata(output),
|
|
1535
|
+
});
|
|
1536
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1529
1537
|
}
|
|
1530
|
-
|
|
1531
|
-
response.message = message;
|
|
1532
|
-
delete response.Message;
|
|
1533
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1538
|
+
return [2];
|
|
1534
1539
|
}
|
|
1535
1540
|
});
|
|
1536
1541
|
}); };
|
|
@@ -1587,7 +1592,7 @@ export var deserializeAws_restJson1CreateProgramCommand = function (output, cont
|
|
|
1587
1592
|
});
|
|
1588
1593
|
}); };
|
|
1589
1594
|
var deserializeAws_restJson1CreateProgramCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1590
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
1595
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
1591
1596
|
var _b;
|
|
1592
1597
|
return __generator(this, function (_c) {
|
|
1593
1598
|
switch (_c.label) {
|
|
@@ -1602,13 +1607,14 @@ var deserializeAws_restJson1CreateProgramCommandError = function (output, contex
|
|
|
1602
1607
|
switch (errorCode) {
|
|
1603
1608
|
default:
|
|
1604
1609
|
parsedBody = parsedOutput.body;
|
|
1605
|
-
|
|
1606
|
-
|
|
1610
|
+
response = new __BaseException({
|
|
1611
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1612
|
+
$fault: "client",
|
|
1613
|
+
$metadata: deserializeMetadata(output),
|
|
1614
|
+
});
|
|
1615
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1607
1616
|
}
|
|
1608
|
-
|
|
1609
|
-
response.message = message;
|
|
1610
|
-
delete response.Message;
|
|
1611
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1617
|
+
return [2];
|
|
1612
1618
|
}
|
|
1613
1619
|
});
|
|
1614
1620
|
}); };
|
|
@@ -1669,7 +1675,7 @@ export var deserializeAws_restJson1CreateSourceLocationCommand = function (outpu
|
|
|
1669
1675
|
});
|
|
1670
1676
|
}); };
|
|
1671
1677
|
var deserializeAws_restJson1CreateSourceLocationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1672
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
1678
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
1673
1679
|
var _b;
|
|
1674
1680
|
return __generator(this, function (_c) {
|
|
1675
1681
|
switch (_c.label) {
|
|
@@ -1684,13 +1690,14 @@ var deserializeAws_restJson1CreateSourceLocationCommandError = function (output,
|
|
|
1684
1690
|
switch (errorCode) {
|
|
1685
1691
|
default:
|
|
1686
1692
|
parsedBody = parsedOutput.body;
|
|
1687
|
-
|
|
1688
|
-
|
|
1693
|
+
response = new __BaseException({
|
|
1694
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1695
|
+
$fault: "client",
|
|
1696
|
+
$metadata: deserializeMetadata(output),
|
|
1697
|
+
});
|
|
1698
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1689
1699
|
}
|
|
1690
|
-
|
|
1691
|
-
response.message = message;
|
|
1692
|
-
delete response.Message;
|
|
1693
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1700
|
+
return [2];
|
|
1694
1701
|
}
|
|
1695
1702
|
});
|
|
1696
1703
|
}); };
|
|
@@ -1743,7 +1750,7 @@ export var deserializeAws_restJson1CreateVodSourceCommand = function (output, co
|
|
|
1743
1750
|
});
|
|
1744
1751
|
}); };
|
|
1745
1752
|
var deserializeAws_restJson1CreateVodSourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1746
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
1753
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
1747
1754
|
var _b;
|
|
1748
1755
|
return __generator(this, function (_c) {
|
|
1749
1756
|
switch (_c.label) {
|
|
@@ -1758,13 +1765,14 @@ var deserializeAws_restJson1CreateVodSourceCommandError = function (output, cont
|
|
|
1758
1765
|
switch (errorCode) {
|
|
1759
1766
|
default:
|
|
1760
1767
|
parsedBody = parsedOutput.body;
|
|
1761
|
-
|
|
1762
|
-
|
|
1768
|
+
response = new __BaseException({
|
|
1769
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1770
|
+
$fault: "client",
|
|
1771
|
+
$metadata: deserializeMetadata(output),
|
|
1772
|
+
});
|
|
1773
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1763
1774
|
}
|
|
1764
|
-
|
|
1765
|
-
response.message = message;
|
|
1766
|
-
delete response.Message;
|
|
1767
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1775
|
+
return [2];
|
|
1768
1776
|
}
|
|
1769
1777
|
});
|
|
1770
1778
|
}); };
|
|
@@ -1787,7 +1795,7 @@ export var deserializeAws_restJson1DeleteChannelCommand = function (output, cont
|
|
|
1787
1795
|
});
|
|
1788
1796
|
}); };
|
|
1789
1797
|
var deserializeAws_restJson1DeleteChannelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1790
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
1798
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
1791
1799
|
var _b;
|
|
1792
1800
|
return __generator(this, function (_c) {
|
|
1793
1801
|
switch (_c.label) {
|
|
@@ -1802,13 +1810,14 @@ var deserializeAws_restJson1DeleteChannelCommandError = function (output, contex
|
|
|
1802
1810
|
switch (errorCode) {
|
|
1803
1811
|
default:
|
|
1804
1812
|
parsedBody = parsedOutput.body;
|
|
1805
|
-
|
|
1806
|
-
|
|
1813
|
+
response = new __BaseException({
|
|
1814
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1815
|
+
$fault: "client",
|
|
1816
|
+
$metadata: deserializeMetadata(output),
|
|
1817
|
+
});
|
|
1818
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1807
1819
|
}
|
|
1808
|
-
|
|
1809
|
-
response.message = message;
|
|
1810
|
-
delete response.Message;
|
|
1811
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1820
|
+
return [2];
|
|
1812
1821
|
}
|
|
1813
1822
|
});
|
|
1814
1823
|
}); };
|
|
@@ -1831,7 +1840,7 @@ export var deserializeAws_restJson1DeleteChannelPolicyCommand = function (output
|
|
|
1831
1840
|
});
|
|
1832
1841
|
}); };
|
|
1833
1842
|
var deserializeAws_restJson1DeleteChannelPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1834
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
1843
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
1835
1844
|
var _b;
|
|
1836
1845
|
return __generator(this, function (_c) {
|
|
1837
1846
|
switch (_c.label) {
|
|
@@ -1846,13 +1855,14 @@ var deserializeAws_restJson1DeleteChannelPolicyCommandError = function (output,
|
|
|
1846
1855
|
switch (errorCode) {
|
|
1847
1856
|
default:
|
|
1848
1857
|
parsedBody = parsedOutput.body;
|
|
1849
|
-
|
|
1850
|
-
|
|
1858
|
+
response = new __BaseException({
|
|
1859
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1860
|
+
$fault: "client",
|
|
1861
|
+
$metadata: deserializeMetadata(output),
|
|
1862
|
+
});
|
|
1863
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1851
1864
|
}
|
|
1852
|
-
|
|
1853
|
-
response.message = message;
|
|
1854
|
-
delete response.Message;
|
|
1855
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1865
|
+
return [2];
|
|
1856
1866
|
}
|
|
1857
1867
|
});
|
|
1858
1868
|
}); };
|
|
@@ -1875,7 +1885,7 @@ export var deserializeAws_restJson1DeletePlaybackConfigurationCommand = function
|
|
|
1875
1885
|
});
|
|
1876
1886
|
}); };
|
|
1877
1887
|
var deserializeAws_restJson1DeletePlaybackConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1878
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
1888
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
1879
1889
|
var _b;
|
|
1880
1890
|
return __generator(this, function (_c) {
|
|
1881
1891
|
switch (_c.label) {
|
|
@@ -1890,13 +1900,14 @@ var deserializeAws_restJson1DeletePlaybackConfigurationCommandError = function (
|
|
|
1890
1900
|
switch (errorCode) {
|
|
1891
1901
|
default:
|
|
1892
1902
|
parsedBody = parsedOutput.body;
|
|
1893
|
-
|
|
1894
|
-
|
|
1903
|
+
response = new __BaseException({
|
|
1904
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1905
|
+
$fault: "client",
|
|
1906
|
+
$metadata: deserializeMetadata(output),
|
|
1907
|
+
});
|
|
1908
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1895
1909
|
}
|
|
1896
|
-
|
|
1897
|
-
response.message = message;
|
|
1898
|
-
delete response.Message;
|
|
1899
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1910
|
+
return [2];
|
|
1900
1911
|
}
|
|
1901
1912
|
});
|
|
1902
1913
|
}); };
|
|
@@ -1919,7 +1930,7 @@ export var deserializeAws_restJson1DeletePrefetchScheduleCommand = function (out
|
|
|
1919
1930
|
});
|
|
1920
1931
|
}); };
|
|
1921
1932
|
var deserializeAws_restJson1DeletePrefetchScheduleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1922
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
1933
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
1923
1934
|
var _b;
|
|
1924
1935
|
return __generator(this, function (_c) {
|
|
1925
1936
|
switch (_c.label) {
|
|
@@ -1934,13 +1945,14 @@ var deserializeAws_restJson1DeletePrefetchScheduleCommandError = function (outpu
|
|
|
1934
1945
|
switch (errorCode) {
|
|
1935
1946
|
default:
|
|
1936
1947
|
parsedBody = parsedOutput.body;
|
|
1937
|
-
|
|
1938
|
-
|
|
1948
|
+
response = new __BaseException({
|
|
1949
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1950
|
+
$fault: "client",
|
|
1951
|
+
$metadata: deserializeMetadata(output),
|
|
1952
|
+
});
|
|
1953
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1939
1954
|
}
|
|
1940
|
-
|
|
1941
|
-
response.message = message;
|
|
1942
|
-
delete response.Message;
|
|
1943
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1955
|
+
return [2];
|
|
1944
1956
|
}
|
|
1945
1957
|
});
|
|
1946
1958
|
}); };
|
|
@@ -1963,7 +1975,7 @@ export var deserializeAws_restJson1DeleteProgramCommand = function (output, cont
|
|
|
1963
1975
|
});
|
|
1964
1976
|
}); };
|
|
1965
1977
|
var deserializeAws_restJson1DeleteProgramCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1966
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
1978
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
1967
1979
|
var _b;
|
|
1968
1980
|
return __generator(this, function (_c) {
|
|
1969
1981
|
switch (_c.label) {
|
|
@@ -1978,13 +1990,14 @@ var deserializeAws_restJson1DeleteProgramCommandError = function (output, contex
|
|
|
1978
1990
|
switch (errorCode) {
|
|
1979
1991
|
default:
|
|
1980
1992
|
parsedBody = parsedOutput.body;
|
|
1981
|
-
|
|
1982
|
-
|
|
1993
|
+
response = new __BaseException({
|
|
1994
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1995
|
+
$fault: "client",
|
|
1996
|
+
$metadata: deserializeMetadata(output),
|
|
1997
|
+
});
|
|
1998
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1983
1999
|
}
|
|
1984
|
-
|
|
1985
|
-
response.message = message;
|
|
1986
|
-
delete response.Message;
|
|
1987
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2000
|
+
return [2];
|
|
1988
2001
|
}
|
|
1989
2002
|
});
|
|
1990
2003
|
}); };
|
|
@@ -2007,7 +2020,7 @@ export var deserializeAws_restJson1DeleteSourceLocationCommand = function (outpu
|
|
|
2007
2020
|
});
|
|
2008
2021
|
}); };
|
|
2009
2022
|
var deserializeAws_restJson1DeleteSourceLocationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2010
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
2023
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2011
2024
|
var _b;
|
|
2012
2025
|
return __generator(this, function (_c) {
|
|
2013
2026
|
switch (_c.label) {
|
|
@@ -2022,13 +2035,14 @@ var deserializeAws_restJson1DeleteSourceLocationCommandError = function (output,
|
|
|
2022
2035
|
switch (errorCode) {
|
|
2023
2036
|
default:
|
|
2024
2037
|
parsedBody = parsedOutput.body;
|
|
2025
|
-
|
|
2026
|
-
|
|
2038
|
+
response = new __BaseException({
|
|
2039
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2040
|
+
$fault: "client",
|
|
2041
|
+
$metadata: deserializeMetadata(output),
|
|
2042
|
+
});
|
|
2043
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2027
2044
|
}
|
|
2028
|
-
|
|
2029
|
-
response.message = message;
|
|
2030
|
-
delete response.Message;
|
|
2031
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2045
|
+
return [2];
|
|
2032
2046
|
}
|
|
2033
2047
|
});
|
|
2034
2048
|
}); };
|
|
@@ -2051,7 +2065,7 @@ export var deserializeAws_restJson1DeleteVodSourceCommand = function (output, co
|
|
|
2051
2065
|
});
|
|
2052
2066
|
}); };
|
|
2053
2067
|
var deserializeAws_restJson1DeleteVodSourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2054
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
2068
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2055
2069
|
var _b;
|
|
2056
2070
|
return __generator(this, function (_c) {
|
|
2057
2071
|
switch (_c.label) {
|
|
@@ -2066,13 +2080,14 @@ var deserializeAws_restJson1DeleteVodSourceCommandError = function (output, cont
|
|
|
2066
2080
|
switch (errorCode) {
|
|
2067
2081
|
default:
|
|
2068
2082
|
parsedBody = parsedOutput.body;
|
|
2069
|
-
|
|
2070
|
-
|
|
2083
|
+
response = new __BaseException({
|
|
2084
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2085
|
+
$fault: "client",
|
|
2086
|
+
$metadata: deserializeMetadata(output),
|
|
2087
|
+
});
|
|
2088
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2071
2089
|
}
|
|
2072
|
-
|
|
2073
|
-
response.message = message;
|
|
2074
|
-
delete response.Message;
|
|
2075
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2090
|
+
return [2];
|
|
2076
2091
|
}
|
|
2077
2092
|
});
|
|
2078
2093
|
}); };
|
|
@@ -2133,7 +2148,7 @@ export var deserializeAws_restJson1DescribeChannelCommand = function (output, co
|
|
|
2133
2148
|
});
|
|
2134
2149
|
}); };
|
|
2135
2150
|
var deserializeAws_restJson1DescribeChannelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2136
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
2151
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2137
2152
|
var _b;
|
|
2138
2153
|
return __generator(this, function (_c) {
|
|
2139
2154
|
switch (_c.label) {
|
|
@@ -2148,13 +2163,14 @@ var deserializeAws_restJson1DescribeChannelCommandError = function (output, cont
|
|
|
2148
2163
|
switch (errorCode) {
|
|
2149
2164
|
default:
|
|
2150
2165
|
parsedBody = parsedOutput.body;
|
|
2151
|
-
|
|
2152
|
-
|
|
2166
|
+
response = new __BaseException({
|
|
2167
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2168
|
+
$fault: "client",
|
|
2169
|
+
$metadata: deserializeMetadata(output),
|
|
2170
|
+
});
|
|
2171
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2153
2172
|
}
|
|
2154
|
-
|
|
2155
|
-
response.message = message;
|
|
2156
|
-
delete response.Message;
|
|
2157
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2173
|
+
return [2];
|
|
2158
2174
|
}
|
|
2159
2175
|
});
|
|
2160
2176
|
}); };
|
|
@@ -2211,7 +2227,7 @@ export var deserializeAws_restJson1DescribeProgramCommand = function (output, co
|
|
|
2211
2227
|
});
|
|
2212
2228
|
}); };
|
|
2213
2229
|
var deserializeAws_restJson1DescribeProgramCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2214
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
2230
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2215
2231
|
var _b;
|
|
2216
2232
|
return __generator(this, function (_c) {
|
|
2217
2233
|
switch (_c.label) {
|
|
@@ -2226,13 +2242,14 @@ var deserializeAws_restJson1DescribeProgramCommandError = function (output, cont
|
|
|
2226
2242
|
switch (errorCode) {
|
|
2227
2243
|
default:
|
|
2228
2244
|
parsedBody = parsedOutput.body;
|
|
2229
|
-
|
|
2230
|
-
|
|
2245
|
+
response = new __BaseException({
|
|
2246
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2247
|
+
$fault: "client",
|
|
2248
|
+
$metadata: deserializeMetadata(output),
|
|
2249
|
+
});
|
|
2250
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2231
2251
|
}
|
|
2232
|
-
|
|
2233
|
-
response.message = message;
|
|
2234
|
-
delete response.Message;
|
|
2235
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2252
|
+
return [2];
|
|
2236
2253
|
}
|
|
2237
2254
|
});
|
|
2238
2255
|
}); };
|
|
@@ -2293,7 +2310,7 @@ export var deserializeAws_restJson1DescribeSourceLocationCommand = function (out
|
|
|
2293
2310
|
});
|
|
2294
2311
|
}); };
|
|
2295
2312
|
var deserializeAws_restJson1DescribeSourceLocationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2296
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
2313
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2297
2314
|
var _b;
|
|
2298
2315
|
return __generator(this, function (_c) {
|
|
2299
2316
|
switch (_c.label) {
|
|
@@ -2308,13 +2325,14 @@ var deserializeAws_restJson1DescribeSourceLocationCommandError = function (outpu
|
|
|
2308
2325
|
switch (errorCode) {
|
|
2309
2326
|
default:
|
|
2310
2327
|
parsedBody = parsedOutput.body;
|
|
2311
|
-
|
|
2312
|
-
|
|
2328
|
+
response = new __BaseException({
|
|
2329
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2330
|
+
$fault: "client",
|
|
2331
|
+
$metadata: deserializeMetadata(output),
|
|
2332
|
+
});
|
|
2333
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2313
2334
|
}
|
|
2314
|
-
|
|
2315
|
-
response.message = message;
|
|
2316
|
-
delete response.Message;
|
|
2317
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2335
|
+
return [2];
|
|
2318
2336
|
}
|
|
2319
2337
|
});
|
|
2320
2338
|
}); };
|
|
@@ -2367,7 +2385,7 @@ export var deserializeAws_restJson1DescribeVodSourceCommand = function (output,
|
|
|
2367
2385
|
});
|
|
2368
2386
|
}); };
|
|
2369
2387
|
var deserializeAws_restJson1DescribeVodSourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2370
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
2388
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2371
2389
|
var _b;
|
|
2372
2390
|
return __generator(this, function (_c) {
|
|
2373
2391
|
switch (_c.label) {
|
|
@@ -2382,13 +2400,14 @@ var deserializeAws_restJson1DescribeVodSourceCommandError = function (output, co
|
|
|
2382
2400
|
switch (errorCode) {
|
|
2383
2401
|
default:
|
|
2384
2402
|
parsedBody = parsedOutput.body;
|
|
2385
|
-
|
|
2386
|
-
|
|
2403
|
+
response = new __BaseException({
|
|
2404
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2405
|
+
$fault: "client",
|
|
2406
|
+
$metadata: deserializeMetadata(output),
|
|
2407
|
+
});
|
|
2408
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2387
2409
|
}
|
|
2388
|
-
|
|
2389
|
-
response.message = message;
|
|
2390
|
-
delete response.Message;
|
|
2391
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2410
|
+
return [2];
|
|
2392
2411
|
}
|
|
2393
2412
|
});
|
|
2394
2413
|
}); };
|
|
@@ -2417,7 +2436,7 @@ export var deserializeAws_restJson1GetChannelPolicyCommand = function (output, c
|
|
|
2417
2436
|
});
|
|
2418
2437
|
}); };
|
|
2419
2438
|
var deserializeAws_restJson1GetChannelPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2420
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
2439
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2421
2440
|
var _b;
|
|
2422
2441
|
return __generator(this, function (_c) {
|
|
2423
2442
|
switch (_c.label) {
|
|
@@ -2432,13 +2451,14 @@ var deserializeAws_restJson1GetChannelPolicyCommandError = function (output, con
|
|
|
2432
2451
|
switch (errorCode) {
|
|
2433
2452
|
default:
|
|
2434
2453
|
parsedBody = parsedOutput.body;
|
|
2435
|
-
|
|
2436
|
-
|
|
2454
|
+
response = new __BaseException({
|
|
2455
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2456
|
+
$fault: "client",
|
|
2457
|
+
$metadata: deserializeMetadata(output),
|
|
2458
|
+
});
|
|
2459
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2437
2460
|
}
|
|
2438
|
-
|
|
2439
|
-
response.message = message;
|
|
2440
|
-
delete response.Message;
|
|
2441
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2461
|
+
return [2];
|
|
2442
2462
|
}
|
|
2443
2463
|
});
|
|
2444
2464
|
}); };
|
|
@@ -2471,7 +2491,7 @@ export var deserializeAws_restJson1GetChannelScheduleCommand = function (output,
|
|
|
2471
2491
|
});
|
|
2472
2492
|
}); };
|
|
2473
2493
|
var deserializeAws_restJson1GetChannelScheduleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2474
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
2494
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2475
2495
|
var _b;
|
|
2476
2496
|
return __generator(this, function (_c) {
|
|
2477
2497
|
switch (_c.label) {
|
|
@@ -2486,13 +2506,14 @@ var deserializeAws_restJson1GetChannelScheduleCommandError = function (output, c
|
|
|
2486
2506
|
switch (errorCode) {
|
|
2487
2507
|
default:
|
|
2488
2508
|
parsedBody = parsedOutput.body;
|
|
2489
|
-
|
|
2490
|
-
|
|
2509
|
+
response = new __BaseException({
|
|
2510
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2511
|
+
$fault: "client",
|
|
2512
|
+
$metadata: deserializeMetadata(output),
|
|
2513
|
+
});
|
|
2514
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2491
2515
|
}
|
|
2492
|
-
|
|
2493
|
-
response.message = message;
|
|
2494
|
-
delete response.Message;
|
|
2495
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2516
|
+
return [2];
|
|
2496
2517
|
}
|
|
2497
2518
|
});
|
|
2498
2519
|
}); };
|
|
@@ -2593,7 +2614,7 @@ export var deserializeAws_restJson1GetPlaybackConfigurationCommand = function (o
|
|
|
2593
2614
|
});
|
|
2594
2615
|
}); };
|
|
2595
2616
|
var deserializeAws_restJson1GetPlaybackConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2596
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
2617
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2597
2618
|
var _b;
|
|
2598
2619
|
return __generator(this, function (_c) {
|
|
2599
2620
|
switch (_c.label) {
|
|
@@ -2608,13 +2629,14 @@ var deserializeAws_restJson1GetPlaybackConfigurationCommandError = function (out
|
|
|
2608
2629
|
switch (errorCode) {
|
|
2609
2630
|
default:
|
|
2610
2631
|
parsedBody = parsedOutput.body;
|
|
2611
|
-
|
|
2612
|
-
|
|
2632
|
+
response = new __BaseException({
|
|
2633
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2634
|
+
$fault: "client",
|
|
2635
|
+
$metadata: deserializeMetadata(output),
|
|
2636
|
+
});
|
|
2637
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2613
2638
|
}
|
|
2614
|
-
|
|
2615
|
-
response.message = message;
|
|
2616
|
-
delete response.Message;
|
|
2617
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2639
|
+
return [2];
|
|
2618
2640
|
}
|
|
2619
2641
|
});
|
|
2620
2642
|
}); };
|
|
@@ -2663,7 +2685,7 @@ export var deserializeAws_restJson1GetPrefetchScheduleCommand = function (output
|
|
|
2663
2685
|
});
|
|
2664
2686
|
}); };
|
|
2665
2687
|
var deserializeAws_restJson1GetPrefetchScheduleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2666
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
2688
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2667
2689
|
var _b;
|
|
2668
2690
|
return __generator(this, function (_c) {
|
|
2669
2691
|
switch (_c.label) {
|
|
@@ -2678,13 +2700,14 @@ var deserializeAws_restJson1GetPrefetchScheduleCommandError = function (output,
|
|
|
2678
2700
|
switch (errorCode) {
|
|
2679
2701
|
default:
|
|
2680
2702
|
parsedBody = parsedOutput.body;
|
|
2681
|
-
|
|
2682
|
-
|
|
2703
|
+
response = new __BaseException({
|
|
2704
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2705
|
+
$fault: "client",
|
|
2706
|
+
$metadata: deserializeMetadata(output),
|
|
2707
|
+
});
|
|
2708
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2683
2709
|
}
|
|
2684
|
-
|
|
2685
|
-
response.message = message;
|
|
2686
|
-
delete response.Message;
|
|
2687
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2710
|
+
return [2];
|
|
2688
2711
|
}
|
|
2689
2712
|
});
|
|
2690
2713
|
}); };
|
|
@@ -2717,7 +2740,7 @@ export var deserializeAws_restJson1ListAlertsCommand = function (output, context
|
|
|
2717
2740
|
});
|
|
2718
2741
|
}); };
|
|
2719
2742
|
var deserializeAws_restJson1ListAlertsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2720
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
2743
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2721
2744
|
var _b;
|
|
2722
2745
|
return __generator(this, function (_c) {
|
|
2723
2746
|
switch (_c.label) {
|
|
@@ -2732,13 +2755,14 @@ var deserializeAws_restJson1ListAlertsCommandError = function (output, context)
|
|
|
2732
2755
|
switch (errorCode) {
|
|
2733
2756
|
default:
|
|
2734
2757
|
parsedBody = parsedOutput.body;
|
|
2735
|
-
|
|
2736
|
-
|
|
2758
|
+
response = new __BaseException({
|
|
2759
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2760
|
+
$fault: "client",
|
|
2761
|
+
$metadata: deserializeMetadata(output),
|
|
2762
|
+
});
|
|
2763
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2737
2764
|
}
|
|
2738
|
-
|
|
2739
|
-
response.message = message;
|
|
2740
|
-
delete response.Message;
|
|
2741
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2765
|
+
return [2];
|
|
2742
2766
|
}
|
|
2743
2767
|
});
|
|
2744
2768
|
}); };
|
|
@@ -2771,7 +2795,7 @@ export var deserializeAws_restJson1ListChannelsCommand = function (output, conte
|
|
|
2771
2795
|
});
|
|
2772
2796
|
}); };
|
|
2773
2797
|
var deserializeAws_restJson1ListChannelsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2774
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
2798
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2775
2799
|
var _b;
|
|
2776
2800
|
return __generator(this, function (_c) {
|
|
2777
2801
|
switch (_c.label) {
|
|
@@ -2786,13 +2810,14 @@ var deserializeAws_restJson1ListChannelsCommandError = function (output, context
|
|
|
2786
2810
|
switch (errorCode) {
|
|
2787
2811
|
default:
|
|
2788
2812
|
parsedBody = parsedOutput.body;
|
|
2789
|
-
|
|
2790
|
-
|
|
2813
|
+
response = new __BaseException({
|
|
2814
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2815
|
+
$fault: "client",
|
|
2816
|
+
$metadata: deserializeMetadata(output),
|
|
2817
|
+
});
|
|
2818
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2791
2819
|
}
|
|
2792
|
-
|
|
2793
|
-
response.message = message;
|
|
2794
|
-
delete response.Message;
|
|
2795
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2820
|
+
return [2];
|
|
2796
2821
|
}
|
|
2797
2822
|
});
|
|
2798
2823
|
}); };
|
|
@@ -2825,7 +2850,7 @@ export var deserializeAws_restJson1ListPlaybackConfigurationsCommand = function
|
|
|
2825
2850
|
});
|
|
2826
2851
|
}); };
|
|
2827
2852
|
var deserializeAws_restJson1ListPlaybackConfigurationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2828
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
2853
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2829
2854
|
var _b;
|
|
2830
2855
|
return __generator(this, function (_c) {
|
|
2831
2856
|
switch (_c.label) {
|
|
@@ -2840,13 +2865,14 @@ var deserializeAws_restJson1ListPlaybackConfigurationsCommandError = function (o
|
|
|
2840
2865
|
switch (errorCode) {
|
|
2841
2866
|
default:
|
|
2842
2867
|
parsedBody = parsedOutput.body;
|
|
2843
|
-
|
|
2844
|
-
|
|
2868
|
+
response = new __BaseException({
|
|
2869
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2870
|
+
$fault: "client",
|
|
2871
|
+
$metadata: deserializeMetadata(output),
|
|
2872
|
+
});
|
|
2873
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2845
2874
|
}
|
|
2846
|
-
|
|
2847
|
-
response.message = message;
|
|
2848
|
-
delete response.Message;
|
|
2849
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2875
|
+
return [2];
|
|
2850
2876
|
}
|
|
2851
2877
|
});
|
|
2852
2878
|
}); };
|
|
@@ -2879,7 +2905,7 @@ export var deserializeAws_restJson1ListPrefetchSchedulesCommand = function (outp
|
|
|
2879
2905
|
});
|
|
2880
2906
|
}); };
|
|
2881
2907
|
var deserializeAws_restJson1ListPrefetchSchedulesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2882
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
2908
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2883
2909
|
var _b;
|
|
2884
2910
|
return __generator(this, function (_c) {
|
|
2885
2911
|
switch (_c.label) {
|
|
@@ -2894,13 +2920,14 @@ var deserializeAws_restJson1ListPrefetchSchedulesCommandError = function (output
|
|
|
2894
2920
|
switch (errorCode) {
|
|
2895
2921
|
default:
|
|
2896
2922
|
parsedBody = parsedOutput.body;
|
|
2897
|
-
|
|
2898
|
-
|
|
2923
|
+
response = new __BaseException({
|
|
2924
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2925
|
+
$fault: "client",
|
|
2926
|
+
$metadata: deserializeMetadata(output),
|
|
2927
|
+
});
|
|
2928
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2899
2929
|
}
|
|
2900
|
-
|
|
2901
|
-
response.message = message;
|
|
2902
|
-
delete response.Message;
|
|
2903
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2930
|
+
return [2];
|
|
2904
2931
|
}
|
|
2905
2932
|
});
|
|
2906
2933
|
}); };
|
|
@@ -2933,7 +2960,7 @@ export var deserializeAws_restJson1ListSourceLocationsCommand = function (output
|
|
|
2933
2960
|
});
|
|
2934
2961
|
}); };
|
|
2935
2962
|
var deserializeAws_restJson1ListSourceLocationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2936
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
2963
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
2937
2964
|
var _b;
|
|
2938
2965
|
return __generator(this, function (_c) {
|
|
2939
2966
|
switch (_c.label) {
|
|
@@ -2948,13 +2975,14 @@ var deserializeAws_restJson1ListSourceLocationsCommandError = function (output,
|
|
|
2948
2975
|
switch (errorCode) {
|
|
2949
2976
|
default:
|
|
2950
2977
|
parsedBody = parsedOutput.body;
|
|
2951
|
-
|
|
2952
|
-
|
|
2978
|
+
response = new __BaseException({
|
|
2979
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2980
|
+
$fault: "client",
|
|
2981
|
+
$metadata: deserializeMetadata(output),
|
|
2982
|
+
});
|
|
2983
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2953
2984
|
}
|
|
2954
|
-
|
|
2955
|
-
response.message = message;
|
|
2956
|
-
delete response.Message;
|
|
2957
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2985
|
+
return [2];
|
|
2958
2986
|
}
|
|
2959
2987
|
});
|
|
2960
2988
|
}); };
|
|
@@ -2983,16 +3011,16 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
2983
3011
|
});
|
|
2984
3012
|
}); };
|
|
2985
3013
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2986
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2987
|
-
var
|
|
2988
|
-
return __generator(this, function (
|
|
2989
|
-
switch (
|
|
3014
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3015
|
+
var _c;
|
|
3016
|
+
return __generator(this, function (_d) {
|
|
3017
|
+
switch (_d.label) {
|
|
2990
3018
|
case 0:
|
|
2991
3019
|
_a = [__assign({}, output)];
|
|
2992
|
-
|
|
3020
|
+
_c = {};
|
|
2993
3021
|
return [4, parseBody(output.body, context)];
|
|
2994
3022
|
case 1:
|
|
2995
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3023
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2996
3024
|
errorCode = "UnknownError";
|
|
2997
3025
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2998
3026
|
_b = errorCode;
|
|
@@ -3001,22 +3029,16 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
3001
3029
|
case "com.amazonaws.mediatailor#BadRequestException": return [3, 2];
|
|
3002
3030
|
}
|
|
3003
3031
|
return [3, 4];
|
|
3004
|
-
case 2:
|
|
3005
|
-
|
|
3006
|
-
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3007
|
-
case 3:
|
|
3008
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3009
|
-
return [3, 5];
|
|
3032
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3033
|
+
case 3: throw _d.sent();
|
|
3010
3034
|
case 4:
|
|
3011
3035
|
parsedBody = parsedOutput.body;
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
response
|
|
3018
|
-
delete response.Message;
|
|
3019
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3036
|
+
response = new __BaseException({
|
|
3037
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3038
|
+
$fault: "client",
|
|
3039
|
+
$metadata: deserializeMetadata(output),
|
|
3040
|
+
});
|
|
3041
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3020
3042
|
}
|
|
3021
3043
|
});
|
|
3022
3044
|
}); };
|
|
@@ -3049,7 +3071,7 @@ export var deserializeAws_restJson1ListVodSourcesCommand = function (output, con
|
|
|
3049
3071
|
});
|
|
3050
3072
|
}); };
|
|
3051
3073
|
var deserializeAws_restJson1ListVodSourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3052
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
3074
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
3053
3075
|
var _b;
|
|
3054
3076
|
return __generator(this, function (_c) {
|
|
3055
3077
|
switch (_c.label) {
|
|
@@ -3064,13 +3086,14 @@ var deserializeAws_restJson1ListVodSourcesCommandError = function (output, conte
|
|
|
3064
3086
|
switch (errorCode) {
|
|
3065
3087
|
default:
|
|
3066
3088
|
parsedBody = parsedOutput.body;
|
|
3067
|
-
|
|
3068
|
-
|
|
3089
|
+
response = new __BaseException({
|
|
3090
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3091
|
+
$fault: "client",
|
|
3092
|
+
$metadata: deserializeMetadata(output),
|
|
3093
|
+
});
|
|
3094
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3069
3095
|
}
|
|
3070
|
-
|
|
3071
|
-
response.message = message;
|
|
3072
|
-
delete response.Message;
|
|
3073
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3096
|
+
return [2];
|
|
3074
3097
|
}
|
|
3075
3098
|
});
|
|
3076
3099
|
}); };
|
|
@@ -3093,7 +3116,7 @@ export var deserializeAws_restJson1PutChannelPolicyCommand = function (output, c
|
|
|
3093
3116
|
});
|
|
3094
3117
|
}); };
|
|
3095
3118
|
var deserializeAws_restJson1PutChannelPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3096
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
3119
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
3097
3120
|
var _b;
|
|
3098
3121
|
return __generator(this, function (_c) {
|
|
3099
3122
|
switch (_c.label) {
|
|
@@ -3108,13 +3131,14 @@ var deserializeAws_restJson1PutChannelPolicyCommandError = function (output, con
|
|
|
3108
3131
|
switch (errorCode) {
|
|
3109
3132
|
default:
|
|
3110
3133
|
parsedBody = parsedOutput.body;
|
|
3111
|
-
|
|
3112
|
-
|
|
3134
|
+
response = new __BaseException({
|
|
3135
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3136
|
+
$fault: "client",
|
|
3137
|
+
$metadata: deserializeMetadata(output),
|
|
3138
|
+
});
|
|
3139
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3113
3140
|
}
|
|
3114
|
-
|
|
3115
|
-
response.message = message;
|
|
3116
|
-
delete response.Message;
|
|
3117
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3141
|
+
return [2];
|
|
3118
3142
|
}
|
|
3119
3143
|
});
|
|
3120
3144
|
}); };
|
|
@@ -3215,7 +3239,7 @@ export var deserializeAws_restJson1PutPlaybackConfigurationCommand = function (o
|
|
|
3215
3239
|
});
|
|
3216
3240
|
}); };
|
|
3217
3241
|
var deserializeAws_restJson1PutPlaybackConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3218
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
3242
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
3219
3243
|
var _b;
|
|
3220
3244
|
return __generator(this, function (_c) {
|
|
3221
3245
|
switch (_c.label) {
|
|
@@ -3230,13 +3254,14 @@ var deserializeAws_restJson1PutPlaybackConfigurationCommandError = function (out
|
|
|
3230
3254
|
switch (errorCode) {
|
|
3231
3255
|
default:
|
|
3232
3256
|
parsedBody = parsedOutput.body;
|
|
3233
|
-
|
|
3234
|
-
|
|
3257
|
+
response = new __BaseException({
|
|
3258
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3259
|
+
$fault: "client",
|
|
3260
|
+
$metadata: deserializeMetadata(output),
|
|
3261
|
+
});
|
|
3262
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3235
3263
|
}
|
|
3236
|
-
|
|
3237
|
-
response.message = message;
|
|
3238
|
-
delete response.Message;
|
|
3239
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3264
|
+
return [2];
|
|
3240
3265
|
}
|
|
3241
3266
|
});
|
|
3242
3267
|
}); };
|
|
@@ -3259,7 +3284,7 @@ export var deserializeAws_restJson1StartChannelCommand = function (output, conte
|
|
|
3259
3284
|
});
|
|
3260
3285
|
}); };
|
|
3261
3286
|
var deserializeAws_restJson1StartChannelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3262
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
3287
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
3263
3288
|
var _b;
|
|
3264
3289
|
return __generator(this, function (_c) {
|
|
3265
3290
|
switch (_c.label) {
|
|
@@ -3274,13 +3299,14 @@ var deserializeAws_restJson1StartChannelCommandError = function (output, context
|
|
|
3274
3299
|
switch (errorCode) {
|
|
3275
3300
|
default:
|
|
3276
3301
|
parsedBody = parsedOutput.body;
|
|
3277
|
-
|
|
3278
|
-
|
|
3302
|
+
response = new __BaseException({
|
|
3303
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3304
|
+
$fault: "client",
|
|
3305
|
+
$metadata: deserializeMetadata(output),
|
|
3306
|
+
});
|
|
3307
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3279
3308
|
}
|
|
3280
|
-
|
|
3281
|
-
response.message = message;
|
|
3282
|
-
delete response.Message;
|
|
3283
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3309
|
+
return [2];
|
|
3284
3310
|
}
|
|
3285
3311
|
});
|
|
3286
3312
|
}); };
|
|
@@ -3303,7 +3329,7 @@ export var deserializeAws_restJson1StopChannelCommand = function (output, contex
|
|
|
3303
3329
|
});
|
|
3304
3330
|
}); };
|
|
3305
3331
|
var deserializeAws_restJson1StopChannelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3306
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
3332
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
3307
3333
|
var _b;
|
|
3308
3334
|
return __generator(this, function (_c) {
|
|
3309
3335
|
switch (_c.label) {
|
|
@@ -3318,13 +3344,14 @@ var deserializeAws_restJson1StopChannelCommandError = function (output, context)
|
|
|
3318
3344
|
switch (errorCode) {
|
|
3319
3345
|
default:
|
|
3320
3346
|
parsedBody = parsedOutput.body;
|
|
3321
|
-
|
|
3322
|
-
|
|
3347
|
+
response = new __BaseException({
|
|
3348
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3349
|
+
$fault: "client",
|
|
3350
|
+
$metadata: deserializeMetadata(output),
|
|
3351
|
+
});
|
|
3352
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3323
3353
|
}
|
|
3324
|
-
|
|
3325
|
-
response.message = message;
|
|
3326
|
-
delete response.Message;
|
|
3327
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3354
|
+
return [2];
|
|
3328
3355
|
}
|
|
3329
3356
|
});
|
|
3330
3357
|
}); };
|
|
@@ -3347,16 +3374,16 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
3347
3374
|
});
|
|
3348
3375
|
}); };
|
|
3349
3376
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3350
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3351
|
-
var
|
|
3352
|
-
return __generator(this, function (
|
|
3353
|
-
switch (
|
|
3377
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3378
|
+
var _c;
|
|
3379
|
+
return __generator(this, function (_d) {
|
|
3380
|
+
switch (_d.label) {
|
|
3354
3381
|
case 0:
|
|
3355
3382
|
_a = [__assign({}, output)];
|
|
3356
|
-
|
|
3383
|
+
_c = {};
|
|
3357
3384
|
return [4, parseBody(output.body, context)];
|
|
3358
3385
|
case 1:
|
|
3359
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3386
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3360
3387
|
errorCode = "UnknownError";
|
|
3361
3388
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3362
3389
|
_b = errorCode;
|
|
@@ -3365,22 +3392,16 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
3365
3392
|
case "com.amazonaws.mediatailor#BadRequestException": return [3, 2];
|
|
3366
3393
|
}
|
|
3367
3394
|
return [3, 4];
|
|
3368
|
-
case 2:
|
|
3369
|
-
|
|
3370
|
-
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3371
|
-
case 3:
|
|
3372
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3373
|
-
return [3, 5];
|
|
3395
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3396
|
+
case 3: throw _d.sent();
|
|
3374
3397
|
case 4:
|
|
3375
3398
|
parsedBody = parsedOutput.body;
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
response
|
|
3382
|
-
delete response.Message;
|
|
3383
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3399
|
+
response = new __BaseException({
|
|
3400
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3401
|
+
$fault: "client",
|
|
3402
|
+
$metadata: deserializeMetadata(output),
|
|
3403
|
+
});
|
|
3404
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3384
3405
|
}
|
|
3385
3406
|
});
|
|
3386
3407
|
}); };
|
|
@@ -3403,16 +3424,16 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
3403
3424
|
});
|
|
3404
3425
|
}); };
|
|
3405
3426
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3406
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3407
|
-
var
|
|
3408
|
-
return __generator(this, function (
|
|
3409
|
-
switch (
|
|
3427
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3428
|
+
var _c;
|
|
3429
|
+
return __generator(this, function (_d) {
|
|
3430
|
+
switch (_d.label) {
|
|
3410
3431
|
case 0:
|
|
3411
3432
|
_a = [__assign({}, output)];
|
|
3412
|
-
|
|
3433
|
+
_c = {};
|
|
3413
3434
|
return [4, parseBody(output.body, context)];
|
|
3414
3435
|
case 1:
|
|
3415
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3436
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3416
3437
|
errorCode = "UnknownError";
|
|
3417
3438
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3418
3439
|
_b = errorCode;
|
|
@@ -3421,22 +3442,16 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
3421
3442
|
case "com.amazonaws.mediatailor#BadRequestException": return [3, 2];
|
|
3422
3443
|
}
|
|
3423
3444
|
return [3, 4];
|
|
3424
|
-
case 2:
|
|
3425
|
-
|
|
3426
|
-
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3427
|
-
case 3:
|
|
3428
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3429
|
-
return [3, 5];
|
|
3445
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3446
|
+
case 3: throw _d.sent();
|
|
3430
3447
|
case 4:
|
|
3431
3448
|
parsedBody = parsedOutput.body;
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
response
|
|
3438
|
-
delete response.Message;
|
|
3439
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3449
|
+
response = new __BaseException({
|
|
3450
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3451
|
+
$fault: "client",
|
|
3452
|
+
$metadata: deserializeMetadata(output),
|
|
3453
|
+
});
|
|
3454
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3440
3455
|
}
|
|
3441
3456
|
});
|
|
3442
3457
|
}); };
|
|
@@ -3497,7 +3512,7 @@ export var deserializeAws_restJson1UpdateChannelCommand = function (output, cont
|
|
|
3497
3512
|
});
|
|
3498
3513
|
}); };
|
|
3499
3514
|
var deserializeAws_restJson1UpdateChannelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3500
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
3515
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
3501
3516
|
var _b;
|
|
3502
3517
|
return __generator(this, function (_c) {
|
|
3503
3518
|
switch (_c.label) {
|
|
@@ -3512,13 +3527,14 @@ var deserializeAws_restJson1UpdateChannelCommandError = function (output, contex
|
|
|
3512
3527
|
switch (errorCode) {
|
|
3513
3528
|
default:
|
|
3514
3529
|
parsedBody = parsedOutput.body;
|
|
3515
|
-
|
|
3516
|
-
|
|
3530
|
+
response = new __BaseException({
|
|
3531
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3532
|
+
$fault: "client",
|
|
3533
|
+
$metadata: deserializeMetadata(output),
|
|
3534
|
+
});
|
|
3535
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3517
3536
|
}
|
|
3518
|
-
|
|
3519
|
-
response.message = message;
|
|
3520
|
-
delete response.Message;
|
|
3521
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3537
|
+
return [2];
|
|
3522
3538
|
}
|
|
3523
3539
|
});
|
|
3524
3540
|
}); };
|
|
@@ -3579,7 +3595,7 @@ export var deserializeAws_restJson1UpdateSourceLocationCommand = function (outpu
|
|
|
3579
3595
|
});
|
|
3580
3596
|
}); };
|
|
3581
3597
|
var deserializeAws_restJson1UpdateSourceLocationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3582
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
3598
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
3583
3599
|
var _b;
|
|
3584
3600
|
return __generator(this, function (_c) {
|
|
3585
3601
|
switch (_c.label) {
|
|
@@ -3594,13 +3610,14 @@ var deserializeAws_restJson1UpdateSourceLocationCommandError = function (output,
|
|
|
3594
3610
|
switch (errorCode) {
|
|
3595
3611
|
default:
|
|
3596
3612
|
parsedBody = parsedOutput.body;
|
|
3597
|
-
|
|
3598
|
-
|
|
3613
|
+
response = new __BaseException({
|
|
3614
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3615
|
+
$fault: "client",
|
|
3616
|
+
$metadata: deserializeMetadata(output),
|
|
3617
|
+
});
|
|
3618
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3599
3619
|
}
|
|
3600
|
-
|
|
3601
|
-
response.message = message;
|
|
3602
|
-
delete response.Message;
|
|
3603
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3620
|
+
return [2];
|
|
3604
3621
|
}
|
|
3605
3622
|
});
|
|
3606
3623
|
}); };
|
|
@@ -3653,7 +3670,7 @@ export var deserializeAws_restJson1UpdateVodSourceCommand = function (output, co
|
|
|
3653
3670
|
});
|
|
3654
3671
|
}); };
|
|
3655
3672
|
var deserializeAws_restJson1UpdateVodSourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3656
|
-
var parsedOutput, _a, response, errorCode, parsedBody
|
|
3673
|
+
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
3657
3674
|
var _b;
|
|
3658
3675
|
return __generator(this, function (_c) {
|
|
3659
3676
|
switch (_c.label) {
|
|
@@ -3668,30 +3685,27 @@ var deserializeAws_restJson1UpdateVodSourceCommandError = function (output, cont
|
|
|
3668
3685
|
switch (errorCode) {
|
|
3669
3686
|
default:
|
|
3670
3687
|
parsedBody = parsedOutput.body;
|
|
3671
|
-
|
|
3672
|
-
|
|
3688
|
+
response = new __BaseException({
|
|
3689
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3690
|
+
$fault: "client",
|
|
3691
|
+
$metadata: deserializeMetadata(output),
|
|
3692
|
+
});
|
|
3693
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3673
3694
|
}
|
|
3674
|
-
|
|
3675
|
-
response.message = message;
|
|
3676
|
-
delete response.Message;
|
|
3677
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3695
|
+
return [2];
|
|
3678
3696
|
}
|
|
3679
3697
|
});
|
|
3680
3698
|
}); };
|
|
3681
3699
|
var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3682
|
-
var contents, data;
|
|
3700
|
+
var contents, data, exception;
|
|
3683
3701
|
return __generator(this, function (_a) {
|
|
3684
|
-
contents = {
|
|
3685
|
-
name: "BadRequestException",
|
|
3686
|
-
$fault: "client",
|
|
3687
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3688
|
-
Message: undefined,
|
|
3689
|
-
};
|
|
3702
|
+
contents = {};
|
|
3690
3703
|
data = parsedOutput.body;
|
|
3691
3704
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3692
3705
|
contents.Message = __expectString(data.Message);
|
|
3693
3706
|
}
|
|
3694
|
-
|
|
3707
|
+
exception = new BadRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
3708
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
3695
3709
|
});
|
|
3696
3710
|
}); };
|
|
3697
3711
|
var serializeAws_restJson1__listOfAdBreak = function (input, context) {
|
|
@@ -3884,7 +3898,7 @@ var serializeAws_restJson1Transition = function (input, context) {
|
|
|
3884
3898
|
input.ScheduledStartTimeMillis !== null && { ScheduledStartTimeMillis: input.ScheduledStartTimeMillis })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
|
|
3885
3899
|
};
|
|
3886
3900
|
var deserializeAws_restJson1__listOf__string = function (output, context) {
|
|
3887
|
-
|
|
3901
|
+
var retVal = (output || [])
|
|
3888
3902
|
.filter(function (e) { return e != null; })
|
|
3889
3903
|
.map(function (entry) {
|
|
3890
3904
|
if (entry === null) {
|
|
@@ -3892,9 +3906,10 @@ var deserializeAws_restJson1__listOf__string = function (output, context) {
|
|
|
3892
3906
|
}
|
|
3893
3907
|
return __expectString(entry);
|
|
3894
3908
|
});
|
|
3909
|
+
return retVal;
|
|
3895
3910
|
};
|
|
3896
3911
|
var deserializeAws_restJson1__listOfAdBreak = function (output, context) {
|
|
3897
|
-
|
|
3912
|
+
var retVal = (output || [])
|
|
3898
3913
|
.filter(function (e) { return e != null; })
|
|
3899
3914
|
.map(function (entry) {
|
|
3900
3915
|
if (entry === null) {
|
|
@@ -3902,9 +3917,10 @@ var deserializeAws_restJson1__listOfAdBreak = function (output, context) {
|
|
|
3902
3917
|
}
|
|
3903
3918
|
return deserializeAws_restJson1AdBreak(entry, context);
|
|
3904
3919
|
});
|
|
3920
|
+
return retVal;
|
|
3905
3921
|
};
|
|
3906
3922
|
var deserializeAws_restJson1__listOfAlert = function (output, context) {
|
|
3907
|
-
|
|
3923
|
+
var retVal = (output || [])
|
|
3908
3924
|
.filter(function (e) { return e != null; })
|
|
3909
3925
|
.map(function (entry) {
|
|
3910
3926
|
if (entry === null) {
|
|
@@ -3912,9 +3928,10 @@ var deserializeAws_restJson1__listOfAlert = function (output, context) {
|
|
|
3912
3928
|
}
|
|
3913
3929
|
return deserializeAws_restJson1Alert(entry, context);
|
|
3914
3930
|
});
|
|
3931
|
+
return retVal;
|
|
3915
3932
|
};
|
|
3916
3933
|
var deserializeAws_restJson1__listOfAvailMatchingCriteria = function (output, context) {
|
|
3917
|
-
|
|
3934
|
+
var retVal = (output || [])
|
|
3918
3935
|
.filter(function (e) { return e != null; })
|
|
3919
3936
|
.map(function (entry) {
|
|
3920
3937
|
if (entry === null) {
|
|
@@ -3922,9 +3939,10 @@ var deserializeAws_restJson1__listOfAvailMatchingCriteria = function (output, co
|
|
|
3922
3939
|
}
|
|
3923
3940
|
return deserializeAws_restJson1AvailMatchingCriteria(entry, context);
|
|
3924
3941
|
});
|
|
3942
|
+
return retVal;
|
|
3925
3943
|
};
|
|
3926
3944
|
var deserializeAws_restJson1__listOfChannel = function (output, context) {
|
|
3927
|
-
|
|
3945
|
+
var retVal = (output || [])
|
|
3928
3946
|
.filter(function (e) { return e != null; })
|
|
3929
3947
|
.map(function (entry) {
|
|
3930
3948
|
if (entry === null) {
|
|
@@ -3932,9 +3950,10 @@ var deserializeAws_restJson1__listOfChannel = function (output, context) {
|
|
|
3932
3950
|
}
|
|
3933
3951
|
return deserializeAws_restJson1Channel(entry, context);
|
|
3934
3952
|
});
|
|
3953
|
+
return retVal;
|
|
3935
3954
|
};
|
|
3936
3955
|
var deserializeAws_restJson1__listOfPlaybackConfiguration = function (output, context) {
|
|
3937
|
-
|
|
3956
|
+
var retVal = (output || [])
|
|
3938
3957
|
.filter(function (e) { return e != null; })
|
|
3939
3958
|
.map(function (entry) {
|
|
3940
3959
|
if (entry === null) {
|
|
@@ -3942,9 +3961,10 @@ var deserializeAws_restJson1__listOfPlaybackConfiguration = function (output, co
|
|
|
3942
3961
|
}
|
|
3943
3962
|
return deserializeAws_restJson1PlaybackConfiguration(entry, context);
|
|
3944
3963
|
});
|
|
3964
|
+
return retVal;
|
|
3945
3965
|
};
|
|
3946
3966
|
var deserializeAws_restJson1__listOfPrefetchSchedule = function (output, context) {
|
|
3947
|
-
|
|
3967
|
+
var retVal = (output || [])
|
|
3948
3968
|
.filter(function (e) { return e != null; })
|
|
3949
3969
|
.map(function (entry) {
|
|
3950
3970
|
if (entry === null) {
|
|
@@ -3952,9 +3972,10 @@ var deserializeAws_restJson1__listOfPrefetchSchedule = function (output, context
|
|
|
3952
3972
|
}
|
|
3953
3973
|
return deserializeAws_restJson1PrefetchSchedule(entry, context);
|
|
3954
3974
|
});
|
|
3975
|
+
return retVal;
|
|
3955
3976
|
};
|
|
3956
3977
|
var deserializeAws_restJson1__listOfScheduleAdBreak = function (output, context) {
|
|
3957
|
-
|
|
3978
|
+
var retVal = (output || [])
|
|
3958
3979
|
.filter(function (e) { return e != null; })
|
|
3959
3980
|
.map(function (entry) {
|
|
3960
3981
|
if (entry === null) {
|
|
@@ -3962,9 +3983,10 @@ var deserializeAws_restJson1__listOfScheduleAdBreak = function (output, context)
|
|
|
3962
3983
|
}
|
|
3963
3984
|
return deserializeAws_restJson1ScheduleAdBreak(entry, context);
|
|
3964
3985
|
});
|
|
3986
|
+
return retVal;
|
|
3965
3987
|
};
|
|
3966
3988
|
var deserializeAws_restJson1__listOfScheduleEntry = function (output, context) {
|
|
3967
|
-
|
|
3989
|
+
var retVal = (output || [])
|
|
3968
3990
|
.filter(function (e) { return e != null; })
|
|
3969
3991
|
.map(function (entry) {
|
|
3970
3992
|
if (entry === null) {
|
|
@@ -3972,9 +3994,10 @@ var deserializeAws_restJson1__listOfScheduleEntry = function (output, context) {
|
|
|
3972
3994
|
}
|
|
3973
3995
|
return deserializeAws_restJson1ScheduleEntry(entry, context);
|
|
3974
3996
|
});
|
|
3997
|
+
return retVal;
|
|
3975
3998
|
};
|
|
3976
3999
|
var deserializeAws_restJson1__listOfSegmentDeliveryConfiguration = function (output, context) {
|
|
3977
|
-
|
|
4000
|
+
var retVal = (output || [])
|
|
3978
4001
|
.filter(function (e) { return e != null; })
|
|
3979
4002
|
.map(function (entry) {
|
|
3980
4003
|
if (entry === null) {
|
|
@@ -3982,9 +4005,10 @@ var deserializeAws_restJson1__listOfSegmentDeliveryConfiguration = function (out
|
|
|
3982
4005
|
}
|
|
3983
4006
|
return deserializeAws_restJson1SegmentDeliveryConfiguration(entry, context);
|
|
3984
4007
|
});
|
|
4008
|
+
return retVal;
|
|
3985
4009
|
};
|
|
3986
4010
|
var deserializeAws_restJson1__listOfSourceLocation = function (output, context) {
|
|
3987
|
-
|
|
4011
|
+
var retVal = (output || [])
|
|
3988
4012
|
.filter(function (e) { return e != null; })
|
|
3989
4013
|
.map(function (entry) {
|
|
3990
4014
|
if (entry === null) {
|
|
@@ -3992,9 +4016,10 @@ var deserializeAws_restJson1__listOfSourceLocation = function (output, context)
|
|
|
3992
4016
|
}
|
|
3993
4017
|
return deserializeAws_restJson1SourceLocation(entry, context);
|
|
3994
4018
|
});
|
|
4019
|
+
return retVal;
|
|
3995
4020
|
};
|
|
3996
4021
|
var deserializeAws_restJson1__listOfVodSource = function (output, context) {
|
|
3997
|
-
|
|
4022
|
+
var retVal = (output || [])
|
|
3998
4023
|
.filter(function (e) { return e != null; })
|
|
3999
4024
|
.map(function (entry) {
|
|
4000
4025
|
if (entry === null) {
|
|
@@ -4002,6 +4027,7 @@ var deserializeAws_restJson1__listOfVodSource = function (output, context) {
|
|
|
4002
4027
|
}
|
|
4003
4028
|
return deserializeAws_restJson1VodSource(entry, context);
|
|
4004
4029
|
});
|
|
4030
|
+
return retVal;
|
|
4005
4031
|
};
|
|
4006
4032
|
var deserializeAws_restJson1__mapOf__string = function (output, context) {
|
|
4007
4033
|
return Object.entries(output).reduce(function (acc, _a) {
|
|
@@ -4152,7 +4178,7 @@ var deserializeAws_restJson1HttpPackageConfiguration = function (output, context
|
|
|
4152
4178
|
};
|
|
4153
4179
|
};
|
|
4154
4180
|
var deserializeAws_restJson1HttpPackageConfigurations = function (output, context) {
|
|
4155
|
-
|
|
4181
|
+
var retVal = (output || [])
|
|
4156
4182
|
.filter(function (e) { return e != null; })
|
|
4157
4183
|
.map(function (entry) {
|
|
4158
4184
|
if (entry === null) {
|
|
@@ -4160,6 +4186,7 @@ var deserializeAws_restJson1HttpPackageConfigurations = function (output, contex
|
|
|
4160
4186
|
}
|
|
4161
4187
|
return deserializeAws_restJson1HttpPackageConfiguration(entry, context);
|
|
4162
4188
|
});
|
|
4189
|
+
return retVal;
|
|
4163
4190
|
};
|
|
4164
4191
|
var deserializeAws_restJson1LivePreRollConfiguration = function (output, context) {
|
|
4165
4192
|
return {
|
|
@@ -4276,7 +4303,7 @@ var deserializeAws_restJson1ResponseOutputItem = function (output, context) {
|
|
|
4276
4303
|
};
|
|
4277
4304
|
};
|
|
4278
4305
|
var deserializeAws_restJson1ResponseOutputs = function (output, context) {
|
|
4279
|
-
|
|
4306
|
+
var retVal = (output || [])
|
|
4280
4307
|
.filter(function (e) { return e != null; })
|
|
4281
4308
|
.map(function (entry) {
|
|
4282
4309
|
if (entry === null) {
|
|
@@ -4284,6 +4311,7 @@ var deserializeAws_restJson1ResponseOutputs = function (output, context) {
|
|
|
4284
4311
|
}
|
|
4285
4312
|
return deserializeAws_restJson1ResponseOutputItem(entry, context);
|
|
4286
4313
|
});
|
|
4314
|
+
return retVal;
|
|
4287
4315
|
};
|
|
4288
4316
|
var deserializeAws_restJson1ScheduleAdBreak = function (output, context) {
|
|
4289
4317
|
return {
|