@aws-sdk/client-mediapackage 3.504.0 → 3.507.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/index.js +21 -570
- package/dist-es/protocols/Aws_restJson1.js +24 -573
- package/package.json +3 -3
|
@@ -256,7 +256,7 @@ export const se_UpdateOriginEndpointCommand = async (input, context) => {
|
|
|
256
256
|
};
|
|
257
257
|
export const de_ConfigureLogsCommand = async (output, context) => {
|
|
258
258
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
259
|
-
return
|
|
259
|
+
return de_CommandError(output, context);
|
|
260
260
|
}
|
|
261
261
|
const contents = map({
|
|
262
262
|
$metadata: deserializeMetadata(output),
|
|
@@ -275,43 +275,9 @@ export const de_ConfigureLogsCommand = async (output, context) => {
|
|
|
275
275
|
Object.assign(contents, doc);
|
|
276
276
|
return contents;
|
|
277
277
|
};
|
|
278
|
-
const de_ConfigureLogsCommandError = async (output, context) => {
|
|
279
|
-
const parsedOutput = {
|
|
280
|
-
...output,
|
|
281
|
-
body: await parseErrorBody(output.body, context),
|
|
282
|
-
};
|
|
283
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
284
|
-
switch (errorCode) {
|
|
285
|
-
case "ForbiddenException":
|
|
286
|
-
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
287
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
288
|
-
case "InternalServerErrorException":
|
|
289
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
290
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
291
|
-
case "NotFoundException":
|
|
292
|
-
case "com.amazonaws.mediapackage#NotFoundException":
|
|
293
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
294
|
-
case "ServiceUnavailableException":
|
|
295
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
296
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
297
|
-
case "TooManyRequestsException":
|
|
298
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
299
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
300
|
-
case "UnprocessableEntityException":
|
|
301
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
302
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
303
|
-
default:
|
|
304
|
-
const parsedBody = parsedOutput.body;
|
|
305
|
-
return throwDefaultError({
|
|
306
|
-
output,
|
|
307
|
-
parsedBody,
|
|
308
|
-
errorCode,
|
|
309
|
-
});
|
|
310
|
-
}
|
|
311
|
-
};
|
|
312
278
|
export const de_CreateChannelCommand = async (output, context) => {
|
|
313
279
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
314
|
-
return
|
|
280
|
+
return de_CommandError(output, context);
|
|
315
281
|
}
|
|
316
282
|
const contents = map({
|
|
317
283
|
$metadata: deserializeMetadata(output),
|
|
@@ -330,43 +296,9 @@ export const de_CreateChannelCommand = async (output, context) => {
|
|
|
330
296
|
Object.assign(contents, doc);
|
|
331
297
|
return contents;
|
|
332
298
|
};
|
|
333
|
-
const de_CreateChannelCommandError = async (output, context) => {
|
|
334
|
-
const parsedOutput = {
|
|
335
|
-
...output,
|
|
336
|
-
body: await parseErrorBody(output.body, context),
|
|
337
|
-
};
|
|
338
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
339
|
-
switch (errorCode) {
|
|
340
|
-
case "ForbiddenException":
|
|
341
|
-
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
342
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
343
|
-
case "InternalServerErrorException":
|
|
344
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
345
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
346
|
-
case "NotFoundException":
|
|
347
|
-
case "com.amazonaws.mediapackage#NotFoundException":
|
|
348
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
349
|
-
case "ServiceUnavailableException":
|
|
350
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
351
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
352
|
-
case "TooManyRequestsException":
|
|
353
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
354
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
355
|
-
case "UnprocessableEntityException":
|
|
356
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
357
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
358
|
-
default:
|
|
359
|
-
const parsedBody = parsedOutput.body;
|
|
360
|
-
return throwDefaultError({
|
|
361
|
-
output,
|
|
362
|
-
parsedBody,
|
|
363
|
-
errorCode,
|
|
364
|
-
});
|
|
365
|
-
}
|
|
366
|
-
};
|
|
367
299
|
export const de_CreateHarvestJobCommand = async (output, context) => {
|
|
368
300
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
369
|
-
return
|
|
301
|
+
return de_CommandError(output, context);
|
|
370
302
|
}
|
|
371
303
|
const contents = map({
|
|
372
304
|
$metadata: deserializeMetadata(output),
|
|
@@ -386,43 +318,9 @@ export const de_CreateHarvestJobCommand = async (output, context) => {
|
|
|
386
318
|
Object.assign(contents, doc);
|
|
387
319
|
return contents;
|
|
388
320
|
};
|
|
389
|
-
const de_CreateHarvestJobCommandError = async (output, context) => {
|
|
390
|
-
const parsedOutput = {
|
|
391
|
-
...output,
|
|
392
|
-
body: await parseErrorBody(output.body, context),
|
|
393
|
-
};
|
|
394
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
395
|
-
switch (errorCode) {
|
|
396
|
-
case "ForbiddenException":
|
|
397
|
-
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
398
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
399
|
-
case "InternalServerErrorException":
|
|
400
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
401
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
402
|
-
case "NotFoundException":
|
|
403
|
-
case "com.amazonaws.mediapackage#NotFoundException":
|
|
404
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
405
|
-
case "ServiceUnavailableException":
|
|
406
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
407
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
408
|
-
case "TooManyRequestsException":
|
|
409
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
410
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
411
|
-
case "UnprocessableEntityException":
|
|
412
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
413
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
414
|
-
default:
|
|
415
|
-
const parsedBody = parsedOutput.body;
|
|
416
|
-
return throwDefaultError({
|
|
417
|
-
output,
|
|
418
|
-
parsedBody,
|
|
419
|
-
errorCode,
|
|
420
|
-
});
|
|
421
|
-
}
|
|
422
|
-
};
|
|
423
321
|
export const de_CreateOriginEndpointCommand = async (output, context) => {
|
|
424
322
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
425
|
-
return
|
|
323
|
+
return de_CommandError(output, context);
|
|
426
324
|
}
|
|
427
325
|
const contents = map({
|
|
428
326
|
$metadata: deserializeMetadata(output),
|
|
@@ -450,43 +348,9 @@ export const de_CreateOriginEndpointCommand = async (output, context) => {
|
|
|
450
348
|
Object.assign(contents, doc);
|
|
451
349
|
return contents;
|
|
452
350
|
};
|
|
453
|
-
const de_CreateOriginEndpointCommandError = async (output, context) => {
|
|
454
|
-
const parsedOutput = {
|
|
455
|
-
...output,
|
|
456
|
-
body: await parseErrorBody(output.body, context),
|
|
457
|
-
};
|
|
458
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
459
|
-
switch (errorCode) {
|
|
460
|
-
case "ForbiddenException":
|
|
461
|
-
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
462
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
463
|
-
case "InternalServerErrorException":
|
|
464
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
465
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
466
|
-
case "NotFoundException":
|
|
467
|
-
case "com.amazonaws.mediapackage#NotFoundException":
|
|
468
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
469
|
-
case "ServiceUnavailableException":
|
|
470
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
471
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
472
|
-
case "TooManyRequestsException":
|
|
473
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
474
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
475
|
-
case "UnprocessableEntityException":
|
|
476
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
477
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
478
|
-
default:
|
|
479
|
-
const parsedBody = parsedOutput.body;
|
|
480
|
-
return throwDefaultError({
|
|
481
|
-
output,
|
|
482
|
-
parsedBody,
|
|
483
|
-
errorCode,
|
|
484
|
-
});
|
|
485
|
-
}
|
|
486
|
-
};
|
|
487
351
|
export const de_DeleteChannelCommand = async (output, context) => {
|
|
488
352
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
489
|
-
return
|
|
353
|
+
return de_CommandError(output, context);
|
|
490
354
|
}
|
|
491
355
|
const contents = map({
|
|
492
356
|
$metadata: deserializeMetadata(output),
|
|
@@ -494,43 +358,9 @@ export const de_DeleteChannelCommand = async (output, context) => {
|
|
|
494
358
|
await collectBody(output.body, context);
|
|
495
359
|
return contents;
|
|
496
360
|
};
|
|
497
|
-
const de_DeleteChannelCommandError = async (output, context) => {
|
|
498
|
-
const parsedOutput = {
|
|
499
|
-
...output,
|
|
500
|
-
body: await parseErrorBody(output.body, context),
|
|
501
|
-
};
|
|
502
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
503
|
-
switch (errorCode) {
|
|
504
|
-
case "ForbiddenException":
|
|
505
|
-
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
506
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
507
|
-
case "InternalServerErrorException":
|
|
508
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
509
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
510
|
-
case "NotFoundException":
|
|
511
|
-
case "com.amazonaws.mediapackage#NotFoundException":
|
|
512
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
513
|
-
case "ServiceUnavailableException":
|
|
514
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
515
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
516
|
-
case "TooManyRequestsException":
|
|
517
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
518
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
519
|
-
case "UnprocessableEntityException":
|
|
520
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
521
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
522
|
-
default:
|
|
523
|
-
const parsedBody = parsedOutput.body;
|
|
524
|
-
return throwDefaultError({
|
|
525
|
-
output,
|
|
526
|
-
parsedBody,
|
|
527
|
-
errorCode,
|
|
528
|
-
});
|
|
529
|
-
}
|
|
530
|
-
};
|
|
531
361
|
export const de_DeleteOriginEndpointCommand = async (output, context) => {
|
|
532
362
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
533
|
-
return
|
|
363
|
+
return de_CommandError(output, context);
|
|
534
364
|
}
|
|
535
365
|
const contents = map({
|
|
536
366
|
$metadata: deserializeMetadata(output),
|
|
@@ -538,43 +368,9 @@ export const de_DeleteOriginEndpointCommand = async (output, context) => {
|
|
|
538
368
|
await collectBody(output.body, context);
|
|
539
369
|
return contents;
|
|
540
370
|
};
|
|
541
|
-
const de_DeleteOriginEndpointCommandError = async (output, context) => {
|
|
542
|
-
const parsedOutput = {
|
|
543
|
-
...output,
|
|
544
|
-
body: await parseErrorBody(output.body, context),
|
|
545
|
-
};
|
|
546
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
547
|
-
switch (errorCode) {
|
|
548
|
-
case "ForbiddenException":
|
|
549
|
-
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
550
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
551
|
-
case "InternalServerErrorException":
|
|
552
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
553
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
554
|
-
case "NotFoundException":
|
|
555
|
-
case "com.amazonaws.mediapackage#NotFoundException":
|
|
556
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
557
|
-
case "ServiceUnavailableException":
|
|
558
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
559
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
560
|
-
case "TooManyRequestsException":
|
|
561
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
562
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
563
|
-
case "UnprocessableEntityException":
|
|
564
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
565
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
566
|
-
default:
|
|
567
|
-
const parsedBody = parsedOutput.body;
|
|
568
|
-
return throwDefaultError({
|
|
569
|
-
output,
|
|
570
|
-
parsedBody,
|
|
571
|
-
errorCode,
|
|
572
|
-
});
|
|
573
|
-
}
|
|
574
|
-
};
|
|
575
371
|
export const de_DescribeChannelCommand = async (output, context) => {
|
|
576
372
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
577
|
-
return
|
|
373
|
+
return de_CommandError(output, context);
|
|
578
374
|
}
|
|
579
375
|
const contents = map({
|
|
580
376
|
$metadata: deserializeMetadata(output),
|
|
@@ -593,43 +389,9 @@ export const de_DescribeChannelCommand = async (output, context) => {
|
|
|
593
389
|
Object.assign(contents, doc);
|
|
594
390
|
return contents;
|
|
595
391
|
};
|
|
596
|
-
const de_DescribeChannelCommandError = async (output, context) => {
|
|
597
|
-
const parsedOutput = {
|
|
598
|
-
...output,
|
|
599
|
-
body: await parseErrorBody(output.body, context),
|
|
600
|
-
};
|
|
601
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
602
|
-
switch (errorCode) {
|
|
603
|
-
case "ForbiddenException":
|
|
604
|
-
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
605
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
606
|
-
case "InternalServerErrorException":
|
|
607
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
608
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
609
|
-
case "NotFoundException":
|
|
610
|
-
case "com.amazonaws.mediapackage#NotFoundException":
|
|
611
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
612
|
-
case "ServiceUnavailableException":
|
|
613
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
614
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
615
|
-
case "TooManyRequestsException":
|
|
616
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
617
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
618
|
-
case "UnprocessableEntityException":
|
|
619
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
620
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
621
|
-
default:
|
|
622
|
-
const parsedBody = parsedOutput.body;
|
|
623
|
-
return throwDefaultError({
|
|
624
|
-
output,
|
|
625
|
-
parsedBody,
|
|
626
|
-
errorCode,
|
|
627
|
-
});
|
|
628
|
-
}
|
|
629
|
-
};
|
|
630
392
|
export const de_DescribeHarvestJobCommand = async (output, context) => {
|
|
631
393
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
632
|
-
return
|
|
394
|
+
return de_CommandError(output, context);
|
|
633
395
|
}
|
|
634
396
|
const contents = map({
|
|
635
397
|
$metadata: deserializeMetadata(output),
|
|
@@ -644,48 +406,14 @@ export const de_DescribeHarvestJobCommand = async (output, context) => {
|
|
|
644
406
|
OriginEndpointId: [, __expectString, `originEndpointId`],
|
|
645
407
|
S3Destination: [, (_) => de_S3Destination(_, context), `s3Destination`],
|
|
646
408
|
StartTime: [, __expectString, `startTime`],
|
|
647
|
-
Status: [, __expectString, `status`],
|
|
648
|
-
});
|
|
649
|
-
Object.assign(contents, doc);
|
|
650
|
-
return contents;
|
|
651
|
-
};
|
|
652
|
-
const de_DescribeHarvestJobCommandError = async (output, context) => {
|
|
653
|
-
const parsedOutput = {
|
|
654
|
-
...output,
|
|
655
|
-
body: await parseErrorBody(output.body, context),
|
|
656
|
-
};
|
|
657
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
658
|
-
switch (errorCode) {
|
|
659
|
-
case "ForbiddenException":
|
|
660
|
-
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
661
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
662
|
-
case "InternalServerErrorException":
|
|
663
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
664
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
665
|
-
case "NotFoundException":
|
|
666
|
-
case "com.amazonaws.mediapackage#NotFoundException":
|
|
667
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
668
|
-
case "ServiceUnavailableException":
|
|
669
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
670
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
671
|
-
case "TooManyRequestsException":
|
|
672
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
673
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
674
|
-
case "UnprocessableEntityException":
|
|
675
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
676
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
677
|
-
default:
|
|
678
|
-
const parsedBody = parsedOutput.body;
|
|
679
|
-
return throwDefaultError({
|
|
680
|
-
output,
|
|
681
|
-
parsedBody,
|
|
682
|
-
errorCode,
|
|
683
|
-
});
|
|
684
|
-
}
|
|
409
|
+
Status: [, __expectString, `status`],
|
|
410
|
+
});
|
|
411
|
+
Object.assign(contents, doc);
|
|
412
|
+
return contents;
|
|
685
413
|
};
|
|
686
414
|
export const de_DescribeOriginEndpointCommand = async (output, context) => {
|
|
687
415
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
688
|
-
return
|
|
416
|
+
return de_CommandError(output, context);
|
|
689
417
|
}
|
|
690
418
|
const contents = map({
|
|
691
419
|
$metadata: deserializeMetadata(output),
|
|
@@ -713,43 +441,9 @@ export const de_DescribeOriginEndpointCommand = async (output, context) => {
|
|
|
713
441
|
Object.assign(contents, doc);
|
|
714
442
|
return contents;
|
|
715
443
|
};
|
|
716
|
-
const de_DescribeOriginEndpointCommandError = async (output, context) => {
|
|
717
|
-
const parsedOutput = {
|
|
718
|
-
...output,
|
|
719
|
-
body: await parseErrorBody(output.body, context),
|
|
720
|
-
};
|
|
721
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
722
|
-
switch (errorCode) {
|
|
723
|
-
case "ForbiddenException":
|
|
724
|
-
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
725
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
726
|
-
case "InternalServerErrorException":
|
|
727
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
728
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
729
|
-
case "NotFoundException":
|
|
730
|
-
case "com.amazonaws.mediapackage#NotFoundException":
|
|
731
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
732
|
-
case "ServiceUnavailableException":
|
|
733
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
734
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
735
|
-
case "TooManyRequestsException":
|
|
736
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
737
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
738
|
-
case "UnprocessableEntityException":
|
|
739
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
740
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
741
|
-
default:
|
|
742
|
-
const parsedBody = parsedOutput.body;
|
|
743
|
-
return throwDefaultError({
|
|
744
|
-
output,
|
|
745
|
-
parsedBody,
|
|
746
|
-
errorCode,
|
|
747
|
-
});
|
|
748
|
-
}
|
|
749
|
-
};
|
|
750
444
|
export const de_ListChannelsCommand = async (output, context) => {
|
|
751
445
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
752
|
-
return
|
|
446
|
+
return de_CommandError(output, context);
|
|
753
447
|
}
|
|
754
448
|
const contents = map({
|
|
755
449
|
$metadata: deserializeMetadata(output),
|
|
@@ -762,43 +456,9 @@ export const de_ListChannelsCommand = async (output, context) => {
|
|
|
762
456
|
Object.assign(contents, doc);
|
|
763
457
|
return contents;
|
|
764
458
|
};
|
|
765
|
-
const de_ListChannelsCommandError = async (output, context) => {
|
|
766
|
-
const parsedOutput = {
|
|
767
|
-
...output,
|
|
768
|
-
body: await parseErrorBody(output.body, context),
|
|
769
|
-
};
|
|
770
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
771
|
-
switch (errorCode) {
|
|
772
|
-
case "ForbiddenException":
|
|
773
|
-
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
774
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
775
|
-
case "InternalServerErrorException":
|
|
776
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
777
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
778
|
-
case "NotFoundException":
|
|
779
|
-
case "com.amazonaws.mediapackage#NotFoundException":
|
|
780
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
781
|
-
case "ServiceUnavailableException":
|
|
782
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
783
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
784
|
-
case "TooManyRequestsException":
|
|
785
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
786
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
787
|
-
case "UnprocessableEntityException":
|
|
788
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
789
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
790
|
-
default:
|
|
791
|
-
const parsedBody = parsedOutput.body;
|
|
792
|
-
return throwDefaultError({
|
|
793
|
-
output,
|
|
794
|
-
parsedBody,
|
|
795
|
-
errorCode,
|
|
796
|
-
});
|
|
797
|
-
}
|
|
798
|
-
};
|
|
799
459
|
export const de_ListHarvestJobsCommand = async (output, context) => {
|
|
800
460
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
801
|
-
return
|
|
461
|
+
return de_CommandError(output, context);
|
|
802
462
|
}
|
|
803
463
|
const contents = map({
|
|
804
464
|
$metadata: deserializeMetadata(output),
|
|
@@ -811,43 +471,9 @@ export const de_ListHarvestJobsCommand = async (output, context) => {
|
|
|
811
471
|
Object.assign(contents, doc);
|
|
812
472
|
return contents;
|
|
813
473
|
};
|
|
814
|
-
const de_ListHarvestJobsCommandError = async (output, context) => {
|
|
815
|
-
const parsedOutput = {
|
|
816
|
-
...output,
|
|
817
|
-
body: await parseErrorBody(output.body, context),
|
|
818
|
-
};
|
|
819
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
820
|
-
switch (errorCode) {
|
|
821
|
-
case "ForbiddenException":
|
|
822
|
-
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
823
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
824
|
-
case "InternalServerErrorException":
|
|
825
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
826
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
827
|
-
case "NotFoundException":
|
|
828
|
-
case "com.amazonaws.mediapackage#NotFoundException":
|
|
829
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
830
|
-
case "ServiceUnavailableException":
|
|
831
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
832
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
833
|
-
case "TooManyRequestsException":
|
|
834
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
835
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
836
|
-
case "UnprocessableEntityException":
|
|
837
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
838
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
839
|
-
default:
|
|
840
|
-
const parsedBody = parsedOutput.body;
|
|
841
|
-
return throwDefaultError({
|
|
842
|
-
output,
|
|
843
|
-
parsedBody,
|
|
844
|
-
errorCode,
|
|
845
|
-
});
|
|
846
|
-
}
|
|
847
|
-
};
|
|
848
474
|
export const de_ListOriginEndpointsCommand = async (output, context) => {
|
|
849
475
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
850
|
-
return
|
|
476
|
+
return de_CommandError(output, context);
|
|
851
477
|
}
|
|
852
478
|
const contents = map({
|
|
853
479
|
$metadata: deserializeMetadata(output),
|
|
@@ -860,43 +486,9 @@ export const de_ListOriginEndpointsCommand = async (output, context) => {
|
|
|
860
486
|
Object.assign(contents, doc);
|
|
861
487
|
return contents;
|
|
862
488
|
};
|
|
863
|
-
const de_ListOriginEndpointsCommandError = async (output, context) => {
|
|
864
|
-
const parsedOutput = {
|
|
865
|
-
...output,
|
|
866
|
-
body: await parseErrorBody(output.body, context),
|
|
867
|
-
};
|
|
868
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
869
|
-
switch (errorCode) {
|
|
870
|
-
case "ForbiddenException":
|
|
871
|
-
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
872
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
873
|
-
case "InternalServerErrorException":
|
|
874
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
875
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
876
|
-
case "NotFoundException":
|
|
877
|
-
case "com.amazonaws.mediapackage#NotFoundException":
|
|
878
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
879
|
-
case "ServiceUnavailableException":
|
|
880
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
881
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
882
|
-
case "TooManyRequestsException":
|
|
883
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
884
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
885
|
-
case "UnprocessableEntityException":
|
|
886
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
887
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
888
|
-
default:
|
|
889
|
-
const parsedBody = parsedOutput.body;
|
|
890
|
-
return throwDefaultError({
|
|
891
|
-
output,
|
|
892
|
-
parsedBody,
|
|
893
|
-
errorCode,
|
|
894
|
-
});
|
|
895
|
-
}
|
|
896
|
-
};
|
|
897
489
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
898
490
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
899
|
-
return
|
|
491
|
+
return de_CommandError(output, context);
|
|
900
492
|
}
|
|
901
493
|
const contents = map({
|
|
902
494
|
$metadata: deserializeMetadata(output),
|
|
@@ -908,22 +500,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
908
500
|
Object.assign(contents, doc);
|
|
909
501
|
return contents;
|
|
910
502
|
};
|
|
911
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
912
|
-
const parsedOutput = {
|
|
913
|
-
...output,
|
|
914
|
-
body: await parseErrorBody(output.body, context),
|
|
915
|
-
};
|
|
916
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
917
|
-
const parsedBody = parsedOutput.body;
|
|
918
|
-
return throwDefaultError({
|
|
919
|
-
output,
|
|
920
|
-
parsedBody,
|
|
921
|
-
errorCode,
|
|
922
|
-
});
|
|
923
|
-
};
|
|
924
503
|
export const de_RotateChannelCredentialsCommand = async (output, context) => {
|
|
925
504
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
926
|
-
return
|
|
505
|
+
return de_CommandError(output, context);
|
|
927
506
|
}
|
|
928
507
|
const contents = map({
|
|
929
508
|
$metadata: deserializeMetadata(output),
|
|
@@ -942,43 +521,9 @@ export const de_RotateChannelCredentialsCommand = async (output, context) => {
|
|
|
942
521
|
Object.assign(contents, doc);
|
|
943
522
|
return contents;
|
|
944
523
|
};
|
|
945
|
-
const de_RotateChannelCredentialsCommandError = async (output, context) => {
|
|
946
|
-
const parsedOutput = {
|
|
947
|
-
...output,
|
|
948
|
-
body: await parseErrorBody(output.body, context),
|
|
949
|
-
};
|
|
950
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
951
|
-
switch (errorCode) {
|
|
952
|
-
case "ForbiddenException":
|
|
953
|
-
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
954
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
955
|
-
case "InternalServerErrorException":
|
|
956
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
957
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
958
|
-
case "NotFoundException":
|
|
959
|
-
case "com.amazonaws.mediapackage#NotFoundException":
|
|
960
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
961
|
-
case "ServiceUnavailableException":
|
|
962
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
963
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
964
|
-
case "TooManyRequestsException":
|
|
965
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
966
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
967
|
-
case "UnprocessableEntityException":
|
|
968
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
969
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
970
|
-
default:
|
|
971
|
-
const parsedBody = parsedOutput.body;
|
|
972
|
-
return throwDefaultError({
|
|
973
|
-
output,
|
|
974
|
-
parsedBody,
|
|
975
|
-
errorCode,
|
|
976
|
-
});
|
|
977
|
-
}
|
|
978
|
-
};
|
|
979
524
|
export const de_RotateIngestEndpointCredentialsCommand = async (output, context) => {
|
|
980
525
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
981
|
-
return
|
|
526
|
+
return de_CommandError(output, context);
|
|
982
527
|
}
|
|
983
528
|
const contents = map({
|
|
984
529
|
$metadata: deserializeMetadata(output),
|
|
@@ -997,43 +542,9 @@ export const de_RotateIngestEndpointCredentialsCommand = async (output, context)
|
|
|
997
542
|
Object.assign(contents, doc);
|
|
998
543
|
return contents;
|
|
999
544
|
};
|
|
1000
|
-
const de_RotateIngestEndpointCredentialsCommandError = async (output, context) => {
|
|
1001
|
-
const parsedOutput = {
|
|
1002
|
-
...output,
|
|
1003
|
-
body: await parseErrorBody(output.body, context),
|
|
1004
|
-
};
|
|
1005
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1006
|
-
switch (errorCode) {
|
|
1007
|
-
case "ForbiddenException":
|
|
1008
|
-
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
1009
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1010
|
-
case "InternalServerErrorException":
|
|
1011
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
1012
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1013
|
-
case "NotFoundException":
|
|
1014
|
-
case "com.amazonaws.mediapackage#NotFoundException":
|
|
1015
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1016
|
-
case "ServiceUnavailableException":
|
|
1017
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
1018
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1019
|
-
case "TooManyRequestsException":
|
|
1020
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
1021
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1022
|
-
case "UnprocessableEntityException":
|
|
1023
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
1024
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
1025
|
-
default:
|
|
1026
|
-
const parsedBody = parsedOutput.body;
|
|
1027
|
-
return throwDefaultError({
|
|
1028
|
-
output,
|
|
1029
|
-
parsedBody,
|
|
1030
|
-
errorCode,
|
|
1031
|
-
});
|
|
1032
|
-
}
|
|
1033
|
-
};
|
|
1034
545
|
export const de_TagResourceCommand = async (output, context) => {
|
|
1035
546
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1036
|
-
return
|
|
547
|
+
return de_CommandError(output, context);
|
|
1037
548
|
}
|
|
1038
549
|
const contents = map({
|
|
1039
550
|
$metadata: deserializeMetadata(output),
|
|
@@ -1041,22 +552,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1041
552
|
await collectBody(output.body, context);
|
|
1042
553
|
return contents;
|
|
1043
554
|
};
|
|
1044
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1045
|
-
const parsedOutput = {
|
|
1046
|
-
...output,
|
|
1047
|
-
body: await parseErrorBody(output.body, context),
|
|
1048
|
-
};
|
|
1049
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1050
|
-
const parsedBody = parsedOutput.body;
|
|
1051
|
-
return throwDefaultError({
|
|
1052
|
-
output,
|
|
1053
|
-
parsedBody,
|
|
1054
|
-
errorCode,
|
|
1055
|
-
});
|
|
1056
|
-
};
|
|
1057
555
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
1058
556
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1059
|
-
return
|
|
557
|
+
return de_CommandError(output, context);
|
|
1060
558
|
}
|
|
1061
559
|
const contents = map({
|
|
1062
560
|
$metadata: deserializeMetadata(output),
|
|
@@ -1064,22 +562,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1064
562
|
await collectBody(output.body, context);
|
|
1065
563
|
return contents;
|
|
1066
564
|
};
|
|
1067
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1068
|
-
const parsedOutput = {
|
|
1069
|
-
...output,
|
|
1070
|
-
body: await parseErrorBody(output.body, context),
|
|
1071
|
-
};
|
|
1072
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1073
|
-
const parsedBody = parsedOutput.body;
|
|
1074
|
-
return throwDefaultError({
|
|
1075
|
-
output,
|
|
1076
|
-
parsedBody,
|
|
1077
|
-
errorCode,
|
|
1078
|
-
});
|
|
1079
|
-
};
|
|
1080
565
|
export const de_UpdateChannelCommand = async (output, context) => {
|
|
1081
566
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1082
|
-
return
|
|
567
|
+
return de_CommandError(output, context);
|
|
1083
568
|
}
|
|
1084
569
|
const contents = map({
|
|
1085
570
|
$metadata: deserializeMetadata(output),
|
|
@@ -1098,43 +583,9 @@ export const de_UpdateChannelCommand = async (output, context) => {
|
|
|
1098
583
|
Object.assign(contents, doc);
|
|
1099
584
|
return contents;
|
|
1100
585
|
};
|
|
1101
|
-
const de_UpdateChannelCommandError = async (output, context) => {
|
|
1102
|
-
const parsedOutput = {
|
|
1103
|
-
...output,
|
|
1104
|
-
body: await parseErrorBody(output.body, context),
|
|
1105
|
-
};
|
|
1106
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1107
|
-
switch (errorCode) {
|
|
1108
|
-
case "ForbiddenException":
|
|
1109
|
-
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
1110
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1111
|
-
case "InternalServerErrorException":
|
|
1112
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
1113
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1114
|
-
case "NotFoundException":
|
|
1115
|
-
case "com.amazonaws.mediapackage#NotFoundException":
|
|
1116
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1117
|
-
case "ServiceUnavailableException":
|
|
1118
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
1119
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1120
|
-
case "TooManyRequestsException":
|
|
1121
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
1122
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1123
|
-
case "UnprocessableEntityException":
|
|
1124
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
1125
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
1126
|
-
default:
|
|
1127
|
-
const parsedBody = parsedOutput.body;
|
|
1128
|
-
return throwDefaultError({
|
|
1129
|
-
output,
|
|
1130
|
-
parsedBody,
|
|
1131
|
-
errorCode,
|
|
1132
|
-
});
|
|
1133
|
-
}
|
|
1134
|
-
};
|
|
1135
586
|
export const de_UpdateOriginEndpointCommand = async (output, context) => {
|
|
1136
587
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1137
|
-
return
|
|
588
|
+
return de_CommandError(output, context);
|
|
1138
589
|
}
|
|
1139
590
|
const contents = map({
|
|
1140
591
|
$metadata: deserializeMetadata(output),
|
|
@@ -1162,7 +613,7 @@ export const de_UpdateOriginEndpointCommand = async (output, context) => {
|
|
|
1162
613
|
Object.assign(contents, doc);
|
|
1163
614
|
return contents;
|
|
1164
615
|
};
|
|
1165
|
-
const
|
|
616
|
+
const de_CommandError = async (output, context) => {
|
|
1166
617
|
const parsedOutput = {
|
|
1167
618
|
...output,
|
|
1168
619
|
body: await parseErrorBody(output.body, context),
|