@aws-sdk/client-mediapackage-vod 3.503.1 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +19 -500
- package/dist-es/protocols/Aws_restJson1.js +18 -499
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -565,7 +565,7 @@ var se_UpdatePackagingGroupCommand = /* @__PURE__ */ __name(async (input, contex
|
|
|
565
565
|
}, "se_UpdatePackagingGroupCommand");
|
|
566
566
|
var de_ConfigureLogsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
567
567
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
568
|
-
return
|
|
568
|
+
return de_CommandError(output, context);
|
|
569
569
|
}
|
|
570
570
|
const contents = (0, import_smithy_client.map)({
|
|
571
571
|
$metadata: deserializeMetadata(output)
|
|
@@ -583,43 +583,9 @@ var de_ConfigureLogsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
583
583
|
Object.assign(contents, doc);
|
|
584
584
|
return contents;
|
|
585
585
|
}, "de_ConfigureLogsCommand");
|
|
586
|
-
var de_ConfigureLogsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
587
|
-
const parsedOutput = {
|
|
588
|
-
...output,
|
|
589
|
-
body: await parseErrorBody(output.body, context)
|
|
590
|
-
};
|
|
591
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
592
|
-
switch (errorCode) {
|
|
593
|
-
case "ForbiddenException":
|
|
594
|
-
case "com.amazonaws.mediapackagevod#ForbiddenException":
|
|
595
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
596
|
-
case "InternalServerErrorException":
|
|
597
|
-
case "com.amazonaws.mediapackagevod#InternalServerErrorException":
|
|
598
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
599
|
-
case "NotFoundException":
|
|
600
|
-
case "com.amazonaws.mediapackagevod#NotFoundException":
|
|
601
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
602
|
-
case "ServiceUnavailableException":
|
|
603
|
-
case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
|
|
604
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
605
|
-
case "TooManyRequestsException":
|
|
606
|
-
case "com.amazonaws.mediapackagevod#TooManyRequestsException":
|
|
607
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
608
|
-
case "UnprocessableEntityException":
|
|
609
|
-
case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
|
|
610
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
611
|
-
default:
|
|
612
|
-
const parsedBody = parsedOutput.body;
|
|
613
|
-
return throwDefaultError({
|
|
614
|
-
output,
|
|
615
|
-
parsedBody,
|
|
616
|
-
errorCode
|
|
617
|
-
});
|
|
618
|
-
}
|
|
619
|
-
}, "de_ConfigureLogsCommandError");
|
|
620
586
|
var de_CreateAssetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
621
587
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
622
|
-
return
|
|
588
|
+
return de_CommandError(output, context);
|
|
623
589
|
}
|
|
624
590
|
const contents = (0, import_smithy_client.map)({
|
|
625
591
|
$metadata: deserializeMetadata(output)
|
|
@@ -639,43 +605,9 @@ var de_CreateAssetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
639
605
|
Object.assign(contents, doc);
|
|
640
606
|
return contents;
|
|
641
607
|
}, "de_CreateAssetCommand");
|
|
642
|
-
var de_CreateAssetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
643
|
-
const parsedOutput = {
|
|
644
|
-
...output,
|
|
645
|
-
body: await parseErrorBody(output.body, context)
|
|
646
|
-
};
|
|
647
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
648
|
-
switch (errorCode) {
|
|
649
|
-
case "ForbiddenException":
|
|
650
|
-
case "com.amazonaws.mediapackagevod#ForbiddenException":
|
|
651
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
652
|
-
case "InternalServerErrorException":
|
|
653
|
-
case "com.amazonaws.mediapackagevod#InternalServerErrorException":
|
|
654
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
655
|
-
case "NotFoundException":
|
|
656
|
-
case "com.amazonaws.mediapackagevod#NotFoundException":
|
|
657
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
658
|
-
case "ServiceUnavailableException":
|
|
659
|
-
case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
|
|
660
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
661
|
-
case "TooManyRequestsException":
|
|
662
|
-
case "com.amazonaws.mediapackagevod#TooManyRequestsException":
|
|
663
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
664
|
-
case "UnprocessableEntityException":
|
|
665
|
-
case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
|
|
666
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
667
|
-
default:
|
|
668
|
-
const parsedBody = parsedOutput.body;
|
|
669
|
-
return throwDefaultError({
|
|
670
|
-
output,
|
|
671
|
-
parsedBody,
|
|
672
|
-
errorCode
|
|
673
|
-
});
|
|
674
|
-
}
|
|
675
|
-
}, "de_CreateAssetCommandError");
|
|
676
608
|
var de_CreatePackagingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
677
609
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
678
|
-
return
|
|
610
|
+
return de_CommandError(output, context);
|
|
679
611
|
}
|
|
680
612
|
const contents = (0, import_smithy_client.map)({
|
|
681
613
|
$metadata: deserializeMetadata(output)
|
|
@@ -695,43 +627,9 @@ var de_CreatePackagingConfigurationCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
695
627
|
Object.assign(contents, doc);
|
|
696
628
|
return contents;
|
|
697
629
|
}, "de_CreatePackagingConfigurationCommand");
|
|
698
|
-
var de_CreatePackagingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
699
|
-
const parsedOutput = {
|
|
700
|
-
...output,
|
|
701
|
-
body: await parseErrorBody(output.body, context)
|
|
702
|
-
};
|
|
703
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
704
|
-
switch (errorCode) {
|
|
705
|
-
case "ForbiddenException":
|
|
706
|
-
case "com.amazonaws.mediapackagevod#ForbiddenException":
|
|
707
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
708
|
-
case "InternalServerErrorException":
|
|
709
|
-
case "com.amazonaws.mediapackagevod#InternalServerErrorException":
|
|
710
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
711
|
-
case "NotFoundException":
|
|
712
|
-
case "com.amazonaws.mediapackagevod#NotFoundException":
|
|
713
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
714
|
-
case "ServiceUnavailableException":
|
|
715
|
-
case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
|
|
716
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
717
|
-
case "TooManyRequestsException":
|
|
718
|
-
case "com.amazonaws.mediapackagevod#TooManyRequestsException":
|
|
719
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
720
|
-
case "UnprocessableEntityException":
|
|
721
|
-
case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
|
|
722
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
723
|
-
default:
|
|
724
|
-
const parsedBody = parsedOutput.body;
|
|
725
|
-
return throwDefaultError({
|
|
726
|
-
output,
|
|
727
|
-
parsedBody,
|
|
728
|
-
errorCode
|
|
729
|
-
});
|
|
730
|
-
}
|
|
731
|
-
}, "de_CreatePackagingConfigurationCommandError");
|
|
732
630
|
var de_CreatePackagingGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
733
631
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
734
|
-
return
|
|
632
|
+
return de_CommandError(output, context);
|
|
735
633
|
}
|
|
736
634
|
const contents = (0, import_smithy_client.map)({
|
|
737
635
|
$metadata: deserializeMetadata(output)
|
|
@@ -749,43 +647,9 @@ var de_CreatePackagingGroupCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
749
647
|
Object.assign(contents, doc);
|
|
750
648
|
return contents;
|
|
751
649
|
}, "de_CreatePackagingGroupCommand");
|
|
752
|
-
var de_CreatePackagingGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
753
|
-
const parsedOutput = {
|
|
754
|
-
...output,
|
|
755
|
-
body: await parseErrorBody(output.body, context)
|
|
756
|
-
};
|
|
757
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
758
|
-
switch (errorCode) {
|
|
759
|
-
case "ForbiddenException":
|
|
760
|
-
case "com.amazonaws.mediapackagevod#ForbiddenException":
|
|
761
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
762
|
-
case "InternalServerErrorException":
|
|
763
|
-
case "com.amazonaws.mediapackagevod#InternalServerErrorException":
|
|
764
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
765
|
-
case "NotFoundException":
|
|
766
|
-
case "com.amazonaws.mediapackagevod#NotFoundException":
|
|
767
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
768
|
-
case "ServiceUnavailableException":
|
|
769
|
-
case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
|
|
770
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
771
|
-
case "TooManyRequestsException":
|
|
772
|
-
case "com.amazonaws.mediapackagevod#TooManyRequestsException":
|
|
773
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
774
|
-
case "UnprocessableEntityException":
|
|
775
|
-
case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
|
|
776
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
777
|
-
default:
|
|
778
|
-
const parsedBody = parsedOutput.body;
|
|
779
|
-
return throwDefaultError({
|
|
780
|
-
output,
|
|
781
|
-
parsedBody,
|
|
782
|
-
errorCode
|
|
783
|
-
});
|
|
784
|
-
}
|
|
785
|
-
}, "de_CreatePackagingGroupCommandError");
|
|
786
650
|
var de_DeleteAssetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
787
651
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
788
|
-
return
|
|
652
|
+
return de_CommandError(output, context);
|
|
789
653
|
}
|
|
790
654
|
const contents = (0, import_smithy_client.map)({
|
|
791
655
|
$metadata: deserializeMetadata(output)
|
|
@@ -793,43 +657,9 @@ var de_DeleteAssetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
793
657
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
794
658
|
return contents;
|
|
795
659
|
}, "de_DeleteAssetCommand");
|
|
796
|
-
var de_DeleteAssetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
797
|
-
const parsedOutput = {
|
|
798
|
-
...output,
|
|
799
|
-
body: await parseErrorBody(output.body, context)
|
|
800
|
-
};
|
|
801
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
802
|
-
switch (errorCode) {
|
|
803
|
-
case "ForbiddenException":
|
|
804
|
-
case "com.amazonaws.mediapackagevod#ForbiddenException":
|
|
805
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
806
|
-
case "InternalServerErrorException":
|
|
807
|
-
case "com.amazonaws.mediapackagevod#InternalServerErrorException":
|
|
808
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
809
|
-
case "NotFoundException":
|
|
810
|
-
case "com.amazonaws.mediapackagevod#NotFoundException":
|
|
811
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
812
|
-
case "ServiceUnavailableException":
|
|
813
|
-
case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
|
|
814
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
815
|
-
case "TooManyRequestsException":
|
|
816
|
-
case "com.amazonaws.mediapackagevod#TooManyRequestsException":
|
|
817
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
818
|
-
case "UnprocessableEntityException":
|
|
819
|
-
case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
|
|
820
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
821
|
-
default:
|
|
822
|
-
const parsedBody = parsedOutput.body;
|
|
823
|
-
return throwDefaultError({
|
|
824
|
-
output,
|
|
825
|
-
parsedBody,
|
|
826
|
-
errorCode
|
|
827
|
-
});
|
|
828
|
-
}
|
|
829
|
-
}, "de_DeleteAssetCommandError");
|
|
830
660
|
var de_DeletePackagingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
831
661
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
832
|
-
return
|
|
662
|
+
return de_CommandError(output, context);
|
|
833
663
|
}
|
|
834
664
|
const contents = (0, import_smithy_client.map)({
|
|
835
665
|
$metadata: deserializeMetadata(output)
|
|
@@ -837,43 +667,9 @@ var de_DeletePackagingConfigurationCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
837
667
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
838
668
|
return contents;
|
|
839
669
|
}, "de_DeletePackagingConfigurationCommand");
|
|
840
|
-
var de_DeletePackagingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
841
|
-
const parsedOutput = {
|
|
842
|
-
...output,
|
|
843
|
-
body: await parseErrorBody(output.body, context)
|
|
844
|
-
};
|
|
845
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
846
|
-
switch (errorCode) {
|
|
847
|
-
case "ForbiddenException":
|
|
848
|
-
case "com.amazonaws.mediapackagevod#ForbiddenException":
|
|
849
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
850
|
-
case "InternalServerErrorException":
|
|
851
|
-
case "com.amazonaws.mediapackagevod#InternalServerErrorException":
|
|
852
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
853
|
-
case "NotFoundException":
|
|
854
|
-
case "com.amazonaws.mediapackagevod#NotFoundException":
|
|
855
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
856
|
-
case "ServiceUnavailableException":
|
|
857
|
-
case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
|
|
858
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
859
|
-
case "TooManyRequestsException":
|
|
860
|
-
case "com.amazonaws.mediapackagevod#TooManyRequestsException":
|
|
861
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
862
|
-
case "UnprocessableEntityException":
|
|
863
|
-
case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
|
|
864
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
865
|
-
default:
|
|
866
|
-
const parsedBody = parsedOutput.body;
|
|
867
|
-
return throwDefaultError({
|
|
868
|
-
output,
|
|
869
|
-
parsedBody,
|
|
870
|
-
errorCode
|
|
871
|
-
});
|
|
872
|
-
}
|
|
873
|
-
}, "de_DeletePackagingConfigurationCommandError");
|
|
874
670
|
var de_DeletePackagingGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
875
671
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
876
|
-
return
|
|
672
|
+
return de_CommandError(output, context);
|
|
877
673
|
}
|
|
878
674
|
const contents = (0, import_smithy_client.map)({
|
|
879
675
|
$metadata: deserializeMetadata(output)
|
|
@@ -881,43 +677,9 @@ var de_DeletePackagingGroupCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
881
677
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
882
678
|
return contents;
|
|
883
679
|
}, "de_DeletePackagingGroupCommand");
|
|
884
|
-
var de_DeletePackagingGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
885
|
-
const parsedOutput = {
|
|
886
|
-
...output,
|
|
887
|
-
body: await parseErrorBody(output.body, context)
|
|
888
|
-
};
|
|
889
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
890
|
-
switch (errorCode) {
|
|
891
|
-
case "ForbiddenException":
|
|
892
|
-
case "com.amazonaws.mediapackagevod#ForbiddenException":
|
|
893
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
894
|
-
case "InternalServerErrorException":
|
|
895
|
-
case "com.amazonaws.mediapackagevod#InternalServerErrorException":
|
|
896
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
897
|
-
case "NotFoundException":
|
|
898
|
-
case "com.amazonaws.mediapackagevod#NotFoundException":
|
|
899
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
900
|
-
case "ServiceUnavailableException":
|
|
901
|
-
case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
|
|
902
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
903
|
-
case "TooManyRequestsException":
|
|
904
|
-
case "com.amazonaws.mediapackagevod#TooManyRequestsException":
|
|
905
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
906
|
-
case "UnprocessableEntityException":
|
|
907
|
-
case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
|
|
908
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
909
|
-
default:
|
|
910
|
-
const parsedBody = parsedOutput.body;
|
|
911
|
-
return throwDefaultError({
|
|
912
|
-
output,
|
|
913
|
-
parsedBody,
|
|
914
|
-
errorCode
|
|
915
|
-
});
|
|
916
|
-
}
|
|
917
|
-
}, "de_DeletePackagingGroupCommandError");
|
|
918
680
|
var de_DescribeAssetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
919
681
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
920
|
-
return
|
|
682
|
+
return de_CommandError(output, context);
|
|
921
683
|
}
|
|
922
684
|
const contents = (0, import_smithy_client.map)({
|
|
923
685
|
$metadata: deserializeMetadata(output)
|
|
@@ -937,43 +699,9 @@ var de_DescribeAssetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
937
699
|
Object.assign(contents, doc);
|
|
938
700
|
return contents;
|
|
939
701
|
}, "de_DescribeAssetCommand");
|
|
940
|
-
var de_DescribeAssetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
941
|
-
const parsedOutput = {
|
|
942
|
-
...output,
|
|
943
|
-
body: await parseErrorBody(output.body, context)
|
|
944
|
-
};
|
|
945
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
946
|
-
switch (errorCode) {
|
|
947
|
-
case "ForbiddenException":
|
|
948
|
-
case "com.amazonaws.mediapackagevod#ForbiddenException":
|
|
949
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
950
|
-
case "InternalServerErrorException":
|
|
951
|
-
case "com.amazonaws.mediapackagevod#InternalServerErrorException":
|
|
952
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
953
|
-
case "NotFoundException":
|
|
954
|
-
case "com.amazonaws.mediapackagevod#NotFoundException":
|
|
955
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
956
|
-
case "ServiceUnavailableException":
|
|
957
|
-
case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
|
|
958
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
959
|
-
case "TooManyRequestsException":
|
|
960
|
-
case "com.amazonaws.mediapackagevod#TooManyRequestsException":
|
|
961
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
962
|
-
case "UnprocessableEntityException":
|
|
963
|
-
case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
|
|
964
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
965
|
-
default:
|
|
966
|
-
const parsedBody = parsedOutput.body;
|
|
967
|
-
return throwDefaultError({
|
|
968
|
-
output,
|
|
969
|
-
parsedBody,
|
|
970
|
-
errorCode
|
|
971
|
-
});
|
|
972
|
-
}
|
|
973
|
-
}, "de_DescribeAssetCommandError");
|
|
974
702
|
var de_DescribePackagingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
975
703
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
976
|
-
return
|
|
704
|
+
return de_CommandError(output, context);
|
|
977
705
|
}
|
|
978
706
|
const contents = (0, import_smithy_client.map)({
|
|
979
707
|
$metadata: deserializeMetadata(output)
|
|
@@ -993,43 +721,9 @@ var de_DescribePackagingConfigurationCommand = /* @__PURE__ */ __name(async (out
|
|
|
993
721
|
Object.assign(contents, doc);
|
|
994
722
|
return contents;
|
|
995
723
|
}, "de_DescribePackagingConfigurationCommand");
|
|
996
|
-
var de_DescribePackagingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
997
|
-
const parsedOutput = {
|
|
998
|
-
...output,
|
|
999
|
-
body: await parseErrorBody(output.body, context)
|
|
1000
|
-
};
|
|
1001
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1002
|
-
switch (errorCode) {
|
|
1003
|
-
case "ForbiddenException":
|
|
1004
|
-
case "com.amazonaws.mediapackagevod#ForbiddenException":
|
|
1005
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1006
|
-
case "InternalServerErrorException":
|
|
1007
|
-
case "com.amazonaws.mediapackagevod#InternalServerErrorException":
|
|
1008
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1009
|
-
case "NotFoundException":
|
|
1010
|
-
case "com.amazonaws.mediapackagevod#NotFoundException":
|
|
1011
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1012
|
-
case "ServiceUnavailableException":
|
|
1013
|
-
case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
|
|
1014
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1015
|
-
case "TooManyRequestsException":
|
|
1016
|
-
case "com.amazonaws.mediapackagevod#TooManyRequestsException":
|
|
1017
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1018
|
-
case "UnprocessableEntityException":
|
|
1019
|
-
case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
|
|
1020
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
1021
|
-
default:
|
|
1022
|
-
const parsedBody = parsedOutput.body;
|
|
1023
|
-
return throwDefaultError({
|
|
1024
|
-
output,
|
|
1025
|
-
parsedBody,
|
|
1026
|
-
errorCode
|
|
1027
|
-
});
|
|
1028
|
-
}
|
|
1029
|
-
}, "de_DescribePackagingConfigurationCommandError");
|
|
1030
724
|
var de_DescribePackagingGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1031
725
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1032
|
-
return
|
|
726
|
+
return de_CommandError(output, context);
|
|
1033
727
|
}
|
|
1034
728
|
const contents = (0, import_smithy_client.map)({
|
|
1035
729
|
$metadata: deserializeMetadata(output)
|
|
@@ -1048,43 +742,9 @@ var de_DescribePackagingGroupCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1048
742
|
Object.assign(contents, doc);
|
|
1049
743
|
return contents;
|
|
1050
744
|
}, "de_DescribePackagingGroupCommand");
|
|
1051
|
-
var de_DescribePackagingGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1052
|
-
const parsedOutput = {
|
|
1053
|
-
...output,
|
|
1054
|
-
body: await parseErrorBody(output.body, context)
|
|
1055
|
-
};
|
|
1056
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1057
|
-
switch (errorCode) {
|
|
1058
|
-
case "ForbiddenException":
|
|
1059
|
-
case "com.amazonaws.mediapackagevod#ForbiddenException":
|
|
1060
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1061
|
-
case "InternalServerErrorException":
|
|
1062
|
-
case "com.amazonaws.mediapackagevod#InternalServerErrorException":
|
|
1063
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1064
|
-
case "NotFoundException":
|
|
1065
|
-
case "com.amazonaws.mediapackagevod#NotFoundException":
|
|
1066
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1067
|
-
case "ServiceUnavailableException":
|
|
1068
|
-
case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
|
|
1069
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1070
|
-
case "TooManyRequestsException":
|
|
1071
|
-
case "com.amazonaws.mediapackagevod#TooManyRequestsException":
|
|
1072
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1073
|
-
case "UnprocessableEntityException":
|
|
1074
|
-
case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
|
|
1075
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
1076
|
-
default:
|
|
1077
|
-
const parsedBody = parsedOutput.body;
|
|
1078
|
-
return throwDefaultError({
|
|
1079
|
-
output,
|
|
1080
|
-
parsedBody,
|
|
1081
|
-
errorCode
|
|
1082
|
-
});
|
|
1083
|
-
}
|
|
1084
|
-
}, "de_DescribePackagingGroupCommandError");
|
|
1085
745
|
var de_ListAssetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1086
746
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1087
|
-
return
|
|
747
|
+
return de_CommandError(output, context);
|
|
1088
748
|
}
|
|
1089
749
|
const contents = (0, import_smithy_client.map)({
|
|
1090
750
|
$metadata: deserializeMetadata(output)
|
|
@@ -1097,43 +757,9 @@ var de_ListAssetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1097
757
|
Object.assign(contents, doc);
|
|
1098
758
|
return contents;
|
|
1099
759
|
}, "de_ListAssetsCommand");
|
|
1100
|
-
var de_ListAssetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1101
|
-
const parsedOutput = {
|
|
1102
|
-
...output,
|
|
1103
|
-
body: await parseErrorBody(output.body, context)
|
|
1104
|
-
};
|
|
1105
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1106
|
-
switch (errorCode) {
|
|
1107
|
-
case "ForbiddenException":
|
|
1108
|
-
case "com.amazonaws.mediapackagevod#ForbiddenException":
|
|
1109
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1110
|
-
case "InternalServerErrorException":
|
|
1111
|
-
case "com.amazonaws.mediapackagevod#InternalServerErrorException":
|
|
1112
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1113
|
-
case "NotFoundException":
|
|
1114
|
-
case "com.amazonaws.mediapackagevod#NotFoundException":
|
|
1115
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1116
|
-
case "ServiceUnavailableException":
|
|
1117
|
-
case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
|
|
1118
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1119
|
-
case "TooManyRequestsException":
|
|
1120
|
-
case "com.amazonaws.mediapackagevod#TooManyRequestsException":
|
|
1121
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1122
|
-
case "UnprocessableEntityException":
|
|
1123
|
-
case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
|
|
1124
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
1125
|
-
default:
|
|
1126
|
-
const parsedBody = parsedOutput.body;
|
|
1127
|
-
return throwDefaultError({
|
|
1128
|
-
output,
|
|
1129
|
-
parsedBody,
|
|
1130
|
-
errorCode
|
|
1131
|
-
});
|
|
1132
|
-
}
|
|
1133
|
-
}, "de_ListAssetsCommandError");
|
|
1134
760
|
var de_ListPackagingConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1135
761
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1136
|
-
return
|
|
762
|
+
return de_CommandError(output, context);
|
|
1137
763
|
}
|
|
1138
764
|
const contents = (0, import_smithy_client.map)({
|
|
1139
765
|
$metadata: deserializeMetadata(output)
|
|
@@ -1146,43 +772,9 @@ var de_ListPackagingConfigurationsCommand = /* @__PURE__ */ __name(async (output
|
|
|
1146
772
|
Object.assign(contents, doc);
|
|
1147
773
|
return contents;
|
|
1148
774
|
}, "de_ListPackagingConfigurationsCommand");
|
|
1149
|
-
var de_ListPackagingConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1150
|
-
const parsedOutput = {
|
|
1151
|
-
...output,
|
|
1152
|
-
body: await parseErrorBody(output.body, context)
|
|
1153
|
-
};
|
|
1154
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1155
|
-
switch (errorCode) {
|
|
1156
|
-
case "ForbiddenException":
|
|
1157
|
-
case "com.amazonaws.mediapackagevod#ForbiddenException":
|
|
1158
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1159
|
-
case "InternalServerErrorException":
|
|
1160
|
-
case "com.amazonaws.mediapackagevod#InternalServerErrorException":
|
|
1161
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1162
|
-
case "NotFoundException":
|
|
1163
|
-
case "com.amazonaws.mediapackagevod#NotFoundException":
|
|
1164
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1165
|
-
case "ServiceUnavailableException":
|
|
1166
|
-
case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
|
|
1167
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1168
|
-
case "TooManyRequestsException":
|
|
1169
|
-
case "com.amazonaws.mediapackagevod#TooManyRequestsException":
|
|
1170
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1171
|
-
case "UnprocessableEntityException":
|
|
1172
|
-
case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
|
|
1173
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
1174
|
-
default:
|
|
1175
|
-
const parsedBody = parsedOutput.body;
|
|
1176
|
-
return throwDefaultError({
|
|
1177
|
-
output,
|
|
1178
|
-
parsedBody,
|
|
1179
|
-
errorCode
|
|
1180
|
-
});
|
|
1181
|
-
}
|
|
1182
|
-
}, "de_ListPackagingConfigurationsCommandError");
|
|
1183
775
|
var de_ListPackagingGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1184
776
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1185
|
-
return
|
|
777
|
+
return de_CommandError(output, context);
|
|
1186
778
|
}
|
|
1187
779
|
const contents = (0, import_smithy_client.map)({
|
|
1188
780
|
$metadata: deserializeMetadata(output)
|
|
@@ -1195,43 +787,9 @@ var de_ListPackagingGroupsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1195
787
|
Object.assign(contents, doc);
|
|
1196
788
|
return contents;
|
|
1197
789
|
}, "de_ListPackagingGroupsCommand");
|
|
1198
|
-
var de_ListPackagingGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1199
|
-
const parsedOutput = {
|
|
1200
|
-
...output,
|
|
1201
|
-
body: await parseErrorBody(output.body, context)
|
|
1202
|
-
};
|
|
1203
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1204
|
-
switch (errorCode) {
|
|
1205
|
-
case "ForbiddenException":
|
|
1206
|
-
case "com.amazonaws.mediapackagevod#ForbiddenException":
|
|
1207
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1208
|
-
case "InternalServerErrorException":
|
|
1209
|
-
case "com.amazonaws.mediapackagevod#InternalServerErrorException":
|
|
1210
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1211
|
-
case "NotFoundException":
|
|
1212
|
-
case "com.amazonaws.mediapackagevod#NotFoundException":
|
|
1213
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1214
|
-
case "ServiceUnavailableException":
|
|
1215
|
-
case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
|
|
1216
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1217
|
-
case "TooManyRequestsException":
|
|
1218
|
-
case "com.amazonaws.mediapackagevod#TooManyRequestsException":
|
|
1219
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1220
|
-
case "UnprocessableEntityException":
|
|
1221
|
-
case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
|
|
1222
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
1223
|
-
default:
|
|
1224
|
-
const parsedBody = parsedOutput.body;
|
|
1225
|
-
return throwDefaultError({
|
|
1226
|
-
output,
|
|
1227
|
-
parsedBody,
|
|
1228
|
-
errorCode
|
|
1229
|
-
});
|
|
1230
|
-
}
|
|
1231
|
-
}, "de_ListPackagingGroupsCommandError");
|
|
1232
790
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1233
791
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1234
|
-
return
|
|
792
|
+
return de_CommandError(output, context);
|
|
1235
793
|
}
|
|
1236
794
|
const contents = (0, import_smithy_client.map)({
|
|
1237
795
|
$metadata: deserializeMetadata(output)
|
|
@@ -1243,22 +801,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1243
801
|
Object.assign(contents, doc);
|
|
1244
802
|
return contents;
|
|
1245
803
|
}, "de_ListTagsForResourceCommand");
|
|
1246
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1247
|
-
const parsedOutput = {
|
|
1248
|
-
...output,
|
|
1249
|
-
body: await parseErrorBody(output.body, context)
|
|
1250
|
-
};
|
|
1251
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1252
|
-
const parsedBody = parsedOutput.body;
|
|
1253
|
-
return throwDefaultError({
|
|
1254
|
-
output,
|
|
1255
|
-
parsedBody,
|
|
1256
|
-
errorCode
|
|
1257
|
-
});
|
|
1258
|
-
}, "de_ListTagsForResourceCommandError");
|
|
1259
804
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1260
805
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1261
|
-
return
|
|
806
|
+
return de_CommandError(output, context);
|
|
1262
807
|
}
|
|
1263
808
|
const contents = (0, import_smithy_client.map)({
|
|
1264
809
|
$metadata: deserializeMetadata(output)
|
|
@@ -1266,22 +811,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1266
811
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1267
812
|
return contents;
|
|
1268
813
|
}, "de_TagResourceCommand");
|
|
1269
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1270
|
-
const parsedOutput = {
|
|
1271
|
-
...output,
|
|
1272
|
-
body: await parseErrorBody(output.body, context)
|
|
1273
|
-
};
|
|
1274
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1275
|
-
const parsedBody = parsedOutput.body;
|
|
1276
|
-
return throwDefaultError({
|
|
1277
|
-
output,
|
|
1278
|
-
parsedBody,
|
|
1279
|
-
errorCode
|
|
1280
|
-
});
|
|
1281
|
-
}, "de_TagResourceCommandError");
|
|
1282
814
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1283
815
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1284
|
-
return
|
|
816
|
+
return de_CommandError(output, context);
|
|
1285
817
|
}
|
|
1286
818
|
const contents = (0, import_smithy_client.map)({
|
|
1287
819
|
$metadata: deserializeMetadata(output)
|
|
@@ -1289,22 +821,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1289
821
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1290
822
|
return contents;
|
|
1291
823
|
}, "de_UntagResourceCommand");
|
|
1292
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1293
|
-
const parsedOutput = {
|
|
1294
|
-
...output,
|
|
1295
|
-
body: await parseErrorBody(output.body, context)
|
|
1296
|
-
};
|
|
1297
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1298
|
-
const parsedBody = parsedOutput.body;
|
|
1299
|
-
return throwDefaultError({
|
|
1300
|
-
output,
|
|
1301
|
-
parsedBody,
|
|
1302
|
-
errorCode
|
|
1303
|
-
});
|
|
1304
|
-
}, "de_UntagResourceCommandError");
|
|
1305
824
|
var de_UpdatePackagingGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1306
825
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1307
|
-
return
|
|
826
|
+
return de_CommandError(output, context);
|
|
1308
827
|
}
|
|
1309
828
|
const contents = (0, import_smithy_client.map)({
|
|
1310
829
|
$metadata: deserializeMetadata(output)
|
|
@@ -1323,7 +842,7 @@ var de_UpdatePackagingGroupCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1323
842
|
Object.assign(contents, doc);
|
|
1324
843
|
return contents;
|
|
1325
844
|
}, "de_UpdatePackagingGroupCommand");
|
|
1326
|
-
var
|
|
845
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1327
846
|
const parsedOutput = {
|
|
1328
847
|
...output,
|
|
1329
848
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1356,7 +875,7 @@ var de_UpdatePackagingGroupCommandError = /* @__PURE__ */ __name(async (output,
|
|
|
1356
875
|
errorCode
|
|
1357
876
|
});
|
|
1358
877
|
}
|
|
1359
|
-
}, "
|
|
878
|
+
}, "de_CommandError");
|
|
1360
879
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(MediaPackageVodServiceException);
|
|
1361
880
|
var de_ForbiddenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1362
881
|
const contents = (0, import_smithy_client.map)({});
|
|
@@ -215,7 +215,7 @@ export const se_UpdatePackagingGroupCommand = async (input, context) => {
|
|
|
215
215
|
};
|
|
216
216
|
export const de_ConfigureLogsCommand = async (output, context) => {
|
|
217
217
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
218
|
-
return
|
|
218
|
+
return de_CommandError(output, context);
|
|
219
219
|
}
|
|
220
220
|
const contents = map({
|
|
221
221
|
$metadata: deserializeMetadata(output),
|
|
@@ -233,43 +233,9 @@ export const de_ConfigureLogsCommand = async (output, context) => {
|
|
|
233
233
|
Object.assign(contents, doc);
|
|
234
234
|
return contents;
|
|
235
235
|
};
|
|
236
|
-
const de_ConfigureLogsCommandError = async (output, context) => {
|
|
237
|
-
const parsedOutput = {
|
|
238
|
-
...output,
|
|
239
|
-
body: await parseErrorBody(output.body, context),
|
|
240
|
-
};
|
|
241
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
242
|
-
switch (errorCode) {
|
|
243
|
-
case "ForbiddenException":
|
|
244
|
-
case "com.amazonaws.mediapackagevod#ForbiddenException":
|
|
245
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
246
|
-
case "InternalServerErrorException":
|
|
247
|
-
case "com.amazonaws.mediapackagevod#InternalServerErrorException":
|
|
248
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
249
|
-
case "NotFoundException":
|
|
250
|
-
case "com.amazonaws.mediapackagevod#NotFoundException":
|
|
251
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
252
|
-
case "ServiceUnavailableException":
|
|
253
|
-
case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
|
|
254
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
255
|
-
case "TooManyRequestsException":
|
|
256
|
-
case "com.amazonaws.mediapackagevod#TooManyRequestsException":
|
|
257
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
258
|
-
case "UnprocessableEntityException":
|
|
259
|
-
case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
|
|
260
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
261
|
-
default:
|
|
262
|
-
const parsedBody = parsedOutput.body;
|
|
263
|
-
return throwDefaultError({
|
|
264
|
-
output,
|
|
265
|
-
parsedBody,
|
|
266
|
-
errorCode,
|
|
267
|
-
});
|
|
268
|
-
}
|
|
269
|
-
};
|
|
270
236
|
export const de_CreateAssetCommand = async (output, context) => {
|
|
271
237
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
272
|
-
return
|
|
238
|
+
return de_CommandError(output, context);
|
|
273
239
|
}
|
|
274
240
|
const contents = map({
|
|
275
241
|
$metadata: deserializeMetadata(output),
|
|
@@ -289,43 +255,9 @@ export const de_CreateAssetCommand = async (output, context) => {
|
|
|
289
255
|
Object.assign(contents, doc);
|
|
290
256
|
return contents;
|
|
291
257
|
};
|
|
292
|
-
const de_CreateAssetCommandError = async (output, context) => {
|
|
293
|
-
const parsedOutput = {
|
|
294
|
-
...output,
|
|
295
|
-
body: await parseErrorBody(output.body, context),
|
|
296
|
-
};
|
|
297
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
298
|
-
switch (errorCode) {
|
|
299
|
-
case "ForbiddenException":
|
|
300
|
-
case "com.amazonaws.mediapackagevod#ForbiddenException":
|
|
301
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
302
|
-
case "InternalServerErrorException":
|
|
303
|
-
case "com.amazonaws.mediapackagevod#InternalServerErrorException":
|
|
304
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
305
|
-
case "NotFoundException":
|
|
306
|
-
case "com.amazonaws.mediapackagevod#NotFoundException":
|
|
307
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
308
|
-
case "ServiceUnavailableException":
|
|
309
|
-
case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
|
|
310
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
311
|
-
case "TooManyRequestsException":
|
|
312
|
-
case "com.amazonaws.mediapackagevod#TooManyRequestsException":
|
|
313
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
314
|
-
case "UnprocessableEntityException":
|
|
315
|
-
case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
|
|
316
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
317
|
-
default:
|
|
318
|
-
const parsedBody = parsedOutput.body;
|
|
319
|
-
return throwDefaultError({
|
|
320
|
-
output,
|
|
321
|
-
parsedBody,
|
|
322
|
-
errorCode,
|
|
323
|
-
});
|
|
324
|
-
}
|
|
325
|
-
};
|
|
326
258
|
export const de_CreatePackagingConfigurationCommand = async (output, context) => {
|
|
327
259
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
328
|
-
return
|
|
260
|
+
return de_CommandError(output, context);
|
|
329
261
|
}
|
|
330
262
|
const contents = map({
|
|
331
263
|
$metadata: deserializeMetadata(output),
|
|
@@ -345,43 +277,9 @@ export const de_CreatePackagingConfigurationCommand = async (output, context) =>
|
|
|
345
277
|
Object.assign(contents, doc);
|
|
346
278
|
return contents;
|
|
347
279
|
};
|
|
348
|
-
const de_CreatePackagingConfigurationCommandError = async (output, context) => {
|
|
349
|
-
const parsedOutput = {
|
|
350
|
-
...output,
|
|
351
|
-
body: await parseErrorBody(output.body, context),
|
|
352
|
-
};
|
|
353
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
354
|
-
switch (errorCode) {
|
|
355
|
-
case "ForbiddenException":
|
|
356
|
-
case "com.amazonaws.mediapackagevod#ForbiddenException":
|
|
357
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
358
|
-
case "InternalServerErrorException":
|
|
359
|
-
case "com.amazonaws.mediapackagevod#InternalServerErrorException":
|
|
360
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
361
|
-
case "NotFoundException":
|
|
362
|
-
case "com.amazonaws.mediapackagevod#NotFoundException":
|
|
363
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
364
|
-
case "ServiceUnavailableException":
|
|
365
|
-
case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
|
|
366
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
367
|
-
case "TooManyRequestsException":
|
|
368
|
-
case "com.amazonaws.mediapackagevod#TooManyRequestsException":
|
|
369
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
370
|
-
case "UnprocessableEntityException":
|
|
371
|
-
case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
|
|
372
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
373
|
-
default:
|
|
374
|
-
const parsedBody = parsedOutput.body;
|
|
375
|
-
return throwDefaultError({
|
|
376
|
-
output,
|
|
377
|
-
parsedBody,
|
|
378
|
-
errorCode,
|
|
379
|
-
});
|
|
380
|
-
}
|
|
381
|
-
};
|
|
382
280
|
export const de_CreatePackagingGroupCommand = async (output, context) => {
|
|
383
281
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
384
|
-
return
|
|
282
|
+
return de_CommandError(output, context);
|
|
385
283
|
}
|
|
386
284
|
const contents = map({
|
|
387
285
|
$metadata: deserializeMetadata(output),
|
|
@@ -399,43 +297,9 @@ export const de_CreatePackagingGroupCommand = async (output, context) => {
|
|
|
399
297
|
Object.assign(contents, doc);
|
|
400
298
|
return contents;
|
|
401
299
|
};
|
|
402
|
-
const de_CreatePackagingGroupCommandError = async (output, context) => {
|
|
403
|
-
const parsedOutput = {
|
|
404
|
-
...output,
|
|
405
|
-
body: await parseErrorBody(output.body, context),
|
|
406
|
-
};
|
|
407
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
408
|
-
switch (errorCode) {
|
|
409
|
-
case "ForbiddenException":
|
|
410
|
-
case "com.amazonaws.mediapackagevod#ForbiddenException":
|
|
411
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
412
|
-
case "InternalServerErrorException":
|
|
413
|
-
case "com.amazonaws.mediapackagevod#InternalServerErrorException":
|
|
414
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
415
|
-
case "NotFoundException":
|
|
416
|
-
case "com.amazonaws.mediapackagevod#NotFoundException":
|
|
417
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
418
|
-
case "ServiceUnavailableException":
|
|
419
|
-
case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
|
|
420
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
421
|
-
case "TooManyRequestsException":
|
|
422
|
-
case "com.amazonaws.mediapackagevod#TooManyRequestsException":
|
|
423
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
424
|
-
case "UnprocessableEntityException":
|
|
425
|
-
case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
|
|
426
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
427
|
-
default:
|
|
428
|
-
const parsedBody = parsedOutput.body;
|
|
429
|
-
return throwDefaultError({
|
|
430
|
-
output,
|
|
431
|
-
parsedBody,
|
|
432
|
-
errorCode,
|
|
433
|
-
});
|
|
434
|
-
}
|
|
435
|
-
};
|
|
436
300
|
export const de_DeleteAssetCommand = async (output, context) => {
|
|
437
301
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
438
|
-
return
|
|
302
|
+
return de_CommandError(output, context);
|
|
439
303
|
}
|
|
440
304
|
const contents = map({
|
|
441
305
|
$metadata: deserializeMetadata(output),
|
|
@@ -443,43 +307,9 @@ export const de_DeleteAssetCommand = async (output, context) => {
|
|
|
443
307
|
await collectBody(output.body, context);
|
|
444
308
|
return contents;
|
|
445
309
|
};
|
|
446
|
-
const de_DeleteAssetCommandError = async (output, context) => {
|
|
447
|
-
const parsedOutput = {
|
|
448
|
-
...output,
|
|
449
|
-
body: await parseErrorBody(output.body, context),
|
|
450
|
-
};
|
|
451
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
452
|
-
switch (errorCode) {
|
|
453
|
-
case "ForbiddenException":
|
|
454
|
-
case "com.amazonaws.mediapackagevod#ForbiddenException":
|
|
455
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
456
|
-
case "InternalServerErrorException":
|
|
457
|
-
case "com.amazonaws.mediapackagevod#InternalServerErrorException":
|
|
458
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
459
|
-
case "NotFoundException":
|
|
460
|
-
case "com.amazonaws.mediapackagevod#NotFoundException":
|
|
461
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
462
|
-
case "ServiceUnavailableException":
|
|
463
|
-
case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
|
|
464
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
465
|
-
case "TooManyRequestsException":
|
|
466
|
-
case "com.amazonaws.mediapackagevod#TooManyRequestsException":
|
|
467
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
468
|
-
case "UnprocessableEntityException":
|
|
469
|
-
case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
|
|
470
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
471
|
-
default:
|
|
472
|
-
const parsedBody = parsedOutput.body;
|
|
473
|
-
return throwDefaultError({
|
|
474
|
-
output,
|
|
475
|
-
parsedBody,
|
|
476
|
-
errorCode,
|
|
477
|
-
});
|
|
478
|
-
}
|
|
479
|
-
};
|
|
480
310
|
export const de_DeletePackagingConfigurationCommand = async (output, context) => {
|
|
481
311
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
482
|
-
return
|
|
312
|
+
return de_CommandError(output, context);
|
|
483
313
|
}
|
|
484
314
|
const contents = map({
|
|
485
315
|
$metadata: deserializeMetadata(output),
|
|
@@ -487,43 +317,9 @@ export const de_DeletePackagingConfigurationCommand = async (output, context) =>
|
|
|
487
317
|
await collectBody(output.body, context);
|
|
488
318
|
return contents;
|
|
489
319
|
};
|
|
490
|
-
const de_DeletePackagingConfigurationCommandError = async (output, context) => {
|
|
491
|
-
const parsedOutput = {
|
|
492
|
-
...output,
|
|
493
|
-
body: await parseErrorBody(output.body, context),
|
|
494
|
-
};
|
|
495
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
496
|
-
switch (errorCode) {
|
|
497
|
-
case "ForbiddenException":
|
|
498
|
-
case "com.amazonaws.mediapackagevod#ForbiddenException":
|
|
499
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
500
|
-
case "InternalServerErrorException":
|
|
501
|
-
case "com.amazonaws.mediapackagevod#InternalServerErrorException":
|
|
502
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
503
|
-
case "NotFoundException":
|
|
504
|
-
case "com.amazonaws.mediapackagevod#NotFoundException":
|
|
505
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
506
|
-
case "ServiceUnavailableException":
|
|
507
|
-
case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
|
|
508
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
509
|
-
case "TooManyRequestsException":
|
|
510
|
-
case "com.amazonaws.mediapackagevod#TooManyRequestsException":
|
|
511
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
512
|
-
case "UnprocessableEntityException":
|
|
513
|
-
case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
|
|
514
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
515
|
-
default:
|
|
516
|
-
const parsedBody = parsedOutput.body;
|
|
517
|
-
return throwDefaultError({
|
|
518
|
-
output,
|
|
519
|
-
parsedBody,
|
|
520
|
-
errorCode,
|
|
521
|
-
});
|
|
522
|
-
}
|
|
523
|
-
};
|
|
524
320
|
export const de_DeletePackagingGroupCommand = async (output, context) => {
|
|
525
321
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
526
|
-
return
|
|
322
|
+
return de_CommandError(output, context);
|
|
527
323
|
}
|
|
528
324
|
const contents = map({
|
|
529
325
|
$metadata: deserializeMetadata(output),
|
|
@@ -531,43 +327,9 @@ export const de_DeletePackagingGroupCommand = async (output, context) => {
|
|
|
531
327
|
await collectBody(output.body, context);
|
|
532
328
|
return contents;
|
|
533
329
|
};
|
|
534
|
-
const de_DeletePackagingGroupCommandError = async (output, context) => {
|
|
535
|
-
const parsedOutput = {
|
|
536
|
-
...output,
|
|
537
|
-
body: await parseErrorBody(output.body, context),
|
|
538
|
-
};
|
|
539
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
540
|
-
switch (errorCode) {
|
|
541
|
-
case "ForbiddenException":
|
|
542
|
-
case "com.amazonaws.mediapackagevod#ForbiddenException":
|
|
543
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
544
|
-
case "InternalServerErrorException":
|
|
545
|
-
case "com.amazonaws.mediapackagevod#InternalServerErrorException":
|
|
546
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
547
|
-
case "NotFoundException":
|
|
548
|
-
case "com.amazonaws.mediapackagevod#NotFoundException":
|
|
549
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
550
|
-
case "ServiceUnavailableException":
|
|
551
|
-
case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
|
|
552
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
553
|
-
case "TooManyRequestsException":
|
|
554
|
-
case "com.amazonaws.mediapackagevod#TooManyRequestsException":
|
|
555
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
556
|
-
case "UnprocessableEntityException":
|
|
557
|
-
case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
|
|
558
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
559
|
-
default:
|
|
560
|
-
const parsedBody = parsedOutput.body;
|
|
561
|
-
return throwDefaultError({
|
|
562
|
-
output,
|
|
563
|
-
parsedBody,
|
|
564
|
-
errorCode,
|
|
565
|
-
});
|
|
566
|
-
}
|
|
567
|
-
};
|
|
568
330
|
export const de_DescribeAssetCommand = async (output, context) => {
|
|
569
331
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
570
|
-
return
|
|
332
|
+
return de_CommandError(output, context);
|
|
571
333
|
}
|
|
572
334
|
const contents = map({
|
|
573
335
|
$metadata: deserializeMetadata(output),
|
|
@@ -587,43 +349,9 @@ export const de_DescribeAssetCommand = async (output, context) => {
|
|
|
587
349
|
Object.assign(contents, doc);
|
|
588
350
|
return contents;
|
|
589
351
|
};
|
|
590
|
-
const de_DescribeAssetCommandError = async (output, context) => {
|
|
591
|
-
const parsedOutput = {
|
|
592
|
-
...output,
|
|
593
|
-
body: await parseErrorBody(output.body, context),
|
|
594
|
-
};
|
|
595
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
596
|
-
switch (errorCode) {
|
|
597
|
-
case "ForbiddenException":
|
|
598
|
-
case "com.amazonaws.mediapackagevod#ForbiddenException":
|
|
599
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
600
|
-
case "InternalServerErrorException":
|
|
601
|
-
case "com.amazonaws.mediapackagevod#InternalServerErrorException":
|
|
602
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
603
|
-
case "NotFoundException":
|
|
604
|
-
case "com.amazonaws.mediapackagevod#NotFoundException":
|
|
605
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
606
|
-
case "ServiceUnavailableException":
|
|
607
|
-
case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
|
|
608
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
609
|
-
case "TooManyRequestsException":
|
|
610
|
-
case "com.amazonaws.mediapackagevod#TooManyRequestsException":
|
|
611
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
612
|
-
case "UnprocessableEntityException":
|
|
613
|
-
case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
|
|
614
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
615
|
-
default:
|
|
616
|
-
const parsedBody = parsedOutput.body;
|
|
617
|
-
return throwDefaultError({
|
|
618
|
-
output,
|
|
619
|
-
parsedBody,
|
|
620
|
-
errorCode,
|
|
621
|
-
});
|
|
622
|
-
}
|
|
623
|
-
};
|
|
624
352
|
export const de_DescribePackagingConfigurationCommand = async (output, context) => {
|
|
625
353
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
626
|
-
return
|
|
354
|
+
return de_CommandError(output, context);
|
|
627
355
|
}
|
|
628
356
|
const contents = map({
|
|
629
357
|
$metadata: deserializeMetadata(output),
|
|
@@ -643,43 +371,9 @@ export const de_DescribePackagingConfigurationCommand = async (output, context)
|
|
|
643
371
|
Object.assign(contents, doc);
|
|
644
372
|
return contents;
|
|
645
373
|
};
|
|
646
|
-
const de_DescribePackagingConfigurationCommandError = async (output, context) => {
|
|
647
|
-
const parsedOutput = {
|
|
648
|
-
...output,
|
|
649
|
-
body: await parseErrorBody(output.body, context),
|
|
650
|
-
};
|
|
651
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
652
|
-
switch (errorCode) {
|
|
653
|
-
case "ForbiddenException":
|
|
654
|
-
case "com.amazonaws.mediapackagevod#ForbiddenException":
|
|
655
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
656
|
-
case "InternalServerErrorException":
|
|
657
|
-
case "com.amazonaws.mediapackagevod#InternalServerErrorException":
|
|
658
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
659
|
-
case "NotFoundException":
|
|
660
|
-
case "com.amazonaws.mediapackagevod#NotFoundException":
|
|
661
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
662
|
-
case "ServiceUnavailableException":
|
|
663
|
-
case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
|
|
664
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
665
|
-
case "TooManyRequestsException":
|
|
666
|
-
case "com.amazonaws.mediapackagevod#TooManyRequestsException":
|
|
667
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
668
|
-
case "UnprocessableEntityException":
|
|
669
|
-
case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
|
|
670
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
671
|
-
default:
|
|
672
|
-
const parsedBody = parsedOutput.body;
|
|
673
|
-
return throwDefaultError({
|
|
674
|
-
output,
|
|
675
|
-
parsedBody,
|
|
676
|
-
errorCode,
|
|
677
|
-
});
|
|
678
|
-
}
|
|
679
|
-
};
|
|
680
374
|
export const de_DescribePackagingGroupCommand = async (output, context) => {
|
|
681
375
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
682
|
-
return
|
|
376
|
+
return de_CommandError(output, context);
|
|
683
377
|
}
|
|
684
378
|
const contents = map({
|
|
685
379
|
$metadata: deserializeMetadata(output),
|
|
@@ -698,43 +392,9 @@ export const de_DescribePackagingGroupCommand = async (output, context) => {
|
|
|
698
392
|
Object.assign(contents, doc);
|
|
699
393
|
return contents;
|
|
700
394
|
};
|
|
701
|
-
const de_DescribePackagingGroupCommandError = async (output, context) => {
|
|
702
|
-
const parsedOutput = {
|
|
703
|
-
...output,
|
|
704
|
-
body: await parseErrorBody(output.body, context),
|
|
705
|
-
};
|
|
706
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
707
|
-
switch (errorCode) {
|
|
708
|
-
case "ForbiddenException":
|
|
709
|
-
case "com.amazonaws.mediapackagevod#ForbiddenException":
|
|
710
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
711
|
-
case "InternalServerErrorException":
|
|
712
|
-
case "com.amazonaws.mediapackagevod#InternalServerErrorException":
|
|
713
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
714
|
-
case "NotFoundException":
|
|
715
|
-
case "com.amazonaws.mediapackagevod#NotFoundException":
|
|
716
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
717
|
-
case "ServiceUnavailableException":
|
|
718
|
-
case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
|
|
719
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
720
|
-
case "TooManyRequestsException":
|
|
721
|
-
case "com.amazonaws.mediapackagevod#TooManyRequestsException":
|
|
722
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
723
|
-
case "UnprocessableEntityException":
|
|
724
|
-
case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
|
|
725
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
726
|
-
default:
|
|
727
|
-
const parsedBody = parsedOutput.body;
|
|
728
|
-
return throwDefaultError({
|
|
729
|
-
output,
|
|
730
|
-
parsedBody,
|
|
731
|
-
errorCode,
|
|
732
|
-
});
|
|
733
|
-
}
|
|
734
|
-
};
|
|
735
395
|
export const de_ListAssetsCommand = async (output, context) => {
|
|
736
396
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
737
|
-
return
|
|
397
|
+
return de_CommandError(output, context);
|
|
738
398
|
}
|
|
739
399
|
const contents = map({
|
|
740
400
|
$metadata: deserializeMetadata(output),
|
|
@@ -747,43 +407,9 @@ export const de_ListAssetsCommand = async (output, context) => {
|
|
|
747
407
|
Object.assign(contents, doc);
|
|
748
408
|
return contents;
|
|
749
409
|
};
|
|
750
|
-
const de_ListAssetsCommandError = async (output, context) => {
|
|
751
|
-
const parsedOutput = {
|
|
752
|
-
...output,
|
|
753
|
-
body: await parseErrorBody(output.body, context),
|
|
754
|
-
};
|
|
755
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
756
|
-
switch (errorCode) {
|
|
757
|
-
case "ForbiddenException":
|
|
758
|
-
case "com.amazonaws.mediapackagevod#ForbiddenException":
|
|
759
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
760
|
-
case "InternalServerErrorException":
|
|
761
|
-
case "com.amazonaws.mediapackagevod#InternalServerErrorException":
|
|
762
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
763
|
-
case "NotFoundException":
|
|
764
|
-
case "com.amazonaws.mediapackagevod#NotFoundException":
|
|
765
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
766
|
-
case "ServiceUnavailableException":
|
|
767
|
-
case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
|
|
768
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
769
|
-
case "TooManyRequestsException":
|
|
770
|
-
case "com.amazonaws.mediapackagevod#TooManyRequestsException":
|
|
771
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
772
|
-
case "UnprocessableEntityException":
|
|
773
|
-
case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
|
|
774
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
775
|
-
default:
|
|
776
|
-
const parsedBody = parsedOutput.body;
|
|
777
|
-
return throwDefaultError({
|
|
778
|
-
output,
|
|
779
|
-
parsedBody,
|
|
780
|
-
errorCode,
|
|
781
|
-
});
|
|
782
|
-
}
|
|
783
|
-
};
|
|
784
410
|
export const de_ListPackagingConfigurationsCommand = async (output, context) => {
|
|
785
411
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
786
|
-
return
|
|
412
|
+
return de_CommandError(output, context);
|
|
787
413
|
}
|
|
788
414
|
const contents = map({
|
|
789
415
|
$metadata: deserializeMetadata(output),
|
|
@@ -796,43 +422,9 @@ export const de_ListPackagingConfigurationsCommand = async (output, context) =>
|
|
|
796
422
|
Object.assign(contents, doc);
|
|
797
423
|
return contents;
|
|
798
424
|
};
|
|
799
|
-
const de_ListPackagingConfigurationsCommandError = async (output, context) => {
|
|
800
|
-
const parsedOutput = {
|
|
801
|
-
...output,
|
|
802
|
-
body: await parseErrorBody(output.body, context),
|
|
803
|
-
};
|
|
804
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
805
|
-
switch (errorCode) {
|
|
806
|
-
case "ForbiddenException":
|
|
807
|
-
case "com.amazonaws.mediapackagevod#ForbiddenException":
|
|
808
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
809
|
-
case "InternalServerErrorException":
|
|
810
|
-
case "com.amazonaws.mediapackagevod#InternalServerErrorException":
|
|
811
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
812
|
-
case "NotFoundException":
|
|
813
|
-
case "com.amazonaws.mediapackagevod#NotFoundException":
|
|
814
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
815
|
-
case "ServiceUnavailableException":
|
|
816
|
-
case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
|
|
817
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
818
|
-
case "TooManyRequestsException":
|
|
819
|
-
case "com.amazonaws.mediapackagevod#TooManyRequestsException":
|
|
820
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
821
|
-
case "UnprocessableEntityException":
|
|
822
|
-
case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
|
|
823
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
824
|
-
default:
|
|
825
|
-
const parsedBody = parsedOutput.body;
|
|
826
|
-
return throwDefaultError({
|
|
827
|
-
output,
|
|
828
|
-
parsedBody,
|
|
829
|
-
errorCode,
|
|
830
|
-
});
|
|
831
|
-
}
|
|
832
|
-
};
|
|
833
425
|
export const de_ListPackagingGroupsCommand = async (output, context) => {
|
|
834
426
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
835
|
-
return
|
|
427
|
+
return de_CommandError(output, context);
|
|
836
428
|
}
|
|
837
429
|
const contents = map({
|
|
838
430
|
$metadata: deserializeMetadata(output),
|
|
@@ -845,43 +437,9 @@ export const de_ListPackagingGroupsCommand = async (output, context) => {
|
|
|
845
437
|
Object.assign(contents, doc);
|
|
846
438
|
return contents;
|
|
847
439
|
};
|
|
848
|
-
const de_ListPackagingGroupsCommandError = async (output, context) => {
|
|
849
|
-
const parsedOutput = {
|
|
850
|
-
...output,
|
|
851
|
-
body: await parseErrorBody(output.body, context),
|
|
852
|
-
};
|
|
853
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
854
|
-
switch (errorCode) {
|
|
855
|
-
case "ForbiddenException":
|
|
856
|
-
case "com.amazonaws.mediapackagevod#ForbiddenException":
|
|
857
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
858
|
-
case "InternalServerErrorException":
|
|
859
|
-
case "com.amazonaws.mediapackagevod#InternalServerErrorException":
|
|
860
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
861
|
-
case "NotFoundException":
|
|
862
|
-
case "com.amazonaws.mediapackagevod#NotFoundException":
|
|
863
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
864
|
-
case "ServiceUnavailableException":
|
|
865
|
-
case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
|
|
866
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
867
|
-
case "TooManyRequestsException":
|
|
868
|
-
case "com.amazonaws.mediapackagevod#TooManyRequestsException":
|
|
869
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
870
|
-
case "UnprocessableEntityException":
|
|
871
|
-
case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
|
|
872
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
873
|
-
default:
|
|
874
|
-
const parsedBody = parsedOutput.body;
|
|
875
|
-
return throwDefaultError({
|
|
876
|
-
output,
|
|
877
|
-
parsedBody,
|
|
878
|
-
errorCode,
|
|
879
|
-
});
|
|
880
|
-
}
|
|
881
|
-
};
|
|
882
440
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
883
441
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
884
|
-
return
|
|
442
|
+
return de_CommandError(output, context);
|
|
885
443
|
}
|
|
886
444
|
const contents = map({
|
|
887
445
|
$metadata: deserializeMetadata(output),
|
|
@@ -893,22 +451,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
893
451
|
Object.assign(contents, doc);
|
|
894
452
|
return contents;
|
|
895
453
|
};
|
|
896
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
897
|
-
const parsedOutput = {
|
|
898
|
-
...output,
|
|
899
|
-
body: await parseErrorBody(output.body, context),
|
|
900
|
-
};
|
|
901
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
902
|
-
const parsedBody = parsedOutput.body;
|
|
903
|
-
return throwDefaultError({
|
|
904
|
-
output,
|
|
905
|
-
parsedBody,
|
|
906
|
-
errorCode,
|
|
907
|
-
});
|
|
908
|
-
};
|
|
909
454
|
export const de_TagResourceCommand = async (output, context) => {
|
|
910
455
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
911
|
-
return
|
|
456
|
+
return de_CommandError(output, context);
|
|
912
457
|
}
|
|
913
458
|
const contents = map({
|
|
914
459
|
$metadata: deserializeMetadata(output),
|
|
@@ -916,22 +461,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
916
461
|
await collectBody(output.body, context);
|
|
917
462
|
return contents;
|
|
918
463
|
};
|
|
919
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
920
|
-
const parsedOutput = {
|
|
921
|
-
...output,
|
|
922
|
-
body: await parseErrorBody(output.body, context),
|
|
923
|
-
};
|
|
924
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
925
|
-
const parsedBody = parsedOutput.body;
|
|
926
|
-
return throwDefaultError({
|
|
927
|
-
output,
|
|
928
|
-
parsedBody,
|
|
929
|
-
errorCode,
|
|
930
|
-
});
|
|
931
|
-
};
|
|
932
464
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
933
465
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
934
|
-
return
|
|
466
|
+
return de_CommandError(output, context);
|
|
935
467
|
}
|
|
936
468
|
const contents = map({
|
|
937
469
|
$metadata: deserializeMetadata(output),
|
|
@@ -939,22 +471,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
939
471
|
await collectBody(output.body, context);
|
|
940
472
|
return contents;
|
|
941
473
|
};
|
|
942
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
943
|
-
const parsedOutput = {
|
|
944
|
-
...output,
|
|
945
|
-
body: await parseErrorBody(output.body, context),
|
|
946
|
-
};
|
|
947
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
948
|
-
const parsedBody = parsedOutput.body;
|
|
949
|
-
return throwDefaultError({
|
|
950
|
-
output,
|
|
951
|
-
parsedBody,
|
|
952
|
-
errorCode,
|
|
953
|
-
});
|
|
954
|
-
};
|
|
955
474
|
export const de_UpdatePackagingGroupCommand = async (output, context) => {
|
|
956
475
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
957
|
-
return
|
|
476
|
+
return de_CommandError(output, context);
|
|
958
477
|
}
|
|
959
478
|
const contents = map({
|
|
960
479
|
$metadata: deserializeMetadata(output),
|
|
@@ -973,7 +492,7 @@ export const de_UpdatePackagingGroupCommand = async (output, context) => {
|
|
|
973
492
|
Object.assign(contents, doc);
|
|
974
493
|
return contents;
|
|
975
494
|
};
|
|
976
|
-
const
|
|
495
|
+
const de_CommandError = async (output, context) => {
|
|
977
496
|
const parsedOutput = {
|
|
978
497
|
...output,
|
|
979
498
|
body: await parseErrorBody(output.body, context),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-mediapackage-vod",
|
|
3
3
|
"description": "AWS SDK for JavaScript Mediapackage Vod Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.507.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-mediapackage-vod",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.507.0",
|
|
24
24
|
"@aws-sdk/core": "3.496.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.507.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.502.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.502.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.502.0",
|