@aws-sdk/client-kinesis-video 3.121.0 → 3.130.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,33 @@
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.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **codegen:** fix error code parsing when it's a number ([#3371](https://github.com/aws/aws-sdk-js-v3/issues/3371)) ([c2d8522](https://github.com/aws/aws-sdk-js-v3/commit/c2d852279a3d23958521a6ceb4f4c642b0cb1848))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-kinesis-video
20
+
21
+
22
+
23
+
24
+
25
+ # [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-kinesis-video
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
7
34
 
8
35
 
@@ -13,14 +13,12 @@ const serializeAws_restJson1CreateSignalingChannelCommand = async (input, contex
13
13
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/createSignalingChannel";
14
14
  let body;
15
15
  body = JSON.stringify({
16
- ...(input.ChannelName !== undefined && input.ChannelName !== null && { ChannelName: input.ChannelName }),
17
- ...(input.ChannelType !== undefined && input.ChannelType !== null && { ChannelType: input.ChannelType }),
18
- ...(input.SingleMasterConfiguration !== undefined &&
19
- input.SingleMasterConfiguration !== null && {
16
+ ...(input.ChannelName != null && { ChannelName: input.ChannelName }),
17
+ ...(input.ChannelType != null && { ChannelType: input.ChannelType }),
18
+ ...(input.SingleMasterConfiguration != null && {
20
19
  SingleMasterConfiguration: serializeAws_restJson1SingleMasterConfiguration(input.SingleMasterConfiguration, context),
21
20
  }),
22
- ...(input.Tags !== undefined &&
23
- input.Tags !== null && { Tags: serializeAws_restJson1TagOnCreateList(input.Tags, context) }),
21
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagOnCreateList(input.Tags, context) }),
24
22
  });
25
23
  return new protocol_http_1.HttpRequest({
26
24
  protocol,
@@ -41,14 +39,12 @@ const serializeAws_restJson1CreateStreamCommand = async (input, context) => {
41
39
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/createStream";
42
40
  let body;
43
41
  body = JSON.stringify({
44
- ...(input.DataRetentionInHours !== undefined &&
45
- input.DataRetentionInHours !== null && { DataRetentionInHours: input.DataRetentionInHours }),
46
- ...(input.DeviceName !== undefined && input.DeviceName !== null && { DeviceName: input.DeviceName }),
47
- ...(input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId }),
48
- ...(input.MediaType !== undefined && input.MediaType !== null && { MediaType: input.MediaType }),
49
- ...(input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }),
50
- ...(input.Tags !== undefined &&
51
- input.Tags !== null && { Tags: serializeAws_restJson1ResourceTags(input.Tags, context) }),
42
+ ...(input.DataRetentionInHours != null && { DataRetentionInHours: input.DataRetentionInHours }),
43
+ ...(input.DeviceName != null && { DeviceName: input.DeviceName }),
44
+ ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
45
+ ...(input.MediaType != null && { MediaType: input.MediaType }),
46
+ ...(input.StreamName != null && { StreamName: input.StreamName }),
47
+ ...(input.Tags != null && { Tags: serializeAws_restJson1ResourceTags(input.Tags, context) }),
52
48
  });
53
49
  return new protocol_http_1.HttpRequest({
54
50
  protocol,
@@ -69,9 +65,8 @@ const serializeAws_restJson1DeleteSignalingChannelCommand = async (input, contex
69
65
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/deleteSignalingChannel";
70
66
  let body;
71
67
  body = JSON.stringify({
72
- ...(input.ChannelARN !== undefined && input.ChannelARN !== null && { ChannelARN: input.ChannelARN }),
73
- ...(input.CurrentVersion !== undefined &&
74
- input.CurrentVersion !== null && { CurrentVersion: input.CurrentVersion }),
68
+ ...(input.ChannelARN != null && { ChannelARN: input.ChannelARN }),
69
+ ...(input.CurrentVersion != null && { CurrentVersion: input.CurrentVersion }),
75
70
  });
76
71
  return new protocol_http_1.HttpRequest({
77
72
  protocol,
@@ -92,9 +87,8 @@ const serializeAws_restJson1DeleteStreamCommand = async (input, context) => {
92
87
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/deleteStream";
93
88
  let body;
94
89
  body = JSON.stringify({
95
- ...(input.CurrentVersion !== undefined &&
96
- input.CurrentVersion !== null && { CurrentVersion: input.CurrentVersion }),
97
- ...(input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN }),
90
+ ...(input.CurrentVersion != null && { CurrentVersion: input.CurrentVersion }),
91
+ ...(input.StreamARN != null && { StreamARN: input.StreamARN }),
98
92
  });
99
93
  return new protocol_http_1.HttpRequest({
100
94
  protocol,
@@ -115,8 +109,8 @@ const serializeAws_restJson1DescribeImageGenerationConfigurationCommand = async
115
109
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/describeImageGenerationConfiguration";
116
110
  let body;
117
111
  body = JSON.stringify({
118
- ...(input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN }),
119
- ...(input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }),
112
+ ...(input.StreamARN != null && { StreamARN: input.StreamARN }),
113
+ ...(input.StreamName != null && { StreamName: input.StreamName }),
120
114
  });
121
115
  return new protocol_http_1.HttpRequest({
122
116
  protocol,
@@ -137,8 +131,8 @@ const serializeAws_restJson1DescribeNotificationConfigurationCommand = async (in
137
131
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/describeNotificationConfiguration";
138
132
  let body;
139
133
  body = JSON.stringify({
140
- ...(input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN }),
141
- ...(input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }),
134
+ ...(input.StreamARN != null && { StreamARN: input.StreamARN }),
135
+ ...(input.StreamName != null && { StreamName: input.StreamName }),
142
136
  });
143
137
  return new protocol_http_1.HttpRequest({
144
138
  protocol,
@@ -159,8 +153,8 @@ const serializeAws_restJson1DescribeSignalingChannelCommand = async (input, cont
159
153
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/describeSignalingChannel";
160
154
  let body;
161
155
  body = JSON.stringify({
162
- ...(input.ChannelARN !== undefined && input.ChannelARN !== null && { ChannelARN: input.ChannelARN }),
163
- ...(input.ChannelName !== undefined && input.ChannelName !== null && { ChannelName: input.ChannelName }),
156
+ ...(input.ChannelARN != null && { ChannelARN: input.ChannelARN }),
157
+ ...(input.ChannelName != null && { ChannelName: input.ChannelName }),
164
158
  });
165
159
  return new protocol_http_1.HttpRequest({
166
160
  protocol,
@@ -181,8 +175,8 @@ const serializeAws_restJson1DescribeStreamCommand = async (input, context) => {
181
175
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/describeStream";
182
176
  let body;
183
177
  body = JSON.stringify({
184
- ...(input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN }),
185
- ...(input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }),
178
+ ...(input.StreamARN != null && { StreamARN: input.StreamARN }),
179
+ ...(input.StreamName != null && { StreamName: input.StreamName }),
186
180
  });
187
181
  return new protocol_http_1.HttpRequest({
188
182
  protocol,
@@ -203,9 +197,9 @@ const serializeAws_restJson1GetDataEndpointCommand = async (input, context) => {
203
197
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/getDataEndpoint";
204
198
  let body;
205
199
  body = JSON.stringify({
206
- ...(input.APIName !== undefined && input.APIName !== null && { APIName: input.APIName }),
207
- ...(input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN }),
208
- ...(input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }),
200
+ ...(input.APIName != null && { APIName: input.APIName }),
201
+ ...(input.StreamARN != null && { StreamARN: input.StreamARN }),
202
+ ...(input.StreamName != null && { StreamName: input.StreamName }),
209
203
  });
210
204
  return new protocol_http_1.HttpRequest({
211
205
  protocol,
@@ -226,9 +220,8 @@ const serializeAws_restJson1GetSignalingChannelEndpointCommand = async (input, c
226
220
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/getSignalingChannelEndpoint";
227
221
  let body;
228
222
  body = JSON.stringify({
229
- ...(input.ChannelARN !== undefined && input.ChannelARN !== null && { ChannelARN: input.ChannelARN }),
230
- ...(input.SingleMasterChannelEndpointConfiguration !== undefined &&
231
- input.SingleMasterChannelEndpointConfiguration !== null && {
223
+ ...(input.ChannelARN != null && { ChannelARN: input.ChannelARN }),
224
+ ...(input.SingleMasterChannelEndpointConfiguration != null && {
232
225
  SingleMasterChannelEndpointConfiguration: serializeAws_restJson1SingleMasterChannelEndpointConfiguration(input.SingleMasterChannelEndpointConfiguration, context),
233
226
  }),
234
227
  });
@@ -251,12 +244,11 @@ const serializeAws_restJson1ListSignalingChannelsCommand = async (input, context
251
244
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/listSignalingChannels";
252
245
  let body;
253
246
  body = JSON.stringify({
254
- ...(input.ChannelNameCondition !== undefined &&
255
- input.ChannelNameCondition !== null && {
247
+ ...(input.ChannelNameCondition != null && {
256
248
  ChannelNameCondition: serializeAws_restJson1ChannelNameCondition(input.ChannelNameCondition, context),
257
249
  }),
258
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
259
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
250
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
251
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
260
252
  });
261
253
  return new protocol_http_1.HttpRequest({
262
254
  protocol,
@@ -277,10 +269,9 @@ const serializeAws_restJson1ListStreamsCommand = async (input, context) => {
277
269
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/listStreams";
278
270
  let body;
279
271
  body = JSON.stringify({
280
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
281
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
282
- ...(input.StreamNameCondition !== undefined &&
283
- input.StreamNameCondition !== null && {
272
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
273
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
274
+ ...(input.StreamNameCondition != null && {
284
275
  StreamNameCondition: serializeAws_restJson1StreamNameCondition(input.StreamNameCondition, context),
285
276
  }),
286
277
  });
@@ -303,8 +294,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
303
294
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ListTagsForResource";
304
295
  let body;
305
296
  body = JSON.stringify({
306
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
307
- ...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
297
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
298
+ ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
308
299
  });
309
300
  return new protocol_http_1.HttpRequest({
310
301
  protocol,
@@ -325,9 +316,9 @@ const serializeAws_restJson1ListTagsForStreamCommand = async (input, context) =>
325
316
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/listTagsForStream";
326
317
  let body;
327
318
  body = JSON.stringify({
328
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
329
- ...(input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN }),
330
- ...(input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }),
319
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
320
+ ...(input.StreamARN != null && { StreamARN: input.StreamARN }),
321
+ ...(input.StreamName != null && { StreamName: input.StreamName }),
331
322
  });
332
323
  return new protocol_http_1.HttpRequest({
333
324
  protocol,
@@ -348,9 +339,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
348
339
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/TagResource";
349
340
  let body;
350
341
  body = JSON.stringify({
351
- ...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
352
- ...(input.Tags !== undefined &&
353
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
342
+ ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
343
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
354
344
  });
355
345
  return new protocol_http_1.HttpRequest({
356
346
  protocol,
@@ -371,10 +361,9 @@ const serializeAws_restJson1TagStreamCommand = async (input, context) => {
371
361
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tagStream";
372
362
  let body;
373
363
  body = JSON.stringify({
374
- ...(input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN }),
375
- ...(input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }),
376
- ...(input.Tags !== undefined &&
377
- input.Tags !== null && { Tags: serializeAws_restJson1ResourceTags(input.Tags, context) }),
364
+ ...(input.StreamARN != null && { StreamARN: input.StreamARN }),
365
+ ...(input.StreamName != null && { StreamName: input.StreamName }),
366
+ ...(input.Tags != null && { Tags: serializeAws_restJson1ResourceTags(input.Tags, context) }),
378
367
  });
379
368
  return new protocol_http_1.HttpRequest({
380
369
  protocol,
@@ -395,9 +384,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
395
384
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/UntagResource";
396
385
  let body;
397
386
  body = JSON.stringify({
398
- ...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
399
- ...(input.TagKeyList !== undefined &&
400
- input.TagKeyList !== null && { TagKeyList: serializeAws_restJson1TagKeyList(input.TagKeyList, context) }),
387
+ ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
388
+ ...(input.TagKeyList != null && { TagKeyList: serializeAws_restJson1TagKeyList(input.TagKeyList, context) }),
401
389
  });
402
390
  return new protocol_http_1.HttpRequest({
403
391
  protocol,
@@ -418,10 +406,9 @@ const serializeAws_restJson1UntagStreamCommand = async (input, context) => {
418
406
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/untagStream";
419
407
  let body;
420
408
  body = JSON.stringify({
421
- ...(input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN }),
422
- ...(input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }),
423
- ...(input.TagKeyList !== undefined &&
424
- input.TagKeyList !== null && { TagKeyList: serializeAws_restJson1TagKeyList(input.TagKeyList, context) }),
409
+ ...(input.StreamARN != null && { StreamARN: input.StreamARN }),
410
+ ...(input.StreamName != null && { StreamName: input.StreamName }),
411
+ ...(input.TagKeyList != null && { TagKeyList: serializeAws_restJson1TagKeyList(input.TagKeyList, context) }),
425
412
  });
426
413
  return new protocol_http_1.HttpRequest({
427
414
  protocol,
@@ -442,13 +429,11 @@ const serializeAws_restJson1UpdateDataRetentionCommand = async (input, context)
442
429
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/updateDataRetention";
443
430
  let body;
444
431
  body = JSON.stringify({
445
- ...(input.CurrentVersion !== undefined &&
446
- input.CurrentVersion !== null && { CurrentVersion: input.CurrentVersion }),
447
- ...(input.DataRetentionChangeInHours !== undefined &&
448
- input.DataRetentionChangeInHours !== null && { DataRetentionChangeInHours: input.DataRetentionChangeInHours }),
449
- ...(input.Operation !== undefined && input.Operation !== null && { Operation: input.Operation }),
450
- ...(input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN }),
451
- ...(input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }),
432
+ ...(input.CurrentVersion != null && { CurrentVersion: input.CurrentVersion }),
433
+ ...(input.DataRetentionChangeInHours != null && { DataRetentionChangeInHours: input.DataRetentionChangeInHours }),
434
+ ...(input.Operation != null && { Operation: input.Operation }),
435
+ ...(input.StreamARN != null && { StreamARN: input.StreamARN }),
436
+ ...(input.StreamName != null && { StreamName: input.StreamName }),
452
437
  });
453
438
  return new protocol_http_1.HttpRequest({
454
439
  protocol,
@@ -469,12 +454,11 @@ const serializeAws_restJson1UpdateImageGenerationConfigurationCommand = async (i
469
454
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/updateImageGenerationConfiguration";
470
455
  let body;
471
456
  body = JSON.stringify({
472
- ...(input.ImageGenerationConfiguration !== undefined &&
473
- input.ImageGenerationConfiguration !== null && {
457
+ ...(input.ImageGenerationConfiguration != null && {
474
458
  ImageGenerationConfiguration: serializeAws_restJson1ImageGenerationConfiguration(input.ImageGenerationConfiguration, context),
475
459
  }),
476
- ...(input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN }),
477
- ...(input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }),
460
+ ...(input.StreamARN != null && { StreamARN: input.StreamARN }),
461
+ ...(input.StreamName != null && { StreamName: input.StreamName }),
478
462
  });
479
463
  return new protocol_http_1.HttpRequest({
480
464
  protocol,
@@ -495,12 +479,11 @@ const serializeAws_restJson1UpdateNotificationConfigurationCommand = async (inpu
495
479
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/updateNotificationConfiguration";
496
480
  let body;
497
481
  body = JSON.stringify({
498
- ...(input.NotificationConfiguration !== undefined &&
499
- input.NotificationConfiguration !== null && {
482
+ ...(input.NotificationConfiguration != null && {
500
483
  NotificationConfiguration: serializeAws_restJson1NotificationConfiguration(input.NotificationConfiguration, context),
501
484
  }),
502
- ...(input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN }),
503
- ...(input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }),
485
+ ...(input.StreamARN != null && { StreamARN: input.StreamARN }),
486
+ ...(input.StreamName != null && { StreamName: input.StreamName }),
504
487
  });
505
488
  return new protocol_http_1.HttpRequest({
506
489
  protocol,
@@ -521,11 +504,9 @@ const serializeAws_restJson1UpdateSignalingChannelCommand = async (input, contex
521
504
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/updateSignalingChannel";
522
505
  let body;
523
506
  body = JSON.stringify({
524
- ...(input.ChannelARN !== undefined && input.ChannelARN !== null && { ChannelARN: input.ChannelARN }),
525
- ...(input.CurrentVersion !== undefined &&
526
- input.CurrentVersion !== null && { CurrentVersion: input.CurrentVersion }),
527
- ...(input.SingleMasterConfiguration !== undefined &&
528
- input.SingleMasterConfiguration !== null && {
507
+ ...(input.ChannelARN != null && { ChannelARN: input.ChannelARN }),
508
+ ...(input.CurrentVersion != null && { CurrentVersion: input.CurrentVersion }),
509
+ ...(input.SingleMasterConfiguration != null && {
529
510
  SingleMasterConfiguration: serializeAws_restJson1SingleMasterConfiguration(input.SingleMasterConfiguration, context),
530
511
  }),
531
512
  });
@@ -548,12 +529,11 @@ const serializeAws_restJson1UpdateStreamCommand = async (input, context) => {
548
529
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/updateStream";
549
530
  let body;
550
531
  body = JSON.stringify({
551
- ...(input.CurrentVersion !== undefined &&
552
- input.CurrentVersion !== null && { CurrentVersion: input.CurrentVersion }),
553
- ...(input.DeviceName !== undefined && input.DeviceName !== null && { DeviceName: input.DeviceName }),
554
- ...(input.MediaType !== undefined && input.MediaType !== null && { MediaType: input.MediaType }),
555
- ...(input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN }),
556
- ...(input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }),
532
+ ...(input.CurrentVersion != null && { CurrentVersion: input.CurrentVersion }),
533
+ ...(input.DeviceName != null && { DeviceName: input.DeviceName }),
534
+ ...(input.MediaType != null && { MediaType: input.MediaType }),
535
+ ...(input.StreamARN != null && { StreamARN: input.StreamARN }),
536
+ ...(input.StreamName != null && { StreamName: input.StreamName }),
557
537
  });
558
538
  return new protocol_http_1.HttpRequest({
559
539
  protocol,
@@ -1855,10 +1835,8 @@ const deserializeAws_restJson1VersionMismatchExceptionResponse = async (parsedOu
1855
1835
  };
1856
1836
  const serializeAws_restJson1ChannelNameCondition = (input, context) => {
1857
1837
  return {
1858
- ...(input.ComparisonOperator !== undefined &&
1859
- input.ComparisonOperator !== null && { ComparisonOperator: input.ComparisonOperator }),
1860
- ...(input.ComparisonValue !== undefined &&
1861
- input.ComparisonValue !== null && { ComparisonValue: input.ComparisonValue }),
1838
+ ...(input.ComparisonOperator != null && { ComparisonOperator: input.ComparisonOperator }),
1839
+ ...(input.ComparisonValue != null && { ComparisonValue: input.ComparisonValue }),
1862
1840
  };
1863
1841
  };
1864
1842
  const serializeAws_restJson1FormatConfig = (input, context) => {
@@ -1874,27 +1852,24 @@ const serializeAws_restJson1FormatConfig = (input, context) => {
1874
1852
  };
1875
1853
  const serializeAws_restJson1ImageGenerationConfiguration = (input, context) => {
1876
1854
  return {
1877
- ...(input.DestinationConfig !== undefined &&
1878
- input.DestinationConfig !== null && {
1855
+ ...(input.DestinationConfig != null && {
1879
1856
  DestinationConfig: serializeAws_restJson1ImageGenerationDestinationConfig(input.DestinationConfig, context),
1880
1857
  }),
1881
- ...(input.Format !== undefined && input.Format !== null && { Format: input.Format }),
1882
- ...(input.FormatConfig !== undefined &&
1883
- input.FormatConfig !== null && { FormatConfig: serializeAws_restJson1FormatConfig(input.FormatConfig, context) }),
1884
- ...(input.HeightPixels !== undefined && input.HeightPixels !== null && { HeightPixels: input.HeightPixels }),
1885
- ...(input.ImageSelectorType !== undefined &&
1886
- input.ImageSelectorType !== null && { ImageSelectorType: input.ImageSelectorType }),
1887
- ...(input.SamplingInterval !== undefined &&
1888
- input.SamplingInterval !== null && { SamplingInterval: input.SamplingInterval }),
1889
- ...(input.Status !== undefined && input.Status !== null && { Status: input.Status }),
1890
- ...(input.WidthPixels !== undefined && input.WidthPixels !== null && { WidthPixels: input.WidthPixels }),
1858
+ ...(input.Format != null && { Format: input.Format }),
1859
+ ...(input.FormatConfig != null && {
1860
+ FormatConfig: serializeAws_restJson1FormatConfig(input.FormatConfig, context),
1861
+ }),
1862
+ ...(input.HeightPixels != null && { HeightPixels: input.HeightPixels }),
1863
+ ...(input.ImageSelectorType != null && { ImageSelectorType: input.ImageSelectorType }),
1864
+ ...(input.SamplingInterval != null && { SamplingInterval: input.SamplingInterval }),
1865
+ ...(input.Status != null && { Status: input.Status }),
1866
+ ...(input.WidthPixels != null && { WidthPixels: input.WidthPixels }),
1891
1867
  };
1892
1868
  };
1893
1869
  const serializeAws_restJson1ImageGenerationDestinationConfig = (input, context) => {
1894
1870
  return {
1895
- ...(input.DestinationRegion !== undefined &&
1896
- input.DestinationRegion !== null && { DestinationRegion: input.DestinationRegion }),
1897
- ...(input.Uri !== undefined && input.Uri !== null && { Uri: input.Uri }),
1871
+ ...(input.DestinationRegion != null && { DestinationRegion: input.DestinationRegion }),
1872
+ ...(input.Uri != null && { Uri: input.Uri }),
1898
1873
  };
1899
1874
  };
1900
1875
  const serializeAws_restJson1ListOfProtocols = (input, context) => {
@@ -1909,16 +1884,15 @@ const serializeAws_restJson1ListOfProtocols = (input, context) => {
1909
1884
  };
1910
1885
  const serializeAws_restJson1NotificationConfiguration = (input, context) => {
1911
1886
  return {
1912
- ...(input.DestinationConfig !== undefined &&
1913
- input.DestinationConfig !== null && {
1887
+ ...(input.DestinationConfig != null && {
1914
1888
  DestinationConfig: serializeAws_restJson1NotificationDestinationConfig(input.DestinationConfig, context),
1915
1889
  }),
1916
- ...(input.Status !== undefined && input.Status !== null && { Status: input.Status }),
1890
+ ...(input.Status != null && { Status: input.Status }),
1917
1891
  };
1918
1892
  };
1919
1893
  const serializeAws_restJson1NotificationDestinationConfig = (input, context) => {
1920
1894
  return {
1921
- ...(input.Uri !== undefined && input.Uri !== null && { Uri: input.Uri }),
1895
+ ...(input.Uri != null && { Uri: input.Uri }),
1922
1896
  };
1923
1897
  };
1924
1898
  const serializeAws_restJson1ResourceTags = (input, context) => {
@@ -1934,29 +1908,25 @@ const serializeAws_restJson1ResourceTags = (input, context) => {
1934
1908
  };
1935
1909
  const serializeAws_restJson1SingleMasterChannelEndpointConfiguration = (input, context) => {
1936
1910
  return {
1937
- ...(input.Protocols !== undefined &&
1938
- input.Protocols !== null && { Protocols: serializeAws_restJson1ListOfProtocols(input.Protocols, context) }),
1939
- ...(input.Role !== undefined && input.Role !== null && { Role: input.Role }),
1911
+ ...(input.Protocols != null && { Protocols: serializeAws_restJson1ListOfProtocols(input.Protocols, context) }),
1912
+ ...(input.Role != null && { Role: input.Role }),
1940
1913
  };
1941
1914
  };
1942
1915
  const serializeAws_restJson1SingleMasterConfiguration = (input, context) => {
1943
1916
  return {
1944
- ...(input.MessageTtlSeconds !== undefined &&
1945
- input.MessageTtlSeconds !== null && { MessageTtlSeconds: input.MessageTtlSeconds }),
1917
+ ...(input.MessageTtlSeconds != null && { MessageTtlSeconds: input.MessageTtlSeconds }),
1946
1918
  };
1947
1919
  };
1948
1920
  const serializeAws_restJson1StreamNameCondition = (input, context) => {
1949
1921
  return {
1950
- ...(input.ComparisonOperator !== undefined &&
1951
- input.ComparisonOperator !== null && { ComparisonOperator: input.ComparisonOperator }),
1952
- ...(input.ComparisonValue !== undefined &&
1953
- input.ComparisonValue !== null && { ComparisonValue: input.ComparisonValue }),
1922
+ ...(input.ComparisonOperator != null && { ComparisonOperator: input.ComparisonOperator }),
1923
+ ...(input.ComparisonValue != null && { ComparisonValue: input.ComparisonValue }),
1954
1924
  };
1955
1925
  };
1956
1926
  const serializeAws_restJson1Tag = (input, context) => {
1957
1927
  return {
1958
- ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
1959
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
1928
+ ...(input.Key != null && { Key: input.Key }),
1929
+ ...(input.Value != null && { Value: input.Value }),
1960
1930
  };
1961
1931
  };
1962
1932
  const serializeAws_restJson1TagKeyList = (input, context) => {
@@ -1995,10 +1965,10 @@ const deserializeAws_restJson1ChannelInfo = (output, context) => {
1995
1965
  ChannelName: (0, smithy_client_1.expectString)(output.ChannelName),
1996
1966
  ChannelStatus: (0, smithy_client_1.expectString)(output.ChannelStatus),
1997
1967
  ChannelType: (0, smithy_client_1.expectString)(output.ChannelType),
1998
- CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
1968
+ CreationTime: output.CreationTime != null
1999
1969
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
2000
1970
  : undefined,
2001
- SingleMasterConfiguration: output.SingleMasterConfiguration !== undefined && output.SingleMasterConfiguration !== null
1971
+ SingleMasterConfiguration: output.SingleMasterConfiguration != null
2002
1972
  ? deserializeAws_restJson1SingleMasterConfiguration(output.SingleMasterConfiguration, context)
2003
1973
  : undefined,
2004
1974
  Version: (0, smithy_client_1.expectString)(output.Version),
@@ -2028,13 +1998,11 @@ const deserializeAws_restJson1FormatConfig = (output, context) => {
2028
1998
  };
2029
1999
  const deserializeAws_restJson1ImageGenerationConfiguration = (output, context) => {
2030
2000
  return {
2031
- DestinationConfig: output.DestinationConfig !== undefined && output.DestinationConfig !== null
2001
+ DestinationConfig: output.DestinationConfig != null
2032
2002
  ? deserializeAws_restJson1ImageGenerationDestinationConfig(output.DestinationConfig, context)
2033
2003
  : undefined,
2034
2004
  Format: (0, smithy_client_1.expectString)(output.Format),
2035
- FormatConfig: output.FormatConfig !== undefined && output.FormatConfig !== null
2036
- ? deserializeAws_restJson1FormatConfig(output.FormatConfig, context)
2037
- : undefined,
2005
+ FormatConfig: output.FormatConfig != null ? deserializeAws_restJson1FormatConfig(output.FormatConfig, context) : undefined,
2038
2006
  HeightPixels: (0, smithy_client_1.expectInt32)(output.HeightPixels),
2039
2007
  ImageSelectorType: (0, smithy_client_1.expectString)(output.ImageSelectorType),
2040
2008
  SamplingInterval: (0, smithy_client_1.expectInt32)(output.SamplingInterval),
@@ -2050,7 +2018,7 @@ const deserializeAws_restJson1ImageGenerationDestinationConfig = (output, contex
2050
2018
  };
2051
2019
  const deserializeAws_restJson1NotificationConfiguration = (output, context) => {
2052
2020
  return {
2053
- DestinationConfig: output.DestinationConfig !== undefined && output.DestinationConfig !== null
2021
+ DestinationConfig: output.DestinationConfig != null
2054
2022
  ? deserializeAws_restJson1NotificationDestinationConfig(output.DestinationConfig, context)
2055
2023
  : undefined,
2056
2024
  Status: (0, smithy_client_1.expectString)(output.Status),
@@ -2096,7 +2064,7 @@ const deserializeAws_restJson1SingleMasterConfiguration = (output, context) => {
2096
2064
  };
2097
2065
  const deserializeAws_restJson1StreamInfo = (output, context) => {
2098
2066
  return {
2099
- CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
2067
+ CreationTime: output.CreationTime != null
2100
2068
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
2101
2069
  : undefined,
2102
2070
  DataRetentionInHours: (0, smithy_client_1.expectInt32)(output.DataRetentionInHours),
@@ -2151,6 +2119,9 @@ const loadRestJsonErrorCode = (output, data) => {
2151
2119
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
2152
2120
  const sanitizeErrorCode = (rawValue) => {
2153
2121
  let cleanValue = rawValue;
2122
+ if (typeof cleanValue === "number") {
2123
+ cleanValue = cleanValue.toString();
2124
+ }
2154
2125
  if (cleanValue.indexOf(":") >= 0) {
2155
2126
  cleanValue = cleanValue.split(":")[0];
2156
2127
  }
@@ -14,11 +14,9 @@ export var serializeAws_restJson1CreateSignalingChannelCommand = function (input
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 || "") + "/createSignalingChannel";
17
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ChannelName !== undefined && input.ChannelName !== null && { ChannelName: input.ChannelName })), (input.ChannelType !== undefined && input.ChannelType !== null && { ChannelType: input.ChannelType })), (input.SingleMasterConfiguration !== undefined &&
18
- input.SingleMasterConfiguration !== null && {
17
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ChannelName != null && { ChannelName: input.ChannelName })), (input.ChannelType != null && { ChannelType: input.ChannelType })), (input.SingleMasterConfiguration != null && {
19
18
  SingleMasterConfiguration: serializeAws_restJson1SingleMasterConfiguration(input.SingleMasterConfiguration, context),
20
- })), (input.Tags !== undefined &&
21
- input.Tags !== null && { Tags: serializeAws_restJson1TagOnCreateList(input.Tags, context) })));
19
+ })), (input.Tags != null && { Tags: serializeAws_restJson1TagOnCreateList(input.Tags, context) })));
22
20
  return [2, new __HttpRequest({
23
21
  protocol: protocol,
24
22
  hostname: hostname,
@@ -42,9 +40,7 @@ export var serializeAws_restJson1CreateStreamCommand = function (input, context)
42
40
  "content-type": "application/json",
43
41
  };
44
42
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/createStream";
45
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DataRetentionInHours !== undefined &&
46
- input.DataRetentionInHours !== null && { DataRetentionInHours: input.DataRetentionInHours })), (input.DeviceName !== undefined && input.DeviceName !== null && { DeviceName: input.DeviceName })), (input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId })), (input.MediaType !== undefined && input.MediaType !== null && { MediaType: input.MediaType })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName })), (input.Tags !== undefined &&
47
- input.Tags !== null && { Tags: serializeAws_restJson1ResourceTags(input.Tags, context) })));
43
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DataRetentionInHours != null && { DataRetentionInHours: input.DataRetentionInHours })), (input.DeviceName != null && { DeviceName: input.DeviceName })), (input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId })), (input.MediaType != null && { MediaType: input.MediaType })), (input.StreamName != null && { StreamName: input.StreamName })), (input.Tags != null && { Tags: serializeAws_restJson1ResourceTags(input.Tags, context) })));
48
44
  return [2, new __HttpRequest({
49
45
  protocol: protocol,
50
46
  hostname: hostname,
@@ -68,8 +64,7 @@ export var serializeAws_restJson1DeleteSignalingChannelCommand = function (input
68
64
  "content-type": "application/json",
69
65
  };
70
66
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/deleteSignalingChannel";
71
- body = JSON.stringify(__assign(__assign({}, (input.ChannelARN !== undefined && input.ChannelARN !== null && { ChannelARN: input.ChannelARN })), (input.CurrentVersion !== undefined &&
72
- input.CurrentVersion !== null && { CurrentVersion: input.CurrentVersion })));
67
+ body = JSON.stringify(__assign(__assign({}, (input.ChannelARN != null && { ChannelARN: input.ChannelARN })), (input.CurrentVersion != null && { CurrentVersion: input.CurrentVersion })));
73
68
  return [2, new __HttpRequest({
74
69
  protocol: protocol,
75
70
  hostname: hostname,
@@ -93,8 +88,7 @@ export var serializeAws_restJson1DeleteStreamCommand = function (input, context)
93
88
  "content-type": "application/json",
94
89
  };
95
90
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/deleteStream";
96
- body = JSON.stringify(__assign(__assign({}, (input.CurrentVersion !== undefined &&
97
- input.CurrentVersion !== null && { CurrentVersion: input.CurrentVersion })), (input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN })));
91
+ body = JSON.stringify(__assign(__assign({}, (input.CurrentVersion != null && { CurrentVersion: input.CurrentVersion })), (input.StreamARN != null && { StreamARN: input.StreamARN })));
98
92
  return [2, new __HttpRequest({
99
93
  protocol: protocol,
100
94
  hostname: hostname,
@@ -118,7 +112,7 @@ export var serializeAws_restJson1DescribeImageGenerationConfigurationCommand = f
118
112
  "content-type": "application/json",
119
113
  };
120
114
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/describeImageGenerationConfiguration";
121
- body = JSON.stringify(__assign(__assign({}, (input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName })));
115
+ body = JSON.stringify(__assign(__assign({}, (input.StreamARN != null && { StreamARN: input.StreamARN })), (input.StreamName != null && { StreamName: input.StreamName })));
122
116
  return [2, new __HttpRequest({
123
117
  protocol: protocol,
124
118
  hostname: hostname,
@@ -142,7 +136,7 @@ export var serializeAws_restJson1DescribeNotificationConfigurationCommand = func
142
136
  "content-type": "application/json",
143
137
  };
144
138
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/describeNotificationConfiguration";
145
- body = JSON.stringify(__assign(__assign({}, (input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName })));
139
+ body = JSON.stringify(__assign(__assign({}, (input.StreamARN != null && { StreamARN: input.StreamARN })), (input.StreamName != null && { StreamName: input.StreamName })));
146
140
  return [2, new __HttpRequest({
147
141
  protocol: protocol,
148
142
  hostname: hostname,
@@ -166,7 +160,7 @@ export var serializeAws_restJson1DescribeSignalingChannelCommand = function (inp
166
160
  "content-type": "application/json",
167
161
  };
168
162
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/describeSignalingChannel";
169
- body = JSON.stringify(__assign(__assign({}, (input.ChannelARN !== undefined && input.ChannelARN !== null && { ChannelARN: input.ChannelARN })), (input.ChannelName !== undefined && input.ChannelName !== null && { ChannelName: input.ChannelName })));
163
+ body = JSON.stringify(__assign(__assign({}, (input.ChannelARN != null && { ChannelARN: input.ChannelARN })), (input.ChannelName != null && { ChannelName: input.ChannelName })));
170
164
  return [2, new __HttpRequest({
171
165
  protocol: protocol,
172
166
  hostname: hostname,
@@ -190,7 +184,7 @@ export var serializeAws_restJson1DescribeStreamCommand = function (input, contex
190
184
  "content-type": "application/json",
191
185
  };
192
186
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/describeStream";
193
- body = JSON.stringify(__assign(__assign({}, (input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName })));
187
+ body = JSON.stringify(__assign(__assign({}, (input.StreamARN != null && { StreamARN: input.StreamARN })), (input.StreamName != null && { StreamName: input.StreamName })));
194
188
  return [2, new __HttpRequest({
195
189
  protocol: protocol,
196
190
  hostname: hostname,
@@ -214,7 +208,7 @@ export var serializeAws_restJson1GetDataEndpointCommand = function (input, conte
214
208
  "content-type": "application/json",
215
209
  };
216
210
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/getDataEndpoint";
217
- body = JSON.stringify(__assign(__assign(__assign({}, (input.APIName !== undefined && input.APIName !== null && { APIName: input.APIName })), (input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName })));
211
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.APIName != null && { APIName: input.APIName })), (input.StreamARN != null && { StreamARN: input.StreamARN })), (input.StreamName != null && { StreamName: input.StreamName })));
218
212
  return [2, new __HttpRequest({
219
213
  protocol: protocol,
220
214
  hostname: hostname,
@@ -238,8 +232,7 @@ export var serializeAws_restJson1GetSignalingChannelEndpointCommand = function (
238
232
  "content-type": "application/json",
239
233
  };
240
234
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/getSignalingChannelEndpoint";
241
- body = JSON.stringify(__assign(__assign({}, (input.ChannelARN !== undefined && input.ChannelARN !== null && { ChannelARN: input.ChannelARN })), (input.SingleMasterChannelEndpointConfiguration !== undefined &&
242
- input.SingleMasterChannelEndpointConfiguration !== null && {
235
+ body = JSON.stringify(__assign(__assign({}, (input.ChannelARN != null && { ChannelARN: input.ChannelARN })), (input.SingleMasterChannelEndpointConfiguration != null && {
243
236
  SingleMasterChannelEndpointConfiguration: serializeAws_restJson1SingleMasterChannelEndpointConfiguration(input.SingleMasterChannelEndpointConfiguration, context),
244
237
  })));
245
238
  return [2, new __HttpRequest({
@@ -265,10 +258,9 @@ export var serializeAws_restJson1ListSignalingChannelsCommand = function (input,
265
258
  "content-type": "application/json",
266
259
  };
267
260
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/listSignalingChannels";
268
- body = JSON.stringify(__assign(__assign(__assign({}, (input.ChannelNameCondition !== undefined &&
269
- input.ChannelNameCondition !== null && {
261
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.ChannelNameCondition != null && {
270
262
  ChannelNameCondition: serializeAws_restJson1ChannelNameCondition(input.ChannelNameCondition, context),
271
- })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
263
+ })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
272
264
  return [2, new __HttpRequest({
273
265
  protocol: protocol,
274
266
  hostname: hostname,
@@ -292,8 +284,7 @@ export var serializeAws_restJson1ListStreamsCommand = function (input, context)
292
284
  "content-type": "application/json",
293
285
  };
294
286
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/listStreams";
295
- 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.StreamNameCondition !== undefined &&
296
- input.StreamNameCondition !== null && {
287
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.StreamNameCondition != null && {
297
288
  StreamNameCondition: serializeAws_restJson1StreamNameCondition(input.StreamNameCondition, context),
298
289
  })));
299
290
  return [2, new __HttpRequest({
@@ -319,7 +310,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
319
310
  "content-type": "application/json",
320
311
  };
321
312
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListTagsForResource";
322
- body = JSON.stringify(__assign(__assign({}, (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN })));
313
+ body = JSON.stringify(__assign(__assign({}, (input.NextToken != null && { NextToken: input.NextToken })), (input.ResourceARN != null && { ResourceARN: input.ResourceARN })));
323
314
  return [2, new __HttpRequest({
324
315
  protocol: protocol,
325
316
  hostname: hostname,
@@ -343,7 +334,7 @@ export var serializeAws_restJson1ListTagsForStreamCommand = function (input, con
343
334
  "content-type": "application/json",
344
335
  };
345
336
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/listTagsForStream";
346
- body = JSON.stringify(__assign(__assign(__assign({}, (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName })));
337
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.NextToken != null && { NextToken: input.NextToken })), (input.StreamARN != null && { StreamARN: input.StreamARN })), (input.StreamName != null && { StreamName: input.StreamName })));
347
338
  return [2, new __HttpRequest({
348
339
  protocol: protocol,
349
340
  hostname: hostname,
@@ -367,8 +358,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
367
358
  "content-type": "application/json",
368
359
  };
369
360
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/TagResource";
370
- body = JSON.stringify(__assign(__assign({}, (input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN })), (input.Tags !== undefined &&
371
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
361
+ body = JSON.stringify(__assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
372
362
  return [2, new __HttpRequest({
373
363
  protocol: protocol,
374
364
  hostname: hostname,
@@ -392,8 +382,7 @@ export var serializeAws_restJson1TagStreamCommand = function (input, context) {
392
382
  "content-type": "application/json",
393
383
  };
394
384
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tagStream";
395
- body = JSON.stringify(__assign(__assign(__assign({}, (input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName })), (input.Tags !== undefined &&
396
- input.Tags !== null && { Tags: serializeAws_restJson1ResourceTags(input.Tags, context) })));
385
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.StreamARN != null && { StreamARN: input.StreamARN })), (input.StreamName != null && { StreamName: input.StreamName })), (input.Tags != null && { Tags: serializeAws_restJson1ResourceTags(input.Tags, context) })));
397
386
  return [2, new __HttpRequest({
398
387
  protocol: protocol,
399
388
  hostname: hostname,
@@ -417,8 +406,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
417
406
  "content-type": "application/json",
418
407
  };
419
408
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/UntagResource";
420
- body = JSON.stringify(__assign(__assign({}, (input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN })), (input.TagKeyList !== undefined &&
421
- input.TagKeyList !== null && { TagKeyList: serializeAws_restJson1TagKeyList(input.TagKeyList, context) })));
409
+ body = JSON.stringify(__assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.TagKeyList != null && { TagKeyList: serializeAws_restJson1TagKeyList(input.TagKeyList, context) })));
422
410
  return [2, new __HttpRequest({
423
411
  protocol: protocol,
424
412
  hostname: hostname,
@@ -442,8 +430,7 @@ export var serializeAws_restJson1UntagStreamCommand = function (input, context)
442
430
  "content-type": "application/json",
443
431
  };
444
432
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/untagStream";
445
- body = JSON.stringify(__assign(__assign(__assign({}, (input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName })), (input.TagKeyList !== undefined &&
446
- input.TagKeyList !== null && { TagKeyList: serializeAws_restJson1TagKeyList(input.TagKeyList, context) })));
433
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.StreamARN != null && { StreamARN: input.StreamARN })), (input.StreamName != null && { StreamName: input.StreamName })), (input.TagKeyList != null && { TagKeyList: serializeAws_restJson1TagKeyList(input.TagKeyList, context) })));
447
434
  return [2, new __HttpRequest({
448
435
  protocol: protocol,
449
436
  hostname: hostname,
@@ -467,9 +454,7 @@ export var serializeAws_restJson1UpdateDataRetentionCommand = function (input, c
467
454
  "content-type": "application/json",
468
455
  };
469
456
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/updateDataRetention";
470
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.CurrentVersion !== undefined &&
471
- input.CurrentVersion !== null && { CurrentVersion: input.CurrentVersion })), (input.DataRetentionChangeInHours !== undefined &&
472
- input.DataRetentionChangeInHours !== null && { DataRetentionChangeInHours: input.DataRetentionChangeInHours })), (input.Operation !== undefined && input.Operation !== null && { Operation: input.Operation })), (input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName })));
457
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.CurrentVersion != null && { CurrentVersion: input.CurrentVersion })), (input.DataRetentionChangeInHours != null && { DataRetentionChangeInHours: input.DataRetentionChangeInHours })), (input.Operation != null && { Operation: input.Operation })), (input.StreamARN != null && { StreamARN: input.StreamARN })), (input.StreamName != null && { StreamName: input.StreamName })));
473
458
  return [2, new __HttpRequest({
474
459
  protocol: protocol,
475
460
  hostname: hostname,
@@ -493,10 +478,9 @@ export var serializeAws_restJson1UpdateImageGenerationConfigurationCommand = fun
493
478
  "content-type": "application/json",
494
479
  };
495
480
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/updateImageGenerationConfiguration";
496
- body = JSON.stringify(__assign(__assign(__assign({}, (input.ImageGenerationConfiguration !== undefined &&
497
- input.ImageGenerationConfiguration !== null && {
481
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.ImageGenerationConfiguration != null && {
498
482
  ImageGenerationConfiguration: serializeAws_restJson1ImageGenerationConfiguration(input.ImageGenerationConfiguration, context),
499
- })), (input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName })));
483
+ })), (input.StreamARN != null && { StreamARN: input.StreamARN })), (input.StreamName != null && { StreamName: input.StreamName })));
500
484
  return [2, new __HttpRequest({
501
485
  protocol: protocol,
502
486
  hostname: hostname,
@@ -520,10 +504,9 @@ export var serializeAws_restJson1UpdateNotificationConfigurationCommand = functi
520
504
  "content-type": "application/json",
521
505
  };
522
506
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/updateNotificationConfiguration";
523
- body = JSON.stringify(__assign(__assign(__assign({}, (input.NotificationConfiguration !== undefined &&
524
- input.NotificationConfiguration !== null && {
507
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.NotificationConfiguration != null && {
525
508
  NotificationConfiguration: serializeAws_restJson1NotificationConfiguration(input.NotificationConfiguration, context),
526
- })), (input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName })));
509
+ })), (input.StreamARN != null && { StreamARN: input.StreamARN })), (input.StreamName != null && { StreamName: input.StreamName })));
527
510
  return [2, new __HttpRequest({
528
511
  protocol: protocol,
529
512
  hostname: hostname,
@@ -547,9 +530,7 @@ export var serializeAws_restJson1UpdateSignalingChannelCommand = function (input
547
530
  "content-type": "application/json",
548
531
  };
549
532
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/updateSignalingChannel";
550
- body = JSON.stringify(__assign(__assign(__assign({}, (input.ChannelARN !== undefined && input.ChannelARN !== null && { ChannelARN: input.ChannelARN })), (input.CurrentVersion !== undefined &&
551
- input.CurrentVersion !== null && { CurrentVersion: input.CurrentVersion })), (input.SingleMasterConfiguration !== undefined &&
552
- input.SingleMasterConfiguration !== null && {
533
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.ChannelARN != null && { ChannelARN: input.ChannelARN })), (input.CurrentVersion != null && { CurrentVersion: input.CurrentVersion })), (input.SingleMasterConfiguration != null && {
553
534
  SingleMasterConfiguration: serializeAws_restJson1SingleMasterConfiguration(input.SingleMasterConfiguration, context),
554
535
  })));
555
536
  return [2, new __HttpRequest({
@@ -575,8 +556,7 @@ export var serializeAws_restJson1UpdateStreamCommand = function (input, context)
575
556
  "content-type": "application/json",
576
557
  };
577
558
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/updateStream";
578
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.CurrentVersion !== undefined &&
579
- input.CurrentVersion !== null && { CurrentVersion: input.CurrentVersion })), (input.DeviceName !== undefined && input.DeviceName !== null && { DeviceName: input.DeviceName })), (input.MediaType !== undefined && input.MediaType !== null && { MediaType: input.MediaType })), (input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN })), (input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName })));
559
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.CurrentVersion != null && { CurrentVersion: input.CurrentVersion })), (input.DeviceName != null && { DeviceName: input.DeviceName })), (input.MediaType != null && { MediaType: input.MediaType })), (input.StreamARN != null && { StreamARN: input.StreamARN })), (input.StreamName != null && { StreamName: input.StreamName })));
580
560
  return [2, new __HttpRequest({
581
561
  protocol: protocol,
582
562
  hostname: hostname,
@@ -2383,9 +2363,7 @@ var deserializeAws_restJson1VersionMismatchExceptionResponse = function (parsedO
2383
2363
  });
2384
2364
  }); };
2385
2365
  var serializeAws_restJson1ChannelNameCondition = function (input, context) {
2386
- return __assign(__assign({}, (input.ComparisonOperator !== undefined &&
2387
- input.ComparisonOperator !== null && { ComparisonOperator: input.ComparisonOperator })), (input.ComparisonValue !== undefined &&
2388
- input.ComparisonValue !== null && { ComparisonValue: input.ComparisonValue }));
2366
+ return __assign(__assign({}, (input.ComparisonOperator != null && { ComparisonOperator: input.ComparisonOperator })), (input.ComparisonValue != null && { ComparisonValue: input.ComparisonValue }));
2389
2367
  };
2390
2368
  var serializeAws_restJson1FormatConfig = function (input, context) {
2391
2369
  return Object.entries(input).reduce(function (acc, _a) {
@@ -2398,17 +2376,14 @@ var serializeAws_restJson1FormatConfig = function (input, context) {
2398
2376
  }, {});
2399
2377
  };
2400
2378
  var serializeAws_restJson1ImageGenerationConfiguration = function (input, context) {
2401
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DestinationConfig !== undefined &&
2402
- input.DestinationConfig !== null && {
2379
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DestinationConfig != null && {
2403
2380
  DestinationConfig: serializeAws_restJson1ImageGenerationDestinationConfig(input.DestinationConfig, context),
2404
- })), (input.Format !== undefined && input.Format !== null && { Format: input.Format })), (input.FormatConfig !== undefined &&
2405
- input.FormatConfig !== null && { FormatConfig: serializeAws_restJson1FormatConfig(input.FormatConfig, context) })), (input.HeightPixels !== undefined && input.HeightPixels !== null && { HeightPixels: input.HeightPixels })), (input.ImageSelectorType !== undefined &&
2406
- input.ImageSelectorType !== null && { ImageSelectorType: input.ImageSelectorType })), (input.SamplingInterval !== undefined &&
2407
- input.SamplingInterval !== null && { SamplingInterval: input.SamplingInterval })), (input.Status !== undefined && input.Status !== null && { Status: input.Status })), (input.WidthPixels !== undefined && input.WidthPixels !== null && { WidthPixels: input.WidthPixels }));
2381
+ })), (input.Format != null && { Format: input.Format })), (input.FormatConfig != null && {
2382
+ FormatConfig: serializeAws_restJson1FormatConfig(input.FormatConfig, context),
2383
+ })), (input.HeightPixels != null && { HeightPixels: input.HeightPixels })), (input.ImageSelectorType != null && { ImageSelectorType: input.ImageSelectorType })), (input.SamplingInterval != null && { SamplingInterval: input.SamplingInterval })), (input.Status != null && { Status: input.Status })), (input.WidthPixels != null && { WidthPixels: input.WidthPixels }));
2408
2384
  };
2409
2385
  var serializeAws_restJson1ImageGenerationDestinationConfig = function (input, context) {
2410
- return __assign(__assign({}, (input.DestinationRegion !== undefined &&
2411
- input.DestinationRegion !== null && { DestinationRegion: input.DestinationRegion })), (input.Uri !== undefined && input.Uri !== null && { Uri: input.Uri }));
2386
+ return __assign(__assign({}, (input.DestinationRegion != null && { DestinationRegion: input.DestinationRegion })), (input.Uri != null && { Uri: input.Uri }));
2412
2387
  };
2413
2388
  var serializeAws_restJson1ListOfProtocols = function (input, context) {
2414
2389
  return input
@@ -2421,13 +2396,12 @@ var serializeAws_restJson1ListOfProtocols = function (input, context) {
2421
2396
  });
2422
2397
  };
2423
2398
  var serializeAws_restJson1NotificationConfiguration = function (input, context) {
2424
- return __assign(__assign({}, (input.DestinationConfig !== undefined &&
2425
- input.DestinationConfig !== null && {
2399
+ return __assign(__assign({}, (input.DestinationConfig != null && {
2426
2400
  DestinationConfig: serializeAws_restJson1NotificationDestinationConfig(input.DestinationConfig, context),
2427
- })), (input.Status !== undefined && input.Status !== null && { Status: input.Status }));
2401
+ })), (input.Status != null && { Status: input.Status }));
2428
2402
  };
2429
2403
  var serializeAws_restJson1NotificationDestinationConfig = function (input, context) {
2430
- return __assign({}, (input.Uri !== undefined && input.Uri !== null && { Uri: input.Uri }));
2404
+ return __assign({}, (input.Uri != null && { Uri: input.Uri }));
2431
2405
  };
2432
2406
  var serializeAws_restJson1ResourceTags = function (input, context) {
2433
2407
  return Object.entries(input).reduce(function (acc, _a) {
@@ -2440,20 +2414,16 @@ var serializeAws_restJson1ResourceTags = function (input, context) {
2440
2414
  }, {});
2441
2415
  };
2442
2416
  var serializeAws_restJson1SingleMasterChannelEndpointConfiguration = function (input, context) {
2443
- return __assign(__assign({}, (input.Protocols !== undefined &&
2444
- input.Protocols !== null && { Protocols: serializeAws_restJson1ListOfProtocols(input.Protocols, context) })), (input.Role !== undefined && input.Role !== null && { Role: input.Role }));
2417
+ return __assign(__assign({}, (input.Protocols != null && { Protocols: serializeAws_restJson1ListOfProtocols(input.Protocols, context) })), (input.Role != null && { Role: input.Role }));
2445
2418
  };
2446
2419
  var serializeAws_restJson1SingleMasterConfiguration = function (input, context) {
2447
- return __assign({}, (input.MessageTtlSeconds !== undefined &&
2448
- input.MessageTtlSeconds !== null && { MessageTtlSeconds: input.MessageTtlSeconds }));
2420
+ return __assign({}, (input.MessageTtlSeconds != null && { MessageTtlSeconds: input.MessageTtlSeconds }));
2449
2421
  };
2450
2422
  var serializeAws_restJson1StreamNameCondition = function (input, context) {
2451
- return __assign(__assign({}, (input.ComparisonOperator !== undefined &&
2452
- input.ComparisonOperator !== null && { ComparisonOperator: input.ComparisonOperator })), (input.ComparisonValue !== undefined &&
2453
- input.ComparisonValue !== null && { ComparisonValue: input.ComparisonValue }));
2423
+ return __assign(__assign({}, (input.ComparisonOperator != null && { ComparisonOperator: input.ComparisonOperator })), (input.ComparisonValue != null && { ComparisonValue: input.ComparisonValue }));
2454
2424
  };
2455
2425
  var serializeAws_restJson1Tag = function (input, context) {
2456
- return __assign(__assign({}, (input.Key !== undefined && input.Key !== null && { Key: input.Key })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
2426
+ return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
2457
2427
  };
2458
2428
  var serializeAws_restJson1TagKeyList = function (input, context) {
2459
2429
  return input
@@ -2491,10 +2461,10 @@ var deserializeAws_restJson1ChannelInfo = function (output, context) {
2491
2461
  ChannelName: __expectString(output.ChannelName),
2492
2462
  ChannelStatus: __expectString(output.ChannelStatus),
2493
2463
  ChannelType: __expectString(output.ChannelType),
2494
- CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
2464
+ CreationTime: output.CreationTime != null
2495
2465
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
2496
2466
  : undefined,
2497
- SingleMasterConfiguration: output.SingleMasterConfiguration !== undefined && output.SingleMasterConfiguration !== null
2467
+ SingleMasterConfiguration: output.SingleMasterConfiguration != null
2498
2468
  ? deserializeAws_restJson1SingleMasterConfiguration(output.SingleMasterConfiguration, context)
2499
2469
  : undefined,
2500
2470
  Version: __expectString(output.Version),
@@ -2523,13 +2493,11 @@ var deserializeAws_restJson1FormatConfig = function (output, context) {
2523
2493
  };
2524
2494
  var deserializeAws_restJson1ImageGenerationConfiguration = function (output, context) {
2525
2495
  return {
2526
- DestinationConfig: output.DestinationConfig !== undefined && output.DestinationConfig !== null
2496
+ DestinationConfig: output.DestinationConfig != null
2527
2497
  ? deserializeAws_restJson1ImageGenerationDestinationConfig(output.DestinationConfig, context)
2528
2498
  : undefined,
2529
2499
  Format: __expectString(output.Format),
2530
- FormatConfig: output.FormatConfig !== undefined && output.FormatConfig !== null
2531
- ? deserializeAws_restJson1FormatConfig(output.FormatConfig, context)
2532
- : undefined,
2500
+ FormatConfig: output.FormatConfig != null ? deserializeAws_restJson1FormatConfig(output.FormatConfig, context) : undefined,
2533
2501
  HeightPixels: __expectInt32(output.HeightPixels),
2534
2502
  ImageSelectorType: __expectString(output.ImageSelectorType),
2535
2503
  SamplingInterval: __expectInt32(output.SamplingInterval),
@@ -2545,7 +2513,7 @@ var deserializeAws_restJson1ImageGenerationDestinationConfig = function (output,
2545
2513
  };
2546
2514
  var deserializeAws_restJson1NotificationConfiguration = function (output, context) {
2547
2515
  return {
2548
- DestinationConfig: output.DestinationConfig !== undefined && output.DestinationConfig !== null
2516
+ DestinationConfig: output.DestinationConfig != null
2549
2517
  ? deserializeAws_restJson1NotificationDestinationConfig(output.DestinationConfig, context)
2550
2518
  : undefined,
2551
2519
  Status: __expectString(output.Status),
@@ -2590,7 +2558,7 @@ var deserializeAws_restJson1SingleMasterConfiguration = function (output, contex
2590
2558
  };
2591
2559
  var deserializeAws_restJson1StreamInfo = function (output, context) {
2592
2560
  return {
2593
- CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
2561
+ CreationTime: output.CreationTime != null
2594
2562
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
2595
2563
  : undefined,
2596
2564
  DataRetentionInHours: __expectInt32(output.DataRetentionInHours),
@@ -2652,6 +2620,9 @@ var loadRestJsonErrorCode = function (output, data) {
2652
2620
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
2653
2621
  var sanitizeErrorCode = function (rawValue) {
2654
2622
  var cleanValue = rawValue;
2623
+ if (typeof cleanValue === "number") {
2624
+ cleanValue = cleanValue.toString();
2625
+ }
2655
2626
  if (cleanValue.indexOf(":") >= 0) {
2656
2627
  cleanValue = cleanValue.split(":")[0];
2657
2628
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-kinesis-video",
3
3
  "description": "AWS SDK for JavaScript Kinesis Video Client for Node.js, Browser and React Native",
4
- "version": "3.121.0",
4
+ "version": "3.130.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.130.0",
22
+ "@aws-sdk/config-resolver": "3.130.0",
23
+ "@aws-sdk/credential-provider-node": "3.130.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.130.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.130.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"