@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.
@@ -99,9 +99,14 @@ import {
99
99
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
100
100
  import {
101
101
  expectBoolean as __expectBoolean,
102
- expectInt as __expectInt,
102
+ expectInt32 as __expectInt32,
103
+ expectLong as __expectLong,
104
+ expectNonNull as __expectNonNull,
105
+ expectNumber as __expectNumber,
106
+ expectObject as __expectObject,
103
107
  expectString as __expectString,
104
108
  extendedEncodeURIComponent as __extendedEncodeURIComponent,
109
+ parseEpochTimestamp as __parseEpochTimestamp,
105
110
  } from "@aws-sdk/smithy-client";
106
111
  import {
107
112
  Endpoint as __Endpoint,
@@ -131,6 +136,8 @@ export const serializeAws_restJson1CreateChannelCommand = async (
131
136
  }
132
137
  let body: any;
133
138
  body = JSON.stringify({
139
+ ...(input.FillerSlate !== undefined &&
140
+ input.FillerSlate !== null && { FillerSlate: serializeAws_restJson1SlateSource(input.FillerSlate, context) }),
134
141
  ...(input.Outputs !== undefined &&
135
142
  input.Outputs !== null && { Outputs: serializeAws_restJson1RequestOutputs(input.Outputs, context) }),
136
143
  ...(input.PlaybackMode !== undefined && input.PlaybackMode !== null && { PlaybackMode: input.PlaybackMode }),
@@ -1252,12 +1259,13 @@ export const deserializeAws_restJson1CreateChannelCommand = async (
1252
1259
  ChannelName: undefined,
1253
1260
  ChannelState: undefined,
1254
1261
  CreationTime: undefined,
1262
+ FillerSlate: undefined,
1255
1263
  LastModifiedTime: undefined,
1256
1264
  Outputs: undefined,
1257
1265
  PlaybackMode: undefined,
1258
1266
  Tags: undefined,
1259
1267
  };
1260
- const data: any = await parseBody(output.body, context);
1268
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1261
1269
  if (data.Arn !== undefined && data.Arn !== null) {
1262
1270
  contents.Arn = __expectString(data.Arn);
1263
1271
  }
@@ -1268,10 +1276,13 @@ export const deserializeAws_restJson1CreateChannelCommand = async (
1268
1276
  contents.ChannelState = __expectString(data.ChannelState);
1269
1277
  }
1270
1278
  if (data.CreationTime !== undefined && data.CreationTime !== null) {
1271
- contents.CreationTime = new Date(Math.round(data.CreationTime * 1000));
1279
+ contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
1280
+ }
1281
+ if (data.FillerSlate !== undefined && data.FillerSlate !== null) {
1282
+ contents.FillerSlate = deserializeAws_restJson1SlateSource(data.FillerSlate, context);
1272
1283
  }
1273
1284
  if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
1274
- contents.LastModifiedTime = new Date(Math.round(data.LastModifiedTime * 1000));
1285
+ contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
1275
1286
  }
1276
1287
  if (data.Outputs !== undefined && data.Outputs !== null) {
1277
1288
  contents.Outputs = deserializeAws_restJson1ResponseOutputs(data.Outputs, context);
@@ -1328,10 +1339,11 @@ export const deserializeAws_restJson1CreateProgramCommand = async (
1328
1339
  ChannelName: undefined,
1329
1340
  CreationTime: undefined,
1330
1341
  ProgramName: undefined,
1342
+ ScheduledStartTime: undefined,
1331
1343
  SourceLocationName: undefined,
1332
1344
  VodSourceName: undefined,
1333
1345
  };
1334
- const data: any = await parseBody(output.body, context);
1346
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1335
1347
  if (data.AdBreaks !== undefined && data.AdBreaks !== null) {
1336
1348
  contents.AdBreaks = deserializeAws_restJson1__listOfAdBreak(data.AdBreaks, context);
1337
1349
  }
@@ -1342,11 +1354,14 @@ export const deserializeAws_restJson1CreateProgramCommand = async (
1342
1354
  contents.ChannelName = __expectString(data.ChannelName);
1343
1355
  }
1344
1356
  if (data.CreationTime !== undefined && data.CreationTime !== null) {
1345
- contents.CreationTime = new Date(Math.round(data.CreationTime * 1000));
1357
+ contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
1346
1358
  }
1347
1359
  if (data.ProgramName !== undefined && data.ProgramName !== null) {
1348
1360
  contents.ProgramName = __expectString(data.ProgramName);
1349
1361
  }
1362
+ if (data.ScheduledStartTime !== undefined && data.ScheduledStartTime !== null) {
1363
+ contents.ScheduledStartTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.ScheduledStartTime)));
1364
+ }
1350
1365
  if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
1351
1366
  contents.SourceLocationName = __expectString(data.SourceLocationName);
1352
1367
  }
@@ -1403,7 +1418,7 @@ export const deserializeAws_restJson1CreateSourceLocationCommand = async (
1403
1418
  SourceLocationName: undefined,
1404
1419
  Tags: undefined,
1405
1420
  };
1406
- const data: any = await parseBody(output.body, context);
1421
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1407
1422
  if (data.AccessConfiguration !== undefined && data.AccessConfiguration !== null) {
1408
1423
  contents.AccessConfiguration = deserializeAws_restJson1AccessConfiguration(data.AccessConfiguration, context);
1409
1424
  }
@@ -1411,7 +1426,7 @@ export const deserializeAws_restJson1CreateSourceLocationCommand = async (
1411
1426
  contents.Arn = __expectString(data.Arn);
1412
1427
  }
1413
1428
  if (data.CreationTime !== undefined && data.CreationTime !== null) {
1414
- contents.CreationTime = new Date(Math.round(data.CreationTime * 1000));
1429
+ contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
1415
1430
  }
1416
1431
  if (data.DefaultSegmentDeliveryConfiguration !== undefined && data.DefaultSegmentDeliveryConfiguration !== null) {
1417
1432
  contents.DefaultSegmentDeliveryConfiguration = deserializeAws_restJson1DefaultSegmentDeliveryConfiguration(
@@ -1423,7 +1438,7 @@ export const deserializeAws_restJson1CreateSourceLocationCommand = async (
1423
1438
  contents.HttpConfiguration = deserializeAws_restJson1HttpConfiguration(data.HttpConfiguration, context);
1424
1439
  }
1425
1440
  if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
1426
- contents.LastModifiedTime = new Date(Math.round(data.LastModifiedTime * 1000));
1441
+ contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
1427
1442
  }
1428
1443
  if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
1429
1444
  contents.SourceLocationName = __expectString(data.SourceLocationName);
@@ -1480,12 +1495,12 @@ export const deserializeAws_restJson1CreateVodSourceCommand = async (
1480
1495
  Tags: undefined,
1481
1496
  VodSourceName: undefined,
1482
1497
  };
1483
- const data: any = await parseBody(output.body, context);
1498
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1484
1499
  if (data.Arn !== undefined && data.Arn !== null) {
1485
1500
  contents.Arn = __expectString(data.Arn);
1486
1501
  }
1487
1502
  if (data.CreationTime !== undefined && data.CreationTime !== null) {
1488
- contents.CreationTime = new Date(Math.round(data.CreationTime * 1000));
1503
+ contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
1489
1504
  }
1490
1505
  if (data.HttpPackageConfigurations !== undefined && data.HttpPackageConfigurations !== null) {
1491
1506
  contents.HttpPackageConfigurations = deserializeAws_restJson1HttpPackageConfigurations(
@@ -1494,7 +1509,7 @@ export const deserializeAws_restJson1CreateVodSourceCommand = async (
1494
1509
  );
1495
1510
  }
1496
1511
  if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
1497
- contents.LastModifiedTime = new Date(Math.round(data.LastModifiedTime * 1000));
1512
+ contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
1498
1513
  }
1499
1514
  if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
1500
1515
  contents.SourceLocationName = __expectString(data.SourceLocationName);
@@ -1808,12 +1823,13 @@ export const deserializeAws_restJson1DescribeChannelCommand = async (
1808
1823
  ChannelName: undefined,
1809
1824
  ChannelState: undefined,
1810
1825
  CreationTime: undefined,
1826
+ FillerSlate: undefined,
1811
1827
  LastModifiedTime: undefined,
1812
1828
  Outputs: undefined,
1813
1829
  PlaybackMode: undefined,
1814
1830
  Tags: undefined,
1815
1831
  };
1816
- const data: any = await parseBody(output.body, context);
1832
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1817
1833
  if (data.Arn !== undefined && data.Arn !== null) {
1818
1834
  contents.Arn = __expectString(data.Arn);
1819
1835
  }
@@ -1824,10 +1840,13 @@ export const deserializeAws_restJson1DescribeChannelCommand = async (
1824
1840
  contents.ChannelState = __expectString(data.ChannelState);
1825
1841
  }
1826
1842
  if (data.CreationTime !== undefined && data.CreationTime !== null) {
1827
- contents.CreationTime = new Date(Math.round(data.CreationTime * 1000));
1843
+ contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
1844
+ }
1845
+ if (data.FillerSlate !== undefined && data.FillerSlate !== null) {
1846
+ contents.FillerSlate = deserializeAws_restJson1SlateSource(data.FillerSlate, context);
1828
1847
  }
1829
1848
  if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
1830
- contents.LastModifiedTime = new Date(Math.round(data.LastModifiedTime * 1000));
1849
+ contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
1831
1850
  }
1832
1851
  if (data.Outputs !== undefined && data.Outputs !== null) {
1833
1852
  contents.Outputs = deserializeAws_restJson1ResponseOutputs(data.Outputs, context);
@@ -1884,10 +1903,11 @@ export const deserializeAws_restJson1DescribeProgramCommand = async (
1884
1903
  ChannelName: undefined,
1885
1904
  CreationTime: undefined,
1886
1905
  ProgramName: undefined,
1906
+ ScheduledStartTime: undefined,
1887
1907
  SourceLocationName: undefined,
1888
1908
  VodSourceName: undefined,
1889
1909
  };
1890
- const data: any = await parseBody(output.body, context);
1910
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1891
1911
  if (data.AdBreaks !== undefined && data.AdBreaks !== null) {
1892
1912
  contents.AdBreaks = deserializeAws_restJson1__listOfAdBreak(data.AdBreaks, context);
1893
1913
  }
@@ -1898,11 +1918,14 @@ export const deserializeAws_restJson1DescribeProgramCommand = async (
1898
1918
  contents.ChannelName = __expectString(data.ChannelName);
1899
1919
  }
1900
1920
  if (data.CreationTime !== undefined && data.CreationTime !== null) {
1901
- contents.CreationTime = new Date(Math.round(data.CreationTime * 1000));
1921
+ contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
1902
1922
  }
1903
1923
  if (data.ProgramName !== undefined && data.ProgramName !== null) {
1904
1924
  contents.ProgramName = __expectString(data.ProgramName);
1905
1925
  }
1926
+ if (data.ScheduledStartTime !== undefined && data.ScheduledStartTime !== null) {
1927
+ contents.ScheduledStartTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.ScheduledStartTime)));
1928
+ }
1906
1929
  if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
1907
1930
  contents.SourceLocationName = __expectString(data.SourceLocationName);
1908
1931
  }
@@ -1959,7 +1982,7 @@ export const deserializeAws_restJson1DescribeSourceLocationCommand = async (
1959
1982
  SourceLocationName: undefined,
1960
1983
  Tags: undefined,
1961
1984
  };
1962
- const data: any = await parseBody(output.body, context);
1985
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1963
1986
  if (data.AccessConfiguration !== undefined && data.AccessConfiguration !== null) {
1964
1987
  contents.AccessConfiguration = deserializeAws_restJson1AccessConfiguration(data.AccessConfiguration, context);
1965
1988
  }
@@ -1967,7 +1990,7 @@ export const deserializeAws_restJson1DescribeSourceLocationCommand = async (
1967
1990
  contents.Arn = __expectString(data.Arn);
1968
1991
  }
1969
1992
  if (data.CreationTime !== undefined && data.CreationTime !== null) {
1970
- contents.CreationTime = new Date(Math.round(data.CreationTime * 1000));
1993
+ contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
1971
1994
  }
1972
1995
  if (data.DefaultSegmentDeliveryConfiguration !== undefined && data.DefaultSegmentDeliveryConfiguration !== null) {
1973
1996
  contents.DefaultSegmentDeliveryConfiguration = deserializeAws_restJson1DefaultSegmentDeliveryConfiguration(
@@ -1979,7 +2002,7 @@ export const deserializeAws_restJson1DescribeSourceLocationCommand = async (
1979
2002
  contents.HttpConfiguration = deserializeAws_restJson1HttpConfiguration(data.HttpConfiguration, context);
1980
2003
  }
1981
2004
  if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
1982
- contents.LastModifiedTime = new Date(Math.round(data.LastModifiedTime * 1000));
2005
+ contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
1983
2006
  }
1984
2007
  if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
1985
2008
  contents.SourceLocationName = __expectString(data.SourceLocationName);
@@ -2036,12 +2059,12 @@ export const deserializeAws_restJson1DescribeVodSourceCommand = async (
2036
2059
  Tags: undefined,
2037
2060
  VodSourceName: undefined,
2038
2061
  };
2039
- const data: any = await parseBody(output.body, context);
2062
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2040
2063
  if (data.Arn !== undefined && data.Arn !== null) {
2041
2064
  contents.Arn = __expectString(data.Arn);
2042
2065
  }
2043
2066
  if (data.CreationTime !== undefined && data.CreationTime !== null) {
2044
- contents.CreationTime = new Date(Math.round(data.CreationTime * 1000));
2067
+ contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
2045
2068
  }
2046
2069
  if (data.HttpPackageConfigurations !== undefined && data.HttpPackageConfigurations !== null) {
2047
2070
  contents.HttpPackageConfigurations = deserializeAws_restJson1HttpPackageConfigurations(
@@ -2050,7 +2073,7 @@ export const deserializeAws_restJson1DescribeVodSourceCommand = async (
2050
2073
  );
2051
2074
  }
2052
2075
  if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
2053
- contents.LastModifiedTime = new Date(Math.round(data.LastModifiedTime * 1000));
2076
+ contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
2054
2077
  }
2055
2078
  if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
2056
2079
  contents.SourceLocationName = __expectString(data.SourceLocationName);
@@ -2104,7 +2127,7 @@ export const deserializeAws_restJson1GetChannelPolicyCommand = async (
2104
2127
  $metadata: deserializeMetadata(output),
2105
2128
  Policy: undefined,
2106
2129
  };
2107
- const data: any = await parseBody(output.body, context);
2130
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2108
2131
  if (data.Policy !== undefined && data.Policy !== null) {
2109
2132
  contents.Policy = __expectString(data.Policy);
2110
2133
  }
@@ -2152,7 +2175,7 @@ export const deserializeAws_restJson1GetChannelScheduleCommand = async (
2152
2175
  Items: undefined,
2153
2176
  NextToken: undefined,
2154
2177
  };
2155
- const data: any = await parseBody(output.body, context);
2178
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2156
2179
  if (data.Items !== undefined && data.Items !== null) {
2157
2180
  contents.Items = deserializeAws_restJson1__listOfScheduleEntry(data.Items, context);
2158
2181
  }
@@ -2219,7 +2242,7 @@ export const deserializeAws_restJson1GetPlaybackConfigurationCommand = async (
2219
2242
  TranscodeProfileName: undefined,
2220
2243
  VideoContentSourceUrl: undefined,
2221
2244
  };
2222
- const data: any = await parseBody(output.body, context);
2245
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2223
2246
  if (data.AdDecisionServerUrl !== undefined && data.AdDecisionServerUrl !== null) {
2224
2247
  contents.AdDecisionServerUrl = __expectString(data.AdDecisionServerUrl);
2225
2248
  }
@@ -2260,7 +2283,7 @@ export const deserializeAws_restJson1GetPlaybackConfigurationCommand = async (
2260
2283
  contents.Name = __expectString(data.Name);
2261
2284
  }
2262
2285
  if (data.PersonalizationThresholdSeconds !== undefined && data.PersonalizationThresholdSeconds !== null) {
2263
- contents.PersonalizationThresholdSeconds = __expectInt(data.PersonalizationThresholdSeconds);
2286
+ contents.PersonalizationThresholdSeconds = __expectInt32(data.PersonalizationThresholdSeconds);
2264
2287
  }
2265
2288
  if (data.PlaybackConfigurationArn !== undefined && data.PlaybackConfigurationArn !== null) {
2266
2289
  contents.PlaybackConfigurationArn = __expectString(data.PlaybackConfigurationArn);
@@ -2327,7 +2350,7 @@ export const deserializeAws_restJson1ListAlertsCommand = async (
2327
2350
  Items: undefined,
2328
2351
  NextToken: undefined,
2329
2352
  };
2330
- const data: any = await parseBody(output.body, context);
2353
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2331
2354
  if (data.Items !== undefined && data.Items !== null) {
2332
2355
  contents.Items = deserializeAws_restJson1__listOfAlert(data.Items, context);
2333
2356
  }
@@ -2378,7 +2401,7 @@ export const deserializeAws_restJson1ListChannelsCommand = async (
2378
2401
  Items: undefined,
2379
2402
  NextToken: undefined,
2380
2403
  };
2381
- const data: any = await parseBody(output.body, context);
2404
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2382
2405
  if (data.Items !== undefined && data.Items !== null) {
2383
2406
  contents.Items = deserializeAws_restJson1__listOfChannel(data.Items, context);
2384
2407
  }
@@ -2429,7 +2452,7 @@ export const deserializeAws_restJson1ListPlaybackConfigurationsCommand = async (
2429
2452
  Items: undefined,
2430
2453
  NextToken: undefined,
2431
2454
  };
2432
- const data: any = await parseBody(output.body, context);
2455
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2433
2456
  if (data.Items !== undefined && data.Items !== null) {
2434
2457
  contents.Items = deserializeAws_restJson1__listOfPlaybackConfiguration(data.Items, context);
2435
2458
  }
@@ -2480,7 +2503,7 @@ export const deserializeAws_restJson1ListSourceLocationsCommand = async (
2480
2503
  Items: undefined,
2481
2504
  NextToken: undefined,
2482
2505
  };
2483
- const data: any = await parseBody(output.body, context);
2506
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2484
2507
  if (data.Items !== undefined && data.Items !== null) {
2485
2508
  contents.Items = deserializeAws_restJson1__listOfSourceLocation(data.Items, context);
2486
2509
  }
@@ -2530,7 +2553,7 @@ export const deserializeAws_restJson1ListTagsForResourceCommand = async (
2530
2553
  $metadata: deserializeMetadata(output),
2531
2554
  Tags: undefined,
2532
2555
  };
2533
- const data: any = await parseBody(output.body, context);
2556
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2534
2557
  if (data.tags !== undefined && data.tags !== null) {
2535
2558
  contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
2536
2559
  }
@@ -2586,7 +2609,7 @@ export const deserializeAws_restJson1ListVodSourcesCommand = async (
2586
2609
  Items: undefined,
2587
2610
  NextToken: undefined,
2588
2611
  };
2589
- const data: any = await parseBody(output.body, context);
2612
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2590
2613
  if (data.Items !== undefined && data.Items !== null) {
2591
2614
  contents.Items = deserializeAws_restJson1__listOfVodSource(data.Items, context);
2592
2615
  }
@@ -2696,7 +2719,7 @@ export const deserializeAws_restJson1PutPlaybackConfigurationCommand = async (
2696
2719
  TranscodeProfileName: undefined,
2697
2720
  VideoContentSourceUrl: undefined,
2698
2721
  };
2699
- const data: any = await parseBody(output.body, context);
2722
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2700
2723
  if (data.AdDecisionServerUrl !== undefined && data.AdDecisionServerUrl !== null) {
2701
2724
  contents.AdDecisionServerUrl = __expectString(data.AdDecisionServerUrl);
2702
2725
  }
@@ -2737,7 +2760,7 @@ export const deserializeAws_restJson1PutPlaybackConfigurationCommand = async (
2737
2760
  contents.Name = __expectString(data.Name);
2738
2761
  }
2739
2762
  if (data.PersonalizationThresholdSeconds !== undefined && data.PersonalizationThresholdSeconds !== null) {
2740
- contents.PersonalizationThresholdSeconds = __expectInt(data.PersonalizationThresholdSeconds);
2763
+ contents.PersonalizationThresholdSeconds = __expectInt32(data.PersonalizationThresholdSeconds);
2741
2764
  }
2742
2765
  if (data.PlaybackConfigurationArn !== undefined && data.PlaybackConfigurationArn !== null) {
2743
2766
  contents.PlaybackConfigurationArn = __expectString(data.PlaybackConfigurationArn);
@@ -2993,12 +3016,13 @@ export const deserializeAws_restJson1UpdateChannelCommand = async (
2993
3016
  ChannelName: undefined,
2994
3017
  ChannelState: undefined,
2995
3018
  CreationTime: undefined,
3019
+ FillerSlate: undefined,
2996
3020
  LastModifiedTime: undefined,
2997
3021
  Outputs: undefined,
2998
3022
  PlaybackMode: undefined,
2999
3023
  Tags: undefined,
3000
3024
  };
3001
- const data: any = await parseBody(output.body, context);
3025
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3002
3026
  if (data.Arn !== undefined && data.Arn !== null) {
3003
3027
  contents.Arn = __expectString(data.Arn);
3004
3028
  }
@@ -3009,10 +3033,13 @@ export const deserializeAws_restJson1UpdateChannelCommand = async (
3009
3033
  contents.ChannelState = __expectString(data.ChannelState);
3010
3034
  }
3011
3035
  if (data.CreationTime !== undefined && data.CreationTime !== null) {
3012
- contents.CreationTime = new Date(Math.round(data.CreationTime * 1000));
3036
+ contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
3037
+ }
3038
+ if (data.FillerSlate !== undefined && data.FillerSlate !== null) {
3039
+ contents.FillerSlate = deserializeAws_restJson1SlateSource(data.FillerSlate, context);
3013
3040
  }
3014
3041
  if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
3015
- contents.LastModifiedTime = new Date(Math.round(data.LastModifiedTime * 1000));
3042
+ contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
3016
3043
  }
3017
3044
  if (data.Outputs !== undefined && data.Outputs !== null) {
3018
3045
  contents.Outputs = deserializeAws_restJson1ResponseOutputs(data.Outputs, context);
@@ -3073,7 +3100,7 @@ export const deserializeAws_restJson1UpdateSourceLocationCommand = async (
3073
3100
  SourceLocationName: undefined,
3074
3101
  Tags: undefined,
3075
3102
  };
3076
- const data: any = await parseBody(output.body, context);
3103
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3077
3104
  if (data.AccessConfiguration !== undefined && data.AccessConfiguration !== null) {
3078
3105
  contents.AccessConfiguration = deserializeAws_restJson1AccessConfiguration(data.AccessConfiguration, context);
3079
3106
  }
@@ -3081,7 +3108,7 @@ export const deserializeAws_restJson1UpdateSourceLocationCommand = async (
3081
3108
  contents.Arn = __expectString(data.Arn);
3082
3109
  }
3083
3110
  if (data.CreationTime !== undefined && data.CreationTime !== null) {
3084
- contents.CreationTime = new Date(Math.round(data.CreationTime * 1000));
3111
+ contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
3085
3112
  }
3086
3113
  if (data.DefaultSegmentDeliveryConfiguration !== undefined && data.DefaultSegmentDeliveryConfiguration !== null) {
3087
3114
  contents.DefaultSegmentDeliveryConfiguration = deserializeAws_restJson1DefaultSegmentDeliveryConfiguration(
@@ -3093,7 +3120,7 @@ export const deserializeAws_restJson1UpdateSourceLocationCommand = async (
3093
3120
  contents.HttpConfiguration = deserializeAws_restJson1HttpConfiguration(data.HttpConfiguration, context);
3094
3121
  }
3095
3122
  if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
3096
- contents.LastModifiedTime = new Date(Math.round(data.LastModifiedTime * 1000));
3123
+ contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
3097
3124
  }
3098
3125
  if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
3099
3126
  contents.SourceLocationName = __expectString(data.SourceLocationName);
@@ -3150,12 +3177,12 @@ export const deserializeAws_restJson1UpdateVodSourceCommand = async (
3150
3177
  Tags: undefined,
3151
3178
  VodSourceName: undefined,
3152
3179
  };
3153
- const data: any = await parseBody(output.body, context);
3180
+ const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3154
3181
  if (data.Arn !== undefined && data.Arn !== null) {
3155
3182
  contents.Arn = __expectString(data.Arn);
3156
3183
  }
3157
3184
  if (data.CreationTime !== undefined && data.CreationTime !== null) {
3158
- contents.CreationTime = new Date(Math.round(data.CreationTime * 1000));
3185
+ contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
3159
3186
  }
3160
3187
  if (data.HttpPackageConfigurations !== undefined && data.HttpPackageConfigurations !== null) {
3161
3188
  contents.HttpPackageConfigurations = deserializeAws_restJson1HttpPackageConfigurations(
@@ -3164,7 +3191,7 @@ export const deserializeAws_restJson1UpdateVodSourceCommand = async (
3164
3191
  );
3165
3192
  }
3166
3193
  if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
3167
- contents.LastModifiedTime = new Date(Math.round(data.LastModifiedTime * 1000));
3194
+ contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
3168
3195
  }
3169
3196
  if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
3170
3197
  contents.SourceLocationName = __expectString(data.SourceLocationName);
@@ -3484,6 +3511,8 @@ const serializeAws_restJson1Transition = (input: Transition, context: __SerdeCon
3484
3511
  input.RelativePosition !== null && { RelativePosition: input.RelativePosition }),
3485
3512
  ...(input.RelativeProgram !== undefined &&
3486
3513
  input.RelativeProgram !== null && { RelativeProgram: input.RelativeProgram }),
3514
+ ...(input.ScheduledStartTimeMillis !== undefined &&
3515
+ input.ScheduledStartTimeMillis !== null && { ScheduledStartTimeMillis: input.ScheduledStartTimeMillis }),
3487
3516
  ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
3488
3517
  };
3489
3518
  };
@@ -3619,7 +3648,7 @@ const deserializeAws_restJson1AccessConfiguration = (output: any, context: __Ser
3619
3648
  const deserializeAws_restJson1AdBreak = (output: any, context: __SerdeContext): AdBreak => {
3620
3649
  return {
3621
3650
  MessageType: __expectString(output.MessageType),
3622
- OffsetMillis: __expectInt(output.OffsetMillis),
3651
+ OffsetMillis: __expectLong(output.OffsetMillis),
3623
3652
  Slate:
3624
3653
  output.Slate !== undefined && output.Slate !== null
3625
3654
  ? deserializeAws_restJson1SlateSource(output.Slate, context)
@@ -3643,7 +3672,7 @@ const deserializeAws_restJson1Alert = (output: any, context: __SerdeContext): Al
3643
3672
  AlertMessage: __expectString(output.AlertMessage),
3644
3673
  LastModifiedTime:
3645
3674
  output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
3646
- ? new Date(Math.round(output.LastModifiedTime * 1000))
3675
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
3647
3676
  : undefined,
3648
3677
  RelatedResourceArns:
3649
3678
  output.RelatedResourceArns !== undefined && output.RelatedResourceArns !== null
@@ -3681,11 +3710,15 @@ const deserializeAws_restJson1Channel = (output: any, context: __SerdeContext):
3681
3710
  ChannelState: __expectString(output.ChannelState),
3682
3711
  CreationTime:
3683
3712
  output.CreationTime !== undefined && output.CreationTime !== null
3684
- ? new Date(Math.round(output.CreationTime * 1000))
3713
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
3714
+ : undefined,
3715
+ FillerSlate:
3716
+ output.FillerSlate !== undefined && output.FillerSlate !== null
3717
+ ? deserializeAws_restJson1SlateSource(output.FillerSlate, context)
3685
3718
  : undefined,
3686
3719
  LastModifiedTime:
3687
3720
  output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
3688
- ? new Date(Math.round(output.LastModifiedTime * 1000))
3721
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
3689
3722
  : undefined,
3690
3723
  Outputs:
3691
3724
  output.Outputs !== undefined && output.Outputs !== null
@@ -3727,10 +3760,10 @@ const deserializeAws_restJson1DashConfiguration = (output: any, context: __Serde
3727
3760
 
3728
3761
  const deserializeAws_restJson1DashPlaylistSettings = (output: any, context: __SerdeContext): DashPlaylistSettings => {
3729
3762
  return {
3730
- ManifestWindowSeconds: __expectInt(output.ManifestWindowSeconds),
3731
- MinBufferTimeSeconds: __expectInt(output.MinBufferTimeSeconds),
3732
- MinUpdatePeriodSeconds: __expectInt(output.MinUpdatePeriodSeconds),
3733
- SuggestedPresentationDelaySeconds: __expectInt(output.SuggestedPresentationDelaySeconds),
3763
+ ManifestWindowSeconds: __expectInt32(output.ManifestWindowSeconds),
3764
+ MinBufferTimeSeconds: __expectInt32(output.MinBufferTimeSeconds),
3765
+ MinUpdatePeriodSeconds: __expectInt32(output.MinUpdatePeriodSeconds),
3766
+ SuggestedPresentationDelaySeconds: __expectInt32(output.SuggestedPresentationDelaySeconds),
3734
3767
  } as any;
3735
3768
  };
3736
3769
 
@@ -3751,7 +3784,7 @@ const deserializeAws_restJson1HlsConfiguration = (output: any, context: __SerdeC
3751
3784
 
3752
3785
  const deserializeAws_restJson1HlsPlaylistSettings = (output: any, context: __SerdeContext): HlsPlaylistSettings => {
3753
3786
  return {
3754
- ManifestWindowSeconds: __expectInt(output.ManifestWindowSeconds),
3787
+ ManifestWindowSeconds: __expectInt32(output.ManifestWindowSeconds),
3755
3788
  } as any;
3756
3789
  };
3757
3790
 
@@ -3792,7 +3825,7 @@ const deserializeAws_restJson1LivePreRollConfiguration = (
3792
3825
  ): LivePreRollConfiguration => {
3793
3826
  return {
3794
3827
  AdDecisionServerUrl: __expectString(output.AdDecisionServerUrl),
3795
- MaxDurationSeconds: __expectInt(output.MaxDurationSeconds),
3828
+ MaxDurationSeconds: __expectInt32(output.MaxDurationSeconds),
3796
3829
  } as any;
3797
3830
  };
3798
3831
 
@@ -3844,7 +3877,7 @@ const deserializeAws_restJson1PlaybackConfiguration = (output: any, context: __S
3844
3877
  ? deserializeAws_restJson1ManifestProcessingRules(output.ManifestProcessingRules, context)
3845
3878
  : undefined,
3846
3879
  Name: __expectString(output.Name),
3847
- PersonalizationThresholdSeconds: __expectInt(output.PersonalizationThresholdSeconds),
3880
+ PersonalizationThresholdSeconds: __expectInt32(output.PersonalizationThresholdSeconds),
3848
3881
  PlaybackConfigurationArn: __expectString(output.PlaybackConfigurationArn),
3849
3882
  PlaybackEndpointPrefix: __expectString(output.PlaybackEndpointPrefix),
3850
3883
  SessionInitializationEndpointPrefix: __expectString(output.SessionInitializationEndpointPrefix),
@@ -3887,10 +3920,10 @@ const deserializeAws_restJson1ResponseOutputs = (output: any, context: __SerdeCo
3887
3920
 
3888
3921
  const deserializeAws_restJson1ScheduleAdBreak = (output: any, context: __SerdeContext): ScheduleAdBreak => {
3889
3922
  return {
3890
- ApproximateDurationSeconds: __expectInt(output.ApproximateDurationSeconds),
3923
+ ApproximateDurationSeconds: __expectLong(output.ApproximateDurationSeconds),
3891
3924
  ApproximateStartTime:
3892
3925
  output.ApproximateStartTime !== undefined && output.ApproximateStartTime !== null
3893
- ? new Date(Math.round(output.ApproximateStartTime * 1000))
3926
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ApproximateStartTime)))
3894
3927
  : undefined,
3895
3928
  SourceLocationName: __expectString(output.SourceLocationName),
3896
3929
  VodSourceName: __expectString(output.VodSourceName),
@@ -3899,10 +3932,10 @@ const deserializeAws_restJson1ScheduleAdBreak = (output: any, context: __SerdeCo
3899
3932
 
3900
3933
  const deserializeAws_restJson1ScheduleEntry = (output: any, context: __SerdeContext): ScheduleEntry => {
3901
3934
  return {
3902
- ApproximateDurationSeconds: __expectInt(output.ApproximateDurationSeconds),
3935
+ ApproximateDurationSeconds: __expectLong(output.ApproximateDurationSeconds),
3903
3936
  ApproximateStartTime:
3904
3937
  output.ApproximateStartTime !== undefined && output.ApproximateStartTime !== null
3905
- ? new Date(Math.round(output.ApproximateStartTime * 1000))
3938
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ApproximateStartTime)))
3906
3939
  : undefined,
3907
3940
  Arn: __expectString(output.Arn),
3908
3941
  ChannelName: __expectString(output.ChannelName),
@@ -3911,6 +3944,7 @@ const deserializeAws_restJson1ScheduleEntry = (output: any, context: __SerdeCont
3911
3944
  output.ScheduleAdBreaks !== undefined && output.ScheduleAdBreaks !== null
3912
3945
  ? deserializeAws_restJson1__listOfScheduleAdBreak(output.ScheduleAdBreaks, context)
3913
3946
  : undefined,
3947
+ ScheduleEntryType: __expectString(output.ScheduleEntryType),
3914
3948
  SourceLocationName: __expectString(output.SourceLocationName),
3915
3949
  VodSourceName: __expectString(output.VodSourceName),
3916
3950
  } as any;
@@ -3943,7 +3977,7 @@ const deserializeAws_restJson1SourceLocation = (output: any, context: __SerdeCon
3943
3977
  Arn: __expectString(output.Arn),
3944
3978
  CreationTime:
3945
3979
  output.CreationTime !== undefined && output.CreationTime !== null
3946
- ? new Date(Math.round(output.CreationTime * 1000))
3980
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
3947
3981
  : undefined,
3948
3982
  DefaultSegmentDeliveryConfiguration:
3949
3983
  output.DefaultSegmentDeliveryConfiguration !== undefined && output.DefaultSegmentDeliveryConfiguration !== null
@@ -3958,7 +3992,7 @@ const deserializeAws_restJson1SourceLocation = (output: any, context: __SerdeCon
3958
3992
  : undefined,
3959
3993
  LastModifiedTime:
3960
3994
  output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
3961
- ? new Date(Math.round(output.LastModifiedTime * 1000))
3995
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
3962
3996
  : undefined,
3963
3997
  SourceLocationName: __expectString(output.SourceLocationName),
3964
3998
  Tags:
@@ -3970,10 +4004,10 @@ const deserializeAws_restJson1SourceLocation = (output: any, context: __SerdeCon
3970
4004
 
3971
4005
  const deserializeAws_restJson1SpliceInsertMessage = (output: any, context: __SerdeContext): SpliceInsertMessage => {
3972
4006
  return {
3973
- AvailNum: __expectInt(output.AvailNum),
3974
- AvailsExpected: __expectInt(output.AvailsExpected),
3975
- SpliceEventId: __expectInt(output.SpliceEventId),
3976
- UniqueProgramId: __expectInt(output.UniqueProgramId),
4007
+ AvailNum: __expectInt32(output.AvailNum),
4008
+ AvailsExpected: __expectInt32(output.AvailsExpected),
4009
+ SpliceEventId: __expectInt32(output.SpliceEventId),
4010
+ UniqueProgramId: __expectInt32(output.UniqueProgramId),
3977
4011
  } as any;
3978
4012
  };
3979
4013
 
@@ -3982,7 +4016,7 @@ const deserializeAws_restJson1VodSource = (output: any, context: __SerdeContext)
3982
4016
  Arn: __expectString(output.Arn),
3983
4017
  CreationTime:
3984
4018
  output.CreationTime !== undefined && output.CreationTime !== null
3985
- ? new Date(Math.round(output.CreationTime * 1000))
4019
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
3986
4020
  : undefined,
3987
4021
  HttpPackageConfigurations:
3988
4022
  output.HttpPackageConfigurations !== undefined && output.HttpPackageConfigurations !== null
@@ -3990,7 +4024,7 @@ const deserializeAws_restJson1VodSource = (output: any, context: __SerdeContext)
3990
4024
  : undefined,
3991
4025
  LastModifiedTime:
3992
4026
  output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
3993
- ? new Date(Math.round(output.LastModifiedTime * 1000))
4027
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
3994
4028
  : undefined,
3995
4029
  SourceLocationName: __expectString(output.SourceLocationName),
3996
4030
  Tags: