@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.
- package/CHANGELOG.md +35 -0
- package/dist/cjs/models/models_0.js +9 -3
- package/dist/cjs/models/models_0.js.map +1 -1
- package/dist/cjs/package.json +31 -31
- package/dist/cjs/protocols/Aws_restJson1.js +94 -66
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/es/endpoints.js +1 -2
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +6 -0
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +31 -31
- package/dist/es/protocols/Aws_restJson1.js +201 -133
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/dist/types/models/models_0.d.ts +49 -8
- package/dist/types/ts3.4/models/models_0.d.ts +49 -8
- package/models/models_0.ts +59 -8
- package/package.json +31 -31
- package/protocols/Aws_restJson1.ts +101 -67
|
@@ -22,6 +22,8 @@ const serializeAws_restJson1CreateChannelCommand = async (input, context) => {
|
|
|
22
22
|
}
|
|
23
23
|
let body;
|
|
24
24
|
body = JSON.stringify({
|
|
25
|
+
...(input.FillerSlate !== undefined &&
|
|
26
|
+
input.FillerSlate !== null && { FillerSlate: serializeAws_restJson1SlateSource(input.FillerSlate, context) }),
|
|
25
27
|
...(input.Outputs !== undefined &&
|
|
26
28
|
input.Outputs !== null && { Outputs: serializeAws_restJson1RequestOutputs(input.Outputs, context) }),
|
|
27
29
|
...(input.PlaybackMode !== undefined && input.PlaybackMode !== null && { PlaybackMode: input.PlaybackMode }),
|
|
@@ -1045,12 +1047,13 @@ const deserializeAws_restJson1CreateChannelCommand = async (output, context) =>
|
|
|
1045
1047
|
ChannelName: undefined,
|
|
1046
1048
|
ChannelState: undefined,
|
|
1047
1049
|
CreationTime: undefined,
|
|
1050
|
+
FillerSlate: undefined,
|
|
1048
1051
|
LastModifiedTime: undefined,
|
|
1049
1052
|
Outputs: undefined,
|
|
1050
1053
|
PlaybackMode: undefined,
|
|
1051
1054
|
Tags: undefined,
|
|
1052
1055
|
};
|
|
1053
|
-
const data = await parseBody(output.body, context);
|
|
1056
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1054
1057
|
if (data.Arn !== undefined && data.Arn !== null) {
|
|
1055
1058
|
contents.Arn = smithy_client_1.expectString(data.Arn);
|
|
1056
1059
|
}
|
|
@@ -1061,10 +1064,13 @@ const deserializeAws_restJson1CreateChannelCommand = async (output, context) =>
|
|
|
1061
1064
|
contents.ChannelState = smithy_client_1.expectString(data.ChannelState);
|
|
1062
1065
|
}
|
|
1063
1066
|
if (data.CreationTime !== undefined && data.CreationTime !== null) {
|
|
1064
|
-
contents.CreationTime =
|
|
1067
|
+
contents.CreationTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.CreationTime)));
|
|
1068
|
+
}
|
|
1069
|
+
if (data.FillerSlate !== undefined && data.FillerSlate !== null) {
|
|
1070
|
+
contents.FillerSlate = deserializeAws_restJson1SlateSource(data.FillerSlate, context);
|
|
1065
1071
|
}
|
|
1066
1072
|
if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
|
|
1067
|
-
contents.LastModifiedTime =
|
|
1073
|
+
contents.LastModifiedTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastModifiedTime)));
|
|
1068
1074
|
}
|
|
1069
1075
|
if (data.Outputs !== undefined && data.Outputs !== null) {
|
|
1070
1076
|
contents.Outputs = deserializeAws_restJson1ResponseOutputs(data.Outputs, context);
|
|
@@ -1114,10 +1120,11 @@ const deserializeAws_restJson1CreateProgramCommand = async (output, context) =>
|
|
|
1114
1120
|
ChannelName: undefined,
|
|
1115
1121
|
CreationTime: undefined,
|
|
1116
1122
|
ProgramName: undefined,
|
|
1123
|
+
ScheduledStartTime: undefined,
|
|
1117
1124
|
SourceLocationName: undefined,
|
|
1118
1125
|
VodSourceName: undefined,
|
|
1119
1126
|
};
|
|
1120
|
-
const data = await parseBody(output.body, context);
|
|
1127
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1121
1128
|
if (data.AdBreaks !== undefined && data.AdBreaks !== null) {
|
|
1122
1129
|
contents.AdBreaks = deserializeAws_restJson1__listOfAdBreak(data.AdBreaks, context);
|
|
1123
1130
|
}
|
|
@@ -1128,11 +1135,14 @@ const deserializeAws_restJson1CreateProgramCommand = async (output, context) =>
|
|
|
1128
1135
|
contents.ChannelName = smithy_client_1.expectString(data.ChannelName);
|
|
1129
1136
|
}
|
|
1130
1137
|
if (data.CreationTime !== undefined && data.CreationTime !== null) {
|
|
1131
|
-
contents.CreationTime =
|
|
1138
|
+
contents.CreationTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.CreationTime)));
|
|
1132
1139
|
}
|
|
1133
1140
|
if (data.ProgramName !== undefined && data.ProgramName !== null) {
|
|
1134
1141
|
contents.ProgramName = smithy_client_1.expectString(data.ProgramName);
|
|
1135
1142
|
}
|
|
1143
|
+
if (data.ScheduledStartTime !== undefined && data.ScheduledStartTime !== null) {
|
|
1144
|
+
contents.ScheduledStartTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.ScheduledStartTime)));
|
|
1145
|
+
}
|
|
1136
1146
|
if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
|
|
1137
1147
|
contents.SourceLocationName = smithy_client_1.expectString(data.SourceLocationName);
|
|
1138
1148
|
}
|
|
@@ -1182,7 +1192,7 @@ const deserializeAws_restJson1CreateSourceLocationCommand = async (output, conte
|
|
|
1182
1192
|
SourceLocationName: undefined,
|
|
1183
1193
|
Tags: undefined,
|
|
1184
1194
|
};
|
|
1185
|
-
const data = await parseBody(output.body, context);
|
|
1195
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1186
1196
|
if (data.AccessConfiguration !== undefined && data.AccessConfiguration !== null) {
|
|
1187
1197
|
contents.AccessConfiguration = deserializeAws_restJson1AccessConfiguration(data.AccessConfiguration, context);
|
|
1188
1198
|
}
|
|
@@ -1190,7 +1200,7 @@ const deserializeAws_restJson1CreateSourceLocationCommand = async (output, conte
|
|
|
1190
1200
|
contents.Arn = smithy_client_1.expectString(data.Arn);
|
|
1191
1201
|
}
|
|
1192
1202
|
if (data.CreationTime !== undefined && data.CreationTime !== null) {
|
|
1193
|
-
contents.CreationTime =
|
|
1203
|
+
contents.CreationTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.CreationTime)));
|
|
1194
1204
|
}
|
|
1195
1205
|
if (data.DefaultSegmentDeliveryConfiguration !== undefined && data.DefaultSegmentDeliveryConfiguration !== null) {
|
|
1196
1206
|
contents.DefaultSegmentDeliveryConfiguration = deserializeAws_restJson1DefaultSegmentDeliveryConfiguration(data.DefaultSegmentDeliveryConfiguration, context);
|
|
@@ -1199,7 +1209,7 @@ const deserializeAws_restJson1CreateSourceLocationCommand = async (output, conte
|
|
|
1199
1209
|
contents.HttpConfiguration = deserializeAws_restJson1HttpConfiguration(data.HttpConfiguration, context);
|
|
1200
1210
|
}
|
|
1201
1211
|
if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
|
|
1202
|
-
contents.LastModifiedTime =
|
|
1212
|
+
contents.LastModifiedTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastModifiedTime)));
|
|
1203
1213
|
}
|
|
1204
1214
|
if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
|
|
1205
1215
|
contents.SourceLocationName = smithy_client_1.expectString(data.SourceLocationName);
|
|
@@ -1249,18 +1259,18 @@ const deserializeAws_restJson1CreateVodSourceCommand = async (output, context) =
|
|
|
1249
1259
|
Tags: undefined,
|
|
1250
1260
|
VodSourceName: undefined,
|
|
1251
1261
|
};
|
|
1252
|
-
const data = await parseBody(output.body, context);
|
|
1262
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1253
1263
|
if (data.Arn !== undefined && data.Arn !== null) {
|
|
1254
1264
|
contents.Arn = smithy_client_1.expectString(data.Arn);
|
|
1255
1265
|
}
|
|
1256
1266
|
if (data.CreationTime !== undefined && data.CreationTime !== null) {
|
|
1257
|
-
contents.CreationTime =
|
|
1267
|
+
contents.CreationTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.CreationTime)));
|
|
1258
1268
|
}
|
|
1259
1269
|
if (data.HttpPackageConfigurations !== undefined && data.HttpPackageConfigurations !== null) {
|
|
1260
1270
|
contents.HttpPackageConfigurations = deserializeAws_restJson1HttpPackageConfigurations(data.HttpPackageConfigurations, context);
|
|
1261
1271
|
}
|
|
1262
1272
|
if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
|
|
1263
|
-
contents.LastModifiedTime =
|
|
1273
|
+
contents.LastModifiedTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastModifiedTime)));
|
|
1264
1274
|
}
|
|
1265
1275
|
if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
|
|
1266
1276
|
contents.SourceLocationName = smithy_client_1.expectString(data.SourceLocationName);
|
|
@@ -1525,12 +1535,13 @@ const deserializeAws_restJson1DescribeChannelCommand = async (output, context) =
|
|
|
1525
1535
|
ChannelName: undefined,
|
|
1526
1536
|
ChannelState: undefined,
|
|
1527
1537
|
CreationTime: undefined,
|
|
1538
|
+
FillerSlate: undefined,
|
|
1528
1539
|
LastModifiedTime: undefined,
|
|
1529
1540
|
Outputs: undefined,
|
|
1530
1541
|
PlaybackMode: undefined,
|
|
1531
1542
|
Tags: undefined,
|
|
1532
1543
|
};
|
|
1533
|
-
const data = await parseBody(output.body, context);
|
|
1544
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1534
1545
|
if (data.Arn !== undefined && data.Arn !== null) {
|
|
1535
1546
|
contents.Arn = smithy_client_1.expectString(data.Arn);
|
|
1536
1547
|
}
|
|
@@ -1541,10 +1552,13 @@ const deserializeAws_restJson1DescribeChannelCommand = async (output, context) =
|
|
|
1541
1552
|
contents.ChannelState = smithy_client_1.expectString(data.ChannelState);
|
|
1542
1553
|
}
|
|
1543
1554
|
if (data.CreationTime !== undefined && data.CreationTime !== null) {
|
|
1544
|
-
contents.CreationTime =
|
|
1555
|
+
contents.CreationTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.CreationTime)));
|
|
1556
|
+
}
|
|
1557
|
+
if (data.FillerSlate !== undefined && data.FillerSlate !== null) {
|
|
1558
|
+
contents.FillerSlate = deserializeAws_restJson1SlateSource(data.FillerSlate, context);
|
|
1545
1559
|
}
|
|
1546
1560
|
if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
|
|
1547
|
-
contents.LastModifiedTime =
|
|
1561
|
+
contents.LastModifiedTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastModifiedTime)));
|
|
1548
1562
|
}
|
|
1549
1563
|
if (data.Outputs !== undefined && data.Outputs !== null) {
|
|
1550
1564
|
contents.Outputs = deserializeAws_restJson1ResponseOutputs(data.Outputs, context);
|
|
@@ -1594,10 +1608,11 @@ const deserializeAws_restJson1DescribeProgramCommand = async (output, context) =
|
|
|
1594
1608
|
ChannelName: undefined,
|
|
1595
1609
|
CreationTime: undefined,
|
|
1596
1610
|
ProgramName: undefined,
|
|
1611
|
+
ScheduledStartTime: undefined,
|
|
1597
1612
|
SourceLocationName: undefined,
|
|
1598
1613
|
VodSourceName: undefined,
|
|
1599
1614
|
};
|
|
1600
|
-
const data = await parseBody(output.body, context);
|
|
1615
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1601
1616
|
if (data.AdBreaks !== undefined && data.AdBreaks !== null) {
|
|
1602
1617
|
contents.AdBreaks = deserializeAws_restJson1__listOfAdBreak(data.AdBreaks, context);
|
|
1603
1618
|
}
|
|
@@ -1608,11 +1623,14 @@ const deserializeAws_restJson1DescribeProgramCommand = async (output, context) =
|
|
|
1608
1623
|
contents.ChannelName = smithy_client_1.expectString(data.ChannelName);
|
|
1609
1624
|
}
|
|
1610
1625
|
if (data.CreationTime !== undefined && data.CreationTime !== null) {
|
|
1611
|
-
contents.CreationTime =
|
|
1626
|
+
contents.CreationTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.CreationTime)));
|
|
1612
1627
|
}
|
|
1613
1628
|
if (data.ProgramName !== undefined && data.ProgramName !== null) {
|
|
1614
1629
|
contents.ProgramName = smithy_client_1.expectString(data.ProgramName);
|
|
1615
1630
|
}
|
|
1631
|
+
if (data.ScheduledStartTime !== undefined && data.ScheduledStartTime !== null) {
|
|
1632
|
+
contents.ScheduledStartTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.ScheduledStartTime)));
|
|
1633
|
+
}
|
|
1616
1634
|
if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
|
|
1617
1635
|
contents.SourceLocationName = smithy_client_1.expectString(data.SourceLocationName);
|
|
1618
1636
|
}
|
|
@@ -1662,7 +1680,7 @@ const deserializeAws_restJson1DescribeSourceLocationCommand = async (output, con
|
|
|
1662
1680
|
SourceLocationName: undefined,
|
|
1663
1681
|
Tags: undefined,
|
|
1664
1682
|
};
|
|
1665
|
-
const data = await parseBody(output.body, context);
|
|
1683
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1666
1684
|
if (data.AccessConfiguration !== undefined && data.AccessConfiguration !== null) {
|
|
1667
1685
|
contents.AccessConfiguration = deserializeAws_restJson1AccessConfiguration(data.AccessConfiguration, context);
|
|
1668
1686
|
}
|
|
@@ -1670,7 +1688,7 @@ const deserializeAws_restJson1DescribeSourceLocationCommand = async (output, con
|
|
|
1670
1688
|
contents.Arn = smithy_client_1.expectString(data.Arn);
|
|
1671
1689
|
}
|
|
1672
1690
|
if (data.CreationTime !== undefined && data.CreationTime !== null) {
|
|
1673
|
-
contents.CreationTime =
|
|
1691
|
+
contents.CreationTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.CreationTime)));
|
|
1674
1692
|
}
|
|
1675
1693
|
if (data.DefaultSegmentDeliveryConfiguration !== undefined && data.DefaultSegmentDeliveryConfiguration !== null) {
|
|
1676
1694
|
contents.DefaultSegmentDeliveryConfiguration = deserializeAws_restJson1DefaultSegmentDeliveryConfiguration(data.DefaultSegmentDeliveryConfiguration, context);
|
|
@@ -1679,7 +1697,7 @@ const deserializeAws_restJson1DescribeSourceLocationCommand = async (output, con
|
|
|
1679
1697
|
contents.HttpConfiguration = deserializeAws_restJson1HttpConfiguration(data.HttpConfiguration, context);
|
|
1680
1698
|
}
|
|
1681
1699
|
if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
|
|
1682
|
-
contents.LastModifiedTime =
|
|
1700
|
+
contents.LastModifiedTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastModifiedTime)));
|
|
1683
1701
|
}
|
|
1684
1702
|
if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
|
|
1685
1703
|
contents.SourceLocationName = smithy_client_1.expectString(data.SourceLocationName);
|
|
@@ -1729,18 +1747,18 @@ const deserializeAws_restJson1DescribeVodSourceCommand = async (output, context)
|
|
|
1729
1747
|
Tags: undefined,
|
|
1730
1748
|
VodSourceName: undefined,
|
|
1731
1749
|
};
|
|
1732
|
-
const data = await parseBody(output.body, context);
|
|
1750
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1733
1751
|
if (data.Arn !== undefined && data.Arn !== null) {
|
|
1734
1752
|
contents.Arn = smithy_client_1.expectString(data.Arn);
|
|
1735
1753
|
}
|
|
1736
1754
|
if (data.CreationTime !== undefined && data.CreationTime !== null) {
|
|
1737
|
-
contents.CreationTime =
|
|
1755
|
+
contents.CreationTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.CreationTime)));
|
|
1738
1756
|
}
|
|
1739
1757
|
if (data.HttpPackageConfigurations !== undefined && data.HttpPackageConfigurations !== null) {
|
|
1740
1758
|
contents.HttpPackageConfigurations = deserializeAws_restJson1HttpPackageConfigurations(data.HttpPackageConfigurations, context);
|
|
1741
1759
|
}
|
|
1742
1760
|
if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
|
|
1743
|
-
contents.LastModifiedTime =
|
|
1761
|
+
contents.LastModifiedTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastModifiedTime)));
|
|
1744
1762
|
}
|
|
1745
1763
|
if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
|
|
1746
1764
|
contents.SourceLocationName = smithy_client_1.expectString(data.SourceLocationName);
|
|
@@ -1787,7 +1805,7 @@ const deserializeAws_restJson1GetChannelPolicyCommand = async (output, context)
|
|
|
1787
1805
|
$metadata: deserializeMetadata(output),
|
|
1788
1806
|
Policy: undefined,
|
|
1789
1807
|
};
|
|
1790
|
-
const data = await parseBody(output.body, context);
|
|
1808
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1791
1809
|
if (data.Policy !== undefined && data.Policy !== null) {
|
|
1792
1810
|
contents.Policy = smithy_client_1.expectString(data.Policy);
|
|
1793
1811
|
}
|
|
@@ -1828,7 +1846,7 @@ const deserializeAws_restJson1GetChannelScheduleCommand = async (output, context
|
|
|
1828
1846
|
Items: undefined,
|
|
1829
1847
|
NextToken: undefined,
|
|
1830
1848
|
};
|
|
1831
|
-
const data = await parseBody(output.body, context);
|
|
1849
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1832
1850
|
if (data.Items !== undefined && data.Items !== null) {
|
|
1833
1851
|
contents.Items = deserializeAws_restJson1__listOfScheduleEntry(data.Items, context);
|
|
1834
1852
|
}
|
|
@@ -1888,7 +1906,7 @@ const deserializeAws_restJson1GetPlaybackConfigurationCommand = async (output, c
|
|
|
1888
1906
|
TranscodeProfileName: undefined,
|
|
1889
1907
|
VideoContentSourceUrl: undefined,
|
|
1890
1908
|
};
|
|
1891
|
-
const data = await parseBody(output.body, context);
|
|
1909
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1892
1910
|
if (data.AdDecisionServerUrl !== undefined && data.AdDecisionServerUrl !== null) {
|
|
1893
1911
|
contents.AdDecisionServerUrl = smithy_client_1.expectString(data.AdDecisionServerUrl);
|
|
1894
1912
|
}
|
|
@@ -1920,7 +1938,7 @@ const deserializeAws_restJson1GetPlaybackConfigurationCommand = async (output, c
|
|
|
1920
1938
|
contents.Name = smithy_client_1.expectString(data.Name);
|
|
1921
1939
|
}
|
|
1922
1940
|
if (data.PersonalizationThresholdSeconds !== undefined && data.PersonalizationThresholdSeconds !== null) {
|
|
1923
|
-
contents.PersonalizationThresholdSeconds = smithy_client_1.
|
|
1941
|
+
contents.PersonalizationThresholdSeconds = smithy_client_1.expectInt32(data.PersonalizationThresholdSeconds);
|
|
1924
1942
|
}
|
|
1925
1943
|
if (data.PlaybackConfigurationArn !== undefined && data.PlaybackConfigurationArn !== null) {
|
|
1926
1944
|
contents.PlaybackConfigurationArn = smithy_client_1.expectString(data.PlaybackConfigurationArn);
|
|
@@ -1980,7 +1998,7 @@ const deserializeAws_restJson1ListAlertsCommand = async (output, context) => {
|
|
|
1980
1998
|
Items: undefined,
|
|
1981
1999
|
NextToken: undefined,
|
|
1982
2000
|
};
|
|
1983
|
-
const data = await parseBody(output.body, context);
|
|
2001
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1984
2002
|
if (data.Items !== undefined && data.Items !== null) {
|
|
1985
2003
|
contents.Items = deserializeAws_restJson1__listOfAlert(data.Items, context);
|
|
1986
2004
|
}
|
|
@@ -2024,7 +2042,7 @@ const deserializeAws_restJson1ListChannelsCommand = async (output, context) => {
|
|
|
2024
2042
|
Items: undefined,
|
|
2025
2043
|
NextToken: undefined,
|
|
2026
2044
|
};
|
|
2027
|
-
const data = await parseBody(output.body, context);
|
|
2045
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2028
2046
|
if (data.Items !== undefined && data.Items !== null) {
|
|
2029
2047
|
contents.Items = deserializeAws_restJson1__listOfChannel(data.Items, context);
|
|
2030
2048
|
}
|
|
@@ -2068,7 +2086,7 @@ const deserializeAws_restJson1ListPlaybackConfigurationsCommand = async (output,
|
|
|
2068
2086
|
Items: undefined,
|
|
2069
2087
|
NextToken: undefined,
|
|
2070
2088
|
};
|
|
2071
|
-
const data = await parseBody(output.body, context);
|
|
2089
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2072
2090
|
if (data.Items !== undefined && data.Items !== null) {
|
|
2073
2091
|
contents.Items = deserializeAws_restJson1__listOfPlaybackConfiguration(data.Items, context);
|
|
2074
2092
|
}
|
|
@@ -2112,7 +2130,7 @@ const deserializeAws_restJson1ListSourceLocationsCommand = async (output, contex
|
|
|
2112
2130
|
Items: undefined,
|
|
2113
2131
|
NextToken: undefined,
|
|
2114
2132
|
};
|
|
2115
|
-
const data = await parseBody(output.body, context);
|
|
2133
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2116
2134
|
if (data.Items !== undefined && data.Items !== null) {
|
|
2117
2135
|
contents.Items = deserializeAws_restJson1__listOfSourceLocation(data.Items, context);
|
|
2118
2136
|
}
|
|
@@ -2155,7 +2173,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
2155
2173
|
$metadata: deserializeMetadata(output),
|
|
2156
2174
|
Tags: undefined,
|
|
2157
2175
|
};
|
|
2158
|
-
const data = await parseBody(output.body, context);
|
|
2176
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2159
2177
|
if (data.tags !== undefined && data.tags !== null) {
|
|
2160
2178
|
contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
|
|
2161
2179
|
}
|
|
@@ -2204,7 +2222,7 @@ const deserializeAws_restJson1ListVodSourcesCommand = async (output, context) =>
|
|
|
2204
2222
|
Items: undefined,
|
|
2205
2223
|
NextToken: undefined,
|
|
2206
2224
|
};
|
|
2207
|
-
const data = await parseBody(output.body, context);
|
|
2225
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2208
2226
|
if (data.Items !== undefined && data.Items !== null) {
|
|
2209
2227
|
contents.Items = deserializeAws_restJson1__listOfVodSource(data.Items, context);
|
|
2210
2228
|
}
|
|
@@ -2300,7 +2318,7 @@ const deserializeAws_restJson1PutPlaybackConfigurationCommand = async (output, c
|
|
|
2300
2318
|
TranscodeProfileName: undefined,
|
|
2301
2319
|
VideoContentSourceUrl: undefined,
|
|
2302
2320
|
};
|
|
2303
|
-
const data = await parseBody(output.body, context);
|
|
2321
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2304
2322
|
if (data.AdDecisionServerUrl !== undefined && data.AdDecisionServerUrl !== null) {
|
|
2305
2323
|
contents.AdDecisionServerUrl = smithy_client_1.expectString(data.AdDecisionServerUrl);
|
|
2306
2324
|
}
|
|
@@ -2332,7 +2350,7 @@ const deserializeAws_restJson1PutPlaybackConfigurationCommand = async (output, c
|
|
|
2332
2350
|
contents.Name = smithy_client_1.expectString(data.Name);
|
|
2333
2351
|
}
|
|
2334
2352
|
if (data.PersonalizationThresholdSeconds !== undefined && data.PersonalizationThresholdSeconds !== null) {
|
|
2335
|
-
contents.PersonalizationThresholdSeconds = smithy_client_1.
|
|
2353
|
+
contents.PersonalizationThresholdSeconds = smithy_client_1.expectInt32(data.PersonalizationThresholdSeconds);
|
|
2336
2354
|
}
|
|
2337
2355
|
if (data.PlaybackConfigurationArn !== undefined && data.PlaybackConfigurationArn !== null) {
|
|
2338
2356
|
contents.PlaybackConfigurationArn = smithy_client_1.expectString(data.PlaybackConfigurationArn);
|
|
@@ -2553,12 +2571,13 @@ const deserializeAws_restJson1UpdateChannelCommand = async (output, context) =>
|
|
|
2553
2571
|
ChannelName: undefined,
|
|
2554
2572
|
ChannelState: undefined,
|
|
2555
2573
|
CreationTime: undefined,
|
|
2574
|
+
FillerSlate: undefined,
|
|
2556
2575
|
LastModifiedTime: undefined,
|
|
2557
2576
|
Outputs: undefined,
|
|
2558
2577
|
PlaybackMode: undefined,
|
|
2559
2578
|
Tags: undefined,
|
|
2560
2579
|
};
|
|
2561
|
-
const data = await parseBody(output.body, context);
|
|
2580
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2562
2581
|
if (data.Arn !== undefined && data.Arn !== null) {
|
|
2563
2582
|
contents.Arn = smithy_client_1.expectString(data.Arn);
|
|
2564
2583
|
}
|
|
@@ -2569,10 +2588,13 @@ const deserializeAws_restJson1UpdateChannelCommand = async (output, context) =>
|
|
|
2569
2588
|
contents.ChannelState = smithy_client_1.expectString(data.ChannelState);
|
|
2570
2589
|
}
|
|
2571
2590
|
if (data.CreationTime !== undefined && data.CreationTime !== null) {
|
|
2572
|
-
contents.CreationTime =
|
|
2591
|
+
contents.CreationTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.CreationTime)));
|
|
2592
|
+
}
|
|
2593
|
+
if (data.FillerSlate !== undefined && data.FillerSlate !== null) {
|
|
2594
|
+
contents.FillerSlate = deserializeAws_restJson1SlateSource(data.FillerSlate, context);
|
|
2573
2595
|
}
|
|
2574
2596
|
if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
|
|
2575
|
-
contents.LastModifiedTime =
|
|
2597
|
+
contents.LastModifiedTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastModifiedTime)));
|
|
2576
2598
|
}
|
|
2577
2599
|
if (data.Outputs !== undefined && data.Outputs !== null) {
|
|
2578
2600
|
contents.Outputs = deserializeAws_restJson1ResponseOutputs(data.Outputs, context);
|
|
@@ -2626,7 +2648,7 @@ const deserializeAws_restJson1UpdateSourceLocationCommand = async (output, conte
|
|
|
2626
2648
|
SourceLocationName: undefined,
|
|
2627
2649
|
Tags: undefined,
|
|
2628
2650
|
};
|
|
2629
|
-
const data = await parseBody(output.body, context);
|
|
2651
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2630
2652
|
if (data.AccessConfiguration !== undefined && data.AccessConfiguration !== null) {
|
|
2631
2653
|
contents.AccessConfiguration = deserializeAws_restJson1AccessConfiguration(data.AccessConfiguration, context);
|
|
2632
2654
|
}
|
|
@@ -2634,7 +2656,7 @@ const deserializeAws_restJson1UpdateSourceLocationCommand = async (output, conte
|
|
|
2634
2656
|
contents.Arn = smithy_client_1.expectString(data.Arn);
|
|
2635
2657
|
}
|
|
2636
2658
|
if (data.CreationTime !== undefined && data.CreationTime !== null) {
|
|
2637
|
-
contents.CreationTime =
|
|
2659
|
+
contents.CreationTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.CreationTime)));
|
|
2638
2660
|
}
|
|
2639
2661
|
if (data.DefaultSegmentDeliveryConfiguration !== undefined && data.DefaultSegmentDeliveryConfiguration !== null) {
|
|
2640
2662
|
contents.DefaultSegmentDeliveryConfiguration = deserializeAws_restJson1DefaultSegmentDeliveryConfiguration(data.DefaultSegmentDeliveryConfiguration, context);
|
|
@@ -2643,7 +2665,7 @@ const deserializeAws_restJson1UpdateSourceLocationCommand = async (output, conte
|
|
|
2643
2665
|
contents.HttpConfiguration = deserializeAws_restJson1HttpConfiguration(data.HttpConfiguration, context);
|
|
2644
2666
|
}
|
|
2645
2667
|
if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
|
|
2646
|
-
contents.LastModifiedTime =
|
|
2668
|
+
contents.LastModifiedTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastModifiedTime)));
|
|
2647
2669
|
}
|
|
2648
2670
|
if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
|
|
2649
2671
|
contents.SourceLocationName = smithy_client_1.expectString(data.SourceLocationName);
|
|
@@ -2693,18 +2715,18 @@ const deserializeAws_restJson1UpdateVodSourceCommand = async (output, context) =
|
|
|
2693
2715
|
Tags: undefined,
|
|
2694
2716
|
VodSourceName: undefined,
|
|
2695
2717
|
};
|
|
2696
|
-
const data = await parseBody(output.body, context);
|
|
2718
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2697
2719
|
if (data.Arn !== undefined && data.Arn !== null) {
|
|
2698
2720
|
contents.Arn = smithy_client_1.expectString(data.Arn);
|
|
2699
2721
|
}
|
|
2700
2722
|
if (data.CreationTime !== undefined && data.CreationTime !== null) {
|
|
2701
|
-
contents.CreationTime =
|
|
2723
|
+
contents.CreationTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.CreationTime)));
|
|
2702
2724
|
}
|
|
2703
2725
|
if (data.HttpPackageConfigurations !== undefined && data.HttpPackageConfigurations !== null) {
|
|
2704
2726
|
contents.HttpPackageConfigurations = deserializeAws_restJson1HttpPackageConfigurations(data.HttpPackageConfigurations, context);
|
|
2705
2727
|
}
|
|
2706
2728
|
if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
|
|
2707
|
-
contents.LastModifiedTime =
|
|
2729
|
+
contents.LastModifiedTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastModifiedTime)));
|
|
2708
2730
|
}
|
|
2709
2731
|
if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
|
|
2710
2732
|
contents.SourceLocationName = smithy_client_1.expectString(data.SourceLocationName);
|
|
@@ -2965,6 +2987,8 @@ const serializeAws_restJson1Transition = (input, context) => {
|
|
|
2965
2987
|
input.RelativePosition !== null && { RelativePosition: input.RelativePosition }),
|
|
2966
2988
|
...(input.RelativeProgram !== undefined &&
|
|
2967
2989
|
input.RelativeProgram !== null && { RelativeProgram: input.RelativeProgram }),
|
|
2990
|
+
...(input.ScheduledStartTimeMillis !== undefined &&
|
|
2991
|
+
input.ScheduledStartTimeMillis !== null && { ScheduledStartTimeMillis: input.ScheduledStartTimeMillis }),
|
|
2968
2992
|
...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
|
|
2969
2993
|
};
|
|
2970
2994
|
};
|
|
@@ -3081,7 +3105,7 @@ const deserializeAws_restJson1AccessConfiguration = (output, context) => {
|
|
|
3081
3105
|
const deserializeAws_restJson1AdBreak = (output, context) => {
|
|
3082
3106
|
return {
|
|
3083
3107
|
MessageType: smithy_client_1.expectString(output.MessageType),
|
|
3084
|
-
OffsetMillis: smithy_client_1.
|
|
3108
|
+
OffsetMillis: smithy_client_1.expectLong(output.OffsetMillis),
|
|
3085
3109
|
Slate: output.Slate !== undefined && output.Slate !== null
|
|
3086
3110
|
? deserializeAws_restJson1SlateSource(output.Slate, context)
|
|
3087
3111
|
: undefined,
|
|
@@ -3100,7 +3124,7 @@ const deserializeAws_restJson1Alert = (output, context) => {
|
|
|
3100
3124
|
AlertCode: smithy_client_1.expectString(output.AlertCode),
|
|
3101
3125
|
AlertMessage: smithy_client_1.expectString(output.AlertMessage),
|
|
3102
3126
|
LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
|
|
3103
|
-
?
|
|
3127
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModifiedTime)))
|
|
3104
3128
|
: undefined,
|
|
3105
3129
|
RelatedResourceArns: output.RelatedResourceArns !== undefined && output.RelatedResourceArns !== null
|
|
3106
3130
|
? deserializeAws_restJson1__listOf__string(output.RelatedResourceArns, context)
|
|
@@ -3132,10 +3156,13 @@ const deserializeAws_restJson1Channel = (output, context) => {
|
|
|
3132
3156
|
ChannelName: smithy_client_1.expectString(output.ChannelName),
|
|
3133
3157
|
ChannelState: smithy_client_1.expectString(output.ChannelState),
|
|
3134
3158
|
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
3135
|
-
?
|
|
3159
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationTime)))
|
|
3160
|
+
: undefined,
|
|
3161
|
+
FillerSlate: output.FillerSlate !== undefined && output.FillerSlate !== null
|
|
3162
|
+
? deserializeAws_restJson1SlateSource(output.FillerSlate, context)
|
|
3136
3163
|
: undefined,
|
|
3137
3164
|
LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
|
|
3138
|
-
?
|
|
3165
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModifiedTime)))
|
|
3139
3166
|
: undefined,
|
|
3140
3167
|
Outputs: output.Outputs !== undefined && output.Outputs !== null
|
|
3141
3168
|
? deserializeAws_restJson1ResponseOutputs(output.Outputs, context)
|
|
@@ -3166,10 +3193,10 @@ const deserializeAws_restJson1DashConfiguration = (output, context) => {
|
|
|
3166
3193
|
};
|
|
3167
3194
|
const deserializeAws_restJson1DashPlaylistSettings = (output, context) => {
|
|
3168
3195
|
return {
|
|
3169
|
-
ManifestWindowSeconds: smithy_client_1.
|
|
3170
|
-
MinBufferTimeSeconds: smithy_client_1.
|
|
3171
|
-
MinUpdatePeriodSeconds: smithy_client_1.
|
|
3172
|
-
SuggestedPresentationDelaySeconds: smithy_client_1.
|
|
3196
|
+
ManifestWindowSeconds: smithy_client_1.expectInt32(output.ManifestWindowSeconds),
|
|
3197
|
+
MinBufferTimeSeconds: smithy_client_1.expectInt32(output.MinBufferTimeSeconds),
|
|
3198
|
+
MinUpdatePeriodSeconds: smithy_client_1.expectInt32(output.MinUpdatePeriodSeconds),
|
|
3199
|
+
SuggestedPresentationDelaySeconds: smithy_client_1.expectInt32(output.SuggestedPresentationDelaySeconds),
|
|
3173
3200
|
};
|
|
3174
3201
|
};
|
|
3175
3202
|
const deserializeAws_restJson1DefaultSegmentDeliveryConfiguration = (output, context) => {
|
|
@@ -3184,7 +3211,7 @@ const deserializeAws_restJson1HlsConfiguration = (output, context) => {
|
|
|
3184
3211
|
};
|
|
3185
3212
|
const deserializeAws_restJson1HlsPlaylistSettings = (output, context) => {
|
|
3186
3213
|
return {
|
|
3187
|
-
ManifestWindowSeconds: smithy_client_1.
|
|
3214
|
+
ManifestWindowSeconds: smithy_client_1.expectInt32(output.ManifestWindowSeconds),
|
|
3188
3215
|
};
|
|
3189
3216
|
};
|
|
3190
3217
|
const deserializeAws_restJson1HttpConfiguration = (output, context) => {
|
|
@@ -3212,7 +3239,7 @@ const deserializeAws_restJson1HttpPackageConfigurations = (output, context) => {
|
|
|
3212
3239
|
const deserializeAws_restJson1LivePreRollConfiguration = (output, context) => {
|
|
3213
3240
|
return {
|
|
3214
3241
|
AdDecisionServerUrl: smithy_client_1.expectString(output.AdDecisionServerUrl),
|
|
3215
|
-
MaxDurationSeconds: smithy_client_1.
|
|
3242
|
+
MaxDurationSeconds: smithy_client_1.expectInt32(output.MaxDurationSeconds),
|
|
3216
3243
|
};
|
|
3217
3244
|
};
|
|
3218
3245
|
const deserializeAws_restJson1ManifestProcessingRules = (output, context) => {
|
|
@@ -3250,7 +3277,7 @@ const deserializeAws_restJson1PlaybackConfiguration = (output, context) => {
|
|
|
3250
3277
|
? deserializeAws_restJson1ManifestProcessingRules(output.ManifestProcessingRules, context)
|
|
3251
3278
|
: undefined,
|
|
3252
3279
|
Name: smithy_client_1.expectString(output.Name),
|
|
3253
|
-
PersonalizationThresholdSeconds: smithy_client_1.
|
|
3280
|
+
PersonalizationThresholdSeconds: smithy_client_1.expectInt32(output.PersonalizationThresholdSeconds),
|
|
3254
3281
|
PlaybackConfigurationArn: smithy_client_1.expectString(output.PlaybackConfigurationArn),
|
|
3255
3282
|
PlaybackEndpointPrefix: smithy_client_1.expectString(output.PlaybackEndpointPrefix),
|
|
3256
3283
|
SessionInitializationEndpointPrefix: smithy_client_1.expectString(output.SessionInitializationEndpointPrefix),
|
|
@@ -3287,9 +3314,9 @@ const deserializeAws_restJson1ResponseOutputs = (output, context) => {
|
|
|
3287
3314
|
};
|
|
3288
3315
|
const deserializeAws_restJson1ScheduleAdBreak = (output, context) => {
|
|
3289
3316
|
return {
|
|
3290
|
-
ApproximateDurationSeconds: smithy_client_1.
|
|
3317
|
+
ApproximateDurationSeconds: smithy_client_1.expectLong(output.ApproximateDurationSeconds),
|
|
3291
3318
|
ApproximateStartTime: output.ApproximateStartTime !== undefined && output.ApproximateStartTime !== null
|
|
3292
|
-
?
|
|
3319
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.ApproximateStartTime)))
|
|
3293
3320
|
: undefined,
|
|
3294
3321
|
SourceLocationName: smithy_client_1.expectString(output.SourceLocationName),
|
|
3295
3322
|
VodSourceName: smithy_client_1.expectString(output.VodSourceName),
|
|
@@ -3297,9 +3324,9 @@ const deserializeAws_restJson1ScheduleAdBreak = (output, context) => {
|
|
|
3297
3324
|
};
|
|
3298
3325
|
const deserializeAws_restJson1ScheduleEntry = (output, context) => {
|
|
3299
3326
|
return {
|
|
3300
|
-
ApproximateDurationSeconds: smithy_client_1.
|
|
3327
|
+
ApproximateDurationSeconds: smithy_client_1.expectLong(output.ApproximateDurationSeconds),
|
|
3301
3328
|
ApproximateStartTime: output.ApproximateStartTime !== undefined && output.ApproximateStartTime !== null
|
|
3302
|
-
?
|
|
3329
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.ApproximateStartTime)))
|
|
3303
3330
|
: undefined,
|
|
3304
3331
|
Arn: smithy_client_1.expectString(output.Arn),
|
|
3305
3332
|
ChannelName: smithy_client_1.expectString(output.ChannelName),
|
|
@@ -3307,6 +3334,7 @@ const deserializeAws_restJson1ScheduleEntry = (output, context) => {
|
|
|
3307
3334
|
ScheduleAdBreaks: output.ScheduleAdBreaks !== undefined && output.ScheduleAdBreaks !== null
|
|
3308
3335
|
? deserializeAws_restJson1__listOfScheduleAdBreak(output.ScheduleAdBreaks, context)
|
|
3309
3336
|
: undefined,
|
|
3337
|
+
ScheduleEntryType: smithy_client_1.expectString(output.ScheduleEntryType),
|
|
3310
3338
|
SourceLocationName: smithy_client_1.expectString(output.SourceLocationName),
|
|
3311
3339
|
VodSourceName: smithy_client_1.expectString(output.VodSourceName),
|
|
3312
3340
|
};
|
|
@@ -3331,7 +3359,7 @@ const deserializeAws_restJson1SourceLocation = (output, context) => {
|
|
|
3331
3359
|
: undefined,
|
|
3332
3360
|
Arn: smithy_client_1.expectString(output.Arn),
|
|
3333
3361
|
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
3334
|
-
?
|
|
3362
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationTime)))
|
|
3335
3363
|
: undefined,
|
|
3336
3364
|
DefaultSegmentDeliveryConfiguration: output.DefaultSegmentDeliveryConfiguration !== undefined && output.DefaultSegmentDeliveryConfiguration !== null
|
|
3337
3365
|
? deserializeAws_restJson1DefaultSegmentDeliveryConfiguration(output.DefaultSegmentDeliveryConfiguration, context)
|
|
@@ -3340,7 +3368,7 @@ const deserializeAws_restJson1SourceLocation = (output, context) => {
|
|
|
3340
3368
|
? deserializeAws_restJson1HttpConfiguration(output.HttpConfiguration, context)
|
|
3341
3369
|
: undefined,
|
|
3342
3370
|
LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
|
|
3343
|
-
?
|
|
3371
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModifiedTime)))
|
|
3344
3372
|
: undefined,
|
|
3345
3373
|
SourceLocationName: smithy_client_1.expectString(output.SourceLocationName),
|
|
3346
3374
|
Tags: output.tags !== undefined && output.tags !== null
|
|
@@ -3350,23 +3378,23 @@ const deserializeAws_restJson1SourceLocation = (output, context) => {
|
|
|
3350
3378
|
};
|
|
3351
3379
|
const deserializeAws_restJson1SpliceInsertMessage = (output, context) => {
|
|
3352
3380
|
return {
|
|
3353
|
-
AvailNum: smithy_client_1.
|
|
3354
|
-
AvailsExpected: smithy_client_1.
|
|
3355
|
-
SpliceEventId: smithy_client_1.
|
|
3356
|
-
UniqueProgramId: smithy_client_1.
|
|
3381
|
+
AvailNum: smithy_client_1.expectInt32(output.AvailNum),
|
|
3382
|
+
AvailsExpected: smithy_client_1.expectInt32(output.AvailsExpected),
|
|
3383
|
+
SpliceEventId: smithy_client_1.expectInt32(output.SpliceEventId),
|
|
3384
|
+
UniqueProgramId: smithy_client_1.expectInt32(output.UniqueProgramId),
|
|
3357
3385
|
};
|
|
3358
3386
|
};
|
|
3359
3387
|
const deserializeAws_restJson1VodSource = (output, context) => {
|
|
3360
3388
|
return {
|
|
3361
3389
|
Arn: smithy_client_1.expectString(output.Arn),
|
|
3362
3390
|
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
3363
|
-
?
|
|
3391
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationTime)))
|
|
3364
3392
|
: undefined,
|
|
3365
3393
|
HttpPackageConfigurations: output.HttpPackageConfigurations !== undefined && output.HttpPackageConfigurations !== null
|
|
3366
3394
|
? deserializeAws_restJson1HttpPackageConfigurations(output.HttpPackageConfigurations, context)
|
|
3367
3395
|
: undefined,
|
|
3368
3396
|
LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
|
|
3369
|
-
?
|
|
3397
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModifiedTime)))
|
|
3370
3398
|
: undefined,
|
|
3371
3399
|
SourceLocationName: smithy_client_1.expectString(output.SourceLocationName),
|
|
3372
3400
|
Tags: output.tags !== undefined && output.tags !== null
|