@aws-sdk/client-mediatailor 3.28.0 → 3.32.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.
@@ -1,6 +1,6 @@
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, expectInt as __expectInt, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client";
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";
4
4
  export var serializeAws_restJson1CreateChannelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
5
5
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
6
6
  return __generator(this, function (_c) {
@@ -22,7 +22,8 @@ export var serializeAws_restJson1CreateChannelCommand = function (input, context
22
22
  else {
23
23
  throw new Error("No value provided for input HTTP label: ChannelName.");
24
24
  }
25
- body = JSON.stringify(__assign(__assign(__assign({}, (input.Outputs !== undefined &&
25
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.FillerSlate !== undefined &&
26
+ input.FillerSlate !== null && { FillerSlate: serializeAws_restJson1SlateSource(input.FillerSlate, context) })), (input.Outputs !== undefined &&
26
27
  input.Outputs !== null && { Outputs: serializeAws_restJson1RequestOutputs(input.Outputs, context) })), (input.PlaybackMode !== undefined && input.PlaybackMode !== null && { PlaybackMode: input.PlaybackMode })), (input.Tags !== undefined &&
27
28
  input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
28
29
  return [2 /*return*/, new __HttpRequest({
@@ -1127,9 +1128,9 @@ export var serializeAws_restJson1UpdateVodSourceCommand = function (input, conte
1127
1128
  });
1128
1129
  }); };
1129
1130
  export var deserializeAws_restJson1CreateChannelCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1130
- var contents, data;
1131
- return __generator(this, function (_a) {
1132
- switch (_a.label) {
1131
+ var contents, data, _a, _b;
1132
+ return __generator(this, function (_c) {
1133
+ switch (_c.label) {
1133
1134
  case 0:
1134
1135
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1135
1136
  return [2 /*return*/, deserializeAws_restJson1CreateChannelCommandError(output, context)];
@@ -1140,14 +1141,17 @@ export var deserializeAws_restJson1CreateChannelCommand = function (output, cont
1140
1141
  ChannelName: undefined,
1141
1142
  ChannelState: undefined,
1142
1143
  CreationTime: undefined,
1144
+ FillerSlate: undefined,
1143
1145
  LastModifiedTime: undefined,
1144
1146
  Outputs: undefined,
1145
1147
  PlaybackMode: undefined,
1146
1148
  Tags: undefined,
1147
1149
  };
1150
+ _a = __expectNonNull;
1151
+ _b = __expectObject;
1148
1152
  return [4 /*yield*/, parseBody(output.body, context)];
1149
1153
  case 1:
1150
- data = _a.sent();
1154
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1151
1155
  if (data.Arn !== undefined && data.Arn !== null) {
1152
1156
  contents.Arn = __expectString(data.Arn);
1153
1157
  }
@@ -1158,10 +1162,13 @@ export var deserializeAws_restJson1CreateChannelCommand = function (output, cont
1158
1162
  contents.ChannelState = __expectString(data.ChannelState);
1159
1163
  }
1160
1164
  if (data.CreationTime !== undefined && data.CreationTime !== null) {
1161
- contents.CreationTime = new Date(Math.round(data.CreationTime * 1000));
1165
+ contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
1166
+ }
1167
+ if (data.FillerSlate !== undefined && data.FillerSlate !== null) {
1168
+ contents.FillerSlate = deserializeAws_restJson1SlateSource(data.FillerSlate, context);
1162
1169
  }
1163
1170
  if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
1164
- contents.LastModifiedTime = new Date(Math.round(data.LastModifiedTime * 1000));
1171
+ contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
1165
1172
  }
1166
1173
  if (data.Outputs !== undefined && data.Outputs !== null) {
1167
1174
  contents.Outputs = deserializeAws_restJson1ResponseOutputs(data.Outputs, context);
@@ -1203,9 +1210,9 @@ var deserializeAws_restJson1CreateChannelCommandError = function (output, contex
1203
1210
  });
1204
1211
  }); };
1205
1212
  export var deserializeAws_restJson1CreateProgramCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1206
- var contents, data;
1207
- return __generator(this, function (_a) {
1208
- switch (_a.label) {
1213
+ var contents, data, _a, _b;
1214
+ return __generator(this, function (_c) {
1215
+ switch (_c.label) {
1209
1216
  case 0:
1210
1217
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1211
1218
  return [2 /*return*/, deserializeAws_restJson1CreateProgramCommandError(output, context)];
@@ -1217,12 +1224,15 @@ export var deserializeAws_restJson1CreateProgramCommand = function (output, cont
1217
1224
  ChannelName: undefined,
1218
1225
  CreationTime: undefined,
1219
1226
  ProgramName: undefined,
1227
+ ScheduledStartTime: undefined,
1220
1228
  SourceLocationName: undefined,
1221
1229
  VodSourceName: undefined,
1222
1230
  };
1231
+ _a = __expectNonNull;
1232
+ _b = __expectObject;
1223
1233
  return [4 /*yield*/, parseBody(output.body, context)];
1224
1234
  case 1:
1225
- data = _a.sent();
1235
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1226
1236
  if (data.AdBreaks !== undefined && data.AdBreaks !== null) {
1227
1237
  contents.AdBreaks = deserializeAws_restJson1__listOfAdBreak(data.AdBreaks, context);
1228
1238
  }
@@ -1233,11 +1243,14 @@ export var deserializeAws_restJson1CreateProgramCommand = function (output, cont
1233
1243
  contents.ChannelName = __expectString(data.ChannelName);
1234
1244
  }
1235
1245
  if (data.CreationTime !== undefined && data.CreationTime !== null) {
1236
- contents.CreationTime = new Date(Math.round(data.CreationTime * 1000));
1246
+ contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
1237
1247
  }
1238
1248
  if (data.ProgramName !== undefined && data.ProgramName !== null) {
1239
1249
  contents.ProgramName = __expectString(data.ProgramName);
1240
1250
  }
1251
+ if (data.ScheduledStartTime !== undefined && data.ScheduledStartTime !== null) {
1252
+ contents.ScheduledStartTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.ScheduledStartTime)));
1253
+ }
1241
1254
  if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
1242
1255
  contents.SourceLocationName = __expectString(data.SourceLocationName);
1243
1256
  }
@@ -1275,9 +1288,9 @@ var deserializeAws_restJson1CreateProgramCommandError = function (output, contex
1275
1288
  });
1276
1289
  }); };
1277
1290
  export var deserializeAws_restJson1CreateSourceLocationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1278
- var contents, data;
1279
- return __generator(this, function (_a) {
1280
- switch (_a.label) {
1291
+ var contents, data, _a, _b;
1292
+ return __generator(this, function (_c) {
1293
+ switch (_c.label) {
1281
1294
  case 0:
1282
1295
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1283
1296
  return [2 /*return*/, deserializeAws_restJson1CreateSourceLocationCommandError(output, context)];
@@ -1293,9 +1306,11 @@ export var deserializeAws_restJson1CreateSourceLocationCommand = function (outpu
1293
1306
  SourceLocationName: undefined,
1294
1307
  Tags: undefined,
1295
1308
  };
1309
+ _a = __expectNonNull;
1310
+ _b = __expectObject;
1296
1311
  return [4 /*yield*/, parseBody(output.body, context)];
1297
1312
  case 1:
1298
- data = _a.sent();
1313
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1299
1314
  if (data.AccessConfiguration !== undefined && data.AccessConfiguration !== null) {
1300
1315
  contents.AccessConfiguration = deserializeAws_restJson1AccessConfiguration(data.AccessConfiguration, context);
1301
1316
  }
@@ -1303,7 +1318,7 @@ export var deserializeAws_restJson1CreateSourceLocationCommand = function (outpu
1303
1318
  contents.Arn = __expectString(data.Arn);
1304
1319
  }
1305
1320
  if (data.CreationTime !== undefined && data.CreationTime !== null) {
1306
- contents.CreationTime = new Date(Math.round(data.CreationTime * 1000));
1321
+ contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
1307
1322
  }
1308
1323
  if (data.DefaultSegmentDeliveryConfiguration !== undefined && data.DefaultSegmentDeliveryConfiguration !== null) {
1309
1324
  contents.DefaultSegmentDeliveryConfiguration = deserializeAws_restJson1DefaultSegmentDeliveryConfiguration(data.DefaultSegmentDeliveryConfiguration, context);
@@ -1312,7 +1327,7 @@ export var deserializeAws_restJson1CreateSourceLocationCommand = function (outpu
1312
1327
  contents.HttpConfiguration = deserializeAws_restJson1HttpConfiguration(data.HttpConfiguration, context);
1313
1328
  }
1314
1329
  if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
1315
- contents.LastModifiedTime = new Date(Math.round(data.LastModifiedTime * 1000));
1330
+ contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
1316
1331
  }
1317
1332
  if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
1318
1333
  contents.SourceLocationName = __expectString(data.SourceLocationName);
@@ -1351,9 +1366,9 @@ var deserializeAws_restJson1CreateSourceLocationCommandError = function (output,
1351
1366
  });
1352
1367
  }); };
1353
1368
  export var deserializeAws_restJson1CreateVodSourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1354
- var contents, data;
1355
- return __generator(this, function (_a) {
1356
- switch (_a.label) {
1369
+ var contents, data, _a, _b;
1370
+ return __generator(this, function (_c) {
1371
+ switch (_c.label) {
1357
1372
  case 0:
1358
1373
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1359
1374
  return [2 /*return*/, deserializeAws_restJson1CreateVodSourceCommandError(output, context)];
@@ -1368,20 +1383,22 @@ export var deserializeAws_restJson1CreateVodSourceCommand = function (output, co
1368
1383
  Tags: undefined,
1369
1384
  VodSourceName: undefined,
1370
1385
  };
1386
+ _a = __expectNonNull;
1387
+ _b = __expectObject;
1371
1388
  return [4 /*yield*/, parseBody(output.body, context)];
1372
1389
  case 1:
1373
- data = _a.sent();
1390
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1374
1391
  if (data.Arn !== undefined && data.Arn !== null) {
1375
1392
  contents.Arn = __expectString(data.Arn);
1376
1393
  }
1377
1394
  if (data.CreationTime !== undefined && data.CreationTime !== null) {
1378
- contents.CreationTime = new Date(Math.round(data.CreationTime * 1000));
1395
+ contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
1379
1396
  }
1380
1397
  if (data.HttpPackageConfigurations !== undefined && data.HttpPackageConfigurations !== null) {
1381
1398
  contents.HttpPackageConfigurations = deserializeAws_restJson1HttpPackageConfigurations(data.HttpPackageConfigurations, context);
1382
1399
  }
1383
1400
  if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
1384
- contents.LastModifiedTime = new Date(Math.round(data.LastModifiedTime * 1000));
1401
+ contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
1385
1402
  }
1386
1403
  if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
1387
1404
  contents.SourceLocationName = __expectString(data.SourceLocationName);
@@ -1687,9 +1704,9 @@ var deserializeAws_restJson1DeleteVodSourceCommandError = function (output, cont
1687
1704
  });
1688
1705
  }); };
1689
1706
  export var deserializeAws_restJson1DescribeChannelCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1690
- var contents, data;
1691
- return __generator(this, function (_a) {
1692
- switch (_a.label) {
1707
+ var contents, data, _a, _b;
1708
+ return __generator(this, function (_c) {
1709
+ switch (_c.label) {
1693
1710
  case 0:
1694
1711
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1695
1712
  return [2 /*return*/, deserializeAws_restJson1DescribeChannelCommandError(output, context)];
@@ -1700,14 +1717,17 @@ export var deserializeAws_restJson1DescribeChannelCommand = function (output, co
1700
1717
  ChannelName: undefined,
1701
1718
  ChannelState: undefined,
1702
1719
  CreationTime: undefined,
1720
+ FillerSlate: undefined,
1703
1721
  LastModifiedTime: undefined,
1704
1722
  Outputs: undefined,
1705
1723
  PlaybackMode: undefined,
1706
1724
  Tags: undefined,
1707
1725
  };
1726
+ _a = __expectNonNull;
1727
+ _b = __expectObject;
1708
1728
  return [4 /*yield*/, parseBody(output.body, context)];
1709
1729
  case 1:
1710
- data = _a.sent();
1730
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1711
1731
  if (data.Arn !== undefined && data.Arn !== null) {
1712
1732
  contents.Arn = __expectString(data.Arn);
1713
1733
  }
@@ -1718,10 +1738,13 @@ export var deserializeAws_restJson1DescribeChannelCommand = function (output, co
1718
1738
  contents.ChannelState = __expectString(data.ChannelState);
1719
1739
  }
1720
1740
  if (data.CreationTime !== undefined && data.CreationTime !== null) {
1721
- contents.CreationTime = new Date(Math.round(data.CreationTime * 1000));
1741
+ contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
1742
+ }
1743
+ if (data.FillerSlate !== undefined && data.FillerSlate !== null) {
1744
+ contents.FillerSlate = deserializeAws_restJson1SlateSource(data.FillerSlate, context);
1722
1745
  }
1723
1746
  if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
1724
- contents.LastModifiedTime = new Date(Math.round(data.LastModifiedTime * 1000));
1747
+ contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
1725
1748
  }
1726
1749
  if (data.Outputs !== undefined && data.Outputs !== null) {
1727
1750
  contents.Outputs = deserializeAws_restJson1ResponseOutputs(data.Outputs, context);
@@ -1763,9 +1786,9 @@ var deserializeAws_restJson1DescribeChannelCommandError = function (output, cont
1763
1786
  });
1764
1787
  }); };
1765
1788
  export var deserializeAws_restJson1DescribeProgramCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1766
- var contents, data;
1767
- return __generator(this, function (_a) {
1768
- switch (_a.label) {
1789
+ var contents, data, _a, _b;
1790
+ return __generator(this, function (_c) {
1791
+ switch (_c.label) {
1769
1792
  case 0:
1770
1793
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1771
1794
  return [2 /*return*/, deserializeAws_restJson1DescribeProgramCommandError(output, context)];
@@ -1777,12 +1800,15 @@ export var deserializeAws_restJson1DescribeProgramCommand = function (output, co
1777
1800
  ChannelName: undefined,
1778
1801
  CreationTime: undefined,
1779
1802
  ProgramName: undefined,
1803
+ ScheduledStartTime: undefined,
1780
1804
  SourceLocationName: undefined,
1781
1805
  VodSourceName: undefined,
1782
1806
  };
1807
+ _a = __expectNonNull;
1808
+ _b = __expectObject;
1783
1809
  return [4 /*yield*/, parseBody(output.body, context)];
1784
1810
  case 1:
1785
- data = _a.sent();
1811
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1786
1812
  if (data.AdBreaks !== undefined && data.AdBreaks !== null) {
1787
1813
  contents.AdBreaks = deserializeAws_restJson1__listOfAdBreak(data.AdBreaks, context);
1788
1814
  }
@@ -1793,11 +1819,14 @@ export var deserializeAws_restJson1DescribeProgramCommand = function (output, co
1793
1819
  contents.ChannelName = __expectString(data.ChannelName);
1794
1820
  }
1795
1821
  if (data.CreationTime !== undefined && data.CreationTime !== null) {
1796
- contents.CreationTime = new Date(Math.round(data.CreationTime * 1000));
1822
+ contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
1797
1823
  }
1798
1824
  if (data.ProgramName !== undefined && data.ProgramName !== null) {
1799
1825
  contents.ProgramName = __expectString(data.ProgramName);
1800
1826
  }
1827
+ if (data.ScheduledStartTime !== undefined && data.ScheduledStartTime !== null) {
1828
+ contents.ScheduledStartTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.ScheduledStartTime)));
1829
+ }
1801
1830
  if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
1802
1831
  contents.SourceLocationName = __expectString(data.SourceLocationName);
1803
1832
  }
@@ -1835,9 +1864,9 @@ var deserializeAws_restJson1DescribeProgramCommandError = function (output, cont
1835
1864
  });
1836
1865
  }); };
1837
1866
  export var deserializeAws_restJson1DescribeSourceLocationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1838
- var contents, data;
1839
- return __generator(this, function (_a) {
1840
- switch (_a.label) {
1867
+ var contents, data, _a, _b;
1868
+ return __generator(this, function (_c) {
1869
+ switch (_c.label) {
1841
1870
  case 0:
1842
1871
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1843
1872
  return [2 /*return*/, deserializeAws_restJson1DescribeSourceLocationCommandError(output, context)];
@@ -1853,9 +1882,11 @@ export var deserializeAws_restJson1DescribeSourceLocationCommand = function (out
1853
1882
  SourceLocationName: undefined,
1854
1883
  Tags: undefined,
1855
1884
  };
1885
+ _a = __expectNonNull;
1886
+ _b = __expectObject;
1856
1887
  return [4 /*yield*/, parseBody(output.body, context)];
1857
1888
  case 1:
1858
- data = _a.sent();
1889
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1859
1890
  if (data.AccessConfiguration !== undefined && data.AccessConfiguration !== null) {
1860
1891
  contents.AccessConfiguration = deserializeAws_restJson1AccessConfiguration(data.AccessConfiguration, context);
1861
1892
  }
@@ -1863,7 +1894,7 @@ export var deserializeAws_restJson1DescribeSourceLocationCommand = function (out
1863
1894
  contents.Arn = __expectString(data.Arn);
1864
1895
  }
1865
1896
  if (data.CreationTime !== undefined && data.CreationTime !== null) {
1866
- contents.CreationTime = new Date(Math.round(data.CreationTime * 1000));
1897
+ contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
1867
1898
  }
1868
1899
  if (data.DefaultSegmentDeliveryConfiguration !== undefined && data.DefaultSegmentDeliveryConfiguration !== null) {
1869
1900
  contents.DefaultSegmentDeliveryConfiguration = deserializeAws_restJson1DefaultSegmentDeliveryConfiguration(data.DefaultSegmentDeliveryConfiguration, context);
@@ -1872,7 +1903,7 @@ export var deserializeAws_restJson1DescribeSourceLocationCommand = function (out
1872
1903
  contents.HttpConfiguration = deserializeAws_restJson1HttpConfiguration(data.HttpConfiguration, context);
1873
1904
  }
1874
1905
  if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
1875
- contents.LastModifiedTime = new Date(Math.round(data.LastModifiedTime * 1000));
1906
+ contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
1876
1907
  }
1877
1908
  if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
1878
1909
  contents.SourceLocationName = __expectString(data.SourceLocationName);
@@ -1911,9 +1942,9 @@ var deserializeAws_restJson1DescribeSourceLocationCommandError = function (outpu
1911
1942
  });
1912
1943
  }); };
1913
1944
  export var deserializeAws_restJson1DescribeVodSourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1914
- var contents, data;
1915
- return __generator(this, function (_a) {
1916
- switch (_a.label) {
1945
+ var contents, data, _a, _b;
1946
+ return __generator(this, function (_c) {
1947
+ switch (_c.label) {
1917
1948
  case 0:
1918
1949
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1919
1950
  return [2 /*return*/, deserializeAws_restJson1DescribeVodSourceCommandError(output, context)];
@@ -1928,20 +1959,22 @@ export var deserializeAws_restJson1DescribeVodSourceCommand = function (output,
1928
1959
  Tags: undefined,
1929
1960
  VodSourceName: undefined,
1930
1961
  };
1962
+ _a = __expectNonNull;
1963
+ _b = __expectObject;
1931
1964
  return [4 /*yield*/, parseBody(output.body, context)];
1932
1965
  case 1:
1933
- data = _a.sent();
1966
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1934
1967
  if (data.Arn !== undefined && data.Arn !== null) {
1935
1968
  contents.Arn = __expectString(data.Arn);
1936
1969
  }
1937
1970
  if (data.CreationTime !== undefined && data.CreationTime !== null) {
1938
- contents.CreationTime = new Date(Math.round(data.CreationTime * 1000));
1971
+ contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
1939
1972
  }
1940
1973
  if (data.HttpPackageConfigurations !== undefined && data.HttpPackageConfigurations !== null) {
1941
1974
  contents.HttpPackageConfigurations = deserializeAws_restJson1HttpPackageConfigurations(data.HttpPackageConfigurations, context);
1942
1975
  }
1943
1976
  if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
1944
- contents.LastModifiedTime = new Date(Math.round(data.LastModifiedTime * 1000));
1977
+ contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
1945
1978
  }
1946
1979
  if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
1947
1980
  contents.SourceLocationName = __expectString(data.SourceLocationName);
@@ -1983,9 +2016,9 @@ var deserializeAws_restJson1DescribeVodSourceCommandError = function (output, co
1983
2016
  });
1984
2017
  }); };
1985
2018
  export var deserializeAws_restJson1GetChannelPolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1986
- var contents, data;
1987
- return __generator(this, function (_a) {
1988
- switch (_a.label) {
2019
+ var contents, data, _a, _b;
2020
+ return __generator(this, function (_c) {
2021
+ switch (_c.label) {
1989
2022
  case 0:
1990
2023
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1991
2024
  return [2 /*return*/, deserializeAws_restJson1GetChannelPolicyCommandError(output, context)];
@@ -1994,9 +2027,11 @@ export var deserializeAws_restJson1GetChannelPolicyCommand = function (output, c
1994
2027
  $metadata: deserializeMetadata(output),
1995
2028
  Policy: undefined,
1996
2029
  };
2030
+ _a = __expectNonNull;
2031
+ _b = __expectObject;
1997
2032
  return [4 /*yield*/, parseBody(output.body, context)];
1998
2033
  case 1:
1999
- data = _a.sent();
2034
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2000
2035
  if (data.Policy !== undefined && data.Policy !== null) {
2001
2036
  contents.Policy = __expectString(data.Policy);
2002
2037
  }
@@ -2031,9 +2066,9 @@ var deserializeAws_restJson1GetChannelPolicyCommandError = function (output, con
2031
2066
  });
2032
2067
  }); };
2033
2068
  export var deserializeAws_restJson1GetChannelScheduleCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2034
- var contents, data;
2035
- return __generator(this, function (_a) {
2036
- switch (_a.label) {
2069
+ var contents, data, _a, _b;
2070
+ return __generator(this, function (_c) {
2071
+ switch (_c.label) {
2037
2072
  case 0:
2038
2073
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2039
2074
  return [2 /*return*/, deserializeAws_restJson1GetChannelScheduleCommandError(output, context)];
@@ -2043,9 +2078,11 @@ export var deserializeAws_restJson1GetChannelScheduleCommand = function (output,
2043
2078
  Items: undefined,
2044
2079
  NextToken: undefined,
2045
2080
  };
2081
+ _a = __expectNonNull;
2082
+ _b = __expectObject;
2046
2083
  return [4 /*yield*/, parseBody(output.body, context)];
2047
2084
  case 1:
2048
- data = _a.sent();
2085
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2049
2086
  if (data.Items !== undefined && data.Items !== null) {
2050
2087
  contents.Items = deserializeAws_restJson1__listOfScheduleEntry(data.Items, context);
2051
2088
  }
@@ -2083,9 +2120,9 @@ var deserializeAws_restJson1GetChannelScheduleCommandError = function (output, c
2083
2120
  });
2084
2121
  }); };
2085
2122
  export var deserializeAws_restJson1GetPlaybackConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2086
- var contents, data;
2087
- return __generator(this, function (_a) {
2088
- switch (_a.label) {
2123
+ var contents, data, _a, _b;
2124
+ return __generator(this, function (_c) {
2125
+ switch (_c.label) {
2089
2126
  case 0:
2090
2127
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2091
2128
  return [2 /*return*/, deserializeAws_restJson1GetPlaybackConfigurationCommandError(output, context)];
@@ -2111,9 +2148,11 @@ export var deserializeAws_restJson1GetPlaybackConfigurationCommand = function (o
2111
2148
  TranscodeProfileName: undefined,
2112
2149
  VideoContentSourceUrl: undefined,
2113
2150
  };
2151
+ _a = __expectNonNull;
2152
+ _b = __expectObject;
2114
2153
  return [4 /*yield*/, parseBody(output.body, context)];
2115
2154
  case 1:
2116
- data = _a.sent();
2155
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2117
2156
  if (data.AdDecisionServerUrl !== undefined && data.AdDecisionServerUrl !== null) {
2118
2157
  contents.AdDecisionServerUrl = __expectString(data.AdDecisionServerUrl);
2119
2158
  }
@@ -2145,7 +2184,7 @@ export var deserializeAws_restJson1GetPlaybackConfigurationCommand = function (o
2145
2184
  contents.Name = __expectString(data.Name);
2146
2185
  }
2147
2186
  if (data.PersonalizationThresholdSeconds !== undefined && data.PersonalizationThresholdSeconds !== null) {
2148
- contents.PersonalizationThresholdSeconds = __expectInt(data.PersonalizationThresholdSeconds);
2187
+ contents.PersonalizationThresholdSeconds = __expectInt32(data.PersonalizationThresholdSeconds);
2149
2188
  }
2150
2189
  if (data.PlaybackConfigurationArn !== undefined && data.PlaybackConfigurationArn !== null) {
2151
2190
  contents.PlaybackConfigurationArn = __expectString(data.PlaybackConfigurationArn);
@@ -2199,9 +2238,9 @@ var deserializeAws_restJson1GetPlaybackConfigurationCommandError = function (out
2199
2238
  });
2200
2239
  }); };
2201
2240
  export var deserializeAws_restJson1ListAlertsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2202
- var contents, data;
2203
- return __generator(this, function (_a) {
2204
- switch (_a.label) {
2241
+ var contents, data, _a, _b;
2242
+ return __generator(this, function (_c) {
2243
+ switch (_c.label) {
2205
2244
  case 0:
2206
2245
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2207
2246
  return [2 /*return*/, deserializeAws_restJson1ListAlertsCommandError(output, context)];
@@ -2211,9 +2250,11 @@ export var deserializeAws_restJson1ListAlertsCommand = function (output, context
2211
2250
  Items: undefined,
2212
2251
  NextToken: undefined,
2213
2252
  };
2253
+ _a = __expectNonNull;
2254
+ _b = __expectObject;
2214
2255
  return [4 /*yield*/, parseBody(output.body, context)];
2215
2256
  case 1:
2216
- data = _a.sent();
2257
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2217
2258
  if (data.Items !== undefined && data.Items !== null) {
2218
2259
  contents.Items = deserializeAws_restJson1__listOfAlert(data.Items, context);
2219
2260
  }
@@ -2251,9 +2292,9 @@ var deserializeAws_restJson1ListAlertsCommandError = function (output, context)
2251
2292
  });
2252
2293
  }); };
2253
2294
  export var deserializeAws_restJson1ListChannelsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2254
- var contents, data;
2255
- return __generator(this, function (_a) {
2256
- switch (_a.label) {
2295
+ var contents, data, _a, _b;
2296
+ return __generator(this, function (_c) {
2297
+ switch (_c.label) {
2257
2298
  case 0:
2258
2299
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2259
2300
  return [2 /*return*/, deserializeAws_restJson1ListChannelsCommandError(output, context)];
@@ -2263,9 +2304,11 @@ export var deserializeAws_restJson1ListChannelsCommand = function (output, conte
2263
2304
  Items: undefined,
2264
2305
  NextToken: undefined,
2265
2306
  };
2307
+ _a = __expectNonNull;
2308
+ _b = __expectObject;
2266
2309
  return [4 /*yield*/, parseBody(output.body, context)];
2267
2310
  case 1:
2268
- data = _a.sent();
2311
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2269
2312
  if (data.Items !== undefined && data.Items !== null) {
2270
2313
  contents.Items = deserializeAws_restJson1__listOfChannel(data.Items, context);
2271
2314
  }
@@ -2303,9 +2346,9 @@ var deserializeAws_restJson1ListChannelsCommandError = function (output, context
2303
2346
  });
2304
2347
  }); };
2305
2348
  export var deserializeAws_restJson1ListPlaybackConfigurationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2306
- var contents, data;
2307
- return __generator(this, function (_a) {
2308
- switch (_a.label) {
2349
+ var contents, data, _a, _b;
2350
+ return __generator(this, function (_c) {
2351
+ switch (_c.label) {
2309
2352
  case 0:
2310
2353
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2311
2354
  return [2 /*return*/, deserializeAws_restJson1ListPlaybackConfigurationsCommandError(output, context)];
@@ -2315,9 +2358,11 @@ export var deserializeAws_restJson1ListPlaybackConfigurationsCommand = function
2315
2358
  Items: undefined,
2316
2359
  NextToken: undefined,
2317
2360
  };
2361
+ _a = __expectNonNull;
2362
+ _b = __expectObject;
2318
2363
  return [4 /*yield*/, parseBody(output.body, context)];
2319
2364
  case 1:
2320
- data = _a.sent();
2365
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2321
2366
  if (data.Items !== undefined && data.Items !== null) {
2322
2367
  contents.Items = deserializeAws_restJson1__listOfPlaybackConfiguration(data.Items, context);
2323
2368
  }
@@ -2355,9 +2400,9 @@ var deserializeAws_restJson1ListPlaybackConfigurationsCommandError = function (o
2355
2400
  });
2356
2401
  }); };
2357
2402
  export var deserializeAws_restJson1ListSourceLocationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2358
- var contents, data;
2359
- return __generator(this, function (_a) {
2360
- switch (_a.label) {
2403
+ var contents, data, _a, _b;
2404
+ return __generator(this, function (_c) {
2405
+ switch (_c.label) {
2361
2406
  case 0:
2362
2407
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2363
2408
  return [2 /*return*/, deserializeAws_restJson1ListSourceLocationsCommandError(output, context)];
@@ -2367,9 +2412,11 @@ export var deserializeAws_restJson1ListSourceLocationsCommand = function (output
2367
2412
  Items: undefined,
2368
2413
  NextToken: undefined,
2369
2414
  };
2415
+ _a = __expectNonNull;
2416
+ _b = __expectObject;
2370
2417
  return [4 /*yield*/, parseBody(output.body, context)];
2371
2418
  case 1:
2372
- data = _a.sent();
2419
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2373
2420
  if (data.Items !== undefined && data.Items !== null) {
2374
2421
  contents.Items = deserializeAws_restJson1__listOfSourceLocation(data.Items, context);
2375
2422
  }
@@ -2407,9 +2454,9 @@ var deserializeAws_restJson1ListSourceLocationsCommandError = function (output,
2407
2454
  });
2408
2455
  }); };
2409
2456
  export var deserializeAws_restJson1ListTagsForResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2410
- var contents, data;
2411
- return __generator(this, function (_a) {
2412
- switch (_a.label) {
2457
+ var contents, data, _a, _b;
2458
+ return __generator(this, function (_c) {
2459
+ switch (_c.label) {
2413
2460
  case 0:
2414
2461
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2415
2462
  return [2 /*return*/, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
@@ -2418,9 +2465,11 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
2418
2465
  $metadata: deserializeMetadata(output),
2419
2466
  Tags: undefined,
2420
2467
  };
2468
+ _a = __expectNonNull;
2469
+ _b = __expectObject;
2421
2470
  return [4 /*yield*/, parseBody(output.body, context)];
2422
2471
  case 1:
2423
- data = _a.sent();
2472
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2424
2473
  if (data.tags !== undefined && data.tags !== null) {
2425
2474
  contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
2426
2475
  }
@@ -2467,9 +2516,9 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
2467
2516
  });
2468
2517
  }); };
2469
2518
  export var deserializeAws_restJson1ListVodSourcesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2470
- var contents, data;
2471
- return __generator(this, function (_a) {
2472
- switch (_a.label) {
2519
+ var contents, data, _a, _b;
2520
+ return __generator(this, function (_c) {
2521
+ switch (_c.label) {
2473
2522
  case 0:
2474
2523
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2475
2524
  return [2 /*return*/, deserializeAws_restJson1ListVodSourcesCommandError(output, context)];
@@ -2479,9 +2528,11 @@ export var deserializeAws_restJson1ListVodSourcesCommand = function (output, con
2479
2528
  Items: undefined,
2480
2529
  NextToken: undefined,
2481
2530
  };
2531
+ _a = __expectNonNull;
2532
+ _b = __expectObject;
2482
2533
  return [4 /*yield*/, parseBody(output.body, context)];
2483
2534
  case 1:
2484
- data = _a.sent();
2535
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2485
2536
  if (data.Items !== undefined && data.Items !== null) {
2486
2537
  contents.Items = deserializeAws_restJson1__listOfVodSource(data.Items, context);
2487
2538
  }
@@ -2563,9 +2614,9 @@ var deserializeAws_restJson1PutChannelPolicyCommandError = function (output, con
2563
2614
  });
2564
2615
  }); };
2565
2616
  export var deserializeAws_restJson1PutPlaybackConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2566
- var contents, data;
2567
- return __generator(this, function (_a) {
2568
- switch (_a.label) {
2617
+ var contents, data, _a, _b;
2618
+ return __generator(this, function (_c) {
2619
+ switch (_c.label) {
2569
2620
  case 0:
2570
2621
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2571
2622
  return [2 /*return*/, deserializeAws_restJson1PutPlaybackConfigurationCommandError(output, context)];
@@ -2591,9 +2642,11 @@ export var deserializeAws_restJson1PutPlaybackConfigurationCommand = function (o
2591
2642
  TranscodeProfileName: undefined,
2592
2643
  VideoContentSourceUrl: undefined,
2593
2644
  };
2645
+ _a = __expectNonNull;
2646
+ _b = __expectObject;
2594
2647
  return [4 /*yield*/, parseBody(output.body, context)];
2595
2648
  case 1:
2596
- data = _a.sent();
2649
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2597
2650
  if (data.AdDecisionServerUrl !== undefined && data.AdDecisionServerUrl !== null) {
2598
2651
  contents.AdDecisionServerUrl = __expectString(data.AdDecisionServerUrl);
2599
2652
  }
@@ -2625,7 +2678,7 @@ export var deserializeAws_restJson1PutPlaybackConfigurationCommand = function (o
2625
2678
  contents.Name = __expectString(data.Name);
2626
2679
  }
2627
2680
  if (data.PersonalizationThresholdSeconds !== undefined && data.PersonalizationThresholdSeconds !== null) {
2628
- contents.PersonalizationThresholdSeconds = __expectInt(data.PersonalizationThresholdSeconds);
2681
+ contents.PersonalizationThresholdSeconds = __expectInt32(data.PersonalizationThresholdSeconds);
2629
2682
  }
2630
2683
  if (data.PlaybackConfigurationArn !== undefined && data.PlaybackConfigurationArn !== null) {
2631
2684
  contents.PlaybackConfigurationArn = __expectString(data.PlaybackConfigurationArn);
@@ -2879,9 +2932,9 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
2879
2932
  });
2880
2933
  }); };
2881
2934
  export var deserializeAws_restJson1UpdateChannelCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2882
- var contents, data;
2883
- return __generator(this, function (_a) {
2884
- switch (_a.label) {
2935
+ var contents, data, _a, _b;
2936
+ return __generator(this, function (_c) {
2937
+ switch (_c.label) {
2885
2938
  case 0:
2886
2939
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2887
2940
  return [2 /*return*/, deserializeAws_restJson1UpdateChannelCommandError(output, context)];
@@ -2892,14 +2945,17 @@ export var deserializeAws_restJson1UpdateChannelCommand = function (output, cont
2892
2945
  ChannelName: undefined,
2893
2946
  ChannelState: undefined,
2894
2947
  CreationTime: undefined,
2948
+ FillerSlate: undefined,
2895
2949
  LastModifiedTime: undefined,
2896
2950
  Outputs: undefined,
2897
2951
  PlaybackMode: undefined,
2898
2952
  Tags: undefined,
2899
2953
  };
2954
+ _a = __expectNonNull;
2955
+ _b = __expectObject;
2900
2956
  return [4 /*yield*/, parseBody(output.body, context)];
2901
2957
  case 1:
2902
- data = _a.sent();
2958
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2903
2959
  if (data.Arn !== undefined && data.Arn !== null) {
2904
2960
  contents.Arn = __expectString(data.Arn);
2905
2961
  }
@@ -2910,10 +2966,13 @@ export var deserializeAws_restJson1UpdateChannelCommand = function (output, cont
2910
2966
  contents.ChannelState = __expectString(data.ChannelState);
2911
2967
  }
2912
2968
  if (data.CreationTime !== undefined && data.CreationTime !== null) {
2913
- contents.CreationTime = new Date(Math.round(data.CreationTime * 1000));
2969
+ contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
2970
+ }
2971
+ if (data.FillerSlate !== undefined && data.FillerSlate !== null) {
2972
+ contents.FillerSlate = deserializeAws_restJson1SlateSource(data.FillerSlate, context);
2914
2973
  }
2915
2974
  if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
2916
- contents.LastModifiedTime = new Date(Math.round(data.LastModifiedTime * 1000));
2975
+ contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
2917
2976
  }
2918
2977
  if (data.Outputs !== undefined && data.Outputs !== null) {
2919
2978
  contents.Outputs = deserializeAws_restJson1ResponseOutputs(data.Outputs, context);
@@ -2955,9 +3014,9 @@ var deserializeAws_restJson1UpdateChannelCommandError = function (output, contex
2955
3014
  });
2956
3015
  }); };
2957
3016
  export var deserializeAws_restJson1UpdateSourceLocationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2958
- var contents, data;
2959
- return __generator(this, function (_a) {
2960
- switch (_a.label) {
3017
+ var contents, data, _a, _b;
3018
+ return __generator(this, function (_c) {
3019
+ switch (_c.label) {
2961
3020
  case 0:
2962
3021
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2963
3022
  return [2 /*return*/, deserializeAws_restJson1UpdateSourceLocationCommandError(output, context)];
@@ -2973,9 +3032,11 @@ export var deserializeAws_restJson1UpdateSourceLocationCommand = function (outpu
2973
3032
  SourceLocationName: undefined,
2974
3033
  Tags: undefined,
2975
3034
  };
3035
+ _a = __expectNonNull;
3036
+ _b = __expectObject;
2976
3037
  return [4 /*yield*/, parseBody(output.body, context)];
2977
3038
  case 1:
2978
- data = _a.sent();
3039
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2979
3040
  if (data.AccessConfiguration !== undefined && data.AccessConfiguration !== null) {
2980
3041
  contents.AccessConfiguration = deserializeAws_restJson1AccessConfiguration(data.AccessConfiguration, context);
2981
3042
  }
@@ -2983,7 +3044,7 @@ export var deserializeAws_restJson1UpdateSourceLocationCommand = function (outpu
2983
3044
  contents.Arn = __expectString(data.Arn);
2984
3045
  }
2985
3046
  if (data.CreationTime !== undefined && data.CreationTime !== null) {
2986
- contents.CreationTime = new Date(Math.round(data.CreationTime * 1000));
3047
+ contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
2987
3048
  }
2988
3049
  if (data.DefaultSegmentDeliveryConfiguration !== undefined && data.DefaultSegmentDeliveryConfiguration !== null) {
2989
3050
  contents.DefaultSegmentDeliveryConfiguration = deserializeAws_restJson1DefaultSegmentDeliveryConfiguration(data.DefaultSegmentDeliveryConfiguration, context);
@@ -2992,7 +3053,7 @@ export var deserializeAws_restJson1UpdateSourceLocationCommand = function (outpu
2992
3053
  contents.HttpConfiguration = deserializeAws_restJson1HttpConfiguration(data.HttpConfiguration, context);
2993
3054
  }
2994
3055
  if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
2995
- contents.LastModifiedTime = new Date(Math.round(data.LastModifiedTime * 1000));
3056
+ contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
2996
3057
  }
2997
3058
  if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
2998
3059
  contents.SourceLocationName = __expectString(data.SourceLocationName);
@@ -3031,9 +3092,9 @@ var deserializeAws_restJson1UpdateSourceLocationCommandError = function (output,
3031
3092
  });
3032
3093
  }); };
3033
3094
  export var deserializeAws_restJson1UpdateVodSourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3034
- var contents, data;
3035
- return __generator(this, function (_a) {
3036
- switch (_a.label) {
3095
+ var contents, data, _a, _b;
3096
+ return __generator(this, function (_c) {
3097
+ switch (_c.label) {
3037
3098
  case 0:
3038
3099
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3039
3100
  return [2 /*return*/, deserializeAws_restJson1UpdateVodSourceCommandError(output, context)];
@@ -3048,20 +3109,22 @@ export var deserializeAws_restJson1UpdateVodSourceCommand = function (output, co
3048
3109
  Tags: undefined,
3049
3110
  VodSourceName: undefined,
3050
3111
  };
3112
+ _a = __expectNonNull;
3113
+ _b = __expectObject;
3051
3114
  return [4 /*yield*/, parseBody(output.body, context)];
3052
3115
  case 1:
3053
- data = _a.sent();
3116
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3054
3117
  if (data.Arn !== undefined && data.Arn !== null) {
3055
3118
  contents.Arn = __expectString(data.Arn);
3056
3119
  }
3057
3120
  if (data.CreationTime !== undefined && data.CreationTime !== null) {
3058
- contents.CreationTime = new Date(Math.round(data.CreationTime * 1000));
3121
+ contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
3059
3122
  }
3060
3123
  if (data.HttpPackageConfigurations !== undefined && data.HttpPackageConfigurations !== null) {
3061
3124
  contents.HttpPackageConfigurations = deserializeAws_restJson1HttpPackageConfigurations(data.HttpPackageConfigurations, context);
3062
3125
  }
3063
3126
  if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
3064
- contents.LastModifiedTime = new Date(Math.round(data.LastModifiedTime * 1000));
3127
+ contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
3065
3128
  }
3066
3129
  if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
3067
3130
  contents.SourceLocationName = __expectString(data.SourceLocationName);
@@ -3259,9 +3322,10 @@ var serializeAws_restJson1SpliceInsertMessage = function (input, context) {
3259
3322
  input.UniqueProgramId !== null && { UniqueProgramId: input.UniqueProgramId }));
3260
3323
  };
3261
3324
  var serializeAws_restJson1Transition = function (input, context) {
3262
- return __assign(__assign(__assign({}, (input.RelativePosition !== undefined &&
3325
+ return __assign(__assign(__assign(__assign({}, (input.RelativePosition !== undefined &&
3263
3326
  input.RelativePosition !== null && { RelativePosition: input.RelativePosition })), (input.RelativeProgram !== undefined &&
3264
- input.RelativeProgram !== null && { RelativeProgram: input.RelativeProgram })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
3327
+ input.RelativeProgram !== null && { RelativeProgram: input.RelativeProgram })), (input.ScheduledStartTimeMillis !== undefined &&
3328
+ input.ScheduledStartTimeMillis !== null && { ScheduledStartTimeMillis: input.ScheduledStartTimeMillis })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
3265
3329
  };
3266
3330
  var deserializeAws_restJson1__listOf__string = function (output, context) {
3267
3331
  return (output || [])
@@ -3375,7 +3439,7 @@ var deserializeAws_restJson1AccessConfiguration = function (output, context) {
3375
3439
  var deserializeAws_restJson1AdBreak = function (output, context) {
3376
3440
  return {
3377
3441
  MessageType: __expectString(output.MessageType),
3378
- OffsetMillis: __expectInt(output.OffsetMillis),
3442
+ OffsetMillis: __expectLong(output.OffsetMillis),
3379
3443
  Slate: output.Slate !== undefined && output.Slate !== null
3380
3444
  ? deserializeAws_restJson1SlateSource(output.Slate, context)
3381
3445
  : undefined,
@@ -3394,7 +3458,7 @@ var deserializeAws_restJson1Alert = function (output, context) {
3394
3458
  AlertCode: __expectString(output.AlertCode),
3395
3459
  AlertMessage: __expectString(output.AlertMessage),
3396
3460
  LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
3397
- ? new Date(Math.round(output.LastModifiedTime * 1000))
3461
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
3398
3462
  : undefined,
3399
3463
  RelatedResourceArns: output.RelatedResourceArns !== undefined && output.RelatedResourceArns !== null
3400
3464
  ? deserializeAws_restJson1__listOf__string(output.RelatedResourceArns, context)
@@ -3426,10 +3490,13 @@ var deserializeAws_restJson1Channel = function (output, context) {
3426
3490
  ChannelName: __expectString(output.ChannelName),
3427
3491
  ChannelState: __expectString(output.ChannelState),
3428
3492
  CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
3429
- ? new Date(Math.round(output.CreationTime * 1000))
3493
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
3494
+ : undefined,
3495
+ FillerSlate: output.FillerSlate !== undefined && output.FillerSlate !== null
3496
+ ? deserializeAws_restJson1SlateSource(output.FillerSlate, context)
3430
3497
  : undefined,
3431
3498
  LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
3432
- ? new Date(Math.round(output.LastModifiedTime * 1000))
3499
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
3433
3500
  : undefined,
3434
3501
  Outputs: output.Outputs !== undefined && output.Outputs !== null
3435
3502
  ? deserializeAws_restJson1ResponseOutputs(output.Outputs, context)
@@ -3459,10 +3526,10 @@ var deserializeAws_restJson1DashConfiguration = function (output, context) {
3459
3526
  };
3460
3527
  var deserializeAws_restJson1DashPlaylistSettings = function (output, context) {
3461
3528
  return {
3462
- ManifestWindowSeconds: __expectInt(output.ManifestWindowSeconds),
3463
- MinBufferTimeSeconds: __expectInt(output.MinBufferTimeSeconds),
3464
- MinUpdatePeriodSeconds: __expectInt(output.MinUpdatePeriodSeconds),
3465
- SuggestedPresentationDelaySeconds: __expectInt(output.SuggestedPresentationDelaySeconds),
3529
+ ManifestWindowSeconds: __expectInt32(output.ManifestWindowSeconds),
3530
+ MinBufferTimeSeconds: __expectInt32(output.MinBufferTimeSeconds),
3531
+ MinUpdatePeriodSeconds: __expectInt32(output.MinUpdatePeriodSeconds),
3532
+ SuggestedPresentationDelaySeconds: __expectInt32(output.SuggestedPresentationDelaySeconds),
3466
3533
  };
3467
3534
  };
3468
3535
  var deserializeAws_restJson1DefaultSegmentDeliveryConfiguration = function (output, context) {
@@ -3477,7 +3544,7 @@ var deserializeAws_restJson1HlsConfiguration = function (output, context) {
3477
3544
  };
3478
3545
  var deserializeAws_restJson1HlsPlaylistSettings = function (output, context) {
3479
3546
  return {
3480
- ManifestWindowSeconds: __expectInt(output.ManifestWindowSeconds),
3547
+ ManifestWindowSeconds: __expectInt32(output.ManifestWindowSeconds),
3481
3548
  };
3482
3549
  };
3483
3550
  var deserializeAws_restJson1HttpConfiguration = function (output, context) {
@@ -3505,7 +3572,7 @@ var deserializeAws_restJson1HttpPackageConfigurations = function (output, contex
3505
3572
  var deserializeAws_restJson1LivePreRollConfiguration = function (output, context) {
3506
3573
  return {
3507
3574
  AdDecisionServerUrl: __expectString(output.AdDecisionServerUrl),
3508
- MaxDurationSeconds: __expectInt(output.MaxDurationSeconds),
3575
+ MaxDurationSeconds: __expectInt32(output.MaxDurationSeconds),
3509
3576
  };
3510
3577
  };
3511
3578
  var deserializeAws_restJson1ManifestProcessingRules = function (output, context) {
@@ -3543,7 +3610,7 @@ var deserializeAws_restJson1PlaybackConfiguration = function (output, context) {
3543
3610
  ? deserializeAws_restJson1ManifestProcessingRules(output.ManifestProcessingRules, context)
3544
3611
  : undefined,
3545
3612
  Name: __expectString(output.Name),
3546
- PersonalizationThresholdSeconds: __expectInt(output.PersonalizationThresholdSeconds),
3613
+ PersonalizationThresholdSeconds: __expectInt32(output.PersonalizationThresholdSeconds),
3547
3614
  PlaybackConfigurationArn: __expectString(output.PlaybackConfigurationArn),
3548
3615
  PlaybackEndpointPrefix: __expectString(output.PlaybackEndpointPrefix),
3549
3616
  SessionInitializationEndpointPrefix: __expectString(output.SessionInitializationEndpointPrefix),
@@ -3580,9 +3647,9 @@ var deserializeAws_restJson1ResponseOutputs = function (output, context) {
3580
3647
  };
3581
3648
  var deserializeAws_restJson1ScheduleAdBreak = function (output, context) {
3582
3649
  return {
3583
- ApproximateDurationSeconds: __expectInt(output.ApproximateDurationSeconds),
3650
+ ApproximateDurationSeconds: __expectLong(output.ApproximateDurationSeconds),
3584
3651
  ApproximateStartTime: output.ApproximateStartTime !== undefined && output.ApproximateStartTime !== null
3585
- ? new Date(Math.round(output.ApproximateStartTime * 1000))
3652
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ApproximateStartTime)))
3586
3653
  : undefined,
3587
3654
  SourceLocationName: __expectString(output.SourceLocationName),
3588
3655
  VodSourceName: __expectString(output.VodSourceName),
@@ -3590,9 +3657,9 @@ var deserializeAws_restJson1ScheduleAdBreak = function (output, context) {
3590
3657
  };
3591
3658
  var deserializeAws_restJson1ScheduleEntry = function (output, context) {
3592
3659
  return {
3593
- ApproximateDurationSeconds: __expectInt(output.ApproximateDurationSeconds),
3660
+ ApproximateDurationSeconds: __expectLong(output.ApproximateDurationSeconds),
3594
3661
  ApproximateStartTime: output.ApproximateStartTime !== undefined && output.ApproximateStartTime !== null
3595
- ? new Date(Math.round(output.ApproximateStartTime * 1000))
3662
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ApproximateStartTime)))
3596
3663
  : undefined,
3597
3664
  Arn: __expectString(output.Arn),
3598
3665
  ChannelName: __expectString(output.ChannelName),
@@ -3600,6 +3667,7 @@ var deserializeAws_restJson1ScheduleEntry = function (output, context) {
3600
3667
  ScheduleAdBreaks: output.ScheduleAdBreaks !== undefined && output.ScheduleAdBreaks !== null
3601
3668
  ? deserializeAws_restJson1__listOfScheduleAdBreak(output.ScheduleAdBreaks, context)
3602
3669
  : undefined,
3670
+ ScheduleEntryType: __expectString(output.ScheduleEntryType),
3603
3671
  SourceLocationName: __expectString(output.SourceLocationName),
3604
3672
  VodSourceName: __expectString(output.VodSourceName),
3605
3673
  };
@@ -3624,7 +3692,7 @@ var deserializeAws_restJson1SourceLocation = function (output, context) {
3624
3692
  : undefined,
3625
3693
  Arn: __expectString(output.Arn),
3626
3694
  CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
3627
- ? new Date(Math.round(output.CreationTime * 1000))
3695
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
3628
3696
  : undefined,
3629
3697
  DefaultSegmentDeliveryConfiguration: output.DefaultSegmentDeliveryConfiguration !== undefined && output.DefaultSegmentDeliveryConfiguration !== null
3630
3698
  ? deserializeAws_restJson1DefaultSegmentDeliveryConfiguration(output.DefaultSegmentDeliveryConfiguration, context)
@@ -3633,7 +3701,7 @@ var deserializeAws_restJson1SourceLocation = function (output, context) {
3633
3701
  ? deserializeAws_restJson1HttpConfiguration(output.HttpConfiguration, context)
3634
3702
  : undefined,
3635
3703
  LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
3636
- ? new Date(Math.round(output.LastModifiedTime * 1000))
3704
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
3637
3705
  : undefined,
3638
3706
  SourceLocationName: __expectString(output.SourceLocationName),
3639
3707
  Tags: output.tags !== undefined && output.tags !== null
@@ -3643,23 +3711,23 @@ var deserializeAws_restJson1SourceLocation = function (output, context) {
3643
3711
  };
3644
3712
  var deserializeAws_restJson1SpliceInsertMessage = function (output, context) {
3645
3713
  return {
3646
- AvailNum: __expectInt(output.AvailNum),
3647
- AvailsExpected: __expectInt(output.AvailsExpected),
3648
- SpliceEventId: __expectInt(output.SpliceEventId),
3649
- UniqueProgramId: __expectInt(output.UniqueProgramId),
3714
+ AvailNum: __expectInt32(output.AvailNum),
3715
+ AvailsExpected: __expectInt32(output.AvailsExpected),
3716
+ SpliceEventId: __expectInt32(output.SpliceEventId),
3717
+ UniqueProgramId: __expectInt32(output.UniqueProgramId),
3650
3718
  };
3651
3719
  };
3652
3720
  var deserializeAws_restJson1VodSource = function (output, context) {
3653
3721
  return {
3654
3722
  Arn: __expectString(output.Arn),
3655
3723
  CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
3656
- ? new Date(Math.round(output.CreationTime * 1000))
3724
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
3657
3725
  : undefined,
3658
3726
  HttpPackageConfigurations: output.HttpPackageConfigurations !== undefined && output.HttpPackageConfigurations !== null
3659
3727
  ? deserializeAws_restJson1HttpPackageConfigurations(output.HttpPackageConfigurations, context)
3660
3728
  : undefined,
3661
3729
  LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
3662
- ? new Date(Math.round(output.LastModifiedTime * 1000))
3730
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
3663
3731
  : undefined,
3664
3732
  SourceLocationName: __expectString(output.SourceLocationName),
3665
3733
  Tags: output.tags !== undefined && output.tags !== null