@aws-sdk/client-mediatailor 3.121.0 → 3.127.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 +8 -0
- package/dist-cjs/protocols/Aws_restJson1.js +157 -261
- package/dist-es/protocols/Aws_restJson1.js +110 -214
- package/package.json +26 -26
|
@@ -14,10 +14,8 @@ const serializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommand = async
|
|
|
14
14
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/configureLogs/playbackConfiguration";
|
|
15
15
|
let body;
|
|
16
16
|
body = JSON.stringify({
|
|
17
|
-
...(input.PercentEnabled
|
|
18
|
-
|
|
19
|
-
...(input.PlaybackConfigurationName !== undefined &&
|
|
20
|
-
input.PlaybackConfigurationName !== null && { PlaybackConfigurationName: input.PlaybackConfigurationName }),
|
|
17
|
+
...(input.PercentEnabled != null && { PercentEnabled: input.PercentEnabled }),
|
|
18
|
+
...(input.PlaybackConfigurationName != null && { PlaybackConfigurationName: input.PlaybackConfigurationName }),
|
|
21
19
|
});
|
|
22
20
|
return new protocol_http_1.HttpRequest({
|
|
23
21
|
protocol,
|
|
@@ -48,14 +46,11 @@ const serializeAws_restJson1CreateChannelCommand = async (input, context) => {
|
|
|
48
46
|
}
|
|
49
47
|
let body;
|
|
50
48
|
body = JSON.stringify({
|
|
51
|
-
...(input.FillerSlate
|
|
52
|
-
|
|
53
|
-
...(input.
|
|
54
|
-
|
|
55
|
-
...(input.
|
|
56
|
-
...(input.Tags !== undefined &&
|
|
57
|
-
input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
|
|
58
|
-
...(input.Tier !== undefined && input.Tier !== null && { Tier: input.Tier }),
|
|
49
|
+
...(input.FillerSlate != null && { FillerSlate: serializeAws_restJson1SlateSource(input.FillerSlate, context) }),
|
|
50
|
+
...(input.Outputs != null && { Outputs: serializeAws_restJson1RequestOutputs(input.Outputs, context) }),
|
|
51
|
+
...(input.PlaybackMode != null && { PlaybackMode: input.PlaybackMode }),
|
|
52
|
+
...(input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
|
|
53
|
+
...(input.Tier != null && { Tier: input.Tier }),
|
|
59
54
|
});
|
|
60
55
|
return new protocol_http_1.HttpRequest({
|
|
61
56
|
protocol,
|
|
@@ -97,12 +92,10 @@ const serializeAws_restJson1CreateLiveSourceCommand = async (input, context) =>
|
|
|
97
92
|
}
|
|
98
93
|
let body;
|
|
99
94
|
body = JSON.stringify({
|
|
100
|
-
...(input.HttpPackageConfigurations
|
|
101
|
-
input.HttpPackageConfigurations !== null && {
|
|
95
|
+
...(input.HttpPackageConfigurations != null && {
|
|
102
96
|
HttpPackageConfigurations: serializeAws_restJson1HttpPackageConfigurations(input.HttpPackageConfigurations, context),
|
|
103
97
|
}),
|
|
104
|
-
...(input.Tags
|
|
105
|
-
input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
|
|
98
|
+
...(input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
|
|
106
99
|
});
|
|
107
100
|
return new protocol_http_1.HttpRequest({
|
|
108
101
|
protocol,
|
|
@@ -144,13 +137,11 @@ const serializeAws_restJson1CreatePrefetchScheduleCommand = async (input, contex
|
|
|
144
137
|
}
|
|
145
138
|
let body;
|
|
146
139
|
body = JSON.stringify({
|
|
147
|
-
...(input.Consumption
|
|
148
|
-
input.Consumption !== null && {
|
|
140
|
+
...(input.Consumption != null && {
|
|
149
141
|
Consumption: serializeAws_restJson1PrefetchConsumption(input.Consumption, context),
|
|
150
142
|
}),
|
|
151
|
-
...(input.Retrieval
|
|
152
|
-
|
|
153
|
-
...(input.StreamId !== undefined && input.StreamId !== null && { StreamId: input.StreamId }),
|
|
143
|
+
...(input.Retrieval != null && { Retrieval: serializeAws_restJson1PrefetchRetrieval(input.Retrieval, context) }),
|
|
144
|
+
...(input.StreamId != null && { StreamId: input.StreamId }),
|
|
154
145
|
});
|
|
155
146
|
return new protocol_http_1.HttpRequest({
|
|
156
147
|
protocol,
|
|
@@ -192,17 +183,13 @@ const serializeAws_restJson1CreateProgramCommand = async (input, context) => {
|
|
|
192
183
|
}
|
|
193
184
|
let body;
|
|
194
185
|
body = JSON.stringify({
|
|
195
|
-
...(input.AdBreaks
|
|
196
|
-
|
|
197
|
-
...(input.
|
|
198
|
-
input.LiveSourceName !== null && { LiveSourceName: input.LiveSourceName }),
|
|
199
|
-
...(input.ScheduleConfiguration !== undefined &&
|
|
200
|
-
input.ScheduleConfiguration !== null && {
|
|
186
|
+
...(input.AdBreaks != null && { AdBreaks: serializeAws_restJson1__listOfAdBreak(input.AdBreaks, context) }),
|
|
187
|
+
...(input.LiveSourceName != null && { LiveSourceName: input.LiveSourceName }),
|
|
188
|
+
...(input.ScheduleConfiguration != null && {
|
|
201
189
|
ScheduleConfiguration: serializeAws_restJson1ScheduleConfiguration(input.ScheduleConfiguration, context),
|
|
202
190
|
}),
|
|
203
|
-
...(input.SourceLocationName
|
|
204
|
-
|
|
205
|
-
...(input.VodSourceName !== undefined && input.VodSourceName !== null && { VodSourceName: input.VodSourceName }),
|
|
191
|
+
...(input.SourceLocationName != null && { SourceLocationName: input.SourceLocationName }),
|
|
192
|
+
...(input.VodSourceName != null && { VodSourceName: input.VodSourceName }),
|
|
206
193
|
});
|
|
207
194
|
return new protocol_http_1.HttpRequest({
|
|
208
195
|
protocol,
|
|
@@ -233,24 +220,19 @@ const serializeAws_restJson1CreateSourceLocationCommand = async (input, context)
|
|
|
233
220
|
}
|
|
234
221
|
let body;
|
|
235
222
|
body = JSON.stringify({
|
|
236
|
-
...(input.AccessConfiguration
|
|
237
|
-
input.AccessConfiguration !== null && {
|
|
223
|
+
...(input.AccessConfiguration != null && {
|
|
238
224
|
AccessConfiguration: serializeAws_restJson1AccessConfiguration(input.AccessConfiguration, context),
|
|
239
225
|
}),
|
|
240
|
-
...(input.DefaultSegmentDeliveryConfiguration
|
|
241
|
-
input.DefaultSegmentDeliveryConfiguration !== null && {
|
|
226
|
+
...(input.DefaultSegmentDeliveryConfiguration != null && {
|
|
242
227
|
DefaultSegmentDeliveryConfiguration: serializeAws_restJson1DefaultSegmentDeliveryConfiguration(input.DefaultSegmentDeliveryConfiguration, context),
|
|
243
228
|
}),
|
|
244
|
-
...(input.HttpConfiguration
|
|
245
|
-
input.HttpConfiguration !== null && {
|
|
229
|
+
...(input.HttpConfiguration != null && {
|
|
246
230
|
HttpConfiguration: serializeAws_restJson1HttpConfiguration(input.HttpConfiguration, context),
|
|
247
231
|
}),
|
|
248
|
-
...(input.SegmentDeliveryConfigurations
|
|
249
|
-
input.SegmentDeliveryConfigurations !== null && {
|
|
232
|
+
...(input.SegmentDeliveryConfigurations != null && {
|
|
250
233
|
SegmentDeliveryConfigurations: serializeAws_restJson1__listOfSegmentDeliveryConfiguration(input.SegmentDeliveryConfigurations, context),
|
|
251
234
|
}),
|
|
252
|
-
...(input.Tags
|
|
253
|
-
input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
|
|
235
|
+
...(input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
|
|
254
236
|
});
|
|
255
237
|
return new protocol_http_1.HttpRequest({
|
|
256
238
|
protocol,
|
|
@@ -292,12 +274,10 @@ const serializeAws_restJson1CreateVodSourceCommand = async (input, context) => {
|
|
|
292
274
|
}
|
|
293
275
|
let body;
|
|
294
276
|
body = JSON.stringify({
|
|
295
|
-
...(input.HttpPackageConfigurations
|
|
296
|
-
input.HttpPackageConfigurations !== null && {
|
|
277
|
+
...(input.HttpPackageConfigurations != null && {
|
|
297
278
|
HttpPackageConfigurations: serializeAws_restJson1HttpPackageConfigurations(input.HttpPackageConfigurations, context),
|
|
298
279
|
}),
|
|
299
|
-
...(input.Tags
|
|
300
|
-
input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
|
|
280
|
+
...(input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
|
|
301
281
|
});
|
|
302
282
|
return new protocol_http_1.HttpRequest({
|
|
303
283
|
protocol,
|
|
@@ -961,9 +941,9 @@ const serializeAws_restJson1ListPrefetchSchedulesCommand = async (input, context
|
|
|
961
941
|
}
|
|
962
942
|
let body;
|
|
963
943
|
body = JSON.stringify({
|
|
964
|
-
...(input.MaxResults
|
|
965
|
-
...(input.NextToken
|
|
966
|
-
...(input.StreamId
|
|
944
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
945
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
946
|
+
...(input.StreamId != null && { StreamId: input.StreamId }),
|
|
967
947
|
});
|
|
968
948
|
return new protocol_http_1.HttpRequest({
|
|
969
949
|
protocol,
|
|
@@ -1073,7 +1053,7 @@ const serializeAws_restJson1PutChannelPolicyCommand = async (input, context) =>
|
|
|
1073
1053
|
}
|
|
1074
1054
|
let body;
|
|
1075
1055
|
body = JSON.stringify({
|
|
1076
|
-
...(input.Policy
|
|
1056
|
+
...(input.Policy != null && { Policy: input.Policy }),
|
|
1077
1057
|
});
|
|
1078
1058
|
return new protocol_http_1.HttpRequest({
|
|
1079
1059
|
protocol,
|
|
@@ -1094,46 +1074,34 @@ const serializeAws_restJson1PutPlaybackConfigurationCommand = async (input, cont
|
|
|
1094
1074
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/playbackConfiguration";
|
|
1095
1075
|
let body;
|
|
1096
1076
|
body = JSON.stringify({
|
|
1097
|
-
...(input.AdDecisionServerUrl
|
|
1098
|
-
|
|
1099
|
-
...(input.AvailSuppression !== undefined &&
|
|
1100
|
-
input.AvailSuppression !== null && {
|
|
1077
|
+
...(input.AdDecisionServerUrl != null && { AdDecisionServerUrl: input.AdDecisionServerUrl }),
|
|
1078
|
+
...(input.AvailSuppression != null && {
|
|
1101
1079
|
AvailSuppression: serializeAws_restJson1AvailSuppression(input.AvailSuppression, context),
|
|
1102
1080
|
}),
|
|
1103
|
-
...(input.Bumper
|
|
1104
|
-
|
|
1105
|
-
...(input.CdnConfiguration !== undefined &&
|
|
1106
|
-
input.CdnConfiguration !== null && {
|
|
1081
|
+
...(input.Bumper != null && { Bumper: serializeAws_restJson1Bumper(input.Bumper, context) }),
|
|
1082
|
+
...(input.CdnConfiguration != null && {
|
|
1107
1083
|
CdnConfiguration: serializeAws_restJson1CdnConfiguration(input.CdnConfiguration, context),
|
|
1108
1084
|
}),
|
|
1109
|
-
...(input.ConfigurationAliases
|
|
1110
|
-
input.ConfigurationAliases !== null && {
|
|
1085
|
+
...(input.ConfigurationAliases != null && {
|
|
1111
1086
|
ConfigurationAliases: serializeAws_restJson1ConfigurationAliasesRequest(input.ConfigurationAliases, context),
|
|
1112
1087
|
}),
|
|
1113
|
-
...(input.DashConfiguration
|
|
1114
|
-
input.DashConfiguration !== null && {
|
|
1088
|
+
...(input.DashConfiguration != null && {
|
|
1115
1089
|
DashConfiguration: serializeAws_restJson1DashConfigurationForPut(input.DashConfiguration, context),
|
|
1116
1090
|
}),
|
|
1117
|
-
...(input.LivePreRollConfiguration
|
|
1118
|
-
input.LivePreRollConfiguration !== null && {
|
|
1091
|
+
...(input.LivePreRollConfiguration != null && {
|
|
1119
1092
|
LivePreRollConfiguration: serializeAws_restJson1LivePreRollConfiguration(input.LivePreRollConfiguration, context),
|
|
1120
1093
|
}),
|
|
1121
|
-
...(input.ManifestProcessingRules
|
|
1122
|
-
input.ManifestProcessingRules !== null && {
|
|
1094
|
+
...(input.ManifestProcessingRules != null && {
|
|
1123
1095
|
ManifestProcessingRules: serializeAws_restJson1ManifestProcessingRules(input.ManifestProcessingRules, context),
|
|
1124
1096
|
}),
|
|
1125
|
-
...(input.Name
|
|
1126
|
-
...(input.PersonalizationThresholdSeconds
|
|
1127
|
-
input.PersonalizationThresholdSeconds !== null && {
|
|
1097
|
+
...(input.Name != null && { Name: input.Name }),
|
|
1098
|
+
...(input.PersonalizationThresholdSeconds != null && {
|
|
1128
1099
|
PersonalizationThresholdSeconds: input.PersonalizationThresholdSeconds,
|
|
1129
1100
|
}),
|
|
1130
|
-
...(input.SlateAdUrl
|
|
1131
|
-
...(input.Tags
|
|
1132
|
-
|
|
1133
|
-
...(input.
|
|
1134
|
-
input.TranscodeProfileName !== null && { TranscodeProfileName: input.TranscodeProfileName }),
|
|
1135
|
-
...(input.VideoContentSourceUrl !== undefined &&
|
|
1136
|
-
input.VideoContentSourceUrl !== null && { VideoContentSourceUrl: input.VideoContentSourceUrl }),
|
|
1101
|
+
...(input.SlateAdUrl != null && { SlateAdUrl: input.SlateAdUrl }),
|
|
1102
|
+
...(input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
|
|
1103
|
+
...(input.TranscodeProfileName != null && { TranscodeProfileName: input.TranscodeProfileName }),
|
|
1104
|
+
...(input.VideoContentSourceUrl != null && { VideoContentSourceUrl: input.VideoContentSourceUrl }),
|
|
1137
1105
|
});
|
|
1138
1106
|
return new protocol_http_1.HttpRequest({
|
|
1139
1107
|
protocol,
|
|
@@ -1216,8 +1184,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1216
1184
|
}
|
|
1217
1185
|
let body;
|
|
1218
1186
|
body = JSON.stringify({
|
|
1219
|
-
...(input.Tags
|
|
1220
|
-
input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
|
|
1187
|
+
...(input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
|
|
1221
1188
|
});
|
|
1222
1189
|
return new protocol_http_1.HttpRequest({
|
|
1223
1190
|
protocol,
|
|
@@ -1278,10 +1245,8 @@ const serializeAws_restJson1UpdateChannelCommand = async (input, context) => {
|
|
|
1278
1245
|
}
|
|
1279
1246
|
let body;
|
|
1280
1247
|
body = JSON.stringify({
|
|
1281
|
-
...(input.FillerSlate
|
|
1282
|
-
|
|
1283
|
-
...(input.Outputs !== undefined &&
|
|
1284
|
-
input.Outputs !== null && { Outputs: serializeAws_restJson1RequestOutputs(input.Outputs, context) }),
|
|
1248
|
+
...(input.FillerSlate != null && { FillerSlate: serializeAws_restJson1SlateSource(input.FillerSlate, context) }),
|
|
1249
|
+
...(input.Outputs != null && { Outputs: serializeAws_restJson1RequestOutputs(input.Outputs, context) }),
|
|
1285
1250
|
});
|
|
1286
1251
|
return new protocol_http_1.HttpRequest({
|
|
1287
1252
|
protocol,
|
|
@@ -1323,8 +1288,7 @@ const serializeAws_restJson1UpdateLiveSourceCommand = async (input, context) =>
|
|
|
1323
1288
|
}
|
|
1324
1289
|
let body;
|
|
1325
1290
|
body = JSON.stringify({
|
|
1326
|
-
...(input.HttpPackageConfigurations
|
|
1327
|
-
input.HttpPackageConfigurations !== null && {
|
|
1291
|
+
...(input.HttpPackageConfigurations != null && {
|
|
1328
1292
|
HttpPackageConfigurations: serializeAws_restJson1HttpPackageConfigurations(input.HttpPackageConfigurations, context),
|
|
1329
1293
|
}),
|
|
1330
1294
|
});
|
|
@@ -1357,20 +1321,16 @@ const serializeAws_restJson1UpdateSourceLocationCommand = async (input, context)
|
|
|
1357
1321
|
}
|
|
1358
1322
|
let body;
|
|
1359
1323
|
body = JSON.stringify({
|
|
1360
|
-
...(input.AccessConfiguration
|
|
1361
|
-
input.AccessConfiguration !== null && {
|
|
1324
|
+
...(input.AccessConfiguration != null && {
|
|
1362
1325
|
AccessConfiguration: serializeAws_restJson1AccessConfiguration(input.AccessConfiguration, context),
|
|
1363
1326
|
}),
|
|
1364
|
-
...(input.DefaultSegmentDeliveryConfiguration
|
|
1365
|
-
input.DefaultSegmentDeliveryConfiguration !== null && {
|
|
1327
|
+
...(input.DefaultSegmentDeliveryConfiguration != null && {
|
|
1366
1328
|
DefaultSegmentDeliveryConfiguration: serializeAws_restJson1DefaultSegmentDeliveryConfiguration(input.DefaultSegmentDeliveryConfiguration, context),
|
|
1367
1329
|
}),
|
|
1368
|
-
...(input.HttpConfiguration
|
|
1369
|
-
input.HttpConfiguration !== null && {
|
|
1330
|
+
...(input.HttpConfiguration != null && {
|
|
1370
1331
|
HttpConfiguration: serializeAws_restJson1HttpConfiguration(input.HttpConfiguration, context),
|
|
1371
1332
|
}),
|
|
1372
|
-
...(input.SegmentDeliveryConfigurations
|
|
1373
|
-
input.SegmentDeliveryConfigurations !== null && {
|
|
1333
|
+
...(input.SegmentDeliveryConfigurations != null && {
|
|
1374
1334
|
SegmentDeliveryConfigurations: serializeAws_restJson1__listOfSegmentDeliveryConfiguration(input.SegmentDeliveryConfigurations, context),
|
|
1375
1335
|
}),
|
|
1376
1336
|
});
|
|
@@ -1414,8 +1374,7 @@ const serializeAws_restJson1UpdateVodSourceCommand = async (input, context) => {
|
|
|
1414
1374
|
}
|
|
1415
1375
|
let body;
|
|
1416
1376
|
body = JSON.stringify({
|
|
1417
|
-
...(input.HttpPackageConfigurations
|
|
1418
|
-
input.HttpPackageConfigurations !== null && {
|
|
1377
|
+
...(input.HttpPackageConfigurations != null && {
|
|
1419
1378
|
HttpPackageConfigurations: serializeAws_restJson1HttpPackageConfigurations(input.HttpPackageConfigurations, context),
|
|
1420
1379
|
}),
|
|
1421
1380
|
});
|
|
@@ -3544,55 +3503,49 @@ const serializeAws_restJson1__mapOf__string = (input, context) => {
|
|
|
3544
3503
|
};
|
|
3545
3504
|
const serializeAws_restJson1AccessConfiguration = (input, context) => {
|
|
3546
3505
|
return {
|
|
3547
|
-
...(input.AccessType
|
|
3548
|
-
...(input.SecretsManagerAccessTokenConfiguration
|
|
3549
|
-
input.SecretsManagerAccessTokenConfiguration !== null && {
|
|
3506
|
+
...(input.AccessType != null && { AccessType: input.AccessType }),
|
|
3507
|
+
...(input.SecretsManagerAccessTokenConfiguration != null && {
|
|
3550
3508
|
SecretsManagerAccessTokenConfiguration: serializeAws_restJson1SecretsManagerAccessTokenConfiguration(input.SecretsManagerAccessTokenConfiguration, context),
|
|
3551
3509
|
}),
|
|
3552
3510
|
};
|
|
3553
3511
|
};
|
|
3554
3512
|
const serializeAws_restJson1AdBreak = (input, context) => {
|
|
3555
3513
|
return {
|
|
3556
|
-
...(input.MessageType
|
|
3557
|
-
...(input.OffsetMillis
|
|
3558
|
-
...(input.Slate
|
|
3559
|
-
|
|
3560
|
-
...(input.SpliceInsertMessage !== undefined &&
|
|
3561
|
-
input.SpliceInsertMessage !== null && {
|
|
3514
|
+
...(input.MessageType != null && { MessageType: input.MessageType }),
|
|
3515
|
+
...(input.OffsetMillis != null && { OffsetMillis: input.OffsetMillis }),
|
|
3516
|
+
...(input.Slate != null && { Slate: serializeAws_restJson1SlateSource(input.Slate, context) }),
|
|
3517
|
+
...(input.SpliceInsertMessage != null && {
|
|
3562
3518
|
SpliceInsertMessage: serializeAws_restJson1SpliceInsertMessage(input.SpliceInsertMessage, context),
|
|
3563
3519
|
}),
|
|
3564
3520
|
};
|
|
3565
3521
|
};
|
|
3566
3522
|
const serializeAws_restJson1AdMarkerPassthrough = (input, context) => {
|
|
3567
3523
|
return {
|
|
3568
|
-
...(input.Enabled
|
|
3524
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
3569
3525
|
};
|
|
3570
3526
|
};
|
|
3571
3527
|
const serializeAws_restJson1AvailMatchingCriteria = (input, context) => {
|
|
3572
3528
|
return {
|
|
3573
|
-
...(input.DynamicVariable
|
|
3574
|
-
|
|
3575
|
-
...(input.Operator !== undefined && input.Operator !== null && { Operator: input.Operator }),
|
|
3529
|
+
...(input.DynamicVariable != null && { DynamicVariable: input.DynamicVariable }),
|
|
3530
|
+
...(input.Operator != null && { Operator: input.Operator }),
|
|
3576
3531
|
};
|
|
3577
3532
|
};
|
|
3578
3533
|
const serializeAws_restJson1AvailSuppression = (input, context) => {
|
|
3579
3534
|
return {
|
|
3580
|
-
...(input.Mode
|
|
3581
|
-
...(input.Value
|
|
3535
|
+
...(input.Mode != null && { Mode: input.Mode }),
|
|
3536
|
+
...(input.Value != null && { Value: input.Value }),
|
|
3582
3537
|
};
|
|
3583
3538
|
};
|
|
3584
3539
|
const serializeAws_restJson1Bumper = (input, context) => {
|
|
3585
3540
|
return {
|
|
3586
|
-
...(input.EndUrl
|
|
3587
|
-
...(input.StartUrl
|
|
3541
|
+
...(input.EndUrl != null && { EndUrl: input.EndUrl }),
|
|
3542
|
+
...(input.StartUrl != null && { StartUrl: input.StartUrl }),
|
|
3588
3543
|
};
|
|
3589
3544
|
};
|
|
3590
3545
|
const serializeAws_restJson1CdnConfiguration = (input, context) => {
|
|
3591
3546
|
return {
|
|
3592
|
-
...(input.AdSegmentUrlPrefix
|
|
3593
|
-
|
|
3594
|
-
...(input.ContentSegmentUrlPrefix !== undefined &&
|
|
3595
|
-
input.ContentSegmentUrlPrefix !== null && { ContentSegmentUrlPrefix: input.ContentSegmentUrlPrefix }),
|
|
3547
|
+
...(input.AdSegmentUrlPrefix != null && { AdSegmentUrlPrefix: input.AdSegmentUrlPrefix }),
|
|
3548
|
+
...(input.ContentSegmentUrlPrefix != null && { ContentSegmentUrlPrefix: input.ContentSegmentUrlPrefix }),
|
|
3596
3549
|
};
|
|
3597
3550
|
};
|
|
3598
3551
|
const serializeAws_restJson1ConfigurationAliasesRequest = (input, context) => {
|
|
@@ -3608,46 +3561,40 @@ const serializeAws_restJson1ConfigurationAliasesRequest = (input, context) => {
|
|
|
3608
3561
|
};
|
|
3609
3562
|
const serializeAws_restJson1DashConfigurationForPut = (input, context) => {
|
|
3610
3563
|
return {
|
|
3611
|
-
...(input.MpdLocation
|
|
3612
|
-
...(input.OriginManifestType
|
|
3613
|
-
input.OriginManifestType !== null && { OriginManifestType: input.OriginManifestType }),
|
|
3564
|
+
...(input.MpdLocation != null && { MpdLocation: input.MpdLocation }),
|
|
3565
|
+
...(input.OriginManifestType != null && { OriginManifestType: input.OriginManifestType }),
|
|
3614
3566
|
};
|
|
3615
3567
|
};
|
|
3616
3568
|
const serializeAws_restJson1DashPlaylistSettings = (input, context) => {
|
|
3617
3569
|
return {
|
|
3618
|
-
...(input.ManifestWindowSeconds
|
|
3619
|
-
|
|
3620
|
-
...(input.
|
|
3621
|
-
|
|
3622
|
-
...(input.MinUpdatePeriodSeconds !== undefined &&
|
|
3623
|
-
input.MinUpdatePeriodSeconds !== null && { MinUpdatePeriodSeconds: input.MinUpdatePeriodSeconds }),
|
|
3624
|
-
...(input.SuggestedPresentationDelaySeconds !== undefined &&
|
|
3625
|
-
input.SuggestedPresentationDelaySeconds !== null && {
|
|
3570
|
+
...(input.ManifestWindowSeconds != null && { ManifestWindowSeconds: input.ManifestWindowSeconds }),
|
|
3571
|
+
...(input.MinBufferTimeSeconds != null && { MinBufferTimeSeconds: input.MinBufferTimeSeconds }),
|
|
3572
|
+
...(input.MinUpdatePeriodSeconds != null && { MinUpdatePeriodSeconds: input.MinUpdatePeriodSeconds }),
|
|
3573
|
+
...(input.SuggestedPresentationDelaySeconds != null && {
|
|
3626
3574
|
SuggestedPresentationDelaySeconds: input.SuggestedPresentationDelaySeconds,
|
|
3627
3575
|
}),
|
|
3628
3576
|
};
|
|
3629
3577
|
};
|
|
3630
3578
|
const serializeAws_restJson1DefaultSegmentDeliveryConfiguration = (input, context) => {
|
|
3631
3579
|
return {
|
|
3632
|
-
...(input.BaseUrl
|
|
3580
|
+
...(input.BaseUrl != null && { BaseUrl: input.BaseUrl }),
|
|
3633
3581
|
};
|
|
3634
3582
|
};
|
|
3635
3583
|
const serializeAws_restJson1HlsPlaylistSettings = (input, context) => {
|
|
3636
3584
|
return {
|
|
3637
|
-
...(input.ManifestWindowSeconds
|
|
3638
|
-
input.ManifestWindowSeconds !== null && { ManifestWindowSeconds: input.ManifestWindowSeconds }),
|
|
3585
|
+
...(input.ManifestWindowSeconds != null && { ManifestWindowSeconds: input.ManifestWindowSeconds }),
|
|
3639
3586
|
};
|
|
3640
3587
|
};
|
|
3641
3588
|
const serializeAws_restJson1HttpConfiguration = (input, context) => {
|
|
3642
3589
|
return {
|
|
3643
|
-
...(input.BaseUrl
|
|
3590
|
+
...(input.BaseUrl != null && { BaseUrl: input.BaseUrl }),
|
|
3644
3591
|
};
|
|
3645
3592
|
};
|
|
3646
3593
|
const serializeAws_restJson1HttpPackageConfiguration = (input, context) => {
|
|
3647
3594
|
return {
|
|
3648
|
-
...(input.Path
|
|
3649
|
-
...(input.SourceGroup
|
|
3650
|
-
...(input.Type
|
|
3595
|
+
...(input.Path != null && { Path: input.Path }),
|
|
3596
|
+
...(input.SourceGroup != null && { SourceGroup: input.SourceGroup }),
|
|
3597
|
+
...(input.Type != null && { Type: input.Type }),
|
|
3651
3598
|
};
|
|
3652
3599
|
};
|
|
3653
3600
|
const serializeAws_restJson1HttpPackageConfigurations = (input, context) => {
|
|
@@ -3662,56 +3609,45 @@ const serializeAws_restJson1HttpPackageConfigurations = (input, context) => {
|
|
|
3662
3609
|
};
|
|
3663
3610
|
const serializeAws_restJson1LivePreRollConfiguration = (input, context) => {
|
|
3664
3611
|
return {
|
|
3665
|
-
...(input.AdDecisionServerUrl
|
|
3666
|
-
|
|
3667
|
-
...(input.MaxDurationSeconds !== undefined &&
|
|
3668
|
-
input.MaxDurationSeconds !== null && { MaxDurationSeconds: input.MaxDurationSeconds }),
|
|
3612
|
+
...(input.AdDecisionServerUrl != null && { AdDecisionServerUrl: input.AdDecisionServerUrl }),
|
|
3613
|
+
...(input.MaxDurationSeconds != null && { MaxDurationSeconds: input.MaxDurationSeconds }),
|
|
3669
3614
|
};
|
|
3670
3615
|
};
|
|
3671
3616
|
const serializeAws_restJson1ManifestProcessingRules = (input, context) => {
|
|
3672
3617
|
return {
|
|
3673
|
-
...(input.AdMarkerPassthrough
|
|
3674
|
-
input.AdMarkerPassthrough !== null && {
|
|
3618
|
+
...(input.AdMarkerPassthrough != null && {
|
|
3675
3619
|
AdMarkerPassthrough: serializeAws_restJson1AdMarkerPassthrough(input.AdMarkerPassthrough, context),
|
|
3676
3620
|
}),
|
|
3677
3621
|
};
|
|
3678
3622
|
};
|
|
3679
3623
|
const serializeAws_restJson1PrefetchConsumption = (input, context) => {
|
|
3680
3624
|
return {
|
|
3681
|
-
...(input.AvailMatchingCriteria
|
|
3682
|
-
input.AvailMatchingCriteria !== null && {
|
|
3625
|
+
...(input.AvailMatchingCriteria != null && {
|
|
3683
3626
|
AvailMatchingCriteria: serializeAws_restJson1__listOfAvailMatchingCriteria(input.AvailMatchingCriteria, context),
|
|
3684
3627
|
}),
|
|
3685
|
-
...(input.EndTime
|
|
3686
|
-
|
|
3687
|
-
...(input.StartTime !== undefined &&
|
|
3688
|
-
input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
3628
|
+
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
3629
|
+
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
3689
3630
|
};
|
|
3690
3631
|
};
|
|
3691
3632
|
const serializeAws_restJson1PrefetchRetrieval = (input, context) => {
|
|
3692
3633
|
return {
|
|
3693
|
-
...(input.DynamicVariables
|
|
3694
|
-
input.DynamicVariables !== null && {
|
|
3634
|
+
...(input.DynamicVariables != null && {
|
|
3695
3635
|
DynamicVariables: serializeAws_restJson1__mapOf__string(input.DynamicVariables, context),
|
|
3696
3636
|
}),
|
|
3697
|
-
...(input.EndTime
|
|
3698
|
-
|
|
3699
|
-
...(input.StartTime !== undefined &&
|
|
3700
|
-
input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
3637
|
+
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
3638
|
+
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
3701
3639
|
};
|
|
3702
3640
|
};
|
|
3703
3641
|
const serializeAws_restJson1RequestOutputItem = (input, context) => {
|
|
3704
3642
|
return {
|
|
3705
|
-
...(input.DashPlaylistSettings
|
|
3706
|
-
input.DashPlaylistSettings !== null && {
|
|
3643
|
+
...(input.DashPlaylistSettings != null && {
|
|
3707
3644
|
DashPlaylistSettings: serializeAws_restJson1DashPlaylistSettings(input.DashPlaylistSettings, context),
|
|
3708
3645
|
}),
|
|
3709
|
-
...(input.HlsPlaylistSettings
|
|
3710
|
-
input.HlsPlaylistSettings !== null && {
|
|
3646
|
+
...(input.HlsPlaylistSettings != null && {
|
|
3711
3647
|
HlsPlaylistSettings: serializeAws_restJson1HlsPlaylistSettings(input.HlsPlaylistSettings, context),
|
|
3712
3648
|
}),
|
|
3713
|
-
...(input.ManifestName
|
|
3714
|
-
...(input.SourceGroup
|
|
3649
|
+
...(input.ManifestName != null && { ManifestName: input.ManifestName }),
|
|
3650
|
+
...(input.SourceGroup != null && { SourceGroup: input.SourceGroup }),
|
|
3715
3651
|
};
|
|
3716
3652
|
};
|
|
3717
3653
|
const serializeAws_restJson1RequestOutputs = (input, context) => {
|
|
@@ -3726,52 +3662,43 @@ const serializeAws_restJson1RequestOutputs = (input, context) => {
|
|
|
3726
3662
|
};
|
|
3727
3663
|
const serializeAws_restJson1ScheduleConfiguration = (input, context) => {
|
|
3728
3664
|
return {
|
|
3729
|
-
...(input.Transition
|
|
3730
|
-
input.Transition !== null && { Transition: serializeAws_restJson1Transition(input.Transition, context) }),
|
|
3665
|
+
...(input.Transition != null && { Transition: serializeAws_restJson1Transition(input.Transition, context) }),
|
|
3731
3666
|
};
|
|
3732
3667
|
};
|
|
3733
3668
|
const serializeAws_restJson1SecretsManagerAccessTokenConfiguration = (input, context) => {
|
|
3734
3669
|
return {
|
|
3735
|
-
...(input.HeaderName
|
|
3736
|
-
...(input.SecretArn
|
|
3737
|
-
...(input.SecretStringKey
|
|
3738
|
-
input.SecretStringKey !== null && { SecretStringKey: input.SecretStringKey }),
|
|
3670
|
+
...(input.HeaderName != null && { HeaderName: input.HeaderName }),
|
|
3671
|
+
...(input.SecretArn != null && { SecretArn: input.SecretArn }),
|
|
3672
|
+
...(input.SecretStringKey != null && { SecretStringKey: input.SecretStringKey }),
|
|
3739
3673
|
};
|
|
3740
3674
|
};
|
|
3741
3675
|
const serializeAws_restJson1SegmentDeliveryConfiguration = (input, context) => {
|
|
3742
3676
|
return {
|
|
3743
|
-
...(input.BaseUrl
|
|
3744
|
-
...(input.Name
|
|
3677
|
+
...(input.BaseUrl != null && { BaseUrl: input.BaseUrl }),
|
|
3678
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3745
3679
|
};
|
|
3746
3680
|
};
|
|
3747
3681
|
const serializeAws_restJson1SlateSource = (input, context) => {
|
|
3748
3682
|
return {
|
|
3749
|
-
...(input.SourceLocationName
|
|
3750
|
-
|
|
3751
|
-
...(input.VodSourceName !== undefined && input.VodSourceName !== null && { VodSourceName: input.VodSourceName }),
|
|
3683
|
+
...(input.SourceLocationName != null && { SourceLocationName: input.SourceLocationName }),
|
|
3684
|
+
...(input.VodSourceName != null && { VodSourceName: input.VodSourceName }),
|
|
3752
3685
|
};
|
|
3753
3686
|
};
|
|
3754
3687
|
const serializeAws_restJson1SpliceInsertMessage = (input, context) => {
|
|
3755
3688
|
return {
|
|
3756
|
-
...(input.AvailNum
|
|
3757
|
-
...(input.AvailsExpected
|
|
3758
|
-
|
|
3759
|
-
...(input.
|
|
3760
|
-
...(input.UniqueProgramId !== undefined &&
|
|
3761
|
-
input.UniqueProgramId !== null && { UniqueProgramId: input.UniqueProgramId }),
|
|
3689
|
+
...(input.AvailNum != null && { AvailNum: input.AvailNum }),
|
|
3690
|
+
...(input.AvailsExpected != null && { AvailsExpected: input.AvailsExpected }),
|
|
3691
|
+
...(input.SpliceEventId != null && { SpliceEventId: input.SpliceEventId }),
|
|
3692
|
+
...(input.UniqueProgramId != null && { UniqueProgramId: input.UniqueProgramId }),
|
|
3762
3693
|
};
|
|
3763
3694
|
};
|
|
3764
3695
|
const serializeAws_restJson1Transition = (input, context) => {
|
|
3765
3696
|
return {
|
|
3766
|
-
...(input.DurationMillis
|
|
3767
|
-
|
|
3768
|
-
...(input.
|
|
3769
|
-
|
|
3770
|
-
...(input.
|
|
3771
|
-
input.RelativeProgram !== null && { RelativeProgram: input.RelativeProgram }),
|
|
3772
|
-
...(input.ScheduledStartTimeMillis !== undefined &&
|
|
3773
|
-
input.ScheduledStartTimeMillis !== null && { ScheduledStartTimeMillis: input.ScheduledStartTimeMillis }),
|
|
3774
|
-
...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
|
|
3697
|
+
...(input.DurationMillis != null && { DurationMillis: input.DurationMillis }),
|
|
3698
|
+
...(input.RelativePosition != null && { RelativePosition: input.RelativePosition }),
|
|
3699
|
+
...(input.RelativeProgram != null && { RelativeProgram: input.RelativeProgram }),
|
|
3700
|
+
...(input.ScheduledStartTimeMillis != null && { ScheduledStartTimeMillis: input.ScheduledStartTimeMillis }),
|
|
3701
|
+
...(input.Type != null && { Type: input.Type }),
|
|
3775
3702
|
};
|
|
3776
3703
|
};
|
|
3777
3704
|
const deserializeAws_restJson1__listOf__string = (output, context) => {
|
|
@@ -3931,8 +3858,7 @@ const deserializeAws_restJson1__mapOf__string = (output, context) => {
|
|
|
3931
3858
|
const deserializeAws_restJson1AccessConfiguration = (output, context) => {
|
|
3932
3859
|
return {
|
|
3933
3860
|
AccessType: (0, smithy_client_1.expectString)(output.AccessType),
|
|
3934
|
-
SecretsManagerAccessTokenConfiguration: output.SecretsManagerAccessTokenConfiguration
|
|
3935
|
-
output.SecretsManagerAccessTokenConfiguration !== null
|
|
3861
|
+
SecretsManagerAccessTokenConfiguration: output.SecretsManagerAccessTokenConfiguration != null
|
|
3936
3862
|
? deserializeAws_restJson1SecretsManagerAccessTokenConfiguration(output.SecretsManagerAccessTokenConfiguration, context)
|
|
3937
3863
|
: undefined,
|
|
3938
3864
|
};
|
|
@@ -3941,10 +3867,8 @@ const deserializeAws_restJson1AdBreak = (output, context) => {
|
|
|
3941
3867
|
return {
|
|
3942
3868
|
MessageType: (0, smithy_client_1.expectString)(output.MessageType),
|
|
3943
3869
|
OffsetMillis: (0, smithy_client_1.expectLong)(output.OffsetMillis),
|
|
3944
|
-
Slate: output.Slate
|
|
3945
|
-
|
|
3946
|
-
: undefined,
|
|
3947
|
-
SpliceInsertMessage: output.SpliceInsertMessage !== undefined && output.SpliceInsertMessage !== null
|
|
3870
|
+
Slate: output.Slate != null ? deserializeAws_restJson1SlateSource(output.Slate, context) : undefined,
|
|
3871
|
+
SpliceInsertMessage: output.SpliceInsertMessage != null
|
|
3948
3872
|
? deserializeAws_restJson1SpliceInsertMessage(output.SpliceInsertMessage, context)
|
|
3949
3873
|
: undefined,
|
|
3950
3874
|
};
|
|
@@ -3958,10 +3882,10 @@ const deserializeAws_restJson1Alert = (output, context) => {
|
|
|
3958
3882
|
return {
|
|
3959
3883
|
AlertCode: (0, smithy_client_1.expectString)(output.AlertCode),
|
|
3960
3884
|
AlertMessage: (0, smithy_client_1.expectString)(output.AlertMessage),
|
|
3961
|
-
LastModifiedTime: output.LastModifiedTime
|
|
3885
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
3962
3886
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
3963
3887
|
: undefined,
|
|
3964
|
-
RelatedResourceArns: output.RelatedResourceArns
|
|
3888
|
+
RelatedResourceArns: output.RelatedResourceArns != null
|
|
3965
3889
|
? deserializeAws_restJson1__listOf__string(output.RelatedResourceArns, context)
|
|
3966
3890
|
: undefined,
|
|
3967
3891
|
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
@@ -3996,22 +3920,16 @@ const deserializeAws_restJson1Channel = (output, context) => {
|
|
|
3996
3920
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
3997
3921
|
ChannelName: (0, smithy_client_1.expectString)(output.ChannelName),
|
|
3998
3922
|
ChannelState: (0, smithy_client_1.expectString)(output.ChannelState),
|
|
3999
|
-
CreationTime: output.CreationTime
|
|
3923
|
+
CreationTime: output.CreationTime != null
|
|
4000
3924
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
4001
3925
|
: undefined,
|
|
4002
|
-
FillerSlate: output.FillerSlate
|
|
4003
|
-
|
|
4004
|
-
: undefined,
|
|
4005
|
-
LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
|
|
3926
|
+
FillerSlate: output.FillerSlate != null ? deserializeAws_restJson1SlateSource(output.FillerSlate, context) : undefined,
|
|
3927
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
4006
3928
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
4007
3929
|
: undefined,
|
|
4008
|
-
Outputs: output.Outputs
|
|
4009
|
-
? deserializeAws_restJson1ResponseOutputs(output.Outputs, context)
|
|
4010
|
-
: undefined,
|
|
3930
|
+
Outputs: output.Outputs != null ? deserializeAws_restJson1ResponseOutputs(output.Outputs, context) : undefined,
|
|
4011
3931
|
PlaybackMode: (0, smithy_client_1.expectString)(output.PlaybackMode),
|
|
4012
|
-
Tags: output.tags
|
|
4013
|
-
? deserializeAws_restJson1__mapOf__string(output.tags, context)
|
|
4014
|
-
: undefined,
|
|
3932
|
+
Tags: output.tags != null ? deserializeAws_restJson1__mapOf__string(output.tags, context) : undefined,
|
|
4015
3933
|
Tier: (0, smithy_client_1.expectString)(output.Tier),
|
|
4016
3934
|
};
|
|
4017
3935
|
};
|
|
@@ -4088,20 +4006,18 @@ const deserializeAws_restJson1LivePreRollConfiguration = (output, context) => {
|
|
|
4088
4006
|
const deserializeAws_restJson1LiveSource = (output, context) => {
|
|
4089
4007
|
return {
|
|
4090
4008
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4091
|
-
CreationTime: output.CreationTime
|
|
4009
|
+
CreationTime: output.CreationTime != null
|
|
4092
4010
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
4093
4011
|
: undefined,
|
|
4094
|
-
HttpPackageConfigurations: output.HttpPackageConfigurations
|
|
4012
|
+
HttpPackageConfigurations: output.HttpPackageConfigurations != null
|
|
4095
4013
|
? deserializeAws_restJson1HttpPackageConfigurations(output.HttpPackageConfigurations, context)
|
|
4096
4014
|
: undefined,
|
|
4097
|
-
LastModifiedTime: output.LastModifiedTime
|
|
4015
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
4098
4016
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
4099
4017
|
: undefined,
|
|
4100
4018
|
LiveSourceName: (0, smithy_client_1.expectString)(output.LiveSourceName),
|
|
4101
4019
|
SourceLocationName: (0, smithy_client_1.expectString)(output.SourceLocationName),
|
|
4102
|
-
Tags: output.tags
|
|
4103
|
-
? deserializeAws_restJson1__mapOf__string(output.tags, context)
|
|
4104
|
-
: undefined,
|
|
4020
|
+
Tags: output.tags != null ? deserializeAws_restJson1__mapOf__string(output.tags, context) : undefined,
|
|
4105
4021
|
};
|
|
4106
4022
|
};
|
|
4107
4023
|
const deserializeAws_restJson1LogConfiguration = (output, context) => {
|
|
@@ -4111,7 +4027,7 @@ const deserializeAws_restJson1LogConfiguration = (output, context) => {
|
|
|
4111
4027
|
};
|
|
4112
4028
|
const deserializeAws_restJson1ManifestProcessingRules = (output, context) => {
|
|
4113
4029
|
return {
|
|
4114
|
-
AdMarkerPassthrough: output.AdMarkerPassthrough
|
|
4030
|
+
AdMarkerPassthrough: output.AdMarkerPassthrough != null
|
|
4115
4031
|
? deserializeAws_restJson1AdMarkerPassthrough(output.AdMarkerPassthrough, context)
|
|
4116
4032
|
: undefined,
|
|
4117
4033
|
};
|
|
@@ -4119,31 +4035,29 @@ const deserializeAws_restJson1ManifestProcessingRules = (output, context) => {
|
|
|
4119
4035
|
const deserializeAws_restJson1PlaybackConfiguration = (output, context) => {
|
|
4120
4036
|
return {
|
|
4121
4037
|
AdDecisionServerUrl: (0, smithy_client_1.expectString)(output.AdDecisionServerUrl),
|
|
4122
|
-
AvailSuppression: output.AvailSuppression
|
|
4038
|
+
AvailSuppression: output.AvailSuppression != null
|
|
4123
4039
|
? deserializeAws_restJson1AvailSuppression(output.AvailSuppression, context)
|
|
4124
4040
|
: undefined,
|
|
4125
|
-
Bumper: output.Bumper
|
|
4126
|
-
|
|
4127
|
-
: undefined,
|
|
4128
|
-
CdnConfiguration: output.CdnConfiguration !== undefined && output.CdnConfiguration !== null
|
|
4041
|
+
Bumper: output.Bumper != null ? deserializeAws_restJson1Bumper(output.Bumper, context) : undefined,
|
|
4042
|
+
CdnConfiguration: output.CdnConfiguration != null
|
|
4129
4043
|
? deserializeAws_restJson1CdnConfiguration(output.CdnConfiguration, context)
|
|
4130
4044
|
: undefined,
|
|
4131
|
-
ConfigurationAliases: output.ConfigurationAliases
|
|
4045
|
+
ConfigurationAliases: output.ConfigurationAliases != null
|
|
4132
4046
|
? deserializeAws_restJson1ConfigurationAliasesResponse(output.ConfigurationAliases, context)
|
|
4133
4047
|
: undefined,
|
|
4134
|
-
DashConfiguration: output.DashConfiguration
|
|
4048
|
+
DashConfiguration: output.DashConfiguration != null
|
|
4135
4049
|
? deserializeAws_restJson1DashConfiguration(output.DashConfiguration, context)
|
|
4136
4050
|
: undefined,
|
|
4137
|
-
HlsConfiguration: output.HlsConfiguration
|
|
4051
|
+
HlsConfiguration: output.HlsConfiguration != null
|
|
4138
4052
|
? deserializeAws_restJson1HlsConfiguration(output.HlsConfiguration, context)
|
|
4139
4053
|
: undefined,
|
|
4140
|
-
LivePreRollConfiguration: output.LivePreRollConfiguration
|
|
4054
|
+
LivePreRollConfiguration: output.LivePreRollConfiguration != null
|
|
4141
4055
|
? deserializeAws_restJson1LivePreRollConfiguration(output.LivePreRollConfiguration, context)
|
|
4142
4056
|
: undefined,
|
|
4143
|
-
LogConfiguration: output.LogConfiguration
|
|
4057
|
+
LogConfiguration: output.LogConfiguration != null
|
|
4144
4058
|
? deserializeAws_restJson1LogConfiguration(output.LogConfiguration, context)
|
|
4145
4059
|
: undefined,
|
|
4146
|
-
ManifestProcessingRules: output.ManifestProcessingRules
|
|
4060
|
+
ManifestProcessingRules: output.ManifestProcessingRules != null
|
|
4147
4061
|
? deserializeAws_restJson1ManifestProcessingRules(output.ManifestProcessingRules, context)
|
|
4148
4062
|
: undefined,
|
|
4149
4063
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
@@ -4152,59 +4066,45 @@ const deserializeAws_restJson1PlaybackConfiguration = (output, context) => {
|
|
|
4152
4066
|
PlaybackEndpointPrefix: (0, smithy_client_1.expectString)(output.PlaybackEndpointPrefix),
|
|
4153
4067
|
SessionInitializationEndpointPrefix: (0, smithy_client_1.expectString)(output.SessionInitializationEndpointPrefix),
|
|
4154
4068
|
SlateAdUrl: (0, smithy_client_1.expectString)(output.SlateAdUrl),
|
|
4155
|
-
Tags: output.tags
|
|
4156
|
-
? deserializeAws_restJson1__mapOf__string(output.tags, context)
|
|
4157
|
-
: undefined,
|
|
4069
|
+
Tags: output.tags != null ? deserializeAws_restJson1__mapOf__string(output.tags, context) : undefined,
|
|
4158
4070
|
TranscodeProfileName: (0, smithy_client_1.expectString)(output.TranscodeProfileName),
|
|
4159
4071
|
VideoContentSourceUrl: (0, smithy_client_1.expectString)(output.VideoContentSourceUrl),
|
|
4160
4072
|
};
|
|
4161
4073
|
};
|
|
4162
4074
|
const deserializeAws_restJson1PrefetchConsumption = (output, context) => {
|
|
4163
4075
|
return {
|
|
4164
|
-
AvailMatchingCriteria: output.AvailMatchingCriteria
|
|
4076
|
+
AvailMatchingCriteria: output.AvailMatchingCriteria != null
|
|
4165
4077
|
? deserializeAws_restJson1__listOfAvailMatchingCriteria(output.AvailMatchingCriteria, context)
|
|
4166
4078
|
: undefined,
|
|
4167
|
-
EndTime: output.EndTime
|
|
4168
|
-
|
|
4169
|
-
: undefined,
|
|
4170
|
-
StartTime: output.StartTime !== undefined && output.StartTime !== null
|
|
4171
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
|
|
4172
|
-
: undefined,
|
|
4079
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
4080
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
4173
4081
|
};
|
|
4174
4082
|
};
|
|
4175
4083
|
const deserializeAws_restJson1PrefetchRetrieval = (output, context) => {
|
|
4176
4084
|
return {
|
|
4177
|
-
DynamicVariables: output.DynamicVariables
|
|
4085
|
+
DynamicVariables: output.DynamicVariables != null
|
|
4178
4086
|
? deserializeAws_restJson1__mapOf__string(output.DynamicVariables, context)
|
|
4179
4087
|
: undefined,
|
|
4180
|
-
EndTime: output.EndTime
|
|
4181
|
-
|
|
4182
|
-
: undefined,
|
|
4183
|
-
StartTime: output.StartTime !== undefined && output.StartTime !== null
|
|
4184
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
|
|
4185
|
-
: undefined,
|
|
4088
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
4089
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
4186
4090
|
};
|
|
4187
4091
|
};
|
|
4188
4092
|
const deserializeAws_restJson1PrefetchSchedule = (output, context) => {
|
|
4189
4093
|
return {
|
|
4190
4094
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4191
|
-
Consumption: output.Consumption
|
|
4192
|
-
? deserializeAws_restJson1PrefetchConsumption(output.Consumption, context)
|
|
4193
|
-
: undefined,
|
|
4095
|
+
Consumption: output.Consumption != null ? deserializeAws_restJson1PrefetchConsumption(output.Consumption, context) : undefined,
|
|
4194
4096
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4195
4097
|
PlaybackConfigurationName: (0, smithy_client_1.expectString)(output.PlaybackConfigurationName),
|
|
4196
|
-
Retrieval: output.Retrieval
|
|
4197
|
-
? deserializeAws_restJson1PrefetchRetrieval(output.Retrieval, context)
|
|
4198
|
-
: undefined,
|
|
4098
|
+
Retrieval: output.Retrieval != null ? deserializeAws_restJson1PrefetchRetrieval(output.Retrieval, context) : undefined,
|
|
4199
4099
|
StreamId: (0, smithy_client_1.expectString)(output.StreamId),
|
|
4200
4100
|
};
|
|
4201
4101
|
};
|
|
4202
4102
|
const deserializeAws_restJson1ResponseOutputItem = (output, context) => {
|
|
4203
4103
|
return {
|
|
4204
|
-
DashPlaylistSettings: output.DashPlaylistSettings
|
|
4104
|
+
DashPlaylistSettings: output.DashPlaylistSettings != null
|
|
4205
4105
|
? deserializeAws_restJson1DashPlaylistSettings(output.DashPlaylistSettings, context)
|
|
4206
4106
|
: undefined,
|
|
4207
|
-
HlsPlaylistSettings: output.HlsPlaylistSettings
|
|
4107
|
+
HlsPlaylistSettings: output.HlsPlaylistSettings != null
|
|
4208
4108
|
? deserializeAws_restJson1HlsPlaylistSettings(output.HlsPlaylistSettings, context)
|
|
4209
4109
|
: undefined,
|
|
4210
4110
|
ManifestName: (0, smithy_client_1.expectString)(output.ManifestName),
|
|
@@ -4226,7 +4126,7 @@ const deserializeAws_restJson1ResponseOutputs = (output, context) => {
|
|
|
4226
4126
|
const deserializeAws_restJson1ScheduleAdBreak = (output, context) => {
|
|
4227
4127
|
return {
|
|
4228
4128
|
ApproximateDurationSeconds: (0, smithy_client_1.expectLong)(output.ApproximateDurationSeconds),
|
|
4229
|
-
ApproximateStartTime: output.ApproximateStartTime
|
|
4129
|
+
ApproximateStartTime: output.ApproximateStartTime != null
|
|
4230
4130
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ApproximateStartTime)))
|
|
4231
4131
|
: undefined,
|
|
4232
4132
|
SourceLocationName: (0, smithy_client_1.expectString)(output.SourceLocationName),
|
|
@@ -4236,14 +4136,14 @@ const deserializeAws_restJson1ScheduleAdBreak = (output, context) => {
|
|
|
4236
4136
|
const deserializeAws_restJson1ScheduleEntry = (output, context) => {
|
|
4237
4137
|
return {
|
|
4238
4138
|
ApproximateDurationSeconds: (0, smithy_client_1.expectLong)(output.ApproximateDurationSeconds),
|
|
4239
|
-
ApproximateStartTime: output.ApproximateStartTime
|
|
4139
|
+
ApproximateStartTime: output.ApproximateStartTime != null
|
|
4240
4140
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ApproximateStartTime)))
|
|
4241
4141
|
: undefined,
|
|
4242
4142
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4243
4143
|
ChannelName: (0, smithy_client_1.expectString)(output.ChannelName),
|
|
4244
4144
|
LiveSourceName: (0, smithy_client_1.expectString)(output.LiveSourceName),
|
|
4245
4145
|
ProgramName: (0, smithy_client_1.expectString)(output.ProgramName),
|
|
4246
|
-
ScheduleAdBreaks: output.ScheduleAdBreaks
|
|
4146
|
+
ScheduleAdBreaks: output.ScheduleAdBreaks != null
|
|
4247
4147
|
? deserializeAws_restJson1__listOfScheduleAdBreak(output.ScheduleAdBreaks, context)
|
|
4248
4148
|
: undefined,
|
|
4249
4149
|
ScheduleEntryType: (0, smithy_client_1.expectString)(output.ScheduleEntryType),
|
|
@@ -4272,29 +4172,27 @@ const deserializeAws_restJson1SlateSource = (output, context) => {
|
|
|
4272
4172
|
};
|
|
4273
4173
|
const deserializeAws_restJson1SourceLocation = (output, context) => {
|
|
4274
4174
|
return {
|
|
4275
|
-
AccessConfiguration: output.AccessConfiguration
|
|
4175
|
+
AccessConfiguration: output.AccessConfiguration != null
|
|
4276
4176
|
? deserializeAws_restJson1AccessConfiguration(output.AccessConfiguration, context)
|
|
4277
4177
|
: undefined,
|
|
4278
4178
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4279
|
-
CreationTime: output.CreationTime
|
|
4179
|
+
CreationTime: output.CreationTime != null
|
|
4280
4180
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
4281
4181
|
: undefined,
|
|
4282
|
-
DefaultSegmentDeliveryConfiguration: output.DefaultSegmentDeliveryConfiguration
|
|
4182
|
+
DefaultSegmentDeliveryConfiguration: output.DefaultSegmentDeliveryConfiguration != null
|
|
4283
4183
|
? deserializeAws_restJson1DefaultSegmentDeliveryConfiguration(output.DefaultSegmentDeliveryConfiguration, context)
|
|
4284
4184
|
: undefined,
|
|
4285
|
-
HttpConfiguration: output.HttpConfiguration
|
|
4185
|
+
HttpConfiguration: output.HttpConfiguration != null
|
|
4286
4186
|
? deserializeAws_restJson1HttpConfiguration(output.HttpConfiguration, context)
|
|
4287
4187
|
: undefined,
|
|
4288
|
-
LastModifiedTime: output.LastModifiedTime
|
|
4188
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
4289
4189
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
4290
4190
|
: undefined,
|
|
4291
|
-
SegmentDeliveryConfigurations: output.SegmentDeliveryConfigurations
|
|
4191
|
+
SegmentDeliveryConfigurations: output.SegmentDeliveryConfigurations != null
|
|
4292
4192
|
? deserializeAws_restJson1__listOfSegmentDeliveryConfiguration(output.SegmentDeliveryConfigurations, context)
|
|
4293
4193
|
: undefined,
|
|
4294
4194
|
SourceLocationName: (0, smithy_client_1.expectString)(output.SourceLocationName),
|
|
4295
|
-
Tags: output.tags
|
|
4296
|
-
? deserializeAws_restJson1__mapOf__string(output.tags, context)
|
|
4297
|
-
: undefined,
|
|
4195
|
+
Tags: output.tags != null ? deserializeAws_restJson1__mapOf__string(output.tags, context) : undefined,
|
|
4298
4196
|
};
|
|
4299
4197
|
};
|
|
4300
4198
|
const deserializeAws_restJson1SpliceInsertMessage = (output, context) => {
|
|
@@ -4308,19 +4206,17 @@ const deserializeAws_restJson1SpliceInsertMessage = (output, context) => {
|
|
|
4308
4206
|
const deserializeAws_restJson1VodSource = (output, context) => {
|
|
4309
4207
|
return {
|
|
4310
4208
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4311
|
-
CreationTime: output.CreationTime
|
|
4209
|
+
CreationTime: output.CreationTime != null
|
|
4312
4210
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
4313
4211
|
: undefined,
|
|
4314
|
-
HttpPackageConfigurations: output.HttpPackageConfigurations
|
|
4212
|
+
HttpPackageConfigurations: output.HttpPackageConfigurations != null
|
|
4315
4213
|
? deserializeAws_restJson1HttpPackageConfigurations(output.HttpPackageConfigurations, context)
|
|
4316
4214
|
: undefined,
|
|
4317
|
-
LastModifiedTime: output.LastModifiedTime
|
|
4215
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
4318
4216
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
4319
4217
|
: undefined,
|
|
4320
4218
|
SourceLocationName: (0, smithy_client_1.expectString)(output.SourceLocationName),
|
|
4321
|
-
Tags: output.tags
|
|
4322
|
-
? deserializeAws_restJson1__mapOf__string(output.tags, context)
|
|
4323
|
-
: undefined,
|
|
4219
|
+
Tags: output.tags != null ? deserializeAws_restJson1__mapOf__string(output.tags, context) : undefined,
|
|
4324
4220
|
VodSourceName: (0, smithy_client_1.expectString)(output.VodSourceName),
|
|
4325
4221
|
};
|
|
4326
4222
|
};
|