@aws-sdk/client-ivs 3.118.0 → 3.127.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +225 -247
- package/dist-es/protocols/Aws_restJson1.js +197 -219
- package/package.json +26 -26
|
@@ -14,8 +14,7 @@ const serializeAws_restJson1BatchGetChannelCommand = async (input, context) => {
|
|
|
14
14
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/BatchGetChannel";
|
|
15
15
|
let body;
|
|
16
16
|
body = JSON.stringify({
|
|
17
|
-
...(input.arns
|
|
18
|
-
input.arns !== null && { arns: serializeAws_restJson1ChannelArnList(input.arns, context) }),
|
|
17
|
+
...(input.arns != null && { arns: serializeAws_restJson1ChannelArnList(input.arns, context) }),
|
|
19
18
|
});
|
|
20
19
|
return new protocol_http_1.HttpRequest({
|
|
21
20
|
protocol,
|
|
@@ -36,8 +35,7 @@ const serializeAws_restJson1BatchGetStreamKeyCommand = async (input, context) =>
|
|
|
36
35
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/BatchGetStreamKey";
|
|
37
36
|
let body;
|
|
38
37
|
body = JSON.stringify({
|
|
39
|
-
...(input.arns
|
|
40
|
-
input.arns !== null && { arns: serializeAws_restJson1StreamKeyArnList(input.arns, context) }),
|
|
38
|
+
...(input.arns != null && { arns: serializeAws_restJson1StreamKeyArnList(input.arns, context) }),
|
|
41
39
|
});
|
|
42
40
|
return new protocol_http_1.HttpRequest({
|
|
43
41
|
protocol,
|
|
@@ -58,13 +56,12 @@ const serializeAws_restJson1CreateChannelCommand = async (input, context) => {
|
|
|
58
56
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/CreateChannel";
|
|
59
57
|
let body;
|
|
60
58
|
body = JSON.stringify({
|
|
61
|
-
...(input.authorized
|
|
62
|
-
...(input.latencyMode
|
|
63
|
-
...(input.name
|
|
64
|
-
...(input.recordingConfigurationArn
|
|
65
|
-
|
|
66
|
-
...(input.
|
|
67
|
-
...(input.type !== undefined && input.type !== null && { type: input.type }),
|
|
59
|
+
...(input.authorized != null && { authorized: input.authorized }),
|
|
60
|
+
...(input.latencyMode != null && { latencyMode: input.latencyMode }),
|
|
61
|
+
...(input.name != null && { name: input.name }),
|
|
62
|
+
...(input.recordingConfigurationArn != null && { recordingConfigurationArn: input.recordingConfigurationArn }),
|
|
63
|
+
...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
|
|
64
|
+
...(input.type != null && { type: input.type }),
|
|
68
65
|
});
|
|
69
66
|
return new protocol_http_1.HttpRequest({
|
|
70
67
|
protocol,
|
|
@@ -85,14 +82,12 @@ const serializeAws_restJson1CreateRecordingConfigurationCommand = async (input,
|
|
|
85
82
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/CreateRecordingConfiguration";
|
|
86
83
|
let body;
|
|
87
84
|
body = JSON.stringify({
|
|
88
|
-
...(input.destinationConfiguration
|
|
89
|
-
input.destinationConfiguration !== null && {
|
|
85
|
+
...(input.destinationConfiguration != null && {
|
|
90
86
|
destinationConfiguration: serializeAws_restJson1DestinationConfiguration(input.destinationConfiguration, context),
|
|
91
87
|
}),
|
|
92
|
-
...(input.name
|
|
93
|
-
...(input.tags
|
|
94
|
-
...(input.thumbnailConfiguration
|
|
95
|
-
input.thumbnailConfiguration !== null && {
|
|
88
|
+
...(input.name != null && { name: input.name }),
|
|
89
|
+
...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
|
|
90
|
+
...(input.thumbnailConfiguration != null && {
|
|
96
91
|
thumbnailConfiguration: serializeAws_restJson1ThumbnailConfiguration(input.thumbnailConfiguration, context),
|
|
97
92
|
}),
|
|
98
93
|
});
|
|
@@ -115,8 +110,8 @@ const serializeAws_restJson1CreateStreamKeyCommand = async (input, context) => {
|
|
|
115
110
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/CreateStreamKey";
|
|
116
111
|
let body;
|
|
117
112
|
body = JSON.stringify({
|
|
118
|
-
...(input.channelArn
|
|
119
|
-
...(input.tags
|
|
113
|
+
...(input.channelArn != null && { channelArn: input.channelArn }),
|
|
114
|
+
...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
|
|
120
115
|
});
|
|
121
116
|
return new protocol_http_1.HttpRequest({
|
|
122
117
|
protocol,
|
|
@@ -137,7 +132,7 @@ const serializeAws_restJson1DeleteChannelCommand = async (input, context) => {
|
|
|
137
132
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteChannel";
|
|
138
133
|
let body;
|
|
139
134
|
body = JSON.stringify({
|
|
140
|
-
...(input.arn
|
|
135
|
+
...(input.arn != null && { arn: input.arn }),
|
|
141
136
|
});
|
|
142
137
|
return new protocol_http_1.HttpRequest({
|
|
143
138
|
protocol,
|
|
@@ -158,7 +153,7 @@ const serializeAws_restJson1DeletePlaybackKeyPairCommand = async (input, context
|
|
|
158
153
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DeletePlaybackKeyPair";
|
|
159
154
|
let body;
|
|
160
155
|
body = JSON.stringify({
|
|
161
|
-
...(input.arn
|
|
156
|
+
...(input.arn != null && { arn: input.arn }),
|
|
162
157
|
});
|
|
163
158
|
return new protocol_http_1.HttpRequest({
|
|
164
159
|
protocol,
|
|
@@ -179,7 +174,7 @@ const serializeAws_restJson1DeleteRecordingConfigurationCommand = async (input,
|
|
|
179
174
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteRecordingConfiguration";
|
|
180
175
|
let body;
|
|
181
176
|
body = JSON.stringify({
|
|
182
|
-
...(input.arn
|
|
177
|
+
...(input.arn != null && { arn: input.arn }),
|
|
183
178
|
});
|
|
184
179
|
return new protocol_http_1.HttpRequest({
|
|
185
180
|
protocol,
|
|
@@ -200,7 +195,7 @@ const serializeAws_restJson1DeleteStreamKeyCommand = async (input, context) => {
|
|
|
200
195
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteStreamKey";
|
|
201
196
|
let body;
|
|
202
197
|
body = JSON.stringify({
|
|
203
|
-
...(input.arn
|
|
198
|
+
...(input.arn != null && { arn: input.arn }),
|
|
204
199
|
});
|
|
205
200
|
return new protocol_http_1.HttpRequest({
|
|
206
201
|
protocol,
|
|
@@ -221,7 +216,7 @@ const serializeAws_restJson1GetChannelCommand = async (input, context) => {
|
|
|
221
216
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetChannel";
|
|
222
217
|
let body;
|
|
223
218
|
body = JSON.stringify({
|
|
224
|
-
...(input.arn
|
|
219
|
+
...(input.arn != null && { arn: input.arn }),
|
|
225
220
|
});
|
|
226
221
|
return new protocol_http_1.HttpRequest({
|
|
227
222
|
protocol,
|
|
@@ -242,7 +237,7 @@ const serializeAws_restJson1GetPlaybackKeyPairCommand = async (input, context) =
|
|
|
242
237
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetPlaybackKeyPair";
|
|
243
238
|
let body;
|
|
244
239
|
body = JSON.stringify({
|
|
245
|
-
...(input.arn
|
|
240
|
+
...(input.arn != null && { arn: input.arn }),
|
|
246
241
|
});
|
|
247
242
|
return new protocol_http_1.HttpRequest({
|
|
248
243
|
protocol,
|
|
@@ -263,7 +258,7 @@ const serializeAws_restJson1GetRecordingConfigurationCommand = async (input, con
|
|
|
263
258
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetRecordingConfiguration";
|
|
264
259
|
let body;
|
|
265
260
|
body = JSON.stringify({
|
|
266
|
-
...(input.arn
|
|
261
|
+
...(input.arn != null && { arn: input.arn }),
|
|
267
262
|
});
|
|
268
263
|
return new protocol_http_1.HttpRequest({
|
|
269
264
|
protocol,
|
|
@@ -284,7 +279,7 @@ const serializeAws_restJson1GetStreamCommand = async (input, context) => {
|
|
|
284
279
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetStream";
|
|
285
280
|
let body;
|
|
286
281
|
body = JSON.stringify({
|
|
287
|
-
...(input.channelArn
|
|
282
|
+
...(input.channelArn != null && { channelArn: input.channelArn }),
|
|
288
283
|
});
|
|
289
284
|
return new protocol_http_1.HttpRequest({
|
|
290
285
|
protocol,
|
|
@@ -305,7 +300,7 @@ const serializeAws_restJson1GetStreamKeyCommand = async (input, context) => {
|
|
|
305
300
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetStreamKey";
|
|
306
301
|
let body;
|
|
307
302
|
body = JSON.stringify({
|
|
308
|
-
...(input.arn
|
|
303
|
+
...(input.arn != null && { arn: input.arn }),
|
|
309
304
|
});
|
|
310
305
|
return new protocol_http_1.HttpRequest({
|
|
311
306
|
protocol,
|
|
@@ -326,8 +321,8 @@ const serializeAws_restJson1GetStreamSessionCommand = async (input, context) =>
|
|
|
326
321
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/GetStreamSession";
|
|
327
322
|
let body;
|
|
328
323
|
body = JSON.stringify({
|
|
329
|
-
...(input.channelArn
|
|
330
|
-
...(input.streamId
|
|
324
|
+
...(input.channelArn != null && { channelArn: input.channelArn }),
|
|
325
|
+
...(input.streamId != null && { streamId: input.streamId }),
|
|
331
326
|
});
|
|
332
327
|
return new protocol_http_1.HttpRequest({
|
|
333
328
|
protocol,
|
|
@@ -348,10 +343,9 @@ const serializeAws_restJson1ImportPlaybackKeyPairCommand = async (input, context
|
|
|
348
343
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ImportPlaybackKeyPair";
|
|
349
344
|
let body;
|
|
350
345
|
body = JSON.stringify({
|
|
351
|
-
...(input.name
|
|
352
|
-
...(input.publicKeyMaterial
|
|
353
|
-
|
|
354
|
-
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
|
|
346
|
+
...(input.name != null && { name: input.name }),
|
|
347
|
+
...(input.publicKeyMaterial != null && { publicKeyMaterial: input.publicKeyMaterial }),
|
|
348
|
+
...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
|
|
355
349
|
});
|
|
356
350
|
return new protocol_http_1.HttpRequest({
|
|
357
351
|
protocol,
|
|
@@ -372,13 +366,12 @@ const serializeAws_restJson1ListChannelsCommand = async (input, context) => {
|
|
|
372
366
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ListChannels";
|
|
373
367
|
let body;
|
|
374
368
|
body = JSON.stringify({
|
|
375
|
-
...(input.filterByName
|
|
376
|
-
...(input.filterByRecordingConfigurationArn
|
|
377
|
-
input.filterByRecordingConfigurationArn !== null && {
|
|
369
|
+
...(input.filterByName != null && { filterByName: input.filterByName }),
|
|
370
|
+
...(input.filterByRecordingConfigurationArn != null && {
|
|
378
371
|
filterByRecordingConfigurationArn: input.filterByRecordingConfigurationArn,
|
|
379
372
|
}),
|
|
380
|
-
...(input.maxResults
|
|
381
|
-
...(input.nextToken
|
|
373
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
374
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
382
375
|
});
|
|
383
376
|
return new protocol_http_1.HttpRequest({
|
|
384
377
|
protocol,
|
|
@@ -399,8 +392,8 @@ const serializeAws_restJson1ListPlaybackKeyPairsCommand = async (input, context)
|
|
|
399
392
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ListPlaybackKeyPairs";
|
|
400
393
|
let body;
|
|
401
394
|
body = JSON.stringify({
|
|
402
|
-
...(input.maxResults
|
|
403
|
-
...(input.nextToken
|
|
395
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
396
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
404
397
|
});
|
|
405
398
|
return new protocol_http_1.HttpRequest({
|
|
406
399
|
protocol,
|
|
@@ -421,8 +414,8 @@ const serializeAws_restJson1ListRecordingConfigurationsCommand = async (input, c
|
|
|
421
414
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ListRecordingConfigurations";
|
|
422
415
|
let body;
|
|
423
416
|
body = JSON.stringify({
|
|
424
|
-
...(input.maxResults
|
|
425
|
-
...(input.nextToken
|
|
417
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
418
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
426
419
|
});
|
|
427
420
|
return new protocol_http_1.HttpRequest({
|
|
428
421
|
protocol,
|
|
@@ -443,9 +436,9 @@ const serializeAws_restJson1ListStreamKeysCommand = async (input, context) => {
|
|
|
443
436
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ListStreamKeys";
|
|
444
437
|
let body;
|
|
445
438
|
body = JSON.stringify({
|
|
446
|
-
...(input.channelArn
|
|
447
|
-
...(input.maxResults
|
|
448
|
-
...(input.nextToken
|
|
439
|
+
...(input.channelArn != null && { channelArn: input.channelArn }),
|
|
440
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
441
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
449
442
|
});
|
|
450
443
|
return new protocol_http_1.HttpRequest({
|
|
451
444
|
protocol,
|
|
@@ -466,10 +459,9 @@ const serializeAws_restJson1ListStreamsCommand = async (input, context) => {
|
|
|
466
459
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ListStreams";
|
|
467
460
|
let body;
|
|
468
461
|
body = JSON.stringify({
|
|
469
|
-
...(input.filterBy
|
|
470
|
-
|
|
471
|
-
...(input.
|
|
472
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
462
|
+
...(input.filterBy != null && { filterBy: serializeAws_restJson1StreamFilters(input.filterBy, context) }),
|
|
463
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
464
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
473
465
|
});
|
|
474
466
|
return new protocol_http_1.HttpRequest({
|
|
475
467
|
protocol,
|
|
@@ -490,9 +482,9 @@ const serializeAws_restJson1ListStreamSessionsCommand = async (input, context) =
|
|
|
490
482
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ListStreamSessions";
|
|
491
483
|
let body;
|
|
492
484
|
body = JSON.stringify({
|
|
493
|
-
...(input.channelArn
|
|
494
|
-
...(input.maxResults
|
|
495
|
-
...(input.nextToken
|
|
485
|
+
...(input.channelArn != null && { channelArn: input.channelArn }),
|
|
486
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
487
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
496
488
|
});
|
|
497
489
|
return new protocol_http_1.HttpRequest({
|
|
498
490
|
protocol,
|
|
@@ -539,8 +531,8 @@ const serializeAws_restJson1PutMetadataCommand = async (input, context) => {
|
|
|
539
531
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/PutMetadata";
|
|
540
532
|
let body;
|
|
541
533
|
body = JSON.stringify({
|
|
542
|
-
...(input.channelArn
|
|
543
|
-
...(input.metadata
|
|
534
|
+
...(input.channelArn != null && { channelArn: input.channelArn }),
|
|
535
|
+
...(input.metadata != null && { metadata: input.metadata }),
|
|
544
536
|
});
|
|
545
537
|
return new protocol_http_1.HttpRequest({
|
|
546
538
|
protocol,
|
|
@@ -561,7 +553,7 @@ const serializeAws_restJson1StopStreamCommand = async (input, context) => {
|
|
|
561
553
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/StopStream";
|
|
562
554
|
let body;
|
|
563
555
|
body = JSON.stringify({
|
|
564
|
-
...(input.channelArn
|
|
556
|
+
...(input.channelArn != null && { channelArn: input.channelArn }),
|
|
565
557
|
});
|
|
566
558
|
return new protocol_http_1.HttpRequest({
|
|
567
559
|
protocol,
|
|
@@ -592,7 +584,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
592
584
|
}
|
|
593
585
|
let body;
|
|
594
586
|
body = JSON.stringify({
|
|
595
|
-
...(input.tags
|
|
587
|
+
...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
|
|
596
588
|
});
|
|
597
589
|
return new protocol_http_1.HttpRequest({
|
|
598
590
|
protocol,
|
|
@@ -643,13 +635,12 @@ const serializeAws_restJson1UpdateChannelCommand = async (input, context) => {
|
|
|
643
635
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateChannel";
|
|
644
636
|
let body;
|
|
645
637
|
body = JSON.stringify({
|
|
646
|
-
...(input.arn
|
|
647
|
-
...(input.authorized
|
|
648
|
-
...(input.latencyMode
|
|
649
|
-
...(input.name
|
|
650
|
-
...(input.recordingConfigurationArn
|
|
651
|
-
|
|
652
|
-
...(input.type !== undefined && input.type !== null && { type: input.type }),
|
|
638
|
+
...(input.arn != null && { arn: input.arn }),
|
|
639
|
+
...(input.authorized != null && { authorized: input.authorized }),
|
|
640
|
+
...(input.latencyMode != null && { latencyMode: input.latencyMode }),
|
|
641
|
+
...(input.name != null && { name: input.name }),
|
|
642
|
+
...(input.recordingConfigurationArn != null && { recordingConfigurationArn: input.recordingConfigurationArn }),
|
|
643
|
+
...(input.type != null && { type: input.type }),
|
|
653
644
|
});
|
|
654
645
|
return new protocol_http_1.HttpRequest({
|
|
655
646
|
protocol,
|
|
@@ -687,15 +678,16 @@ const deserializeAws_restJson1BatchGetChannelCommandError = async (output, conte
|
|
|
687
678
|
body: await parseBody(output.body, context),
|
|
688
679
|
};
|
|
689
680
|
let response;
|
|
690
|
-
|
|
691
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
681
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
692
682
|
switch (errorCode) {
|
|
693
683
|
default:
|
|
694
684
|
const parsedBody = parsedOutput.body;
|
|
685
|
+
const $metadata = deserializeMetadata(output);
|
|
686
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
695
687
|
response = new IvsServiceException_1.IvsServiceException({
|
|
696
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
688
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
697
689
|
$fault: "client",
|
|
698
|
-
$metadata
|
|
690
|
+
$metadata,
|
|
699
691
|
});
|
|
700
692
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
701
693
|
}
|
|
@@ -725,15 +717,16 @@ const deserializeAws_restJson1BatchGetStreamKeyCommandError = async (output, con
|
|
|
725
717
|
body: await parseBody(output.body, context),
|
|
726
718
|
};
|
|
727
719
|
let response;
|
|
728
|
-
|
|
729
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
720
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
730
721
|
switch (errorCode) {
|
|
731
722
|
default:
|
|
732
723
|
const parsedBody = parsedOutput.body;
|
|
724
|
+
const $metadata = deserializeMetadata(output);
|
|
725
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
733
726
|
response = new IvsServiceException_1.IvsServiceException({
|
|
734
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
727
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
735
728
|
$fault: "client",
|
|
736
|
-
$metadata
|
|
729
|
+
$metadata,
|
|
737
730
|
});
|
|
738
731
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
739
732
|
}
|
|
@@ -763,8 +756,7 @@ const deserializeAws_restJson1CreateChannelCommandError = async (output, context
|
|
|
763
756
|
body: await parseBody(output.body, context),
|
|
764
757
|
};
|
|
765
758
|
let response;
|
|
766
|
-
|
|
767
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
759
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
768
760
|
switch (errorCode) {
|
|
769
761
|
case "AccessDeniedException":
|
|
770
762
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -783,10 +775,12 @@ const deserializeAws_restJson1CreateChannelCommandError = async (output, context
|
|
|
783
775
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
784
776
|
default:
|
|
785
777
|
const parsedBody = parsedOutput.body;
|
|
778
|
+
const $metadata = deserializeMetadata(output);
|
|
779
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
786
780
|
response = new IvsServiceException_1.IvsServiceException({
|
|
787
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
781
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
788
782
|
$fault: "client",
|
|
789
|
-
$metadata
|
|
783
|
+
$metadata,
|
|
790
784
|
});
|
|
791
785
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
792
786
|
}
|
|
@@ -812,8 +806,7 @@ const deserializeAws_restJson1CreateRecordingConfigurationCommandError = async (
|
|
|
812
806
|
body: await parseBody(output.body, context),
|
|
813
807
|
};
|
|
814
808
|
let response;
|
|
815
|
-
|
|
816
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
809
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
817
810
|
switch (errorCode) {
|
|
818
811
|
case "AccessDeniedException":
|
|
819
812
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -835,10 +828,12 @@ const deserializeAws_restJson1CreateRecordingConfigurationCommandError = async (
|
|
|
835
828
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
836
829
|
default:
|
|
837
830
|
const parsedBody = parsedOutput.body;
|
|
831
|
+
const $metadata = deserializeMetadata(output);
|
|
832
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
838
833
|
response = new IvsServiceException_1.IvsServiceException({
|
|
839
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
834
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
840
835
|
$fault: "client",
|
|
841
|
-
$metadata
|
|
836
|
+
$metadata,
|
|
842
837
|
});
|
|
843
838
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
844
839
|
}
|
|
@@ -864,8 +859,7 @@ const deserializeAws_restJson1CreateStreamKeyCommandError = async (output, conte
|
|
|
864
859
|
body: await parseBody(output.body, context),
|
|
865
860
|
};
|
|
866
861
|
let response;
|
|
867
|
-
|
|
868
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
862
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
869
863
|
switch (errorCode) {
|
|
870
864
|
case "AccessDeniedException":
|
|
871
865
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -884,10 +878,12 @@ const deserializeAws_restJson1CreateStreamKeyCommandError = async (output, conte
|
|
|
884
878
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
885
879
|
default:
|
|
886
880
|
const parsedBody = parsedOutput.body;
|
|
881
|
+
const $metadata = deserializeMetadata(output);
|
|
882
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
887
883
|
response = new IvsServiceException_1.IvsServiceException({
|
|
888
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
884
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
889
885
|
$fault: "client",
|
|
890
|
-
$metadata
|
|
886
|
+
$metadata,
|
|
891
887
|
});
|
|
892
888
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
893
889
|
}
|
|
@@ -909,8 +905,7 @@ const deserializeAws_restJson1DeleteChannelCommandError = async (output, context
|
|
|
909
905
|
body: await parseBody(output.body, context),
|
|
910
906
|
};
|
|
911
907
|
let response;
|
|
912
|
-
|
|
913
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
908
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
914
909
|
switch (errorCode) {
|
|
915
910
|
case "AccessDeniedException":
|
|
916
911
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -929,10 +924,12 @@ const deserializeAws_restJson1DeleteChannelCommandError = async (output, context
|
|
|
929
924
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
930
925
|
default:
|
|
931
926
|
const parsedBody = parsedOutput.body;
|
|
927
|
+
const $metadata = deserializeMetadata(output);
|
|
928
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
932
929
|
response = new IvsServiceException_1.IvsServiceException({
|
|
933
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
930
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
934
931
|
$fault: "client",
|
|
935
|
-
$metadata
|
|
932
|
+
$metadata,
|
|
936
933
|
});
|
|
937
934
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
938
935
|
}
|
|
@@ -954,8 +951,7 @@ const deserializeAws_restJson1DeletePlaybackKeyPairCommandError = async (output,
|
|
|
954
951
|
body: await parseBody(output.body, context),
|
|
955
952
|
};
|
|
956
953
|
let response;
|
|
957
|
-
|
|
958
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
954
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
959
955
|
switch (errorCode) {
|
|
960
956
|
case "AccessDeniedException":
|
|
961
957
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -971,10 +967,12 @@ const deserializeAws_restJson1DeletePlaybackKeyPairCommandError = async (output,
|
|
|
971
967
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
972
968
|
default:
|
|
973
969
|
const parsedBody = parsedOutput.body;
|
|
970
|
+
const $metadata = deserializeMetadata(output);
|
|
971
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
974
972
|
response = new IvsServiceException_1.IvsServiceException({
|
|
975
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
973
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
976
974
|
$fault: "client",
|
|
977
|
-
$metadata
|
|
975
|
+
$metadata,
|
|
978
976
|
});
|
|
979
977
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
980
978
|
}
|
|
@@ -996,8 +994,7 @@ const deserializeAws_restJson1DeleteRecordingConfigurationCommandError = async (
|
|
|
996
994
|
body: await parseBody(output.body, context),
|
|
997
995
|
};
|
|
998
996
|
let response;
|
|
999
|
-
|
|
1000
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
997
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1001
998
|
switch (errorCode) {
|
|
1002
999
|
case "AccessDeniedException":
|
|
1003
1000
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -1016,10 +1013,12 @@ const deserializeAws_restJson1DeleteRecordingConfigurationCommandError = async (
|
|
|
1016
1013
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1017
1014
|
default:
|
|
1018
1015
|
const parsedBody = parsedOutput.body;
|
|
1016
|
+
const $metadata = deserializeMetadata(output);
|
|
1017
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1019
1018
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1020
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1019
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1021
1020
|
$fault: "client",
|
|
1022
|
-
$metadata
|
|
1021
|
+
$metadata,
|
|
1023
1022
|
});
|
|
1024
1023
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1025
1024
|
}
|
|
@@ -1041,8 +1040,7 @@ const deserializeAws_restJson1DeleteStreamKeyCommandError = async (output, conte
|
|
|
1041
1040
|
body: await parseBody(output.body, context),
|
|
1042
1041
|
};
|
|
1043
1042
|
let response;
|
|
1044
|
-
|
|
1045
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1043
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1046
1044
|
switch (errorCode) {
|
|
1047
1045
|
case "AccessDeniedException":
|
|
1048
1046
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -1058,10 +1056,12 @@ const deserializeAws_restJson1DeleteStreamKeyCommandError = async (output, conte
|
|
|
1058
1056
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1059
1057
|
default:
|
|
1060
1058
|
const parsedBody = parsedOutput.body;
|
|
1059
|
+
const $metadata = deserializeMetadata(output);
|
|
1060
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1061
1061
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1062
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1062
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1063
1063
|
$fault: "client",
|
|
1064
|
-
$metadata
|
|
1064
|
+
$metadata,
|
|
1065
1065
|
});
|
|
1066
1066
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1067
1067
|
}
|
|
@@ -1087,8 +1087,7 @@ const deserializeAws_restJson1GetChannelCommandError = async (output, context) =
|
|
|
1087
1087
|
body: await parseBody(output.body, context),
|
|
1088
1088
|
};
|
|
1089
1089
|
let response;
|
|
1090
|
-
|
|
1091
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1090
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1092
1091
|
switch (errorCode) {
|
|
1093
1092
|
case "AccessDeniedException":
|
|
1094
1093
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -1101,10 +1100,12 @@ const deserializeAws_restJson1GetChannelCommandError = async (output, context) =
|
|
|
1101
1100
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1102
1101
|
default:
|
|
1103
1102
|
const parsedBody = parsedOutput.body;
|
|
1103
|
+
const $metadata = deserializeMetadata(output);
|
|
1104
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1104
1105
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1105
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1106
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1106
1107
|
$fault: "client",
|
|
1107
|
-
$metadata
|
|
1108
|
+
$metadata,
|
|
1108
1109
|
});
|
|
1109
1110
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1110
1111
|
}
|
|
@@ -1130,8 +1131,7 @@ const deserializeAws_restJson1GetPlaybackKeyPairCommandError = async (output, co
|
|
|
1130
1131
|
body: await parseBody(output.body, context),
|
|
1131
1132
|
};
|
|
1132
1133
|
let response;
|
|
1133
|
-
|
|
1134
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1134
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1135
1135
|
switch (errorCode) {
|
|
1136
1136
|
case "AccessDeniedException":
|
|
1137
1137
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -1144,10 +1144,12 @@ const deserializeAws_restJson1GetPlaybackKeyPairCommandError = async (output, co
|
|
|
1144
1144
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1145
1145
|
default:
|
|
1146
1146
|
const parsedBody = parsedOutput.body;
|
|
1147
|
+
const $metadata = deserializeMetadata(output);
|
|
1148
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1147
1149
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1148
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1150
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1149
1151
|
$fault: "client",
|
|
1150
|
-
$metadata
|
|
1152
|
+
$metadata,
|
|
1151
1153
|
});
|
|
1152
1154
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1153
1155
|
}
|
|
@@ -1173,8 +1175,7 @@ const deserializeAws_restJson1GetRecordingConfigurationCommandError = async (out
|
|
|
1173
1175
|
body: await parseBody(output.body, context),
|
|
1174
1176
|
};
|
|
1175
1177
|
let response;
|
|
1176
|
-
|
|
1177
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1178
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1178
1179
|
switch (errorCode) {
|
|
1179
1180
|
case "AccessDeniedException":
|
|
1180
1181
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -1190,10 +1191,12 @@ const deserializeAws_restJson1GetRecordingConfigurationCommandError = async (out
|
|
|
1190
1191
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1191
1192
|
default:
|
|
1192
1193
|
const parsedBody = parsedOutput.body;
|
|
1194
|
+
const $metadata = deserializeMetadata(output);
|
|
1195
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1193
1196
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1194
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1197
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1195
1198
|
$fault: "client",
|
|
1196
|
-
$metadata
|
|
1199
|
+
$metadata,
|
|
1197
1200
|
});
|
|
1198
1201
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1199
1202
|
}
|
|
@@ -1219,8 +1222,7 @@ const deserializeAws_restJson1GetStreamCommandError = async (output, context) =>
|
|
|
1219
1222
|
body: await parseBody(output.body, context),
|
|
1220
1223
|
};
|
|
1221
1224
|
let response;
|
|
1222
|
-
|
|
1223
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1225
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1224
1226
|
switch (errorCode) {
|
|
1225
1227
|
case "AccessDeniedException":
|
|
1226
1228
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -1236,10 +1238,12 @@ const deserializeAws_restJson1GetStreamCommandError = async (output, context) =>
|
|
|
1236
1238
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1237
1239
|
default:
|
|
1238
1240
|
const parsedBody = parsedOutput.body;
|
|
1241
|
+
const $metadata = deserializeMetadata(output);
|
|
1242
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1239
1243
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1240
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1244
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1241
1245
|
$fault: "client",
|
|
1242
|
-
$metadata
|
|
1246
|
+
$metadata,
|
|
1243
1247
|
});
|
|
1244
1248
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1245
1249
|
}
|
|
@@ -1265,8 +1269,7 @@ const deserializeAws_restJson1GetStreamKeyCommandError = async (output, context)
|
|
|
1265
1269
|
body: await parseBody(output.body, context),
|
|
1266
1270
|
};
|
|
1267
1271
|
let response;
|
|
1268
|
-
|
|
1269
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1272
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1270
1273
|
switch (errorCode) {
|
|
1271
1274
|
case "AccessDeniedException":
|
|
1272
1275
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -1279,10 +1282,12 @@ const deserializeAws_restJson1GetStreamKeyCommandError = async (output, context)
|
|
|
1279
1282
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1280
1283
|
default:
|
|
1281
1284
|
const parsedBody = parsedOutput.body;
|
|
1285
|
+
const $metadata = deserializeMetadata(output);
|
|
1286
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1282
1287
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1283
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1288
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1284
1289
|
$fault: "client",
|
|
1285
|
-
$metadata
|
|
1290
|
+
$metadata,
|
|
1286
1291
|
});
|
|
1287
1292
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1288
1293
|
}
|
|
@@ -1308,8 +1313,7 @@ const deserializeAws_restJson1GetStreamSessionCommandError = async (output, cont
|
|
|
1308
1313
|
body: await parseBody(output.body, context),
|
|
1309
1314
|
};
|
|
1310
1315
|
let response;
|
|
1311
|
-
|
|
1312
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1316
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1313
1317
|
switch (errorCode) {
|
|
1314
1318
|
case "AccessDeniedException":
|
|
1315
1319
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -1322,10 +1326,12 @@ const deserializeAws_restJson1GetStreamSessionCommandError = async (output, cont
|
|
|
1322
1326
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1323
1327
|
default:
|
|
1324
1328
|
const parsedBody = parsedOutput.body;
|
|
1329
|
+
const $metadata = deserializeMetadata(output);
|
|
1330
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1325
1331
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1326
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1332
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1327
1333
|
$fault: "client",
|
|
1328
|
-
$metadata
|
|
1334
|
+
$metadata,
|
|
1329
1335
|
});
|
|
1330
1336
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1331
1337
|
}
|
|
@@ -1351,8 +1357,7 @@ const deserializeAws_restJson1ImportPlaybackKeyPairCommandError = async (output,
|
|
|
1351
1357
|
body: await parseBody(output.body, context),
|
|
1352
1358
|
};
|
|
1353
1359
|
let response;
|
|
1354
|
-
|
|
1355
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1360
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1356
1361
|
switch (errorCode) {
|
|
1357
1362
|
case "AccessDeniedException":
|
|
1358
1363
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -1371,10 +1376,12 @@ const deserializeAws_restJson1ImportPlaybackKeyPairCommandError = async (output,
|
|
|
1371
1376
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1372
1377
|
default:
|
|
1373
1378
|
const parsedBody = parsedOutput.body;
|
|
1379
|
+
const $metadata = deserializeMetadata(output);
|
|
1380
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1374
1381
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1375
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1382
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1376
1383
|
$fault: "client",
|
|
1377
|
-
$metadata
|
|
1384
|
+
$metadata,
|
|
1378
1385
|
});
|
|
1379
1386
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1380
1387
|
}
|
|
@@ -1404,8 +1411,7 @@ const deserializeAws_restJson1ListChannelsCommandError = async (output, context)
|
|
|
1404
1411
|
body: await parseBody(output.body, context),
|
|
1405
1412
|
};
|
|
1406
1413
|
let response;
|
|
1407
|
-
|
|
1408
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1414
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1409
1415
|
switch (errorCode) {
|
|
1410
1416
|
case "AccessDeniedException":
|
|
1411
1417
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -1418,10 +1424,12 @@ const deserializeAws_restJson1ListChannelsCommandError = async (output, context)
|
|
|
1418
1424
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1419
1425
|
default:
|
|
1420
1426
|
const parsedBody = parsedOutput.body;
|
|
1427
|
+
const $metadata = deserializeMetadata(output);
|
|
1428
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1421
1429
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1422
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1430
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1423
1431
|
$fault: "client",
|
|
1424
|
-
$metadata
|
|
1432
|
+
$metadata,
|
|
1425
1433
|
});
|
|
1426
1434
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1427
1435
|
}
|
|
@@ -1451,8 +1459,7 @@ const deserializeAws_restJson1ListPlaybackKeyPairsCommandError = async (output,
|
|
|
1451
1459
|
body: await parseBody(output.body, context),
|
|
1452
1460
|
};
|
|
1453
1461
|
let response;
|
|
1454
|
-
|
|
1455
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1462
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1456
1463
|
switch (errorCode) {
|
|
1457
1464
|
case "AccessDeniedException":
|
|
1458
1465
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -1462,10 +1469,12 @@ const deserializeAws_restJson1ListPlaybackKeyPairsCommandError = async (output,
|
|
|
1462
1469
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1463
1470
|
default:
|
|
1464
1471
|
const parsedBody = parsedOutput.body;
|
|
1472
|
+
const $metadata = deserializeMetadata(output);
|
|
1473
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1465
1474
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1466
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1475
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1467
1476
|
$fault: "client",
|
|
1468
|
-
$metadata
|
|
1477
|
+
$metadata,
|
|
1469
1478
|
});
|
|
1470
1479
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1471
1480
|
}
|
|
@@ -1495,8 +1504,7 @@ const deserializeAws_restJson1ListRecordingConfigurationsCommandError = async (o
|
|
|
1495
1504
|
body: await parseBody(output.body, context),
|
|
1496
1505
|
};
|
|
1497
1506
|
let response;
|
|
1498
|
-
|
|
1499
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1507
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1500
1508
|
switch (errorCode) {
|
|
1501
1509
|
case "AccessDeniedException":
|
|
1502
1510
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -1509,10 +1517,12 @@ const deserializeAws_restJson1ListRecordingConfigurationsCommandError = async (o
|
|
|
1509
1517
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1510
1518
|
default:
|
|
1511
1519
|
const parsedBody = parsedOutput.body;
|
|
1520
|
+
const $metadata = deserializeMetadata(output);
|
|
1521
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1512
1522
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1513
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1523
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1514
1524
|
$fault: "client",
|
|
1515
|
-
$metadata
|
|
1525
|
+
$metadata,
|
|
1516
1526
|
});
|
|
1517
1527
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1518
1528
|
}
|
|
@@ -1542,8 +1552,7 @@ const deserializeAws_restJson1ListStreamKeysCommandError = async (output, contex
|
|
|
1542
1552
|
body: await parseBody(output.body, context),
|
|
1543
1553
|
};
|
|
1544
1554
|
let response;
|
|
1545
|
-
|
|
1546
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1555
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1547
1556
|
switch (errorCode) {
|
|
1548
1557
|
case "AccessDeniedException":
|
|
1549
1558
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -1556,10 +1565,12 @@ const deserializeAws_restJson1ListStreamKeysCommandError = async (output, contex
|
|
|
1556
1565
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1557
1566
|
default:
|
|
1558
1567
|
const parsedBody = parsedOutput.body;
|
|
1568
|
+
const $metadata = deserializeMetadata(output);
|
|
1569
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1559
1570
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1560
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1571
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1561
1572
|
$fault: "client",
|
|
1562
|
-
$metadata
|
|
1573
|
+
$metadata,
|
|
1563
1574
|
});
|
|
1564
1575
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1565
1576
|
}
|
|
@@ -1589,8 +1600,7 @@ const deserializeAws_restJson1ListStreamsCommandError = async (output, context)
|
|
|
1589
1600
|
body: await parseBody(output.body, context),
|
|
1590
1601
|
};
|
|
1591
1602
|
let response;
|
|
1592
|
-
|
|
1593
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1603
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1594
1604
|
switch (errorCode) {
|
|
1595
1605
|
case "AccessDeniedException":
|
|
1596
1606
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -1600,10 +1610,12 @@ const deserializeAws_restJson1ListStreamsCommandError = async (output, context)
|
|
|
1600
1610
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1601
1611
|
default:
|
|
1602
1612
|
const parsedBody = parsedOutput.body;
|
|
1613
|
+
const $metadata = deserializeMetadata(output);
|
|
1614
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1603
1615
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1604
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1616
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1605
1617
|
$fault: "client",
|
|
1606
|
-
$metadata
|
|
1618
|
+
$metadata,
|
|
1607
1619
|
});
|
|
1608
1620
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1609
1621
|
}
|
|
@@ -1633,8 +1645,7 @@ const deserializeAws_restJson1ListStreamSessionsCommandError = async (output, co
|
|
|
1633
1645
|
body: await parseBody(output.body, context),
|
|
1634
1646
|
};
|
|
1635
1647
|
let response;
|
|
1636
|
-
|
|
1637
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1648
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1638
1649
|
switch (errorCode) {
|
|
1639
1650
|
case "AccessDeniedException":
|
|
1640
1651
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -1647,10 +1658,12 @@ const deserializeAws_restJson1ListStreamSessionsCommandError = async (output, co
|
|
|
1647
1658
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1648
1659
|
default:
|
|
1649
1660
|
const parsedBody = parsedOutput.body;
|
|
1661
|
+
const $metadata = deserializeMetadata(output);
|
|
1662
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1650
1663
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1651
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1664
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1652
1665
|
$fault: "client",
|
|
1653
|
-
$metadata
|
|
1666
|
+
$metadata,
|
|
1654
1667
|
});
|
|
1655
1668
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1656
1669
|
}
|
|
@@ -1676,8 +1689,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1676
1689
|
body: await parseBody(output.body, context),
|
|
1677
1690
|
};
|
|
1678
1691
|
let response;
|
|
1679
|
-
|
|
1680
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1692
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1681
1693
|
switch (errorCode) {
|
|
1682
1694
|
case "InternalServerException":
|
|
1683
1695
|
case "com.amazonaws.ivs#InternalServerException":
|
|
@@ -1690,10 +1702,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1690
1702
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1691
1703
|
default:
|
|
1692
1704
|
const parsedBody = parsedOutput.body;
|
|
1705
|
+
const $metadata = deserializeMetadata(output);
|
|
1706
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1693
1707
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1694
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1708
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1695
1709
|
$fault: "client",
|
|
1696
|
-
$metadata
|
|
1710
|
+
$metadata,
|
|
1697
1711
|
});
|
|
1698
1712
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1699
1713
|
}
|
|
@@ -1715,8 +1729,7 @@ const deserializeAws_restJson1PutMetadataCommandError = async (output, context)
|
|
|
1715
1729
|
body: await parseBody(output.body, context),
|
|
1716
1730
|
};
|
|
1717
1731
|
let response;
|
|
1718
|
-
|
|
1719
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1732
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1720
1733
|
switch (errorCode) {
|
|
1721
1734
|
case "AccessDeniedException":
|
|
1722
1735
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -1735,10 +1748,12 @@ const deserializeAws_restJson1PutMetadataCommandError = async (output, context)
|
|
|
1735
1748
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1736
1749
|
default:
|
|
1737
1750
|
const parsedBody = parsedOutput.body;
|
|
1751
|
+
const $metadata = deserializeMetadata(output);
|
|
1752
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1738
1753
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1739
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1754
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1740
1755
|
$fault: "client",
|
|
1741
|
-
$metadata
|
|
1756
|
+
$metadata,
|
|
1742
1757
|
});
|
|
1743
1758
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1744
1759
|
}
|
|
@@ -1760,8 +1775,7 @@ const deserializeAws_restJson1StopStreamCommandError = async (output, context) =
|
|
|
1760
1775
|
body: await parseBody(output.body, context),
|
|
1761
1776
|
};
|
|
1762
1777
|
let response;
|
|
1763
|
-
|
|
1764
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1778
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1765
1779
|
switch (errorCode) {
|
|
1766
1780
|
case "AccessDeniedException":
|
|
1767
1781
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -1780,10 +1794,12 @@ const deserializeAws_restJson1StopStreamCommandError = async (output, context) =
|
|
|
1780
1794
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1781
1795
|
default:
|
|
1782
1796
|
const parsedBody = parsedOutput.body;
|
|
1797
|
+
const $metadata = deserializeMetadata(output);
|
|
1798
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1783
1799
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1784
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1800
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1785
1801
|
$fault: "client",
|
|
1786
|
-
$metadata
|
|
1802
|
+
$metadata,
|
|
1787
1803
|
});
|
|
1788
1804
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1789
1805
|
}
|
|
@@ -1805,8 +1821,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1805
1821
|
body: await parseBody(output.body, context),
|
|
1806
1822
|
};
|
|
1807
1823
|
let response;
|
|
1808
|
-
|
|
1809
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1824
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1810
1825
|
switch (errorCode) {
|
|
1811
1826
|
case "InternalServerException":
|
|
1812
1827
|
case "com.amazonaws.ivs#InternalServerException":
|
|
@@ -1819,10 +1834,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1819
1834
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1820
1835
|
default:
|
|
1821
1836
|
const parsedBody = parsedOutput.body;
|
|
1837
|
+
const $metadata = deserializeMetadata(output);
|
|
1838
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1822
1839
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1823
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1840
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1824
1841
|
$fault: "client",
|
|
1825
|
-
$metadata
|
|
1842
|
+
$metadata,
|
|
1826
1843
|
});
|
|
1827
1844
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1828
1845
|
}
|
|
@@ -1844,8 +1861,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1844
1861
|
body: await parseBody(output.body, context),
|
|
1845
1862
|
};
|
|
1846
1863
|
let response;
|
|
1847
|
-
|
|
1848
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1864
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1849
1865
|
switch (errorCode) {
|
|
1850
1866
|
case "InternalServerException":
|
|
1851
1867
|
case "com.amazonaws.ivs#InternalServerException":
|
|
@@ -1858,10 +1874,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1858
1874
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1859
1875
|
default:
|
|
1860
1876
|
const parsedBody = parsedOutput.body;
|
|
1877
|
+
const $metadata = deserializeMetadata(output);
|
|
1878
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1861
1879
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1862
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1880
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1863
1881
|
$fault: "client",
|
|
1864
|
-
$metadata
|
|
1882
|
+
$metadata,
|
|
1865
1883
|
});
|
|
1866
1884
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1867
1885
|
}
|
|
@@ -1887,8 +1905,7 @@ const deserializeAws_restJson1UpdateChannelCommandError = async (output, context
|
|
|
1887
1905
|
body: await parseBody(output.body, context),
|
|
1888
1906
|
};
|
|
1889
1907
|
let response;
|
|
1890
|
-
|
|
1891
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1908
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1892
1909
|
switch (errorCode) {
|
|
1893
1910
|
case "AccessDeniedException":
|
|
1894
1911
|
case "com.amazonaws.ivs#AccessDeniedException":
|
|
@@ -1907,10 +1924,12 @@ const deserializeAws_restJson1UpdateChannelCommandError = async (output, context
|
|
|
1907
1924
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1908
1925
|
default:
|
|
1909
1926
|
const parsedBody = parsedOutput.body;
|
|
1927
|
+
const $metadata = deserializeMetadata(output);
|
|
1928
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1910
1929
|
response = new IvsServiceException_1.IvsServiceException({
|
|
1911
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1930
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1912
1931
|
$fault: "client",
|
|
1913
|
-
$metadata
|
|
1932
|
+
$metadata,
|
|
1914
1933
|
});
|
|
1915
1934
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1916
1935
|
}
|
|
@@ -2047,18 +2066,17 @@ const serializeAws_restJson1ChannelArnList = (input, context) => {
|
|
|
2047
2066
|
};
|
|
2048
2067
|
const serializeAws_restJson1DestinationConfiguration = (input, context) => {
|
|
2049
2068
|
return {
|
|
2050
|
-
...(input.s3
|
|
2051
|
-
input.s3 !== null && { s3: serializeAws_restJson1S3DestinationConfiguration(input.s3, context) }),
|
|
2069
|
+
...(input.s3 != null && { s3: serializeAws_restJson1S3DestinationConfiguration(input.s3, context) }),
|
|
2052
2070
|
};
|
|
2053
2071
|
};
|
|
2054
2072
|
const serializeAws_restJson1S3DestinationConfiguration = (input, context) => {
|
|
2055
2073
|
return {
|
|
2056
|
-
...(input.bucketName
|
|
2074
|
+
...(input.bucketName != null && { bucketName: input.bucketName }),
|
|
2057
2075
|
};
|
|
2058
2076
|
};
|
|
2059
2077
|
const serializeAws_restJson1StreamFilters = (input, context) => {
|
|
2060
2078
|
return {
|
|
2061
|
-
...(input.health
|
|
2079
|
+
...(input.health != null && { health: input.health }),
|
|
2062
2080
|
};
|
|
2063
2081
|
};
|
|
2064
2082
|
const serializeAws_restJson1StreamKeyArnList = (input, context) => {
|
|
@@ -2084,9 +2102,8 @@ const serializeAws_restJson1Tags = (input, context) => {
|
|
|
2084
2102
|
};
|
|
2085
2103
|
const serializeAws_restJson1ThumbnailConfiguration = (input, context) => {
|
|
2086
2104
|
return {
|
|
2087
|
-
...(input.recordingMode
|
|
2088
|
-
...(input.targetIntervalSeconds
|
|
2089
|
-
input.targetIntervalSeconds !== null && { targetIntervalSeconds: input.targetIntervalSeconds }),
|
|
2105
|
+
...(input.recordingMode != null && { recordingMode: input.recordingMode }),
|
|
2106
|
+
...(input.targetIntervalSeconds != null && { targetIntervalSeconds: input.targetIntervalSeconds }),
|
|
2090
2107
|
};
|
|
2091
2108
|
};
|
|
2092
2109
|
const deserializeAws_restJson1AudioConfiguration = (output, context) => {
|
|
@@ -2124,9 +2141,7 @@ const deserializeAws_restJson1Channel = (output, context) => {
|
|
|
2124
2141
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2125
2142
|
playbackUrl: (0, smithy_client_1.expectString)(output.playbackUrl),
|
|
2126
2143
|
recordingConfigurationArn: (0, smithy_client_1.expectString)(output.recordingConfigurationArn),
|
|
2127
|
-
tags: output.tags
|
|
2128
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
2129
|
-
: undefined,
|
|
2144
|
+
tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
2130
2145
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
2131
2146
|
};
|
|
2132
2147
|
};
|
|
@@ -2159,26 +2174,18 @@ const deserializeAws_restJson1ChannelSummary = (output, context) => {
|
|
|
2159
2174
|
latencyMode: (0, smithy_client_1.expectString)(output.latencyMode),
|
|
2160
2175
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2161
2176
|
recordingConfigurationArn: (0, smithy_client_1.expectString)(output.recordingConfigurationArn),
|
|
2162
|
-
tags: output.tags
|
|
2163
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
2164
|
-
: undefined,
|
|
2177
|
+
tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
2165
2178
|
};
|
|
2166
2179
|
};
|
|
2167
2180
|
const deserializeAws_restJson1DestinationConfiguration = (output, context) => {
|
|
2168
2181
|
return {
|
|
2169
|
-
s3: output.s3
|
|
2170
|
-
? deserializeAws_restJson1S3DestinationConfiguration(output.s3, context)
|
|
2171
|
-
: undefined,
|
|
2182
|
+
s3: output.s3 != null ? deserializeAws_restJson1S3DestinationConfiguration(output.s3, context) : undefined,
|
|
2172
2183
|
};
|
|
2173
2184
|
};
|
|
2174
2185
|
const deserializeAws_restJson1IngestConfiguration = (output, context) => {
|
|
2175
2186
|
return {
|
|
2176
|
-
audio: output.audio
|
|
2177
|
-
|
|
2178
|
-
: undefined,
|
|
2179
|
-
video: output.video !== undefined && output.video !== null
|
|
2180
|
-
? deserializeAws_restJson1VideoConfiguration(output.video, context)
|
|
2181
|
-
: undefined,
|
|
2187
|
+
audio: output.audio != null ? deserializeAws_restJson1AudioConfiguration(output.audio, context) : undefined,
|
|
2188
|
+
video: output.video != null ? deserializeAws_restJson1VideoConfiguration(output.video, context) : undefined,
|
|
2182
2189
|
};
|
|
2183
2190
|
};
|
|
2184
2191
|
const deserializeAws_restJson1PlaybackKeyPair = (output, context) => {
|
|
@@ -2186,9 +2193,7 @@ const deserializeAws_restJson1PlaybackKeyPair = (output, context) => {
|
|
|
2186
2193
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2187
2194
|
fingerprint: (0, smithy_client_1.expectString)(output.fingerprint),
|
|
2188
2195
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2189
|
-
tags: output.tags
|
|
2190
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
2191
|
-
: undefined,
|
|
2196
|
+
tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
2192
2197
|
};
|
|
2193
2198
|
};
|
|
2194
2199
|
const deserializeAws_restJson1PlaybackKeyPairList = (output, context) => {
|
|
@@ -2206,23 +2211,19 @@ const deserializeAws_restJson1PlaybackKeyPairSummary = (output, context) => {
|
|
|
2206
2211
|
return {
|
|
2207
2212
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2208
2213
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2209
|
-
tags: output.tags
|
|
2210
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
2211
|
-
: undefined,
|
|
2214
|
+
tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
2212
2215
|
};
|
|
2213
2216
|
};
|
|
2214
2217
|
const deserializeAws_restJson1RecordingConfiguration = (output, context) => {
|
|
2215
2218
|
return {
|
|
2216
2219
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2217
|
-
destinationConfiguration: output.destinationConfiguration
|
|
2220
|
+
destinationConfiguration: output.destinationConfiguration != null
|
|
2218
2221
|
? deserializeAws_restJson1DestinationConfiguration(output.destinationConfiguration, context)
|
|
2219
2222
|
: undefined,
|
|
2220
2223
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2221
2224
|
state: (0, smithy_client_1.expectString)(output.state),
|
|
2222
|
-
tags: output.tags
|
|
2223
|
-
|
|
2224
|
-
: undefined,
|
|
2225
|
-
thumbnailConfiguration: output.thumbnailConfiguration !== undefined && output.thumbnailConfiguration !== null
|
|
2225
|
+
tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
2226
|
+
thumbnailConfiguration: output.thumbnailConfiguration != null
|
|
2226
2227
|
? deserializeAws_restJson1ThumbnailConfiguration(output.thumbnailConfiguration, context)
|
|
2227
2228
|
: undefined,
|
|
2228
2229
|
};
|
|
@@ -2241,14 +2242,12 @@ const deserializeAws_restJson1RecordingConfigurationList = (output, context) =>
|
|
|
2241
2242
|
const deserializeAws_restJson1RecordingConfigurationSummary = (output, context) => {
|
|
2242
2243
|
return {
|
|
2243
2244
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2244
|
-
destinationConfiguration: output.destinationConfiguration
|
|
2245
|
+
destinationConfiguration: output.destinationConfiguration != null
|
|
2245
2246
|
? deserializeAws_restJson1DestinationConfiguration(output.destinationConfiguration, context)
|
|
2246
2247
|
: undefined,
|
|
2247
2248
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2248
2249
|
state: (0, smithy_client_1.expectString)(output.state),
|
|
2249
|
-
tags: output.tags
|
|
2250
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
2251
|
-
: undefined,
|
|
2250
|
+
tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
2252
2251
|
};
|
|
2253
2252
|
};
|
|
2254
2253
|
const deserializeAws_restJson1S3DestinationConfiguration = (output, context) => {
|
|
@@ -2261,9 +2260,7 @@ const deserializeAws_restJson1_Stream = (output, context) => {
|
|
|
2261
2260
|
channelArn: (0, smithy_client_1.expectString)(output.channelArn),
|
|
2262
2261
|
health: (0, smithy_client_1.expectString)(output.health),
|
|
2263
2262
|
playbackUrl: (0, smithy_client_1.expectString)(output.playbackUrl),
|
|
2264
|
-
startTime: output.startTime
|
|
2265
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.startTime))
|
|
2266
|
-
: undefined,
|
|
2263
|
+
startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.startTime)) : undefined,
|
|
2267
2264
|
state: (0, smithy_client_1.expectString)(output.state),
|
|
2268
2265
|
streamId: (0, smithy_client_1.expectString)(output.streamId),
|
|
2269
2266
|
viewerCount: (0, smithy_client_1.expectLong)(output.viewerCount),
|
|
@@ -2271,9 +2268,7 @@ const deserializeAws_restJson1_Stream = (output, context) => {
|
|
|
2271
2268
|
};
|
|
2272
2269
|
const deserializeAws_restJson1StreamEvent = (output, context) => {
|
|
2273
2270
|
return {
|
|
2274
|
-
eventTime: output.eventTime
|
|
2275
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.eventTime))
|
|
2276
|
-
: undefined,
|
|
2271
|
+
eventTime: output.eventTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.eventTime)) : undefined,
|
|
2277
2272
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2278
2273
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
2279
2274
|
};
|
|
@@ -2293,9 +2288,7 @@ const deserializeAws_restJson1StreamKey = (output, context) => {
|
|
|
2293
2288
|
return {
|
|
2294
2289
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2295
2290
|
channelArn: (0, smithy_client_1.expectString)(output.channelArn),
|
|
2296
|
-
tags: output.tags
|
|
2297
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
2298
|
-
: undefined,
|
|
2291
|
+
tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
2299
2292
|
value: (0, smithy_client_1.expectString)(output.value),
|
|
2300
2293
|
};
|
|
2301
2294
|
};
|
|
@@ -2325,9 +2318,7 @@ const deserializeAws_restJson1StreamKeySummary = (output, context) => {
|
|
|
2325
2318
|
return {
|
|
2326
2319
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2327
2320
|
channelArn: (0, smithy_client_1.expectString)(output.channelArn),
|
|
2328
|
-
tags: output.tags
|
|
2329
|
-
? deserializeAws_restJson1Tags(output.tags, context)
|
|
2330
|
-
: undefined,
|
|
2321
|
+
tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
2331
2322
|
};
|
|
2332
2323
|
};
|
|
2333
2324
|
const deserializeAws_restJson1StreamList = (output, context) => {
|
|
@@ -2343,23 +2334,17 @@ const deserializeAws_restJson1StreamList = (output, context) => {
|
|
|
2343
2334
|
};
|
|
2344
2335
|
const deserializeAws_restJson1StreamSession = (output, context) => {
|
|
2345
2336
|
return {
|
|
2346
|
-
channel: output.channel
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
endTime: output.endTime !== undefined && output.endTime !== null
|
|
2350
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.endTime))
|
|
2351
|
-
: undefined,
|
|
2352
|
-
ingestConfiguration: output.ingestConfiguration !== undefined && output.ingestConfiguration !== null
|
|
2337
|
+
channel: output.channel != null ? deserializeAws_restJson1Channel(output.channel, context) : undefined,
|
|
2338
|
+
endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.endTime)) : undefined,
|
|
2339
|
+
ingestConfiguration: output.ingestConfiguration != null
|
|
2353
2340
|
? deserializeAws_restJson1IngestConfiguration(output.ingestConfiguration, context)
|
|
2354
2341
|
: undefined,
|
|
2355
|
-
recordingConfiguration: output.recordingConfiguration
|
|
2342
|
+
recordingConfiguration: output.recordingConfiguration != null
|
|
2356
2343
|
? deserializeAws_restJson1RecordingConfiguration(output.recordingConfiguration, context)
|
|
2357
2344
|
: undefined,
|
|
2358
|
-
startTime: output.startTime
|
|
2359
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.startTime))
|
|
2360
|
-
: undefined,
|
|
2345
|
+
startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.startTime)) : undefined,
|
|
2361
2346
|
streamId: (0, smithy_client_1.expectString)(output.streamId),
|
|
2362
|
-
truncatedEvents: output.truncatedEvents
|
|
2347
|
+
truncatedEvents: output.truncatedEvents != null
|
|
2363
2348
|
? deserializeAws_restJson1StreamEvents(output.truncatedEvents, context)
|
|
2364
2349
|
: undefined,
|
|
2365
2350
|
};
|
|
@@ -2377,13 +2362,9 @@ const deserializeAws_restJson1StreamSessionList = (output, context) => {
|
|
|
2377
2362
|
};
|
|
2378
2363
|
const deserializeAws_restJson1StreamSessionSummary = (output, context) => {
|
|
2379
2364
|
return {
|
|
2380
|
-
endTime: output.endTime
|
|
2381
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.endTime))
|
|
2382
|
-
: undefined,
|
|
2365
|
+
endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.endTime)) : undefined,
|
|
2383
2366
|
hasErrorEvent: (0, smithy_client_1.expectBoolean)(output.hasErrorEvent),
|
|
2384
|
-
startTime: output.startTime
|
|
2385
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.startTime))
|
|
2386
|
-
: undefined,
|
|
2367
|
+
startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.startTime)) : undefined,
|
|
2387
2368
|
streamId: (0, smithy_client_1.expectString)(output.streamId),
|
|
2388
2369
|
};
|
|
2389
2370
|
};
|
|
@@ -2391,9 +2372,7 @@ const deserializeAws_restJson1StreamSummary = (output, context) => {
|
|
|
2391
2372
|
return {
|
|
2392
2373
|
channelArn: (0, smithy_client_1.expectString)(output.channelArn),
|
|
2393
2374
|
health: (0, smithy_client_1.expectString)(output.health),
|
|
2394
|
-
startTime: output.startTime
|
|
2395
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.startTime))
|
|
2396
|
-
: undefined,
|
|
2375
|
+
startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.startTime)) : undefined,
|
|
2397
2376
|
state: (0, smithy_client_1.expectString)(output.state),
|
|
2398
2377
|
streamId: (0, smithy_client_1.expectString)(output.streamId),
|
|
2399
2378
|
viewerCount: (0, smithy_client_1.expectLong)(output.viewerCount),
|
|
@@ -2477,5 +2456,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
2477
2456
|
if (data["__type"] !== undefined) {
|
|
2478
2457
|
return sanitizeErrorCode(data["__type"]);
|
|
2479
2458
|
}
|
|
2480
|
-
return "";
|
|
2481
2459
|
};
|