@aws-sdk/client-mediaconvert 3.505.0 → 3.509.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 +30 -948
- package/dist-es/protocols/Aws_restJson1.js +54 -972
- package/package.json +3 -3
|
@@ -380,7 +380,7 @@ export const se_UpdateQueueCommand = async (input, context) => {
|
|
|
380
380
|
};
|
|
381
381
|
export const de_AssociateCertificateCommand = async (output, context) => {
|
|
382
382
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
383
|
-
return
|
|
383
|
+
return de_CommandError(output, context);
|
|
384
384
|
}
|
|
385
385
|
const contents = map({
|
|
386
386
|
$metadata: deserializeMetadata(output),
|
|
@@ -388,43 +388,9 @@ export const de_AssociateCertificateCommand = async (output, context) => {
|
|
|
388
388
|
await collectBody(output.body, context);
|
|
389
389
|
return contents;
|
|
390
390
|
};
|
|
391
|
-
const de_AssociateCertificateCommandError = async (output, context) => {
|
|
392
|
-
const parsedOutput = {
|
|
393
|
-
...output,
|
|
394
|
-
body: await parseErrorBody(output.body, context),
|
|
395
|
-
};
|
|
396
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
397
|
-
switch (errorCode) {
|
|
398
|
-
case "BadRequestException":
|
|
399
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
400
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
401
|
-
case "ConflictException":
|
|
402
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
403
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
404
|
-
case "ForbiddenException":
|
|
405
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
406
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
407
|
-
case "InternalServerErrorException":
|
|
408
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
409
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
410
|
-
case "NotFoundException":
|
|
411
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
412
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
413
|
-
case "TooManyRequestsException":
|
|
414
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
415
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
416
|
-
default:
|
|
417
|
-
const parsedBody = parsedOutput.body;
|
|
418
|
-
return throwDefaultError({
|
|
419
|
-
output,
|
|
420
|
-
parsedBody,
|
|
421
|
-
errorCode,
|
|
422
|
-
});
|
|
423
|
-
}
|
|
424
|
-
};
|
|
425
391
|
export const de_CancelJobCommand = async (output, context) => {
|
|
426
392
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
427
|
-
return
|
|
393
|
+
return de_CommandError(output, context);
|
|
428
394
|
}
|
|
429
395
|
const contents = map({
|
|
430
396
|
$metadata: deserializeMetadata(output),
|
|
@@ -432,43 +398,9 @@ export const de_CancelJobCommand = async (output, context) => {
|
|
|
432
398
|
await collectBody(output.body, context);
|
|
433
399
|
return contents;
|
|
434
400
|
};
|
|
435
|
-
const de_CancelJobCommandError = async (output, context) => {
|
|
436
|
-
const parsedOutput = {
|
|
437
|
-
...output,
|
|
438
|
-
body: await parseErrorBody(output.body, context),
|
|
439
|
-
};
|
|
440
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
441
|
-
switch (errorCode) {
|
|
442
|
-
case "BadRequestException":
|
|
443
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
444
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
445
|
-
case "ConflictException":
|
|
446
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
447
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
448
|
-
case "ForbiddenException":
|
|
449
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
450
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
451
|
-
case "InternalServerErrorException":
|
|
452
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
453
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
454
|
-
case "NotFoundException":
|
|
455
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
456
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
457
|
-
case "TooManyRequestsException":
|
|
458
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
459
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
460
|
-
default:
|
|
461
|
-
const parsedBody = parsedOutput.body;
|
|
462
|
-
return throwDefaultError({
|
|
463
|
-
output,
|
|
464
|
-
parsedBody,
|
|
465
|
-
errorCode,
|
|
466
|
-
});
|
|
467
|
-
}
|
|
468
|
-
};
|
|
469
401
|
export const de_CreateJobCommand = async (output, context) => {
|
|
470
402
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
471
|
-
return
|
|
403
|
+
return de_CommandError(output, context);
|
|
472
404
|
}
|
|
473
405
|
const contents = map({
|
|
474
406
|
$metadata: deserializeMetadata(output),
|
|
@@ -480,43 +412,9 @@ export const de_CreateJobCommand = async (output, context) => {
|
|
|
480
412
|
Object.assign(contents, doc);
|
|
481
413
|
return contents;
|
|
482
414
|
};
|
|
483
|
-
const de_CreateJobCommandError = async (output, context) => {
|
|
484
|
-
const parsedOutput = {
|
|
485
|
-
...output,
|
|
486
|
-
body: await parseErrorBody(output.body, context),
|
|
487
|
-
};
|
|
488
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
489
|
-
switch (errorCode) {
|
|
490
|
-
case "BadRequestException":
|
|
491
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
492
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
493
|
-
case "ConflictException":
|
|
494
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
495
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
496
|
-
case "ForbiddenException":
|
|
497
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
498
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
499
|
-
case "InternalServerErrorException":
|
|
500
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
501
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
502
|
-
case "NotFoundException":
|
|
503
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
504
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
505
|
-
case "TooManyRequestsException":
|
|
506
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
507
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
508
|
-
default:
|
|
509
|
-
const parsedBody = parsedOutput.body;
|
|
510
|
-
return throwDefaultError({
|
|
511
|
-
output,
|
|
512
|
-
parsedBody,
|
|
513
|
-
errorCode,
|
|
514
|
-
});
|
|
515
|
-
}
|
|
516
|
-
};
|
|
517
415
|
export const de_CreateJobTemplateCommand = async (output, context) => {
|
|
518
416
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
519
|
-
return
|
|
417
|
+
return de_CommandError(output, context);
|
|
520
418
|
}
|
|
521
419
|
const contents = map({
|
|
522
420
|
$metadata: deserializeMetadata(output),
|
|
@@ -528,43 +426,9 @@ export const de_CreateJobTemplateCommand = async (output, context) => {
|
|
|
528
426
|
Object.assign(contents, doc);
|
|
529
427
|
return contents;
|
|
530
428
|
};
|
|
531
|
-
const de_CreateJobTemplateCommandError = async (output, context) => {
|
|
532
|
-
const parsedOutput = {
|
|
533
|
-
...output,
|
|
534
|
-
body: await parseErrorBody(output.body, context),
|
|
535
|
-
};
|
|
536
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
537
|
-
switch (errorCode) {
|
|
538
|
-
case "BadRequestException":
|
|
539
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
540
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
541
|
-
case "ConflictException":
|
|
542
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
543
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
544
|
-
case "ForbiddenException":
|
|
545
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
546
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
547
|
-
case "InternalServerErrorException":
|
|
548
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
549
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
550
|
-
case "NotFoundException":
|
|
551
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
552
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
553
|
-
case "TooManyRequestsException":
|
|
554
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
555
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
556
|
-
default:
|
|
557
|
-
const parsedBody = parsedOutput.body;
|
|
558
|
-
return throwDefaultError({
|
|
559
|
-
output,
|
|
560
|
-
parsedBody,
|
|
561
|
-
errorCode,
|
|
562
|
-
});
|
|
563
|
-
}
|
|
564
|
-
};
|
|
565
429
|
export const de_CreatePresetCommand = async (output, context) => {
|
|
566
430
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
567
|
-
return
|
|
431
|
+
return de_CommandError(output, context);
|
|
568
432
|
}
|
|
569
433
|
const contents = map({
|
|
570
434
|
$metadata: deserializeMetadata(output),
|
|
@@ -576,43 +440,9 @@ export const de_CreatePresetCommand = async (output, context) => {
|
|
|
576
440
|
Object.assign(contents, doc);
|
|
577
441
|
return contents;
|
|
578
442
|
};
|
|
579
|
-
const de_CreatePresetCommandError = async (output, context) => {
|
|
580
|
-
const parsedOutput = {
|
|
581
|
-
...output,
|
|
582
|
-
body: await parseErrorBody(output.body, context),
|
|
583
|
-
};
|
|
584
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
585
|
-
switch (errorCode) {
|
|
586
|
-
case "BadRequestException":
|
|
587
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
588
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
589
|
-
case "ConflictException":
|
|
590
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
591
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
592
|
-
case "ForbiddenException":
|
|
593
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
594
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
595
|
-
case "InternalServerErrorException":
|
|
596
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
597
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
598
|
-
case "NotFoundException":
|
|
599
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
600
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
601
|
-
case "TooManyRequestsException":
|
|
602
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
603
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
604
|
-
default:
|
|
605
|
-
const parsedBody = parsedOutput.body;
|
|
606
|
-
return throwDefaultError({
|
|
607
|
-
output,
|
|
608
|
-
parsedBody,
|
|
609
|
-
errorCode,
|
|
610
|
-
});
|
|
611
|
-
}
|
|
612
|
-
};
|
|
613
443
|
export const de_CreateQueueCommand = async (output, context) => {
|
|
614
444
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
615
|
-
return
|
|
445
|
+
return de_CommandError(output, context);
|
|
616
446
|
}
|
|
617
447
|
const contents = map({
|
|
618
448
|
$metadata: deserializeMetadata(output),
|
|
@@ -624,43 +454,9 @@ export const de_CreateQueueCommand = async (output, context) => {
|
|
|
624
454
|
Object.assign(contents, doc);
|
|
625
455
|
return contents;
|
|
626
456
|
};
|
|
627
|
-
const de_CreateQueueCommandError = async (output, context) => {
|
|
628
|
-
const parsedOutput = {
|
|
629
|
-
...output,
|
|
630
|
-
body: await parseErrorBody(output.body, context),
|
|
631
|
-
};
|
|
632
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
633
|
-
switch (errorCode) {
|
|
634
|
-
case "BadRequestException":
|
|
635
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
636
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
637
|
-
case "ConflictException":
|
|
638
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
639
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
640
|
-
case "ForbiddenException":
|
|
641
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
642
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
643
|
-
case "InternalServerErrorException":
|
|
644
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
645
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
646
|
-
case "NotFoundException":
|
|
647
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
648
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
649
|
-
case "TooManyRequestsException":
|
|
650
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
651
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
652
|
-
default:
|
|
653
|
-
const parsedBody = parsedOutput.body;
|
|
654
|
-
return throwDefaultError({
|
|
655
|
-
output,
|
|
656
|
-
parsedBody,
|
|
657
|
-
errorCode,
|
|
658
|
-
});
|
|
659
|
-
}
|
|
660
|
-
};
|
|
661
457
|
export const de_DeleteJobTemplateCommand = async (output, context) => {
|
|
662
458
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
663
|
-
return
|
|
459
|
+
return de_CommandError(output, context);
|
|
664
460
|
}
|
|
665
461
|
const contents = map({
|
|
666
462
|
$metadata: deserializeMetadata(output),
|
|
@@ -668,43 +464,9 @@ export const de_DeleteJobTemplateCommand = async (output, context) => {
|
|
|
668
464
|
await collectBody(output.body, context);
|
|
669
465
|
return contents;
|
|
670
466
|
};
|
|
671
|
-
const de_DeleteJobTemplateCommandError = async (output, context) => {
|
|
672
|
-
const parsedOutput = {
|
|
673
|
-
...output,
|
|
674
|
-
body: await parseErrorBody(output.body, context),
|
|
675
|
-
};
|
|
676
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
677
|
-
switch (errorCode) {
|
|
678
|
-
case "BadRequestException":
|
|
679
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
680
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
681
|
-
case "ConflictException":
|
|
682
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
683
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
684
|
-
case "ForbiddenException":
|
|
685
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
686
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
687
|
-
case "InternalServerErrorException":
|
|
688
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
689
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
690
|
-
case "NotFoundException":
|
|
691
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
692
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
693
|
-
case "TooManyRequestsException":
|
|
694
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
695
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
696
|
-
default:
|
|
697
|
-
const parsedBody = parsedOutput.body;
|
|
698
|
-
return throwDefaultError({
|
|
699
|
-
output,
|
|
700
|
-
parsedBody,
|
|
701
|
-
errorCode,
|
|
702
|
-
});
|
|
703
|
-
}
|
|
704
|
-
};
|
|
705
467
|
export const de_DeletePolicyCommand = async (output, context) => {
|
|
706
468
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
707
|
-
return
|
|
469
|
+
return de_CommandError(output, context);
|
|
708
470
|
}
|
|
709
471
|
const contents = map({
|
|
710
472
|
$metadata: deserializeMetadata(output),
|
|
@@ -712,43 +474,9 @@ export const de_DeletePolicyCommand = async (output, context) => {
|
|
|
712
474
|
await collectBody(output.body, context);
|
|
713
475
|
return contents;
|
|
714
476
|
};
|
|
715
|
-
const de_DeletePolicyCommandError = async (output, context) => {
|
|
716
|
-
const parsedOutput = {
|
|
717
|
-
...output,
|
|
718
|
-
body: await parseErrorBody(output.body, context),
|
|
719
|
-
};
|
|
720
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
721
|
-
switch (errorCode) {
|
|
722
|
-
case "BadRequestException":
|
|
723
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
724
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
725
|
-
case "ConflictException":
|
|
726
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
727
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
728
|
-
case "ForbiddenException":
|
|
729
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
730
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
731
|
-
case "InternalServerErrorException":
|
|
732
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
733
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
734
|
-
case "NotFoundException":
|
|
735
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
736
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
737
|
-
case "TooManyRequestsException":
|
|
738
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
739
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
740
|
-
default:
|
|
741
|
-
const parsedBody = parsedOutput.body;
|
|
742
|
-
return throwDefaultError({
|
|
743
|
-
output,
|
|
744
|
-
parsedBody,
|
|
745
|
-
errorCode,
|
|
746
|
-
});
|
|
747
|
-
}
|
|
748
|
-
};
|
|
749
477
|
export const de_DeletePresetCommand = async (output, context) => {
|
|
750
478
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
751
|
-
return
|
|
479
|
+
return de_CommandError(output, context);
|
|
752
480
|
}
|
|
753
481
|
const contents = map({
|
|
754
482
|
$metadata: deserializeMetadata(output),
|
|
@@ -756,43 +484,9 @@ export const de_DeletePresetCommand = async (output, context) => {
|
|
|
756
484
|
await collectBody(output.body, context);
|
|
757
485
|
return contents;
|
|
758
486
|
};
|
|
759
|
-
const de_DeletePresetCommandError = async (output, context) => {
|
|
760
|
-
const parsedOutput = {
|
|
761
|
-
...output,
|
|
762
|
-
body: await parseErrorBody(output.body, context),
|
|
763
|
-
};
|
|
764
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
765
|
-
switch (errorCode) {
|
|
766
|
-
case "BadRequestException":
|
|
767
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
768
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
769
|
-
case "ConflictException":
|
|
770
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
771
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
772
|
-
case "ForbiddenException":
|
|
773
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
774
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
775
|
-
case "InternalServerErrorException":
|
|
776
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
777
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
778
|
-
case "NotFoundException":
|
|
779
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
780
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
781
|
-
case "TooManyRequestsException":
|
|
782
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
783
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
784
|
-
default:
|
|
785
|
-
const parsedBody = parsedOutput.body;
|
|
786
|
-
return throwDefaultError({
|
|
787
|
-
output,
|
|
788
|
-
parsedBody,
|
|
789
|
-
errorCode,
|
|
790
|
-
});
|
|
791
|
-
}
|
|
792
|
-
};
|
|
793
487
|
export const de_DeleteQueueCommand = async (output, context) => {
|
|
794
488
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
795
|
-
return
|
|
489
|
+
return de_CommandError(output, context);
|
|
796
490
|
}
|
|
797
491
|
const contents = map({
|
|
798
492
|
$metadata: deserializeMetadata(output),
|
|
@@ -800,43 +494,9 @@ export const de_DeleteQueueCommand = async (output, context) => {
|
|
|
800
494
|
await collectBody(output.body, context);
|
|
801
495
|
return contents;
|
|
802
496
|
};
|
|
803
|
-
const de_DeleteQueueCommandError = async (output, context) => {
|
|
804
|
-
const parsedOutput = {
|
|
805
|
-
...output,
|
|
806
|
-
body: await parseErrorBody(output.body, context),
|
|
807
|
-
};
|
|
808
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
809
|
-
switch (errorCode) {
|
|
810
|
-
case "BadRequestException":
|
|
811
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
812
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
813
|
-
case "ConflictException":
|
|
814
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
815
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
816
|
-
case "ForbiddenException":
|
|
817
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
818
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
819
|
-
case "InternalServerErrorException":
|
|
820
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
821
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
822
|
-
case "NotFoundException":
|
|
823
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
824
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
825
|
-
case "TooManyRequestsException":
|
|
826
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
827
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
828
|
-
default:
|
|
829
|
-
const parsedBody = parsedOutput.body;
|
|
830
|
-
return throwDefaultError({
|
|
831
|
-
output,
|
|
832
|
-
parsedBody,
|
|
833
|
-
errorCode,
|
|
834
|
-
});
|
|
835
|
-
}
|
|
836
|
-
};
|
|
837
497
|
export const de_DescribeEndpointsCommand = async (output, context) => {
|
|
838
498
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
839
|
-
return
|
|
499
|
+
return de_CommandError(output, context);
|
|
840
500
|
}
|
|
841
501
|
const contents = map({
|
|
842
502
|
$metadata: deserializeMetadata(output),
|
|
@@ -849,43 +509,9 @@ export const de_DescribeEndpointsCommand = async (output, context) => {
|
|
|
849
509
|
Object.assign(contents, doc);
|
|
850
510
|
return contents;
|
|
851
511
|
};
|
|
852
|
-
const de_DescribeEndpointsCommandError = async (output, context) => {
|
|
853
|
-
const parsedOutput = {
|
|
854
|
-
...output,
|
|
855
|
-
body: await parseErrorBody(output.body, context),
|
|
856
|
-
};
|
|
857
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
858
|
-
switch (errorCode) {
|
|
859
|
-
case "BadRequestException":
|
|
860
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
861
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
862
|
-
case "ConflictException":
|
|
863
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
864
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
865
|
-
case "ForbiddenException":
|
|
866
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
867
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
868
|
-
case "InternalServerErrorException":
|
|
869
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
870
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
871
|
-
case "NotFoundException":
|
|
872
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
873
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
874
|
-
case "TooManyRequestsException":
|
|
875
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
876
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
877
|
-
default:
|
|
878
|
-
const parsedBody = parsedOutput.body;
|
|
879
|
-
return throwDefaultError({
|
|
880
|
-
output,
|
|
881
|
-
parsedBody,
|
|
882
|
-
errorCode,
|
|
883
|
-
});
|
|
884
|
-
}
|
|
885
|
-
};
|
|
886
512
|
export const de_DisassociateCertificateCommand = async (output, context) => {
|
|
887
513
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
888
|
-
return
|
|
514
|
+
return de_CommandError(output, context);
|
|
889
515
|
}
|
|
890
516
|
const contents = map({
|
|
891
517
|
$metadata: deserializeMetadata(output),
|
|
@@ -893,43 +519,9 @@ export const de_DisassociateCertificateCommand = async (output, context) => {
|
|
|
893
519
|
await collectBody(output.body, context);
|
|
894
520
|
return contents;
|
|
895
521
|
};
|
|
896
|
-
const de_DisassociateCertificateCommandError = async (output, context) => {
|
|
897
|
-
const parsedOutput = {
|
|
898
|
-
...output,
|
|
899
|
-
body: await parseErrorBody(output.body, context),
|
|
900
|
-
};
|
|
901
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
902
|
-
switch (errorCode) {
|
|
903
|
-
case "BadRequestException":
|
|
904
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
905
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
906
|
-
case "ConflictException":
|
|
907
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
908
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
909
|
-
case "ForbiddenException":
|
|
910
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
911
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
912
|
-
case "InternalServerErrorException":
|
|
913
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
914
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
915
|
-
case "NotFoundException":
|
|
916
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
917
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
918
|
-
case "TooManyRequestsException":
|
|
919
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
920
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
921
|
-
default:
|
|
922
|
-
const parsedBody = parsedOutput.body;
|
|
923
|
-
return throwDefaultError({
|
|
924
|
-
output,
|
|
925
|
-
parsedBody,
|
|
926
|
-
errorCode,
|
|
927
|
-
});
|
|
928
|
-
}
|
|
929
|
-
};
|
|
930
522
|
export const de_GetJobCommand = async (output, context) => {
|
|
931
523
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
932
|
-
return
|
|
524
|
+
return de_CommandError(output, context);
|
|
933
525
|
}
|
|
934
526
|
const contents = map({
|
|
935
527
|
$metadata: deserializeMetadata(output),
|
|
@@ -941,43 +533,9 @@ export const de_GetJobCommand = async (output, context) => {
|
|
|
941
533
|
Object.assign(contents, doc);
|
|
942
534
|
return contents;
|
|
943
535
|
};
|
|
944
|
-
const de_GetJobCommandError = async (output, context) => {
|
|
945
|
-
const parsedOutput = {
|
|
946
|
-
...output,
|
|
947
|
-
body: await parseErrorBody(output.body, context),
|
|
948
|
-
};
|
|
949
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
950
|
-
switch (errorCode) {
|
|
951
|
-
case "BadRequestException":
|
|
952
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
953
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
954
|
-
case "ConflictException":
|
|
955
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
956
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
957
|
-
case "ForbiddenException":
|
|
958
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
959
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
960
|
-
case "InternalServerErrorException":
|
|
961
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
962
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
963
|
-
case "NotFoundException":
|
|
964
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
965
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
966
|
-
case "TooManyRequestsException":
|
|
967
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
968
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
969
|
-
default:
|
|
970
|
-
const parsedBody = parsedOutput.body;
|
|
971
|
-
return throwDefaultError({
|
|
972
|
-
output,
|
|
973
|
-
parsedBody,
|
|
974
|
-
errorCode,
|
|
975
|
-
});
|
|
976
|
-
}
|
|
977
|
-
};
|
|
978
536
|
export const de_GetJobTemplateCommand = async (output, context) => {
|
|
979
537
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
980
|
-
return
|
|
538
|
+
return de_CommandError(output, context);
|
|
981
539
|
}
|
|
982
540
|
const contents = map({
|
|
983
541
|
$metadata: deserializeMetadata(output),
|
|
@@ -989,43 +547,9 @@ export const de_GetJobTemplateCommand = async (output, context) => {
|
|
|
989
547
|
Object.assign(contents, doc);
|
|
990
548
|
return contents;
|
|
991
549
|
};
|
|
992
|
-
const de_GetJobTemplateCommandError = async (output, context) => {
|
|
993
|
-
const parsedOutput = {
|
|
994
|
-
...output,
|
|
995
|
-
body: await parseErrorBody(output.body, context),
|
|
996
|
-
};
|
|
997
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
998
|
-
switch (errorCode) {
|
|
999
|
-
case "BadRequestException":
|
|
1000
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
1001
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1002
|
-
case "ConflictException":
|
|
1003
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
1004
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1005
|
-
case "ForbiddenException":
|
|
1006
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
1007
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1008
|
-
case "InternalServerErrorException":
|
|
1009
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
1010
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1011
|
-
case "NotFoundException":
|
|
1012
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
1013
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1014
|
-
case "TooManyRequestsException":
|
|
1015
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
1016
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1017
|
-
default:
|
|
1018
|
-
const parsedBody = parsedOutput.body;
|
|
1019
|
-
return throwDefaultError({
|
|
1020
|
-
output,
|
|
1021
|
-
parsedBody,
|
|
1022
|
-
errorCode,
|
|
1023
|
-
});
|
|
1024
|
-
}
|
|
1025
|
-
};
|
|
1026
550
|
export const de_GetPolicyCommand = async (output, context) => {
|
|
1027
551
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1028
|
-
return
|
|
552
|
+
return de_CommandError(output, context);
|
|
1029
553
|
}
|
|
1030
554
|
const contents = map({
|
|
1031
555
|
$metadata: deserializeMetadata(output),
|
|
@@ -1037,43 +561,9 @@ export const de_GetPolicyCommand = async (output, context) => {
|
|
|
1037
561
|
Object.assign(contents, doc);
|
|
1038
562
|
return contents;
|
|
1039
563
|
};
|
|
1040
|
-
const de_GetPolicyCommandError = async (output, context) => {
|
|
1041
|
-
const parsedOutput = {
|
|
1042
|
-
...output,
|
|
1043
|
-
body: await parseErrorBody(output.body, context),
|
|
1044
|
-
};
|
|
1045
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1046
|
-
switch (errorCode) {
|
|
1047
|
-
case "BadRequestException":
|
|
1048
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
1049
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1050
|
-
case "ConflictException":
|
|
1051
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
1052
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1053
|
-
case "ForbiddenException":
|
|
1054
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
1055
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1056
|
-
case "InternalServerErrorException":
|
|
1057
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
1058
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1059
|
-
case "NotFoundException":
|
|
1060
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
1061
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1062
|
-
case "TooManyRequestsException":
|
|
1063
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
1064
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1065
|
-
default:
|
|
1066
|
-
const parsedBody = parsedOutput.body;
|
|
1067
|
-
return throwDefaultError({
|
|
1068
|
-
output,
|
|
1069
|
-
parsedBody,
|
|
1070
|
-
errorCode,
|
|
1071
|
-
});
|
|
1072
|
-
}
|
|
1073
|
-
};
|
|
1074
564
|
export const de_GetPresetCommand = async (output, context) => {
|
|
1075
565
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1076
|
-
return
|
|
566
|
+
return de_CommandError(output, context);
|
|
1077
567
|
}
|
|
1078
568
|
const contents = map({
|
|
1079
569
|
$metadata: deserializeMetadata(output),
|
|
@@ -1085,43 +575,9 @@ export const de_GetPresetCommand = async (output, context) => {
|
|
|
1085
575
|
Object.assign(contents, doc);
|
|
1086
576
|
return contents;
|
|
1087
577
|
};
|
|
1088
|
-
const de_GetPresetCommandError = async (output, context) => {
|
|
1089
|
-
const parsedOutput = {
|
|
1090
|
-
...output,
|
|
1091
|
-
body: await parseErrorBody(output.body, context),
|
|
1092
|
-
};
|
|
1093
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1094
|
-
switch (errorCode) {
|
|
1095
|
-
case "BadRequestException":
|
|
1096
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
1097
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1098
|
-
case "ConflictException":
|
|
1099
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
1100
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1101
|
-
case "ForbiddenException":
|
|
1102
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
1103
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1104
|
-
case "InternalServerErrorException":
|
|
1105
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
1106
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1107
|
-
case "NotFoundException":
|
|
1108
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
1109
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1110
|
-
case "TooManyRequestsException":
|
|
1111
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
1112
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1113
|
-
default:
|
|
1114
|
-
const parsedBody = parsedOutput.body;
|
|
1115
|
-
return throwDefaultError({
|
|
1116
|
-
output,
|
|
1117
|
-
parsedBody,
|
|
1118
|
-
errorCode,
|
|
1119
|
-
});
|
|
1120
|
-
}
|
|
1121
|
-
};
|
|
1122
578
|
export const de_GetQueueCommand = async (output, context) => {
|
|
1123
579
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1124
|
-
return
|
|
580
|
+
return de_CommandError(output, context);
|
|
1125
581
|
}
|
|
1126
582
|
const contents = map({
|
|
1127
583
|
$metadata: deserializeMetadata(output),
|
|
@@ -1133,43 +589,9 @@ export const de_GetQueueCommand = async (output, context) => {
|
|
|
1133
589
|
Object.assign(contents, doc);
|
|
1134
590
|
return contents;
|
|
1135
591
|
};
|
|
1136
|
-
const de_GetQueueCommandError = async (output, context) => {
|
|
1137
|
-
const parsedOutput = {
|
|
1138
|
-
...output,
|
|
1139
|
-
body: await parseErrorBody(output.body, context),
|
|
1140
|
-
};
|
|
1141
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1142
|
-
switch (errorCode) {
|
|
1143
|
-
case "BadRequestException":
|
|
1144
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
1145
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1146
|
-
case "ConflictException":
|
|
1147
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
1148
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1149
|
-
case "ForbiddenException":
|
|
1150
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
1151
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1152
|
-
case "InternalServerErrorException":
|
|
1153
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
1154
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1155
|
-
case "NotFoundException":
|
|
1156
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
1157
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1158
|
-
case "TooManyRequestsException":
|
|
1159
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
1160
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1161
|
-
default:
|
|
1162
|
-
const parsedBody = parsedOutput.body;
|
|
1163
|
-
return throwDefaultError({
|
|
1164
|
-
output,
|
|
1165
|
-
parsedBody,
|
|
1166
|
-
errorCode,
|
|
1167
|
-
});
|
|
1168
|
-
}
|
|
1169
|
-
};
|
|
1170
592
|
export const de_ListJobsCommand = async (output, context) => {
|
|
1171
593
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1172
|
-
return
|
|
594
|
+
return de_CommandError(output, context);
|
|
1173
595
|
}
|
|
1174
596
|
const contents = map({
|
|
1175
597
|
$metadata: deserializeMetadata(output),
|
|
@@ -1182,141 +604,24 @@ export const de_ListJobsCommand = async (output, context) => {
|
|
|
1182
604
|
Object.assign(contents, doc);
|
|
1183
605
|
return contents;
|
|
1184
606
|
};
|
|
1185
|
-
const de_ListJobsCommandError = async (output, context) => {
|
|
1186
|
-
const parsedOutput = {
|
|
1187
|
-
...output,
|
|
1188
|
-
body: await parseErrorBody(output.body, context),
|
|
1189
|
-
};
|
|
1190
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1191
|
-
switch (errorCode) {
|
|
1192
|
-
case "BadRequestException":
|
|
1193
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
1194
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1195
|
-
case "ConflictException":
|
|
1196
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
1197
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1198
|
-
case "ForbiddenException":
|
|
1199
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
1200
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1201
|
-
case "InternalServerErrorException":
|
|
1202
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
1203
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1204
|
-
case "NotFoundException":
|
|
1205
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
1206
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1207
|
-
case "TooManyRequestsException":
|
|
1208
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
1209
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1210
|
-
default:
|
|
1211
|
-
const parsedBody = parsedOutput.body;
|
|
1212
|
-
return throwDefaultError({
|
|
1213
|
-
output,
|
|
1214
|
-
parsedBody,
|
|
1215
|
-
errorCode,
|
|
1216
|
-
});
|
|
1217
|
-
}
|
|
1218
|
-
};
|
|
1219
607
|
export const de_ListJobTemplatesCommand = async (output, context) => {
|
|
1220
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1221
|
-
return
|
|
1222
|
-
}
|
|
1223
|
-
const contents = map({
|
|
1224
|
-
$metadata: deserializeMetadata(output),
|
|
1225
|
-
});
|
|
1226
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1227
|
-
const doc = take(data, {
|
|
1228
|
-
JobTemplates: [, (_) => de___listOfJobTemplate(_, context), `jobTemplates`],
|
|
1229
|
-
NextToken: [, __expectString, `nextToken`],
|
|
1230
|
-
});
|
|
1231
|
-
Object.assign(contents, doc);
|
|
1232
|
-
return contents;
|
|
1233
|
-
};
|
|
1234
|
-
const de_ListJobTemplatesCommandError = async (output, context) => {
|
|
1235
|
-
const parsedOutput = {
|
|
1236
|
-
...output,
|
|
1237
|
-
body: await parseErrorBody(output.body, context),
|
|
1238
|
-
};
|
|
1239
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1240
|
-
switch (errorCode) {
|
|
1241
|
-
case "BadRequestException":
|
|
1242
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
1243
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1244
|
-
case "ConflictException":
|
|
1245
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
1246
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1247
|
-
case "ForbiddenException":
|
|
1248
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
1249
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1250
|
-
case "InternalServerErrorException":
|
|
1251
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
1252
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1253
|
-
case "NotFoundException":
|
|
1254
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
1255
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1256
|
-
case "TooManyRequestsException":
|
|
1257
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
1258
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1259
|
-
default:
|
|
1260
|
-
const parsedBody = parsedOutput.body;
|
|
1261
|
-
return throwDefaultError({
|
|
1262
|
-
output,
|
|
1263
|
-
parsedBody,
|
|
1264
|
-
errorCode,
|
|
1265
|
-
});
|
|
1266
|
-
}
|
|
1267
|
-
};
|
|
1268
|
-
export const de_ListPresetsCommand = async (output, context) => {
|
|
1269
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1270
|
-
return de_ListPresetsCommandError(output, context);
|
|
1271
|
-
}
|
|
1272
|
-
const contents = map({
|
|
1273
|
-
$metadata: deserializeMetadata(output),
|
|
1274
|
-
});
|
|
1275
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1276
|
-
const doc = take(data, {
|
|
1277
|
-
NextToken: [, __expectString, `nextToken`],
|
|
1278
|
-
Presets: [, (_) => de___listOfPreset(_, context), `presets`],
|
|
1279
|
-
});
|
|
1280
|
-
Object.assign(contents, doc);
|
|
1281
|
-
return contents;
|
|
1282
|
-
};
|
|
1283
|
-
const de_ListPresetsCommandError = async (output, context) => {
|
|
1284
|
-
const parsedOutput = {
|
|
1285
|
-
...output,
|
|
1286
|
-
body: await parseErrorBody(output.body, context),
|
|
1287
|
-
};
|
|
1288
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1289
|
-
switch (errorCode) {
|
|
1290
|
-
case "BadRequestException":
|
|
1291
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
1292
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1293
|
-
case "ConflictException":
|
|
1294
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
1295
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1296
|
-
case "ForbiddenException":
|
|
1297
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
1298
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1299
|
-
case "InternalServerErrorException":
|
|
1300
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
1301
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1302
|
-
case "NotFoundException":
|
|
1303
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
1304
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1305
|
-
case "TooManyRequestsException":
|
|
1306
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
1307
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1308
|
-
default:
|
|
1309
|
-
const parsedBody = parsedOutput.body;
|
|
1310
|
-
return throwDefaultError({
|
|
1311
|
-
output,
|
|
1312
|
-
parsedBody,
|
|
1313
|
-
errorCode,
|
|
1314
|
-
});
|
|
608
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
609
|
+
return de_CommandError(output, context);
|
|
1315
610
|
}
|
|
611
|
+
const contents = map({
|
|
612
|
+
$metadata: deserializeMetadata(output),
|
|
613
|
+
});
|
|
614
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
615
|
+
const doc = take(data, {
|
|
616
|
+
JobTemplates: [, (_) => de___listOfJobTemplate(_, context), `jobTemplates`],
|
|
617
|
+
NextToken: [, __expectString, `nextToken`],
|
|
618
|
+
});
|
|
619
|
+
Object.assign(contents, doc);
|
|
620
|
+
return contents;
|
|
1316
621
|
};
|
|
1317
|
-
export const
|
|
622
|
+
export const de_ListPresetsCommand = async (output, context) => {
|
|
1318
623
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1319
|
-
return
|
|
624
|
+
return de_CommandError(output, context);
|
|
1320
625
|
}
|
|
1321
626
|
const contents = map({
|
|
1322
627
|
$metadata: deserializeMetadata(output),
|
|
@@ -1324,48 +629,29 @@ export const de_ListQueuesCommand = async (output, context) => {
|
|
|
1324
629
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1325
630
|
const doc = take(data, {
|
|
1326
631
|
NextToken: [, __expectString, `nextToken`],
|
|
1327
|
-
|
|
632
|
+
Presets: [, (_) => de___listOfPreset(_, context), `presets`],
|
|
1328
633
|
});
|
|
1329
634
|
Object.assign(contents, doc);
|
|
1330
635
|
return contents;
|
|
1331
636
|
};
|
|
1332
|
-
const
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
body: await parseErrorBody(output.body, context),
|
|
1336
|
-
};
|
|
1337
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1338
|
-
switch (errorCode) {
|
|
1339
|
-
case "BadRequestException":
|
|
1340
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
1341
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1342
|
-
case "ConflictException":
|
|
1343
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
1344
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1345
|
-
case "ForbiddenException":
|
|
1346
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
1347
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1348
|
-
case "InternalServerErrorException":
|
|
1349
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
1350
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1351
|
-
case "NotFoundException":
|
|
1352
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
1353
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1354
|
-
case "TooManyRequestsException":
|
|
1355
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
1356
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1357
|
-
default:
|
|
1358
|
-
const parsedBody = parsedOutput.body;
|
|
1359
|
-
return throwDefaultError({
|
|
1360
|
-
output,
|
|
1361
|
-
parsedBody,
|
|
1362
|
-
errorCode,
|
|
1363
|
-
});
|
|
637
|
+
export const de_ListQueuesCommand = async (output, context) => {
|
|
638
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
639
|
+
return de_CommandError(output, context);
|
|
1364
640
|
}
|
|
641
|
+
const contents = map({
|
|
642
|
+
$metadata: deserializeMetadata(output),
|
|
643
|
+
});
|
|
644
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
645
|
+
const doc = take(data, {
|
|
646
|
+
NextToken: [, __expectString, `nextToken`],
|
|
647
|
+
Queues: [, (_) => de___listOfQueue(_, context), `queues`],
|
|
648
|
+
});
|
|
649
|
+
Object.assign(contents, doc);
|
|
650
|
+
return contents;
|
|
1365
651
|
};
|
|
1366
652
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1367
653
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1368
|
-
return
|
|
654
|
+
return de_CommandError(output, context);
|
|
1369
655
|
}
|
|
1370
656
|
const contents = map({
|
|
1371
657
|
$metadata: deserializeMetadata(output),
|
|
@@ -1377,43 +663,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1377
663
|
Object.assign(contents, doc);
|
|
1378
664
|
return contents;
|
|
1379
665
|
};
|
|
1380
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1381
|
-
const parsedOutput = {
|
|
1382
|
-
...output,
|
|
1383
|
-
body: await parseErrorBody(output.body, context),
|
|
1384
|
-
};
|
|
1385
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1386
|
-
switch (errorCode) {
|
|
1387
|
-
case "BadRequestException":
|
|
1388
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
1389
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1390
|
-
case "ConflictException":
|
|
1391
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
1392
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1393
|
-
case "ForbiddenException":
|
|
1394
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
1395
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1396
|
-
case "InternalServerErrorException":
|
|
1397
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
1398
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1399
|
-
case "NotFoundException":
|
|
1400
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
1401
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1402
|
-
case "TooManyRequestsException":
|
|
1403
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
1404
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1405
|
-
default:
|
|
1406
|
-
const parsedBody = parsedOutput.body;
|
|
1407
|
-
return throwDefaultError({
|
|
1408
|
-
output,
|
|
1409
|
-
parsedBody,
|
|
1410
|
-
errorCode,
|
|
1411
|
-
});
|
|
1412
|
-
}
|
|
1413
|
-
};
|
|
1414
666
|
export const de_PutPolicyCommand = async (output, context) => {
|
|
1415
667
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1416
|
-
return
|
|
668
|
+
return de_CommandError(output, context);
|
|
1417
669
|
}
|
|
1418
670
|
const contents = map({
|
|
1419
671
|
$metadata: deserializeMetadata(output),
|
|
@@ -1425,43 +677,9 @@ export const de_PutPolicyCommand = async (output, context) => {
|
|
|
1425
677
|
Object.assign(contents, doc);
|
|
1426
678
|
return contents;
|
|
1427
679
|
};
|
|
1428
|
-
const de_PutPolicyCommandError = async (output, context) => {
|
|
1429
|
-
const parsedOutput = {
|
|
1430
|
-
...output,
|
|
1431
|
-
body: await parseErrorBody(output.body, context),
|
|
1432
|
-
};
|
|
1433
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1434
|
-
switch (errorCode) {
|
|
1435
|
-
case "BadRequestException":
|
|
1436
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
1437
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1438
|
-
case "ConflictException":
|
|
1439
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
1440
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1441
|
-
case "ForbiddenException":
|
|
1442
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
1443
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1444
|
-
case "InternalServerErrorException":
|
|
1445
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
1446
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1447
|
-
case "NotFoundException":
|
|
1448
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
1449
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1450
|
-
case "TooManyRequestsException":
|
|
1451
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
1452
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1453
|
-
default:
|
|
1454
|
-
const parsedBody = parsedOutput.body;
|
|
1455
|
-
return throwDefaultError({
|
|
1456
|
-
output,
|
|
1457
|
-
parsedBody,
|
|
1458
|
-
errorCode,
|
|
1459
|
-
});
|
|
1460
|
-
}
|
|
1461
|
-
};
|
|
1462
680
|
export const de_TagResourceCommand = async (output, context) => {
|
|
1463
681
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1464
|
-
return
|
|
682
|
+
return de_CommandError(output, context);
|
|
1465
683
|
}
|
|
1466
684
|
const contents = map({
|
|
1467
685
|
$metadata: deserializeMetadata(output),
|
|
@@ -1469,43 +687,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1469
687
|
await collectBody(output.body, context);
|
|
1470
688
|
return contents;
|
|
1471
689
|
};
|
|
1472
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1473
|
-
const parsedOutput = {
|
|
1474
|
-
...output,
|
|
1475
|
-
body: await parseErrorBody(output.body, context),
|
|
1476
|
-
};
|
|
1477
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1478
|
-
switch (errorCode) {
|
|
1479
|
-
case "BadRequestException":
|
|
1480
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
1481
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1482
|
-
case "ConflictException":
|
|
1483
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
1484
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1485
|
-
case "ForbiddenException":
|
|
1486
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
1487
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1488
|
-
case "InternalServerErrorException":
|
|
1489
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
1490
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1491
|
-
case "NotFoundException":
|
|
1492
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
1493
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1494
|
-
case "TooManyRequestsException":
|
|
1495
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
1496
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1497
|
-
default:
|
|
1498
|
-
const parsedBody = parsedOutput.body;
|
|
1499
|
-
return throwDefaultError({
|
|
1500
|
-
output,
|
|
1501
|
-
parsedBody,
|
|
1502
|
-
errorCode,
|
|
1503
|
-
});
|
|
1504
|
-
}
|
|
1505
|
-
};
|
|
1506
690
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
1507
691
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1508
|
-
return
|
|
692
|
+
return de_CommandError(output, context);
|
|
1509
693
|
}
|
|
1510
694
|
const contents = map({
|
|
1511
695
|
$metadata: deserializeMetadata(output),
|
|
@@ -1513,43 +697,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1513
697
|
await collectBody(output.body, context);
|
|
1514
698
|
return contents;
|
|
1515
699
|
};
|
|
1516
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1517
|
-
const parsedOutput = {
|
|
1518
|
-
...output,
|
|
1519
|
-
body: await parseErrorBody(output.body, context),
|
|
1520
|
-
};
|
|
1521
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1522
|
-
switch (errorCode) {
|
|
1523
|
-
case "BadRequestException":
|
|
1524
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
1525
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1526
|
-
case "ConflictException":
|
|
1527
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
1528
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1529
|
-
case "ForbiddenException":
|
|
1530
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
1531
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1532
|
-
case "InternalServerErrorException":
|
|
1533
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
1534
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1535
|
-
case "NotFoundException":
|
|
1536
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
1537
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1538
|
-
case "TooManyRequestsException":
|
|
1539
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
1540
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1541
|
-
default:
|
|
1542
|
-
const parsedBody = parsedOutput.body;
|
|
1543
|
-
return throwDefaultError({
|
|
1544
|
-
output,
|
|
1545
|
-
parsedBody,
|
|
1546
|
-
errorCode,
|
|
1547
|
-
});
|
|
1548
|
-
}
|
|
1549
|
-
};
|
|
1550
700
|
export const de_UpdateJobTemplateCommand = async (output, context) => {
|
|
1551
701
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1552
|
-
return
|
|
702
|
+
return de_CommandError(output, context);
|
|
1553
703
|
}
|
|
1554
704
|
const contents = map({
|
|
1555
705
|
$metadata: deserializeMetadata(output),
|
|
@@ -1561,43 +711,9 @@ export const de_UpdateJobTemplateCommand = async (output, context) => {
|
|
|
1561
711
|
Object.assign(contents, doc);
|
|
1562
712
|
return contents;
|
|
1563
713
|
};
|
|
1564
|
-
const de_UpdateJobTemplateCommandError = async (output, context) => {
|
|
1565
|
-
const parsedOutput = {
|
|
1566
|
-
...output,
|
|
1567
|
-
body: await parseErrorBody(output.body, context),
|
|
1568
|
-
};
|
|
1569
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1570
|
-
switch (errorCode) {
|
|
1571
|
-
case "BadRequestException":
|
|
1572
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
1573
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1574
|
-
case "ConflictException":
|
|
1575
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
1576
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1577
|
-
case "ForbiddenException":
|
|
1578
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
1579
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1580
|
-
case "InternalServerErrorException":
|
|
1581
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
1582
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1583
|
-
case "NotFoundException":
|
|
1584
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
1585
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1586
|
-
case "TooManyRequestsException":
|
|
1587
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
1588
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1589
|
-
default:
|
|
1590
|
-
const parsedBody = parsedOutput.body;
|
|
1591
|
-
return throwDefaultError({
|
|
1592
|
-
output,
|
|
1593
|
-
parsedBody,
|
|
1594
|
-
errorCode,
|
|
1595
|
-
});
|
|
1596
|
-
}
|
|
1597
|
-
};
|
|
1598
714
|
export const de_UpdatePresetCommand = async (output, context) => {
|
|
1599
715
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1600
|
-
return
|
|
716
|
+
return de_CommandError(output, context);
|
|
1601
717
|
}
|
|
1602
718
|
const contents = map({
|
|
1603
719
|
$metadata: deserializeMetadata(output),
|
|
@@ -1609,43 +725,9 @@ export const de_UpdatePresetCommand = async (output, context) => {
|
|
|
1609
725
|
Object.assign(contents, doc);
|
|
1610
726
|
return contents;
|
|
1611
727
|
};
|
|
1612
|
-
const de_UpdatePresetCommandError = async (output, context) => {
|
|
1613
|
-
const parsedOutput = {
|
|
1614
|
-
...output,
|
|
1615
|
-
body: await parseErrorBody(output.body, context),
|
|
1616
|
-
};
|
|
1617
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1618
|
-
switch (errorCode) {
|
|
1619
|
-
case "BadRequestException":
|
|
1620
|
-
case "com.amazonaws.mediaconvert#BadRequestException":
|
|
1621
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1622
|
-
case "ConflictException":
|
|
1623
|
-
case "com.amazonaws.mediaconvert#ConflictException":
|
|
1624
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1625
|
-
case "ForbiddenException":
|
|
1626
|
-
case "com.amazonaws.mediaconvert#ForbiddenException":
|
|
1627
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1628
|
-
case "InternalServerErrorException":
|
|
1629
|
-
case "com.amazonaws.mediaconvert#InternalServerErrorException":
|
|
1630
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1631
|
-
case "NotFoundException":
|
|
1632
|
-
case "com.amazonaws.mediaconvert#NotFoundException":
|
|
1633
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1634
|
-
case "TooManyRequestsException":
|
|
1635
|
-
case "com.amazonaws.mediaconvert#TooManyRequestsException":
|
|
1636
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1637
|
-
default:
|
|
1638
|
-
const parsedBody = parsedOutput.body;
|
|
1639
|
-
return throwDefaultError({
|
|
1640
|
-
output,
|
|
1641
|
-
parsedBody,
|
|
1642
|
-
errorCode,
|
|
1643
|
-
});
|
|
1644
|
-
}
|
|
1645
|
-
};
|
|
1646
728
|
export const de_UpdateQueueCommand = async (output, context) => {
|
|
1647
729
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1648
|
-
return
|
|
730
|
+
return de_CommandError(output, context);
|
|
1649
731
|
}
|
|
1650
732
|
const contents = map({
|
|
1651
733
|
$metadata: deserializeMetadata(output),
|
|
@@ -1657,7 +739,7 @@ export const de_UpdateQueueCommand = async (output, context) => {
|
|
|
1657
739
|
Object.assign(contents, doc);
|
|
1658
740
|
return contents;
|
|
1659
741
|
};
|
|
1660
|
-
const
|
|
742
|
+
const de_CommandError = async (output, context) => {
|
|
1661
743
|
const parsedOutput = {
|
|
1662
744
|
...output,
|
|
1663
745
|
body: await parseErrorBody(output.body, context),
|