@aws-sdk/client-ivs 3.312.0 → 3.315.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/dist-cjs/protocols/Aws_restJson1.js +344 -639
- package/dist-es/protocols/Aws_restJson1.js +306 -601
- package/package.json +6 -6
|
@@ -13,9 +13,9 @@ const se_BatchGetChannelCommand = async (input, context) => {
|
|
|
13
13
|
};
|
|
14
14
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/BatchGetChannel";
|
|
15
15
|
let body;
|
|
16
|
-
body = JSON.stringify({
|
|
17
|
-
|
|
18
|
-
});
|
|
16
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
|
+
arns: (_) => (0, smithy_client_1._json)(_),
|
|
18
|
+
}));
|
|
19
19
|
return new protocol_http_1.HttpRequest({
|
|
20
20
|
protocol,
|
|
21
21
|
hostname,
|
|
@@ -34,9 +34,9 @@ const se_BatchGetStreamKeyCommand = async (input, context) => {
|
|
|
34
34
|
};
|
|
35
35
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/BatchGetStreamKey";
|
|
36
36
|
let body;
|
|
37
|
-
body = JSON.stringify({
|
|
38
|
-
|
|
39
|
-
});
|
|
37
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
38
|
+
arns: (_) => (0, smithy_client_1._json)(_),
|
|
39
|
+
}));
|
|
40
40
|
return new protocol_http_1.HttpRequest({
|
|
41
41
|
protocol,
|
|
42
42
|
hostname,
|
|
@@ -55,15 +55,15 @@ const se_CreateChannelCommand = async (input, context) => {
|
|
|
55
55
|
};
|
|
56
56
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateChannel";
|
|
57
57
|
let body;
|
|
58
|
-
body = JSON.stringify({
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
});
|
|
58
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
59
|
+
authorized: [],
|
|
60
|
+
insecureIngest: [],
|
|
61
|
+
latencyMode: [],
|
|
62
|
+
name: [],
|
|
63
|
+
recordingConfigurationArn: [],
|
|
64
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
65
|
+
type: [],
|
|
66
|
+
}));
|
|
67
67
|
return new protocol_http_1.HttpRequest({
|
|
68
68
|
protocol,
|
|
69
69
|
hostname,
|
|
@@ -82,19 +82,13 @@ const se_CreateRecordingConfigurationCommand = async (input, context) => {
|
|
|
82
82
|
};
|
|
83
83
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateRecordingConfiguration";
|
|
84
84
|
let body;
|
|
85
|
-
body = JSON.stringify({
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}),
|
|
93
|
-
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
94
|
-
...(input.thumbnailConfiguration != null && {
|
|
95
|
-
thumbnailConfiguration: se_ThumbnailConfiguration(input.thumbnailConfiguration, context),
|
|
96
|
-
}),
|
|
97
|
-
});
|
|
85
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
86
|
+
destinationConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
87
|
+
name: [],
|
|
88
|
+
recordingReconnectWindowSeconds: [],
|
|
89
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
90
|
+
thumbnailConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
91
|
+
}));
|
|
98
92
|
return new protocol_http_1.HttpRequest({
|
|
99
93
|
protocol,
|
|
100
94
|
hostname,
|
|
@@ -113,10 +107,10 @@ const se_CreateStreamKeyCommand = async (input, context) => {
|
|
|
113
107
|
};
|
|
114
108
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateStreamKey";
|
|
115
109
|
let body;
|
|
116
|
-
body = JSON.stringify({
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
});
|
|
110
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
111
|
+
channelArn: [],
|
|
112
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
113
|
+
}));
|
|
120
114
|
return new protocol_http_1.HttpRequest({
|
|
121
115
|
protocol,
|
|
122
116
|
hostname,
|
|
@@ -135,9 +129,9 @@ const se_DeleteChannelCommand = async (input, context) => {
|
|
|
135
129
|
};
|
|
136
130
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteChannel";
|
|
137
131
|
let body;
|
|
138
|
-
body = JSON.stringify({
|
|
139
|
-
|
|
140
|
-
});
|
|
132
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
133
|
+
arn: [],
|
|
134
|
+
}));
|
|
141
135
|
return new protocol_http_1.HttpRequest({
|
|
142
136
|
protocol,
|
|
143
137
|
hostname,
|
|
@@ -156,9 +150,9 @@ const se_DeletePlaybackKeyPairCommand = async (input, context) => {
|
|
|
156
150
|
};
|
|
157
151
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeletePlaybackKeyPair";
|
|
158
152
|
let body;
|
|
159
|
-
body = JSON.stringify({
|
|
160
|
-
|
|
161
|
-
});
|
|
153
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
154
|
+
arn: [],
|
|
155
|
+
}));
|
|
162
156
|
return new protocol_http_1.HttpRequest({
|
|
163
157
|
protocol,
|
|
164
158
|
hostname,
|
|
@@ -177,9 +171,9 @@ const se_DeleteRecordingConfigurationCommand = async (input, context) => {
|
|
|
177
171
|
};
|
|
178
172
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteRecordingConfiguration";
|
|
179
173
|
let body;
|
|
180
|
-
body = JSON.stringify({
|
|
181
|
-
|
|
182
|
-
});
|
|
174
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
175
|
+
arn: [],
|
|
176
|
+
}));
|
|
183
177
|
return new protocol_http_1.HttpRequest({
|
|
184
178
|
protocol,
|
|
185
179
|
hostname,
|
|
@@ -198,9 +192,9 @@ const se_DeleteStreamKeyCommand = async (input, context) => {
|
|
|
198
192
|
};
|
|
199
193
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteStreamKey";
|
|
200
194
|
let body;
|
|
201
|
-
body = JSON.stringify({
|
|
202
|
-
|
|
203
|
-
});
|
|
195
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
196
|
+
arn: [],
|
|
197
|
+
}));
|
|
204
198
|
return new protocol_http_1.HttpRequest({
|
|
205
199
|
protocol,
|
|
206
200
|
hostname,
|
|
@@ -219,9 +213,9 @@ const se_GetChannelCommand = async (input, context) => {
|
|
|
219
213
|
};
|
|
220
214
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetChannel";
|
|
221
215
|
let body;
|
|
222
|
-
body = JSON.stringify({
|
|
223
|
-
|
|
224
|
-
});
|
|
216
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
217
|
+
arn: [],
|
|
218
|
+
}));
|
|
225
219
|
return new protocol_http_1.HttpRequest({
|
|
226
220
|
protocol,
|
|
227
221
|
hostname,
|
|
@@ -240,9 +234,9 @@ const se_GetPlaybackKeyPairCommand = async (input, context) => {
|
|
|
240
234
|
};
|
|
241
235
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetPlaybackKeyPair";
|
|
242
236
|
let body;
|
|
243
|
-
body = JSON.stringify({
|
|
244
|
-
|
|
245
|
-
});
|
|
237
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
238
|
+
arn: [],
|
|
239
|
+
}));
|
|
246
240
|
return new protocol_http_1.HttpRequest({
|
|
247
241
|
protocol,
|
|
248
242
|
hostname,
|
|
@@ -261,9 +255,9 @@ const se_GetRecordingConfigurationCommand = async (input, context) => {
|
|
|
261
255
|
};
|
|
262
256
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetRecordingConfiguration";
|
|
263
257
|
let body;
|
|
264
|
-
body = JSON.stringify({
|
|
265
|
-
|
|
266
|
-
});
|
|
258
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
259
|
+
arn: [],
|
|
260
|
+
}));
|
|
267
261
|
return new protocol_http_1.HttpRequest({
|
|
268
262
|
protocol,
|
|
269
263
|
hostname,
|
|
@@ -282,9 +276,9 @@ const se_GetStreamCommand = async (input, context) => {
|
|
|
282
276
|
};
|
|
283
277
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetStream";
|
|
284
278
|
let body;
|
|
285
|
-
body = JSON.stringify({
|
|
286
|
-
|
|
287
|
-
});
|
|
279
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
280
|
+
channelArn: [],
|
|
281
|
+
}));
|
|
288
282
|
return new protocol_http_1.HttpRequest({
|
|
289
283
|
protocol,
|
|
290
284
|
hostname,
|
|
@@ -303,9 +297,9 @@ const se_GetStreamKeyCommand = async (input, context) => {
|
|
|
303
297
|
};
|
|
304
298
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetStreamKey";
|
|
305
299
|
let body;
|
|
306
|
-
body = JSON.stringify({
|
|
307
|
-
|
|
308
|
-
});
|
|
300
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
301
|
+
arn: [],
|
|
302
|
+
}));
|
|
309
303
|
return new protocol_http_1.HttpRequest({
|
|
310
304
|
protocol,
|
|
311
305
|
hostname,
|
|
@@ -324,10 +318,10 @@ const se_GetStreamSessionCommand = async (input, context) => {
|
|
|
324
318
|
};
|
|
325
319
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetStreamSession";
|
|
326
320
|
let body;
|
|
327
|
-
body = JSON.stringify({
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
});
|
|
321
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
322
|
+
channelArn: [],
|
|
323
|
+
streamId: [],
|
|
324
|
+
}));
|
|
331
325
|
return new protocol_http_1.HttpRequest({
|
|
332
326
|
protocol,
|
|
333
327
|
hostname,
|
|
@@ -346,11 +340,11 @@ const se_ImportPlaybackKeyPairCommand = async (input, context) => {
|
|
|
346
340
|
};
|
|
347
341
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ImportPlaybackKeyPair";
|
|
348
342
|
let body;
|
|
349
|
-
body = JSON.stringify({
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
});
|
|
343
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
344
|
+
name: [],
|
|
345
|
+
publicKeyMaterial: [],
|
|
346
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
347
|
+
}));
|
|
354
348
|
return new protocol_http_1.HttpRequest({
|
|
355
349
|
protocol,
|
|
356
350
|
hostname,
|
|
@@ -369,14 +363,12 @@ const se_ListChannelsCommand = async (input, context) => {
|
|
|
369
363
|
};
|
|
370
364
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListChannels";
|
|
371
365
|
let body;
|
|
372
|
-
body = JSON.stringify({
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
379
|
-
});
|
|
366
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
367
|
+
filterByName: [],
|
|
368
|
+
filterByRecordingConfigurationArn: [],
|
|
369
|
+
maxResults: [],
|
|
370
|
+
nextToken: [],
|
|
371
|
+
}));
|
|
380
372
|
return new protocol_http_1.HttpRequest({
|
|
381
373
|
protocol,
|
|
382
374
|
hostname,
|
|
@@ -395,10 +387,10 @@ const se_ListPlaybackKeyPairsCommand = async (input, context) => {
|
|
|
395
387
|
};
|
|
396
388
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListPlaybackKeyPairs";
|
|
397
389
|
let body;
|
|
398
|
-
body = JSON.stringify({
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
});
|
|
390
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
391
|
+
maxResults: [],
|
|
392
|
+
nextToken: [],
|
|
393
|
+
}));
|
|
402
394
|
return new protocol_http_1.HttpRequest({
|
|
403
395
|
protocol,
|
|
404
396
|
hostname,
|
|
@@ -417,10 +409,10 @@ const se_ListRecordingConfigurationsCommand = async (input, context) => {
|
|
|
417
409
|
};
|
|
418
410
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListRecordingConfigurations";
|
|
419
411
|
let body;
|
|
420
|
-
body = JSON.stringify({
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
});
|
|
412
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
413
|
+
maxResults: [],
|
|
414
|
+
nextToken: [],
|
|
415
|
+
}));
|
|
424
416
|
return new protocol_http_1.HttpRequest({
|
|
425
417
|
protocol,
|
|
426
418
|
hostname,
|
|
@@ -439,11 +431,11 @@ const se_ListStreamKeysCommand = async (input, context) => {
|
|
|
439
431
|
};
|
|
440
432
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListStreamKeys";
|
|
441
433
|
let body;
|
|
442
|
-
body = JSON.stringify({
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
});
|
|
434
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
435
|
+
channelArn: [],
|
|
436
|
+
maxResults: [],
|
|
437
|
+
nextToken: [],
|
|
438
|
+
}));
|
|
447
439
|
return new protocol_http_1.HttpRequest({
|
|
448
440
|
protocol,
|
|
449
441
|
hostname,
|
|
@@ -462,11 +454,11 @@ const se_ListStreamsCommand = async (input, context) => {
|
|
|
462
454
|
};
|
|
463
455
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListStreams";
|
|
464
456
|
let body;
|
|
465
|
-
body = JSON.stringify({
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
});
|
|
457
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
458
|
+
filterBy: (_) => (0, smithy_client_1._json)(_),
|
|
459
|
+
maxResults: [],
|
|
460
|
+
nextToken: [],
|
|
461
|
+
}));
|
|
470
462
|
return new protocol_http_1.HttpRequest({
|
|
471
463
|
protocol,
|
|
472
464
|
hostname,
|
|
@@ -485,11 +477,11 @@ const se_ListStreamSessionsCommand = async (input, context) => {
|
|
|
485
477
|
};
|
|
486
478
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListStreamSessions";
|
|
487
479
|
let body;
|
|
488
|
-
body = JSON.stringify({
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
});
|
|
480
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
481
|
+
channelArn: [],
|
|
482
|
+
maxResults: [],
|
|
483
|
+
nextToken: [],
|
|
484
|
+
}));
|
|
493
485
|
return new protocol_http_1.HttpRequest({
|
|
494
486
|
protocol,
|
|
495
487
|
hostname,
|
|
@@ -525,10 +517,10 @@ const se_PutMetadataCommand = async (input, context) => {
|
|
|
525
517
|
};
|
|
526
518
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PutMetadata";
|
|
527
519
|
let body;
|
|
528
|
-
body = JSON.stringify({
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
});
|
|
520
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
521
|
+
channelArn: [],
|
|
522
|
+
metadata: [],
|
|
523
|
+
}));
|
|
532
524
|
return new protocol_http_1.HttpRequest({
|
|
533
525
|
protocol,
|
|
534
526
|
hostname,
|
|
@@ -547,9 +539,9 @@ const se_StopStreamCommand = async (input, context) => {
|
|
|
547
539
|
};
|
|
548
540
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StopStream";
|
|
549
541
|
let body;
|
|
550
|
-
body = JSON.stringify({
|
|
551
|
-
|
|
552
|
-
});
|
|
542
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
543
|
+
channelArn: [],
|
|
544
|
+
}));
|
|
553
545
|
return new protocol_http_1.HttpRequest({
|
|
554
546
|
protocol,
|
|
555
547
|
hostname,
|
|
@@ -569,9 +561,9 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
569
561
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
570
562
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
571
563
|
let body;
|
|
572
|
-
body = JSON.stringify({
|
|
573
|
-
|
|
574
|
-
});
|
|
564
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
565
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
566
|
+
}));
|
|
575
567
|
return new protocol_http_1.HttpRequest({
|
|
576
568
|
protocol,
|
|
577
569
|
hostname,
|
|
@@ -588,7 +580,7 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
588
580
|
const headers = {};
|
|
589
581
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
590
582
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
591
|
-
const query = map({
|
|
583
|
+
const query = (0, smithy_client_1.map)({
|
|
592
584
|
tagKeys: [
|
|
593
585
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
594
586
|
() => (input.tagKeys || []).map((_entry) => _entry),
|
|
@@ -614,15 +606,15 @@ const se_UpdateChannelCommand = async (input, context) => {
|
|
|
614
606
|
};
|
|
615
607
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateChannel";
|
|
616
608
|
let body;
|
|
617
|
-
body = JSON.stringify({
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
});
|
|
609
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
610
|
+
arn: [],
|
|
611
|
+
authorized: [],
|
|
612
|
+
insecureIngest: [],
|
|
613
|
+
latencyMode: [],
|
|
614
|
+
name: [],
|
|
615
|
+
recordingConfigurationArn: [],
|
|
616
|
+
type: [],
|
|
617
|
+
}));
|
|
626
618
|
return new protocol_http_1.HttpRequest({
|
|
627
619
|
protocol,
|
|
628
620
|
hostname,
|
|
@@ -638,16 +630,15 @@ const de_BatchGetChannelCommand = async (output, context) => {
|
|
|
638
630
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
639
631
|
return de_BatchGetChannelCommandError(output, context);
|
|
640
632
|
}
|
|
641
|
-
const contents = map({
|
|
633
|
+
const contents = (0, smithy_client_1.map)({
|
|
642
634
|
$metadata: deserializeMetadata(output),
|
|
643
635
|
});
|
|
644
636
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
}
|
|
637
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
638
|
+
channels: smithy_client_1._json,
|
|
639
|
+
errors: smithy_client_1._json,
|
|
640
|
+
});
|
|
641
|
+
Object.assign(contents, doc);
|
|
651
642
|
return contents;
|
|
652
643
|
};
|
|
653
644
|
exports.de_BatchGetChannelCommand = de_BatchGetChannelCommand;
|
|
@@ -658,10 +649,9 @@ const de_BatchGetChannelCommandError = async (output, context) => {
|
|
|
658
649
|
};
|
|
659
650
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
660
651
|
const parsedBody = parsedOutput.body;
|
|
661
|
-
|
|
652
|
+
return throwDefaultError({
|
|
662
653
|
output,
|
|
663
654
|
parsedBody,
|
|
664
|
-
exceptionCtor: IvsServiceException_1.IvsServiceException,
|
|
665
655
|
errorCode,
|
|
666
656
|
});
|
|
667
657
|
};
|
|
@@ -669,16 +659,15 @@ const de_BatchGetStreamKeyCommand = async (output, context) => {
|
|
|
669
659
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
670
660
|
return de_BatchGetStreamKeyCommandError(output, context);
|
|
671
661
|
}
|
|
672
|
-
const contents = map({
|
|
662
|
+
const contents = (0, smithy_client_1.map)({
|
|
673
663
|
$metadata: deserializeMetadata(output),
|
|
674
664
|
});
|
|
675
665
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
}
|
|
666
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
667
|
+
errors: smithy_client_1._json,
|
|
668
|
+
streamKeys: smithy_client_1._json,
|
|
669
|
+
});
|
|
670
|
+
Object.assign(contents, doc);
|
|
682
671
|
return contents;
|
|
683
672
|
};
|
|
684
673
|
exports.de_BatchGetStreamKeyCommand = de_BatchGetStreamKeyCommand;
|
|
@@ -689,10 +678,9 @@ const de_BatchGetStreamKeyCommandError = async (output, context) => {
|
|
|
689
678
|
};
|
|
690
679
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
691
680
|
const parsedBody = parsedOutput.body;
|
|
692
|
-
|
|
681
|
+
return throwDefaultError({
|
|
693
682
|
output,
|
|
694
683
|
parsedBody,
|
|
695
|
-
exceptionCtor: IvsServiceException_1.IvsServiceException,
|
|
696
684
|
errorCode,
|
|
697
685
|
});
|
|
698
686
|
};
|
|
@@ -700,16 +688,15 @@ const de_CreateChannelCommand = async (output, context) => {
|
|
|
700
688
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
701
689
|
return de_CreateChannelCommandError(output, context);
|
|
702
690
|
}
|
|
703
|
-
const contents = map({
|
|
691
|
+
const contents = (0, smithy_client_1.map)({
|
|
704
692
|
$metadata: deserializeMetadata(output),
|
|
705
693
|
});
|
|
706
694
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
}
|
|
695
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
696
|
+
channel: smithy_client_1._json,
|
|
697
|
+
streamKey: smithy_client_1._json,
|
|
698
|
+
});
|
|
699
|
+
Object.assign(contents, doc);
|
|
713
700
|
return contents;
|
|
714
701
|
};
|
|
715
702
|
exports.de_CreateChannelCommand = de_CreateChannelCommand;
|
|
@@ -737,10 +724,9 @@ const de_CreateChannelCommandError = async (output, context) => {
|
|
|
737
724
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
738
725
|
default:
|
|
739
726
|
const parsedBody = parsedOutput.body;
|
|
740
|
-
|
|
727
|
+
return throwDefaultError({
|
|
741
728
|
output,
|
|
742
729
|
parsedBody,
|
|
743
|
-
exceptionCtor: IvsServiceException_1.IvsServiceException,
|
|
744
730
|
errorCode,
|
|
745
731
|
});
|
|
746
732
|
}
|
|
@@ -749,13 +735,14 @@ const de_CreateRecordingConfigurationCommand = async (output, context) => {
|
|
|
749
735
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
750
736
|
return de_CreateRecordingConfigurationCommandError(output, context);
|
|
751
737
|
}
|
|
752
|
-
const contents = map({
|
|
738
|
+
const contents = (0, smithy_client_1.map)({
|
|
753
739
|
$metadata: deserializeMetadata(output),
|
|
754
740
|
});
|
|
755
741
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
}
|
|
742
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
743
|
+
recordingConfiguration: smithy_client_1._json,
|
|
744
|
+
});
|
|
745
|
+
Object.assign(contents, doc);
|
|
759
746
|
return contents;
|
|
760
747
|
};
|
|
761
748
|
exports.de_CreateRecordingConfigurationCommand = de_CreateRecordingConfigurationCommand;
|
|
@@ -786,10 +773,9 @@ const de_CreateRecordingConfigurationCommandError = async (output, context) => {
|
|
|
786
773
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
787
774
|
default:
|
|
788
775
|
const parsedBody = parsedOutput.body;
|
|
789
|
-
|
|
776
|
+
return throwDefaultError({
|
|
790
777
|
output,
|
|
791
778
|
parsedBody,
|
|
792
|
-
exceptionCtor: IvsServiceException_1.IvsServiceException,
|
|
793
779
|
errorCode,
|
|
794
780
|
});
|
|
795
781
|
}
|
|
@@ -798,13 +784,14 @@ const de_CreateStreamKeyCommand = async (output, context) => {
|
|
|
798
784
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
799
785
|
return de_CreateStreamKeyCommandError(output, context);
|
|
800
786
|
}
|
|
801
|
-
const contents = map({
|
|
787
|
+
const contents = (0, smithy_client_1.map)({
|
|
802
788
|
$metadata: deserializeMetadata(output),
|
|
803
789
|
});
|
|
804
790
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
}
|
|
791
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
792
|
+
streamKey: smithy_client_1._json,
|
|
793
|
+
});
|
|
794
|
+
Object.assign(contents, doc);
|
|
808
795
|
return contents;
|
|
809
796
|
};
|
|
810
797
|
exports.de_CreateStreamKeyCommand = de_CreateStreamKeyCommand;
|
|
@@ -832,10 +819,9 @@ const de_CreateStreamKeyCommandError = async (output, context) => {
|
|
|
832
819
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
833
820
|
default:
|
|
834
821
|
const parsedBody = parsedOutput.body;
|
|
835
|
-
|
|
822
|
+
return throwDefaultError({
|
|
836
823
|
output,
|
|
837
824
|
parsedBody,
|
|
838
|
-
exceptionCtor: IvsServiceException_1.IvsServiceException,
|
|
839
825
|
errorCode,
|
|
840
826
|
});
|
|
841
827
|
}
|
|
@@ -844,7 +830,7 @@ const de_DeleteChannelCommand = async (output, context) => {
|
|
|
844
830
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
845
831
|
return de_DeleteChannelCommandError(output, context);
|
|
846
832
|
}
|
|
847
|
-
const contents = map({
|
|
833
|
+
const contents = (0, smithy_client_1.map)({
|
|
848
834
|
$metadata: deserializeMetadata(output),
|
|
849
835
|
});
|
|
850
836
|
await collectBody(output.body, context);
|
|
@@ -875,10 +861,9 @@ const de_DeleteChannelCommandError = async (output, context) => {
|
|
|
875
861
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
876
862
|
default:
|
|
877
863
|
const parsedBody = parsedOutput.body;
|
|
878
|
-
|
|
864
|
+
return throwDefaultError({
|
|
879
865
|
output,
|
|
880
866
|
parsedBody,
|
|
881
|
-
exceptionCtor: IvsServiceException_1.IvsServiceException,
|
|
882
867
|
errorCode,
|
|
883
868
|
});
|
|
884
869
|
}
|
|
@@ -887,7 +872,7 @@ const de_DeletePlaybackKeyPairCommand = async (output, context) => {
|
|
|
887
872
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
888
873
|
return de_DeletePlaybackKeyPairCommandError(output, context);
|
|
889
874
|
}
|
|
890
|
-
const contents = map({
|
|
875
|
+
const contents = (0, smithy_client_1.map)({
|
|
891
876
|
$metadata: deserializeMetadata(output),
|
|
892
877
|
});
|
|
893
878
|
await collectBody(output.body, context);
|
|
@@ -915,10 +900,9 @@ const de_DeletePlaybackKeyPairCommandError = async (output, context) => {
|
|
|
915
900
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
916
901
|
default:
|
|
917
902
|
const parsedBody = parsedOutput.body;
|
|
918
|
-
|
|
903
|
+
return throwDefaultError({
|
|
919
904
|
output,
|
|
920
905
|
parsedBody,
|
|
921
|
-
exceptionCtor: IvsServiceException_1.IvsServiceException,
|
|
922
906
|
errorCode,
|
|
923
907
|
});
|
|
924
908
|
}
|
|
@@ -927,7 +911,7 @@ const de_DeleteRecordingConfigurationCommand = async (output, context) => {
|
|
|
927
911
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
928
912
|
return de_DeleteRecordingConfigurationCommandError(output, context);
|
|
929
913
|
}
|
|
930
|
-
const contents = map({
|
|
914
|
+
const contents = (0, smithy_client_1.map)({
|
|
931
915
|
$metadata: deserializeMetadata(output),
|
|
932
916
|
});
|
|
933
917
|
await collectBody(output.body, context);
|
|
@@ -958,10 +942,9 @@ const de_DeleteRecordingConfigurationCommandError = async (output, context) => {
|
|
|
958
942
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
959
943
|
default:
|
|
960
944
|
const parsedBody = parsedOutput.body;
|
|
961
|
-
|
|
945
|
+
return throwDefaultError({
|
|
962
946
|
output,
|
|
963
947
|
parsedBody,
|
|
964
|
-
exceptionCtor: IvsServiceException_1.IvsServiceException,
|
|
965
948
|
errorCode,
|
|
966
949
|
});
|
|
967
950
|
}
|
|
@@ -970,7 +953,7 @@ const de_DeleteStreamKeyCommand = async (output, context) => {
|
|
|
970
953
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
971
954
|
return de_DeleteStreamKeyCommandError(output, context);
|
|
972
955
|
}
|
|
973
|
-
const contents = map({
|
|
956
|
+
const contents = (0, smithy_client_1.map)({
|
|
974
957
|
$metadata: deserializeMetadata(output),
|
|
975
958
|
});
|
|
976
959
|
await collectBody(output.body, context);
|
|
@@ -998,10 +981,9 @@ const de_DeleteStreamKeyCommandError = async (output, context) => {
|
|
|
998
981
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
999
982
|
default:
|
|
1000
983
|
const parsedBody = parsedOutput.body;
|
|
1001
|
-
|
|
984
|
+
return throwDefaultError({
|
|
1002
985
|
output,
|
|
1003
986
|
parsedBody,
|
|
1004
|
-
exceptionCtor: IvsServiceException_1.IvsServiceException,
|
|
1005
987
|
errorCode,
|
|
1006
988
|
});
|
|
1007
989
|
}
|
|
@@ -1010,13 +992,14 @@ const de_GetChannelCommand = async (output, context) => {
|
|
|
1010
992
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1011
993
|
return de_GetChannelCommandError(output, context);
|
|
1012
994
|
}
|
|
1013
|
-
const contents = map({
|
|
995
|
+
const contents = (0, smithy_client_1.map)({
|
|
1014
996
|
$metadata: deserializeMetadata(output),
|
|
1015
997
|
});
|
|
1016
998
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
}
|
|
999
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1000
|
+
channel: smithy_client_1._json,
|
|
1001
|
+
});
|
|
1002
|
+
Object.assign(contents, doc);
|
|
1020
1003
|
return contents;
|
|
1021
1004
|
};
|
|
1022
1005
|
exports.de_GetChannelCommand = de_GetChannelCommand;
|
|
@@ -1038,10 +1021,9 @@ const de_GetChannelCommandError = async (output, context) => {
|
|
|
1038
1021
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1039
1022
|
default:
|
|
1040
1023
|
const parsedBody = parsedOutput.body;
|
|
1041
|
-
|
|
1024
|
+
return throwDefaultError({
|
|
1042
1025
|
output,
|
|
1043
1026
|
parsedBody,
|
|
1044
|
-
exceptionCtor: IvsServiceException_1.IvsServiceException,
|
|
1045
1027
|
errorCode,
|
|
1046
1028
|
});
|
|
1047
1029
|
}
|
|
@@ -1050,13 +1032,14 @@ const de_GetPlaybackKeyPairCommand = async (output, context) => {
|
|
|
1050
1032
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1051
1033
|
return de_GetPlaybackKeyPairCommandError(output, context);
|
|
1052
1034
|
}
|
|
1053
|
-
const contents = map({
|
|
1035
|
+
const contents = (0, smithy_client_1.map)({
|
|
1054
1036
|
$metadata: deserializeMetadata(output),
|
|
1055
1037
|
});
|
|
1056
1038
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
}
|
|
1039
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1040
|
+
keyPair: smithy_client_1._json,
|
|
1041
|
+
});
|
|
1042
|
+
Object.assign(contents, doc);
|
|
1060
1043
|
return contents;
|
|
1061
1044
|
};
|
|
1062
1045
|
exports.de_GetPlaybackKeyPairCommand = de_GetPlaybackKeyPairCommand;
|
|
@@ -1078,10 +1061,9 @@ const de_GetPlaybackKeyPairCommandError = async (output, context) => {
|
|
|
1078
1061
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1079
1062
|
default:
|
|
1080
1063
|
const parsedBody = parsedOutput.body;
|
|
1081
|
-
|
|
1064
|
+
return throwDefaultError({
|
|
1082
1065
|
output,
|
|
1083
1066
|
parsedBody,
|
|
1084
|
-
exceptionCtor: IvsServiceException_1.IvsServiceException,
|
|
1085
1067
|
errorCode,
|
|
1086
1068
|
});
|
|
1087
1069
|
}
|
|
@@ -1090,13 +1072,14 @@ const de_GetRecordingConfigurationCommand = async (output, context) => {
|
|
|
1090
1072
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1091
1073
|
return de_GetRecordingConfigurationCommandError(output, context);
|
|
1092
1074
|
}
|
|
1093
|
-
const contents = map({
|
|
1075
|
+
const contents = (0, smithy_client_1.map)({
|
|
1094
1076
|
$metadata: deserializeMetadata(output),
|
|
1095
1077
|
});
|
|
1096
1078
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
}
|
|
1079
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1080
|
+
recordingConfiguration: smithy_client_1._json,
|
|
1081
|
+
});
|
|
1082
|
+
Object.assign(contents, doc);
|
|
1100
1083
|
return contents;
|
|
1101
1084
|
};
|
|
1102
1085
|
exports.de_GetRecordingConfigurationCommand = de_GetRecordingConfigurationCommand;
|
|
@@ -1121,10 +1104,9 @@ const de_GetRecordingConfigurationCommandError = async (output, context) => {
|
|
|
1121
1104
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1122
1105
|
default:
|
|
1123
1106
|
const parsedBody = parsedOutput.body;
|
|
1124
|
-
|
|
1107
|
+
return throwDefaultError({
|
|
1125
1108
|
output,
|
|
1126
1109
|
parsedBody,
|
|
1127
|
-
exceptionCtor: IvsServiceException_1.IvsServiceException,
|
|
1128
1110
|
errorCode,
|
|
1129
1111
|
});
|
|
1130
1112
|
}
|
|
@@ -1133,13 +1115,14 @@ const de_GetStreamCommand = async (output, context) => {
|
|
|
1133
1115
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1134
1116
|
return de_GetStreamCommandError(output, context);
|
|
1135
1117
|
}
|
|
1136
|
-
const contents = map({
|
|
1118
|
+
const contents = (0, smithy_client_1.map)({
|
|
1137
1119
|
$metadata: deserializeMetadata(output),
|
|
1138
1120
|
});
|
|
1139
1121
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
}
|
|
1122
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1123
|
+
stream: (_) => de__Stream(_, context),
|
|
1124
|
+
});
|
|
1125
|
+
Object.assign(contents, doc);
|
|
1143
1126
|
return contents;
|
|
1144
1127
|
};
|
|
1145
1128
|
exports.de_GetStreamCommand = de_GetStreamCommand;
|
|
@@ -1164,10 +1147,9 @@ const de_GetStreamCommandError = async (output, context) => {
|
|
|
1164
1147
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1165
1148
|
default:
|
|
1166
1149
|
const parsedBody = parsedOutput.body;
|
|
1167
|
-
|
|
1150
|
+
return throwDefaultError({
|
|
1168
1151
|
output,
|
|
1169
1152
|
parsedBody,
|
|
1170
|
-
exceptionCtor: IvsServiceException_1.IvsServiceException,
|
|
1171
1153
|
errorCode,
|
|
1172
1154
|
});
|
|
1173
1155
|
}
|
|
@@ -1176,13 +1158,14 @@ const de_GetStreamKeyCommand = async (output, context) => {
|
|
|
1176
1158
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1177
1159
|
return de_GetStreamKeyCommandError(output, context);
|
|
1178
1160
|
}
|
|
1179
|
-
const contents = map({
|
|
1161
|
+
const contents = (0, smithy_client_1.map)({
|
|
1180
1162
|
$metadata: deserializeMetadata(output),
|
|
1181
1163
|
});
|
|
1182
1164
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
}
|
|
1165
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1166
|
+
streamKey: smithy_client_1._json,
|
|
1167
|
+
});
|
|
1168
|
+
Object.assign(contents, doc);
|
|
1186
1169
|
return contents;
|
|
1187
1170
|
};
|
|
1188
1171
|
exports.de_GetStreamKeyCommand = de_GetStreamKeyCommand;
|
|
@@ -1204,10 +1187,9 @@ const de_GetStreamKeyCommandError = async (output, context) => {
|
|
|
1204
1187
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1205
1188
|
default:
|
|
1206
1189
|
const parsedBody = parsedOutput.body;
|
|
1207
|
-
|
|
1190
|
+
return throwDefaultError({
|
|
1208
1191
|
output,
|
|
1209
1192
|
parsedBody,
|
|
1210
|
-
exceptionCtor: IvsServiceException_1.IvsServiceException,
|
|
1211
1193
|
errorCode,
|
|
1212
1194
|
});
|
|
1213
1195
|
}
|
|
@@ -1216,13 +1198,14 @@ const de_GetStreamSessionCommand = async (output, context) => {
|
|
|
1216
1198
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1217
1199
|
return de_GetStreamSessionCommandError(output, context);
|
|
1218
1200
|
}
|
|
1219
|
-
const contents = map({
|
|
1201
|
+
const contents = (0, smithy_client_1.map)({
|
|
1220
1202
|
$metadata: deserializeMetadata(output),
|
|
1221
1203
|
});
|
|
1222
1204
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
}
|
|
1205
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1206
|
+
streamSession: (_) => de_StreamSession(_, context),
|
|
1207
|
+
});
|
|
1208
|
+
Object.assign(contents, doc);
|
|
1226
1209
|
return contents;
|
|
1227
1210
|
};
|
|
1228
1211
|
exports.de_GetStreamSessionCommand = de_GetStreamSessionCommand;
|
|
@@ -1244,10 +1227,9 @@ const de_GetStreamSessionCommandError = async (output, context) => {
|
|
|
1244
1227
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1245
1228
|
default:
|
|
1246
1229
|
const parsedBody = parsedOutput.body;
|
|
1247
|
-
|
|
1230
|
+
return throwDefaultError({
|
|
1248
1231
|
output,
|
|
1249
1232
|
parsedBody,
|
|
1250
|
-
exceptionCtor: IvsServiceException_1.IvsServiceException,
|
|
1251
1233
|
errorCode,
|
|
1252
1234
|
});
|
|
1253
1235
|
}
|
|
@@ -1256,13 +1238,14 @@ const de_ImportPlaybackKeyPairCommand = async (output, context) => {
|
|
|
1256
1238
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1257
1239
|
return de_ImportPlaybackKeyPairCommandError(output, context);
|
|
1258
1240
|
}
|
|
1259
|
-
const contents = map({
|
|
1241
|
+
const contents = (0, smithy_client_1.map)({
|
|
1260
1242
|
$metadata: deserializeMetadata(output),
|
|
1261
1243
|
});
|
|
1262
1244
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
}
|
|
1245
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1246
|
+
keyPair: smithy_client_1._json,
|
|
1247
|
+
});
|
|
1248
|
+
Object.assign(contents, doc);
|
|
1266
1249
|
return contents;
|
|
1267
1250
|
};
|
|
1268
1251
|
exports.de_ImportPlaybackKeyPairCommand = de_ImportPlaybackKeyPairCommand;
|
|
@@ -1290,10 +1273,9 @@ const de_ImportPlaybackKeyPairCommandError = async (output, context) => {
|
|
|
1290
1273
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1291
1274
|
default:
|
|
1292
1275
|
const parsedBody = parsedOutput.body;
|
|
1293
|
-
|
|
1276
|
+
return throwDefaultError({
|
|
1294
1277
|
output,
|
|
1295
1278
|
parsedBody,
|
|
1296
|
-
exceptionCtor: IvsServiceException_1.IvsServiceException,
|
|
1297
1279
|
errorCode,
|
|
1298
1280
|
});
|
|
1299
1281
|
}
|
|
@@ -1302,16 +1284,15 @@ const de_ListChannelsCommand = async (output, context) => {
|
|
|
1302
1284
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1303
1285
|
return de_ListChannelsCommandError(output, context);
|
|
1304
1286
|
}
|
|
1305
|
-
const contents = map({
|
|
1287
|
+
const contents = (0, smithy_client_1.map)({
|
|
1306
1288
|
$metadata: deserializeMetadata(output),
|
|
1307
1289
|
});
|
|
1308
1290
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
}
|
|
1291
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1292
|
+
channels: smithy_client_1._json,
|
|
1293
|
+
nextToken: smithy_client_1.expectString,
|
|
1294
|
+
});
|
|
1295
|
+
Object.assign(contents, doc);
|
|
1315
1296
|
return contents;
|
|
1316
1297
|
};
|
|
1317
1298
|
exports.de_ListChannelsCommand = de_ListChannelsCommand;
|
|
@@ -1333,10 +1314,9 @@ const de_ListChannelsCommandError = async (output, context) => {
|
|
|
1333
1314
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1334
1315
|
default:
|
|
1335
1316
|
const parsedBody = parsedOutput.body;
|
|
1336
|
-
|
|
1317
|
+
return throwDefaultError({
|
|
1337
1318
|
output,
|
|
1338
1319
|
parsedBody,
|
|
1339
|
-
exceptionCtor: IvsServiceException_1.IvsServiceException,
|
|
1340
1320
|
errorCode,
|
|
1341
1321
|
});
|
|
1342
1322
|
}
|
|
@@ -1345,16 +1325,15 @@ const de_ListPlaybackKeyPairsCommand = async (output, context) => {
|
|
|
1345
1325
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1346
1326
|
return de_ListPlaybackKeyPairsCommandError(output, context);
|
|
1347
1327
|
}
|
|
1348
|
-
const contents = map({
|
|
1328
|
+
const contents = (0, smithy_client_1.map)({
|
|
1349
1329
|
$metadata: deserializeMetadata(output),
|
|
1350
1330
|
});
|
|
1351
1331
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
}
|
|
1332
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1333
|
+
keyPairs: smithy_client_1._json,
|
|
1334
|
+
nextToken: smithy_client_1.expectString,
|
|
1335
|
+
});
|
|
1336
|
+
Object.assign(contents, doc);
|
|
1358
1337
|
return contents;
|
|
1359
1338
|
};
|
|
1360
1339
|
exports.de_ListPlaybackKeyPairsCommand = de_ListPlaybackKeyPairsCommand;
|
|
@@ -1373,10 +1352,9 @@ const de_ListPlaybackKeyPairsCommandError = async (output, context) => {
|
|
|
1373
1352
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1374
1353
|
default:
|
|
1375
1354
|
const parsedBody = parsedOutput.body;
|
|
1376
|
-
|
|
1355
|
+
return throwDefaultError({
|
|
1377
1356
|
output,
|
|
1378
1357
|
parsedBody,
|
|
1379
|
-
exceptionCtor: IvsServiceException_1.IvsServiceException,
|
|
1380
1358
|
errorCode,
|
|
1381
1359
|
});
|
|
1382
1360
|
}
|
|
@@ -1385,16 +1363,15 @@ const de_ListRecordingConfigurationsCommand = async (output, context) => {
|
|
|
1385
1363
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1386
1364
|
return de_ListRecordingConfigurationsCommandError(output, context);
|
|
1387
1365
|
}
|
|
1388
|
-
const contents = map({
|
|
1366
|
+
const contents = (0, smithy_client_1.map)({
|
|
1389
1367
|
$metadata: deserializeMetadata(output),
|
|
1390
1368
|
});
|
|
1391
1369
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
}
|
|
1370
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1371
|
+
nextToken: smithy_client_1.expectString,
|
|
1372
|
+
recordingConfigurations: smithy_client_1._json,
|
|
1373
|
+
});
|
|
1374
|
+
Object.assign(contents, doc);
|
|
1398
1375
|
return contents;
|
|
1399
1376
|
};
|
|
1400
1377
|
exports.de_ListRecordingConfigurationsCommand = de_ListRecordingConfigurationsCommand;
|
|
@@ -1416,10 +1393,9 @@ const de_ListRecordingConfigurationsCommandError = async (output, context) => {
|
|
|
1416
1393
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1417
1394
|
default:
|
|
1418
1395
|
const parsedBody = parsedOutput.body;
|
|
1419
|
-
|
|
1396
|
+
return throwDefaultError({
|
|
1420
1397
|
output,
|
|
1421
1398
|
parsedBody,
|
|
1422
|
-
exceptionCtor: IvsServiceException_1.IvsServiceException,
|
|
1423
1399
|
errorCode,
|
|
1424
1400
|
});
|
|
1425
1401
|
}
|
|
@@ -1428,16 +1404,15 @@ const de_ListStreamKeysCommand = async (output, context) => {
|
|
|
1428
1404
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1429
1405
|
return de_ListStreamKeysCommandError(output, context);
|
|
1430
1406
|
}
|
|
1431
|
-
const contents = map({
|
|
1407
|
+
const contents = (0, smithy_client_1.map)({
|
|
1432
1408
|
$metadata: deserializeMetadata(output),
|
|
1433
1409
|
});
|
|
1434
1410
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
}
|
|
1411
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1412
|
+
nextToken: smithy_client_1.expectString,
|
|
1413
|
+
streamKeys: smithy_client_1._json,
|
|
1414
|
+
});
|
|
1415
|
+
Object.assign(contents, doc);
|
|
1441
1416
|
return contents;
|
|
1442
1417
|
};
|
|
1443
1418
|
exports.de_ListStreamKeysCommand = de_ListStreamKeysCommand;
|
|
@@ -1459,10 +1434,9 @@ const de_ListStreamKeysCommandError = async (output, context) => {
|
|
|
1459
1434
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1460
1435
|
default:
|
|
1461
1436
|
const parsedBody = parsedOutput.body;
|
|
1462
|
-
|
|
1437
|
+
return throwDefaultError({
|
|
1463
1438
|
output,
|
|
1464
1439
|
parsedBody,
|
|
1465
|
-
exceptionCtor: IvsServiceException_1.IvsServiceException,
|
|
1466
1440
|
errorCode,
|
|
1467
1441
|
});
|
|
1468
1442
|
}
|
|
@@ -1471,16 +1445,15 @@ const de_ListStreamsCommand = async (output, context) => {
|
|
|
1471
1445
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1472
1446
|
return de_ListStreamsCommandError(output, context);
|
|
1473
1447
|
}
|
|
1474
|
-
const contents = map({
|
|
1448
|
+
const contents = (0, smithy_client_1.map)({
|
|
1475
1449
|
$metadata: deserializeMetadata(output),
|
|
1476
1450
|
});
|
|
1477
1451
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
}
|
|
1452
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1453
|
+
nextToken: smithy_client_1.expectString,
|
|
1454
|
+
streams: (_) => de_StreamList(_, context),
|
|
1455
|
+
});
|
|
1456
|
+
Object.assign(contents, doc);
|
|
1484
1457
|
return contents;
|
|
1485
1458
|
};
|
|
1486
1459
|
exports.de_ListStreamsCommand = de_ListStreamsCommand;
|
|
@@ -1499,10 +1472,9 @@ const de_ListStreamsCommandError = async (output, context) => {
|
|
|
1499
1472
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1500
1473
|
default:
|
|
1501
1474
|
const parsedBody = parsedOutput.body;
|
|
1502
|
-
|
|
1475
|
+
return throwDefaultError({
|
|
1503
1476
|
output,
|
|
1504
1477
|
parsedBody,
|
|
1505
|
-
exceptionCtor: IvsServiceException_1.IvsServiceException,
|
|
1506
1478
|
errorCode,
|
|
1507
1479
|
});
|
|
1508
1480
|
}
|
|
@@ -1511,16 +1483,15 @@ const de_ListStreamSessionsCommand = async (output, context) => {
|
|
|
1511
1483
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1512
1484
|
return de_ListStreamSessionsCommandError(output, context);
|
|
1513
1485
|
}
|
|
1514
|
-
const contents = map({
|
|
1486
|
+
const contents = (0, smithy_client_1.map)({
|
|
1515
1487
|
$metadata: deserializeMetadata(output),
|
|
1516
1488
|
});
|
|
1517
1489
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
}
|
|
1490
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1491
|
+
nextToken: smithy_client_1.expectString,
|
|
1492
|
+
streamSessions: (_) => de_StreamSessionList(_, context),
|
|
1493
|
+
});
|
|
1494
|
+
Object.assign(contents, doc);
|
|
1524
1495
|
return contents;
|
|
1525
1496
|
};
|
|
1526
1497
|
exports.de_ListStreamSessionsCommand = de_ListStreamSessionsCommand;
|
|
@@ -1542,10 +1513,9 @@ const de_ListStreamSessionsCommandError = async (output, context) => {
|
|
|
1542
1513
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1543
1514
|
default:
|
|
1544
1515
|
const parsedBody = parsedOutput.body;
|
|
1545
|
-
|
|
1516
|
+
return throwDefaultError({
|
|
1546
1517
|
output,
|
|
1547
1518
|
parsedBody,
|
|
1548
|
-
exceptionCtor: IvsServiceException_1.IvsServiceException,
|
|
1549
1519
|
errorCode,
|
|
1550
1520
|
});
|
|
1551
1521
|
}
|
|
@@ -1554,13 +1524,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1554
1524
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1555
1525
|
return de_ListTagsForResourceCommandError(output, context);
|
|
1556
1526
|
}
|
|
1557
|
-
const contents = map({
|
|
1527
|
+
const contents = (0, smithy_client_1.map)({
|
|
1558
1528
|
$metadata: deserializeMetadata(output),
|
|
1559
1529
|
});
|
|
1560
1530
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
}
|
|
1531
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1532
|
+
tags: smithy_client_1._json,
|
|
1533
|
+
});
|
|
1534
|
+
Object.assign(contents, doc);
|
|
1564
1535
|
return contents;
|
|
1565
1536
|
};
|
|
1566
1537
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
@@ -1582,10 +1553,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1582
1553
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1583
1554
|
default:
|
|
1584
1555
|
const parsedBody = parsedOutput.body;
|
|
1585
|
-
|
|
1556
|
+
return throwDefaultError({
|
|
1586
1557
|
output,
|
|
1587
1558
|
parsedBody,
|
|
1588
|
-
exceptionCtor: IvsServiceException_1.IvsServiceException,
|
|
1589
1559
|
errorCode,
|
|
1590
1560
|
});
|
|
1591
1561
|
}
|
|
@@ -1594,7 +1564,7 @@ const de_PutMetadataCommand = async (output, context) => {
|
|
|
1594
1564
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1595
1565
|
return de_PutMetadataCommandError(output, context);
|
|
1596
1566
|
}
|
|
1597
|
-
const contents = map({
|
|
1567
|
+
const contents = (0, smithy_client_1.map)({
|
|
1598
1568
|
$metadata: deserializeMetadata(output),
|
|
1599
1569
|
});
|
|
1600
1570
|
await collectBody(output.body, context);
|
|
@@ -1625,10 +1595,9 @@ const de_PutMetadataCommandError = async (output, context) => {
|
|
|
1625
1595
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1626
1596
|
default:
|
|
1627
1597
|
const parsedBody = parsedOutput.body;
|
|
1628
|
-
|
|
1598
|
+
return throwDefaultError({
|
|
1629
1599
|
output,
|
|
1630
1600
|
parsedBody,
|
|
1631
|
-
exceptionCtor: IvsServiceException_1.IvsServiceException,
|
|
1632
1601
|
errorCode,
|
|
1633
1602
|
});
|
|
1634
1603
|
}
|
|
@@ -1637,7 +1606,7 @@ const de_StopStreamCommand = async (output, context) => {
|
|
|
1637
1606
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1638
1607
|
return de_StopStreamCommandError(output, context);
|
|
1639
1608
|
}
|
|
1640
|
-
const contents = map({
|
|
1609
|
+
const contents = (0, smithy_client_1.map)({
|
|
1641
1610
|
$metadata: deserializeMetadata(output),
|
|
1642
1611
|
});
|
|
1643
1612
|
await collectBody(output.body, context);
|
|
@@ -1668,10 +1637,9 @@ const de_StopStreamCommandError = async (output, context) => {
|
|
|
1668
1637
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1669
1638
|
default:
|
|
1670
1639
|
const parsedBody = parsedOutput.body;
|
|
1671
|
-
|
|
1640
|
+
return throwDefaultError({
|
|
1672
1641
|
output,
|
|
1673
1642
|
parsedBody,
|
|
1674
|
-
exceptionCtor: IvsServiceException_1.IvsServiceException,
|
|
1675
1643
|
errorCode,
|
|
1676
1644
|
});
|
|
1677
1645
|
}
|
|
@@ -1680,7 +1648,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
1680
1648
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1681
1649
|
return de_TagResourceCommandError(output, context);
|
|
1682
1650
|
}
|
|
1683
|
-
const contents = map({
|
|
1651
|
+
const contents = (0, smithy_client_1.map)({
|
|
1684
1652
|
$metadata: deserializeMetadata(output),
|
|
1685
1653
|
});
|
|
1686
1654
|
await collectBody(output.body, context);
|
|
@@ -1705,10 +1673,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1705
1673
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1706
1674
|
default:
|
|
1707
1675
|
const parsedBody = parsedOutput.body;
|
|
1708
|
-
|
|
1676
|
+
return throwDefaultError({
|
|
1709
1677
|
output,
|
|
1710
1678
|
parsedBody,
|
|
1711
|
-
exceptionCtor: IvsServiceException_1.IvsServiceException,
|
|
1712
1679
|
errorCode,
|
|
1713
1680
|
});
|
|
1714
1681
|
}
|
|
@@ -1717,7 +1684,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
1717
1684
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1718
1685
|
return de_UntagResourceCommandError(output, context);
|
|
1719
1686
|
}
|
|
1720
|
-
const contents = map({
|
|
1687
|
+
const contents = (0, smithy_client_1.map)({
|
|
1721
1688
|
$metadata: deserializeMetadata(output),
|
|
1722
1689
|
});
|
|
1723
1690
|
await collectBody(output.body, context);
|
|
@@ -1742,10 +1709,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1742
1709
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1743
1710
|
default:
|
|
1744
1711
|
const parsedBody = parsedOutput.body;
|
|
1745
|
-
|
|
1712
|
+
return throwDefaultError({
|
|
1746
1713
|
output,
|
|
1747
1714
|
parsedBody,
|
|
1748
|
-
exceptionCtor: IvsServiceException_1.IvsServiceException,
|
|
1749
1715
|
errorCode,
|
|
1750
1716
|
});
|
|
1751
1717
|
}
|
|
@@ -1754,13 +1720,14 @@ const de_UpdateChannelCommand = async (output, context) => {
|
|
|
1754
1720
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1755
1721
|
return de_UpdateChannelCommandError(output, context);
|
|
1756
1722
|
}
|
|
1757
|
-
const contents = map({
|
|
1723
|
+
const contents = (0, smithy_client_1.map)({
|
|
1758
1724
|
$metadata: deserializeMetadata(output),
|
|
1759
1725
|
});
|
|
1760
1726
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
}
|
|
1727
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1728
|
+
channel: smithy_client_1._json,
|
|
1729
|
+
});
|
|
1730
|
+
Object.assign(contents, doc);
|
|
1764
1731
|
return contents;
|
|
1765
1732
|
};
|
|
1766
1733
|
exports.de_UpdateChannelCommand = de_UpdateChannelCommand;
|
|
@@ -1788,21 +1755,21 @@ const de_UpdateChannelCommandError = async (output, context) => {
|
|
|
1788
1755
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1789
1756
|
default:
|
|
1790
1757
|
const parsedBody = parsedOutput.body;
|
|
1791
|
-
|
|
1758
|
+
return throwDefaultError({
|
|
1792
1759
|
output,
|
|
1793
1760
|
parsedBody,
|
|
1794
|
-
exceptionCtor: IvsServiceException_1.IvsServiceException,
|
|
1795
1761
|
errorCode,
|
|
1796
1762
|
});
|
|
1797
1763
|
}
|
|
1798
1764
|
};
|
|
1799
|
-
const
|
|
1765
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(IvsServiceException_1.IvsServiceException);
|
|
1800
1766
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1801
|
-
const contents = map({});
|
|
1767
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1802
1768
|
const data = parsedOutput.body;
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
}
|
|
1769
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1770
|
+
exceptionMessage: smithy_client_1.expectString,
|
|
1771
|
+
});
|
|
1772
|
+
Object.assign(contents, doc);
|
|
1806
1773
|
const exception = new models_0_1.AccessDeniedException({
|
|
1807
1774
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1808
1775
|
...contents,
|
|
@@ -1810,11 +1777,12 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1810
1777
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1811
1778
|
};
|
|
1812
1779
|
const de_ChannelNotBroadcastingRes = async (parsedOutput, context) => {
|
|
1813
|
-
const contents = map({});
|
|
1780
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1814
1781
|
const data = parsedOutput.body;
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
}
|
|
1782
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1783
|
+
exceptionMessage: smithy_client_1.expectString,
|
|
1784
|
+
});
|
|
1785
|
+
Object.assign(contents, doc);
|
|
1818
1786
|
const exception = new models_0_1.ChannelNotBroadcasting({
|
|
1819
1787
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1820
1788
|
...contents,
|
|
@@ -1822,11 +1790,12 @@ const de_ChannelNotBroadcastingRes = async (parsedOutput, context) => {
|
|
|
1822
1790
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1823
1791
|
};
|
|
1824
1792
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1825
|
-
const contents = map({});
|
|
1793
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1826
1794
|
const data = parsedOutput.body;
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
}
|
|
1795
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1796
|
+
exceptionMessage: smithy_client_1.expectString,
|
|
1797
|
+
});
|
|
1798
|
+
Object.assign(contents, doc);
|
|
1830
1799
|
const exception = new models_0_1.ConflictException({
|
|
1831
1800
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1832
1801
|
...contents,
|
|
@@ -1834,11 +1803,12 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1834
1803
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1835
1804
|
};
|
|
1836
1805
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1837
|
-
const contents = map({});
|
|
1806
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1838
1807
|
const data = parsedOutput.body;
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
}
|
|
1808
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1809
|
+
exceptionMessage: smithy_client_1.expectString,
|
|
1810
|
+
});
|
|
1811
|
+
Object.assign(contents, doc);
|
|
1842
1812
|
const exception = new models_0_1.InternalServerException({
|
|
1843
1813
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1844
1814
|
...contents,
|
|
@@ -1846,11 +1816,12 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1846
1816
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1847
1817
|
};
|
|
1848
1818
|
const de_PendingVerificationRes = async (parsedOutput, context) => {
|
|
1849
|
-
const contents = map({});
|
|
1819
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1850
1820
|
const data = parsedOutput.body;
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
}
|
|
1821
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1822
|
+
exceptionMessage: smithy_client_1.expectString,
|
|
1823
|
+
});
|
|
1824
|
+
Object.assign(contents, doc);
|
|
1854
1825
|
const exception = new models_0_1.PendingVerification({
|
|
1855
1826
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1856
1827
|
...contents,
|
|
@@ -1858,11 +1829,12 @@ const de_PendingVerificationRes = async (parsedOutput, context) => {
|
|
|
1858
1829
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1859
1830
|
};
|
|
1860
1831
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1861
|
-
const contents = map({});
|
|
1832
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1862
1833
|
const data = parsedOutput.body;
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
}
|
|
1834
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1835
|
+
exceptionMessage: smithy_client_1.expectString,
|
|
1836
|
+
});
|
|
1837
|
+
Object.assign(contents, doc);
|
|
1866
1838
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
1867
1839
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1868
1840
|
...contents,
|
|
@@ -1870,11 +1842,12 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1870
1842
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1871
1843
|
};
|
|
1872
1844
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1873
|
-
const contents = map({});
|
|
1845
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1874
1846
|
const data = parsedOutput.body;
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
}
|
|
1847
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1848
|
+
exceptionMessage: smithy_client_1.expectString,
|
|
1849
|
+
});
|
|
1850
|
+
Object.assign(contents, doc);
|
|
1878
1851
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1879
1852
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1880
1853
|
...contents,
|
|
@@ -1882,11 +1855,12 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1882
1855
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1883
1856
|
};
|
|
1884
1857
|
const de_StreamUnavailableRes = async (parsedOutput, context) => {
|
|
1885
|
-
const contents = map({});
|
|
1858
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1886
1859
|
const data = parsedOutput.body;
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
}
|
|
1860
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1861
|
+
exceptionMessage: smithy_client_1.expectString,
|
|
1862
|
+
});
|
|
1863
|
+
Object.assign(contents, doc);
|
|
1890
1864
|
const exception = new models_0_1.StreamUnavailable({
|
|
1891
1865
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1892
1866
|
...contents,
|
|
@@ -1894,11 +1868,12 @@ const de_StreamUnavailableRes = async (parsedOutput, context) => {
|
|
|
1894
1868
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1895
1869
|
};
|
|
1896
1870
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1897
|
-
const contents = map({});
|
|
1871
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1898
1872
|
const data = parsedOutput.body;
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
}
|
|
1873
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1874
|
+
exceptionMessage: smithy_client_1.expectString,
|
|
1875
|
+
});
|
|
1876
|
+
Object.assign(contents, doc);
|
|
1902
1877
|
const exception = new models_0_1.ThrottlingException({
|
|
1903
1878
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1904
1879
|
...contents,
|
|
@@ -1906,358 +1881,88 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
1906
1881
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1907
1882
|
};
|
|
1908
1883
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1909
|
-
const contents = map({});
|
|
1884
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1910
1885
|
const data = parsedOutput.body;
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
}
|
|
1886
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1887
|
+
exceptionMessage: smithy_client_1.expectString,
|
|
1888
|
+
});
|
|
1889
|
+
Object.assign(contents, doc);
|
|
1914
1890
|
const exception = new models_0_1.ValidationException({
|
|
1915
1891
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1916
1892
|
...contents,
|
|
1917
1893
|
});
|
|
1918
1894
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1919
1895
|
};
|
|
1920
|
-
const se_ChannelArnList = (input, context) => {
|
|
1921
|
-
return input
|
|
1922
|
-
.filter((e) => e != null)
|
|
1923
|
-
.map((entry) => {
|
|
1924
|
-
return entry;
|
|
1925
|
-
});
|
|
1926
|
-
};
|
|
1927
|
-
const se_DestinationConfiguration = (input, context) => {
|
|
1928
|
-
return {
|
|
1929
|
-
...(input.s3 != null && { s3: se_S3DestinationConfiguration(input.s3, context) }),
|
|
1930
|
-
};
|
|
1931
|
-
};
|
|
1932
|
-
const se_S3DestinationConfiguration = (input, context) => {
|
|
1933
|
-
return {
|
|
1934
|
-
...(input.bucketName != null && { bucketName: input.bucketName }),
|
|
1935
|
-
};
|
|
1936
|
-
};
|
|
1937
|
-
const se_StreamFilters = (input, context) => {
|
|
1938
|
-
return {
|
|
1939
|
-
...(input.health != null && { health: input.health }),
|
|
1940
|
-
};
|
|
1941
|
-
};
|
|
1942
|
-
const se_StreamKeyArnList = (input, context) => {
|
|
1943
|
-
return input
|
|
1944
|
-
.filter((e) => e != null)
|
|
1945
|
-
.map((entry) => {
|
|
1946
|
-
return entry;
|
|
1947
|
-
});
|
|
1948
|
-
};
|
|
1949
|
-
const se_Tags = (input, context) => {
|
|
1950
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1951
|
-
if (value === null) {
|
|
1952
|
-
return acc;
|
|
1953
|
-
}
|
|
1954
|
-
acc[key] = value;
|
|
1955
|
-
return acc;
|
|
1956
|
-
}, {});
|
|
1957
|
-
};
|
|
1958
|
-
const se_ThumbnailConfiguration = (input, context) => {
|
|
1959
|
-
return {
|
|
1960
|
-
...(input.recordingMode != null && { recordingMode: input.recordingMode }),
|
|
1961
|
-
...(input.targetIntervalSeconds != null && { targetIntervalSeconds: input.targetIntervalSeconds }),
|
|
1962
|
-
};
|
|
1963
|
-
};
|
|
1964
|
-
const de_AudioConfiguration = (output, context) => {
|
|
1965
|
-
return {
|
|
1966
|
-
channels: (0, smithy_client_1.expectLong)(output.channels),
|
|
1967
|
-
codec: (0, smithy_client_1.expectString)(output.codec),
|
|
1968
|
-
sampleRate: (0, smithy_client_1.expectLong)(output.sampleRate),
|
|
1969
|
-
targetBitrate: (0, smithy_client_1.expectLong)(output.targetBitrate),
|
|
1970
|
-
};
|
|
1971
|
-
};
|
|
1972
|
-
const de_BatchError = (output, context) => {
|
|
1973
|
-
return {
|
|
1974
|
-
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1975
|
-
code: (0, smithy_client_1.expectString)(output.code),
|
|
1976
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1977
|
-
};
|
|
1978
|
-
};
|
|
1979
|
-
const de_BatchErrors = (output, context) => {
|
|
1980
|
-
const retVal = (output || [])
|
|
1981
|
-
.filter((e) => e != null)
|
|
1982
|
-
.map((entry) => {
|
|
1983
|
-
if (entry === null) {
|
|
1984
|
-
return null;
|
|
1985
|
-
}
|
|
1986
|
-
return de_BatchError(entry, context);
|
|
1987
|
-
});
|
|
1988
|
-
return retVal;
|
|
1989
|
-
};
|
|
1990
|
-
const de_Channel = (output, context) => {
|
|
1991
|
-
return {
|
|
1992
|
-
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1993
|
-
authorized: (0, smithy_client_1.expectBoolean)(output.authorized),
|
|
1994
|
-
ingestEndpoint: (0, smithy_client_1.expectString)(output.ingestEndpoint),
|
|
1995
|
-
insecureIngest: (0, smithy_client_1.expectBoolean)(output.insecureIngest),
|
|
1996
|
-
latencyMode: (0, smithy_client_1.expectString)(output.latencyMode),
|
|
1997
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
1998
|
-
playbackUrl: (0, smithy_client_1.expectString)(output.playbackUrl),
|
|
1999
|
-
recordingConfigurationArn: (0, smithy_client_1.expectString)(output.recordingConfigurationArn),
|
|
2000
|
-
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2001
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
2002
|
-
};
|
|
2003
|
-
};
|
|
2004
|
-
const de_ChannelList = (output, context) => {
|
|
2005
|
-
const retVal = (output || [])
|
|
2006
|
-
.filter((e) => e != null)
|
|
2007
|
-
.map((entry) => {
|
|
2008
|
-
if (entry === null) {
|
|
2009
|
-
return null;
|
|
2010
|
-
}
|
|
2011
|
-
return de_ChannelSummary(entry, context);
|
|
2012
|
-
});
|
|
2013
|
-
return retVal;
|
|
2014
|
-
};
|
|
2015
|
-
const de_Channels = (output, context) => {
|
|
2016
|
-
const retVal = (output || [])
|
|
2017
|
-
.filter((e) => e != null)
|
|
2018
|
-
.map((entry) => {
|
|
2019
|
-
if (entry === null) {
|
|
2020
|
-
return null;
|
|
2021
|
-
}
|
|
2022
|
-
return de_Channel(entry, context);
|
|
2023
|
-
});
|
|
2024
|
-
return retVal;
|
|
2025
|
-
};
|
|
2026
|
-
const de_ChannelSummary = (output, context) => {
|
|
2027
|
-
return {
|
|
2028
|
-
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2029
|
-
authorized: (0, smithy_client_1.expectBoolean)(output.authorized),
|
|
2030
|
-
insecureIngest: (0, smithy_client_1.expectBoolean)(output.insecureIngest),
|
|
2031
|
-
latencyMode: (0, smithy_client_1.expectString)(output.latencyMode),
|
|
2032
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2033
|
-
recordingConfigurationArn: (0, smithy_client_1.expectString)(output.recordingConfigurationArn),
|
|
2034
|
-
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2035
|
-
};
|
|
2036
|
-
};
|
|
2037
|
-
const de_DestinationConfiguration = (output, context) => {
|
|
2038
|
-
return {
|
|
2039
|
-
s3: output.s3 != null ? de_S3DestinationConfiguration(output.s3, context) : undefined,
|
|
2040
|
-
};
|
|
2041
|
-
};
|
|
2042
|
-
const de_IngestConfiguration = (output, context) => {
|
|
2043
|
-
return {
|
|
2044
|
-
audio: output.audio != null ? de_AudioConfiguration(output.audio, context) : undefined,
|
|
2045
|
-
video: output.video != null ? de_VideoConfiguration(output.video, context) : undefined,
|
|
2046
|
-
};
|
|
2047
|
-
};
|
|
2048
|
-
const de_PlaybackKeyPair = (output, context) => {
|
|
2049
|
-
return {
|
|
2050
|
-
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2051
|
-
fingerprint: (0, smithy_client_1.expectString)(output.fingerprint),
|
|
2052
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2053
|
-
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2054
|
-
};
|
|
2055
|
-
};
|
|
2056
|
-
const de_PlaybackKeyPairList = (output, context) => {
|
|
2057
|
-
const retVal = (output || [])
|
|
2058
|
-
.filter((e) => e != null)
|
|
2059
|
-
.map((entry) => {
|
|
2060
|
-
if (entry === null) {
|
|
2061
|
-
return null;
|
|
2062
|
-
}
|
|
2063
|
-
return de_PlaybackKeyPairSummary(entry, context);
|
|
2064
|
-
});
|
|
2065
|
-
return retVal;
|
|
2066
|
-
};
|
|
2067
|
-
const de_PlaybackKeyPairSummary = (output, context) => {
|
|
2068
|
-
return {
|
|
2069
|
-
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2070
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2071
|
-
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2072
|
-
};
|
|
2073
|
-
};
|
|
2074
|
-
const de_RecordingConfiguration = (output, context) => {
|
|
2075
|
-
return {
|
|
2076
|
-
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2077
|
-
destinationConfiguration: output.destinationConfiguration != null
|
|
2078
|
-
? de_DestinationConfiguration(output.destinationConfiguration, context)
|
|
2079
|
-
: undefined,
|
|
2080
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2081
|
-
recordingReconnectWindowSeconds: (0, smithy_client_1.expectInt32)(output.recordingReconnectWindowSeconds),
|
|
2082
|
-
state: (0, smithy_client_1.expectString)(output.state),
|
|
2083
|
-
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2084
|
-
thumbnailConfiguration: output.thumbnailConfiguration != null
|
|
2085
|
-
? de_ThumbnailConfiguration(output.thumbnailConfiguration, context)
|
|
2086
|
-
: undefined,
|
|
2087
|
-
};
|
|
2088
|
-
};
|
|
2089
|
-
const de_RecordingConfigurationList = (output, context) => {
|
|
2090
|
-
const retVal = (output || [])
|
|
2091
|
-
.filter((e) => e != null)
|
|
2092
|
-
.map((entry) => {
|
|
2093
|
-
if (entry === null) {
|
|
2094
|
-
return null;
|
|
2095
|
-
}
|
|
2096
|
-
return de_RecordingConfigurationSummary(entry, context);
|
|
2097
|
-
});
|
|
2098
|
-
return retVal;
|
|
2099
|
-
};
|
|
2100
|
-
const de_RecordingConfigurationSummary = (output, context) => {
|
|
2101
|
-
return {
|
|
2102
|
-
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2103
|
-
destinationConfiguration: output.destinationConfiguration != null
|
|
2104
|
-
? de_DestinationConfiguration(output.destinationConfiguration, context)
|
|
2105
|
-
: undefined,
|
|
2106
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2107
|
-
state: (0, smithy_client_1.expectString)(output.state),
|
|
2108
|
-
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2109
|
-
};
|
|
2110
|
-
};
|
|
2111
|
-
const de_S3DestinationConfiguration = (output, context) => {
|
|
2112
|
-
return {
|
|
2113
|
-
bucketName: (0, smithy_client_1.expectString)(output.bucketName),
|
|
2114
|
-
};
|
|
2115
|
-
};
|
|
2116
1896
|
const de__Stream = (output, context) => {
|
|
2117
|
-
return {
|
|
2118
|
-
channelArn:
|
|
2119
|
-
health:
|
|
2120
|
-
playbackUrl:
|
|
2121
|
-
startTime:
|
|
2122
|
-
state:
|
|
2123
|
-
streamId:
|
|
2124
|
-
viewerCount:
|
|
2125
|
-
};
|
|
1897
|
+
return (0, smithy_client_1.take)(output, {
|
|
1898
|
+
channelArn: smithy_client_1.expectString,
|
|
1899
|
+
health: smithy_client_1.expectString,
|
|
1900
|
+
playbackUrl: smithy_client_1.expectString,
|
|
1901
|
+
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1902
|
+
state: smithy_client_1.expectString,
|
|
1903
|
+
streamId: smithy_client_1.expectString,
|
|
1904
|
+
viewerCount: smithy_client_1.expectLong,
|
|
1905
|
+
});
|
|
2126
1906
|
};
|
|
2127
1907
|
const de_StreamEvent = (output, context) => {
|
|
2128
|
-
return {
|
|
2129
|
-
eventTime:
|
|
2130
|
-
name:
|
|
2131
|
-
type:
|
|
2132
|
-
};
|
|
1908
|
+
return (0, smithy_client_1.take)(output, {
|
|
1909
|
+
eventTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1910
|
+
name: smithy_client_1.expectString,
|
|
1911
|
+
type: smithy_client_1.expectString,
|
|
1912
|
+
});
|
|
2133
1913
|
};
|
|
2134
1914
|
const de_StreamEvents = (output, context) => {
|
|
2135
1915
|
const retVal = (output || [])
|
|
2136
1916
|
.filter((e) => e != null)
|
|
2137
1917
|
.map((entry) => {
|
|
2138
|
-
if (entry === null) {
|
|
2139
|
-
return null;
|
|
2140
|
-
}
|
|
2141
1918
|
return de_StreamEvent(entry, context);
|
|
2142
1919
|
});
|
|
2143
1920
|
return retVal;
|
|
2144
1921
|
};
|
|
2145
|
-
const de_StreamKey = (output, context) => {
|
|
2146
|
-
return {
|
|
2147
|
-
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2148
|
-
channelArn: (0, smithy_client_1.expectString)(output.channelArn),
|
|
2149
|
-
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2150
|
-
value: (0, smithy_client_1.expectString)(output.value),
|
|
2151
|
-
};
|
|
2152
|
-
};
|
|
2153
|
-
const de_StreamKeyList = (output, context) => {
|
|
2154
|
-
const retVal = (output || [])
|
|
2155
|
-
.filter((e) => e != null)
|
|
2156
|
-
.map((entry) => {
|
|
2157
|
-
if (entry === null) {
|
|
2158
|
-
return null;
|
|
2159
|
-
}
|
|
2160
|
-
return de_StreamKeySummary(entry, context);
|
|
2161
|
-
});
|
|
2162
|
-
return retVal;
|
|
2163
|
-
};
|
|
2164
|
-
const de_StreamKeys = (output, context) => {
|
|
2165
|
-
const retVal = (output || [])
|
|
2166
|
-
.filter((e) => e != null)
|
|
2167
|
-
.map((entry) => {
|
|
2168
|
-
if (entry === null) {
|
|
2169
|
-
return null;
|
|
2170
|
-
}
|
|
2171
|
-
return de_StreamKey(entry, context);
|
|
2172
|
-
});
|
|
2173
|
-
return retVal;
|
|
2174
|
-
};
|
|
2175
|
-
const de_StreamKeySummary = (output, context) => {
|
|
2176
|
-
return {
|
|
2177
|
-
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2178
|
-
channelArn: (0, smithy_client_1.expectString)(output.channelArn),
|
|
2179
|
-
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2180
|
-
};
|
|
2181
|
-
};
|
|
2182
1922
|
const de_StreamList = (output, context) => {
|
|
2183
1923
|
const retVal = (output || [])
|
|
2184
1924
|
.filter((e) => e != null)
|
|
2185
1925
|
.map((entry) => {
|
|
2186
|
-
if (entry === null) {
|
|
2187
|
-
return null;
|
|
2188
|
-
}
|
|
2189
1926
|
return de_StreamSummary(entry, context);
|
|
2190
1927
|
});
|
|
2191
1928
|
return retVal;
|
|
2192
1929
|
};
|
|
2193
1930
|
const de_StreamSession = (output, context) => {
|
|
2194
|
-
return {
|
|
2195
|
-
channel:
|
|
2196
|
-
endTime:
|
|
2197
|
-
ingestConfiguration:
|
|
2198
|
-
recordingConfiguration:
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
truncatedEvents: output.truncatedEvents != null ? de_StreamEvents(output.truncatedEvents, context) : undefined,
|
|
2204
|
-
};
|
|
1931
|
+
return (0, smithy_client_1.take)(output, {
|
|
1932
|
+
channel: smithy_client_1._json,
|
|
1933
|
+
endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1934
|
+
ingestConfiguration: smithy_client_1._json,
|
|
1935
|
+
recordingConfiguration: smithy_client_1._json,
|
|
1936
|
+
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1937
|
+
streamId: smithy_client_1.expectString,
|
|
1938
|
+
truncatedEvents: (_) => de_StreamEvents(_, context),
|
|
1939
|
+
});
|
|
2205
1940
|
};
|
|
2206
1941
|
const de_StreamSessionList = (output, context) => {
|
|
2207
1942
|
const retVal = (output || [])
|
|
2208
1943
|
.filter((e) => e != null)
|
|
2209
1944
|
.map((entry) => {
|
|
2210
|
-
if (entry === null) {
|
|
2211
|
-
return null;
|
|
2212
|
-
}
|
|
2213
1945
|
return de_StreamSessionSummary(entry, context);
|
|
2214
1946
|
});
|
|
2215
1947
|
return retVal;
|
|
2216
1948
|
};
|
|
2217
1949
|
const de_StreamSessionSummary = (output, context) => {
|
|
2218
|
-
return {
|
|
2219
|
-
endTime:
|
|
2220
|
-
hasErrorEvent:
|
|
2221
|
-
startTime:
|
|
2222
|
-
streamId:
|
|
2223
|
-
};
|
|
1950
|
+
return (0, smithy_client_1.take)(output, {
|
|
1951
|
+
endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1952
|
+
hasErrorEvent: smithy_client_1.expectBoolean,
|
|
1953
|
+
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1954
|
+
streamId: smithy_client_1.expectString,
|
|
1955
|
+
});
|
|
2224
1956
|
};
|
|
2225
1957
|
const de_StreamSummary = (output, context) => {
|
|
2226
|
-
return {
|
|
2227
|
-
channelArn:
|
|
2228
|
-
health:
|
|
2229
|
-
startTime:
|
|
2230
|
-
state:
|
|
2231
|
-
streamId:
|
|
2232
|
-
viewerCount:
|
|
2233
|
-
};
|
|
2234
|
-
};
|
|
2235
|
-
const de_Tags = (output, context) => {
|
|
2236
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2237
|
-
if (value === null) {
|
|
2238
|
-
return acc;
|
|
2239
|
-
}
|
|
2240
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
2241
|
-
return acc;
|
|
2242
|
-
}, {});
|
|
2243
|
-
};
|
|
2244
|
-
const de_ThumbnailConfiguration = (output, context) => {
|
|
2245
|
-
return {
|
|
2246
|
-
recordingMode: (0, smithy_client_1.expectString)(output.recordingMode),
|
|
2247
|
-
targetIntervalSeconds: (0, smithy_client_1.expectLong)(output.targetIntervalSeconds),
|
|
2248
|
-
};
|
|
2249
|
-
};
|
|
2250
|
-
const de_VideoConfiguration = (output, context) => {
|
|
2251
|
-
return {
|
|
2252
|
-
avcLevel: (0, smithy_client_1.expectString)(output.avcLevel),
|
|
2253
|
-
avcProfile: (0, smithy_client_1.expectString)(output.avcProfile),
|
|
2254
|
-
codec: (0, smithy_client_1.expectString)(output.codec),
|
|
2255
|
-
encoder: (0, smithy_client_1.expectString)(output.encoder),
|
|
2256
|
-
targetBitrate: (0, smithy_client_1.expectLong)(output.targetBitrate),
|
|
2257
|
-
targetFramerate: (0, smithy_client_1.expectLong)(output.targetFramerate),
|
|
2258
|
-
videoHeight: (0, smithy_client_1.expectLong)(output.videoHeight),
|
|
2259
|
-
videoWidth: (0, smithy_client_1.expectLong)(output.videoWidth),
|
|
2260
|
-
};
|
|
1958
|
+
return (0, smithy_client_1.take)(output, {
|
|
1959
|
+
channelArn: smithy_client_1.expectString,
|
|
1960
|
+
health: smithy_client_1.expectString,
|
|
1961
|
+
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1962
|
+
state: smithy_client_1.expectString,
|
|
1963
|
+
streamId: smithy_client_1.expectString,
|
|
1964
|
+
viewerCount: smithy_client_1.expectLong,
|
|
1965
|
+
});
|
|
2261
1966
|
};
|
|
2262
1967
|
const deserializeMetadata = (output) => ({
|
|
2263
1968
|
httpStatusCode: output.statusCode,
|