@aws-sdk/client-ivs 3.310.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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { IvsServiceException as __BaseException } from "../models/IvsServiceException";
|
|
4
4
|
import { AccessDeniedException, ChannelNotBroadcasting, ConflictException, InternalServerException, PendingVerification, ResourceNotFoundException, ServiceQuotaExceededException, StreamUnavailable, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
5
|
export const se_BatchGetChannelCommand = async (input, context) => {
|
|
@@ -9,9 +9,9 @@ export const se_BatchGetChannelCommand = async (input, context) => {
|
|
|
9
9
|
};
|
|
10
10
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/BatchGetChannel";
|
|
11
11
|
let body;
|
|
12
|
-
body = JSON.stringify({
|
|
13
|
-
|
|
14
|
-
});
|
|
12
|
+
body = JSON.stringify(take(input, {
|
|
13
|
+
arns: (_) => _json(_),
|
|
14
|
+
}));
|
|
15
15
|
return new __HttpRequest({
|
|
16
16
|
protocol,
|
|
17
17
|
hostname,
|
|
@@ -29,9 +29,9 @@ export const se_BatchGetStreamKeyCommand = async (input, context) => {
|
|
|
29
29
|
};
|
|
30
30
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/BatchGetStreamKey";
|
|
31
31
|
let body;
|
|
32
|
-
body = JSON.stringify({
|
|
33
|
-
|
|
34
|
-
});
|
|
32
|
+
body = JSON.stringify(take(input, {
|
|
33
|
+
arns: (_) => _json(_),
|
|
34
|
+
}));
|
|
35
35
|
return new __HttpRequest({
|
|
36
36
|
protocol,
|
|
37
37
|
hostname,
|
|
@@ -49,15 +49,15 @@ export const se_CreateChannelCommand = async (input, context) => {
|
|
|
49
49
|
};
|
|
50
50
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateChannel";
|
|
51
51
|
let body;
|
|
52
|
-
body = JSON.stringify({
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
});
|
|
52
|
+
body = JSON.stringify(take(input, {
|
|
53
|
+
authorized: [],
|
|
54
|
+
insecureIngest: [],
|
|
55
|
+
latencyMode: [],
|
|
56
|
+
name: [],
|
|
57
|
+
recordingConfigurationArn: [],
|
|
58
|
+
tags: (_) => _json(_),
|
|
59
|
+
type: [],
|
|
60
|
+
}));
|
|
61
61
|
return new __HttpRequest({
|
|
62
62
|
protocol,
|
|
63
63
|
hostname,
|
|
@@ -75,19 +75,13 @@ export const se_CreateRecordingConfigurationCommand = async (input, context) =>
|
|
|
75
75
|
};
|
|
76
76
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateRecordingConfiguration";
|
|
77
77
|
let body;
|
|
78
|
-
body = JSON.stringify({
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}),
|
|
86
|
-
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
87
|
-
...(input.thumbnailConfiguration != null && {
|
|
88
|
-
thumbnailConfiguration: se_ThumbnailConfiguration(input.thumbnailConfiguration, context),
|
|
89
|
-
}),
|
|
90
|
-
});
|
|
78
|
+
body = JSON.stringify(take(input, {
|
|
79
|
+
destinationConfiguration: (_) => _json(_),
|
|
80
|
+
name: [],
|
|
81
|
+
recordingReconnectWindowSeconds: [],
|
|
82
|
+
tags: (_) => _json(_),
|
|
83
|
+
thumbnailConfiguration: (_) => _json(_),
|
|
84
|
+
}));
|
|
91
85
|
return new __HttpRequest({
|
|
92
86
|
protocol,
|
|
93
87
|
hostname,
|
|
@@ -105,10 +99,10 @@ export const se_CreateStreamKeyCommand = async (input, context) => {
|
|
|
105
99
|
};
|
|
106
100
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateStreamKey";
|
|
107
101
|
let body;
|
|
108
|
-
body = JSON.stringify({
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
});
|
|
102
|
+
body = JSON.stringify(take(input, {
|
|
103
|
+
channelArn: [],
|
|
104
|
+
tags: (_) => _json(_),
|
|
105
|
+
}));
|
|
112
106
|
return new __HttpRequest({
|
|
113
107
|
protocol,
|
|
114
108
|
hostname,
|
|
@@ -126,9 +120,9 @@ export const se_DeleteChannelCommand = async (input, context) => {
|
|
|
126
120
|
};
|
|
127
121
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteChannel";
|
|
128
122
|
let body;
|
|
129
|
-
body = JSON.stringify({
|
|
130
|
-
|
|
131
|
-
});
|
|
123
|
+
body = JSON.stringify(take(input, {
|
|
124
|
+
arn: [],
|
|
125
|
+
}));
|
|
132
126
|
return new __HttpRequest({
|
|
133
127
|
protocol,
|
|
134
128
|
hostname,
|
|
@@ -146,9 +140,9 @@ export const se_DeletePlaybackKeyPairCommand = async (input, context) => {
|
|
|
146
140
|
};
|
|
147
141
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeletePlaybackKeyPair";
|
|
148
142
|
let body;
|
|
149
|
-
body = JSON.stringify({
|
|
150
|
-
|
|
151
|
-
});
|
|
143
|
+
body = JSON.stringify(take(input, {
|
|
144
|
+
arn: [],
|
|
145
|
+
}));
|
|
152
146
|
return new __HttpRequest({
|
|
153
147
|
protocol,
|
|
154
148
|
hostname,
|
|
@@ -166,9 +160,9 @@ export const se_DeleteRecordingConfigurationCommand = async (input, context) =>
|
|
|
166
160
|
};
|
|
167
161
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteRecordingConfiguration";
|
|
168
162
|
let body;
|
|
169
|
-
body = JSON.stringify({
|
|
170
|
-
|
|
171
|
-
});
|
|
163
|
+
body = JSON.stringify(take(input, {
|
|
164
|
+
arn: [],
|
|
165
|
+
}));
|
|
172
166
|
return new __HttpRequest({
|
|
173
167
|
protocol,
|
|
174
168
|
hostname,
|
|
@@ -186,9 +180,9 @@ export const se_DeleteStreamKeyCommand = async (input, context) => {
|
|
|
186
180
|
};
|
|
187
181
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteStreamKey";
|
|
188
182
|
let body;
|
|
189
|
-
body = JSON.stringify({
|
|
190
|
-
|
|
191
|
-
});
|
|
183
|
+
body = JSON.stringify(take(input, {
|
|
184
|
+
arn: [],
|
|
185
|
+
}));
|
|
192
186
|
return new __HttpRequest({
|
|
193
187
|
protocol,
|
|
194
188
|
hostname,
|
|
@@ -206,9 +200,9 @@ export const se_GetChannelCommand = async (input, context) => {
|
|
|
206
200
|
};
|
|
207
201
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetChannel";
|
|
208
202
|
let body;
|
|
209
|
-
body = JSON.stringify({
|
|
210
|
-
|
|
211
|
-
});
|
|
203
|
+
body = JSON.stringify(take(input, {
|
|
204
|
+
arn: [],
|
|
205
|
+
}));
|
|
212
206
|
return new __HttpRequest({
|
|
213
207
|
protocol,
|
|
214
208
|
hostname,
|
|
@@ -226,9 +220,9 @@ export const se_GetPlaybackKeyPairCommand = async (input, context) => {
|
|
|
226
220
|
};
|
|
227
221
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetPlaybackKeyPair";
|
|
228
222
|
let body;
|
|
229
|
-
body = JSON.stringify({
|
|
230
|
-
|
|
231
|
-
});
|
|
223
|
+
body = JSON.stringify(take(input, {
|
|
224
|
+
arn: [],
|
|
225
|
+
}));
|
|
232
226
|
return new __HttpRequest({
|
|
233
227
|
protocol,
|
|
234
228
|
hostname,
|
|
@@ -246,9 +240,9 @@ export const se_GetRecordingConfigurationCommand = async (input, context) => {
|
|
|
246
240
|
};
|
|
247
241
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetRecordingConfiguration";
|
|
248
242
|
let body;
|
|
249
|
-
body = JSON.stringify({
|
|
250
|
-
|
|
251
|
-
});
|
|
243
|
+
body = JSON.stringify(take(input, {
|
|
244
|
+
arn: [],
|
|
245
|
+
}));
|
|
252
246
|
return new __HttpRequest({
|
|
253
247
|
protocol,
|
|
254
248
|
hostname,
|
|
@@ -266,9 +260,9 @@ export const se_GetStreamCommand = async (input, context) => {
|
|
|
266
260
|
};
|
|
267
261
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetStream";
|
|
268
262
|
let body;
|
|
269
|
-
body = JSON.stringify({
|
|
270
|
-
|
|
271
|
-
});
|
|
263
|
+
body = JSON.stringify(take(input, {
|
|
264
|
+
channelArn: [],
|
|
265
|
+
}));
|
|
272
266
|
return new __HttpRequest({
|
|
273
267
|
protocol,
|
|
274
268
|
hostname,
|
|
@@ -286,9 +280,9 @@ export const se_GetStreamKeyCommand = async (input, context) => {
|
|
|
286
280
|
};
|
|
287
281
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetStreamKey";
|
|
288
282
|
let body;
|
|
289
|
-
body = JSON.stringify({
|
|
290
|
-
|
|
291
|
-
});
|
|
283
|
+
body = JSON.stringify(take(input, {
|
|
284
|
+
arn: [],
|
|
285
|
+
}));
|
|
292
286
|
return new __HttpRequest({
|
|
293
287
|
protocol,
|
|
294
288
|
hostname,
|
|
@@ -306,10 +300,10 @@ export const se_GetStreamSessionCommand = async (input, context) => {
|
|
|
306
300
|
};
|
|
307
301
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetStreamSession";
|
|
308
302
|
let body;
|
|
309
|
-
body = JSON.stringify({
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
});
|
|
303
|
+
body = JSON.stringify(take(input, {
|
|
304
|
+
channelArn: [],
|
|
305
|
+
streamId: [],
|
|
306
|
+
}));
|
|
313
307
|
return new __HttpRequest({
|
|
314
308
|
protocol,
|
|
315
309
|
hostname,
|
|
@@ -327,11 +321,11 @@ export const se_ImportPlaybackKeyPairCommand = async (input, context) => {
|
|
|
327
321
|
};
|
|
328
322
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ImportPlaybackKeyPair";
|
|
329
323
|
let body;
|
|
330
|
-
body = JSON.stringify({
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
});
|
|
324
|
+
body = JSON.stringify(take(input, {
|
|
325
|
+
name: [],
|
|
326
|
+
publicKeyMaterial: [],
|
|
327
|
+
tags: (_) => _json(_),
|
|
328
|
+
}));
|
|
335
329
|
return new __HttpRequest({
|
|
336
330
|
protocol,
|
|
337
331
|
hostname,
|
|
@@ -349,14 +343,12 @@ export const se_ListChannelsCommand = async (input, context) => {
|
|
|
349
343
|
};
|
|
350
344
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListChannels";
|
|
351
345
|
let body;
|
|
352
|
-
body = JSON.stringify({
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
359
|
-
});
|
|
346
|
+
body = JSON.stringify(take(input, {
|
|
347
|
+
filterByName: [],
|
|
348
|
+
filterByRecordingConfigurationArn: [],
|
|
349
|
+
maxResults: [],
|
|
350
|
+
nextToken: [],
|
|
351
|
+
}));
|
|
360
352
|
return new __HttpRequest({
|
|
361
353
|
protocol,
|
|
362
354
|
hostname,
|
|
@@ -374,10 +366,10 @@ export const se_ListPlaybackKeyPairsCommand = async (input, context) => {
|
|
|
374
366
|
};
|
|
375
367
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListPlaybackKeyPairs";
|
|
376
368
|
let body;
|
|
377
|
-
body = JSON.stringify({
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
});
|
|
369
|
+
body = JSON.stringify(take(input, {
|
|
370
|
+
maxResults: [],
|
|
371
|
+
nextToken: [],
|
|
372
|
+
}));
|
|
381
373
|
return new __HttpRequest({
|
|
382
374
|
protocol,
|
|
383
375
|
hostname,
|
|
@@ -395,10 +387,10 @@ export const se_ListRecordingConfigurationsCommand = async (input, context) => {
|
|
|
395
387
|
};
|
|
396
388
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListRecordingConfigurations";
|
|
397
389
|
let body;
|
|
398
|
-
body = JSON.stringify({
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
});
|
|
390
|
+
body = JSON.stringify(take(input, {
|
|
391
|
+
maxResults: [],
|
|
392
|
+
nextToken: [],
|
|
393
|
+
}));
|
|
402
394
|
return new __HttpRequest({
|
|
403
395
|
protocol,
|
|
404
396
|
hostname,
|
|
@@ -416,11 +408,11 @@ export const se_ListStreamKeysCommand = async (input, context) => {
|
|
|
416
408
|
};
|
|
417
409
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListStreamKeys";
|
|
418
410
|
let body;
|
|
419
|
-
body = JSON.stringify({
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
});
|
|
411
|
+
body = JSON.stringify(take(input, {
|
|
412
|
+
channelArn: [],
|
|
413
|
+
maxResults: [],
|
|
414
|
+
nextToken: [],
|
|
415
|
+
}));
|
|
424
416
|
return new __HttpRequest({
|
|
425
417
|
protocol,
|
|
426
418
|
hostname,
|
|
@@ -438,11 +430,11 @@ export const se_ListStreamsCommand = async (input, context) => {
|
|
|
438
430
|
};
|
|
439
431
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListStreams";
|
|
440
432
|
let body;
|
|
441
|
-
body = JSON.stringify({
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
});
|
|
433
|
+
body = JSON.stringify(take(input, {
|
|
434
|
+
filterBy: (_) => _json(_),
|
|
435
|
+
maxResults: [],
|
|
436
|
+
nextToken: [],
|
|
437
|
+
}));
|
|
446
438
|
return new __HttpRequest({
|
|
447
439
|
protocol,
|
|
448
440
|
hostname,
|
|
@@ -460,11 +452,11 @@ export const se_ListStreamSessionsCommand = async (input, context) => {
|
|
|
460
452
|
};
|
|
461
453
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListStreamSessions";
|
|
462
454
|
let body;
|
|
463
|
-
body = JSON.stringify({
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
});
|
|
455
|
+
body = JSON.stringify(take(input, {
|
|
456
|
+
channelArn: [],
|
|
457
|
+
maxResults: [],
|
|
458
|
+
nextToken: [],
|
|
459
|
+
}));
|
|
468
460
|
return new __HttpRequest({
|
|
469
461
|
protocol,
|
|
470
462
|
hostname,
|
|
@@ -498,10 +490,10 @@ export const se_PutMetadataCommand = async (input, context) => {
|
|
|
498
490
|
};
|
|
499
491
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PutMetadata";
|
|
500
492
|
let body;
|
|
501
|
-
body = JSON.stringify({
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
});
|
|
493
|
+
body = JSON.stringify(take(input, {
|
|
494
|
+
channelArn: [],
|
|
495
|
+
metadata: [],
|
|
496
|
+
}));
|
|
505
497
|
return new __HttpRequest({
|
|
506
498
|
protocol,
|
|
507
499
|
hostname,
|
|
@@ -519,9 +511,9 @@ export const se_StopStreamCommand = async (input, context) => {
|
|
|
519
511
|
};
|
|
520
512
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StopStream";
|
|
521
513
|
let body;
|
|
522
|
-
body = JSON.stringify({
|
|
523
|
-
|
|
524
|
-
});
|
|
514
|
+
body = JSON.stringify(take(input, {
|
|
515
|
+
channelArn: [],
|
|
516
|
+
}));
|
|
525
517
|
return new __HttpRequest({
|
|
526
518
|
protocol,
|
|
527
519
|
hostname,
|
|
@@ -540,9 +532,9 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
540
532
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
541
533
|
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
542
534
|
let body;
|
|
543
|
-
body = JSON.stringify({
|
|
544
|
-
|
|
545
|
-
});
|
|
535
|
+
body = JSON.stringify(take(input, {
|
|
536
|
+
tags: (_) => _json(_),
|
|
537
|
+
}));
|
|
546
538
|
return new __HttpRequest({
|
|
547
539
|
protocol,
|
|
548
540
|
hostname,
|
|
@@ -583,15 +575,15 @@ export const se_UpdateChannelCommand = async (input, context) => {
|
|
|
583
575
|
};
|
|
584
576
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateChannel";
|
|
585
577
|
let body;
|
|
586
|
-
body = JSON.stringify({
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
});
|
|
578
|
+
body = JSON.stringify(take(input, {
|
|
579
|
+
arn: [],
|
|
580
|
+
authorized: [],
|
|
581
|
+
insecureIngest: [],
|
|
582
|
+
latencyMode: [],
|
|
583
|
+
name: [],
|
|
584
|
+
recordingConfigurationArn: [],
|
|
585
|
+
type: [],
|
|
586
|
+
}));
|
|
595
587
|
return new __HttpRequest({
|
|
596
588
|
protocol,
|
|
597
589
|
hostname,
|
|
@@ -610,12 +602,11 @@ export const de_BatchGetChannelCommand = async (output, context) => {
|
|
|
610
602
|
$metadata: deserializeMetadata(output),
|
|
611
603
|
});
|
|
612
604
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
}
|
|
605
|
+
const doc = take(data, {
|
|
606
|
+
channels: _json,
|
|
607
|
+
errors: _json,
|
|
608
|
+
});
|
|
609
|
+
Object.assign(contents, doc);
|
|
619
610
|
return contents;
|
|
620
611
|
};
|
|
621
612
|
const de_BatchGetChannelCommandError = async (output, context) => {
|
|
@@ -625,10 +616,9 @@ const de_BatchGetChannelCommandError = async (output, context) => {
|
|
|
625
616
|
};
|
|
626
617
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
627
618
|
const parsedBody = parsedOutput.body;
|
|
628
|
-
throwDefaultError({
|
|
619
|
+
return throwDefaultError({
|
|
629
620
|
output,
|
|
630
621
|
parsedBody,
|
|
631
|
-
exceptionCtor: __BaseException,
|
|
632
622
|
errorCode,
|
|
633
623
|
});
|
|
634
624
|
};
|
|
@@ -640,12 +630,11 @@ export const de_BatchGetStreamKeyCommand = async (output, context) => {
|
|
|
640
630
|
$metadata: deserializeMetadata(output),
|
|
641
631
|
});
|
|
642
632
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
}
|
|
633
|
+
const doc = take(data, {
|
|
634
|
+
errors: _json,
|
|
635
|
+
streamKeys: _json,
|
|
636
|
+
});
|
|
637
|
+
Object.assign(contents, doc);
|
|
649
638
|
return contents;
|
|
650
639
|
};
|
|
651
640
|
const de_BatchGetStreamKeyCommandError = async (output, context) => {
|
|
@@ -655,10 +644,9 @@ const de_BatchGetStreamKeyCommandError = async (output, context) => {
|
|
|
655
644
|
};
|
|
656
645
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
657
646
|
const parsedBody = parsedOutput.body;
|
|
658
|
-
throwDefaultError({
|
|
647
|
+
return throwDefaultError({
|
|
659
648
|
output,
|
|
660
649
|
parsedBody,
|
|
661
|
-
exceptionCtor: __BaseException,
|
|
662
650
|
errorCode,
|
|
663
651
|
});
|
|
664
652
|
};
|
|
@@ -670,12 +658,11 @@ export const de_CreateChannelCommand = async (output, context) => {
|
|
|
670
658
|
$metadata: deserializeMetadata(output),
|
|
671
659
|
});
|
|
672
660
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
}
|
|
661
|
+
const doc = take(data, {
|
|
662
|
+
channel: _json,
|
|
663
|
+
streamKey: _json,
|
|
664
|
+
});
|
|
665
|
+
Object.assign(contents, doc);
|
|
679
666
|
return contents;
|
|
680
667
|
};
|
|
681
668
|
const de_CreateChannelCommandError = async (output, context) => {
|
|
@@ -702,10 +689,9 @@ const de_CreateChannelCommandError = async (output, context) => {
|
|
|
702
689
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
703
690
|
default:
|
|
704
691
|
const parsedBody = parsedOutput.body;
|
|
705
|
-
throwDefaultError({
|
|
692
|
+
return throwDefaultError({
|
|
706
693
|
output,
|
|
707
694
|
parsedBody,
|
|
708
|
-
exceptionCtor: __BaseException,
|
|
709
695
|
errorCode,
|
|
710
696
|
});
|
|
711
697
|
}
|
|
@@ -718,9 +704,10 @@ export const de_CreateRecordingConfigurationCommand = async (output, context) =>
|
|
|
718
704
|
$metadata: deserializeMetadata(output),
|
|
719
705
|
});
|
|
720
706
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
}
|
|
707
|
+
const doc = take(data, {
|
|
708
|
+
recordingConfiguration: _json,
|
|
709
|
+
});
|
|
710
|
+
Object.assign(contents, doc);
|
|
724
711
|
return contents;
|
|
725
712
|
};
|
|
726
713
|
const de_CreateRecordingConfigurationCommandError = async (output, context) => {
|
|
@@ -750,10 +737,9 @@ const de_CreateRecordingConfigurationCommandError = async (output, context) => {
|
|
|
750
737
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
751
738
|
default:
|
|
752
739
|
const parsedBody = parsedOutput.body;
|
|
753
|
-
throwDefaultError({
|
|
740
|
+
return throwDefaultError({
|
|
754
741
|
output,
|
|
755
742
|
parsedBody,
|
|
756
|
-
exceptionCtor: __BaseException,
|
|
757
743
|
errorCode,
|
|
758
744
|
});
|
|
759
745
|
}
|
|
@@ -766,9 +752,10 @@ export const de_CreateStreamKeyCommand = async (output, context) => {
|
|
|
766
752
|
$metadata: deserializeMetadata(output),
|
|
767
753
|
});
|
|
768
754
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
}
|
|
755
|
+
const doc = take(data, {
|
|
756
|
+
streamKey: _json,
|
|
757
|
+
});
|
|
758
|
+
Object.assign(contents, doc);
|
|
772
759
|
return contents;
|
|
773
760
|
};
|
|
774
761
|
const de_CreateStreamKeyCommandError = async (output, context) => {
|
|
@@ -795,10 +782,9 @@ const de_CreateStreamKeyCommandError = async (output, context) => {
|
|
|
795
782
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
796
783
|
default:
|
|
797
784
|
const parsedBody = parsedOutput.body;
|
|
798
|
-
throwDefaultError({
|
|
785
|
+
return throwDefaultError({
|
|
799
786
|
output,
|
|
800
787
|
parsedBody,
|
|
801
|
-
exceptionCtor: __BaseException,
|
|
802
788
|
errorCode,
|
|
803
789
|
});
|
|
804
790
|
}
|
|
@@ -837,10 +823,9 @@ const de_DeleteChannelCommandError = async (output, context) => {
|
|
|
837
823
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
838
824
|
default:
|
|
839
825
|
const parsedBody = parsedOutput.body;
|
|
840
|
-
throwDefaultError({
|
|
826
|
+
return throwDefaultError({
|
|
841
827
|
output,
|
|
842
828
|
parsedBody,
|
|
843
|
-
exceptionCtor: __BaseException,
|
|
844
829
|
errorCode,
|
|
845
830
|
});
|
|
846
831
|
}
|
|
@@ -876,10 +861,9 @@ const de_DeletePlaybackKeyPairCommandError = async (output, context) => {
|
|
|
876
861
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
877
862
|
default:
|
|
878
863
|
const parsedBody = parsedOutput.body;
|
|
879
|
-
throwDefaultError({
|
|
864
|
+
return throwDefaultError({
|
|
880
865
|
output,
|
|
881
866
|
parsedBody,
|
|
882
|
-
exceptionCtor: __BaseException,
|
|
883
867
|
errorCode,
|
|
884
868
|
});
|
|
885
869
|
}
|
|
@@ -918,10 +902,9 @@ const de_DeleteRecordingConfigurationCommandError = async (output, context) => {
|
|
|
918
902
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
919
903
|
default:
|
|
920
904
|
const parsedBody = parsedOutput.body;
|
|
921
|
-
throwDefaultError({
|
|
905
|
+
return throwDefaultError({
|
|
922
906
|
output,
|
|
923
907
|
parsedBody,
|
|
924
|
-
exceptionCtor: __BaseException,
|
|
925
908
|
errorCode,
|
|
926
909
|
});
|
|
927
910
|
}
|
|
@@ -957,10 +940,9 @@ const de_DeleteStreamKeyCommandError = async (output, context) => {
|
|
|
957
940
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
958
941
|
default:
|
|
959
942
|
const parsedBody = parsedOutput.body;
|
|
960
|
-
throwDefaultError({
|
|
943
|
+
return throwDefaultError({
|
|
961
944
|
output,
|
|
962
945
|
parsedBody,
|
|
963
|
-
exceptionCtor: __BaseException,
|
|
964
946
|
errorCode,
|
|
965
947
|
});
|
|
966
948
|
}
|
|
@@ -973,9 +955,10 @@ export const de_GetChannelCommand = async (output, context) => {
|
|
|
973
955
|
$metadata: deserializeMetadata(output),
|
|
974
956
|
});
|
|
975
957
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
}
|
|
958
|
+
const doc = take(data, {
|
|
959
|
+
channel: _json,
|
|
960
|
+
});
|
|
961
|
+
Object.assign(contents, doc);
|
|
979
962
|
return contents;
|
|
980
963
|
};
|
|
981
964
|
const de_GetChannelCommandError = async (output, context) => {
|
|
@@ -996,10 +979,9 @@ const de_GetChannelCommandError = async (output, context) => {
|
|
|
996
979
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
997
980
|
default:
|
|
998
981
|
const parsedBody = parsedOutput.body;
|
|
999
|
-
throwDefaultError({
|
|
982
|
+
return throwDefaultError({
|
|
1000
983
|
output,
|
|
1001
984
|
parsedBody,
|
|
1002
|
-
exceptionCtor: __BaseException,
|
|
1003
985
|
errorCode,
|
|
1004
986
|
});
|
|
1005
987
|
}
|
|
@@ -1012,9 +994,10 @@ export const de_GetPlaybackKeyPairCommand = async (output, context) => {
|
|
|
1012
994
|
$metadata: deserializeMetadata(output),
|
|
1013
995
|
});
|
|
1014
996
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
}
|
|
997
|
+
const doc = take(data, {
|
|
998
|
+
keyPair: _json,
|
|
999
|
+
});
|
|
1000
|
+
Object.assign(contents, doc);
|
|
1018
1001
|
return contents;
|
|
1019
1002
|
};
|
|
1020
1003
|
const de_GetPlaybackKeyPairCommandError = async (output, context) => {
|
|
@@ -1035,10 +1018,9 @@ const de_GetPlaybackKeyPairCommandError = async (output, context) => {
|
|
|
1035
1018
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1036
1019
|
default:
|
|
1037
1020
|
const parsedBody = parsedOutput.body;
|
|
1038
|
-
throwDefaultError({
|
|
1021
|
+
return throwDefaultError({
|
|
1039
1022
|
output,
|
|
1040
1023
|
parsedBody,
|
|
1041
|
-
exceptionCtor: __BaseException,
|
|
1042
1024
|
errorCode,
|
|
1043
1025
|
});
|
|
1044
1026
|
}
|
|
@@ -1051,9 +1033,10 @@ export const de_GetRecordingConfigurationCommand = async (output, context) => {
|
|
|
1051
1033
|
$metadata: deserializeMetadata(output),
|
|
1052
1034
|
});
|
|
1053
1035
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
}
|
|
1036
|
+
const doc = take(data, {
|
|
1037
|
+
recordingConfiguration: _json,
|
|
1038
|
+
});
|
|
1039
|
+
Object.assign(contents, doc);
|
|
1057
1040
|
return contents;
|
|
1058
1041
|
};
|
|
1059
1042
|
const de_GetRecordingConfigurationCommandError = async (output, context) => {
|
|
@@ -1077,10 +1060,9 @@ const de_GetRecordingConfigurationCommandError = async (output, context) => {
|
|
|
1077
1060
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1078
1061
|
default:
|
|
1079
1062
|
const parsedBody = parsedOutput.body;
|
|
1080
|
-
throwDefaultError({
|
|
1063
|
+
return throwDefaultError({
|
|
1081
1064
|
output,
|
|
1082
1065
|
parsedBody,
|
|
1083
|
-
exceptionCtor: __BaseException,
|
|
1084
1066
|
errorCode,
|
|
1085
1067
|
});
|
|
1086
1068
|
}
|
|
@@ -1093,9 +1075,10 @@ export const de_GetStreamCommand = async (output, context) => {
|
|
|
1093
1075
|
$metadata: deserializeMetadata(output),
|
|
1094
1076
|
});
|
|
1095
1077
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
}
|
|
1078
|
+
const doc = take(data, {
|
|
1079
|
+
stream: (_) => de__Stream(_, context),
|
|
1080
|
+
});
|
|
1081
|
+
Object.assign(contents, doc);
|
|
1099
1082
|
return contents;
|
|
1100
1083
|
};
|
|
1101
1084
|
const de_GetStreamCommandError = async (output, context) => {
|
|
@@ -1119,10 +1102,9 @@ const de_GetStreamCommandError = async (output, context) => {
|
|
|
1119
1102
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1120
1103
|
default:
|
|
1121
1104
|
const parsedBody = parsedOutput.body;
|
|
1122
|
-
throwDefaultError({
|
|
1105
|
+
return throwDefaultError({
|
|
1123
1106
|
output,
|
|
1124
1107
|
parsedBody,
|
|
1125
|
-
exceptionCtor: __BaseException,
|
|
1126
1108
|
errorCode,
|
|
1127
1109
|
});
|
|
1128
1110
|
}
|
|
@@ -1135,9 +1117,10 @@ export const de_GetStreamKeyCommand = async (output, context) => {
|
|
|
1135
1117
|
$metadata: deserializeMetadata(output),
|
|
1136
1118
|
});
|
|
1137
1119
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
}
|
|
1120
|
+
const doc = take(data, {
|
|
1121
|
+
streamKey: _json,
|
|
1122
|
+
});
|
|
1123
|
+
Object.assign(contents, doc);
|
|
1141
1124
|
return contents;
|
|
1142
1125
|
};
|
|
1143
1126
|
const de_GetStreamKeyCommandError = async (output, context) => {
|
|
@@ -1158,10 +1141,9 @@ const de_GetStreamKeyCommandError = async (output, context) => {
|
|
|
1158
1141
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1159
1142
|
default:
|
|
1160
1143
|
const parsedBody = parsedOutput.body;
|
|
1161
|
-
throwDefaultError({
|
|
1144
|
+
return throwDefaultError({
|
|
1162
1145
|
output,
|
|
1163
1146
|
parsedBody,
|
|
1164
|
-
exceptionCtor: __BaseException,
|
|
1165
1147
|
errorCode,
|
|
1166
1148
|
});
|
|
1167
1149
|
}
|
|
@@ -1174,9 +1156,10 @@ export const de_GetStreamSessionCommand = async (output, context) => {
|
|
|
1174
1156
|
$metadata: deserializeMetadata(output),
|
|
1175
1157
|
});
|
|
1176
1158
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
}
|
|
1159
|
+
const doc = take(data, {
|
|
1160
|
+
streamSession: (_) => de_StreamSession(_, context),
|
|
1161
|
+
});
|
|
1162
|
+
Object.assign(contents, doc);
|
|
1180
1163
|
return contents;
|
|
1181
1164
|
};
|
|
1182
1165
|
const de_GetStreamSessionCommandError = async (output, context) => {
|
|
@@ -1197,10 +1180,9 @@ const de_GetStreamSessionCommandError = async (output, context) => {
|
|
|
1197
1180
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1198
1181
|
default:
|
|
1199
1182
|
const parsedBody = parsedOutput.body;
|
|
1200
|
-
throwDefaultError({
|
|
1183
|
+
return throwDefaultError({
|
|
1201
1184
|
output,
|
|
1202
1185
|
parsedBody,
|
|
1203
|
-
exceptionCtor: __BaseException,
|
|
1204
1186
|
errorCode,
|
|
1205
1187
|
});
|
|
1206
1188
|
}
|
|
@@ -1213,9 +1195,10 @@ export const de_ImportPlaybackKeyPairCommand = async (output, context) => {
|
|
|
1213
1195
|
$metadata: deserializeMetadata(output),
|
|
1214
1196
|
});
|
|
1215
1197
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
}
|
|
1198
|
+
const doc = take(data, {
|
|
1199
|
+
keyPair: _json,
|
|
1200
|
+
});
|
|
1201
|
+
Object.assign(contents, doc);
|
|
1219
1202
|
return contents;
|
|
1220
1203
|
};
|
|
1221
1204
|
const de_ImportPlaybackKeyPairCommandError = async (output, context) => {
|
|
@@ -1242,10 +1225,9 @@ const de_ImportPlaybackKeyPairCommandError = async (output, context) => {
|
|
|
1242
1225
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1243
1226
|
default:
|
|
1244
1227
|
const parsedBody = parsedOutput.body;
|
|
1245
|
-
throwDefaultError({
|
|
1228
|
+
return throwDefaultError({
|
|
1246
1229
|
output,
|
|
1247
1230
|
parsedBody,
|
|
1248
|
-
exceptionCtor: __BaseException,
|
|
1249
1231
|
errorCode,
|
|
1250
1232
|
});
|
|
1251
1233
|
}
|
|
@@ -1258,12 +1240,11 @@ export const de_ListChannelsCommand = async (output, context) => {
|
|
|
1258
1240
|
$metadata: deserializeMetadata(output),
|
|
1259
1241
|
});
|
|
1260
1242
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
}
|
|
1243
|
+
const doc = take(data, {
|
|
1244
|
+
channels: _json,
|
|
1245
|
+
nextToken: __expectString,
|
|
1246
|
+
});
|
|
1247
|
+
Object.assign(contents, doc);
|
|
1267
1248
|
return contents;
|
|
1268
1249
|
};
|
|
1269
1250
|
const de_ListChannelsCommandError = async (output, context) => {
|
|
@@ -1284,10 +1265,9 @@ const de_ListChannelsCommandError = async (output, context) => {
|
|
|
1284
1265
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1285
1266
|
default:
|
|
1286
1267
|
const parsedBody = parsedOutput.body;
|
|
1287
|
-
throwDefaultError({
|
|
1268
|
+
return throwDefaultError({
|
|
1288
1269
|
output,
|
|
1289
1270
|
parsedBody,
|
|
1290
|
-
exceptionCtor: __BaseException,
|
|
1291
1271
|
errorCode,
|
|
1292
1272
|
});
|
|
1293
1273
|
}
|
|
@@ -1300,12 +1280,11 @@ export const de_ListPlaybackKeyPairsCommand = async (output, context) => {
|
|
|
1300
1280
|
$metadata: deserializeMetadata(output),
|
|
1301
1281
|
});
|
|
1302
1282
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
}
|
|
1283
|
+
const doc = take(data, {
|
|
1284
|
+
keyPairs: _json,
|
|
1285
|
+
nextToken: __expectString,
|
|
1286
|
+
});
|
|
1287
|
+
Object.assign(contents, doc);
|
|
1309
1288
|
return contents;
|
|
1310
1289
|
};
|
|
1311
1290
|
const de_ListPlaybackKeyPairsCommandError = async (output, context) => {
|
|
@@ -1323,10 +1302,9 @@ const de_ListPlaybackKeyPairsCommandError = async (output, context) => {
|
|
|
1323
1302
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1324
1303
|
default:
|
|
1325
1304
|
const parsedBody = parsedOutput.body;
|
|
1326
|
-
throwDefaultError({
|
|
1305
|
+
return throwDefaultError({
|
|
1327
1306
|
output,
|
|
1328
1307
|
parsedBody,
|
|
1329
|
-
exceptionCtor: __BaseException,
|
|
1330
1308
|
errorCode,
|
|
1331
1309
|
});
|
|
1332
1310
|
}
|
|
@@ -1339,12 +1317,11 @@ export const de_ListRecordingConfigurationsCommand = async (output, context) =>
|
|
|
1339
1317
|
$metadata: deserializeMetadata(output),
|
|
1340
1318
|
});
|
|
1341
1319
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
}
|
|
1320
|
+
const doc = take(data, {
|
|
1321
|
+
nextToken: __expectString,
|
|
1322
|
+
recordingConfigurations: _json,
|
|
1323
|
+
});
|
|
1324
|
+
Object.assign(contents, doc);
|
|
1348
1325
|
return contents;
|
|
1349
1326
|
};
|
|
1350
1327
|
const de_ListRecordingConfigurationsCommandError = async (output, context) => {
|
|
@@ -1365,10 +1342,9 @@ const de_ListRecordingConfigurationsCommandError = async (output, context) => {
|
|
|
1365
1342
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1366
1343
|
default:
|
|
1367
1344
|
const parsedBody = parsedOutput.body;
|
|
1368
|
-
throwDefaultError({
|
|
1345
|
+
return throwDefaultError({
|
|
1369
1346
|
output,
|
|
1370
1347
|
parsedBody,
|
|
1371
|
-
exceptionCtor: __BaseException,
|
|
1372
1348
|
errorCode,
|
|
1373
1349
|
});
|
|
1374
1350
|
}
|
|
@@ -1381,12 +1357,11 @@ export const de_ListStreamKeysCommand = async (output, context) => {
|
|
|
1381
1357
|
$metadata: deserializeMetadata(output),
|
|
1382
1358
|
});
|
|
1383
1359
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
}
|
|
1360
|
+
const doc = take(data, {
|
|
1361
|
+
nextToken: __expectString,
|
|
1362
|
+
streamKeys: _json,
|
|
1363
|
+
});
|
|
1364
|
+
Object.assign(contents, doc);
|
|
1390
1365
|
return contents;
|
|
1391
1366
|
};
|
|
1392
1367
|
const de_ListStreamKeysCommandError = async (output, context) => {
|
|
@@ -1407,10 +1382,9 @@ const de_ListStreamKeysCommandError = async (output, context) => {
|
|
|
1407
1382
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1408
1383
|
default:
|
|
1409
1384
|
const parsedBody = parsedOutput.body;
|
|
1410
|
-
throwDefaultError({
|
|
1385
|
+
return throwDefaultError({
|
|
1411
1386
|
output,
|
|
1412
1387
|
parsedBody,
|
|
1413
|
-
exceptionCtor: __BaseException,
|
|
1414
1388
|
errorCode,
|
|
1415
1389
|
});
|
|
1416
1390
|
}
|
|
@@ -1423,12 +1397,11 @@ export const de_ListStreamsCommand = async (output, context) => {
|
|
|
1423
1397
|
$metadata: deserializeMetadata(output),
|
|
1424
1398
|
});
|
|
1425
1399
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
}
|
|
1400
|
+
const doc = take(data, {
|
|
1401
|
+
nextToken: __expectString,
|
|
1402
|
+
streams: (_) => de_StreamList(_, context),
|
|
1403
|
+
});
|
|
1404
|
+
Object.assign(contents, doc);
|
|
1432
1405
|
return contents;
|
|
1433
1406
|
};
|
|
1434
1407
|
const de_ListStreamsCommandError = async (output, context) => {
|
|
@@ -1446,10 +1419,9 @@ const de_ListStreamsCommandError = async (output, context) => {
|
|
|
1446
1419
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1447
1420
|
default:
|
|
1448
1421
|
const parsedBody = parsedOutput.body;
|
|
1449
|
-
throwDefaultError({
|
|
1422
|
+
return throwDefaultError({
|
|
1450
1423
|
output,
|
|
1451
1424
|
parsedBody,
|
|
1452
|
-
exceptionCtor: __BaseException,
|
|
1453
1425
|
errorCode,
|
|
1454
1426
|
});
|
|
1455
1427
|
}
|
|
@@ -1462,12 +1434,11 @@ export const de_ListStreamSessionsCommand = async (output, context) => {
|
|
|
1462
1434
|
$metadata: deserializeMetadata(output),
|
|
1463
1435
|
});
|
|
1464
1436
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
}
|
|
1437
|
+
const doc = take(data, {
|
|
1438
|
+
nextToken: __expectString,
|
|
1439
|
+
streamSessions: (_) => de_StreamSessionList(_, context),
|
|
1440
|
+
});
|
|
1441
|
+
Object.assign(contents, doc);
|
|
1471
1442
|
return contents;
|
|
1472
1443
|
};
|
|
1473
1444
|
const de_ListStreamSessionsCommandError = async (output, context) => {
|
|
@@ -1488,10 +1459,9 @@ const de_ListStreamSessionsCommandError = async (output, context) => {
|
|
|
1488
1459
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1489
1460
|
default:
|
|
1490
1461
|
const parsedBody = parsedOutput.body;
|
|
1491
|
-
throwDefaultError({
|
|
1462
|
+
return throwDefaultError({
|
|
1492
1463
|
output,
|
|
1493
1464
|
parsedBody,
|
|
1494
|
-
exceptionCtor: __BaseException,
|
|
1495
1465
|
errorCode,
|
|
1496
1466
|
});
|
|
1497
1467
|
}
|
|
@@ -1504,9 +1474,10 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1504
1474
|
$metadata: deserializeMetadata(output),
|
|
1505
1475
|
});
|
|
1506
1476
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
}
|
|
1477
|
+
const doc = take(data, {
|
|
1478
|
+
tags: _json,
|
|
1479
|
+
});
|
|
1480
|
+
Object.assign(contents, doc);
|
|
1510
1481
|
return contents;
|
|
1511
1482
|
};
|
|
1512
1483
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -1527,10 +1498,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1527
1498
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1528
1499
|
default:
|
|
1529
1500
|
const parsedBody = parsedOutput.body;
|
|
1530
|
-
throwDefaultError({
|
|
1501
|
+
return throwDefaultError({
|
|
1531
1502
|
output,
|
|
1532
1503
|
parsedBody,
|
|
1533
|
-
exceptionCtor: __BaseException,
|
|
1534
1504
|
errorCode,
|
|
1535
1505
|
});
|
|
1536
1506
|
}
|
|
@@ -1569,10 +1539,9 @@ const de_PutMetadataCommandError = async (output, context) => {
|
|
|
1569
1539
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1570
1540
|
default:
|
|
1571
1541
|
const parsedBody = parsedOutput.body;
|
|
1572
|
-
throwDefaultError({
|
|
1542
|
+
return throwDefaultError({
|
|
1573
1543
|
output,
|
|
1574
1544
|
parsedBody,
|
|
1575
|
-
exceptionCtor: __BaseException,
|
|
1576
1545
|
errorCode,
|
|
1577
1546
|
});
|
|
1578
1547
|
}
|
|
@@ -1611,10 +1580,9 @@ const de_StopStreamCommandError = async (output, context) => {
|
|
|
1611
1580
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1612
1581
|
default:
|
|
1613
1582
|
const parsedBody = parsedOutput.body;
|
|
1614
|
-
throwDefaultError({
|
|
1583
|
+
return throwDefaultError({
|
|
1615
1584
|
output,
|
|
1616
1585
|
parsedBody,
|
|
1617
|
-
exceptionCtor: __BaseException,
|
|
1618
1586
|
errorCode,
|
|
1619
1587
|
});
|
|
1620
1588
|
}
|
|
@@ -1647,10 +1615,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1647
1615
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1648
1616
|
default:
|
|
1649
1617
|
const parsedBody = parsedOutput.body;
|
|
1650
|
-
throwDefaultError({
|
|
1618
|
+
return throwDefaultError({
|
|
1651
1619
|
output,
|
|
1652
1620
|
parsedBody,
|
|
1653
|
-
exceptionCtor: __BaseException,
|
|
1654
1621
|
errorCode,
|
|
1655
1622
|
});
|
|
1656
1623
|
}
|
|
@@ -1683,10 +1650,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1683
1650
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1684
1651
|
default:
|
|
1685
1652
|
const parsedBody = parsedOutput.body;
|
|
1686
|
-
throwDefaultError({
|
|
1653
|
+
return throwDefaultError({
|
|
1687
1654
|
output,
|
|
1688
1655
|
parsedBody,
|
|
1689
|
-
exceptionCtor: __BaseException,
|
|
1690
1656
|
errorCode,
|
|
1691
1657
|
});
|
|
1692
1658
|
}
|
|
@@ -1699,9 +1665,10 @@ export const de_UpdateChannelCommand = async (output, context) => {
|
|
|
1699
1665
|
$metadata: deserializeMetadata(output),
|
|
1700
1666
|
});
|
|
1701
1667
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
}
|
|
1668
|
+
const doc = take(data, {
|
|
1669
|
+
channel: _json,
|
|
1670
|
+
});
|
|
1671
|
+
Object.assign(contents, doc);
|
|
1705
1672
|
return contents;
|
|
1706
1673
|
};
|
|
1707
1674
|
const de_UpdateChannelCommandError = async (output, context) => {
|
|
@@ -1728,21 +1695,21 @@ const de_UpdateChannelCommandError = async (output, context) => {
|
|
|
1728
1695
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1729
1696
|
default:
|
|
1730
1697
|
const parsedBody = parsedOutput.body;
|
|
1731
|
-
throwDefaultError({
|
|
1698
|
+
return throwDefaultError({
|
|
1732
1699
|
output,
|
|
1733
1700
|
parsedBody,
|
|
1734
|
-
exceptionCtor: __BaseException,
|
|
1735
1701
|
errorCode,
|
|
1736
1702
|
});
|
|
1737
1703
|
}
|
|
1738
1704
|
};
|
|
1739
|
-
const
|
|
1705
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
1740
1706
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1741
1707
|
const contents = map({});
|
|
1742
1708
|
const data = parsedOutput.body;
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
}
|
|
1709
|
+
const doc = take(data, {
|
|
1710
|
+
exceptionMessage: __expectString,
|
|
1711
|
+
});
|
|
1712
|
+
Object.assign(contents, doc);
|
|
1746
1713
|
const exception = new AccessDeniedException({
|
|
1747
1714
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1748
1715
|
...contents,
|
|
@@ -1752,9 +1719,10 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1752
1719
|
const de_ChannelNotBroadcastingRes = async (parsedOutput, context) => {
|
|
1753
1720
|
const contents = map({});
|
|
1754
1721
|
const data = parsedOutput.body;
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
}
|
|
1722
|
+
const doc = take(data, {
|
|
1723
|
+
exceptionMessage: __expectString,
|
|
1724
|
+
});
|
|
1725
|
+
Object.assign(contents, doc);
|
|
1758
1726
|
const exception = new ChannelNotBroadcasting({
|
|
1759
1727
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1760
1728
|
...contents,
|
|
@@ -1764,9 +1732,10 @@ const de_ChannelNotBroadcastingRes = async (parsedOutput, context) => {
|
|
|
1764
1732
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1765
1733
|
const contents = map({});
|
|
1766
1734
|
const data = parsedOutput.body;
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
}
|
|
1735
|
+
const doc = take(data, {
|
|
1736
|
+
exceptionMessage: __expectString,
|
|
1737
|
+
});
|
|
1738
|
+
Object.assign(contents, doc);
|
|
1770
1739
|
const exception = new ConflictException({
|
|
1771
1740
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1772
1741
|
...contents,
|
|
@@ -1776,9 +1745,10 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1776
1745
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1777
1746
|
const contents = map({});
|
|
1778
1747
|
const data = parsedOutput.body;
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
}
|
|
1748
|
+
const doc = take(data, {
|
|
1749
|
+
exceptionMessage: __expectString,
|
|
1750
|
+
});
|
|
1751
|
+
Object.assign(contents, doc);
|
|
1782
1752
|
const exception = new InternalServerException({
|
|
1783
1753
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1784
1754
|
...contents,
|
|
@@ -1788,9 +1758,10 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1788
1758
|
const de_PendingVerificationRes = async (parsedOutput, context) => {
|
|
1789
1759
|
const contents = map({});
|
|
1790
1760
|
const data = parsedOutput.body;
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
}
|
|
1761
|
+
const doc = take(data, {
|
|
1762
|
+
exceptionMessage: __expectString,
|
|
1763
|
+
});
|
|
1764
|
+
Object.assign(contents, doc);
|
|
1794
1765
|
const exception = new PendingVerification({
|
|
1795
1766
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1796
1767
|
...contents,
|
|
@@ -1800,9 +1771,10 @@ const de_PendingVerificationRes = async (parsedOutput, context) => {
|
|
|
1800
1771
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1801
1772
|
const contents = map({});
|
|
1802
1773
|
const data = parsedOutput.body;
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
}
|
|
1774
|
+
const doc = take(data, {
|
|
1775
|
+
exceptionMessage: __expectString,
|
|
1776
|
+
});
|
|
1777
|
+
Object.assign(contents, doc);
|
|
1806
1778
|
const exception = new ResourceNotFoundException({
|
|
1807
1779
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1808
1780
|
...contents,
|
|
@@ -1812,9 +1784,10 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1812
1784
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1813
1785
|
const contents = map({});
|
|
1814
1786
|
const data = parsedOutput.body;
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
}
|
|
1787
|
+
const doc = take(data, {
|
|
1788
|
+
exceptionMessage: __expectString,
|
|
1789
|
+
});
|
|
1790
|
+
Object.assign(contents, doc);
|
|
1818
1791
|
const exception = new ServiceQuotaExceededException({
|
|
1819
1792
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1820
1793
|
...contents,
|
|
@@ -1824,9 +1797,10 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1824
1797
|
const de_StreamUnavailableRes = async (parsedOutput, context) => {
|
|
1825
1798
|
const contents = map({});
|
|
1826
1799
|
const data = parsedOutput.body;
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
}
|
|
1800
|
+
const doc = take(data, {
|
|
1801
|
+
exceptionMessage: __expectString,
|
|
1802
|
+
});
|
|
1803
|
+
Object.assign(contents, doc);
|
|
1830
1804
|
const exception = new StreamUnavailable({
|
|
1831
1805
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1832
1806
|
...contents,
|
|
@@ -1836,9 +1810,10 @@ const de_StreamUnavailableRes = async (parsedOutput, context) => {
|
|
|
1836
1810
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1837
1811
|
const contents = map({});
|
|
1838
1812
|
const data = parsedOutput.body;
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
}
|
|
1813
|
+
const doc = take(data, {
|
|
1814
|
+
exceptionMessage: __expectString,
|
|
1815
|
+
});
|
|
1816
|
+
Object.assign(contents, doc);
|
|
1842
1817
|
const exception = new ThrottlingException({
|
|
1843
1818
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1844
1819
|
...contents,
|
|
@@ -1848,356 +1823,86 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
1848
1823
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1849
1824
|
const contents = map({});
|
|
1850
1825
|
const data = parsedOutput.body;
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
}
|
|
1826
|
+
const doc = take(data, {
|
|
1827
|
+
exceptionMessage: __expectString,
|
|
1828
|
+
});
|
|
1829
|
+
Object.assign(contents, doc);
|
|
1854
1830
|
const exception = new ValidationException({
|
|
1855
1831
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1856
1832
|
...contents,
|
|
1857
1833
|
});
|
|
1858
1834
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1859
1835
|
};
|
|
1860
|
-
const se_ChannelArnList = (input, context) => {
|
|
1861
|
-
return input
|
|
1862
|
-
.filter((e) => e != null)
|
|
1863
|
-
.map((entry) => {
|
|
1864
|
-
return entry;
|
|
1865
|
-
});
|
|
1866
|
-
};
|
|
1867
|
-
const se_DestinationConfiguration = (input, context) => {
|
|
1868
|
-
return {
|
|
1869
|
-
...(input.s3 != null && { s3: se_S3DestinationConfiguration(input.s3, context) }),
|
|
1870
|
-
};
|
|
1871
|
-
};
|
|
1872
|
-
const se_S3DestinationConfiguration = (input, context) => {
|
|
1873
|
-
return {
|
|
1874
|
-
...(input.bucketName != null && { bucketName: input.bucketName }),
|
|
1875
|
-
};
|
|
1876
|
-
};
|
|
1877
|
-
const se_StreamFilters = (input, context) => {
|
|
1878
|
-
return {
|
|
1879
|
-
...(input.health != null && { health: input.health }),
|
|
1880
|
-
};
|
|
1881
|
-
};
|
|
1882
|
-
const se_StreamKeyArnList = (input, context) => {
|
|
1883
|
-
return input
|
|
1884
|
-
.filter((e) => e != null)
|
|
1885
|
-
.map((entry) => {
|
|
1886
|
-
return entry;
|
|
1887
|
-
});
|
|
1888
|
-
};
|
|
1889
|
-
const se_Tags = (input, context) => {
|
|
1890
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1891
|
-
if (value === null) {
|
|
1892
|
-
return acc;
|
|
1893
|
-
}
|
|
1894
|
-
acc[key] = value;
|
|
1895
|
-
return acc;
|
|
1896
|
-
}, {});
|
|
1897
|
-
};
|
|
1898
|
-
const se_ThumbnailConfiguration = (input, context) => {
|
|
1899
|
-
return {
|
|
1900
|
-
...(input.recordingMode != null && { recordingMode: input.recordingMode }),
|
|
1901
|
-
...(input.targetIntervalSeconds != null && { targetIntervalSeconds: input.targetIntervalSeconds }),
|
|
1902
|
-
};
|
|
1903
|
-
};
|
|
1904
|
-
const de_AudioConfiguration = (output, context) => {
|
|
1905
|
-
return {
|
|
1906
|
-
channels: __expectLong(output.channels),
|
|
1907
|
-
codec: __expectString(output.codec),
|
|
1908
|
-
sampleRate: __expectLong(output.sampleRate),
|
|
1909
|
-
targetBitrate: __expectLong(output.targetBitrate),
|
|
1910
|
-
};
|
|
1911
|
-
};
|
|
1912
|
-
const de_BatchError = (output, context) => {
|
|
1913
|
-
return {
|
|
1914
|
-
arn: __expectString(output.arn),
|
|
1915
|
-
code: __expectString(output.code),
|
|
1916
|
-
message: __expectString(output.message),
|
|
1917
|
-
};
|
|
1918
|
-
};
|
|
1919
|
-
const de_BatchErrors = (output, context) => {
|
|
1920
|
-
const retVal = (output || [])
|
|
1921
|
-
.filter((e) => e != null)
|
|
1922
|
-
.map((entry) => {
|
|
1923
|
-
if (entry === null) {
|
|
1924
|
-
return null;
|
|
1925
|
-
}
|
|
1926
|
-
return de_BatchError(entry, context);
|
|
1927
|
-
});
|
|
1928
|
-
return retVal;
|
|
1929
|
-
};
|
|
1930
|
-
const de_Channel = (output, context) => {
|
|
1931
|
-
return {
|
|
1932
|
-
arn: __expectString(output.arn),
|
|
1933
|
-
authorized: __expectBoolean(output.authorized),
|
|
1934
|
-
ingestEndpoint: __expectString(output.ingestEndpoint),
|
|
1935
|
-
insecureIngest: __expectBoolean(output.insecureIngest),
|
|
1936
|
-
latencyMode: __expectString(output.latencyMode),
|
|
1937
|
-
name: __expectString(output.name),
|
|
1938
|
-
playbackUrl: __expectString(output.playbackUrl),
|
|
1939
|
-
recordingConfigurationArn: __expectString(output.recordingConfigurationArn),
|
|
1940
|
-
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
1941
|
-
type: __expectString(output.type),
|
|
1942
|
-
};
|
|
1943
|
-
};
|
|
1944
|
-
const de_ChannelList = (output, context) => {
|
|
1945
|
-
const retVal = (output || [])
|
|
1946
|
-
.filter((e) => e != null)
|
|
1947
|
-
.map((entry) => {
|
|
1948
|
-
if (entry === null) {
|
|
1949
|
-
return null;
|
|
1950
|
-
}
|
|
1951
|
-
return de_ChannelSummary(entry, context);
|
|
1952
|
-
});
|
|
1953
|
-
return retVal;
|
|
1954
|
-
};
|
|
1955
|
-
const de_Channels = (output, context) => {
|
|
1956
|
-
const retVal = (output || [])
|
|
1957
|
-
.filter((e) => e != null)
|
|
1958
|
-
.map((entry) => {
|
|
1959
|
-
if (entry === null) {
|
|
1960
|
-
return null;
|
|
1961
|
-
}
|
|
1962
|
-
return de_Channel(entry, context);
|
|
1963
|
-
});
|
|
1964
|
-
return retVal;
|
|
1965
|
-
};
|
|
1966
|
-
const de_ChannelSummary = (output, context) => {
|
|
1967
|
-
return {
|
|
1968
|
-
arn: __expectString(output.arn),
|
|
1969
|
-
authorized: __expectBoolean(output.authorized),
|
|
1970
|
-
insecureIngest: __expectBoolean(output.insecureIngest),
|
|
1971
|
-
latencyMode: __expectString(output.latencyMode),
|
|
1972
|
-
name: __expectString(output.name),
|
|
1973
|
-
recordingConfigurationArn: __expectString(output.recordingConfigurationArn),
|
|
1974
|
-
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
1975
|
-
};
|
|
1976
|
-
};
|
|
1977
|
-
const de_DestinationConfiguration = (output, context) => {
|
|
1978
|
-
return {
|
|
1979
|
-
s3: output.s3 != null ? de_S3DestinationConfiguration(output.s3, context) : undefined,
|
|
1980
|
-
};
|
|
1981
|
-
};
|
|
1982
|
-
const de_IngestConfiguration = (output, context) => {
|
|
1983
|
-
return {
|
|
1984
|
-
audio: output.audio != null ? de_AudioConfiguration(output.audio, context) : undefined,
|
|
1985
|
-
video: output.video != null ? de_VideoConfiguration(output.video, context) : undefined,
|
|
1986
|
-
};
|
|
1987
|
-
};
|
|
1988
|
-
const de_PlaybackKeyPair = (output, context) => {
|
|
1989
|
-
return {
|
|
1990
|
-
arn: __expectString(output.arn),
|
|
1991
|
-
fingerprint: __expectString(output.fingerprint),
|
|
1992
|
-
name: __expectString(output.name),
|
|
1993
|
-
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
1994
|
-
};
|
|
1995
|
-
};
|
|
1996
|
-
const de_PlaybackKeyPairList = (output, context) => {
|
|
1997
|
-
const retVal = (output || [])
|
|
1998
|
-
.filter((e) => e != null)
|
|
1999
|
-
.map((entry) => {
|
|
2000
|
-
if (entry === null) {
|
|
2001
|
-
return null;
|
|
2002
|
-
}
|
|
2003
|
-
return de_PlaybackKeyPairSummary(entry, context);
|
|
2004
|
-
});
|
|
2005
|
-
return retVal;
|
|
2006
|
-
};
|
|
2007
|
-
const de_PlaybackKeyPairSummary = (output, context) => {
|
|
2008
|
-
return {
|
|
2009
|
-
arn: __expectString(output.arn),
|
|
2010
|
-
name: __expectString(output.name),
|
|
2011
|
-
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2012
|
-
};
|
|
2013
|
-
};
|
|
2014
|
-
const de_RecordingConfiguration = (output, context) => {
|
|
2015
|
-
return {
|
|
2016
|
-
arn: __expectString(output.arn),
|
|
2017
|
-
destinationConfiguration: output.destinationConfiguration != null
|
|
2018
|
-
? de_DestinationConfiguration(output.destinationConfiguration, context)
|
|
2019
|
-
: undefined,
|
|
2020
|
-
name: __expectString(output.name),
|
|
2021
|
-
recordingReconnectWindowSeconds: __expectInt32(output.recordingReconnectWindowSeconds),
|
|
2022
|
-
state: __expectString(output.state),
|
|
2023
|
-
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2024
|
-
thumbnailConfiguration: output.thumbnailConfiguration != null
|
|
2025
|
-
? de_ThumbnailConfiguration(output.thumbnailConfiguration, context)
|
|
2026
|
-
: undefined,
|
|
2027
|
-
};
|
|
2028
|
-
};
|
|
2029
|
-
const de_RecordingConfigurationList = (output, context) => {
|
|
2030
|
-
const retVal = (output || [])
|
|
2031
|
-
.filter((e) => e != null)
|
|
2032
|
-
.map((entry) => {
|
|
2033
|
-
if (entry === null) {
|
|
2034
|
-
return null;
|
|
2035
|
-
}
|
|
2036
|
-
return de_RecordingConfigurationSummary(entry, context);
|
|
2037
|
-
});
|
|
2038
|
-
return retVal;
|
|
2039
|
-
};
|
|
2040
|
-
const de_RecordingConfigurationSummary = (output, context) => {
|
|
2041
|
-
return {
|
|
2042
|
-
arn: __expectString(output.arn),
|
|
2043
|
-
destinationConfiguration: output.destinationConfiguration != null
|
|
2044
|
-
? de_DestinationConfiguration(output.destinationConfiguration, context)
|
|
2045
|
-
: undefined,
|
|
2046
|
-
name: __expectString(output.name),
|
|
2047
|
-
state: __expectString(output.state),
|
|
2048
|
-
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2049
|
-
};
|
|
2050
|
-
};
|
|
2051
|
-
const de_S3DestinationConfiguration = (output, context) => {
|
|
2052
|
-
return {
|
|
2053
|
-
bucketName: __expectString(output.bucketName),
|
|
2054
|
-
};
|
|
2055
|
-
};
|
|
2056
1836
|
const de__Stream = (output, context) => {
|
|
2057
|
-
return {
|
|
2058
|
-
channelArn: __expectString
|
|
2059
|
-
health: __expectString
|
|
2060
|
-
playbackUrl: __expectString
|
|
2061
|
-
startTime:
|
|
2062
|
-
state: __expectString
|
|
2063
|
-
streamId: __expectString
|
|
2064
|
-
viewerCount: __expectLong
|
|
2065
|
-
};
|
|
1837
|
+
return take(output, {
|
|
1838
|
+
channelArn: __expectString,
|
|
1839
|
+
health: __expectString,
|
|
1840
|
+
playbackUrl: __expectString,
|
|
1841
|
+
startTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1842
|
+
state: __expectString,
|
|
1843
|
+
streamId: __expectString,
|
|
1844
|
+
viewerCount: __expectLong,
|
|
1845
|
+
});
|
|
2066
1846
|
};
|
|
2067
1847
|
const de_StreamEvent = (output, context) => {
|
|
2068
|
-
return {
|
|
2069
|
-
eventTime:
|
|
2070
|
-
name: __expectString
|
|
2071
|
-
type: __expectString
|
|
2072
|
-
};
|
|
1848
|
+
return take(output, {
|
|
1849
|
+
eventTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1850
|
+
name: __expectString,
|
|
1851
|
+
type: __expectString,
|
|
1852
|
+
});
|
|
2073
1853
|
};
|
|
2074
1854
|
const de_StreamEvents = (output, context) => {
|
|
2075
1855
|
const retVal = (output || [])
|
|
2076
1856
|
.filter((e) => e != null)
|
|
2077
1857
|
.map((entry) => {
|
|
2078
|
-
if (entry === null) {
|
|
2079
|
-
return null;
|
|
2080
|
-
}
|
|
2081
1858
|
return de_StreamEvent(entry, context);
|
|
2082
1859
|
});
|
|
2083
1860
|
return retVal;
|
|
2084
1861
|
};
|
|
2085
|
-
const de_StreamKey = (output, context) => {
|
|
2086
|
-
return {
|
|
2087
|
-
arn: __expectString(output.arn),
|
|
2088
|
-
channelArn: __expectString(output.channelArn),
|
|
2089
|
-
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2090
|
-
value: __expectString(output.value),
|
|
2091
|
-
};
|
|
2092
|
-
};
|
|
2093
|
-
const de_StreamKeyList = (output, context) => {
|
|
2094
|
-
const retVal = (output || [])
|
|
2095
|
-
.filter((e) => e != null)
|
|
2096
|
-
.map((entry) => {
|
|
2097
|
-
if (entry === null) {
|
|
2098
|
-
return null;
|
|
2099
|
-
}
|
|
2100
|
-
return de_StreamKeySummary(entry, context);
|
|
2101
|
-
});
|
|
2102
|
-
return retVal;
|
|
2103
|
-
};
|
|
2104
|
-
const de_StreamKeys = (output, context) => {
|
|
2105
|
-
const retVal = (output || [])
|
|
2106
|
-
.filter((e) => e != null)
|
|
2107
|
-
.map((entry) => {
|
|
2108
|
-
if (entry === null) {
|
|
2109
|
-
return null;
|
|
2110
|
-
}
|
|
2111
|
-
return de_StreamKey(entry, context);
|
|
2112
|
-
});
|
|
2113
|
-
return retVal;
|
|
2114
|
-
};
|
|
2115
|
-
const de_StreamKeySummary = (output, context) => {
|
|
2116
|
-
return {
|
|
2117
|
-
arn: __expectString(output.arn),
|
|
2118
|
-
channelArn: __expectString(output.channelArn),
|
|
2119
|
-
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2120
|
-
};
|
|
2121
|
-
};
|
|
2122
1862
|
const de_StreamList = (output, context) => {
|
|
2123
1863
|
const retVal = (output || [])
|
|
2124
1864
|
.filter((e) => e != null)
|
|
2125
1865
|
.map((entry) => {
|
|
2126
|
-
if (entry === null) {
|
|
2127
|
-
return null;
|
|
2128
|
-
}
|
|
2129
1866
|
return de_StreamSummary(entry, context);
|
|
2130
1867
|
});
|
|
2131
1868
|
return retVal;
|
|
2132
1869
|
};
|
|
2133
1870
|
const de_StreamSession = (output, context) => {
|
|
2134
|
-
return {
|
|
2135
|
-
channel:
|
|
2136
|
-
endTime:
|
|
2137
|
-
ingestConfiguration:
|
|
2138
|
-
recordingConfiguration:
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
truncatedEvents: output.truncatedEvents != null ? de_StreamEvents(output.truncatedEvents, context) : undefined,
|
|
2144
|
-
};
|
|
1871
|
+
return take(output, {
|
|
1872
|
+
channel: _json,
|
|
1873
|
+
endTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1874
|
+
ingestConfiguration: _json,
|
|
1875
|
+
recordingConfiguration: _json,
|
|
1876
|
+
startTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1877
|
+
streamId: __expectString,
|
|
1878
|
+
truncatedEvents: (_) => de_StreamEvents(_, context),
|
|
1879
|
+
});
|
|
2145
1880
|
};
|
|
2146
1881
|
const de_StreamSessionList = (output, context) => {
|
|
2147
1882
|
const retVal = (output || [])
|
|
2148
1883
|
.filter((e) => e != null)
|
|
2149
1884
|
.map((entry) => {
|
|
2150
|
-
if (entry === null) {
|
|
2151
|
-
return null;
|
|
2152
|
-
}
|
|
2153
1885
|
return de_StreamSessionSummary(entry, context);
|
|
2154
1886
|
});
|
|
2155
1887
|
return retVal;
|
|
2156
1888
|
};
|
|
2157
1889
|
const de_StreamSessionSummary = (output, context) => {
|
|
2158
|
-
return {
|
|
2159
|
-
endTime:
|
|
2160
|
-
hasErrorEvent: __expectBoolean
|
|
2161
|
-
startTime:
|
|
2162
|
-
streamId: __expectString
|
|
2163
|
-
};
|
|
1890
|
+
return take(output, {
|
|
1891
|
+
endTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1892
|
+
hasErrorEvent: __expectBoolean,
|
|
1893
|
+
startTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1894
|
+
streamId: __expectString,
|
|
1895
|
+
});
|
|
2164
1896
|
};
|
|
2165
1897
|
const de_StreamSummary = (output, context) => {
|
|
2166
|
-
return {
|
|
2167
|
-
channelArn: __expectString
|
|
2168
|
-
health: __expectString
|
|
2169
|
-
startTime:
|
|
2170
|
-
state: __expectString
|
|
2171
|
-
streamId: __expectString
|
|
2172
|
-
viewerCount: __expectLong
|
|
2173
|
-
};
|
|
2174
|
-
};
|
|
2175
|
-
const de_Tags = (output, context) => {
|
|
2176
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2177
|
-
if (value === null) {
|
|
2178
|
-
return acc;
|
|
2179
|
-
}
|
|
2180
|
-
acc[key] = __expectString(value);
|
|
2181
|
-
return acc;
|
|
2182
|
-
}, {});
|
|
2183
|
-
};
|
|
2184
|
-
const de_ThumbnailConfiguration = (output, context) => {
|
|
2185
|
-
return {
|
|
2186
|
-
recordingMode: __expectString(output.recordingMode),
|
|
2187
|
-
targetIntervalSeconds: __expectLong(output.targetIntervalSeconds),
|
|
2188
|
-
};
|
|
2189
|
-
};
|
|
2190
|
-
const de_VideoConfiguration = (output, context) => {
|
|
2191
|
-
return {
|
|
2192
|
-
avcLevel: __expectString(output.avcLevel),
|
|
2193
|
-
avcProfile: __expectString(output.avcProfile),
|
|
2194
|
-
codec: __expectString(output.codec),
|
|
2195
|
-
encoder: __expectString(output.encoder),
|
|
2196
|
-
targetBitrate: __expectLong(output.targetBitrate),
|
|
2197
|
-
targetFramerate: __expectLong(output.targetFramerate),
|
|
2198
|
-
videoHeight: __expectLong(output.videoHeight),
|
|
2199
|
-
videoWidth: __expectLong(output.videoWidth),
|
|
2200
|
-
};
|
|
1898
|
+
return take(output, {
|
|
1899
|
+
channelArn: __expectString,
|
|
1900
|
+
health: __expectString,
|
|
1901
|
+
startTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1902
|
+
state: __expectString,
|
|
1903
|
+
streamId: __expectString,
|
|
1904
|
+
viewerCount: __expectLong,
|
|
1905
|
+
});
|
|
2201
1906
|
};
|
|
2202
1907
|
const deserializeMetadata = (output) => ({
|
|
2203
1908
|
httpStatusCode: output.statusCode,
|