@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.
@@ -14,9 +14,7 @@ export var serializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommand =
14
14
  "content-type": "application/json",
15
15
  };
16
16
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/configureLogs/playbackConfiguration";
17
- body = JSON.stringify(__assign(__assign({}, (input.PercentEnabled !== undefined &&
18
- input.PercentEnabled !== null && { PercentEnabled: input.PercentEnabled })), (input.PlaybackConfigurationName !== undefined &&
19
- input.PlaybackConfigurationName !== null && { PlaybackConfigurationName: input.PlaybackConfigurationName })));
17
+ body = JSON.stringify(__assign(__assign({}, (input.PercentEnabled != null && { PercentEnabled: input.PercentEnabled })), (input.PlaybackConfigurationName != null && { PlaybackConfigurationName: input.PlaybackConfigurationName })));
20
18
  return [2, new __HttpRequest({
21
19
  protocol: protocol,
22
20
  hostname: hostname,
@@ -50,10 +48,7 @@ export var serializeAws_restJson1CreateChannelCommand = function (input, context
50
48
  else {
51
49
  throw new Error("No value provided for input HTTP label: ChannelName.");
52
50
  }
53
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.FillerSlate !== undefined &&
54
- input.FillerSlate !== null && { FillerSlate: serializeAws_restJson1SlateSource(input.FillerSlate, context) })), (input.Outputs !== undefined &&
55
- input.Outputs !== null && { Outputs: serializeAws_restJson1RequestOutputs(input.Outputs, context) })), (input.PlaybackMode !== undefined && input.PlaybackMode !== null && { PlaybackMode: input.PlaybackMode })), (input.Tags !== undefined &&
56
- input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })), (input.Tier !== undefined && input.Tier !== null && { Tier: input.Tier })));
51
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.FillerSlate != null && { FillerSlate: serializeAws_restJson1SlateSource(input.FillerSlate, context) })), (input.Outputs != null && { Outputs: serializeAws_restJson1RequestOutputs(input.Outputs, context) })), (input.PlaybackMode != null && { PlaybackMode: input.PlaybackMode })), (input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })), (input.Tier != null && { Tier: input.Tier })));
57
52
  return [2, new __HttpRequest({
58
53
  protocol: protocol,
59
54
  hostname: hostname,
@@ -98,11 +93,9 @@ export var serializeAws_restJson1CreateLiveSourceCommand = function (input, cont
98
93
  else {
99
94
  throw new Error("No value provided for input HTTP label: SourceLocationName.");
100
95
  }
101
- body = JSON.stringify(__assign(__assign({}, (input.HttpPackageConfigurations !== undefined &&
102
- input.HttpPackageConfigurations !== null && {
96
+ body = JSON.stringify(__assign(__assign({}, (input.HttpPackageConfigurations != null && {
103
97
  HttpPackageConfigurations: serializeAws_restJson1HttpPackageConfigurations(input.HttpPackageConfigurations, context),
104
- })), (input.Tags !== undefined &&
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
  return [2, new __HttpRequest({
107
100
  protocol: protocol,
108
101
  hostname: hostname,
@@ -147,11 +140,9 @@ export var serializeAws_restJson1CreatePrefetchScheduleCommand = function (input
147
140
  else {
148
141
  throw new Error("No value provided for input HTTP label: PlaybackConfigurationName.");
149
142
  }
150
- body = JSON.stringify(__assign(__assign(__assign({}, (input.Consumption !== undefined &&
151
- input.Consumption !== null && {
143
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.Consumption != null && {
152
144
  Consumption: serializeAws_restJson1PrefetchConsumption(input.Consumption, context),
153
- })), (input.Retrieval !== undefined &&
154
- input.Retrieval !== null && { Retrieval: serializeAws_restJson1PrefetchRetrieval(input.Retrieval, context) })), (input.StreamId !== undefined && input.StreamId !== null && { StreamId: input.StreamId })));
145
+ })), (input.Retrieval != null && { Retrieval: serializeAws_restJson1PrefetchRetrieval(input.Retrieval, context) })), (input.StreamId != null && { StreamId: input.StreamId })));
155
146
  return [2, new __HttpRequest({
156
147
  protocol: protocol,
157
148
  hostname: hostname,
@@ -196,13 +187,9 @@ export var serializeAws_restJson1CreateProgramCommand = function (input, context
196
187
  else {
197
188
  throw new Error("No value provided for input HTTP label: ProgramName.");
198
189
  }
199
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AdBreaks !== undefined &&
200
- input.AdBreaks !== null && { AdBreaks: serializeAws_restJson1__listOfAdBreak(input.AdBreaks, context) })), (input.LiveSourceName !== undefined &&
201
- input.LiveSourceName !== null && { LiveSourceName: input.LiveSourceName })), (input.ScheduleConfiguration !== undefined &&
202
- input.ScheduleConfiguration !== null && {
190
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AdBreaks != null && { AdBreaks: serializeAws_restJson1__listOfAdBreak(input.AdBreaks, context) })), (input.LiveSourceName != null && { LiveSourceName: input.LiveSourceName })), (input.ScheduleConfiguration != null && {
203
191
  ScheduleConfiguration: serializeAws_restJson1ScheduleConfiguration(input.ScheduleConfiguration, context),
204
- })), (input.SourceLocationName !== undefined &&
205
- input.SourceLocationName !== null && { SourceLocationName: input.SourceLocationName })), (input.VodSourceName !== undefined && input.VodSourceName !== null && { VodSourceName: input.VodSourceName })));
192
+ })), (input.SourceLocationName != null && { SourceLocationName: input.SourceLocationName })), (input.VodSourceName != null && { VodSourceName: input.VodSourceName })));
206
193
  return [2, new __HttpRequest({
207
194
  protocol: protocol,
208
195
  hostname: hostname,
@@ -236,20 +223,15 @@ export var serializeAws_restJson1CreateSourceLocationCommand = function (input,
236
223
  else {
237
224
  throw new Error("No value provided for input HTTP label: SourceLocationName.");
238
225
  }
239
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AccessConfiguration !== undefined &&
240
- input.AccessConfiguration !== null && {
226
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AccessConfiguration != null && {
241
227
  AccessConfiguration: serializeAws_restJson1AccessConfiguration(input.AccessConfiguration, context),
242
- })), (input.DefaultSegmentDeliveryConfiguration !== undefined &&
243
- input.DefaultSegmentDeliveryConfiguration !== null && {
228
+ })), (input.DefaultSegmentDeliveryConfiguration != null && {
244
229
  DefaultSegmentDeliveryConfiguration: serializeAws_restJson1DefaultSegmentDeliveryConfiguration(input.DefaultSegmentDeliveryConfiguration, context),
245
- })), (input.HttpConfiguration !== undefined &&
246
- input.HttpConfiguration !== null && {
230
+ })), (input.HttpConfiguration != null && {
247
231
  HttpConfiguration: serializeAws_restJson1HttpConfiguration(input.HttpConfiguration, context),
248
- })), (input.SegmentDeliveryConfigurations !== undefined &&
249
- input.SegmentDeliveryConfigurations !== null && {
232
+ })), (input.SegmentDeliveryConfigurations != null && {
250
233
  SegmentDeliveryConfigurations: serializeAws_restJson1__listOfSegmentDeliveryConfiguration(input.SegmentDeliveryConfigurations, context),
251
- })), (input.Tags !== undefined &&
252
- input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
234
+ })), (input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
253
235
  return [2, new __HttpRequest({
254
236
  protocol: protocol,
255
237
  hostname: hostname,
@@ -294,11 +276,9 @@ export var serializeAws_restJson1CreateVodSourceCommand = function (input, conte
294
276
  else {
295
277
  throw new Error("No value provided for input HTTP label: VodSourceName.");
296
278
  }
297
- body = JSON.stringify(__assign(__assign({}, (input.HttpPackageConfigurations !== undefined &&
298
- input.HttpPackageConfigurations !== null && {
279
+ body = JSON.stringify(__assign(__assign({}, (input.HttpPackageConfigurations != null && {
299
280
  HttpPackageConfigurations: serializeAws_restJson1HttpPackageConfigurations(input.HttpPackageConfigurations, context),
300
- })), (input.Tags !== undefined &&
301
- input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
281
+ })), (input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
302
282
  return [2, new __HttpRequest({
303
283
  protocol: protocol,
304
284
  hostname: hostname,
@@ -1053,7 +1033,7 @@ export var serializeAws_restJson1ListPrefetchSchedulesCommand = function (input,
1053
1033
  else {
1054
1034
  throw new Error("No value provided for input HTTP label: PlaybackConfigurationName.");
1055
1035
  }
1056
- body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.StreamId !== undefined && input.StreamId !== null && { StreamId: input.StreamId })));
1036
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.StreamId != null && { StreamId: input.StreamId })));
1057
1037
  return [2, new __HttpRequest({
1058
1038
  protocol: protocol,
1059
1039
  hostname: hostname,
@@ -1175,7 +1155,7 @@ export var serializeAws_restJson1PutChannelPolicyCommand = function (input, cont
1175
1155
  else {
1176
1156
  throw new Error("No value provided for input HTTP label: ChannelName.");
1177
1157
  }
1178
- body = JSON.stringify(__assign({}, (input.Policy !== undefined && input.Policy !== null && { Policy: input.Policy })));
1158
+ body = JSON.stringify(__assign({}, (input.Policy != null && { Policy: input.Policy })));
1179
1159
  return [2, new __HttpRequest({
1180
1160
  protocol: protocol,
1181
1161
  hostname: hostname,
@@ -1199,33 +1179,21 @@ export var serializeAws_restJson1PutPlaybackConfigurationCommand = function (inp
1199
1179
  "content-type": "application/json",
1200
1180
  };
1201
1181
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/playbackConfiguration";
1202
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AdDecisionServerUrl !== undefined &&
1203
- input.AdDecisionServerUrl !== null && { AdDecisionServerUrl: input.AdDecisionServerUrl })), (input.AvailSuppression !== undefined &&
1204
- input.AvailSuppression !== null && {
1182
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AdDecisionServerUrl != null && { AdDecisionServerUrl: input.AdDecisionServerUrl })), (input.AvailSuppression != null && {
1205
1183
  AvailSuppression: serializeAws_restJson1AvailSuppression(input.AvailSuppression, context),
1206
- })), (input.Bumper !== undefined &&
1207
- input.Bumper !== null && { Bumper: serializeAws_restJson1Bumper(input.Bumper, context) })), (input.CdnConfiguration !== undefined &&
1208
- input.CdnConfiguration !== null && {
1184
+ })), (input.Bumper != null && { Bumper: serializeAws_restJson1Bumper(input.Bumper, context) })), (input.CdnConfiguration != null && {
1209
1185
  CdnConfiguration: serializeAws_restJson1CdnConfiguration(input.CdnConfiguration, context),
1210
- })), (input.ConfigurationAliases !== undefined &&
1211
- input.ConfigurationAliases !== null && {
1186
+ })), (input.ConfigurationAliases != null && {
1212
1187
  ConfigurationAliases: serializeAws_restJson1ConfigurationAliasesRequest(input.ConfigurationAliases, context),
1213
- })), (input.DashConfiguration !== undefined &&
1214
- input.DashConfiguration !== null && {
1188
+ })), (input.DashConfiguration != null && {
1215
1189
  DashConfiguration: serializeAws_restJson1DashConfigurationForPut(input.DashConfiguration, context),
1216
- })), (input.LivePreRollConfiguration !== undefined &&
1217
- input.LivePreRollConfiguration !== null && {
1190
+ })), (input.LivePreRollConfiguration != null && {
1218
1191
  LivePreRollConfiguration: serializeAws_restJson1LivePreRollConfiguration(input.LivePreRollConfiguration, context),
1219
- })), (input.ManifestProcessingRules !== undefined &&
1220
- input.ManifestProcessingRules !== null && {
1192
+ })), (input.ManifestProcessingRules != null && {
1221
1193
  ManifestProcessingRules: serializeAws_restJson1ManifestProcessingRules(input.ManifestProcessingRules, context),
1222
- })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.PersonalizationThresholdSeconds !== undefined &&
1223
- input.PersonalizationThresholdSeconds !== null && {
1194
+ })), (input.Name != null && { Name: input.Name })), (input.PersonalizationThresholdSeconds != null && {
1224
1195
  PersonalizationThresholdSeconds: input.PersonalizationThresholdSeconds,
1225
- })), (input.SlateAdUrl !== undefined && input.SlateAdUrl !== null && { SlateAdUrl: input.SlateAdUrl })), (input.Tags !== undefined &&
1226
- input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })), (input.TranscodeProfileName !== undefined &&
1227
- input.TranscodeProfileName !== null && { TranscodeProfileName: input.TranscodeProfileName })), (input.VideoContentSourceUrl !== undefined &&
1228
- input.VideoContentSourceUrl !== null && { VideoContentSourceUrl: input.VideoContentSourceUrl })));
1196
+ })), (input.SlateAdUrl != null && { SlateAdUrl: input.SlateAdUrl })), (input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })), (input.TranscodeProfileName != null && { TranscodeProfileName: input.TranscodeProfileName })), (input.VideoContentSourceUrl != null && { VideoContentSourceUrl: input.VideoContentSourceUrl })));
1229
1197
  return [2, new __HttpRequest({
1230
1198
  protocol: protocol,
1231
1199
  hostname: hostname,
@@ -1321,8 +1289,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
1321
1289
  else {
1322
1290
  throw new Error("No value provided for input HTTP label: ResourceArn.");
1323
1291
  }
1324
- body = JSON.stringify(__assign({}, (input.Tags !== undefined &&
1325
- input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
1292
+ body = JSON.stringify(__assign({}, (input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
1326
1293
  return [2, new __HttpRequest({
1327
1294
  protocol: protocol,
1328
1295
  hostname: hostname,
@@ -1389,9 +1356,7 @@ export var serializeAws_restJson1UpdateChannelCommand = function (input, context
1389
1356
  else {
1390
1357
  throw new Error("No value provided for input HTTP label: ChannelName.");
1391
1358
  }
1392
- body = JSON.stringify(__assign(__assign({}, (input.FillerSlate !== undefined &&
1393
- input.FillerSlate !== null && { FillerSlate: serializeAws_restJson1SlateSource(input.FillerSlate, context) })), (input.Outputs !== undefined &&
1394
- input.Outputs !== null && { Outputs: serializeAws_restJson1RequestOutputs(input.Outputs, context) })));
1359
+ body = JSON.stringify(__assign(__assign({}, (input.FillerSlate != null && { FillerSlate: serializeAws_restJson1SlateSource(input.FillerSlate, context) })), (input.Outputs != null && { Outputs: serializeAws_restJson1RequestOutputs(input.Outputs, context) })));
1395
1360
  return [2, new __HttpRequest({
1396
1361
  protocol: protocol,
1397
1362
  hostname: hostname,
@@ -1436,8 +1401,7 @@ export var serializeAws_restJson1UpdateLiveSourceCommand = function (input, cont
1436
1401
  else {
1437
1402
  throw new Error("No value provided for input HTTP label: SourceLocationName.");
1438
1403
  }
1439
- body = JSON.stringify(__assign({}, (input.HttpPackageConfigurations !== undefined &&
1440
- input.HttpPackageConfigurations !== null && {
1404
+ body = JSON.stringify(__assign({}, (input.HttpPackageConfigurations != null && {
1441
1405
  HttpPackageConfigurations: serializeAws_restJson1HttpPackageConfigurations(input.HttpPackageConfigurations, context),
1442
1406
  })));
1443
1407
  return [2, new __HttpRequest({
@@ -1473,17 +1437,13 @@ export var serializeAws_restJson1UpdateSourceLocationCommand = function (input,
1473
1437
  else {
1474
1438
  throw new Error("No value provided for input HTTP label: SourceLocationName.");
1475
1439
  }
1476
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AccessConfiguration !== undefined &&
1477
- input.AccessConfiguration !== null && {
1440
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AccessConfiguration != null && {
1478
1441
  AccessConfiguration: serializeAws_restJson1AccessConfiguration(input.AccessConfiguration, context),
1479
- })), (input.DefaultSegmentDeliveryConfiguration !== undefined &&
1480
- input.DefaultSegmentDeliveryConfiguration !== null && {
1442
+ })), (input.DefaultSegmentDeliveryConfiguration != null && {
1481
1443
  DefaultSegmentDeliveryConfiguration: serializeAws_restJson1DefaultSegmentDeliveryConfiguration(input.DefaultSegmentDeliveryConfiguration, context),
1482
- })), (input.HttpConfiguration !== undefined &&
1483
- input.HttpConfiguration !== null && {
1444
+ })), (input.HttpConfiguration != null && {
1484
1445
  HttpConfiguration: serializeAws_restJson1HttpConfiguration(input.HttpConfiguration, context),
1485
- })), (input.SegmentDeliveryConfigurations !== undefined &&
1486
- input.SegmentDeliveryConfigurations !== null && {
1446
+ })), (input.SegmentDeliveryConfigurations != null && {
1487
1447
  SegmentDeliveryConfigurations: serializeAws_restJson1__listOfSegmentDeliveryConfiguration(input.SegmentDeliveryConfigurations, context),
1488
1448
  })));
1489
1449
  return [2, new __HttpRequest({
@@ -1530,8 +1490,7 @@ export var serializeAws_restJson1UpdateVodSourceCommand = function (input, conte
1530
1490
  else {
1531
1491
  throw new Error("No value provided for input HTTP label: VodSourceName.");
1532
1492
  }
1533
- body = JSON.stringify(__assign({}, (input.HttpPackageConfigurations !== undefined &&
1534
- input.HttpPackageConfigurations !== null && {
1493
+ body = JSON.stringify(__assign({}, (input.HttpPackageConfigurations != null && {
1535
1494
  HttpPackageConfigurations: serializeAws_restJson1HttpPackageConfigurations(input.HttpPackageConfigurations, context),
1536
1495
  })));
1537
1496
  return [2, new __HttpRequest({
@@ -4352,35 +4311,29 @@ var serializeAws_restJson1__mapOf__string = function (input, context) {
4352
4311
  }, {});
4353
4312
  };
4354
4313
  var serializeAws_restJson1AccessConfiguration = function (input, context) {
4355
- return __assign(__assign({}, (input.AccessType !== undefined && input.AccessType !== null && { AccessType: input.AccessType })), (input.SecretsManagerAccessTokenConfiguration !== undefined &&
4356
- input.SecretsManagerAccessTokenConfiguration !== null && {
4314
+ return __assign(__assign({}, (input.AccessType != null && { AccessType: input.AccessType })), (input.SecretsManagerAccessTokenConfiguration != null && {
4357
4315
  SecretsManagerAccessTokenConfiguration: serializeAws_restJson1SecretsManagerAccessTokenConfiguration(input.SecretsManagerAccessTokenConfiguration, context),
4358
4316
  }));
4359
4317
  };
4360
4318
  var serializeAws_restJson1AdBreak = function (input, context) {
4361
- return __assign(__assign(__assign(__assign({}, (input.MessageType !== undefined && input.MessageType !== null && { MessageType: input.MessageType })), (input.OffsetMillis !== undefined && input.OffsetMillis !== null && { OffsetMillis: input.OffsetMillis })), (input.Slate !== undefined &&
4362
- input.Slate !== null && { Slate: serializeAws_restJson1SlateSource(input.Slate, context) })), (input.SpliceInsertMessage !== undefined &&
4363
- input.SpliceInsertMessage !== null && {
4319
+ return __assign(__assign(__assign(__assign({}, (input.MessageType != null && { MessageType: input.MessageType })), (input.OffsetMillis != null && { OffsetMillis: input.OffsetMillis })), (input.Slate != null && { Slate: serializeAws_restJson1SlateSource(input.Slate, context) })), (input.SpliceInsertMessage != null && {
4364
4320
  SpliceInsertMessage: serializeAws_restJson1SpliceInsertMessage(input.SpliceInsertMessage, context),
4365
4321
  }));
4366
4322
  };
4367
4323
  var serializeAws_restJson1AdMarkerPassthrough = function (input, context) {
4368
- return __assign({}, (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }));
4324
+ return __assign({}, (input.Enabled != null && { Enabled: input.Enabled }));
4369
4325
  };
4370
4326
  var serializeAws_restJson1AvailMatchingCriteria = function (input, context) {
4371
- return __assign(__assign({}, (input.DynamicVariable !== undefined &&
4372
- input.DynamicVariable !== null && { DynamicVariable: input.DynamicVariable })), (input.Operator !== undefined && input.Operator !== null && { Operator: input.Operator }));
4327
+ return __assign(__assign({}, (input.DynamicVariable != null && { DynamicVariable: input.DynamicVariable })), (input.Operator != null && { Operator: input.Operator }));
4373
4328
  };
4374
4329
  var serializeAws_restJson1AvailSuppression = function (input, context) {
4375
- return __assign(__assign({}, (input.Mode !== undefined && input.Mode !== null && { Mode: input.Mode })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
4330
+ return __assign(__assign({}, (input.Mode != null && { Mode: input.Mode })), (input.Value != null && { Value: input.Value }));
4376
4331
  };
4377
4332
  var serializeAws_restJson1Bumper = function (input, context) {
4378
- return __assign(__assign({}, (input.EndUrl !== undefined && input.EndUrl !== null && { EndUrl: input.EndUrl })), (input.StartUrl !== undefined && input.StartUrl !== null && { StartUrl: input.StartUrl }));
4333
+ return __assign(__assign({}, (input.EndUrl != null && { EndUrl: input.EndUrl })), (input.StartUrl != null && { StartUrl: input.StartUrl }));
4379
4334
  };
4380
4335
  var serializeAws_restJson1CdnConfiguration = function (input, context) {
4381
- return __assign(__assign({}, (input.AdSegmentUrlPrefix !== undefined &&
4382
- input.AdSegmentUrlPrefix !== null && { AdSegmentUrlPrefix: input.AdSegmentUrlPrefix })), (input.ContentSegmentUrlPrefix !== undefined &&
4383
- input.ContentSegmentUrlPrefix !== null && { ContentSegmentUrlPrefix: input.ContentSegmentUrlPrefix }));
4336
+ return __assign(__assign({}, (input.AdSegmentUrlPrefix != null && { AdSegmentUrlPrefix: input.AdSegmentUrlPrefix })), (input.ContentSegmentUrlPrefix != null && { ContentSegmentUrlPrefix: input.ContentSegmentUrlPrefix }));
4384
4337
  };
4385
4338
  var serializeAws_restJson1ConfigurationAliasesRequest = function (input, context) {
4386
4339
  return Object.entries(input).reduce(function (acc, _a) {
@@ -4393,30 +4346,24 @@ var serializeAws_restJson1ConfigurationAliasesRequest = function (input, context
4393
4346
  }, {});
4394
4347
  };
4395
4348
  var serializeAws_restJson1DashConfigurationForPut = function (input, context) {
4396
- return __assign(__assign({}, (input.MpdLocation !== undefined && input.MpdLocation !== null && { MpdLocation: input.MpdLocation })), (input.OriginManifestType !== undefined &&
4397
- input.OriginManifestType !== null && { OriginManifestType: input.OriginManifestType }));
4349
+ return __assign(__assign({}, (input.MpdLocation != null && { MpdLocation: input.MpdLocation })), (input.OriginManifestType != null && { OriginManifestType: input.OriginManifestType }));
4398
4350
  };
4399
4351
  var serializeAws_restJson1DashPlaylistSettings = function (input, context) {
4400
- return __assign(__assign(__assign(__assign({}, (input.ManifestWindowSeconds !== undefined &&
4401
- input.ManifestWindowSeconds !== null && { ManifestWindowSeconds: input.ManifestWindowSeconds })), (input.MinBufferTimeSeconds !== undefined &&
4402
- input.MinBufferTimeSeconds !== null && { MinBufferTimeSeconds: input.MinBufferTimeSeconds })), (input.MinUpdatePeriodSeconds !== undefined &&
4403
- input.MinUpdatePeriodSeconds !== null && { MinUpdatePeriodSeconds: input.MinUpdatePeriodSeconds })), (input.SuggestedPresentationDelaySeconds !== undefined &&
4404
- input.SuggestedPresentationDelaySeconds !== null && {
4352
+ return __assign(__assign(__assign(__assign({}, (input.ManifestWindowSeconds != null && { ManifestWindowSeconds: input.ManifestWindowSeconds })), (input.MinBufferTimeSeconds != null && { MinBufferTimeSeconds: input.MinBufferTimeSeconds })), (input.MinUpdatePeriodSeconds != null && { MinUpdatePeriodSeconds: input.MinUpdatePeriodSeconds })), (input.SuggestedPresentationDelaySeconds != null && {
4405
4353
  SuggestedPresentationDelaySeconds: input.SuggestedPresentationDelaySeconds,
4406
4354
  }));
4407
4355
  };
4408
4356
  var serializeAws_restJson1DefaultSegmentDeliveryConfiguration = function (input, context) {
4409
- return __assign({}, (input.BaseUrl !== undefined && input.BaseUrl !== null && { BaseUrl: input.BaseUrl }));
4357
+ return __assign({}, (input.BaseUrl != null && { BaseUrl: input.BaseUrl }));
4410
4358
  };
4411
4359
  var serializeAws_restJson1HlsPlaylistSettings = function (input, context) {
4412
- return __assign({}, (input.ManifestWindowSeconds !== undefined &&
4413
- input.ManifestWindowSeconds !== null && { ManifestWindowSeconds: input.ManifestWindowSeconds }));
4360
+ return __assign({}, (input.ManifestWindowSeconds != null && { ManifestWindowSeconds: input.ManifestWindowSeconds }));
4414
4361
  };
4415
4362
  var serializeAws_restJson1HttpConfiguration = function (input, context) {
4416
- return __assign({}, (input.BaseUrl !== undefined && input.BaseUrl !== null && { BaseUrl: input.BaseUrl }));
4363
+ return __assign({}, (input.BaseUrl != null && { BaseUrl: input.BaseUrl }));
4417
4364
  };
4418
4365
  var serializeAws_restJson1HttpPackageConfiguration = function (input, context) {
4419
- return __assign(__assign(__assign({}, (input.Path !== undefined && input.Path !== null && { Path: input.Path })), (input.SourceGroup !== undefined && input.SourceGroup !== null && { SourceGroup: input.SourceGroup })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
4366
+ return __assign(__assign(__assign({}, (input.Path != null && { Path: input.Path })), (input.SourceGroup != null && { SourceGroup: input.SourceGroup })), (input.Type != null && { Type: input.Type }));
4420
4367
  };
4421
4368
  var serializeAws_restJson1HttpPackageConfigurations = function (input, context) {
4422
4369
  return input
@@ -4429,40 +4376,29 @@ var serializeAws_restJson1HttpPackageConfigurations = function (input, context)
4429
4376
  });
4430
4377
  };
4431
4378
  var serializeAws_restJson1LivePreRollConfiguration = function (input, context) {
4432
- return __assign(__assign({}, (input.AdDecisionServerUrl !== undefined &&
4433
- input.AdDecisionServerUrl !== null && { AdDecisionServerUrl: input.AdDecisionServerUrl })), (input.MaxDurationSeconds !== undefined &&
4434
- input.MaxDurationSeconds !== null && { MaxDurationSeconds: input.MaxDurationSeconds }));
4379
+ return __assign(__assign({}, (input.AdDecisionServerUrl != null && { AdDecisionServerUrl: input.AdDecisionServerUrl })), (input.MaxDurationSeconds != null && { MaxDurationSeconds: input.MaxDurationSeconds }));
4435
4380
  };
4436
4381
  var serializeAws_restJson1ManifestProcessingRules = function (input, context) {
4437
- return __assign({}, (input.AdMarkerPassthrough !== undefined &&
4438
- input.AdMarkerPassthrough !== null && {
4382
+ return __assign({}, (input.AdMarkerPassthrough != null && {
4439
4383
  AdMarkerPassthrough: serializeAws_restJson1AdMarkerPassthrough(input.AdMarkerPassthrough, context),
4440
4384
  }));
4441
4385
  };
4442
4386
  var serializeAws_restJson1PrefetchConsumption = function (input, context) {
4443
- return __assign(__assign(__assign({}, (input.AvailMatchingCriteria !== undefined &&
4444
- input.AvailMatchingCriteria !== null && {
4387
+ return __assign(__assign(__assign({}, (input.AvailMatchingCriteria != null && {
4445
4388
  AvailMatchingCriteria: serializeAws_restJson1__listOfAvailMatchingCriteria(input.AvailMatchingCriteria, context),
4446
- })), (input.EndTime !== undefined &&
4447
- input.EndTime !== null && { EndTime: Math.round(input.EndTime.getTime() / 1000) })), (input.StartTime !== undefined &&
4448
- input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }));
4389
+ })), (input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) })), (input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }));
4449
4390
  };
4450
4391
  var serializeAws_restJson1PrefetchRetrieval = function (input, context) {
4451
- return __assign(__assign(__assign({}, (input.DynamicVariables !== undefined &&
4452
- input.DynamicVariables !== null && {
4392
+ return __assign(__assign(__assign({}, (input.DynamicVariables != null && {
4453
4393
  DynamicVariables: serializeAws_restJson1__mapOf__string(input.DynamicVariables, context),
4454
- })), (input.EndTime !== undefined &&
4455
- input.EndTime !== null && { EndTime: Math.round(input.EndTime.getTime() / 1000) })), (input.StartTime !== undefined &&
4456
- input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }));
4394
+ })), (input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) })), (input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }));
4457
4395
  };
4458
4396
  var serializeAws_restJson1RequestOutputItem = function (input, context) {
4459
- return __assign(__assign(__assign(__assign({}, (input.DashPlaylistSettings !== undefined &&
4460
- input.DashPlaylistSettings !== null && {
4397
+ return __assign(__assign(__assign(__assign({}, (input.DashPlaylistSettings != null && {
4461
4398
  DashPlaylistSettings: serializeAws_restJson1DashPlaylistSettings(input.DashPlaylistSettings, context),
4462
- })), (input.HlsPlaylistSettings !== undefined &&
4463
- input.HlsPlaylistSettings !== null && {
4399
+ })), (input.HlsPlaylistSettings != null && {
4464
4400
  HlsPlaylistSettings: serializeAws_restJson1HlsPlaylistSettings(input.HlsPlaylistSettings, context),
4465
- })), (input.ManifestName !== undefined && input.ManifestName !== null && { ManifestName: input.ManifestName })), (input.SourceGroup !== undefined && input.SourceGroup !== null && { SourceGroup: input.SourceGroup }));
4401
+ })), (input.ManifestName != null && { ManifestName: input.ManifestName })), (input.SourceGroup != null && { SourceGroup: input.SourceGroup }));
4466
4402
  };
4467
4403
  var serializeAws_restJson1RequestOutputs = function (input, context) {
4468
4404
  return input
@@ -4475,31 +4411,22 @@ var serializeAws_restJson1RequestOutputs = function (input, context) {
4475
4411
  });
4476
4412
  };
4477
4413
  var serializeAws_restJson1ScheduleConfiguration = function (input, context) {
4478
- return __assign({}, (input.Transition !== undefined &&
4479
- input.Transition !== null && { Transition: serializeAws_restJson1Transition(input.Transition, context) }));
4414
+ return __assign({}, (input.Transition != null && { Transition: serializeAws_restJson1Transition(input.Transition, context) }));
4480
4415
  };
4481
4416
  var serializeAws_restJson1SecretsManagerAccessTokenConfiguration = function (input, context) {
4482
- return __assign(__assign(__assign({}, (input.HeaderName !== undefined && input.HeaderName !== null && { HeaderName: input.HeaderName })), (input.SecretArn !== undefined && input.SecretArn !== null && { SecretArn: input.SecretArn })), (input.SecretStringKey !== undefined &&
4483
- input.SecretStringKey !== null && { SecretStringKey: input.SecretStringKey }));
4417
+ return __assign(__assign(__assign({}, (input.HeaderName != null && { HeaderName: input.HeaderName })), (input.SecretArn != null && { SecretArn: input.SecretArn })), (input.SecretStringKey != null && { SecretStringKey: input.SecretStringKey }));
4484
4418
  };
4485
4419
  var serializeAws_restJson1SegmentDeliveryConfiguration = function (input, context) {
4486
- return __assign(__assign({}, (input.BaseUrl !== undefined && input.BaseUrl !== null && { BaseUrl: input.BaseUrl })), (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
4420
+ return __assign(__assign({}, (input.BaseUrl != null && { BaseUrl: input.BaseUrl })), (input.Name != null && { Name: input.Name }));
4487
4421
  };
4488
4422
  var serializeAws_restJson1SlateSource = function (input, context) {
4489
- return __assign(__assign({}, (input.SourceLocationName !== undefined &&
4490
- input.SourceLocationName !== null && { SourceLocationName: input.SourceLocationName })), (input.VodSourceName !== undefined && input.VodSourceName !== null && { VodSourceName: input.VodSourceName }));
4423
+ return __assign(__assign({}, (input.SourceLocationName != null && { SourceLocationName: input.SourceLocationName })), (input.VodSourceName != null && { VodSourceName: input.VodSourceName }));
4491
4424
  };
4492
4425
  var serializeAws_restJson1SpliceInsertMessage = function (input, context) {
4493
- return __assign(__assign(__assign(__assign({}, (input.AvailNum !== undefined && input.AvailNum !== null && { AvailNum: input.AvailNum })), (input.AvailsExpected !== undefined &&
4494
- input.AvailsExpected !== null && { AvailsExpected: input.AvailsExpected })), (input.SpliceEventId !== undefined && input.SpliceEventId !== null && { SpliceEventId: input.SpliceEventId })), (input.UniqueProgramId !== undefined &&
4495
- input.UniqueProgramId !== null && { UniqueProgramId: input.UniqueProgramId }));
4426
+ return __assign(__assign(__assign(__assign({}, (input.AvailNum != null && { AvailNum: input.AvailNum })), (input.AvailsExpected != null && { AvailsExpected: input.AvailsExpected })), (input.SpliceEventId != null && { SpliceEventId: input.SpliceEventId })), (input.UniqueProgramId != null && { UniqueProgramId: input.UniqueProgramId }));
4496
4427
  };
4497
4428
  var serializeAws_restJson1Transition = function (input, context) {
4498
- return __assign(__assign(__assign(__assign(__assign({}, (input.DurationMillis !== undefined &&
4499
- input.DurationMillis !== null && { DurationMillis: input.DurationMillis })), (input.RelativePosition !== undefined &&
4500
- input.RelativePosition !== null && { RelativePosition: input.RelativePosition })), (input.RelativeProgram !== undefined &&
4501
- input.RelativeProgram !== null && { RelativeProgram: input.RelativeProgram })), (input.ScheduledStartTimeMillis !== undefined &&
4502
- input.ScheduledStartTimeMillis !== null && { ScheduledStartTimeMillis: input.ScheduledStartTimeMillis })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
4429
+ return __assign(__assign(__assign(__assign(__assign({}, (input.DurationMillis != null && { DurationMillis: input.DurationMillis })), (input.RelativePosition != null && { RelativePosition: input.RelativePosition })), (input.RelativeProgram != null && { RelativeProgram: input.RelativeProgram })), (input.ScheduledStartTimeMillis != null && { ScheduledStartTimeMillis: input.ScheduledStartTimeMillis })), (input.Type != null && { Type: input.Type }));
4503
4430
  };
4504
4431
  var deserializeAws_restJson1__listOf__string = function (output, context) {
4505
4432
  var retVal = (output || [])
@@ -4657,8 +4584,7 @@ var deserializeAws_restJson1__mapOf__string = function (output, context) {
4657
4584
  var deserializeAws_restJson1AccessConfiguration = function (output, context) {
4658
4585
  return {
4659
4586
  AccessType: __expectString(output.AccessType),
4660
- SecretsManagerAccessTokenConfiguration: output.SecretsManagerAccessTokenConfiguration !== undefined &&
4661
- output.SecretsManagerAccessTokenConfiguration !== null
4587
+ SecretsManagerAccessTokenConfiguration: output.SecretsManagerAccessTokenConfiguration != null
4662
4588
  ? deserializeAws_restJson1SecretsManagerAccessTokenConfiguration(output.SecretsManagerAccessTokenConfiguration, context)
4663
4589
  : undefined,
4664
4590
  };
@@ -4667,10 +4593,8 @@ var deserializeAws_restJson1AdBreak = function (output, context) {
4667
4593
  return {
4668
4594
  MessageType: __expectString(output.MessageType),
4669
4595
  OffsetMillis: __expectLong(output.OffsetMillis),
4670
- Slate: output.Slate !== undefined && output.Slate !== null
4671
- ? deserializeAws_restJson1SlateSource(output.Slate, context)
4672
- : undefined,
4673
- SpliceInsertMessage: output.SpliceInsertMessage !== undefined && output.SpliceInsertMessage !== null
4596
+ Slate: output.Slate != null ? deserializeAws_restJson1SlateSource(output.Slate, context) : undefined,
4597
+ SpliceInsertMessage: output.SpliceInsertMessage != null
4674
4598
  ? deserializeAws_restJson1SpliceInsertMessage(output.SpliceInsertMessage, context)
4675
4599
  : undefined,
4676
4600
  };
@@ -4684,10 +4608,10 @@ var deserializeAws_restJson1Alert = function (output, context) {
4684
4608
  return {
4685
4609
  AlertCode: __expectString(output.AlertCode),
4686
4610
  AlertMessage: __expectString(output.AlertMessage),
4687
- LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
4611
+ LastModifiedTime: output.LastModifiedTime != null
4688
4612
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
4689
4613
  : undefined,
4690
- RelatedResourceArns: output.RelatedResourceArns !== undefined && output.RelatedResourceArns !== null
4614
+ RelatedResourceArns: output.RelatedResourceArns != null
4691
4615
  ? deserializeAws_restJson1__listOf__string(output.RelatedResourceArns, context)
4692
4616
  : undefined,
4693
4617
  ResourceArn: __expectString(output.ResourceArn),
@@ -4722,22 +4646,16 @@ var deserializeAws_restJson1Channel = function (output, context) {
4722
4646
  Arn: __expectString(output.Arn),
4723
4647
  ChannelName: __expectString(output.ChannelName),
4724
4648
  ChannelState: __expectString(output.ChannelState),
4725
- CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
4649
+ CreationTime: output.CreationTime != null
4726
4650
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
4727
4651
  : undefined,
4728
- FillerSlate: output.FillerSlate !== undefined && output.FillerSlate !== null
4729
- ? deserializeAws_restJson1SlateSource(output.FillerSlate, context)
4730
- : undefined,
4731
- LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
4652
+ FillerSlate: output.FillerSlate != null ? deserializeAws_restJson1SlateSource(output.FillerSlate, context) : undefined,
4653
+ LastModifiedTime: output.LastModifiedTime != null
4732
4654
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
4733
4655
  : undefined,
4734
- Outputs: output.Outputs !== undefined && output.Outputs !== null
4735
- ? deserializeAws_restJson1ResponseOutputs(output.Outputs, context)
4736
- : undefined,
4656
+ Outputs: output.Outputs != null ? deserializeAws_restJson1ResponseOutputs(output.Outputs, context) : undefined,
4737
4657
  PlaybackMode: __expectString(output.PlaybackMode),
4738
- Tags: output.tags !== undefined && output.tags !== null
4739
- ? deserializeAws_restJson1__mapOf__string(output.tags, context)
4740
- : undefined,
4658
+ Tags: output.tags != null ? deserializeAws_restJson1__mapOf__string(output.tags, context) : undefined,
4741
4659
  Tier: __expectString(output.Tier),
4742
4660
  };
4743
4661
  };
@@ -4813,20 +4731,18 @@ var deserializeAws_restJson1LivePreRollConfiguration = function (output, context
4813
4731
  var deserializeAws_restJson1LiveSource = function (output, context) {
4814
4732
  return {
4815
4733
  Arn: __expectString(output.Arn),
4816
- CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
4734
+ CreationTime: output.CreationTime != null
4817
4735
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
4818
4736
  : undefined,
4819
- HttpPackageConfigurations: output.HttpPackageConfigurations !== undefined && output.HttpPackageConfigurations !== null
4737
+ HttpPackageConfigurations: output.HttpPackageConfigurations != null
4820
4738
  ? deserializeAws_restJson1HttpPackageConfigurations(output.HttpPackageConfigurations, context)
4821
4739
  : undefined,
4822
- LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
4740
+ LastModifiedTime: output.LastModifiedTime != null
4823
4741
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
4824
4742
  : undefined,
4825
4743
  LiveSourceName: __expectString(output.LiveSourceName),
4826
4744
  SourceLocationName: __expectString(output.SourceLocationName),
4827
- Tags: output.tags !== undefined && output.tags !== null
4828
- ? deserializeAws_restJson1__mapOf__string(output.tags, context)
4829
- : undefined,
4745
+ Tags: output.tags != null ? deserializeAws_restJson1__mapOf__string(output.tags, context) : undefined,
4830
4746
  };
4831
4747
  };
4832
4748
  var deserializeAws_restJson1LogConfiguration = function (output, context) {
@@ -4836,7 +4752,7 @@ var deserializeAws_restJson1LogConfiguration = function (output, context) {
4836
4752
  };
4837
4753
  var deserializeAws_restJson1ManifestProcessingRules = function (output, context) {
4838
4754
  return {
4839
- AdMarkerPassthrough: output.AdMarkerPassthrough !== undefined && output.AdMarkerPassthrough !== null
4755
+ AdMarkerPassthrough: output.AdMarkerPassthrough != null
4840
4756
  ? deserializeAws_restJson1AdMarkerPassthrough(output.AdMarkerPassthrough, context)
4841
4757
  : undefined,
4842
4758
  };
@@ -4844,31 +4760,29 @@ var deserializeAws_restJson1ManifestProcessingRules = function (output, context)
4844
4760
  var deserializeAws_restJson1PlaybackConfiguration = function (output, context) {
4845
4761
  return {
4846
4762
  AdDecisionServerUrl: __expectString(output.AdDecisionServerUrl),
4847
- AvailSuppression: output.AvailSuppression !== undefined && output.AvailSuppression !== null
4763
+ AvailSuppression: output.AvailSuppression != null
4848
4764
  ? deserializeAws_restJson1AvailSuppression(output.AvailSuppression, context)
4849
4765
  : undefined,
4850
- Bumper: output.Bumper !== undefined && output.Bumper !== null
4851
- ? deserializeAws_restJson1Bumper(output.Bumper, context)
4852
- : undefined,
4853
- CdnConfiguration: output.CdnConfiguration !== undefined && output.CdnConfiguration !== null
4766
+ Bumper: output.Bumper != null ? deserializeAws_restJson1Bumper(output.Bumper, context) : undefined,
4767
+ CdnConfiguration: output.CdnConfiguration != null
4854
4768
  ? deserializeAws_restJson1CdnConfiguration(output.CdnConfiguration, context)
4855
4769
  : undefined,
4856
- ConfigurationAliases: output.ConfigurationAliases !== undefined && output.ConfigurationAliases !== null
4770
+ ConfigurationAliases: output.ConfigurationAliases != null
4857
4771
  ? deserializeAws_restJson1ConfigurationAliasesResponse(output.ConfigurationAliases, context)
4858
4772
  : undefined,
4859
- DashConfiguration: output.DashConfiguration !== undefined && output.DashConfiguration !== null
4773
+ DashConfiguration: output.DashConfiguration != null
4860
4774
  ? deserializeAws_restJson1DashConfiguration(output.DashConfiguration, context)
4861
4775
  : undefined,
4862
- HlsConfiguration: output.HlsConfiguration !== undefined && output.HlsConfiguration !== null
4776
+ HlsConfiguration: output.HlsConfiguration != null
4863
4777
  ? deserializeAws_restJson1HlsConfiguration(output.HlsConfiguration, context)
4864
4778
  : undefined,
4865
- LivePreRollConfiguration: output.LivePreRollConfiguration !== undefined && output.LivePreRollConfiguration !== null
4779
+ LivePreRollConfiguration: output.LivePreRollConfiguration != null
4866
4780
  ? deserializeAws_restJson1LivePreRollConfiguration(output.LivePreRollConfiguration, context)
4867
4781
  : undefined,
4868
- LogConfiguration: output.LogConfiguration !== undefined && output.LogConfiguration !== null
4782
+ LogConfiguration: output.LogConfiguration != null
4869
4783
  ? deserializeAws_restJson1LogConfiguration(output.LogConfiguration, context)
4870
4784
  : undefined,
4871
- ManifestProcessingRules: output.ManifestProcessingRules !== undefined && output.ManifestProcessingRules !== null
4785
+ ManifestProcessingRules: output.ManifestProcessingRules != null
4872
4786
  ? deserializeAws_restJson1ManifestProcessingRules(output.ManifestProcessingRules, context)
4873
4787
  : undefined,
4874
4788
  Name: __expectString(output.Name),
@@ -4877,59 +4791,45 @@ var deserializeAws_restJson1PlaybackConfiguration = function (output, context) {
4877
4791
  PlaybackEndpointPrefix: __expectString(output.PlaybackEndpointPrefix),
4878
4792
  SessionInitializationEndpointPrefix: __expectString(output.SessionInitializationEndpointPrefix),
4879
4793
  SlateAdUrl: __expectString(output.SlateAdUrl),
4880
- Tags: output.tags !== undefined && output.tags !== null
4881
- ? deserializeAws_restJson1__mapOf__string(output.tags, context)
4882
- : undefined,
4794
+ Tags: output.tags != null ? deserializeAws_restJson1__mapOf__string(output.tags, context) : undefined,
4883
4795
  TranscodeProfileName: __expectString(output.TranscodeProfileName),
4884
4796
  VideoContentSourceUrl: __expectString(output.VideoContentSourceUrl),
4885
4797
  };
4886
4798
  };
4887
4799
  var deserializeAws_restJson1PrefetchConsumption = function (output, context) {
4888
4800
  return {
4889
- AvailMatchingCriteria: output.AvailMatchingCriteria !== undefined && output.AvailMatchingCriteria !== null
4801
+ AvailMatchingCriteria: output.AvailMatchingCriteria != null
4890
4802
  ? deserializeAws_restJson1__listOfAvailMatchingCriteria(output.AvailMatchingCriteria, context)
4891
4803
  : undefined,
4892
- EndTime: output.EndTime !== undefined && output.EndTime !== null
4893
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
4894
- : undefined,
4895
- StartTime: output.StartTime !== undefined && output.StartTime !== null
4896
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
4897
- : undefined,
4804
+ EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
4805
+ StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
4898
4806
  };
4899
4807
  };
4900
4808
  var deserializeAws_restJson1PrefetchRetrieval = function (output, context) {
4901
4809
  return {
4902
- DynamicVariables: output.DynamicVariables !== undefined && output.DynamicVariables !== null
4810
+ DynamicVariables: output.DynamicVariables != null
4903
4811
  ? deserializeAws_restJson1__mapOf__string(output.DynamicVariables, context)
4904
4812
  : undefined,
4905
- EndTime: output.EndTime !== undefined && output.EndTime !== null
4906
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
4907
- : undefined,
4908
- StartTime: output.StartTime !== undefined && output.StartTime !== null
4909
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
4910
- : undefined,
4813
+ EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
4814
+ StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
4911
4815
  };
4912
4816
  };
4913
4817
  var deserializeAws_restJson1PrefetchSchedule = function (output, context) {
4914
4818
  return {
4915
4819
  Arn: __expectString(output.Arn),
4916
- Consumption: output.Consumption !== undefined && output.Consumption !== null
4917
- ? deserializeAws_restJson1PrefetchConsumption(output.Consumption, context)
4918
- : undefined,
4820
+ Consumption: output.Consumption != null ? deserializeAws_restJson1PrefetchConsumption(output.Consumption, context) : undefined,
4919
4821
  Name: __expectString(output.Name),
4920
4822
  PlaybackConfigurationName: __expectString(output.PlaybackConfigurationName),
4921
- Retrieval: output.Retrieval !== undefined && output.Retrieval !== null
4922
- ? deserializeAws_restJson1PrefetchRetrieval(output.Retrieval, context)
4923
- : undefined,
4823
+ Retrieval: output.Retrieval != null ? deserializeAws_restJson1PrefetchRetrieval(output.Retrieval, context) : undefined,
4924
4824
  StreamId: __expectString(output.StreamId),
4925
4825
  };
4926
4826
  };
4927
4827
  var deserializeAws_restJson1ResponseOutputItem = function (output, context) {
4928
4828
  return {
4929
- DashPlaylistSettings: output.DashPlaylistSettings !== undefined && output.DashPlaylistSettings !== null
4829
+ DashPlaylistSettings: output.DashPlaylistSettings != null
4930
4830
  ? deserializeAws_restJson1DashPlaylistSettings(output.DashPlaylistSettings, context)
4931
4831
  : undefined,
4932
- HlsPlaylistSettings: output.HlsPlaylistSettings !== undefined && output.HlsPlaylistSettings !== null
4832
+ HlsPlaylistSettings: output.HlsPlaylistSettings != null
4933
4833
  ? deserializeAws_restJson1HlsPlaylistSettings(output.HlsPlaylistSettings, context)
4934
4834
  : undefined,
4935
4835
  ManifestName: __expectString(output.ManifestName),
@@ -4951,7 +4851,7 @@ var deserializeAws_restJson1ResponseOutputs = function (output, context) {
4951
4851
  var deserializeAws_restJson1ScheduleAdBreak = function (output, context) {
4952
4852
  return {
4953
4853
  ApproximateDurationSeconds: __expectLong(output.ApproximateDurationSeconds),
4954
- ApproximateStartTime: output.ApproximateStartTime !== undefined && output.ApproximateStartTime !== null
4854
+ ApproximateStartTime: output.ApproximateStartTime != null
4955
4855
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ApproximateStartTime)))
4956
4856
  : undefined,
4957
4857
  SourceLocationName: __expectString(output.SourceLocationName),
@@ -4961,14 +4861,14 @@ var deserializeAws_restJson1ScheduleAdBreak = function (output, context) {
4961
4861
  var deserializeAws_restJson1ScheduleEntry = function (output, context) {
4962
4862
  return {
4963
4863
  ApproximateDurationSeconds: __expectLong(output.ApproximateDurationSeconds),
4964
- ApproximateStartTime: output.ApproximateStartTime !== undefined && output.ApproximateStartTime !== null
4864
+ ApproximateStartTime: output.ApproximateStartTime != null
4965
4865
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ApproximateStartTime)))
4966
4866
  : undefined,
4967
4867
  Arn: __expectString(output.Arn),
4968
4868
  ChannelName: __expectString(output.ChannelName),
4969
4869
  LiveSourceName: __expectString(output.LiveSourceName),
4970
4870
  ProgramName: __expectString(output.ProgramName),
4971
- ScheduleAdBreaks: output.ScheduleAdBreaks !== undefined && output.ScheduleAdBreaks !== null
4871
+ ScheduleAdBreaks: output.ScheduleAdBreaks != null
4972
4872
  ? deserializeAws_restJson1__listOfScheduleAdBreak(output.ScheduleAdBreaks, context)
4973
4873
  : undefined,
4974
4874
  ScheduleEntryType: __expectString(output.ScheduleEntryType),
@@ -4997,29 +4897,27 @@ var deserializeAws_restJson1SlateSource = function (output, context) {
4997
4897
  };
4998
4898
  var deserializeAws_restJson1SourceLocation = function (output, context) {
4999
4899
  return {
5000
- AccessConfiguration: output.AccessConfiguration !== undefined && output.AccessConfiguration !== null
4900
+ AccessConfiguration: output.AccessConfiguration != null
5001
4901
  ? deserializeAws_restJson1AccessConfiguration(output.AccessConfiguration, context)
5002
4902
  : undefined,
5003
4903
  Arn: __expectString(output.Arn),
5004
- CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
4904
+ CreationTime: output.CreationTime != null
5005
4905
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
5006
4906
  : undefined,
5007
- DefaultSegmentDeliveryConfiguration: output.DefaultSegmentDeliveryConfiguration !== undefined && output.DefaultSegmentDeliveryConfiguration !== null
4907
+ DefaultSegmentDeliveryConfiguration: output.DefaultSegmentDeliveryConfiguration != null
5008
4908
  ? deserializeAws_restJson1DefaultSegmentDeliveryConfiguration(output.DefaultSegmentDeliveryConfiguration, context)
5009
4909
  : undefined,
5010
- HttpConfiguration: output.HttpConfiguration !== undefined && output.HttpConfiguration !== null
4910
+ HttpConfiguration: output.HttpConfiguration != null
5011
4911
  ? deserializeAws_restJson1HttpConfiguration(output.HttpConfiguration, context)
5012
4912
  : undefined,
5013
- LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
4913
+ LastModifiedTime: output.LastModifiedTime != null
5014
4914
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
5015
4915
  : undefined,
5016
- SegmentDeliveryConfigurations: output.SegmentDeliveryConfigurations !== undefined && output.SegmentDeliveryConfigurations !== null
4916
+ SegmentDeliveryConfigurations: output.SegmentDeliveryConfigurations != null
5017
4917
  ? deserializeAws_restJson1__listOfSegmentDeliveryConfiguration(output.SegmentDeliveryConfigurations, context)
5018
4918
  : undefined,
5019
4919
  SourceLocationName: __expectString(output.SourceLocationName),
5020
- Tags: output.tags !== undefined && output.tags !== null
5021
- ? deserializeAws_restJson1__mapOf__string(output.tags, context)
5022
- : undefined,
4920
+ Tags: output.tags != null ? deserializeAws_restJson1__mapOf__string(output.tags, context) : undefined,
5023
4921
  };
5024
4922
  };
5025
4923
  var deserializeAws_restJson1SpliceInsertMessage = function (output, context) {
@@ -5033,19 +4931,17 @@ var deserializeAws_restJson1SpliceInsertMessage = function (output, context) {
5033
4931
  var deserializeAws_restJson1VodSource = function (output, context) {
5034
4932
  return {
5035
4933
  Arn: __expectString(output.Arn),
5036
- CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
4934
+ CreationTime: output.CreationTime != null
5037
4935
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
5038
4936
  : undefined,
5039
- HttpPackageConfigurations: output.HttpPackageConfigurations !== undefined && output.HttpPackageConfigurations !== null
4937
+ HttpPackageConfigurations: output.HttpPackageConfigurations != null
5040
4938
  ? deserializeAws_restJson1HttpPackageConfigurations(output.HttpPackageConfigurations, context)
5041
4939
  : undefined,
5042
- LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
4940
+ LastModifiedTime: output.LastModifiedTime != null
5043
4941
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
5044
4942
  : undefined,
5045
4943
  SourceLocationName: __expectString(output.SourceLocationName),
5046
- Tags: output.tags !== undefined && output.tags !== null
5047
- ? deserializeAws_restJson1__mapOf__string(output.tags, context)
5048
- : undefined,
4944
+ Tags: output.tags != null ? deserializeAws_restJson1__mapOf__string(output.tags, context) : undefined,
5049
4945
  VodSourceName: __expectString(output.VodSourceName),
5050
4946
  };
5051
4947
  };