@aws-sdk/client-chime-sdk-media-pipelines 3.504.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 +61 -1207
- package/dist-es/protocols/Aws_restJson1.js +54 -1200
- package/package.json +3 -3
|
@@ -418,7 +418,7 @@ export const se_UpdateMediaPipelineKinesisVideoStreamPoolCommand = async (input,
|
|
|
418
418
|
};
|
|
419
419
|
export const de_CreateMediaCapturePipelineCommand = async (output, context) => {
|
|
420
420
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
421
|
-
return
|
|
421
|
+
return de_CommandError(output, context);
|
|
422
422
|
}
|
|
423
423
|
const contents = map({
|
|
424
424
|
$metadata: deserializeMetadata(output),
|
|
@@ -430,46 +430,9 @@ export const de_CreateMediaCapturePipelineCommand = async (output, context) => {
|
|
|
430
430
|
Object.assign(contents, doc);
|
|
431
431
|
return contents;
|
|
432
432
|
};
|
|
433
|
-
const de_CreateMediaCapturePipelineCommandError = async (output, context) => {
|
|
434
|
-
const parsedOutput = {
|
|
435
|
-
...output,
|
|
436
|
-
body: await parseErrorBody(output.body, context),
|
|
437
|
-
};
|
|
438
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
439
|
-
switch (errorCode) {
|
|
440
|
-
case "BadRequestException":
|
|
441
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
442
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
443
|
-
case "ForbiddenException":
|
|
444
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
445
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
446
|
-
case "ResourceLimitExceededException":
|
|
447
|
-
case "com.amazonaws.chimesdkmediapipelines#ResourceLimitExceededException":
|
|
448
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
449
|
-
case "ServiceFailureException":
|
|
450
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
451
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
452
|
-
case "ServiceUnavailableException":
|
|
453
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
454
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
455
|
-
case "ThrottledClientException":
|
|
456
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
457
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
458
|
-
case "UnauthorizedClientException":
|
|
459
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
460
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
461
|
-
default:
|
|
462
|
-
const parsedBody = parsedOutput.body;
|
|
463
|
-
return throwDefaultError({
|
|
464
|
-
output,
|
|
465
|
-
parsedBody,
|
|
466
|
-
errorCode,
|
|
467
|
-
});
|
|
468
|
-
}
|
|
469
|
-
};
|
|
470
433
|
export const de_CreateMediaConcatenationPipelineCommand = async (output, context) => {
|
|
471
434
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
472
|
-
return
|
|
435
|
+
return de_CommandError(output, context);
|
|
473
436
|
}
|
|
474
437
|
const contents = map({
|
|
475
438
|
$metadata: deserializeMetadata(output),
|
|
@@ -481,46 +444,9 @@ export const de_CreateMediaConcatenationPipelineCommand = async (output, context
|
|
|
481
444
|
Object.assign(contents, doc);
|
|
482
445
|
return contents;
|
|
483
446
|
};
|
|
484
|
-
const de_CreateMediaConcatenationPipelineCommandError = async (output, context) => {
|
|
485
|
-
const parsedOutput = {
|
|
486
|
-
...output,
|
|
487
|
-
body: await parseErrorBody(output.body, context),
|
|
488
|
-
};
|
|
489
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
490
|
-
switch (errorCode) {
|
|
491
|
-
case "BadRequestException":
|
|
492
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
493
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
494
|
-
case "ForbiddenException":
|
|
495
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
496
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
497
|
-
case "ResourceLimitExceededException":
|
|
498
|
-
case "com.amazonaws.chimesdkmediapipelines#ResourceLimitExceededException":
|
|
499
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
500
|
-
case "ServiceFailureException":
|
|
501
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
502
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
503
|
-
case "ServiceUnavailableException":
|
|
504
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
505
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
506
|
-
case "ThrottledClientException":
|
|
507
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
508
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
509
|
-
case "UnauthorizedClientException":
|
|
510
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
511
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
512
|
-
default:
|
|
513
|
-
const parsedBody = parsedOutput.body;
|
|
514
|
-
return throwDefaultError({
|
|
515
|
-
output,
|
|
516
|
-
parsedBody,
|
|
517
|
-
errorCode,
|
|
518
|
-
});
|
|
519
|
-
}
|
|
520
|
-
};
|
|
521
447
|
export const de_CreateMediaInsightsPipelineCommand = async (output, context) => {
|
|
522
448
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
523
|
-
return
|
|
449
|
+
return de_CommandError(output, context);
|
|
524
450
|
}
|
|
525
451
|
const contents = map({
|
|
526
452
|
$metadata: deserializeMetadata(output),
|
|
@@ -532,49 +458,9 @@ export const de_CreateMediaInsightsPipelineCommand = async (output, context) =>
|
|
|
532
458
|
Object.assign(contents, doc);
|
|
533
459
|
return contents;
|
|
534
460
|
};
|
|
535
|
-
const de_CreateMediaInsightsPipelineCommandError = async (output, context) => {
|
|
536
|
-
const parsedOutput = {
|
|
537
|
-
...output,
|
|
538
|
-
body: await parseErrorBody(output.body, context),
|
|
539
|
-
};
|
|
540
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
541
|
-
switch (errorCode) {
|
|
542
|
-
case "BadRequestException":
|
|
543
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
544
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
545
|
-
case "ForbiddenException":
|
|
546
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
547
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
548
|
-
case "NotFoundException":
|
|
549
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
550
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
551
|
-
case "ResourceLimitExceededException":
|
|
552
|
-
case "com.amazonaws.chimesdkmediapipelines#ResourceLimitExceededException":
|
|
553
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
554
|
-
case "ServiceFailureException":
|
|
555
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
556
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
557
|
-
case "ServiceUnavailableException":
|
|
558
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
559
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
560
|
-
case "ThrottledClientException":
|
|
561
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
562
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
563
|
-
case "UnauthorizedClientException":
|
|
564
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
565
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
566
|
-
default:
|
|
567
|
-
const parsedBody = parsedOutput.body;
|
|
568
|
-
return throwDefaultError({
|
|
569
|
-
output,
|
|
570
|
-
parsedBody,
|
|
571
|
-
errorCode,
|
|
572
|
-
});
|
|
573
|
-
}
|
|
574
|
-
};
|
|
575
461
|
export const de_CreateMediaInsightsPipelineConfigurationCommand = async (output, context) => {
|
|
576
462
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
577
|
-
return
|
|
463
|
+
return de_CommandError(output, context);
|
|
578
464
|
}
|
|
579
465
|
const contents = map({
|
|
580
466
|
$metadata: deserializeMetadata(output),
|
|
@@ -586,49 +472,9 @@ export const de_CreateMediaInsightsPipelineConfigurationCommand = async (output,
|
|
|
586
472
|
Object.assign(contents, doc);
|
|
587
473
|
return contents;
|
|
588
474
|
};
|
|
589
|
-
const de_CreateMediaInsightsPipelineConfigurationCommandError = async (output, context) => {
|
|
590
|
-
const parsedOutput = {
|
|
591
|
-
...output,
|
|
592
|
-
body: await parseErrorBody(output.body, context),
|
|
593
|
-
};
|
|
594
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
595
|
-
switch (errorCode) {
|
|
596
|
-
case "BadRequestException":
|
|
597
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
598
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
599
|
-
case "ForbiddenException":
|
|
600
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
601
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
602
|
-
case "NotFoundException":
|
|
603
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
604
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
605
|
-
case "ResourceLimitExceededException":
|
|
606
|
-
case "com.amazonaws.chimesdkmediapipelines#ResourceLimitExceededException":
|
|
607
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
608
|
-
case "ServiceFailureException":
|
|
609
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
610
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
611
|
-
case "ServiceUnavailableException":
|
|
612
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
613
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
614
|
-
case "ThrottledClientException":
|
|
615
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
616
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
617
|
-
case "UnauthorizedClientException":
|
|
618
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
619
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
620
|
-
default:
|
|
621
|
-
const parsedBody = parsedOutput.body;
|
|
622
|
-
return throwDefaultError({
|
|
623
|
-
output,
|
|
624
|
-
parsedBody,
|
|
625
|
-
errorCode,
|
|
626
|
-
});
|
|
627
|
-
}
|
|
628
|
-
};
|
|
629
475
|
export const de_CreateMediaLiveConnectorPipelineCommand = async (output, context) => {
|
|
630
476
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
631
|
-
return
|
|
477
|
+
return de_CommandError(output, context);
|
|
632
478
|
}
|
|
633
479
|
const contents = map({
|
|
634
480
|
$metadata: deserializeMetadata(output),
|
|
@@ -640,46 +486,9 @@ export const de_CreateMediaLiveConnectorPipelineCommand = async (output, context
|
|
|
640
486
|
Object.assign(contents, doc);
|
|
641
487
|
return contents;
|
|
642
488
|
};
|
|
643
|
-
const de_CreateMediaLiveConnectorPipelineCommandError = async (output, context) => {
|
|
644
|
-
const parsedOutput = {
|
|
645
|
-
...output,
|
|
646
|
-
body: await parseErrorBody(output.body, context),
|
|
647
|
-
};
|
|
648
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
649
|
-
switch (errorCode) {
|
|
650
|
-
case "BadRequestException":
|
|
651
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
652
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
653
|
-
case "ForbiddenException":
|
|
654
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
655
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
656
|
-
case "ResourceLimitExceededException":
|
|
657
|
-
case "com.amazonaws.chimesdkmediapipelines#ResourceLimitExceededException":
|
|
658
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
659
|
-
case "ServiceFailureException":
|
|
660
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
661
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
662
|
-
case "ServiceUnavailableException":
|
|
663
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
664
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
665
|
-
case "ThrottledClientException":
|
|
666
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
667
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
668
|
-
case "UnauthorizedClientException":
|
|
669
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
670
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
671
|
-
default:
|
|
672
|
-
const parsedBody = parsedOutput.body;
|
|
673
|
-
return throwDefaultError({
|
|
674
|
-
output,
|
|
675
|
-
parsedBody,
|
|
676
|
-
errorCode,
|
|
677
|
-
});
|
|
678
|
-
}
|
|
679
|
-
};
|
|
680
489
|
export const de_CreateMediaPipelineKinesisVideoStreamPoolCommand = async (output, context) => {
|
|
681
490
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
682
|
-
return
|
|
491
|
+
return de_CommandError(output, context);
|
|
683
492
|
}
|
|
684
493
|
const contents = map({
|
|
685
494
|
$metadata: deserializeMetadata(output),
|
|
@@ -691,49 +500,9 @@ export const de_CreateMediaPipelineKinesisVideoStreamPoolCommand = async (output
|
|
|
691
500
|
Object.assign(contents, doc);
|
|
692
501
|
return contents;
|
|
693
502
|
};
|
|
694
|
-
const de_CreateMediaPipelineKinesisVideoStreamPoolCommandError = async (output, context) => {
|
|
695
|
-
const parsedOutput = {
|
|
696
|
-
...output,
|
|
697
|
-
body: await parseErrorBody(output.body, context),
|
|
698
|
-
};
|
|
699
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
700
|
-
switch (errorCode) {
|
|
701
|
-
case "BadRequestException":
|
|
702
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
703
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
704
|
-
case "ConflictException":
|
|
705
|
-
case "com.amazonaws.chimesdkmediapipelines#ConflictException":
|
|
706
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
707
|
-
case "ForbiddenException":
|
|
708
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
709
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
710
|
-
case "ResourceLimitExceededException":
|
|
711
|
-
case "com.amazonaws.chimesdkmediapipelines#ResourceLimitExceededException":
|
|
712
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
713
|
-
case "ServiceFailureException":
|
|
714
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
715
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
716
|
-
case "ServiceUnavailableException":
|
|
717
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
718
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
719
|
-
case "ThrottledClientException":
|
|
720
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
721
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
722
|
-
case "UnauthorizedClientException":
|
|
723
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
724
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
725
|
-
default:
|
|
726
|
-
const parsedBody = parsedOutput.body;
|
|
727
|
-
return throwDefaultError({
|
|
728
|
-
output,
|
|
729
|
-
parsedBody,
|
|
730
|
-
errorCode,
|
|
731
|
-
});
|
|
732
|
-
}
|
|
733
|
-
};
|
|
734
503
|
export const de_CreateMediaStreamPipelineCommand = async (output, context) => {
|
|
735
504
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
736
|
-
return
|
|
505
|
+
return de_CommandError(output, context);
|
|
737
506
|
}
|
|
738
507
|
const contents = map({
|
|
739
508
|
$metadata: deserializeMetadata(output),
|
|
@@ -745,49 +514,9 @@ export const de_CreateMediaStreamPipelineCommand = async (output, context) => {
|
|
|
745
514
|
Object.assign(contents, doc);
|
|
746
515
|
return contents;
|
|
747
516
|
};
|
|
748
|
-
const de_CreateMediaStreamPipelineCommandError = async (output, context) => {
|
|
749
|
-
const parsedOutput = {
|
|
750
|
-
...output,
|
|
751
|
-
body: await parseErrorBody(output.body, context),
|
|
752
|
-
};
|
|
753
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
754
|
-
switch (errorCode) {
|
|
755
|
-
case "BadRequestException":
|
|
756
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
757
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
758
|
-
case "ForbiddenException":
|
|
759
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
760
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
761
|
-
case "NotFoundException":
|
|
762
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
763
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
764
|
-
case "ResourceLimitExceededException":
|
|
765
|
-
case "com.amazonaws.chimesdkmediapipelines#ResourceLimitExceededException":
|
|
766
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
767
|
-
case "ServiceFailureException":
|
|
768
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
769
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
770
|
-
case "ServiceUnavailableException":
|
|
771
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
772
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
773
|
-
case "ThrottledClientException":
|
|
774
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
775
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
776
|
-
case "UnauthorizedClientException":
|
|
777
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
778
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
779
|
-
default:
|
|
780
|
-
const parsedBody = parsedOutput.body;
|
|
781
|
-
return throwDefaultError({
|
|
782
|
-
output,
|
|
783
|
-
parsedBody,
|
|
784
|
-
errorCode,
|
|
785
|
-
});
|
|
786
|
-
}
|
|
787
|
-
};
|
|
788
517
|
export const de_DeleteMediaCapturePipelineCommand = async (output, context) => {
|
|
789
518
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
790
|
-
return
|
|
519
|
+
return de_CommandError(output, context);
|
|
791
520
|
}
|
|
792
521
|
const contents = map({
|
|
793
522
|
$metadata: deserializeMetadata(output),
|
|
@@ -795,46 +524,9 @@ export const de_DeleteMediaCapturePipelineCommand = async (output, context) => {
|
|
|
795
524
|
await collectBody(output.body, context);
|
|
796
525
|
return contents;
|
|
797
526
|
};
|
|
798
|
-
const de_DeleteMediaCapturePipelineCommandError = async (output, context) => {
|
|
799
|
-
const parsedOutput = {
|
|
800
|
-
...output,
|
|
801
|
-
body: await parseErrorBody(output.body, context),
|
|
802
|
-
};
|
|
803
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
804
|
-
switch (errorCode) {
|
|
805
|
-
case "BadRequestException":
|
|
806
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
807
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
808
|
-
case "ForbiddenException":
|
|
809
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
810
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
811
|
-
case "NotFoundException":
|
|
812
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
813
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
814
|
-
case "ServiceFailureException":
|
|
815
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
816
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
817
|
-
case "ServiceUnavailableException":
|
|
818
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
819
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
820
|
-
case "ThrottledClientException":
|
|
821
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
822
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
823
|
-
case "UnauthorizedClientException":
|
|
824
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
825
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
826
|
-
default:
|
|
827
|
-
const parsedBody = parsedOutput.body;
|
|
828
|
-
return throwDefaultError({
|
|
829
|
-
output,
|
|
830
|
-
parsedBody,
|
|
831
|
-
errorCode,
|
|
832
|
-
});
|
|
833
|
-
}
|
|
834
|
-
};
|
|
835
527
|
export const de_DeleteMediaInsightsPipelineConfigurationCommand = async (output, context) => {
|
|
836
528
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
837
|
-
return
|
|
529
|
+
return de_CommandError(output, context);
|
|
838
530
|
}
|
|
839
531
|
const contents = map({
|
|
840
532
|
$metadata: deserializeMetadata(output),
|
|
@@ -842,49 +534,9 @@ export const de_DeleteMediaInsightsPipelineConfigurationCommand = async (output,
|
|
|
842
534
|
await collectBody(output.body, context);
|
|
843
535
|
return contents;
|
|
844
536
|
};
|
|
845
|
-
const de_DeleteMediaInsightsPipelineConfigurationCommandError = async (output, context) => {
|
|
846
|
-
const parsedOutput = {
|
|
847
|
-
...output,
|
|
848
|
-
body: await parseErrorBody(output.body, context),
|
|
849
|
-
};
|
|
850
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
851
|
-
switch (errorCode) {
|
|
852
|
-
case "BadRequestException":
|
|
853
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
854
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
855
|
-
case "ConflictException":
|
|
856
|
-
case "com.amazonaws.chimesdkmediapipelines#ConflictException":
|
|
857
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
858
|
-
case "ForbiddenException":
|
|
859
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
860
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
861
|
-
case "NotFoundException":
|
|
862
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
863
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
864
|
-
case "ServiceFailureException":
|
|
865
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
866
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
867
|
-
case "ServiceUnavailableException":
|
|
868
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
869
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
870
|
-
case "ThrottledClientException":
|
|
871
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
872
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
873
|
-
case "UnauthorizedClientException":
|
|
874
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
875
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
876
|
-
default:
|
|
877
|
-
const parsedBody = parsedOutput.body;
|
|
878
|
-
return throwDefaultError({
|
|
879
|
-
output,
|
|
880
|
-
parsedBody,
|
|
881
|
-
errorCode,
|
|
882
|
-
});
|
|
883
|
-
}
|
|
884
|
-
};
|
|
885
537
|
export const de_DeleteMediaPipelineCommand = async (output, context) => {
|
|
886
538
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
887
|
-
return
|
|
539
|
+
return de_CommandError(output, context);
|
|
888
540
|
}
|
|
889
541
|
const contents = map({
|
|
890
542
|
$metadata: deserializeMetadata(output),
|
|
@@ -892,49 +544,9 @@ export const de_DeleteMediaPipelineCommand = async (output, context) => {
|
|
|
892
544
|
await collectBody(output.body, context);
|
|
893
545
|
return contents;
|
|
894
546
|
};
|
|
895
|
-
const de_DeleteMediaPipelineCommandError = async (output, context) => {
|
|
896
|
-
const parsedOutput = {
|
|
897
|
-
...output,
|
|
898
|
-
body: await parseErrorBody(output.body, context),
|
|
899
|
-
};
|
|
900
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
901
|
-
switch (errorCode) {
|
|
902
|
-
case "BadRequestException":
|
|
903
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
904
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
905
|
-
case "ConflictException":
|
|
906
|
-
case "com.amazonaws.chimesdkmediapipelines#ConflictException":
|
|
907
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
908
|
-
case "ForbiddenException":
|
|
909
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
910
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
911
|
-
case "NotFoundException":
|
|
912
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
913
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
914
|
-
case "ServiceFailureException":
|
|
915
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
916
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
917
|
-
case "ServiceUnavailableException":
|
|
918
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
919
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
920
|
-
case "ThrottledClientException":
|
|
921
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
922
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
923
|
-
case "UnauthorizedClientException":
|
|
924
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
925
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
926
|
-
default:
|
|
927
|
-
const parsedBody = parsedOutput.body;
|
|
928
|
-
return throwDefaultError({
|
|
929
|
-
output,
|
|
930
|
-
parsedBody,
|
|
931
|
-
errorCode,
|
|
932
|
-
});
|
|
933
|
-
}
|
|
934
|
-
};
|
|
935
547
|
export const de_DeleteMediaPipelineKinesisVideoStreamPoolCommand = async (output, context) => {
|
|
936
548
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
937
|
-
return
|
|
549
|
+
return de_CommandError(output, context);
|
|
938
550
|
}
|
|
939
551
|
const contents = map({
|
|
940
552
|
$metadata: deserializeMetadata(output),
|
|
@@ -942,49 +554,9 @@ export const de_DeleteMediaPipelineKinesisVideoStreamPoolCommand = async (output
|
|
|
942
554
|
await collectBody(output.body, context);
|
|
943
555
|
return contents;
|
|
944
556
|
};
|
|
945
|
-
const de_DeleteMediaPipelineKinesisVideoStreamPoolCommandError = 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 "BadRequestException":
|
|
953
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
954
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
955
|
-
case "ConflictException":
|
|
956
|
-
case "com.amazonaws.chimesdkmediapipelines#ConflictException":
|
|
957
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
958
|
-
case "ForbiddenException":
|
|
959
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
960
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
961
|
-
case "NotFoundException":
|
|
962
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
963
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
964
|
-
case "ServiceFailureException":
|
|
965
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
966
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
967
|
-
case "ServiceUnavailableException":
|
|
968
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
969
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
970
|
-
case "ThrottledClientException":
|
|
971
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
972
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
973
|
-
case "UnauthorizedClientException":
|
|
974
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
975
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
976
|
-
default:
|
|
977
|
-
const parsedBody = parsedOutput.body;
|
|
978
|
-
return throwDefaultError({
|
|
979
|
-
output,
|
|
980
|
-
parsedBody,
|
|
981
|
-
errorCode,
|
|
982
|
-
});
|
|
983
|
-
}
|
|
984
|
-
};
|
|
985
557
|
export const de_GetMediaCapturePipelineCommand = async (output, context) => {
|
|
986
558
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
987
|
-
return
|
|
559
|
+
return de_CommandError(output, context);
|
|
988
560
|
}
|
|
989
561
|
const contents = map({
|
|
990
562
|
$metadata: deserializeMetadata(output),
|
|
@@ -996,46 +568,9 @@ export const de_GetMediaCapturePipelineCommand = async (output, context) => {
|
|
|
996
568
|
Object.assign(contents, doc);
|
|
997
569
|
return contents;
|
|
998
570
|
};
|
|
999
|
-
const de_GetMediaCapturePipelineCommandError = async (output, context) => {
|
|
1000
|
-
const parsedOutput = {
|
|
1001
|
-
...output,
|
|
1002
|
-
body: await parseErrorBody(output.body, context),
|
|
1003
|
-
};
|
|
1004
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1005
|
-
switch (errorCode) {
|
|
1006
|
-
case "BadRequestException":
|
|
1007
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1008
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1009
|
-
case "ForbiddenException":
|
|
1010
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1011
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1012
|
-
case "NotFoundException":
|
|
1013
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
1014
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1015
|
-
case "ServiceFailureException":
|
|
1016
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1017
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1018
|
-
case "ServiceUnavailableException":
|
|
1019
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1020
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1021
|
-
case "ThrottledClientException":
|
|
1022
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1023
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1024
|
-
case "UnauthorizedClientException":
|
|
1025
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1026
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1027
|
-
default:
|
|
1028
|
-
const parsedBody = parsedOutput.body;
|
|
1029
|
-
return throwDefaultError({
|
|
1030
|
-
output,
|
|
1031
|
-
parsedBody,
|
|
1032
|
-
errorCode,
|
|
1033
|
-
});
|
|
1034
|
-
}
|
|
1035
|
-
};
|
|
1036
571
|
export const de_GetMediaInsightsPipelineConfigurationCommand = async (output, context) => {
|
|
1037
572
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1038
|
-
return
|
|
573
|
+
return de_CommandError(output, context);
|
|
1039
574
|
}
|
|
1040
575
|
const contents = map({
|
|
1041
576
|
$metadata: deserializeMetadata(output),
|
|
@@ -1047,46 +582,9 @@ export const de_GetMediaInsightsPipelineConfigurationCommand = async (output, co
|
|
|
1047
582
|
Object.assign(contents, doc);
|
|
1048
583
|
return contents;
|
|
1049
584
|
};
|
|
1050
|
-
const de_GetMediaInsightsPipelineConfigurationCommandError = async (output, context) => {
|
|
1051
|
-
const parsedOutput = {
|
|
1052
|
-
...output,
|
|
1053
|
-
body: await parseErrorBody(output.body, context),
|
|
1054
|
-
};
|
|
1055
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1056
|
-
switch (errorCode) {
|
|
1057
|
-
case "BadRequestException":
|
|
1058
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1059
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1060
|
-
case "ForbiddenException":
|
|
1061
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1062
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1063
|
-
case "NotFoundException":
|
|
1064
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
1065
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1066
|
-
case "ServiceFailureException":
|
|
1067
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1068
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1069
|
-
case "ServiceUnavailableException":
|
|
1070
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1071
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1072
|
-
case "ThrottledClientException":
|
|
1073
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1074
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1075
|
-
case "UnauthorizedClientException":
|
|
1076
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1077
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1078
|
-
default:
|
|
1079
|
-
const parsedBody = parsedOutput.body;
|
|
1080
|
-
return throwDefaultError({
|
|
1081
|
-
output,
|
|
1082
|
-
parsedBody,
|
|
1083
|
-
errorCode,
|
|
1084
|
-
});
|
|
1085
|
-
}
|
|
1086
|
-
};
|
|
1087
585
|
export const de_GetMediaPipelineCommand = async (output, context) => {
|
|
1088
586
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1089
|
-
return
|
|
587
|
+
return de_CommandError(output, context);
|
|
1090
588
|
}
|
|
1091
589
|
const contents = map({
|
|
1092
590
|
$metadata: deserializeMetadata(output),
|
|
@@ -1098,46 +596,9 @@ export const de_GetMediaPipelineCommand = async (output, context) => {
|
|
|
1098
596
|
Object.assign(contents, doc);
|
|
1099
597
|
return contents;
|
|
1100
598
|
};
|
|
1101
|
-
const de_GetMediaPipelineCommandError = 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 "BadRequestException":
|
|
1109
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1110
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1111
|
-
case "ForbiddenException":
|
|
1112
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1113
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1114
|
-
case "NotFoundException":
|
|
1115
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
1116
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1117
|
-
case "ServiceFailureException":
|
|
1118
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1119
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1120
|
-
case "ServiceUnavailableException":
|
|
1121
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1122
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1123
|
-
case "ThrottledClientException":
|
|
1124
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1125
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1126
|
-
case "UnauthorizedClientException":
|
|
1127
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1128
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1129
|
-
default:
|
|
1130
|
-
const parsedBody = parsedOutput.body;
|
|
1131
|
-
return throwDefaultError({
|
|
1132
|
-
output,
|
|
1133
|
-
parsedBody,
|
|
1134
|
-
errorCode,
|
|
1135
|
-
});
|
|
1136
|
-
}
|
|
1137
|
-
};
|
|
1138
599
|
export const de_GetMediaPipelineKinesisVideoStreamPoolCommand = async (output, context) => {
|
|
1139
600
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1140
|
-
return
|
|
601
|
+
return de_CommandError(output, context);
|
|
1141
602
|
}
|
|
1142
603
|
const contents = map({
|
|
1143
604
|
$metadata: deserializeMetadata(output),
|
|
@@ -1149,46 +610,9 @@ export const de_GetMediaPipelineKinesisVideoStreamPoolCommand = async (output, c
|
|
|
1149
610
|
Object.assign(contents, doc);
|
|
1150
611
|
return contents;
|
|
1151
612
|
};
|
|
1152
|
-
const de_GetMediaPipelineKinesisVideoStreamPoolCommandError = async (output, context) => {
|
|
1153
|
-
const parsedOutput = {
|
|
1154
|
-
...output,
|
|
1155
|
-
body: await parseErrorBody(output.body, context),
|
|
1156
|
-
};
|
|
1157
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1158
|
-
switch (errorCode) {
|
|
1159
|
-
case "BadRequestException":
|
|
1160
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1161
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1162
|
-
case "ForbiddenException":
|
|
1163
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1164
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1165
|
-
case "NotFoundException":
|
|
1166
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
1167
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1168
|
-
case "ServiceFailureException":
|
|
1169
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1170
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1171
|
-
case "ServiceUnavailableException":
|
|
1172
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1173
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1174
|
-
case "ThrottledClientException":
|
|
1175
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1176
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1177
|
-
case "UnauthorizedClientException":
|
|
1178
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1179
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1180
|
-
default:
|
|
1181
|
-
const parsedBody = parsedOutput.body;
|
|
1182
|
-
return throwDefaultError({
|
|
1183
|
-
output,
|
|
1184
|
-
parsedBody,
|
|
1185
|
-
errorCode,
|
|
1186
|
-
});
|
|
1187
|
-
}
|
|
1188
|
-
};
|
|
1189
613
|
export const de_GetSpeakerSearchTaskCommand = async (output, context) => {
|
|
1190
614
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1191
|
-
return
|
|
615
|
+
return de_CommandError(output, context);
|
|
1192
616
|
}
|
|
1193
617
|
const contents = map({
|
|
1194
618
|
$metadata: deserializeMetadata(output),
|
|
@@ -1200,46 +624,9 @@ export const de_GetSpeakerSearchTaskCommand = async (output, context) => {
|
|
|
1200
624
|
Object.assign(contents, doc);
|
|
1201
625
|
return contents;
|
|
1202
626
|
};
|
|
1203
|
-
const de_GetSpeakerSearchTaskCommandError = async (output, context) => {
|
|
1204
|
-
const parsedOutput = {
|
|
1205
|
-
...output,
|
|
1206
|
-
body: await parseErrorBody(output.body, context),
|
|
1207
|
-
};
|
|
1208
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1209
|
-
switch (errorCode) {
|
|
1210
|
-
case "BadRequestException":
|
|
1211
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1212
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1213
|
-
case "ForbiddenException":
|
|
1214
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1215
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1216
|
-
case "NotFoundException":
|
|
1217
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
1218
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1219
|
-
case "ServiceFailureException":
|
|
1220
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1221
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1222
|
-
case "ServiceUnavailableException":
|
|
1223
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1224
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1225
|
-
case "ThrottledClientException":
|
|
1226
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1227
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1228
|
-
case "UnauthorizedClientException":
|
|
1229
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1230
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1231
|
-
default:
|
|
1232
|
-
const parsedBody = parsedOutput.body;
|
|
1233
|
-
return throwDefaultError({
|
|
1234
|
-
output,
|
|
1235
|
-
parsedBody,
|
|
1236
|
-
errorCode,
|
|
1237
|
-
});
|
|
1238
|
-
}
|
|
1239
|
-
};
|
|
1240
627
|
export const de_GetVoiceToneAnalysisTaskCommand = async (output, context) => {
|
|
1241
628
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1242
|
-
return
|
|
629
|
+
return de_CommandError(output, context);
|
|
1243
630
|
}
|
|
1244
631
|
const contents = map({
|
|
1245
632
|
$metadata: deserializeMetadata(output),
|
|
@@ -1251,46 +638,9 @@ export const de_GetVoiceToneAnalysisTaskCommand = async (output, context) => {
|
|
|
1251
638
|
Object.assign(contents, doc);
|
|
1252
639
|
return contents;
|
|
1253
640
|
};
|
|
1254
|
-
const de_GetVoiceToneAnalysisTaskCommandError = async (output, context) => {
|
|
1255
|
-
const parsedOutput = {
|
|
1256
|
-
...output,
|
|
1257
|
-
body: await parseErrorBody(output.body, context),
|
|
1258
|
-
};
|
|
1259
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1260
|
-
switch (errorCode) {
|
|
1261
|
-
case "BadRequestException":
|
|
1262
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1263
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1264
|
-
case "ForbiddenException":
|
|
1265
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1266
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1267
|
-
case "NotFoundException":
|
|
1268
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
1269
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1270
|
-
case "ServiceFailureException":
|
|
1271
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1272
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1273
|
-
case "ServiceUnavailableException":
|
|
1274
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1275
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1276
|
-
case "ThrottledClientException":
|
|
1277
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1278
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1279
|
-
case "UnauthorizedClientException":
|
|
1280
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1281
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1282
|
-
default:
|
|
1283
|
-
const parsedBody = parsedOutput.body;
|
|
1284
|
-
return throwDefaultError({
|
|
1285
|
-
output,
|
|
1286
|
-
parsedBody,
|
|
1287
|
-
errorCode,
|
|
1288
|
-
});
|
|
1289
|
-
}
|
|
1290
|
-
};
|
|
1291
641
|
export const de_ListMediaCapturePipelinesCommand = async (output, context) => {
|
|
1292
642
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1293
|
-
return
|
|
643
|
+
return de_CommandError(output, context);
|
|
1294
644
|
}
|
|
1295
645
|
const contents = map({
|
|
1296
646
|
$metadata: deserializeMetadata(output),
|
|
@@ -1303,46 +653,9 @@ export const de_ListMediaCapturePipelinesCommand = async (output, context) => {
|
|
|
1303
653
|
Object.assign(contents, doc);
|
|
1304
654
|
return contents;
|
|
1305
655
|
};
|
|
1306
|
-
const de_ListMediaCapturePipelinesCommandError = async (output, context) => {
|
|
1307
|
-
const parsedOutput = {
|
|
1308
|
-
...output,
|
|
1309
|
-
body: await parseErrorBody(output.body, context),
|
|
1310
|
-
};
|
|
1311
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1312
|
-
switch (errorCode) {
|
|
1313
|
-
case "BadRequestException":
|
|
1314
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1315
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1316
|
-
case "ForbiddenException":
|
|
1317
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1318
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1319
|
-
case "ResourceLimitExceededException":
|
|
1320
|
-
case "com.amazonaws.chimesdkmediapipelines#ResourceLimitExceededException":
|
|
1321
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1322
|
-
case "ServiceFailureException":
|
|
1323
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1324
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1325
|
-
case "ServiceUnavailableException":
|
|
1326
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1327
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1328
|
-
case "ThrottledClientException":
|
|
1329
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1330
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1331
|
-
case "UnauthorizedClientException":
|
|
1332
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1333
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1334
|
-
default:
|
|
1335
|
-
const parsedBody = parsedOutput.body;
|
|
1336
|
-
return throwDefaultError({
|
|
1337
|
-
output,
|
|
1338
|
-
parsedBody,
|
|
1339
|
-
errorCode,
|
|
1340
|
-
});
|
|
1341
|
-
}
|
|
1342
|
-
};
|
|
1343
656
|
export const de_ListMediaInsightsPipelineConfigurationsCommand = async (output, context) => {
|
|
1344
657
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1345
|
-
return
|
|
658
|
+
return de_CommandError(output, context);
|
|
1346
659
|
}
|
|
1347
660
|
const contents = map({
|
|
1348
661
|
$metadata: deserializeMetadata(output),
|
|
@@ -1355,46 +668,9 @@ export const de_ListMediaInsightsPipelineConfigurationsCommand = async (output,
|
|
|
1355
668
|
Object.assign(contents, doc);
|
|
1356
669
|
return contents;
|
|
1357
670
|
};
|
|
1358
|
-
const de_ListMediaInsightsPipelineConfigurationsCommandError = async (output, context) => {
|
|
1359
|
-
const parsedOutput = {
|
|
1360
|
-
...output,
|
|
1361
|
-
body: await parseErrorBody(output.body, context),
|
|
1362
|
-
};
|
|
1363
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1364
|
-
switch (errorCode) {
|
|
1365
|
-
case "BadRequestException":
|
|
1366
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1367
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1368
|
-
case "ForbiddenException":
|
|
1369
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1370
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1371
|
-
case "ResourceLimitExceededException":
|
|
1372
|
-
case "com.amazonaws.chimesdkmediapipelines#ResourceLimitExceededException":
|
|
1373
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1374
|
-
case "ServiceFailureException":
|
|
1375
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1376
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1377
|
-
case "ServiceUnavailableException":
|
|
1378
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1379
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1380
|
-
case "ThrottledClientException":
|
|
1381
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1382
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1383
|
-
case "UnauthorizedClientException":
|
|
1384
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1385
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1386
|
-
default:
|
|
1387
|
-
const parsedBody = parsedOutput.body;
|
|
1388
|
-
return throwDefaultError({
|
|
1389
|
-
output,
|
|
1390
|
-
parsedBody,
|
|
1391
|
-
errorCode,
|
|
1392
|
-
});
|
|
1393
|
-
}
|
|
1394
|
-
};
|
|
1395
671
|
export const de_ListMediaPipelineKinesisVideoStreamPoolsCommand = async (output, context) => {
|
|
1396
672
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1397
|
-
return
|
|
673
|
+
return de_CommandError(output, context);
|
|
1398
674
|
}
|
|
1399
675
|
const contents = map({
|
|
1400
676
|
$metadata: deserializeMetadata(output),
|
|
@@ -1407,46 +683,9 @@ export const de_ListMediaPipelineKinesisVideoStreamPoolsCommand = async (output,
|
|
|
1407
683
|
Object.assign(contents, doc);
|
|
1408
684
|
return contents;
|
|
1409
685
|
};
|
|
1410
|
-
const de_ListMediaPipelineKinesisVideoStreamPoolsCommandError = async (output, context) => {
|
|
1411
|
-
const parsedOutput = {
|
|
1412
|
-
...output,
|
|
1413
|
-
body: await parseErrorBody(output.body, context),
|
|
1414
|
-
};
|
|
1415
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1416
|
-
switch (errorCode) {
|
|
1417
|
-
case "BadRequestException":
|
|
1418
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1419
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1420
|
-
case "ForbiddenException":
|
|
1421
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1422
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1423
|
-
case "ResourceLimitExceededException":
|
|
1424
|
-
case "com.amazonaws.chimesdkmediapipelines#ResourceLimitExceededException":
|
|
1425
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1426
|
-
case "ServiceFailureException":
|
|
1427
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1428
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1429
|
-
case "ServiceUnavailableException":
|
|
1430
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1431
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1432
|
-
case "ThrottledClientException":
|
|
1433
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1434
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1435
|
-
case "UnauthorizedClientException":
|
|
1436
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1437
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1438
|
-
default:
|
|
1439
|
-
const parsedBody = parsedOutput.body;
|
|
1440
|
-
return throwDefaultError({
|
|
1441
|
-
output,
|
|
1442
|
-
parsedBody,
|
|
1443
|
-
errorCode,
|
|
1444
|
-
});
|
|
1445
|
-
}
|
|
1446
|
-
};
|
|
1447
686
|
export const de_ListMediaPipelinesCommand = async (output, context) => {
|
|
1448
687
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1449
|
-
return
|
|
688
|
+
return de_CommandError(output, context);
|
|
1450
689
|
}
|
|
1451
690
|
const contents = map({
|
|
1452
691
|
$metadata: deserializeMetadata(output),
|
|
@@ -1459,46 +698,9 @@ export const de_ListMediaPipelinesCommand = async (output, context) => {
|
|
|
1459
698
|
Object.assign(contents, doc);
|
|
1460
699
|
return contents;
|
|
1461
700
|
};
|
|
1462
|
-
const de_ListMediaPipelinesCommandError = async (output, context) => {
|
|
1463
|
-
const parsedOutput = {
|
|
1464
|
-
...output,
|
|
1465
|
-
body: await parseErrorBody(output.body, context),
|
|
1466
|
-
};
|
|
1467
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1468
|
-
switch (errorCode) {
|
|
1469
|
-
case "BadRequestException":
|
|
1470
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1471
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1472
|
-
case "ForbiddenException":
|
|
1473
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1474
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1475
|
-
case "ResourceLimitExceededException":
|
|
1476
|
-
case "com.amazonaws.chimesdkmediapipelines#ResourceLimitExceededException":
|
|
1477
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1478
|
-
case "ServiceFailureException":
|
|
1479
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1480
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1481
|
-
case "ServiceUnavailableException":
|
|
1482
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1483
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1484
|
-
case "ThrottledClientException":
|
|
1485
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1486
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1487
|
-
case "UnauthorizedClientException":
|
|
1488
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1489
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1490
|
-
default:
|
|
1491
|
-
const parsedBody = parsedOutput.body;
|
|
1492
|
-
return throwDefaultError({
|
|
1493
|
-
output,
|
|
1494
|
-
parsedBody,
|
|
1495
|
-
errorCode,
|
|
1496
|
-
});
|
|
1497
|
-
}
|
|
1498
|
-
};
|
|
1499
701
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1500
702
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1501
|
-
return
|
|
703
|
+
return de_CommandError(output, context);
|
|
1502
704
|
}
|
|
1503
705
|
const contents = map({
|
|
1504
706
|
$metadata: deserializeMetadata(output),
|
|
@@ -1510,46 +712,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1510
712
|
Object.assign(contents, doc);
|
|
1511
713
|
return contents;
|
|
1512
714
|
};
|
|
1513
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1514
|
-
const parsedOutput = {
|
|
1515
|
-
...output,
|
|
1516
|
-
body: await parseErrorBody(output.body, context),
|
|
1517
|
-
};
|
|
1518
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1519
|
-
switch (errorCode) {
|
|
1520
|
-
case "BadRequestException":
|
|
1521
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1522
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1523
|
-
case "ForbiddenException":
|
|
1524
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1525
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1526
|
-
case "NotFoundException":
|
|
1527
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
1528
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1529
|
-
case "ServiceFailureException":
|
|
1530
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1531
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1532
|
-
case "ServiceUnavailableException":
|
|
1533
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1534
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1535
|
-
case "ThrottledClientException":
|
|
1536
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1537
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1538
|
-
case "UnauthorizedClientException":
|
|
1539
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1540
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1541
|
-
default:
|
|
1542
|
-
const parsedBody = parsedOutput.body;
|
|
1543
|
-
return throwDefaultError({
|
|
1544
|
-
output,
|
|
1545
|
-
parsedBody,
|
|
1546
|
-
errorCode,
|
|
1547
|
-
});
|
|
1548
|
-
}
|
|
1549
|
-
};
|
|
1550
715
|
export const de_StartSpeakerSearchTaskCommand = async (output, context) => {
|
|
1551
716
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1552
|
-
return
|
|
717
|
+
return de_CommandError(output, context);
|
|
1553
718
|
}
|
|
1554
719
|
const contents = map({
|
|
1555
720
|
$metadata: deserializeMetadata(output),
|
|
@@ -1559,105 +724,25 @@ export const de_StartSpeakerSearchTaskCommand = async (output, context) => {
|
|
|
1559
724
|
SpeakerSearchTask: (_) => de_SpeakerSearchTask(_, context),
|
|
1560
725
|
});
|
|
1561
726
|
Object.assign(contents, doc);
|
|
1562
|
-
return contents;
|
|
1563
|
-
};
|
|
1564
|
-
const
|
|
1565
|
-
|
|
1566
|
-
|
|
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.chimesdkmediapipelines#BadRequestException":
|
|
1573
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1574
|
-
case "ConflictException":
|
|
1575
|
-
case "com.amazonaws.chimesdkmediapipelines#ConflictException":
|
|
1576
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1577
|
-
case "ForbiddenException":
|
|
1578
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1579
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1580
|
-
case "NotFoundException":
|
|
1581
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
1582
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1583
|
-
case "ServiceFailureException":
|
|
1584
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1585
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1586
|
-
case "ServiceUnavailableException":
|
|
1587
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1588
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1589
|
-
case "ThrottledClientException":
|
|
1590
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1591
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1592
|
-
case "UnauthorizedClientException":
|
|
1593
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1594
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1595
|
-
default:
|
|
1596
|
-
const parsedBody = parsedOutput.body;
|
|
1597
|
-
return throwDefaultError({
|
|
1598
|
-
output,
|
|
1599
|
-
parsedBody,
|
|
1600
|
-
errorCode,
|
|
1601
|
-
});
|
|
1602
|
-
}
|
|
1603
|
-
};
|
|
1604
|
-
export const de_StartVoiceToneAnalysisTaskCommand = async (output, context) => {
|
|
1605
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1606
|
-
return de_StartVoiceToneAnalysisTaskCommandError(output, context);
|
|
1607
|
-
}
|
|
1608
|
-
const contents = map({
|
|
1609
|
-
$metadata: deserializeMetadata(output),
|
|
1610
|
-
});
|
|
1611
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1612
|
-
const doc = take(data, {
|
|
1613
|
-
VoiceToneAnalysisTask: (_) => de_VoiceToneAnalysisTask(_, context),
|
|
1614
|
-
});
|
|
1615
|
-
Object.assign(contents, doc);
|
|
1616
|
-
return contents;
|
|
1617
|
-
};
|
|
1618
|
-
const de_StartVoiceToneAnalysisTaskCommandError = async (output, context) => {
|
|
1619
|
-
const parsedOutput = {
|
|
1620
|
-
...output,
|
|
1621
|
-
body: await parseErrorBody(output.body, context),
|
|
1622
|
-
};
|
|
1623
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1624
|
-
switch (errorCode) {
|
|
1625
|
-
case "BadRequestException":
|
|
1626
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1627
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1628
|
-
case "ConflictException":
|
|
1629
|
-
case "com.amazonaws.chimesdkmediapipelines#ConflictException":
|
|
1630
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1631
|
-
case "ForbiddenException":
|
|
1632
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1633
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1634
|
-
case "NotFoundException":
|
|
1635
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
1636
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1637
|
-
case "ServiceFailureException":
|
|
1638
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1639
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1640
|
-
case "ServiceUnavailableException":
|
|
1641
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1642
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1643
|
-
case "ThrottledClientException":
|
|
1644
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1645
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1646
|
-
case "UnauthorizedClientException":
|
|
1647
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1648
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1649
|
-
default:
|
|
1650
|
-
const parsedBody = parsedOutput.body;
|
|
1651
|
-
return throwDefaultError({
|
|
1652
|
-
output,
|
|
1653
|
-
parsedBody,
|
|
1654
|
-
errorCode,
|
|
1655
|
-
});
|
|
727
|
+
return contents;
|
|
728
|
+
};
|
|
729
|
+
export const de_StartVoiceToneAnalysisTaskCommand = async (output, context) => {
|
|
730
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
731
|
+
return de_CommandError(output, context);
|
|
1656
732
|
}
|
|
733
|
+
const contents = map({
|
|
734
|
+
$metadata: deserializeMetadata(output),
|
|
735
|
+
});
|
|
736
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
737
|
+
const doc = take(data, {
|
|
738
|
+
VoiceToneAnalysisTask: (_) => de_VoiceToneAnalysisTask(_, context),
|
|
739
|
+
});
|
|
740
|
+
Object.assign(contents, doc);
|
|
741
|
+
return contents;
|
|
1657
742
|
};
|
|
1658
743
|
export const de_StopSpeakerSearchTaskCommand = async (output, context) => {
|
|
1659
744
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1660
|
-
return
|
|
745
|
+
return de_CommandError(output, context);
|
|
1661
746
|
}
|
|
1662
747
|
const contents = map({
|
|
1663
748
|
$metadata: deserializeMetadata(output),
|
|
@@ -1665,49 +750,9 @@ export const de_StopSpeakerSearchTaskCommand = async (output, context) => {
|
|
|
1665
750
|
await collectBody(output.body, context);
|
|
1666
751
|
return contents;
|
|
1667
752
|
};
|
|
1668
|
-
const de_StopSpeakerSearchTaskCommandError = async (output, context) => {
|
|
1669
|
-
const parsedOutput = {
|
|
1670
|
-
...output,
|
|
1671
|
-
body: await parseErrorBody(output.body, context),
|
|
1672
|
-
};
|
|
1673
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1674
|
-
switch (errorCode) {
|
|
1675
|
-
case "BadRequestException":
|
|
1676
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1677
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1678
|
-
case "ConflictException":
|
|
1679
|
-
case "com.amazonaws.chimesdkmediapipelines#ConflictException":
|
|
1680
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1681
|
-
case "ForbiddenException":
|
|
1682
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1683
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1684
|
-
case "NotFoundException":
|
|
1685
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
1686
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1687
|
-
case "ServiceFailureException":
|
|
1688
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1689
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1690
|
-
case "ServiceUnavailableException":
|
|
1691
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1692
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1693
|
-
case "ThrottledClientException":
|
|
1694
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1695
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1696
|
-
case "UnauthorizedClientException":
|
|
1697
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1698
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1699
|
-
default:
|
|
1700
|
-
const parsedBody = parsedOutput.body;
|
|
1701
|
-
return throwDefaultError({
|
|
1702
|
-
output,
|
|
1703
|
-
parsedBody,
|
|
1704
|
-
errorCode,
|
|
1705
|
-
});
|
|
1706
|
-
}
|
|
1707
|
-
};
|
|
1708
753
|
export const de_StopVoiceToneAnalysisTaskCommand = async (output, context) => {
|
|
1709
754
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1710
|
-
return
|
|
755
|
+
return de_CommandError(output, context);
|
|
1711
756
|
}
|
|
1712
757
|
const contents = map({
|
|
1713
758
|
$metadata: deserializeMetadata(output),
|
|
@@ -1715,49 +760,9 @@ export const de_StopVoiceToneAnalysisTaskCommand = async (output, context) => {
|
|
|
1715
760
|
await collectBody(output.body, context);
|
|
1716
761
|
return contents;
|
|
1717
762
|
};
|
|
1718
|
-
const de_StopVoiceToneAnalysisTaskCommandError = async (output, context) => {
|
|
1719
|
-
const parsedOutput = {
|
|
1720
|
-
...output,
|
|
1721
|
-
body: await parseErrorBody(output.body, context),
|
|
1722
|
-
};
|
|
1723
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1724
|
-
switch (errorCode) {
|
|
1725
|
-
case "BadRequestException":
|
|
1726
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1727
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1728
|
-
case "ConflictException":
|
|
1729
|
-
case "com.amazonaws.chimesdkmediapipelines#ConflictException":
|
|
1730
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1731
|
-
case "ForbiddenException":
|
|
1732
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1733
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1734
|
-
case "NotFoundException":
|
|
1735
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
1736
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1737
|
-
case "ServiceFailureException":
|
|
1738
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1739
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1740
|
-
case "ServiceUnavailableException":
|
|
1741
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1742
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1743
|
-
case "ThrottledClientException":
|
|
1744
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1745
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1746
|
-
case "UnauthorizedClientException":
|
|
1747
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1748
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1749
|
-
default:
|
|
1750
|
-
const parsedBody = parsedOutput.body;
|
|
1751
|
-
return throwDefaultError({
|
|
1752
|
-
output,
|
|
1753
|
-
parsedBody,
|
|
1754
|
-
errorCode,
|
|
1755
|
-
});
|
|
1756
|
-
}
|
|
1757
|
-
};
|
|
1758
763
|
export const de_TagResourceCommand = async (output, context) => {
|
|
1759
764
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1760
|
-
return
|
|
765
|
+
return de_CommandError(output, context);
|
|
1761
766
|
}
|
|
1762
767
|
const contents = map({
|
|
1763
768
|
$metadata: deserializeMetadata(output),
|
|
@@ -1765,46 +770,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1765
770
|
await collectBody(output.body, context);
|
|
1766
771
|
return contents;
|
|
1767
772
|
};
|
|
1768
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1769
|
-
const parsedOutput = {
|
|
1770
|
-
...output,
|
|
1771
|
-
body: await parseErrorBody(output.body, context),
|
|
1772
|
-
};
|
|
1773
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1774
|
-
switch (errorCode) {
|
|
1775
|
-
case "BadRequestException":
|
|
1776
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1777
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1778
|
-
case "ForbiddenException":
|
|
1779
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1780
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1781
|
-
case "NotFoundException":
|
|
1782
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
1783
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1784
|
-
case "ServiceFailureException":
|
|
1785
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1786
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1787
|
-
case "ServiceUnavailableException":
|
|
1788
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1789
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1790
|
-
case "ThrottledClientException":
|
|
1791
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1792
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1793
|
-
case "UnauthorizedClientException":
|
|
1794
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1795
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1796
|
-
default:
|
|
1797
|
-
const parsedBody = parsedOutput.body;
|
|
1798
|
-
return throwDefaultError({
|
|
1799
|
-
output,
|
|
1800
|
-
parsedBody,
|
|
1801
|
-
errorCode,
|
|
1802
|
-
});
|
|
1803
|
-
}
|
|
1804
|
-
};
|
|
1805
773
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
1806
774
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1807
|
-
return
|
|
775
|
+
return de_CommandError(output, context);
|
|
1808
776
|
}
|
|
1809
777
|
const contents = map({
|
|
1810
778
|
$metadata: deserializeMetadata(output),
|
|
@@ -1812,46 +780,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1812
780
|
await collectBody(output.body, context);
|
|
1813
781
|
return contents;
|
|
1814
782
|
};
|
|
1815
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1816
|
-
const parsedOutput = {
|
|
1817
|
-
...output,
|
|
1818
|
-
body: await parseErrorBody(output.body, context),
|
|
1819
|
-
};
|
|
1820
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1821
|
-
switch (errorCode) {
|
|
1822
|
-
case "BadRequestException":
|
|
1823
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1824
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1825
|
-
case "ForbiddenException":
|
|
1826
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1827
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1828
|
-
case "NotFoundException":
|
|
1829
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
1830
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1831
|
-
case "ServiceFailureException":
|
|
1832
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1833
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1834
|
-
case "ServiceUnavailableException":
|
|
1835
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1836
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1837
|
-
case "ThrottledClientException":
|
|
1838
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1839
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1840
|
-
case "UnauthorizedClientException":
|
|
1841
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1842
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1843
|
-
default:
|
|
1844
|
-
const parsedBody = parsedOutput.body;
|
|
1845
|
-
return throwDefaultError({
|
|
1846
|
-
output,
|
|
1847
|
-
parsedBody,
|
|
1848
|
-
errorCode,
|
|
1849
|
-
});
|
|
1850
|
-
}
|
|
1851
|
-
};
|
|
1852
783
|
export const de_UpdateMediaInsightsPipelineConfigurationCommand = async (output, context) => {
|
|
1853
784
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1854
|
-
return
|
|
785
|
+
return de_CommandError(output, context);
|
|
1855
786
|
}
|
|
1856
787
|
const contents = map({
|
|
1857
788
|
$metadata: deserializeMetadata(output),
|
|
@@ -1863,49 +794,9 @@ export const de_UpdateMediaInsightsPipelineConfigurationCommand = async (output,
|
|
|
1863
794
|
Object.assign(contents, doc);
|
|
1864
795
|
return contents;
|
|
1865
796
|
};
|
|
1866
|
-
const de_UpdateMediaInsightsPipelineConfigurationCommandError = async (output, context) => {
|
|
1867
|
-
const parsedOutput = {
|
|
1868
|
-
...output,
|
|
1869
|
-
body: await parseErrorBody(output.body, context),
|
|
1870
|
-
};
|
|
1871
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1872
|
-
switch (errorCode) {
|
|
1873
|
-
case "BadRequestException":
|
|
1874
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1875
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1876
|
-
case "ConflictException":
|
|
1877
|
-
case "com.amazonaws.chimesdkmediapipelines#ConflictException":
|
|
1878
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1879
|
-
case "ForbiddenException":
|
|
1880
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1881
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1882
|
-
case "NotFoundException":
|
|
1883
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
1884
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1885
|
-
case "ServiceFailureException":
|
|
1886
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1887
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1888
|
-
case "ServiceUnavailableException":
|
|
1889
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1890
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1891
|
-
case "ThrottledClientException":
|
|
1892
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1893
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1894
|
-
case "UnauthorizedClientException":
|
|
1895
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1896
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1897
|
-
default:
|
|
1898
|
-
const parsedBody = parsedOutput.body;
|
|
1899
|
-
return throwDefaultError({
|
|
1900
|
-
output,
|
|
1901
|
-
parsedBody,
|
|
1902
|
-
errorCode,
|
|
1903
|
-
});
|
|
1904
|
-
}
|
|
1905
|
-
};
|
|
1906
797
|
export const de_UpdateMediaInsightsPipelineStatusCommand = async (output, context) => {
|
|
1907
798
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1908
|
-
return
|
|
799
|
+
return de_CommandError(output, context);
|
|
1909
800
|
}
|
|
1910
801
|
const contents = map({
|
|
1911
802
|
$metadata: deserializeMetadata(output),
|
|
@@ -1913,49 +804,9 @@ export const de_UpdateMediaInsightsPipelineStatusCommand = async (output, contex
|
|
|
1913
804
|
await collectBody(output.body, context);
|
|
1914
805
|
return contents;
|
|
1915
806
|
};
|
|
1916
|
-
const de_UpdateMediaInsightsPipelineStatusCommandError = async (output, context) => {
|
|
1917
|
-
const parsedOutput = {
|
|
1918
|
-
...output,
|
|
1919
|
-
body: await parseErrorBody(output.body, context),
|
|
1920
|
-
};
|
|
1921
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1922
|
-
switch (errorCode) {
|
|
1923
|
-
case "BadRequestException":
|
|
1924
|
-
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1925
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1926
|
-
case "ConflictException":
|
|
1927
|
-
case "com.amazonaws.chimesdkmediapipelines#ConflictException":
|
|
1928
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1929
|
-
case "ForbiddenException":
|
|
1930
|
-
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1931
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1932
|
-
case "NotFoundException":
|
|
1933
|
-
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
1934
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1935
|
-
case "ServiceFailureException":
|
|
1936
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1937
|
-
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
1938
|
-
case "ServiceUnavailableException":
|
|
1939
|
-
case "com.amazonaws.chimesdkmediapipelines#ServiceUnavailableException":
|
|
1940
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1941
|
-
case "ThrottledClientException":
|
|
1942
|
-
case "com.amazonaws.chimesdkmediapipelines#ThrottledClientException":
|
|
1943
|
-
throw await de_ThrottledClientExceptionRes(parsedOutput, context);
|
|
1944
|
-
case "UnauthorizedClientException":
|
|
1945
|
-
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
1946
|
-
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1947
|
-
default:
|
|
1948
|
-
const parsedBody = parsedOutput.body;
|
|
1949
|
-
return throwDefaultError({
|
|
1950
|
-
output,
|
|
1951
|
-
parsedBody,
|
|
1952
|
-
errorCode,
|
|
1953
|
-
});
|
|
1954
|
-
}
|
|
1955
|
-
};
|
|
1956
807
|
export const de_UpdateMediaPipelineKinesisVideoStreamPoolCommand = async (output, context) => {
|
|
1957
808
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1958
|
-
return
|
|
809
|
+
return de_CommandError(output, context);
|
|
1959
810
|
}
|
|
1960
811
|
const contents = map({
|
|
1961
812
|
$metadata: deserializeMetadata(output),
|
|
@@ -1967,7 +818,7 @@ export const de_UpdateMediaPipelineKinesisVideoStreamPoolCommand = async (output
|
|
|
1967
818
|
Object.assign(contents, doc);
|
|
1968
819
|
return contents;
|
|
1969
820
|
};
|
|
1970
|
-
const
|
|
821
|
+
const de_CommandError = async (output, context) => {
|
|
1971
822
|
const parsedOutput = {
|
|
1972
823
|
...output,
|
|
1973
824
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1977,15 +828,12 @@ const de_UpdateMediaPipelineKinesisVideoStreamPoolCommandError = async (output,
|
|
|
1977
828
|
case "BadRequestException":
|
|
1978
829
|
case "com.amazonaws.chimesdkmediapipelines#BadRequestException":
|
|
1979
830
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1980
|
-
case "ConflictException":
|
|
1981
|
-
case "com.amazonaws.chimesdkmediapipelines#ConflictException":
|
|
1982
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1983
831
|
case "ForbiddenException":
|
|
1984
832
|
case "com.amazonaws.chimesdkmediapipelines#ForbiddenException":
|
|
1985
833
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1986
|
-
case "
|
|
1987
|
-
case "com.amazonaws.chimesdkmediapipelines#
|
|
1988
|
-
throw await
|
|
834
|
+
case "ResourceLimitExceededException":
|
|
835
|
+
case "com.amazonaws.chimesdkmediapipelines#ResourceLimitExceededException":
|
|
836
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1989
837
|
case "ServiceFailureException":
|
|
1990
838
|
case "com.amazonaws.chimesdkmediapipelines#ServiceFailureException":
|
|
1991
839
|
throw await de_ServiceFailureExceptionRes(parsedOutput, context);
|
|
@@ -1998,6 +846,12 @@ const de_UpdateMediaPipelineKinesisVideoStreamPoolCommandError = async (output,
|
|
|
1998
846
|
case "UnauthorizedClientException":
|
|
1999
847
|
case "com.amazonaws.chimesdkmediapipelines#UnauthorizedClientException":
|
|
2000
848
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
849
|
+
case "NotFoundException":
|
|
850
|
+
case "com.amazonaws.chimesdkmediapipelines#NotFoundException":
|
|
851
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
852
|
+
case "ConflictException":
|
|
853
|
+
case "com.amazonaws.chimesdkmediapipelines#ConflictException":
|
|
854
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2001
855
|
default:
|
|
2002
856
|
const parsedBody = parsedOutput.body;
|
|
2003
857
|
return throwDefaultError({
|