@aws-sdk/client-ivs 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 CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-ivs
9
+
10
+
11
+
12
+
13
+
6
14
  # [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
7
15
 
8
16
 
@@ -14,8 +14,7 @@ const serializeAws_restJson1BatchGetChannelCommand = async (input, context) => {
14
14
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/BatchGetChannel";
15
15
  let body;
16
16
  body = JSON.stringify({
17
- ...(input.arns !== undefined &&
18
- input.arns !== null && { arns: serializeAws_restJson1ChannelArnList(input.arns, context) }),
17
+ ...(input.arns != null && { arns: serializeAws_restJson1ChannelArnList(input.arns, context) }),
19
18
  });
20
19
  return new protocol_http_1.HttpRequest({
21
20
  protocol,
@@ -36,8 +35,7 @@ const serializeAws_restJson1BatchGetStreamKeyCommand = async (input, context) =>
36
35
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/BatchGetStreamKey";
37
36
  let body;
38
37
  body = JSON.stringify({
39
- ...(input.arns !== undefined &&
40
- input.arns !== null && { arns: serializeAws_restJson1StreamKeyArnList(input.arns, context) }),
38
+ ...(input.arns != null && { arns: serializeAws_restJson1StreamKeyArnList(input.arns, context) }),
41
39
  });
42
40
  return new protocol_http_1.HttpRequest({
43
41
  protocol,
@@ -58,13 +56,12 @@ const serializeAws_restJson1CreateChannelCommand = async (input, context) => {
58
56
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/CreateChannel";
59
57
  let body;
60
58
  body = JSON.stringify({
61
- ...(input.authorized !== undefined && input.authorized !== null && { authorized: input.authorized }),
62
- ...(input.latencyMode !== undefined && input.latencyMode !== null && { latencyMode: input.latencyMode }),
63
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
64
- ...(input.recordingConfigurationArn !== undefined &&
65
- input.recordingConfigurationArn !== null && { recordingConfigurationArn: input.recordingConfigurationArn }),
66
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
67
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
59
+ ...(input.authorized != null && { authorized: input.authorized }),
60
+ ...(input.latencyMode != null && { latencyMode: input.latencyMode }),
61
+ ...(input.name != null && { name: input.name }),
62
+ ...(input.recordingConfigurationArn != null && { recordingConfigurationArn: input.recordingConfigurationArn }),
63
+ ...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
64
+ ...(input.type != null && { type: input.type }),
68
65
  });
69
66
  return new protocol_http_1.HttpRequest({
70
67
  protocol,
@@ -85,14 +82,12 @@ const serializeAws_restJson1CreateRecordingConfigurationCommand = async (input,
85
82
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/CreateRecordingConfiguration";
86
83
  let body;
87
84
  body = JSON.stringify({
88
- ...(input.destinationConfiguration !== undefined &&
89
- input.destinationConfiguration !== null && {
85
+ ...(input.destinationConfiguration != null && {
90
86
  destinationConfiguration: serializeAws_restJson1DestinationConfiguration(input.destinationConfiguration, context),
91
87
  }),
92
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
93
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
94
- ...(input.thumbnailConfiguration !== undefined &&
95
- input.thumbnailConfiguration !== null && {
88
+ ...(input.name != null && { name: input.name }),
89
+ ...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
90
+ ...(input.thumbnailConfiguration != null && {
96
91
  thumbnailConfiguration: serializeAws_restJson1ThumbnailConfiguration(input.thumbnailConfiguration, context),
97
92
  }),
98
93
  });
@@ -115,8 +110,8 @@ const serializeAws_restJson1CreateStreamKeyCommand = async (input, context) => {
115
110
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/CreateStreamKey";
116
111
  let body;
117
112
  body = JSON.stringify({
118
- ...(input.channelArn !== undefined && input.channelArn !== null && { channelArn: input.channelArn }),
119
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
113
+ ...(input.channelArn != null && { channelArn: input.channelArn }),
114
+ ...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
120
115
  });
121
116
  return new protocol_http_1.HttpRequest({
122
117
  protocol,
@@ -137,7 +132,7 @@ const serializeAws_restJson1DeleteChannelCommand = async (input, context) => {
137
132
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteChannel";
138
133
  let body;
139
134
  body = JSON.stringify({
140
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
135
+ ...(input.arn != null && { arn: input.arn }),
141
136
  });
142
137
  return new protocol_http_1.HttpRequest({
143
138
  protocol,
@@ -158,7 +153,7 @@ const serializeAws_restJson1DeletePlaybackKeyPairCommand = async (input, context
158
153
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DeletePlaybackKeyPair";
159
154
  let body;
160
155
  body = JSON.stringify({
161
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
156
+ ...(input.arn != null && { arn: input.arn }),
162
157
  });
163
158
  return new protocol_http_1.HttpRequest({
164
159
  protocol,
@@ -179,7 +174,7 @@ const serializeAws_restJson1DeleteRecordingConfigurationCommand = async (input,
179
174
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteRecordingConfiguration";
180
175
  let body;
181
176
  body = JSON.stringify({
182
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
177
+ ...(input.arn != null && { arn: input.arn }),
183
178
  });
184
179
  return new protocol_http_1.HttpRequest({
185
180
  protocol,
@@ -200,7 +195,7 @@ const serializeAws_restJson1DeleteStreamKeyCommand = async (input, context) => {
200
195
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteStreamKey";
201
196
  let body;
202
197
  body = JSON.stringify({
203
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
198
+ ...(input.arn != null && { arn: input.arn }),
204
199
  });
205
200
  return new protocol_http_1.HttpRequest({
206
201
  protocol,
@@ -221,7 +216,7 @@ const serializeAws_restJson1GetChannelCommand = async (input, context) => {
221
216
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetChannel";
222
217
  let body;
223
218
  body = JSON.stringify({
224
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
219
+ ...(input.arn != null && { arn: input.arn }),
225
220
  });
226
221
  return new protocol_http_1.HttpRequest({
227
222
  protocol,
@@ -242,7 +237,7 @@ const serializeAws_restJson1GetPlaybackKeyPairCommand = async (input, context) =
242
237
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetPlaybackKeyPair";
243
238
  let body;
244
239
  body = JSON.stringify({
245
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
240
+ ...(input.arn != null && { arn: input.arn }),
246
241
  });
247
242
  return new protocol_http_1.HttpRequest({
248
243
  protocol,
@@ -263,7 +258,7 @@ const serializeAws_restJson1GetRecordingConfigurationCommand = async (input, con
263
258
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetRecordingConfiguration";
264
259
  let body;
265
260
  body = JSON.stringify({
266
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
261
+ ...(input.arn != null && { arn: input.arn }),
267
262
  });
268
263
  return new protocol_http_1.HttpRequest({
269
264
  protocol,
@@ -284,7 +279,7 @@ const serializeAws_restJson1GetStreamCommand = async (input, context) => {
284
279
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetStream";
285
280
  let body;
286
281
  body = JSON.stringify({
287
- ...(input.channelArn !== undefined && input.channelArn !== null && { channelArn: input.channelArn }),
282
+ ...(input.channelArn != null && { channelArn: input.channelArn }),
288
283
  });
289
284
  return new protocol_http_1.HttpRequest({
290
285
  protocol,
@@ -305,7 +300,7 @@ const serializeAws_restJson1GetStreamKeyCommand = async (input, context) => {
305
300
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetStreamKey";
306
301
  let body;
307
302
  body = JSON.stringify({
308
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
303
+ ...(input.arn != null && { arn: input.arn }),
309
304
  });
310
305
  return new protocol_http_1.HttpRequest({
311
306
  protocol,
@@ -326,8 +321,8 @@ const serializeAws_restJson1GetStreamSessionCommand = async (input, context) =>
326
321
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetStreamSession";
327
322
  let body;
328
323
  body = JSON.stringify({
329
- ...(input.channelArn !== undefined && input.channelArn !== null && { channelArn: input.channelArn }),
330
- ...(input.streamId !== undefined && input.streamId !== null && { streamId: input.streamId }),
324
+ ...(input.channelArn != null && { channelArn: input.channelArn }),
325
+ ...(input.streamId != null && { streamId: input.streamId }),
331
326
  });
332
327
  return new protocol_http_1.HttpRequest({
333
328
  protocol,
@@ -348,10 +343,9 @@ const serializeAws_restJson1ImportPlaybackKeyPairCommand = async (input, context
348
343
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ImportPlaybackKeyPair";
349
344
  let body;
350
345
  body = JSON.stringify({
351
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
352
- ...(input.publicKeyMaterial !== undefined &&
353
- input.publicKeyMaterial !== null && { publicKeyMaterial: input.publicKeyMaterial }),
354
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
346
+ ...(input.name != null && { name: input.name }),
347
+ ...(input.publicKeyMaterial != null && { publicKeyMaterial: input.publicKeyMaterial }),
348
+ ...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
355
349
  });
356
350
  return new protocol_http_1.HttpRequest({
357
351
  protocol,
@@ -372,13 +366,12 @@ const serializeAws_restJson1ListChannelsCommand = async (input, context) => {
372
366
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ListChannels";
373
367
  let body;
374
368
  body = JSON.stringify({
375
- ...(input.filterByName !== undefined && input.filterByName !== null && { filterByName: input.filterByName }),
376
- ...(input.filterByRecordingConfigurationArn !== undefined &&
377
- input.filterByRecordingConfigurationArn !== null && {
369
+ ...(input.filterByName != null && { filterByName: input.filterByName }),
370
+ ...(input.filterByRecordingConfigurationArn != null && {
378
371
  filterByRecordingConfigurationArn: input.filterByRecordingConfigurationArn,
379
372
  }),
380
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
381
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
373
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
374
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
382
375
  });
383
376
  return new protocol_http_1.HttpRequest({
384
377
  protocol,
@@ -399,8 +392,8 @@ const serializeAws_restJson1ListPlaybackKeyPairsCommand = async (input, context)
399
392
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ListPlaybackKeyPairs";
400
393
  let body;
401
394
  body = JSON.stringify({
402
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
403
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
395
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
396
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
404
397
  });
405
398
  return new protocol_http_1.HttpRequest({
406
399
  protocol,
@@ -421,8 +414,8 @@ const serializeAws_restJson1ListRecordingConfigurationsCommand = async (input, c
421
414
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ListRecordingConfigurations";
422
415
  let body;
423
416
  body = JSON.stringify({
424
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
425
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
417
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
418
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
426
419
  });
427
420
  return new protocol_http_1.HttpRequest({
428
421
  protocol,
@@ -443,9 +436,9 @@ const serializeAws_restJson1ListStreamKeysCommand = async (input, context) => {
443
436
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ListStreamKeys";
444
437
  let body;
445
438
  body = JSON.stringify({
446
- ...(input.channelArn !== undefined && input.channelArn !== null && { channelArn: input.channelArn }),
447
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
448
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
439
+ ...(input.channelArn != null && { channelArn: input.channelArn }),
440
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
441
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
449
442
  });
450
443
  return new protocol_http_1.HttpRequest({
451
444
  protocol,
@@ -466,10 +459,9 @@ const serializeAws_restJson1ListStreamsCommand = async (input, context) => {
466
459
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ListStreams";
467
460
  let body;
468
461
  body = JSON.stringify({
469
- ...(input.filterBy !== undefined &&
470
- input.filterBy !== null && { filterBy: serializeAws_restJson1StreamFilters(input.filterBy, context) }),
471
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
472
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
462
+ ...(input.filterBy != null && { filterBy: serializeAws_restJson1StreamFilters(input.filterBy, context) }),
463
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
464
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
473
465
  });
474
466
  return new protocol_http_1.HttpRequest({
475
467
  protocol,
@@ -490,9 +482,9 @@ const serializeAws_restJson1ListStreamSessionsCommand = async (input, context) =
490
482
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ListStreamSessions";
491
483
  let body;
492
484
  body = JSON.stringify({
493
- ...(input.channelArn !== undefined && input.channelArn !== null && { channelArn: input.channelArn }),
494
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
495
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
485
+ ...(input.channelArn != null && { channelArn: input.channelArn }),
486
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
487
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
496
488
  });
497
489
  return new protocol_http_1.HttpRequest({
498
490
  protocol,
@@ -539,8 +531,8 @@ const serializeAws_restJson1PutMetadataCommand = async (input, context) => {
539
531
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/PutMetadata";
540
532
  let body;
541
533
  body = JSON.stringify({
542
- ...(input.channelArn !== undefined && input.channelArn !== null && { channelArn: input.channelArn }),
543
- ...(input.metadata !== undefined && input.metadata !== null && { metadata: input.metadata }),
534
+ ...(input.channelArn != null && { channelArn: input.channelArn }),
535
+ ...(input.metadata != null && { metadata: input.metadata }),
544
536
  });
545
537
  return new protocol_http_1.HttpRequest({
546
538
  protocol,
@@ -561,7 +553,7 @@ const serializeAws_restJson1StopStreamCommand = async (input, context) => {
561
553
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/StopStream";
562
554
  let body;
563
555
  body = JSON.stringify({
564
- ...(input.channelArn !== undefined && input.channelArn !== null && { channelArn: input.channelArn }),
556
+ ...(input.channelArn != null && { channelArn: input.channelArn }),
565
557
  });
566
558
  return new protocol_http_1.HttpRequest({
567
559
  protocol,
@@ -592,7 +584,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
592
584
  }
593
585
  let body;
594
586
  body = JSON.stringify({
595
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
587
+ ...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
596
588
  });
597
589
  return new protocol_http_1.HttpRequest({
598
590
  protocol,
@@ -643,13 +635,12 @@ const serializeAws_restJson1UpdateChannelCommand = async (input, context) => {
643
635
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateChannel";
644
636
  let body;
645
637
  body = JSON.stringify({
646
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
647
- ...(input.authorized !== undefined && input.authorized !== null && { authorized: input.authorized }),
648
- ...(input.latencyMode !== undefined && input.latencyMode !== null && { latencyMode: input.latencyMode }),
649
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
650
- ...(input.recordingConfigurationArn !== undefined &&
651
- input.recordingConfigurationArn !== null && { recordingConfigurationArn: input.recordingConfigurationArn }),
652
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
638
+ ...(input.arn != null && { arn: input.arn }),
639
+ ...(input.authorized != null && { authorized: input.authorized }),
640
+ ...(input.latencyMode != null && { latencyMode: input.latencyMode }),
641
+ ...(input.name != null && { name: input.name }),
642
+ ...(input.recordingConfigurationArn != null && { recordingConfigurationArn: input.recordingConfigurationArn }),
643
+ ...(input.type != null && { type: input.type }),
653
644
  });
654
645
  return new protocol_http_1.HttpRequest({
655
646
  protocol,
@@ -2075,18 +2066,17 @@ const serializeAws_restJson1ChannelArnList = (input, context) => {
2075
2066
  };
2076
2067
  const serializeAws_restJson1DestinationConfiguration = (input, context) => {
2077
2068
  return {
2078
- ...(input.s3 !== undefined &&
2079
- input.s3 !== null && { s3: serializeAws_restJson1S3DestinationConfiguration(input.s3, context) }),
2069
+ ...(input.s3 != null && { s3: serializeAws_restJson1S3DestinationConfiguration(input.s3, context) }),
2080
2070
  };
2081
2071
  };
2082
2072
  const serializeAws_restJson1S3DestinationConfiguration = (input, context) => {
2083
2073
  return {
2084
- ...(input.bucketName !== undefined && input.bucketName !== null && { bucketName: input.bucketName }),
2074
+ ...(input.bucketName != null && { bucketName: input.bucketName }),
2085
2075
  };
2086
2076
  };
2087
2077
  const serializeAws_restJson1StreamFilters = (input, context) => {
2088
2078
  return {
2089
- ...(input.health !== undefined && input.health !== null && { health: input.health }),
2079
+ ...(input.health != null && { health: input.health }),
2090
2080
  };
2091
2081
  };
2092
2082
  const serializeAws_restJson1StreamKeyArnList = (input, context) => {
@@ -2112,9 +2102,8 @@ const serializeAws_restJson1Tags = (input, context) => {
2112
2102
  };
2113
2103
  const serializeAws_restJson1ThumbnailConfiguration = (input, context) => {
2114
2104
  return {
2115
- ...(input.recordingMode !== undefined && input.recordingMode !== null && { recordingMode: input.recordingMode }),
2116
- ...(input.targetIntervalSeconds !== undefined &&
2117
- input.targetIntervalSeconds !== null && { targetIntervalSeconds: input.targetIntervalSeconds }),
2105
+ ...(input.recordingMode != null && { recordingMode: input.recordingMode }),
2106
+ ...(input.targetIntervalSeconds != null && { targetIntervalSeconds: input.targetIntervalSeconds }),
2118
2107
  };
2119
2108
  };
2120
2109
  const deserializeAws_restJson1AudioConfiguration = (output, context) => {
@@ -2152,9 +2141,7 @@ const deserializeAws_restJson1Channel = (output, context) => {
2152
2141
  name: (0, smithy_client_1.expectString)(output.name),
2153
2142
  playbackUrl: (0, smithy_client_1.expectString)(output.playbackUrl),
2154
2143
  recordingConfigurationArn: (0, smithy_client_1.expectString)(output.recordingConfigurationArn),
2155
- tags: output.tags !== undefined && output.tags !== null
2156
- ? deserializeAws_restJson1Tags(output.tags, context)
2157
- : undefined,
2144
+ tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2158
2145
  type: (0, smithy_client_1.expectString)(output.type),
2159
2146
  };
2160
2147
  };
@@ -2187,26 +2174,18 @@ const deserializeAws_restJson1ChannelSummary = (output, context) => {
2187
2174
  latencyMode: (0, smithy_client_1.expectString)(output.latencyMode),
2188
2175
  name: (0, smithy_client_1.expectString)(output.name),
2189
2176
  recordingConfigurationArn: (0, smithy_client_1.expectString)(output.recordingConfigurationArn),
2190
- tags: output.tags !== undefined && output.tags !== null
2191
- ? deserializeAws_restJson1Tags(output.tags, context)
2192
- : undefined,
2177
+ tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2193
2178
  };
2194
2179
  };
2195
2180
  const deserializeAws_restJson1DestinationConfiguration = (output, context) => {
2196
2181
  return {
2197
- s3: output.s3 !== undefined && output.s3 !== null
2198
- ? deserializeAws_restJson1S3DestinationConfiguration(output.s3, context)
2199
- : undefined,
2182
+ s3: output.s3 != null ? deserializeAws_restJson1S3DestinationConfiguration(output.s3, context) : undefined,
2200
2183
  };
2201
2184
  };
2202
2185
  const deserializeAws_restJson1IngestConfiguration = (output, context) => {
2203
2186
  return {
2204
- audio: output.audio !== undefined && output.audio !== null
2205
- ? deserializeAws_restJson1AudioConfiguration(output.audio, context)
2206
- : undefined,
2207
- video: output.video !== undefined && output.video !== null
2208
- ? deserializeAws_restJson1VideoConfiguration(output.video, context)
2209
- : undefined,
2187
+ audio: output.audio != null ? deserializeAws_restJson1AudioConfiguration(output.audio, context) : undefined,
2188
+ video: output.video != null ? deserializeAws_restJson1VideoConfiguration(output.video, context) : undefined,
2210
2189
  };
2211
2190
  };
2212
2191
  const deserializeAws_restJson1PlaybackKeyPair = (output, context) => {
@@ -2214,9 +2193,7 @@ const deserializeAws_restJson1PlaybackKeyPair = (output, context) => {
2214
2193
  arn: (0, smithy_client_1.expectString)(output.arn),
2215
2194
  fingerprint: (0, smithy_client_1.expectString)(output.fingerprint),
2216
2195
  name: (0, smithy_client_1.expectString)(output.name),
2217
- tags: output.tags !== undefined && output.tags !== null
2218
- ? deserializeAws_restJson1Tags(output.tags, context)
2219
- : undefined,
2196
+ tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2220
2197
  };
2221
2198
  };
2222
2199
  const deserializeAws_restJson1PlaybackKeyPairList = (output, context) => {
@@ -2234,23 +2211,19 @@ const deserializeAws_restJson1PlaybackKeyPairSummary = (output, context) => {
2234
2211
  return {
2235
2212
  arn: (0, smithy_client_1.expectString)(output.arn),
2236
2213
  name: (0, smithy_client_1.expectString)(output.name),
2237
- tags: output.tags !== undefined && output.tags !== null
2238
- ? deserializeAws_restJson1Tags(output.tags, context)
2239
- : undefined,
2214
+ tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2240
2215
  };
2241
2216
  };
2242
2217
  const deserializeAws_restJson1RecordingConfiguration = (output, context) => {
2243
2218
  return {
2244
2219
  arn: (0, smithy_client_1.expectString)(output.arn),
2245
- destinationConfiguration: output.destinationConfiguration !== undefined && output.destinationConfiguration !== null
2220
+ destinationConfiguration: output.destinationConfiguration != null
2246
2221
  ? deserializeAws_restJson1DestinationConfiguration(output.destinationConfiguration, context)
2247
2222
  : undefined,
2248
2223
  name: (0, smithy_client_1.expectString)(output.name),
2249
2224
  state: (0, smithy_client_1.expectString)(output.state),
2250
- tags: output.tags !== undefined && output.tags !== null
2251
- ? deserializeAws_restJson1Tags(output.tags, context)
2252
- : undefined,
2253
- thumbnailConfiguration: output.thumbnailConfiguration !== undefined && output.thumbnailConfiguration !== null
2225
+ tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2226
+ thumbnailConfiguration: output.thumbnailConfiguration != null
2254
2227
  ? deserializeAws_restJson1ThumbnailConfiguration(output.thumbnailConfiguration, context)
2255
2228
  : undefined,
2256
2229
  };
@@ -2269,14 +2242,12 @@ const deserializeAws_restJson1RecordingConfigurationList = (output, context) =>
2269
2242
  const deserializeAws_restJson1RecordingConfigurationSummary = (output, context) => {
2270
2243
  return {
2271
2244
  arn: (0, smithy_client_1.expectString)(output.arn),
2272
- destinationConfiguration: output.destinationConfiguration !== undefined && output.destinationConfiguration !== null
2245
+ destinationConfiguration: output.destinationConfiguration != null
2273
2246
  ? deserializeAws_restJson1DestinationConfiguration(output.destinationConfiguration, context)
2274
2247
  : undefined,
2275
2248
  name: (0, smithy_client_1.expectString)(output.name),
2276
2249
  state: (0, smithy_client_1.expectString)(output.state),
2277
- tags: output.tags !== undefined && output.tags !== null
2278
- ? deserializeAws_restJson1Tags(output.tags, context)
2279
- : undefined,
2250
+ tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2280
2251
  };
2281
2252
  };
2282
2253
  const deserializeAws_restJson1S3DestinationConfiguration = (output, context) => {
@@ -2289,9 +2260,7 @@ const deserializeAws_restJson1_Stream = (output, context) => {
2289
2260
  channelArn: (0, smithy_client_1.expectString)(output.channelArn),
2290
2261
  health: (0, smithy_client_1.expectString)(output.health),
2291
2262
  playbackUrl: (0, smithy_client_1.expectString)(output.playbackUrl),
2292
- startTime: output.startTime !== undefined && output.startTime !== null
2293
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.startTime))
2294
- : undefined,
2263
+ startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.startTime)) : undefined,
2295
2264
  state: (0, smithy_client_1.expectString)(output.state),
2296
2265
  streamId: (0, smithy_client_1.expectString)(output.streamId),
2297
2266
  viewerCount: (0, smithy_client_1.expectLong)(output.viewerCount),
@@ -2299,9 +2268,7 @@ const deserializeAws_restJson1_Stream = (output, context) => {
2299
2268
  };
2300
2269
  const deserializeAws_restJson1StreamEvent = (output, context) => {
2301
2270
  return {
2302
- eventTime: output.eventTime !== undefined && output.eventTime !== null
2303
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.eventTime))
2304
- : undefined,
2271
+ eventTime: output.eventTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.eventTime)) : undefined,
2305
2272
  name: (0, smithy_client_1.expectString)(output.name),
2306
2273
  type: (0, smithy_client_1.expectString)(output.type),
2307
2274
  };
@@ -2321,9 +2288,7 @@ const deserializeAws_restJson1StreamKey = (output, context) => {
2321
2288
  return {
2322
2289
  arn: (0, smithy_client_1.expectString)(output.arn),
2323
2290
  channelArn: (0, smithy_client_1.expectString)(output.channelArn),
2324
- tags: output.tags !== undefined && output.tags !== null
2325
- ? deserializeAws_restJson1Tags(output.tags, context)
2326
- : undefined,
2291
+ tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2327
2292
  value: (0, smithy_client_1.expectString)(output.value),
2328
2293
  };
2329
2294
  };
@@ -2353,9 +2318,7 @@ const deserializeAws_restJson1StreamKeySummary = (output, context) => {
2353
2318
  return {
2354
2319
  arn: (0, smithy_client_1.expectString)(output.arn),
2355
2320
  channelArn: (0, smithy_client_1.expectString)(output.channelArn),
2356
- tags: output.tags !== undefined && output.tags !== null
2357
- ? deserializeAws_restJson1Tags(output.tags, context)
2358
- : undefined,
2321
+ tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2359
2322
  };
2360
2323
  };
2361
2324
  const deserializeAws_restJson1StreamList = (output, context) => {
@@ -2371,23 +2334,17 @@ const deserializeAws_restJson1StreamList = (output, context) => {
2371
2334
  };
2372
2335
  const deserializeAws_restJson1StreamSession = (output, context) => {
2373
2336
  return {
2374
- channel: output.channel !== undefined && output.channel !== null
2375
- ? deserializeAws_restJson1Channel(output.channel, context)
2376
- : undefined,
2377
- endTime: output.endTime !== undefined && output.endTime !== null
2378
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.endTime))
2379
- : undefined,
2380
- ingestConfiguration: output.ingestConfiguration !== undefined && output.ingestConfiguration !== null
2337
+ channel: output.channel != null ? deserializeAws_restJson1Channel(output.channel, context) : undefined,
2338
+ endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.endTime)) : undefined,
2339
+ ingestConfiguration: output.ingestConfiguration != null
2381
2340
  ? deserializeAws_restJson1IngestConfiguration(output.ingestConfiguration, context)
2382
2341
  : undefined,
2383
- recordingConfiguration: output.recordingConfiguration !== undefined && output.recordingConfiguration !== null
2342
+ recordingConfiguration: output.recordingConfiguration != null
2384
2343
  ? deserializeAws_restJson1RecordingConfiguration(output.recordingConfiguration, context)
2385
2344
  : undefined,
2386
- startTime: output.startTime !== undefined && output.startTime !== null
2387
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.startTime))
2388
- : undefined,
2345
+ startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.startTime)) : undefined,
2389
2346
  streamId: (0, smithy_client_1.expectString)(output.streamId),
2390
- truncatedEvents: output.truncatedEvents !== undefined && output.truncatedEvents !== null
2347
+ truncatedEvents: output.truncatedEvents != null
2391
2348
  ? deserializeAws_restJson1StreamEvents(output.truncatedEvents, context)
2392
2349
  : undefined,
2393
2350
  };
@@ -2405,13 +2362,9 @@ const deserializeAws_restJson1StreamSessionList = (output, context) => {
2405
2362
  };
2406
2363
  const deserializeAws_restJson1StreamSessionSummary = (output, context) => {
2407
2364
  return {
2408
- endTime: output.endTime !== undefined && output.endTime !== null
2409
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.endTime))
2410
- : undefined,
2365
+ endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.endTime)) : undefined,
2411
2366
  hasErrorEvent: (0, smithy_client_1.expectBoolean)(output.hasErrorEvent),
2412
- startTime: output.startTime !== undefined && output.startTime !== null
2413
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.startTime))
2414
- : undefined,
2367
+ startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.startTime)) : undefined,
2415
2368
  streamId: (0, smithy_client_1.expectString)(output.streamId),
2416
2369
  };
2417
2370
  };
@@ -2419,9 +2372,7 @@ const deserializeAws_restJson1StreamSummary = (output, context) => {
2419
2372
  return {
2420
2373
  channelArn: (0, smithy_client_1.expectString)(output.channelArn),
2421
2374
  health: (0, smithy_client_1.expectString)(output.health),
2422
- startTime: output.startTime !== undefined && output.startTime !== null
2423
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.startTime))
2424
- : undefined,
2375
+ startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.startTime)) : undefined,
2425
2376
  state: (0, smithy_client_1.expectString)(output.state),
2426
2377
  streamId: (0, smithy_client_1.expectString)(output.streamId),
2427
2378
  viewerCount: (0, smithy_client_1.expectLong)(output.viewerCount),
@@ -14,8 +14,7 @@ export var serializeAws_restJson1BatchGetChannelCommand = function (input, conte
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 || "") + "/BatchGetChannel";
17
- body = JSON.stringify(__assign({}, (input.arns !== undefined &&
18
- input.arns !== null && { arns: serializeAws_restJson1ChannelArnList(input.arns, context) })));
17
+ body = JSON.stringify(__assign({}, (input.arns != null && { arns: serializeAws_restJson1ChannelArnList(input.arns, context) })));
19
18
  return [2, new __HttpRequest({
20
19
  protocol: protocol,
21
20
  hostname: hostname,
@@ -39,8 +38,7 @@ export var serializeAws_restJson1BatchGetStreamKeyCommand = function (input, con
39
38
  "content-type": "application/json",
40
39
  };
41
40
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/BatchGetStreamKey";
42
- body = JSON.stringify(__assign({}, (input.arns !== undefined &&
43
- input.arns !== null && { arns: serializeAws_restJson1StreamKeyArnList(input.arns, context) })));
41
+ body = JSON.stringify(__assign({}, (input.arns != null && { arns: serializeAws_restJson1StreamKeyArnList(input.arns, context) })));
44
42
  return [2, new __HttpRequest({
45
43
  protocol: protocol,
46
44
  hostname: hostname,
@@ -64,8 +62,7 @@ export var serializeAws_restJson1CreateChannelCommand = function (input, context
64
62
  "content-type": "application/json",
65
63
  };
66
64
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateChannel";
67
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.authorized !== undefined && input.authorized !== null && { authorized: input.authorized })), (input.latencyMode !== undefined && input.latencyMode !== null && { latencyMode: input.latencyMode })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.recordingConfigurationArn !== undefined &&
68
- input.recordingConfigurationArn !== null && { recordingConfigurationArn: input.recordingConfigurationArn })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1Tags(input.tags, context) })), (input.type !== undefined && input.type !== null && { type: input.type })));
65
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.authorized != null && { authorized: input.authorized })), (input.latencyMode != null && { latencyMode: input.latencyMode })), (input.name != null && { name: input.name })), (input.recordingConfigurationArn != null && { recordingConfigurationArn: input.recordingConfigurationArn })), (input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) })), (input.type != null && { type: input.type })));
69
66
  return [2, new __HttpRequest({
70
67
  protocol: protocol,
71
68
  hostname: hostname,
@@ -89,11 +86,9 @@ export var serializeAws_restJson1CreateRecordingConfigurationCommand = function
89
86
  "content-type": "application/json",
90
87
  };
91
88
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateRecordingConfiguration";
92
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.destinationConfiguration !== undefined &&
93
- input.destinationConfiguration !== null && {
89
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.destinationConfiguration != null && {
94
90
  destinationConfiguration: serializeAws_restJson1DestinationConfiguration(input.destinationConfiguration, context),
95
- })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1Tags(input.tags, context) })), (input.thumbnailConfiguration !== undefined &&
96
- input.thumbnailConfiguration !== null && {
91
+ })), (input.name != null && { name: input.name })), (input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) })), (input.thumbnailConfiguration != null && {
97
92
  thumbnailConfiguration: serializeAws_restJson1ThumbnailConfiguration(input.thumbnailConfiguration, context),
98
93
  })));
99
94
  return [2, new __HttpRequest({
@@ -119,7 +114,7 @@ export var serializeAws_restJson1CreateStreamKeyCommand = function (input, conte
119
114
  "content-type": "application/json",
120
115
  };
121
116
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateStreamKey";
122
- body = JSON.stringify(__assign(__assign({}, (input.channelArn !== undefined && input.channelArn !== null && { channelArn: input.channelArn })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
117
+ body = JSON.stringify(__assign(__assign({}, (input.channelArn != null && { channelArn: input.channelArn })), (input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
123
118
  return [2, new __HttpRequest({
124
119
  protocol: protocol,
125
120
  hostname: hostname,
@@ -143,7 +138,7 @@ export var serializeAws_restJson1DeleteChannelCommand = function (input, context
143
138
  "content-type": "application/json",
144
139
  };
145
140
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteChannel";
146
- body = JSON.stringify(__assign({}, (input.arn !== undefined && input.arn !== null && { arn: input.arn })));
141
+ body = JSON.stringify(__assign({}, (input.arn != null && { arn: input.arn })));
147
142
  return [2, new __HttpRequest({
148
143
  protocol: protocol,
149
144
  hostname: hostname,
@@ -167,7 +162,7 @@ export var serializeAws_restJson1DeletePlaybackKeyPairCommand = function (input,
167
162
  "content-type": "application/json",
168
163
  };
169
164
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeletePlaybackKeyPair";
170
- body = JSON.stringify(__assign({}, (input.arn !== undefined && input.arn !== null && { arn: input.arn })));
165
+ body = JSON.stringify(__assign({}, (input.arn != null && { arn: input.arn })));
171
166
  return [2, new __HttpRequest({
172
167
  protocol: protocol,
173
168
  hostname: hostname,
@@ -191,7 +186,7 @@ export var serializeAws_restJson1DeleteRecordingConfigurationCommand = function
191
186
  "content-type": "application/json",
192
187
  };
193
188
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteRecordingConfiguration";
194
- body = JSON.stringify(__assign({}, (input.arn !== undefined && input.arn !== null && { arn: input.arn })));
189
+ body = JSON.stringify(__assign({}, (input.arn != null && { arn: input.arn })));
195
190
  return [2, new __HttpRequest({
196
191
  protocol: protocol,
197
192
  hostname: hostname,
@@ -215,7 +210,7 @@ export var serializeAws_restJson1DeleteStreamKeyCommand = function (input, conte
215
210
  "content-type": "application/json",
216
211
  };
217
212
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteStreamKey";
218
- body = JSON.stringify(__assign({}, (input.arn !== undefined && input.arn !== null && { arn: input.arn })));
213
+ body = JSON.stringify(__assign({}, (input.arn != null && { arn: input.arn })));
219
214
  return [2, new __HttpRequest({
220
215
  protocol: protocol,
221
216
  hostname: hostname,
@@ -239,7 +234,7 @@ export var serializeAws_restJson1GetChannelCommand = function (input, context) {
239
234
  "content-type": "application/json",
240
235
  };
241
236
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetChannel";
242
- body = JSON.stringify(__assign({}, (input.arn !== undefined && input.arn !== null && { arn: input.arn })));
237
+ body = JSON.stringify(__assign({}, (input.arn != null && { arn: input.arn })));
243
238
  return [2, new __HttpRequest({
244
239
  protocol: protocol,
245
240
  hostname: hostname,
@@ -263,7 +258,7 @@ export var serializeAws_restJson1GetPlaybackKeyPairCommand = function (input, co
263
258
  "content-type": "application/json",
264
259
  };
265
260
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetPlaybackKeyPair";
266
- body = JSON.stringify(__assign({}, (input.arn !== undefined && input.arn !== null && { arn: input.arn })));
261
+ body = JSON.stringify(__assign({}, (input.arn != null && { arn: input.arn })));
267
262
  return [2, new __HttpRequest({
268
263
  protocol: protocol,
269
264
  hostname: hostname,
@@ -287,7 +282,7 @@ export var serializeAws_restJson1GetRecordingConfigurationCommand = function (in
287
282
  "content-type": "application/json",
288
283
  };
289
284
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetRecordingConfiguration";
290
- body = JSON.stringify(__assign({}, (input.arn !== undefined && input.arn !== null && { arn: input.arn })));
285
+ body = JSON.stringify(__assign({}, (input.arn != null && { arn: input.arn })));
291
286
  return [2, new __HttpRequest({
292
287
  protocol: protocol,
293
288
  hostname: hostname,
@@ -311,7 +306,7 @@ export var serializeAws_restJson1GetStreamCommand = function (input, context) {
311
306
  "content-type": "application/json",
312
307
  };
313
308
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetStream";
314
- body = JSON.stringify(__assign({}, (input.channelArn !== undefined && input.channelArn !== null && { channelArn: input.channelArn })));
309
+ body = JSON.stringify(__assign({}, (input.channelArn != null && { channelArn: input.channelArn })));
315
310
  return [2, new __HttpRequest({
316
311
  protocol: protocol,
317
312
  hostname: hostname,
@@ -335,7 +330,7 @@ export var serializeAws_restJson1GetStreamKeyCommand = function (input, context)
335
330
  "content-type": "application/json",
336
331
  };
337
332
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetStreamKey";
338
- body = JSON.stringify(__assign({}, (input.arn !== undefined && input.arn !== null && { arn: input.arn })));
333
+ body = JSON.stringify(__assign({}, (input.arn != null && { arn: input.arn })));
339
334
  return [2, new __HttpRequest({
340
335
  protocol: protocol,
341
336
  hostname: hostname,
@@ -359,7 +354,7 @@ export var serializeAws_restJson1GetStreamSessionCommand = function (input, cont
359
354
  "content-type": "application/json",
360
355
  };
361
356
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetStreamSession";
362
- body = JSON.stringify(__assign(__assign({}, (input.channelArn !== undefined && input.channelArn !== null && { channelArn: input.channelArn })), (input.streamId !== undefined && input.streamId !== null && { streamId: input.streamId })));
357
+ body = JSON.stringify(__assign(__assign({}, (input.channelArn != null && { channelArn: input.channelArn })), (input.streamId != null && { streamId: input.streamId })));
363
358
  return [2, new __HttpRequest({
364
359
  protocol: protocol,
365
360
  hostname: hostname,
@@ -383,8 +378,7 @@ export var serializeAws_restJson1ImportPlaybackKeyPairCommand = function (input,
383
378
  "content-type": "application/json",
384
379
  };
385
380
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ImportPlaybackKeyPair";
386
- body = JSON.stringify(__assign(__assign(__assign({}, (input.name !== undefined && input.name !== null && { name: input.name })), (input.publicKeyMaterial !== undefined &&
387
- input.publicKeyMaterial !== null && { publicKeyMaterial: input.publicKeyMaterial })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
381
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.name != null && { name: input.name })), (input.publicKeyMaterial != null && { publicKeyMaterial: input.publicKeyMaterial })), (input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
388
382
  return [2, new __HttpRequest({
389
383
  protocol: protocol,
390
384
  hostname: hostname,
@@ -408,10 +402,9 @@ export var serializeAws_restJson1ListChannelsCommand = function (input, context)
408
402
  "content-type": "application/json",
409
403
  };
410
404
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListChannels";
411
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filterByName !== undefined && input.filterByName !== null && { filterByName: input.filterByName })), (input.filterByRecordingConfigurationArn !== undefined &&
412
- input.filterByRecordingConfigurationArn !== null && {
405
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filterByName != null && { filterByName: input.filterByName })), (input.filterByRecordingConfigurationArn != null && {
413
406
  filterByRecordingConfigurationArn: input.filterByRecordingConfigurationArn,
414
- })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
407
+ })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
415
408
  return [2, new __HttpRequest({
416
409
  protocol: protocol,
417
410
  hostname: hostname,
@@ -435,7 +428,7 @@ export var serializeAws_restJson1ListPlaybackKeyPairsCommand = function (input,
435
428
  "content-type": "application/json",
436
429
  };
437
430
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListPlaybackKeyPairs";
438
- body = JSON.stringify(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
431
+ body = JSON.stringify(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
439
432
  return [2, new __HttpRequest({
440
433
  protocol: protocol,
441
434
  hostname: hostname,
@@ -459,7 +452,7 @@ export var serializeAws_restJson1ListRecordingConfigurationsCommand = function (
459
452
  "content-type": "application/json",
460
453
  };
461
454
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListRecordingConfigurations";
462
- body = JSON.stringify(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
455
+ body = JSON.stringify(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
463
456
  return [2, new __HttpRequest({
464
457
  protocol: protocol,
465
458
  hostname: hostname,
@@ -483,7 +476,7 @@ export var serializeAws_restJson1ListStreamKeysCommand = function (input, contex
483
476
  "content-type": "application/json",
484
477
  };
485
478
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListStreamKeys";
486
- body = JSON.stringify(__assign(__assign(__assign({}, (input.channelArn !== undefined && input.channelArn !== null && { channelArn: input.channelArn })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
479
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.channelArn != null && { channelArn: input.channelArn })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
487
480
  return [2, new __HttpRequest({
488
481
  protocol: protocol,
489
482
  hostname: hostname,
@@ -507,8 +500,7 @@ export var serializeAws_restJson1ListStreamsCommand = function (input, context)
507
500
  "content-type": "application/json",
508
501
  };
509
502
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListStreams";
510
- body = JSON.stringify(__assign(__assign(__assign({}, (input.filterBy !== undefined &&
511
- input.filterBy !== null && { filterBy: serializeAws_restJson1StreamFilters(input.filterBy, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
503
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.filterBy != null && { filterBy: serializeAws_restJson1StreamFilters(input.filterBy, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
512
504
  return [2, new __HttpRequest({
513
505
  protocol: protocol,
514
506
  hostname: hostname,
@@ -532,7 +524,7 @@ export var serializeAws_restJson1ListStreamSessionsCommand = function (input, co
532
524
  "content-type": "application/json",
533
525
  };
534
526
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListStreamSessions";
535
- body = JSON.stringify(__assign(__assign(__assign({}, (input.channelArn !== undefined && input.channelArn !== null && { channelArn: input.channelArn })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
527
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.channelArn != null && { channelArn: input.channelArn })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
536
528
  return [2, new __HttpRequest({
537
529
  protocol: protocol,
538
530
  hostname: hostname,
@@ -587,7 +579,7 @@ export var serializeAws_restJson1PutMetadataCommand = function (input, context)
587
579
  "content-type": "application/json",
588
580
  };
589
581
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/PutMetadata";
590
- body = JSON.stringify(__assign(__assign({}, (input.channelArn !== undefined && input.channelArn !== null && { channelArn: input.channelArn })), (input.metadata !== undefined && input.metadata !== null && { metadata: input.metadata })));
582
+ body = JSON.stringify(__assign(__assign({}, (input.channelArn != null && { channelArn: input.channelArn })), (input.metadata != null && { metadata: input.metadata })));
591
583
  return [2, new __HttpRequest({
592
584
  protocol: protocol,
593
585
  hostname: hostname,
@@ -611,7 +603,7 @@ export var serializeAws_restJson1StopStreamCommand = function (input, context) {
611
603
  "content-type": "application/json",
612
604
  };
613
605
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/StopStream";
614
- body = JSON.stringify(__assign({}, (input.channelArn !== undefined && input.channelArn !== null && { channelArn: input.channelArn })));
606
+ body = JSON.stringify(__assign({}, (input.channelArn != null && { channelArn: input.channelArn })));
615
607
  return [2, new __HttpRequest({
616
608
  protocol: protocol,
617
609
  hostname: hostname,
@@ -645,7 +637,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
645
637
  else {
646
638
  throw new Error("No value provided for input HTTP label: resourceArn.");
647
639
  }
648
- body = JSON.stringify(__assign({}, (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
640
+ body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
649
641
  return [2, new __HttpRequest({
650
642
  protocol: protocol,
651
643
  hostname: hostname,
@@ -702,8 +694,7 @@ export var serializeAws_restJson1UpdateChannelCommand = function (input, context
702
694
  "content-type": "application/json",
703
695
  };
704
696
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/UpdateChannel";
705
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.arn !== undefined && input.arn !== null && { arn: input.arn })), (input.authorized !== undefined && input.authorized !== null && { authorized: input.authorized })), (input.latencyMode !== undefined && input.latencyMode !== null && { latencyMode: input.latencyMode })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.recordingConfigurationArn !== undefined &&
706
- input.recordingConfigurationArn !== null && { recordingConfigurationArn: input.recordingConfigurationArn })), (input.type !== undefined && input.type !== null && { type: input.type })));
697
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.arn != null && { arn: input.arn })), (input.authorized != null && { authorized: input.authorized })), (input.latencyMode != null && { latencyMode: input.latencyMode })), (input.name != null && { name: input.name })), (input.recordingConfigurationArn != null && { recordingConfigurationArn: input.recordingConfigurationArn })), (input.type != null && { type: input.type })));
707
698
  return [2, new __HttpRequest({
708
699
  protocol: protocol,
709
700
  hostname: hostname,
@@ -2713,14 +2704,13 @@ var serializeAws_restJson1ChannelArnList = function (input, context) {
2713
2704
  });
2714
2705
  };
2715
2706
  var serializeAws_restJson1DestinationConfiguration = function (input, context) {
2716
- return __assign({}, (input.s3 !== undefined &&
2717
- input.s3 !== null && { s3: serializeAws_restJson1S3DestinationConfiguration(input.s3, context) }));
2707
+ return __assign({}, (input.s3 != null && { s3: serializeAws_restJson1S3DestinationConfiguration(input.s3, context) }));
2718
2708
  };
2719
2709
  var serializeAws_restJson1S3DestinationConfiguration = function (input, context) {
2720
- return __assign({}, (input.bucketName !== undefined && input.bucketName !== null && { bucketName: input.bucketName }));
2710
+ return __assign({}, (input.bucketName != null && { bucketName: input.bucketName }));
2721
2711
  };
2722
2712
  var serializeAws_restJson1StreamFilters = function (input, context) {
2723
- return __assign({}, (input.health !== undefined && input.health !== null && { health: input.health }));
2713
+ return __assign({}, (input.health != null && { health: input.health }));
2724
2714
  };
2725
2715
  var serializeAws_restJson1StreamKeyArnList = function (input, context) {
2726
2716
  return input
@@ -2743,8 +2733,7 @@ var serializeAws_restJson1Tags = function (input, context) {
2743
2733
  }, {});
2744
2734
  };
2745
2735
  var serializeAws_restJson1ThumbnailConfiguration = function (input, context) {
2746
- return __assign(__assign({}, (input.recordingMode !== undefined && input.recordingMode !== null && { recordingMode: input.recordingMode })), (input.targetIntervalSeconds !== undefined &&
2747
- input.targetIntervalSeconds !== null && { targetIntervalSeconds: input.targetIntervalSeconds }));
2736
+ return __assign(__assign({}, (input.recordingMode != null && { recordingMode: input.recordingMode })), (input.targetIntervalSeconds != null && { targetIntervalSeconds: input.targetIntervalSeconds }));
2748
2737
  };
2749
2738
  var deserializeAws_restJson1AudioConfiguration = function (output, context) {
2750
2739
  return {
@@ -2781,9 +2770,7 @@ var deserializeAws_restJson1Channel = function (output, context) {
2781
2770
  name: __expectString(output.name),
2782
2771
  playbackUrl: __expectString(output.playbackUrl),
2783
2772
  recordingConfigurationArn: __expectString(output.recordingConfigurationArn),
2784
- tags: output.tags !== undefined && output.tags !== null
2785
- ? deserializeAws_restJson1Tags(output.tags, context)
2786
- : undefined,
2773
+ tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2787
2774
  type: __expectString(output.type),
2788
2775
  };
2789
2776
  };
@@ -2816,26 +2803,18 @@ var deserializeAws_restJson1ChannelSummary = function (output, context) {
2816
2803
  latencyMode: __expectString(output.latencyMode),
2817
2804
  name: __expectString(output.name),
2818
2805
  recordingConfigurationArn: __expectString(output.recordingConfigurationArn),
2819
- tags: output.tags !== undefined && output.tags !== null
2820
- ? deserializeAws_restJson1Tags(output.tags, context)
2821
- : undefined,
2806
+ tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2822
2807
  };
2823
2808
  };
2824
2809
  var deserializeAws_restJson1DestinationConfiguration = function (output, context) {
2825
2810
  return {
2826
- s3: output.s3 !== undefined && output.s3 !== null
2827
- ? deserializeAws_restJson1S3DestinationConfiguration(output.s3, context)
2828
- : undefined,
2811
+ s3: output.s3 != null ? deserializeAws_restJson1S3DestinationConfiguration(output.s3, context) : undefined,
2829
2812
  };
2830
2813
  };
2831
2814
  var deserializeAws_restJson1IngestConfiguration = function (output, context) {
2832
2815
  return {
2833
- audio: output.audio !== undefined && output.audio !== null
2834
- ? deserializeAws_restJson1AudioConfiguration(output.audio, context)
2835
- : undefined,
2836
- video: output.video !== undefined && output.video !== null
2837
- ? deserializeAws_restJson1VideoConfiguration(output.video, context)
2838
- : undefined,
2816
+ audio: output.audio != null ? deserializeAws_restJson1AudioConfiguration(output.audio, context) : undefined,
2817
+ video: output.video != null ? deserializeAws_restJson1VideoConfiguration(output.video, context) : undefined,
2839
2818
  };
2840
2819
  };
2841
2820
  var deserializeAws_restJson1PlaybackKeyPair = function (output, context) {
@@ -2843,9 +2822,7 @@ var deserializeAws_restJson1PlaybackKeyPair = function (output, context) {
2843
2822
  arn: __expectString(output.arn),
2844
2823
  fingerprint: __expectString(output.fingerprint),
2845
2824
  name: __expectString(output.name),
2846
- tags: output.tags !== undefined && output.tags !== null
2847
- ? deserializeAws_restJson1Tags(output.tags, context)
2848
- : undefined,
2825
+ tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2849
2826
  };
2850
2827
  };
2851
2828
  var deserializeAws_restJson1PlaybackKeyPairList = function (output, context) {
@@ -2863,23 +2840,19 @@ var deserializeAws_restJson1PlaybackKeyPairSummary = function (output, context)
2863
2840
  return {
2864
2841
  arn: __expectString(output.arn),
2865
2842
  name: __expectString(output.name),
2866
- tags: output.tags !== undefined && output.tags !== null
2867
- ? deserializeAws_restJson1Tags(output.tags, context)
2868
- : undefined,
2843
+ tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2869
2844
  };
2870
2845
  };
2871
2846
  var deserializeAws_restJson1RecordingConfiguration = function (output, context) {
2872
2847
  return {
2873
2848
  arn: __expectString(output.arn),
2874
- destinationConfiguration: output.destinationConfiguration !== undefined && output.destinationConfiguration !== null
2849
+ destinationConfiguration: output.destinationConfiguration != null
2875
2850
  ? deserializeAws_restJson1DestinationConfiguration(output.destinationConfiguration, context)
2876
2851
  : undefined,
2877
2852
  name: __expectString(output.name),
2878
2853
  state: __expectString(output.state),
2879
- tags: output.tags !== undefined && output.tags !== null
2880
- ? deserializeAws_restJson1Tags(output.tags, context)
2881
- : undefined,
2882
- thumbnailConfiguration: output.thumbnailConfiguration !== undefined && output.thumbnailConfiguration !== null
2854
+ tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2855
+ thumbnailConfiguration: output.thumbnailConfiguration != null
2883
2856
  ? deserializeAws_restJson1ThumbnailConfiguration(output.thumbnailConfiguration, context)
2884
2857
  : undefined,
2885
2858
  };
@@ -2898,14 +2871,12 @@ var deserializeAws_restJson1RecordingConfigurationList = function (output, conte
2898
2871
  var deserializeAws_restJson1RecordingConfigurationSummary = function (output, context) {
2899
2872
  return {
2900
2873
  arn: __expectString(output.arn),
2901
- destinationConfiguration: output.destinationConfiguration !== undefined && output.destinationConfiguration !== null
2874
+ destinationConfiguration: output.destinationConfiguration != null
2902
2875
  ? deserializeAws_restJson1DestinationConfiguration(output.destinationConfiguration, context)
2903
2876
  : undefined,
2904
2877
  name: __expectString(output.name),
2905
2878
  state: __expectString(output.state),
2906
- tags: output.tags !== undefined && output.tags !== null
2907
- ? deserializeAws_restJson1Tags(output.tags, context)
2908
- : undefined,
2879
+ tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2909
2880
  };
2910
2881
  };
2911
2882
  var deserializeAws_restJson1S3DestinationConfiguration = function (output, context) {
@@ -2918,9 +2889,7 @@ var deserializeAws_restJson1_Stream = function (output, context) {
2918
2889
  channelArn: __expectString(output.channelArn),
2919
2890
  health: __expectString(output.health),
2920
2891
  playbackUrl: __expectString(output.playbackUrl),
2921
- startTime: output.startTime !== undefined && output.startTime !== null
2922
- ? __expectNonNull(__parseRfc3339DateTime(output.startTime))
2923
- : undefined,
2892
+ startTime: output.startTime != null ? __expectNonNull(__parseRfc3339DateTime(output.startTime)) : undefined,
2924
2893
  state: __expectString(output.state),
2925
2894
  streamId: __expectString(output.streamId),
2926
2895
  viewerCount: __expectLong(output.viewerCount),
@@ -2928,9 +2897,7 @@ var deserializeAws_restJson1_Stream = function (output, context) {
2928
2897
  };
2929
2898
  var deserializeAws_restJson1StreamEvent = function (output, context) {
2930
2899
  return {
2931
- eventTime: output.eventTime !== undefined && output.eventTime !== null
2932
- ? __expectNonNull(__parseRfc3339DateTime(output.eventTime))
2933
- : undefined,
2900
+ eventTime: output.eventTime != null ? __expectNonNull(__parseRfc3339DateTime(output.eventTime)) : undefined,
2934
2901
  name: __expectString(output.name),
2935
2902
  type: __expectString(output.type),
2936
2903
  };
@@ -2950,9 +2917,7 @@ var deserializeAws_restJson1StreamKey = function (output, context) {
2950
2917
  return {
2951
2918
  arn: __expectString(output.arn),
2952
2919
  channelArn: __expectString(output.channelArn),
2953
- tags: output.tags !== undefined && output.tags !== null
2954
- ? deserializeAws_restJson1Tags(output.tags, context)
2955
- : undefined,
2920
+ tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2956
2921
  value: __expectString(output.value),
2957
2922
  };
2958
2923
  };
@@ -2982,9 +2947,7 @@ var deserializeAws_restJson1StreamKeySummary = function (output, context) {
2982
2947
  return {
2983
2948
  arn: __expectString(output.arn),
2984
2949
  channelArn: __expectString(output.channelArn),
2985
- tags: output.tags !== undefined && output.tags !== null
2986
- ? deserializeAws_restJson1Tags(output.tags, context)
2987
- : undefined,
2950
+ tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2988
2951
  };
2989
2952
  };
2990
2953
  var deserializeAws_restJson1StreamList = function (output, context) {
@@ -3000,23 +2963,17 @@ var deserializeAws_restJson1StreamList = function (output, context) {
3000
2963
  };
3001
2964
  var deserializeAws_restJson1StreamSession = function (output, context) {
3002
2965
  return {
3003
- channel: output.channel !== undefined && output.channel !== null
3004
- ? deserializeAws_restJson1Channel(output.channel, context)
3005
- : undefined,
3006
- endTime: output.endTime !== undefined && output.endTime !== null
3007
- ? __expectNonNull(__parseRfc3339DateTime(output.endTime))
3008
- : undefined,
3009
- ingestConfiguration: output.ingestConfiguration !== undefined && output.ingestConfiguration !== null
2966
+ channel: output.channel != null ? deserializeAws_restJson1Channel(output.channel, context) : undefined,
2967
+ endTime: output.endTime != null ? __expectNonNull(__parseRfc3339DateTime(output.endTime)) : undefined,
2968
+ ingestConfiguration: output.ingestConfiguration != null
3010
2969
  ? deserializeAws_restJson1IngestConfiguration(output.ingestConfiguration, context)
3011
2970
  : undefined,
3012
- recordingConfiguration: output.recordingConfiguration !== undefined && output.recordingConfiguration !== null
2971
+ recordingConfiguration: output.recordingConfiguration != null
3013
2972
  ? deserializeAws_restJson1RecordingConfiguration(output.recordingConfiguration, context)
3014
2973
  : undefined,
3015
- startTime: output.startTime !== undefined && output.startTime !== null
3016
- ? __expectNonNull(__parseRfc3339DateTime(output.startTime))
3017
- : undefined,
2974
+ startTime: output.startTime != null ? __expectNonNull(__parseRfc3339DateTime(output.startTime)) : undefined,
3018
2975
  streamId: __expectString(output.streamId),
3019
- truncatedEvents: output.truncatedEvents !== undefined && output.truncatedEvents !== null
2976
+ truncatedEvents: output.truncatedEvents != null
3020
2977
  ? deserializeAws_restJson1StreamEvents(output.truncatedEvents, context)
3021
2978
  : undefined,
3022
2979
  };
@@ -3034,13 +2991,9 @@ var deserializeAws_restJson1StreamSessionList = function (output, context) {
3034
2991
  };
3035
2992
  var deserializeAws_restJson1StreamSessionSummary = function (output, context) {
3036
2993
  return {
3037
- endTime: output.endTime !== undefined && output.endTime !== null
3038
- ? __expectNonNull(__parseRfc3339DateTime(output.endTime))
3039
- : undefined,
2994
+ endTime: output.endTime != null ? __expectNonNull(__parseRfc3339DateTime(output.endTime)) : undefined,
3040
2995
  hasErrorEvent: __expectBoolean(output.hasErrorEvent),
3041
- startTime: output.startTime !== undefined && output.startTime !== null
3042
- ? __expectNonNull(__parseRfc3339DateTime(output.startTime))
3043
- : undefined,
2996
+ startTime: output.startTime != null ? __expectNonNull(__parseRfc3339DateTime(output.startTime)) : undefined,
3044
2997
  streamId: __expectString(output.streamId),
3045
2998
  };
3046
2999
  };
@@ -3048,9 +3001,7 @@ var deserializeAws_restJson1StreamSummary = function (output, context) {
3048
3001
  return {
3049
3002
  channelArn: __expectString(output.channelArn),
3050
3003
  health: __expectString(output.health),
3051
- startTime: output.startTime !== undefined && output.startTime !== null
3052
- ? __expectNonNull(__parseRfc3339DateTime(output.startTime))
3053
- : undefined,
3004
+ startTime: output.startTime != null ? __expectNonNull(__parseRfc3339DateTime(output.startTime)) : undefined,
3054
3005
  state: __expectString(output.state),
3055
3006
  streamId: __expectString(output.streamId),
3056
3007
  viewerCount: __expectLong(output.viewerCount),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ivs",
3
3
  "description": "AWS SDK for JavaScript Ivs Client for Node.js, Browser and React Native",
4
- "version": "3.121.0",
4
+ "version": "3.127.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,35 +18,35 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.121.0",
22
- "@aws-sdk/config-resolver": "3.110.0",
23
- "@aws-sdk/credential-provider-node": "3.121.0",
24
- "@aws-sdk/fetch-http-handler": "3.110.0",
25
- "@aws-sdk/hash-node": "3.110.0",
26
- "@aws-sdk/invalid-dependency": "3.110.0",
27
- "@aws-sdk/middleware-content-length": "3.110.0",
28
- "@aws-sdk/middleware-host-header": "3.110.0",
29
- "@aws-sdk/middleware-logger": "3.110.0",
30
- "@aws-sdk/middleware-recursion-detection": "3.110.0",
31
- "@aws-sdk/middleware-retry": "3.118.1",
32
- "@aws-sdk/middleware-serde": "3.110.0",
33
- "@aws-sdk/middleware-signing": "3.110.0",
34
- "@aws-sdk/middleware-stack": "3.110.0",
35
- "@aws-sdk/middleware-user-agent": "3.110.0",
36
- "@aws-sdk/node-config-provider": "3.110.0",
37
- "@aws-sdk/node-http-handler": "3.118.1",
38
- "@aws-sdk/protocol-http": "3.110.0",
39
- "@aws-sdk/smithy-client": "3.110.0",
40
- "@aws-sdk/types": "3.110.0",
41
- "@aws-sdk/url-parser": "3.110.0",
21
+ "@aws-sdk/client-sts": "3.127.0",
22
+ "@aws-sdk/config-resolver": "3.127.0",
23
+ "@aws-sdk/credential-provider-node": "3.127.0",
24
+ "@aws-sdk/fetch-http-handler": "3.127.0",
25
+ "@aws-sdk/hash-node": "3.127.0",
26
+ "@aws-sdk/invalid-dependency": "3.127.0",
27
+ "@aws-sdk/middleware-content-length": "3.127.0",
28
+ "@aws-sdk/middleware-host-header": "3.127.0",
29
+ "@aws-sdk/middleware-logger": "3.127.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.127.0",
31
+ "@aws-sdk/middleware-retry": "3.127.0",
32
+ "@aws-sdk/middleware-serde": "3.127.0",
33
+ "@aws-sdk/middleware-signing": "3.127.0",
34
+ "@aws-sdk/middleware-stack": "3.127.0",
35
+ "@aws-sdk/middleware-user-agent": "3.127.0",
36
+ "@aws-sdk/node-config-provider": "3.127.0",
37
+ "@aws-sdk/node-http-handler": "3.127.0",
38
+ "@aws-sdk/protocol-http": "3.127.0",
39
+ "@aws-sdk/smithy-client": "3.127.0",
40
+ "@aws-sdk/types": "3.127.0",
41
+ "@aws-sdk/url-parser": "3.127.0",
42
42
  "@aws-sdk/util-base64-browser": "3.109.0",
43
43
  "@aws-sdk/util-base64-node": "3.55.0",
44
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
45
45
  "@aws-sdk/util-body-length-node": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-browser": "3.110.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.110.0",
48
- "@aws-sdk/util-user-agent-browser": "3.110.0",
49
- "@aws-sdk/util-user-agent-node": "3.118.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.127.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.127.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.127.0",
49
+ "@aws-sdk/util-user-agent-node": "3.127.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.109.0",
51
51
  "@aws-sdk/util-utf8-node": "3.109.0",
52
52
  "tslib": "^2.3.1"