@aws-sdk/client-mediaconnect 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 +79 -1752
- package/dist-es/protocols/Aws_restJson1.js +90 -1763
- package/package.json +3 -3
|
@@ -683,7 +683,7 @@ export const se_UpdateGatewayInstanceCommand = async (input, context) => {
|
|
|
683
683
|
};
|
|
684
684
|
export const de_AddBridgeOutputsCommand = async (output, context) => {
|
|
685
685
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
686
|
-
return
|
|
686
|
+
return de_CommandError(output, context);
|
|
687
687
|
}
|
|
688
688
|
const contents = map({
|
|
689
689
|
$metadata: deserializeMetadata(output),
|
|
@@ -696,46 +696,9 @@ export const de_AddBridgeOutputsCommand = async (output, context) => {
|
|
|
696
696
|
Object.assign(contents, doc);
|
|
697
697
|
return contents;
|
|
698
698
|
};
|
|
699
|
-
const de_AddBridgeOutputsCommandError = async (output, context) => {
|
|
700
|
-
const parsedOutput = {
|
|
701
|
-
...output,
|
|
702
|
-
body: await parseErrorBody(output.body, context),
|
|
703
|
-
};
|
|
704
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
705
|
-
switch (errorCode) {
|
|
706
|
-
case "BadRequestException":
|
|
707
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
708
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
709
|
-
case "ConflictException":
|
|
710
|
-
case "com.amazonaws.mediaconnect#ConflictException":
|
|
711
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
712
|
-
case "ForbiddenException":
|
|
713
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
714
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
715
|
-
case "InternalServerErrorException":
|
|
716
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
717
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
718
|
-
case "NotFoundException":
|
|
719
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
720
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
721
|
-
case "ServiceUnavailableException":
|
|
722
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
723
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
724
|
-
case "TooManyRequestsException":
|
|
725
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
726
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
727
|
-
default:
|
|
728
|
-
const parsedBody = parsedOutput.body;
|
|
729
|
-
return throwDefaultError({
|
|
730
|
-
output,
|
|
731
|
-
parsedBody,
|
|
732
|
-
errorCode,
|
|
733
|
-
});
|
|
734
|
-
}
|
|
735
|
-
};
|
|
736
699
|
export const de_AddBridgeSourcesCommand = async (output, context) => {
|
|
737
700
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
738
|
-
return
|
|
701
|
+
return de_CommandError(output, context);
|
|
739
702
|
}
|
|
740
703
|
const contents = map({
|
|
741
704
|
$metadata: deserializeMetadata(output),
|
|
@@ -748,46 +711,9 @@ export const de_AddBridgeSourcesCommand = async (output, context) => {
|
|
|
748
711
|
Object.assign(contents, doc);
|
|
749
712
|
return contents;
|
|
750
713
|
};
|
|
751
|
-
const de_AddBridgeSourcesCommandError = async (output, context) => {
|
|
752
|
-
const parsedOutput = {
|
|
753
|
-
...output,
|
|
754
|
-
body: await parseErrorBody(output.body, context),
|
|
755
|
-
};
|
|
756
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
757
|
-
switch (errorCode) {
|
|
758
|
-
case "BadRequestException":
|
|
759
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
760
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
761
|
-
case "ConflictException":
|
|
762
|
-
case "com.amazonaws.mediaconnect#ConflictException":
|
|
763
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
764
|
-
case "ForbiddenException":
|
|
765
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
766
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
767
|
-
case "InternalServerErrorException":
|
|
768
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
769
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
770
|
-
case "NotFoundException":
|
|
771
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
772
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
773
|
-
case "ServiceUnavailableException":
|
|
774
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
775
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
776
|
-
case "TooManyRequestsException":
|
|
777
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
778
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
779
|
-
default:
|
|
780
|
-
const parsedBody = parsedOutput.body;
|
|
781
|
-
return throwDefaultError({
|
|
782
|
-
output,
|
|
783
|
-
parsedBody,
|
|
784
|
-
errorCode,
|
|
785
|
-
});
|
|
786
|
-
}
|
|
787
|
-
};
|
|
788
714
|
export const de_AddFlowMediaStreamsCommand = async (output, context) => {
|
|
789
715
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
790
|
-
return
|
|
716
|
+
return de_CommandError(output, context);
|
|
791
717
|
}
|
|
792
718
|
const contents = map({
|
|
793
719
|
$metadata: deserializeMetadata(output),
|
|
@@ -800,43 +726,9 @@ export const de_AddFlowMediaStreamsCommand = async (output, context) => {
|
|
|
800
726
|
Object.assign(contents, doc);
|
|
801
727
|
return contents;
|
|
802
728
|
};
|
|
803
|
-
const de_AddFlowMediaStreamsCommandError = async (output, context) => {
|
|
804
|
-
const parsedOutput = {
|
|
805
|
-
...output,
|
|
806
|
-
body: await parseErrorBody(output.body, context),
|
|
807
|
-
};
|
|
808
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
809
|
-
switch (errorCode) {
|
|
810
|
-
case "BadRequestException":
|
|
811
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
812
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
813
|
-
case "ForbiddenException":
|
|
814
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
815
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
816
|
-
case "InternalServerErrorException":
|
|
817
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
818
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
819
|
-
case "NotFoundException":
|
|
820
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
821
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
822
|
-
case "ServiceUnavailableException":
|
|
823
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
824
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
825
|
-
case "TooManyRequestsException":
|
|
826
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
827
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
828
|
-
default:
|
|
829
|
-
const parsedBody = parsedOutput.body;
|
|
830
|
-
return throwDefaultError({
|
|
831
|
-
output,
|
|
832
|
-
parsedBody,
|
|
833
|
-
errorCode,
|
|
834
|
-
});
|
|
835
|
-
}
|
|
836
|
-
};
|
|
837
729
|
export const de_AddFlowOutputsCommand = async (output, context) => {
|
|
838
730
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
839
|
-
return
|
|
731
|
+
return de_CommandError(output, context);
|
|
840
732
|
}
|
|
841
733
|
const contents = map({
|
|
842
734
|
$metadata: deserializeMetadata(output),
|
|
@@ -849,46 +741,9 @@ export const de_AddFlowOutputsCommand = async (output, context) => {
|
|
|
849
741
|
Object.assign(contents, doc);
|
|
850
742
|
return contents;
|
|
851
743
|
};
|
|
852
|
-
const de_AddFlowOutputsCommandError = async (output, context) => {
|
|
853
|
-
const parsedOutput = {
|
|
854
|
-
...output,
|
|
855
|
-
body: await parseErrorBody(output.body, context),
|
|
856
|
-
};
|
|
857
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
858
|
-
switch (errorCode) {
|
|
859
|
-
case "AddFlowOutputs420Exception":
|
|
860
|
-
case "com.amazonaws.mediaconnect#AddFlowOutputs420Exception":
|
|
861
|
-
throw await de_AddFlowOutputs420ExceptionRes(parsedOutput, context);
|
|
862
|
-
case "BadRequestException":
|
|
863
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
864
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
865
|
-
case "ForbiddenException":
|
|
866
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
867
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
868
|
-
case "InternalServerErrorException":
|
|
869
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
870
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
871
|
-
case "NotFoundException":
|
|
872
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
873
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
874
|
-
case "ServiceUnavailableException":
|
|
875
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
876
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
877
|
-
case "TooManyRequestsException":
|
|
878
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
879
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
880
|
-
default:
|
|
881
|
-
const parsedBody = parsedOutput.body;
|
|
882
|
-
return throwDefaultError({
|
|
883
|
-
output,
|
|
884
|
-
parsedBody,
|
|
885
|
-
errorCode,
|
|
886
|
-
});
|
|
887
|
-
}
|
|
888
|
-
};
|
|
889
744
|
export const de_AddFlowSourcesCommand = async (output, context) => {
|
|
890
745
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
891
|
-
return
|
|
746
|
+
return de_CommandError(output, context);
|
|
892
747
|
}
|
|
893
748
|
const contents = map({
|
|
894
749
|
$metadata: deserializeMetadata(output),
|
|
@@ -901,43 +756,9 @@ export const de_AddFlowSourcesCommand = async (output, context) => {
|
|
|
901
756
|
Object.assign(contents, doc);
|
|
902
757
|
return contents;
|
|
903
758
|
};
|
|
904
|
-
const de_AddFlowSourcesCommandError = async (output, context) => {
|
|
905
|
-
const parsedOutput = {
|
|
906
|
-
...output,
|
|
907
|
-
body: await parseErrorBody(output.body, context),
|
|
908
|
-
};
|
|
909
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
910
|
-
switch (errorCode) {
|
|
911
|
-
case "BadRequestException":
|
|
912
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
913
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
914
|
-
case "ForbiddenException":
|
|
915
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
916
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
917
|
-
case "InternalServerErrorException":
|
|
918
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
919
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
920
|
-
case "NotFoundException":
|
|
921
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
922
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
923
|
-
case "ServiceUnavailableException":
|
|
924
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
925
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
926
|
-
case "TooManyRequestsException":
|
|
927
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
928
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
929
|
-
default:
|
|
930
|
-
const parsedBody = parsedOutput.body;
|
|
931
|
-
return throwDefaultError({
|
|
932
|
-
output,
|
|
933
|
-
parsedBody,
|
|
934
|
-
errorCode,
|
|
935
|
-
});
|
|
936
|
-
}
|
|
937
|
-
};
|
|
938
759
|
export const de_AddFlowVpcInterfacesCommand = async (output, context) => {
|
|
939
760
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
940
|
-
return
|
|
761
|
+
return de_CommandError(output, context);
|
|
941
762
|
}
|
|
942
763
|
const contents = map({
|
|
943
764
|
$metadata: deserializeMetadata(output),
|
|
@@ -950,43 +771,9 @@ export const de_AddFlowVpcInterfacesCommand = async (output, context) => {
|
|
|
950
771
|
Object.assign(contents, doc);
|
|
951
772
|
return contents;
|
|
952
773
|
};
|
|
953
|
-
const de_AddFlowVpcInterfacesCommandError = async (output, context) => {
|
|
954
|
-
const parsedOutput = {
|
|
955
|
-
...output,
|
|
956
|
-
body: await parseErrorBody(output.body, context),
|
|
957
|
-
};
|
|
958
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
959
|
-
switch (errorCode) {
|
|
960
|
-
case "BadRequestException":
|
|
961
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
962
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
963
|
-
case "ForbiddenException":
|
|
964
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
965
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
966
|
-
case "InternalServerErrorException":
|
|
967
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
968
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
969
|
-
case "NotFoundException":
|
|
970
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
971
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
972
|
-
case "ServiceUnavailableException":
|
|
973
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
974
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
975
|
-
case "TooManyRequestsException":
|
|
976
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
977
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
978
|
-
default:
|
|
979
|
-
const parsedBody = parsedOutput.body;
|
|
980
|
-
return throwDefaultError({
|
|
981
|
-
output,
|
|
982
|
-
parsedBody,
|
|
983
|
-
errorCode,
|
|
984
|
-
});
|
|
985
|
-
}
|
|
986
|
-
};
|
|
987
774
|
export const de_CreateBridgeCommand = async (output, context) => {
|
|
988
775
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
989
|
-
return
|
|
776
|
+
return de_CommandError(output, context);
|
|
990
777
|
}
|
|
991
778
|
const contents = map({
|
|
992
779
|
$metadata: deserializeMetadata(output),
|
|
@@ -998,46 +785,9 @@ export const de_CreateBridgeCommand = async (output, context) => {
|
|
|
998
785
|
Object.assign(contents, doc);
|
|
999
786
|
return contents;
|
|
1000
787
|
};
|
|
1001
|
-
const de_CreateBridgeCommandError = async (output, context) => {
|
|
1002
|
-
const parsedOutput = {
|
|
1003
|
-
...output,
|
|
1004
|
-
body: await parseErrorBody(output.body, context),
|
|
1005
|
-
};
|
|
1006
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1007
|
-
switch (errorCode) {
|
|
1008
|
-
case "BadRequestException":
|
|
1009
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1010
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1011
|
-
case "ConflictException":
|
|
1012
|
-
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1013
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1014
|
-
case "CreateBridge420Exception":
|
|
1015
|
-
case "com.amazonaws.mediaconnect#CreateBridge420Exception":
|
|
1016
|
-
throw await de_CreateBridge420ExceptionRes(parsedOutput, context);
|
|
1017
|
-
case "ForbiddenException":
|
|
1018
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1019
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1020
|
-
case "InternalServerErrorException":
|
|
1021
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1022
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1023
|
-
case "ServiceUnavailableException":
|
|
1024
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1025
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1026
|
-
case "TooManyRequestsException":
|
|
1027
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1028
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1029
|
-
default:
|
|
1030
|
-
const parsedBody = parsedOutput.body;
|
|
1031
|
-
return throwDefaultError({
|
|
1032
|
-
output,
|
|
1033
|
-
parsedBody,
|
|
1034
|
-
errorCode,
|
|
1035
|
-
});
|
|
1036
|
-
}
|
|
1037
|
-
};
|
|
1038
788
|
export const de_CreateFlowCommand = async (output, context) => {
|
|
1039
789
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1040
|
-
return
|
|
790
|
+
return de_CommandError(output, context);
|
|
1041
791
|
}
|
|
1042
792
|
const contents = map({
|
|
1043
793
|
$metadata: deserializeMetadata(output),
|
|
@@ -1049,43 +799,9 @@ export const de_CreateFlowCommand = async (output, context) => {
|
|
|
1049
799
|
Object.assign(contents, doc);
|
|
1050
800
|
return contents;
|
|
1051
801
|
};
|
|
1052
|
-
const de_CreateFlowCommandError = async (output, context) => {
|
|
1053
|
-
const parsedOutput = {
|
|
1054
|
-
...output,
|
|
1055
|
-
body: await parseErrorBody(output.body, context),
|
|
1056
|
-
};
|
|
1057
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1058
|
-
switch (errorCode) {
|
|
1059
|
-
case "BadRequestException":
|
|
1060
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1061
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1062
|
-
case "CreateFlow420Exception":
|
|
1063
|
-
case "com.amazonaws.mediaconnect#CreateFlow420Exception":
|
|
1064
|
-
throw await de_CreateFlow420ExceptionRes(parsedOutput, context);
|
|
1065
|
-
case "ForbiddenException":
|
|
1066
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1067
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1068
|
-
case "InternalServerErrorException":
|
|
1069
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1070
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1071
|
-
case "ServiceUnavailableException":
|
|
1072
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1073
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1074
|
-
case "TooManyRequestsException":
|
|
1075
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1076
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1077
|
-
default:
|
|
1078
|
-
const parsedBody = parsedOutput.body;
|
|
1079
|
-
return throwDefaultError({
|
|
1080
|
-
output,
|
|
1081
|
-
parsedBody,
|
|
1082
|
-
errorCode,
|
|
1083
|
-
});
|
|
1084
|
-
}
|
|
1085
|
-
};
|
|
1086
802
|
export const de_CreateGatewayCommand = async (output, context) => {
|
|
1087
803
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1088
|
-
return
|
|
804
|
+
return de_CommandError(output, context);
|
|
1089
805
|
}
|
|
1090
806
|
const contents = map({
|
|
1091
807
|
$metadata: deserializeMetadata(output),
|
|
@@ -1097,46 +813,9 @@ export const de_CreateGatewayCommand = async (output, context) => {
|
|
|
1097
813
|
Object.assign(contents, doc);
|
|
1098
814
|
return contents;
|
|
1099
815
|
};
|
|
1100
|
-
const de_CreateGatewayCommandError = 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 "BadRequestException":
|
|
1108
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1109
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1110
|
-
case "ConflictException":
|
|
1111
|
-
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1112
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1113
|
-
case "CreateGateway420Exception":
|
|
1114
|
-
case "com.amazonaws.mediaconnect#CreateGateway420Exception":
|
|
1115
|
-
throw await de_CreateGateway420ExceptionRes(parsedOutput, context);
|
|
1116
|
-
case "ForbiddenException":
|
|
1117
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1118
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1119
|
-
case "InternalServerErrorException":
|
|
1120
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1121
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1122
|
-
case "ServiceUnavailableException":
|
|
1123
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1124
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1125
|
-
case "TooManyRequestsException":
|
|
1126
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1127
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1128
|
-
default:
|
|
1129
|
-
const parsedBody = parsedOutput.body;
|
|
1130
|
-
return throwDefaultError({
|
|
1131
|
-
output,
|
|
1132
|
-
parsedBody,
|
|
1133
|
-
errorCode,
|
|
1134
|
-
});
|
|
1135
|
-
}
|
|
1136
|
-
};
|
|
1137
816
|
export const de_DeleteBridgeCommand = async (output, context) => {
|
|
1138
817
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1139
|
-
return
|
|
818
|
+
return de_CommandError(output, context);
|
|
1140
819
|
}
|
|
1141
820
|
const contents = map({
|
|
1142
821
|
$metadata: deserializeMetadata(output),
|
|
@@ -1148,46 +827,9 @@ export const de_DeleteBridgeCommand = async (output, context) => {
|
|
|
1148
827
|
Object.assign(contents, doc);
|
|
1149
828
|
return contents;
|
|
1150
829
|
};
|
|
1151
|
-
const de_DeleteBridgeCommandError = async (output, context) => {
|
|
1152
|
-
const parsedOutput = {
|
|
1153
|
-
...output,
|
|
1154
|
-
body: await parseErrorBody(output.body, context),
|
|
1155
|
-
};
|
|
1156
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1157
|
-
switch (errorCode) {
|
|
1158
|
-
case "BadRequestException":
|
|
1159
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1160
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1161
|
-
case "ConflictException":
|
|
1162
|
-
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1163
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1164
|
-
case "ForbiddenException":
|
|
1165
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1166
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1167
|
-
case "InternalServerErrorException":
|
|
1168
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1169
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1170
|
-
case "NotFoundException":
|
|
1171
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1172
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1173
|
-
case "ServiceUnavailableException":
|
|
1174
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1175
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1176
|
-
case "TooManyRequestsException":
|
|
1177
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1178
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1179
|
-
default:
|
|
1180
|
-
const parsedBody = parsedOutput.body;
|
|
1181
|
-
return throwDefaultError({
|
|
1182
|
-
output,
|
|
1183
|
-
parsedBody,
|
|
1184
|
-
errorCode,
|
|
1185
|
-
});
|
|
1186
|
-
}
|
|
1187
|
-
};
|
|
1188
830
|
export const de_DeleteFlowCommand = async (output, context) => {
|
|
1189
831
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1190
|
-
return
|
|
832
|
+
return de_CommandError(output, context);
|
|
1191
833
|
}
|
|
1192
834
|
const contents = map({
|
|
1193
835
|
$metadata: deserializeMetadata(output),
|
|
@@ -1200,43 +842,9 @@ export const de_DeleteFlowCommand = async (output, context) => {
|
|
|
1200
842
|
Object.assign(contents, doc);
|
|
1201
843
|
return contents;
|
|
1202
844
|
};
|
|
1203
|
-
const de_DeleteFlowCommandError = 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.mediaconnect#BadRequestException":
|
|
1212
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1213
|
-
case "ForbiddenException":
|
|
1214
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1215
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1216
|
-
case "InternalServerErrorException":
|
|
1217
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1218
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1219
|
-
case "NotFoundException":
|
|
1220
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1221
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1222
|
-
case "ServiceUnavailableException":
|
|
1223
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1224
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1225
|
-
case "TooManyRequestsException":
|
|
1226
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1227
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1228
|
-
default:
|
|
1229
|
-
const parsedBody = parsedOutput.body;
|
|
1230
|
-
return throwDefaultError({
|
|
1231
|
-
output,
|
|
1232
|
-
parsedBody,
|
|
1233
|
-
errorCode,
|
|
1234
|
-
});
|
|
1235
|
-
}
|
|
1236
|
-
};
|
|
1237
845
|
export const de_DeleteGatewayCommand = async (output, context) => {
|
|
1238
846
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1239
|
-
return
|
|
847
|
+
return de_CommandError(output, context);
|
|
1240
848
|
}
|
|
1241
849
|
const contents = map({
|
|
1242
850
|
$metadata: deserializeMetadata(output),
|
|
@@ -1248,46 +856,9 @@ export const de_DeleteGatewayCommand = async (output, context) => {
|
|
|
1248
856
|
Object.assign(contents, doc);
|
|
1249
857
|
return contents;
|
|
1250
858
|
};
|
|
1251
|
-
const de_DeleteGatewayCommandError = async (output, context) => {
|
|
1252
|
-
const parsedOutput = {
|
|
1253
|
-
...output,
|
|
1254
|
-
body: await parseErrorBody(output.body, context),
|
|
1255
|
-
};
|
|
1256
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1257
|
-
switch (errorCode) {
|
|
1258
|
-
case "BadRequestException":
|
|
1259
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1260
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1261
|
-
case "ConflictException":
|
|
1262
|
-
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1263
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1264
|
-
case "ForbiddenException":
|
|
1265
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1266
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1267
|
-
case "InternalServerErrorException":
|
|
1268
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1269
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1270
|
-
case "NotFoundException":
|
|
1271
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1272
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1273
|
-
case "ServiceUnavailableException":
|
|
1274
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1275
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1276
|
-
case "TooManyRequestsException":
|
|
1277
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1278
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1279
|
-
default:
|
|
1280
|
-
const parsedBody = parsedOutput.body;
|
|
1281
|
-
return throwDefaultError({
|
|
1282
|
-
output,
|
|
1283
|
-
parsedBody,
|
|
1284
|
-
errorCode,
|
|
1285
|
-
});
|
|
1286
|
-
}
|
|
1287
|
-
};
|
|
1288
859
|
export const de_DeregisterGatewayInstanceCommand = async (output, context) => {
|
|
1289
860
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1290
|
-
return
|
|
861
|
+
return de_CommandError(output, context);
|
|
1291
862
|
}
|
|
1292
863
|
const contents = map({
|
|
1293
864
|
$metadata: deserializeMetadata(output),
|
|
@@ -1300,46 +871,9 @@ export const de_DeregisterGatewayInstanceCommand = async (output, context) => {
|
|
|
1300
871
|
Object.assign(contents, doc);
|
|
1301
872
|
return contents;
|
|
1302
873
|
};
|
|
1303
|
-
const de_DeregisterGatewayInstanceCommandError = async (output, context) => {
|
|
1304
|
-
const parsedOutput = {
|
|
1305
|
-
...output,
|
|
1306
|
-
body: await parseErrorBody(output.body, context),
|
|
1307
|
-
};
|
|
1308
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1309
|
-
switch (errorCode) {
|
|
1310
|
-
case "BadRequestException":
|
|
1311
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1312
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1313
|
-
case "ConflictException":
|
|
1314
|
-
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1315
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1316
|
-
case "ForbiddenException":
|
|
1317
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1318
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1319
|
-
case "InternalServerErrorException":
|
|
1320
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1321
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1322
|
-
case "NotFoundException":
|
|
1323
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1324
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1325
|
-
case "ServiceUnavailableException":
|
|
1326
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1327
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1328
|
-
case "TooManyRequestsException":
|
|
1329
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1330
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1331
|
-
default:
|
|
1332
|
-
const parsedBody = parsedOutput.body;
|
|
1333
|
-
return throwDefaultError({
|
|
1334
|
-
output,
|
|
1335
|
-
parsedBody,
|
|
1336
|
-
errorCode,
|
|
1337
|
-
});
|
|
1338
|
-
}
|
|
1339
|
-
};
|
|
1340
874
|
export const de_DescribeBridgeCommand = async (output, context) => {
|
|
1341
875
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1342
|
-
return
|
|
876
|
+
return de_CommandError(output, context);
|
|
1343
877
|
}
|
|
1344
878
|
const contents = map({
|
|
1345
879
|
$metadata: deserializeMetadata(output),
|
|
@@ -1351,46 +885,9 @@ export const de_DescribeBridgeCommand = async (output, context) => {
|
|
|
1351
885
|
Object.assign(contents, doc);
|
|
1352
886
|
return contents;
|
|
1353
887
|
};
|
|
1354
|
-
const de_DescribeBridgeCommandError = async (output, context) => {
|
|
1355
|
-
const parsedOutput = {
|
|
1356
|
-
...output,
|
|
1357
|
-
body: await parseErrorBody(output.body, context),
|
|
1358
|
-
};
|
|
1359
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1360
|
-
switch (errorCode) {
|
|
1361
|
-
case "BadRequestException":
|
|
1362
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1363
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1364
|
-
case "ConflictException":
|
|
1365
|
-
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1366
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1367
|
-
case "ForbiddenException":
|
|
1368
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1369
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1370
|
-
case "InternalServerErrorException":
|
|
1371
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1372
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1373
|
-
case "NotFoundException":
|
|
1374
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1375
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1376
|
-
case "ServiceUnavailableException":
|
|
1377
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1378
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1379
|
-
case "TooManyRequestsException":
|
|
1380
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1381
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1382
|
-
default:
|
|
1383
|
-
const parsedBody = parsedOutput.body;
|
|
1384
|
-
return throwDefaultError({
|
|
1385
|
-
output,
|
|
1386
|
-
parsedBody,
|
|
1387
|
-
errorCode,
|
|
1388
|
-
});
|
|
1389
|
-
}
|
|
1390
|
-
};
|
|
1391
888
|
export const de_DescribeFlowCommand = async (output, context) => {
|
|
1392
889
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1393
|
-
return
|
|
890
|
+
return de_CommandError(output, context);
|
|
1394
891
|
}
|
|
1395
892
|
const contents = map({
|
|
1396
893
|
$metadata: deserializeMetadata(output),
|
|
@@ -1403,43 +900,9 @@ export const de_DescribeFlowCommand = async (output, context) => {
|
|
|
1403
900
|
Object.assign(contents, doc);
|
|
1404
901
|
return contents;
|
|
1405
902
|
};
|
|
1406
|
-
const de_DescribeFlowCommandError = async (output, context) => {
|
|
1407
|
-
const parsedOutput = {
|
|
1408
|
-
...output,
|
|
1409
|
-
body: await parseErrorBody(output.body, context),
|
|
1410
|
-
};
|
|
1411
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1412
|
-
switch (errorCode) {
|
|
1413
|
-
case "BadRequestException":
|
|
1414
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1415
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1416
|
-
case "ForbiddenException":
|
|
1417
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1418
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1419
|
-
case "InternalServerErrorException":
|
|
1420
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1421
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1422
|
-
case "NotFoundException":
|
|
1423
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1424
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1425
|
-
case "ServiceUnavailableException":
|
|
1426
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1427
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1428
|
-
case "TooManyRequestsException":
|
|
1429
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1430
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1431
|
-
default:
|
|
1432
|
-
const parsedBody = parsedOutput.body;
|
|
1433
|
-
return throwDefaultError({
|
|
1434
|
-
output,
|
|
1435
|
-
parsedBody,
|
|
1436
|
-
errorCode,
|
|
1437
|
-
});
|
|
1438
|
-
}
|
|
1439
|
-
};
|
|
1440
903
|
export const de_DescribeFlowSourceMetadataCommand = async (output, context) => {
|
|
1441
904
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1442
|
-
return
|
|
905
|
+
return de_CommandError(output, context);
|
|
1443
906
|
}
|
|
1444
907
|
const contents = map({
|
|
1445
908
|
$metadata: deserializeMetadata(output),
|
|
@@ -1454,43 +917,9 @@ export const de_DescribeFlowSourceMetadataCommand = async (output, context) => {
|
|
|
1454
917
|
Object.assign(contents, doc);
|
|
1455
918
|
return contents;
|
|
1456
919
|
};
|
|
1457
|
-
const de_DescribeFlowSourceMetadataCommandError = async (output, context) => {
|
|
1458
|
-
const parsedOutput = {
|
|
1459
|
-
...output,
|
|
1460
|
-
body: await parseErrorBody(output.body, context),
|
|
1461
|
-
};
|
|
1462
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1463
|
-
switch (errorCode) {
|
|
1464
|
-
case "BadRequestException":
|
|
1465
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1466
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1467
|
-
case "ForbiddenException":
|
|
1468
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1469
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1470
|
-
case "InternalServerErrorException":
|
|
1471
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1472
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1473
|
-
case "NotFoundException":
|
|
1474
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1475
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1476
|
-
case "ServiceUnavailableException":
|
|
1477
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1478
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1479
|
-
case "TooManyRequestsException":
|
|
1480
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1481
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1482
|
-
default:
|
|
1483
|
-
const parsedBody = parsedOutput.body;
|
|
1484
|
-
return throwDefaultError({
|
|
1485
|
-
output,
|
|
1486
|
-
parsedBody,
|
|
1487
|
-
errorCode,
|
|
1488
|
-
});
|
|
1489
|
-
}
|
|
1490
|
-
};
|
|
1491
920
|
export const de_DescribeGatewayCommand = async (output, context) => {
|
|
1492
921
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1493
|
-
return
|
|
922
|
+
return de_CommandError(output, context);
|
|
1494
923
|
}
|
|
1495
924
|
const contents = map({
|
|
1496
925
|
$metadata: deserializeMetadata(output),
|
|
@@ -1502,142 +931,37 @@ export const de_DescribeGatewayCommand = async (output, context) => {
|
|
|
1502
931
|
Object.assign(contents, doc);
|
|
1503
932
|
return contents;
|
|
1504
933
|
};
|
|
1505
|
-
const de_DescribeGatewayCommandError = async (output, context) => {
|
|
1506
|
-
const parsedOutput = {
|
|
1507
|
-
...output,
|
|
1508
|
-
body: await parseErrorBody(output.body, context),
|
|
1509
|
-
};
|
|
1510
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1511
|
-
switch (errorCode) {
|
|
1512
|
-
case "BadRequestException":
|
|
1513
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1514
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1515
|
-
case "ConflictException":
|
|
1516
|
-
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1517
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1518
|
-
case "ForbiddenException":
|
|
1519
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1520
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1521
|
-
case "InternalServerErrorException":
|
|
1522
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1523
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1524
|
-
case "NotFoundException":
|
|
1525
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1526
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1527
|
-
case "ServiceUnavailableException":
|
|
1528
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1529
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1530
|
-
case "TooManyRequestsException":
|
|
1531
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1532
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1533
|
-
default:
|
|
1534
|
-
const parsedBody = parsedOutput.body;
|
|
1535
|
-
return throwDefaultError({
|
|
1536
|
-
output,
|
|
1537
|
-
parsedBody,
|
|
1538
|
-
errorCode,
|
|
1539
|
-
});
|
|
1540
|
-
}
|
|
1541
|
-
};
|
|
1542
934
|
export const de_DescribeGatewayInstanceCommand = async (output, context) => {
|
|
1543
935
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1544
|
-
return
|
|
1545
|
-
}
|
|
1546
|
-
const contents = map({
|
|
1547
|
-
$metadata: deserializeMetadata(output),
|
|
1548
|
-
});
|
|
1549
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1550
|
-
const doc = take(data, {
|
|
1551
|
-
GatewayInstance: [, (_) => de_GatewayInstance(_, context), `gatewayInstance`],
|
|
1552
|
-
});
|
|
1553
|
-
Object.assign(contents, doc);
|
|
1554
|
-
return contents;
|
|
1555
|
-
};
|
|
1556
|
-
const de_DescribeGatewayInstanceCommandError = async (output, context) => {
|
|
1557
|
-
const parsedOutput = {
|
|
1558
|
-
...output,
|
|
1559
|
-
body: await parseErrorBody(output.body, context),
|
|
1560
|
-
};
|
|
1561
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1562
|
-
switch (errorCode) {
|
|
1563
|
-
case "BadRequestException":
|
|
1564
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1565
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1566
|
-
case "ConflictException":
|
|
1567
|
-
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1568
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1569
|
-
case "ForbiddenException":
|
|
1570
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1571
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1572
|
-
case "InternalServerErrorException":
|
|
1573
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1574
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1575
|
-
case "NotFoundException":
|
|
1576
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1577
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1578
|
-
case "ServiceUnavailableException":
|
|
1579
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1580
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1581
|
-
case "TooManyRequestsException":
|
|
1582
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1583
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1584
|
-
default:
|
|
1585
|
-
const parsedBody = parsedOutput.body;
|
|
1586
|
-
return throwDefaultError({
|
|
1587
|
-
output,
|
|
1588
|
-
parsedBody,
|
|
1589
|
-
errorCode,
|
|
1590
|
-
});
|
|
1591
|
-
}
|
|
1592
|
-
};
|
|
1593
|
-
export const de_DescribeOfferingCommand = async (output, context) => {
|
|
1594
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1595
|
-
return de_DescribeOfferingCommandError(output, context);
|
|
936
|
+
return de_CommandError(output, context);
|
|
1596
937
|
}
|
|
1597
938
|
const contents = map({
|
|
1598
939
|
$metadata: deserializeMetadata(output),
|
|
1599
940
|
});
|
|
1600
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1601
|
-
const doc = take(data, {
|
|
1602
|
-
|
|
1603
|
-
});
|
|
1604
|
-
Object.assign(contents, doc);
|
|
1605
|
-
return contents;
|
|
1606
|
-
};
|
|
1607
|
-
const
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
body: await parseErrorBody(output.body, context),
|
|
1611
|
-
};
|
|
1612
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1613
|
-
switch (errorCode) {
|
|
1614
|
-
case "BadRequestException":
|
|
1615
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1616
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1617
|
-
case "InternalServerErrorException":
|
|
1618
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1619
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1620
|
-
case "NotFoundException":
|
|
1621
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1622
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1623
|
-
case "ServiceUnavailableException":
|
|
1624
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1625
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1626
|
-
case "TooManyRequestsException":
|
|
1627
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1628
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1629
|
-
default:
|
|
1630
|
-
const parsedBody = parsedOutput.body;
|
|
1631
|
-
return throwDefaultError({
|
|
1632
|
-
output,
|
|
1633
|
-
parsedBody,
|
|
1634
|
-
errorCode,
|
|
1635
|
-
});
|
|
941
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
942
|
+
const doc = take(data, {
|
|
943
|
+
GatewayInstance: [, (_) => de_GatewayInstance(_, context), `gatewayInstance`],
|
|
944
|
+
});
|
|
945
|
+
Object.assign(contents, doc);
|
|
946
|
+
return contents;
|
|
947
|
+
};
|
|
948
|
+
export const de_DescribeOfferingCommand = async (output, context) => {
|
|
949
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
950
|
+
return de_CommandError(output, context);
|
|
1636
951
|
}
|
|
952
|
+
const contents = map({
|
|
953
|
+
$metadata: deserializeMetadata(output),
|
|
954
|
+
});
|
|
955
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
956
|
+
const doc = take(data, {
|
|
957
|
+
Offering: [, (_) => de_Offering(_, context), `offering`],
|
|
958
|
+
});
|
|
959
|
+
Object.assign(contents, doc);
|
|
960
|
+
return contents;
|
|
1637
961
|
};
|
|
1638
962
|
export const de_DescribeReservationCommand = async (output, context) => {
|
|
1639
963
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1640
|
-
return
|
|
964
|
+
return de_CommandError(output, context);
|
|
1641
965
|
}
|
|
1642
966
|
const contents = map({
|
|
1643
967
|
$metadata: deserializeMetadata(output),
|
|
@@ -1649,40 +973,9 @@ export const de_DescribeReservationCommand = async (output, context) => {
|
|
|
1649
973
|
Object.assign(contents, doc);
|
|
1650
974
|
return contents;
|
|
1651
975
|
};
|
|
1652
|
-
const de_DescribeReservationCommandError = async (output, context) => {
|
|
1653
|
-
const parsedOutput = {
|
|
1654
|
-
...output,
|
|
1655
|
-
body: await parseErrorBody(output.body, context),
|
|
1656
|
-
};
|
|
1657
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1658
|
-
switch (errorCode) {
|
|
1659
|
-
case "BadRequestException":
|
|
1660
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1661
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1662
|
-
case "InternalServerErrorException":
|
|
1663
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1664
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1665
|
-
case "NotFoundException":
|
|
1666
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1667
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1668
|
-
case "ServiceUnavailableException":
|
|
1669
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1670
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1671
|
-
case "TooManyRequestsException":
|
|
1672
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1673
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1674
|
-
default:
|
|
1675
|
-
const parsedBody = parsedOutput.body;
|
|
1676
|
-
return throwDefaultError({
|
|
1677
|
-
output,
|
|
1678
|
-
parsedBody,
|
|
1679
|
-
errorCode,
|
|
1680
|
-
});
|
|
1681
|
-
}
|
|
1682
|
-
};
|
|
1683
976
|
export const de_GrantFlowEntitlementsCommand = async (output, context) => {
|
|
1684
977
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1685
|
-
return
|
|
978
|
+
return de_CommandError(output, context);
|
|
1686
979
|
}
|
|
1687
980
|
const contents = map({
|
|
1688
981
|
$metadata: deserializeMetadata(output),
|
|
@@ -1695,46 +988,9 @@ export const de_GrantFlowEntitlementsCommand = async (output, context) => {
|
|
|
1695
988
|
Object.assign(contents, doc);
|
|
1696
989
|
return contents;
|
|
1697
990
|
};
|
|
1698
|
-
const de_GrantFlowEntitlementsCommandError = async (output, context) => {
|
|
1699
|
-
const parsedOutput = {
|
|
1700
|
-
...output,
|
|
1701
|
-
body: await parseErrorBody(output.body, context),
|
|
1702
|
-
};
|
|
1703
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1704
|
-
switch (errorCode) {
|
|
1705
|
-
case "BadRequestException":
|
|
1706
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1707
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1708
|
-
case "ForbiddenException":
|
|
1709
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1710
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1711
|
-
case "GrantFlowEntitlements420Exception":
|
|
1712
|
-
case "com.amazonaws.mediaconnect#GrantFlowEntitlements420Exception":
|
|
1713
|
-
throw await de_GrantFlowEntitlements420ExceptionRes(parsedOutput, context);
|
|
1714
|
-
case "InternalServerErrorException":
|
|
1715
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1716
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1717
|
-
case "NotFoundException":
|
|
1718
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1719
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1720
|
-
case "ServiceUnavailableException":
|
|
1721
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1722
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1723
|
-
case "TooManyRequestsException":
|
|
1724
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1725
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1726
|
-
default:
|
|
1727
|
-
const parsedBody = parsedOutput.body;
|
|
1728
|
-
return throwDefaultError({
|
|
1729
|
-
output,
|
|
1730
|
-
parsedBody,
|
|
1731
|
-
errorCode,
|
|
1732
|
-
});
|
|
1733
|
-
}
|
|
1734
|
-
};
|
|
1735
991
|
export const de_ListBridgesCommand = async (output, context) => {
|
|
1736
992
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1737
|
-
return
|
|
993
|
+
return de_CommandError(output, context);
|
|
1738
994
|
}
|
|
1739
995
|
const contents = map({
|
|
1740
996
|
$metadata: deserializeMetadata(output),
|
|
@@ -1747,40 +1003,9 @@ export const de_ListBridgesCommand = async (output, context) => {
|
|
|
1747
1003
|
Object.assign(contents, doc);
|
|
1748
1004
|
return contents;
|
|
1749
1005
|
};
|
|
1750
|
-
const de_ListBridgesCommandError = async (output, context) => {
|
|
1751
|
-
const parsedOutput = {
|
|
1752
|
-
...output,
|
|
1753
|
-
body: await parseErrorBody(output.body, context),
|
|
1754
|
-
};
|
|
1755
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1756
|
-
switch (errorCode) {
|
|
1757
|
-
case "BadRequestException":
|
|
1758
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1759
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1760
|
-
case "ConflictException":
|
|
1761
|
-
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1762
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1763
|
-
case "InternalServerErrorException":
|
|
1764
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1765
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1766
|
-
case "ServiceUnavailableException":
|
|
1767
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1768
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1769
|
-
case "TooManyRequestsException":
|
|
1770
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1771
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1772
|
-
default:
|
|
1773
|
-
const parsedBody = parsedOutput.body;
|
|
1774
|
-
return throwDefaultError({
|
|
1775
|
-
output,
|
|
1776
|
-
parsedBody,
|
|
1777
|
-
errorCode,
|
|
1778
|
-
});
|
|
1779
|
-
}
|
|
1780
|
-
};
|
|
1781
1006
|
export const de_ListEntitlementsCommand = async (output, context) => {
|
|
1782
1007
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1783
|
-
return
|
|
1008
|
+
return de_CommandError(output, context);
|
|
1784
1009
|
}
|
|
1785
1010
|
const contents = map({
|
|
1786
1011
|
$metadata: deserializeMetadata(output),
|
|
@@ -1793,37 +1018,9 @@ export const de_ListEntitlementsCommand = async (output, context) => {
|
|
|
1793
1018
|
Object.assign(contents, doc);
|
|
1794
1019
|
return contents;
|
|
1795
1020
|
};
|
|
1796
|
-
const de_ListEntitlementsCommandError = async (output, context) => {
|
|
1797
|
-
const parsedOutput = {
|
|
1798
|
-
...output,
|
|
1799
|
-
body: await parseErrorBody(output.body, context),
|
|
1800
|
-
};
|
|
1801
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1802
|
-
switch (errorCode) {
|
|
1803
|
-
case "BadRequestException":
|
|
1804
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1805
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1806
|
-
case "InternalServerErrorException":
|
|
1807
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1808
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1809
|
-
case "ServiceUnavailableException":
|
|
1810
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1811
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1812
|
-
case "TooManyRequestsException":
|
|
1813
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1814
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1815
|
-
default:
|
|
1816
|
-
const parsedBody = parsedOutput.body;
|
|
1817
|
-
return throwDefaultError({
|
|
1818
|
-
output,
|
|
1819
|
-
parsedBody,
|
|
1820
|
-
errorCode,
|
|
1821
|
-
});
|
|
1822
|
-
}
|
|
1823
|
-
};
|
|
1824
1021
|
export const de_ListFlowsCommand = async (output, context) => {
|
|
1825
1022
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1826
|
-
return
|
|
1023
|
+
return de_CommandError(output, context);
|
|
1827
1024
|
}
|
|
1828
1025
|
const contents = map({
|
|
1829
1026
|
$metadata: deserializeMetadata(output),
|
|
@@ -1836,37 +1033,9 @@ export const de_ListFlowsCommand = async (output, context) => {
|
|
|
1836
1033
|
Object.assign(contents, doc);
|
|
1837
1034
|
return contents;
|
|
1838
1035
|
};
|
|
1839
|
-
const de_ListFlowsCommandError = async (output, context) => {
|
|
1840
|
-
const parsedOutput = {
|
|
1841
|
-
...output,
|
|
1842
|
-
body: await parseErrorBody(output.body, context),
|
|
1843
|
-
};
|
|
1844
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1845
|
-
switch (errorCode) {
|
|
1846
|
-
case "BadRequestException":
|
|
1847
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1848
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1849
|
-
case "InternalServerErrorException":
|
|
1850
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1851
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1852
|
-
case "ServiceUnavailableException":
|
|
1853
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1854
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1855
|
-
case "TooManyRequestsException":
|
|
1856
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1857
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1858
|
-
default:
|
|
1859
|
-
const parsedBody = parsedOutput.body;
|
|
1860
|
-
return throwDefaultError({
|
|
1861
|
-
output,
|
|
1862
|
-
parsedBody,
|
|
1863
|
-
errorCode,
|
|
1864
|
-
});
|
|
1865
|
-
}
|
|
1866
|
-
};
|
|
1867
1036
|
export const de_ListGatewayInstancesCommand = async (output, context) => {
|
|
1868
1037
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1869
|
-
return
|
|
1038
|
+
return de_CommandError(output, context);
|
|
1870
1039
|
}
|
|
1871
1040
|
const contents = map({
|
|
1872
1041
|
$metadata: deserializeMetadata(output),
|
|
@@ -1879,40 +1048,9 @@ export const de_ListGatewayInstancesCommand = async (output, context) => {
|
|
|
1879
1048
|
Object.assign(contents, doc);
|
|
1880
1049
|
return contents;
|
|
1881
1050
|
};
|
|
1882
|
-
const de_ListGatewayInstancesCommandError = async (output, context) => {
|
|
1883
|
-
const parsedOutput = {
|
|
1884
|
-
...output,
|
|
1885
|
-
body: await parseErrorBody(output.body, context),
|
|
1886
|
-
};
|
|
1887
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1888
|
-
switch (errorCode) {
|
|
1889
|
-
case "BadRequestException":
|
|
1890
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1891
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1892
|
-
case "ConflictException":
|
|
1893
|
-
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1894
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1895
|
-
case "InternalServerErrorException":
|
|
1896
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1897
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1898
|
-
case "ServiceUnavailableException":
|
|
1899
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1900
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1901
|
-
case "TooManyRequestsException":
|
|
1902
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1903
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1904
|
-
default:
|
|
1905
|
-
const parsedBody = parsedOutput.body;
|
|
1906
|
-
return throwDefaultError({
|
|
1907
|
-
output,
|
|
1908
|
-
parsedBody,
|
|
1909
|
-
errorCode,
|
|
1910
|
-
});
|
|
1911
|
-
}
|
|
1912
|
-
};
|
|
1913
1051
|
export const de_ListGatewaysCommand = async (output, context) => {
|
|
1914
1052
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1915
|
-
return
|
|
1053
|
+
return de_CommandError(output, context);
|
|
1916
1054
|
}
|
|
1917
1055
|
const contents = map({
|
|
1918
1056
|
$metadata: deserializeMetadata(output),
|
|
@@ -1925,40 +1063,9 @@ export const de_ListGatewaysCommand = async (output, context) => {
|
|
|
1925
1063
|
Object.assign(contents, doc);
|
|
1926
1064
|
return contents;
|
|
1927
1065
|
};
|
|
1928
|
-
const de_ListGatewaysCommandError = async (output, context) => {
|
|
1929
|
-
const parsedOutput = {
|
|
1930
|
-
...output,
|
|
1931
|
-
body: await parseErrorBody(output.body, context),
|
|
1932
|
-
};
|
|
1933
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1934
|
-
switch (errorCode) {
|
|
1935
|
-
case "BadRequestException":
|
|
1936
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1937
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1938
|
-
case "ConflictException":
|
|
1939
|
-
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1940
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1941
|
-
case "InternalServerErrorException":
|
|
1942
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1943
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1944
|
-
case "ServiceUnavailableException":
|
|
1945
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1946
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1947
|
-
case "TooManyRequestsException":
|
|
1948
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1949
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1950
|
-
default:
|
|
1951
|
-
const parsedBody = parsedOutput.body;
|
|
1952
|
-
return throwDefaultError({
|
|
1953
|
-
output,
|
|
1954
|
-
parsedBody,
|
|
1955
|
-
errorCode,
|
|
1956
|
-
});
|
|
1957
|
-
}
|
|
1958
|
-
};
|
|
1959
1066
|
export const de_ListOfferingsCommand = async (output, context) => {
|
|
1960
1067
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1961
|
-
return
|
|
1068
|
+
return de_CommandError(output, context);
|
|
1962
1069
|
}
|
|
1963
1070
|
const contents = map({
|
|
1964
1071
|
$metadata: deserializeMetadata(output),
|
|
@@ -1969,39 +1076,11 @@ export const de_ListOfferingsCommand = async (output, context) => {
|
|
|
1969
1076
|
Offerings: [, (_) => de___listOfOffering(_, context), `offerings`],
|
|
1970
1077
|
});
|
|
1971
1078
|
Object.assign(contents, doc);
|
|
1972
|
-
return contents;
|
|
1973
|
-
};
|
|
1974
|
-
const de_ListOfferingsCommandError = async (output, context) => {
|
|
1975
|
-
const parsedOutput = {
|
|
1976
|
-
...output,
|
|
1977
|
-
body: await parseErrorBody(output.body, context),
|
|
1978
|
-
};
|
|
1979
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1980
|
-
switch (errorCode) {
|
|
1981
|
-
case "BadRequestException":
|
|
1982
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1983
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1984
|
-
case "InternalServerErrorException":
|
|
1985
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1986
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1987
|
-
case "ServiceUnavailableException":
|
|
1988
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1989
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1990
|
-
case "TooManyRequestsException":
|
|
1991
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1992
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1993
|
-
default:
|
|
1994
|
-
const parsedBody = parsedOutput.body;
|
|
1995
|
-
return throwDefaultError({
|
|
1996
|
-
output,
|
|
1997
|
-
parsedBody,
|
|
1998
|
-
errorCode,
|
|
1999
|
-
});
|
|
2000
|
-
}
|
|
1079
|
+
return contents;
|
|
2001
1080
|
};
|
|
2002
1081
|
export const de_ListReservationsCommand = async (output, context) => {
|
|
2003
1082
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2004
|
-
return
|
|
1083
|
+
return de_CommandError(output, context);
|
|
2005
1084
|
}
|
|
2006
1085
|
const contents = map({
|
|
2007
1086
|
$metadata: deserializeMetadata(output),
|
|
@@ -2014,37 +1093,9 @@ export const de_ListReservationsCommand = async (output, context) => {
|
|
|
2014
1093
|
Object.assign(contents, doc);
|
|
2015
1094
|
return contents;
|
|
2016
1095
|
};
|
|
2017
|
-
const de_ListReservationsCommandError = async (output, context) => {
|
|
2018
|
-
const parsedOutput = {
|
|
2019
|
-
...output,
|
|
2020
|
-
body: await parseErrorBody(output.body, context),
|
|
2021
|
-
};
|
|
2022
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2023
|
-
switch (errorCode) {
|
|
2024
|
-
case "BadRequestException":
|
|
2025
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2026
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2027
|
-
case "InternalServerErrorException":
|
|
2028
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2029
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2030
|
-
case "ServiceUnavailableException":
|
|
2031
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2032
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2033
|
-
case "TooManyRequestsException":
|
|
2034
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2035
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2036
|
-
default:
|
|
2037
|
-
const parsedBody = parsedOutput.body;
|
|
2038
|
-
return throwDefaultError({
|
|
2039
|
-
output,
|
|
2040
|
-
parsedBody,
|
|
2041
|
-
errorCode,
|
|
2042
|
-
});
|
|
2043
|
-
}
|
|
2044
|
-
};
|
|
2045
1096
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2046
1097
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2047
|
-
return
|
|
1098
|
+
return de_CommandError(output, context);
|
|
2048
1099
|
}
|
|
2049
1100
|
const contents = map({
|
|
2050
1101
|
$metadata: deserializeMetadata(output),
|
|
@@ -2056,34 +1107,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
2056
1107
|
Object.assign(contents, doc);
|
|
2057
1108
|
return contents;
|
|
2058
1109
|
};
|
|
2059
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2060
|
-
const parsedOutput = {
|
|
2061
|
-
...output,
|
|
2062
|
-
body: await parseErrorBody(output.body, context),
|
|
2063
|
-
};
|
|
2064
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2065
|
-
switch (errorCode) {
|
|
2066
|
-
case "BadRequestException":
|
|
2067
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2068
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2069
|
-
case "InternalServerErrorException":
|
|
2070
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2071
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2072
|
-
case "NotFoundException":
|
|
2073
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2074
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2075
|
-
default:
|
|
2076
|
-
const parsedBody = parsedOutput.body;
|
|
2077
|
-
return throwDefaultError({
|
|
2078
|
-
output,
|
|
2079
|
-
parsedBody,
|
|
2080
|
-
errorCode,
|
|
2081
|
-
});
|
|
2082
|
-
}
|
|
2083
|
-
};
|
|
2084
1110
|
export const de_PurchaseOfferingCommand = async (output, context) => {
|
|
2085
1111
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2086
|
-
return
|
|
1112
|
+
return de_CommandError(output, context);
|
|
2087
1113
|
}
|
|
2088
1114
|
const contents = map({
|
|
2089
1115
|
$metadata: deserializeMetadata(output),
|
|
@@ -2095,43 +1121,9 @@ export const de_PurchaseOfferingCommand = async (output, context) => {
|
|
|
2095
1121
|
Object.assign(contents, doc);
|
|
2096
1122
|
return contents;
|
|
2097
1123
|
};
|
|
2098
|
-
const de_PurchaseOfferingCommandError = async (output, context) => {
|
|
2099
|
-
const parsedOutput = {
|
|
2100
|
-
...output,
|
|
2101
|
-
body: await parseErrorBody(output.body, context),
|
|
2102
|
-
};
|
|
2103
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2104
|
-
switch (errorCode) {
|
|
2105
|
-
case "BadRequestException":
|
|
2106
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2107
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2108
|
-
case "ForbiddenException":
|
|
2109
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2110
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2111
|
-
case "InternalServerErrorException":
|
|
2112
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2113
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2114
|
-
case "NotFoundException":
|
|
2115
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2116
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2117
|
-
case "ServiceUnavailableException":
|
|
2118
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2119
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2120
|
-
case "TooManyRequestsException":
|
|
2121
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2122
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2123
|
-
default:
|
|
2124
|
-
const parsedBody = parsedOutput.body;
|
|
2125
|
-
return throwDefaultError({
|
|
2126
|
-
output,
|
|
2127
|
-
parsedBody,
|
|
2128
|
-
errorCode,
|
|
2129
|
-
});
|
|
2130
|
-
}
|
|
2131
|
-
};
|
|
2132
1124
|
export const de_RemoveBridgeOutputCommand = async (output, context) => {
|
|
2133
1125
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2134
|
-
return
|
|
1126
|
+
return de_CommandError(output, context);
|
|
2135
1127
|
}
|
|
2136
1128
|
const contents = map({
|
|
2137
1129
|
$metadata: deserializeMetadata(output),
|
|
@@ -2144,46 +1136,9 @@ export const de_RemoveBridgeOutputCommand = async (output, context) => {
|
|
|
2144
1136
|
Object.assign(contents, doc);
|
|
2145
1137
|
return contents;
|
|
2146
1138
|
};
|
|
2147
|
-
const de_RemoveBridgeOutputCommandError = async (output, context) => {
|
|
2148
|
-
const parsedOutput = {
|
|
2149
|
-
...output,
|
|
2150
|
-
body: await parseErrorBody(output.body, context),
|
|
2151
|
-
};
|
|
2152
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2153
|
-
switch (errorCode) {
|
|
2154
|
-
case "BadRequestException":
|
|
2155
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2156
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2157
|
-
case "ConflictException":
|
|
2158
|
-
case "com.amazonaws.mediaconnect#ConflictException":
|
|
2159
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2160
|
-
case "ForbiddenException":
|
|
2161
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2162
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2163
|
-
case "InternalServerErrorException":
|
|
2164
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2165
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2166
|
-
case "NotFoundException":
|
|
2167
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2168
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2169
|
-
case "ServiceUnavailableException":
|
|
2170
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2171
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2172
|
-
case "TooManyRequestsException":
|
|
2173
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2174
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2175
|
-
default:
|
|
2176
|
-
const parsedBody = parsedOutput.body;
|
|
2177
|
-
return throwDefaultError({
|
|
2178
|
-
output,
|
|
2179
|
-
parsedBody,
|
|
2180
|
-
errorCode,
|
|
2181
|
-
});
|
|
2182
|
-
}
|
|
2183
|
-
};
|
|
2184
1139
|
export const de_RemoveBridgeSourceCommand = async (output, context) => {
|
|
2185
1140
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2186
|
-
return
|
|
1141
|
+
return de_CommandError(output, context);
|
|
2187
1142
|
}
|
|
2188
1143
|
const contents = map({
|
|
2189
1144
|
$metadata: deserializeMetadata(output),
|
|
@@ -2196,46 +1151,9 @@ export const de_RemoveBridgeSourceCommand = async (output, context) => {
|
|
|
2196
1151
|
Object.assign(contents, doc);
|
|
2197
1152
|
return contents;
|
|
2198
1153
|
};
|
|
2199
|
-
const de_RemoveBridgeSourceCommandError = async (output, context) => {
|
|
2200
|
-
const parsedOutput = {
|
|
2201
|
-
...output,
|
|
2202
|
-
body: await parseErrorBody(output.body, context),
|
|
2203
|
-
};
|
|
2204
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2205
|
-
switch (errorCode) {
|
|
2206
|
-
case "BadRequestException":
|
|
2207
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2208
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2209
|
-
case "ConflictException":
|
|
2210
|
-
case "com.amazonaws.mediaconnect#ConflictException":
|
|
2211
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2212
|
-
case "ForbiddenException":
|
|
2213
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2214
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2215
|
-
case "InternalServerErrorException":
|
|
2216
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2217
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2218
|
-
case "NotFoundException":
|
|
2219
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2220
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2221
|
-
case "ServiceUnavailableException":
|
|
2222
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2223
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2224
|
-
case "TooManyRequestsException":
|
|
2225
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2226
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2227
|
-
default:
|
|
2228
|
-
const parsedBody = parsedOutput.body;
|
|
2229
|
-
return throwDefaultError({
|
|
2230
|
-
output,
|
|
2231
|
-
parsedBody,
|
|
2232
|
-
errorCode,
|
|
2233
|
-
});
|
|
2234
|
-
}
|
|
2235
|
-
};
|
|
2236
1154
|
export const de_RemoveFlowMediaStreamCommand = async (output, context) => {
|
|
2237
1155
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2238
|
-
return
|
|
1156
|
+
return de_CommandError(output, context);
|
|
2239
1157
|
}
|
|
2240
1158
|
const contents = map({
|
|
2241
1159
|
$metadata: deserializeMetadata(output),
|
|
@@ -2248,43 +1166,9 @@ export const de_RemoveFlowMediaStreamCommand = async (output, context) => {
|
|
|
2248
1166
|
Object.assign(contents, doc);
|
|
2249
1167
|
return contents;
|
|
2250
1168
|
};
|
|
2251
|
-
const de_RemoveFlowMediaStreamCommandError = async (output, context) => {
|
|
2252
|
-
const parsedOutput = {
|
|
2253
|
-
...output,
|
|
2254
|
-
body: await parseErrorBody(output.body, context),
|
|
2255
|
-
};
|
|
2256
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2257
|
-
switch (errorCode) {
|
|
2258
|
-
case "BadRequestException":
|
|
2259
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2260
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2261
|
-
case "ForbiddenException":
|
|
2262
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2263
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2264
|
-
case "InternalServerErrorException":
|
|
2265
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2266
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2267
|
-
case "NotFoundException":
|
|
2268
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2269
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2270
|
-
case "ServiceUnavailableException":
|
|
2271
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2272
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2273
|
-
case "TooManyRequestsException":
|
|
2274
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2275
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2276
|
-
default:
|
|
2277
|
-
const parsedBody = parsedOutput.body;
|
|
2278
|
-
return throwDefaultError({
|
|
2279
|
-
output,
|
|
2280
|
-
parsedBody,
|
|
2281
|
-
errorCode,
|
|
2282
|
-
});
|
|
2283
|
-
}
|
|
2284
|
-
};
|
|
2285
1169
|
export const de_RemoveFlowOutputCommand = async (output, context) => {
|
|
2286
1170
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2287
|
-
return
|
|
1171
|
+
return de_CommandError(output, context);
|
|
2288
1172
|
}
|
|
2289
1173
|
const contents = map({
|
|
2290
1174
|
$metadata: deserializeMetadata(output),
|
|
@@ -2297,43 +1181,9 @@ export const de_RemoveFlowOutputCommand = async (output, context) => {
|
|
|
2297
1181
|
Object.assign(contents, doc);
|
|
2298
1182
|
return contents;
|
|
2299
1183
|
};
|
|
2300
|
-
const de_RemoveFlowOutputCommandError = async (output, context) => {
|
|
2301
|
-
const parsedOutput = {
|
|
2302
|
-
...output,
|
|
2303
|
-
body: await parseErrorBody(output.body, context),
|
|
2304
|
-
};
|
|
2305
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2306
|
-
switch (errorCode) {
|
|
2307
|
-
case "BadRequestException":
|
|
2308
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2309
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2310
|
-
case "ForbiddenException":
|
|
2311
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2312
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2313
|
-
case "InternalServerErrorException":
|
|
2314
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2315
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2316
|
-
case "NotFoundException":
|
|
2317
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2318
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2319
|
-
case "ServiceUnavailableException":
|
|
2320
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2321
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2322
|
-
case "TooManyRequestsException":
|
|
2323
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2324
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2325
|
-
default:
|
|
2326
|
-
const parsedBody = parsedOutput.body;
|
|
2327
|
-
return throwDefaultError({
|
|
2328
|
-
output,
|
|
2329
|
-
parsedBody,
|
|
2330
|
-
errorCode,
|
|
2331
|
-
});
|
|
2332
|
-
}
|
|
2333
|
-
};
|
|
2334
1184
|
export const de_RemoveFlowSourceCommand = async (output, context) => {
|
|
2335
1185
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2336
|
-
return
|
|
1186
|
+
return de_CommandError(output, context);
|
|
2337
1187
|
}
|
|
2338
1188
|
const contents = map({
|
|
2339
1189
|
$metadata: deserializeMetadata(output),
|
|
@@ -2346,43 +1196,9 @@ export const de_RemoveFlowSourceCommand = async (output, context) => {
|
|
|
2346
1196
|
Object.assign(contents, doc);
|
|
2347
1197
|
return contents;
|
|
2348
1198
|
};
|
|
2349
|
-
const de_RemoveFlowSourceCommandError = async (output, context) => {
|
|
2350
|
-
const parsedOutput = {
|
|
2351
|
-
...output,
|
|
2352
|
-
body: await parseErrorBody(output.body, context),
|
|
2353
|
-
};
|
|
2354
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2355
|
-
switch (errorCode) {
|
|
2356
|
-
case "BadRequestException":
|
|
2357
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2358
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2359
|
-
case "ForbiddenException":
|
|
2360
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2361
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2362
|
-
case "InternalServerErrorException":
|
|
2363
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2364
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2365
|
-
case "NotFoundException":
|
|
2366
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2367
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2368
|
-
case "ServiceUnavailableException":
|
|
2369
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2370
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2371
|
-
case "TooManyRequestsException":
|
|
2372
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2373
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2374
|
-
default:
|
|
2375
|
-
const parsedBody = parsedOutput.body;
|
|
2376
|
-
return throwDefaultError({
|
|
2377
|
-
output,
|
|
2378
|
-
parsedBody,
|
|
2379
|
-
errorCode,
|
|
2380
|
-
});
|
|
2381
|
-
}
|
|
2382
|
-
};
|
|
2383
1199
|
export const de_RemoveFlowVpcInterfaceCommand = async (output, context) => {
|
|
2384
1200
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2385
|
-
return
|
|
1201
|
+
return de_CommandError(output, context);
|
|
2386
1202
|
}
|
|
2387
1203
|
const contents = map({
|
|
2388
1204
|
$metadata: deserializeMetadata(output),
|
|
@@ -2396,43 +1212,9 @@ export const de_RemoveFlowVpcInterfaceCommand = async (output, context) => {
|
|
|
2396
1212
|
Object.assign(contents, doc);
|
|
2397
1213
|
return contents;
|
|
2398
1214
|
};
|
|
2399
|
-
const de_RemoveFlowVpcInterfaceCommandError = async (output, context) => {
|
|
2400
|
-
const parsedOutput = {
|
|
2401
|
-
...output,
|
|
2402
|
-
body: await parseErrorBody(output.body, context),
|
|
2403
|
-
};
|
|
2404
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2405
|
-
switch (errorCode) {
|
|
2406
|
-
case "BadRequestException":
|
|
2407
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2408
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2409
|
-
case "ForbiddenException":
|
|
2410
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2411
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2412
|
-
case "InternalServerErrorException":
|
|
2413
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2414
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2415
|
-
case "NotFoundException":
|
|
2416
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2417
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2418
|
-
case "ServiceUnavailableException":
|
|
2419
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2420
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2421
|
-
case "TooManyRequestsException":
|
|
2422
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2423
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2424
|
-
default:
|
|
2425
|
-
const parsedBody = parsedOutput.body;
|
|
2426
|
-
return throwDefaultError({
|
|
2427
|
-
output,
|
|
2428
|
-
parsedBody,
|
|
2429
|
-
errorCode,
|
|
2430
|
-
});
|
|
2431
|
-
}
|
|
2432
|
-
};
|
|
2433
1215
|
export const de_RevokeFlowEntitlementCommand = async (output, context) => {
|
|
2434
1216
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2435
|
-
return
|
|
1217
|
+
return de_CommandError(output, context);
|
|
2436
1218
|
}
|
|
2437
1219
|
const contents = map({
|
|
2438
1220
|
$metadata: deserializeMetadata(output),
|
|
@@ -2445,43 +1227,9 @@ export const de_RevokeFlowEntitlementCommand = async (output, context) => {
|
|
|
2445
1227
|
Object.assign(contents, doc);
|
|
2446
1228
|
return contents;
|
|
2447
1229
|
};
|
|
2448
|
-
const de_RevokeFlowEntitlementCommandError = async (output, context) => {
|
|
2449
|
-
const parsedOutput = {
|
|
2450
|
-
...output,
|
|
2451
|
-
body: await parseErrorBody(output.body, context),
|
|
2452
|
-
};
|
|
2453
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2454
|
-
switch (errorCode) {
|
|
2455
|
-
case "BadRequestException":
|
|
2456
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2457
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2458
|
-
case "ForbiddenException":
|
|
2459
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2460
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2461
|
-
case "InternalServerErrorException":
|
|
2462
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2463
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2464
|
-
case "NotFoundException":
|
|
2465
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2466
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2467
|
-
case "ServiceUnavailableException":
|
|
2468
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2469
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2470
|
-
case "TooManyRequestsException":
|
|
2471
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2472
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2473
|
-
default:
|
|
2474
|
-
const parsedBody = parsedOutput.body;
|
|
2475
|
-
return throwDefaultError({
|
|
2476
|
-
output,
|
|
2477
|
-
parsedBody,
|
|
2478
|
-
errorCode,
|
|
2479
|
-
});
|
|
2480
|
-
}
|
|
2481
|
-
};
|
|
2482
1230
|
export const de_StartFlowCommand = async (output, context) => {
|
|
2483
1231
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2484
|
-
return
|
|
1232
|
+
return de_CommandError(output, context);
|
|
2485
1233
|
}
|
|
2486
1234
|
const contents = map({
|
|
2487
1235
|
$metadata: deserializeMetadata(output),
|
|
@@ -2494,43 +1242,9 @@ export const de_StartFlowCommand = async (output, context) => {
|
|
|
2494
1242
|
Object.assign(contents, doc);
|
|
2495
1243
|
return contents;
|
|
2496
1244
|
};
|
|
2497
|
-
const de_StartFlowCommandError = async (output, context) => {
|
|
2498
|
-
const parsedOutput = {
|
|
2499
|
-
...output,
|
|
2500
|
-
body: await parseErrorBody(output.body, context),
|
|
2501
|
-
};
|
|
2502
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2503
|
-
switch (errorCode) {
|
|
2504
|
-
case "BadRequestException":
|
|
2505
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2506
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2507
|
-
case "ForbiddenException":
|
|
2508
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2509
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2510
|
-
case "InternalServerErrorException":
|
|
2511
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2512
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2513
|
-
case "NotFoundException":
|
|
2514
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2515
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2516
|
-
case "ServiceUnavailableException":
|
|
2517
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2518
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2519
|
-
case "TooManyRequestsException":
|
|
2520
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2521
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2522
|
-
default:
|
|
2523
|
-
const parsedBody = parsedOutput.body;
|
|
2524
|
-
return throwDefaultError({
|
|
2525
|
-
output,
|
|
2526
|
-
parsedBody,
|
|
2527
|
-
errorCode,
|
|
2528
|
-
});
|
|
2529
|
-
}
|
|
2530
|
-
};
|
|
2531
1245
|
export const de_StopFlowCommand = async (output, context) => {
|
|
2532
1246
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2533
|
-
return
|
|
1247
|
+
return de_CommandError(output, context);
|
|
2534
1248
|
}
|
|
2535
1249
|
const contents = map({
|
|
2536
1250
|
$metadata: deserializeMetadata(output),
|
|
@@ -2543,43 +1257,9 @@ export const de_StopFlowCommand = async (output, context) => {
|
|
|
2543
1257
|
Object.assign(contents, doc);
|
|
2544
1258
|
return contents;
|
|
2545
1259
|
};
|
|
2546
|
-
const de_StopFlowCommandError = async (output, context) => {
|
|
2547
|
-
const parsedOutput = {
|
|
2548
|
-
...output,
|
|
2549
|
-
body: await parseErrorBody(output.body, context),
|
|
2550
|
-
};
|
|
2551
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2552
|
-
switch (errorCode) {
|
|
2553
|
-
case "BadRequestException":
|
|
2554
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2555
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2556
|
-
case "ForbiddenException":
|
|
2557
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2558
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2559
|
-
case "InternalServerErrorException":
|
|
2560
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2561
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2562
|
-
case "NotFoundException":
|
|
2563
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2564
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2565
|
-
case "ServiceUnavailableException":
|
|
2566
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2567
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2568
|
-
case "TooManyRequestsException":
|
|
2569
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2570
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2571
|
-
default:
|
|
2572
|
-
const parsedBody = parsedOutput.body;
|
|
2573
|
-
return throwDefaultError({
|
|
2574
|
-
output,
|
|
2575
|
-
parsedBody,
|
|
2576
|
-
errorCode,
|
|
2577
|
-
});
|
|
2578
|
-
}
|
|
2579
|
-
};
|
|
2580
1260
|
export const de_TagResourceCommand = async (output, context) => {
|
|
2581
1261
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2582
|
-
return
|
|
1262
|
+
return de_CommandError(output, context);
|
|
2583
1263
|
}
|
|
2584
1264
|
const contents = map({
|
|
2585
1265
|
$metadata: deserializeMetadata(output),
|
|
@@ -2587,34 +1267,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
2587
1267
|
await collectBody(output.body, context);
|
|
2588
1268
|
return contents;
|
|
2589
1269
|
};
|
|
2590
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
2591
|
-
const parsedOutput = {
|
|
2592
|
-
...output,
|
|
2593
|
-
body: await parseErrorBody(output.body, context),
|
|
2594
|
-
};
|
|
2595
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2596
|
-
switch (errorCode) {
|
|
2597
|
-
case "BadRequestException":
|
|
2598
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2599
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2600
|
-
case "InternalServerErrorException":
|
|
2601
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2602
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2603
|
-
case "NotFoundException":
|
|
2604
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2605
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2606
|
-
default:
|
|
2607
|
-
const parsedBody = parsedOutput.body;
|
|
2608
|
-
return throwDefaultError({
|
|
2609
|
-
output,
|
|
2610
|
-
parsedBody,
|
|
2611
|
-
errorCode,
|
|
2612
|
-
});
|
|
2613
|
-
}
|
|
2614
|
-
};
|
|
2615
1270
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
2616
1271
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2617
|
-
return
|
|
1272
|
+
return de_CommandError(output, context);
|
|
2618
1273
|
}
|
|
2619
1274
|
const contents = map({
|
|
2620
1275
|
$metadata: deserializeMetadata(output),
|
|
@@ -2622,34 +1277,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
2622
1277
|
await collectBody(output.body, context);
|
|
2623
1278
|
return contents;
|
|
2624
1279
|
};
|
|
2625
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
2626
|
-
const parsedOutput = {
|
|
2627
|
-
...output,
|
|
2628
|
-
body: await parseErrorBody(output.body, context),
|
|
2629
|
-
};
|
|
2630
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2631
|
-
switch (errorCode) {
|
|
2632
|
-
case "BadRequestException":
|
|
2633
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2634
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2635
|
-
case "InternalServerErrorException":
|
|
2636
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2637
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2638
|
-
case "NotFoundException":
|
|
2639
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2640
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2641
|
-
default:
|
|
2642
|
-
const parsedBody = parsedOutput.body;
|
|
2643
|
-
return throwDefaultError({
|
|
2644
|
-
output,
|
|
2645
|
-
parsedBody,
|
|
2646
|
-
errorCode,
|
|
2647
|
-
});
|
|
2648
|
-
}
|
|
2649
|
-
};
|
|
2650
1280
|
export const de_UpdateBridgeCommand = async (output, context) => {
|
|
2651
1281
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2652
|
-
return
|
|
1282
|
+
return de_CommandError(output, context);
|
|
2653
1283
|
}
|
|
2654
1284
|
const contents = map({
|
|
2655
1285
|
$metadata: deserializeMetadata(output),
|
|
@@ -2661,46 +1291,9 @@ export const de_UpdateBridgeCommand = async (output, context) => {
|
|
|
2661
1291
|
Object.assign(contents, doc);
|
|
2662
1292
|
return contents;
|
|
2663
1293
|
};
|
|
2664
|
-
const de_UpdateBridgeCommandError = async (output, context) => {
|
|
2665
|
-
const parsedOutput = {
|
|
2666
|
-
...output,
|
|
2667
|
-
body: await parseErrorBody(output.body, context),
|
|
2668
|
-
};
|
|
2669
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2670
|
-
switch (errorCode) {
|
|
2671
|
-
case "BadRequestException":
|
|
2672
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2673
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2674
|
-
case "ConflictException":
|
|
2675
|
-
case "com.amazonaws.mediaconnect#ConflictException":
|
|
2676
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2677
|
-
case "ForbiddenException":
|
|
2678
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2679
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2680
|
-
case "InternalServerErrorException":
|
|
2681
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2682
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2683
|
-
case "NotFoundException":
|
|
2684
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2685
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2686
|
-
case "ServiceUnavailableException":
|
|
2687
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2688
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2689
|
-
case "TooManyRequestsException":
|
|
2690
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2691
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2692
|
-
default:
|
|
2693
|
-
const parsedBody = parsedOutput.body;
|
|
2694
|
-
return throwDefaultError({
|
|
2695
|
-
output,
|
|
2696
|
-
parsedBody,
|
|
2697
|
-
errorCode,
|
|
2698
|
-
});
|
|
2699
|
-
}
|
|
2700
|
-
};
|
|
2701
1294
|
export const de_UpdateBridgeOutputCommand = async (output, context) => {
|
|
2702
1295
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2703
|
-
return
|
|
1296
|
+
return de_CommandError(output, context);
|
|
2704
1297
|
}
|
|
2705
1298
|
const contents = map({
|
|
2706
1299
|
$metadata: deserializeMetadata(output),
|
|
@@ -2708,51 +1301,14 @@ export const de_UpdateBridgeOutputCommand = async (output, context) => {
|
|
|
2708
1301
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2709
1302
|
const doc = take(data, {
|
|
2710
1303
|
BridgeArn: [, __expectString, `bridgeArn`],
|
|
2711
|
-
Output: [, (_) => de_BridgeOutput(_, context), `output`],
|
|
2712
|
-
});
|
|
2713
|
-
Object.assign(contents, doc);
|
|
2714
|
-
return contents;
|
|
2715
|
-
};
|
|
2716
|
-
const de_UpdateBridgeOutputCommandError = async (output, context) => {
|
|
2717
|
-
const parsedOutput = {
|
|
2718
|
-
...output,
|
|
2719
|
-
body: await parseErrorBody(output.body, context),
|
|
2720
|
-
};
|
|
2721
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2722
|
-
switch (errorCode) {
|
|
2723
|
-
case "BadRequestException":
|
|
2724
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2725
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2726
|
-
case "ConflictException":
|
|
2727
|
-
case "com.amazonaws.mediaconnect#ConflictException":
|
|
2728
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2729
|
-
case "ForbiddenException":
|
|
2730
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2731
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2732
|
-
case "InternalServerErrorException":
|
|
2733
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2734
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2735
|
-
case "NotFoundException":
|
|
2736
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2737
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2738
|
-
case "ServiceUnavailableException":
|
|
2739
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2740
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2741
|
-
case "TooManyRequestsException":
|
|
2742
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2743
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2744
|
-
default:
|
|
2745
|
-
const parsedBody = parsedOutput.body;
|
|
2746
|
-
return throwDefaultError({
|
|
2747
|
-
output,
|
|
2748
|
-
parsedBody,
|
|
2749
|
-
errorCode,
|
|
2750
|
-
});
|
|
2751
|
-
}
|
|
1304
|
+
Output: [, (_) => de_BridgeOutput(_, context), `output`],
|
|
1305
|
+
});
|
|
1306
|
+
Object.assign(contents, doc);
|
|
1307
|
+
return contents;
|
|
2752
1308
|
};
|
|
2753
1309
|
export const de_UpdateBridgeSourceCommand = async (output, context) => {
|
|
2754
1310
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2755
|
-
return
|
|
1311
|
+
return de_CommandError(output, context);
|
|
2756
1312
|
}
|
|
2757
1313
|
const contents = map({
|
|
2758
1314
|
$metadata: deserializeMetadata(output),
|
|
@@ -2765,46 +1321,9 @@ export const de_UpdateBridgeSourceCommand = async (output, context) => {
|
|
|
2765
1321
|
Object.assign(contents, doc);
|
|
2766
1322
|
return contents;
|
|
2767
1323
|
};
|
|
2768
|
-
const de_UpdateBridgeSourceCommandError = async (output, context) => {
|
|
2769
|
-
const parsedOutput = {
|
|
2770
|
-
...output,
|
|
2771
|
-
body: await parseErrorBody(output.body, context),
|
|
2772
|
-
};
|
|
2773
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2774
|
-
switch (errorCode) {
|
|
2775
|
-
case "BadRequestException":
|
|
2776
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2777
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2778
|
-
case "ConflictException":
|
|
2779
|
-
case "com.amazonaws.mediaconnect#ConflictException":
|
|
2780
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2781
|
-
case "ForbiddenException":
|
|
2782
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2783
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2784
|
-
case "InternalServerErrorException":
|
|
2785
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2786
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2787
|
-
case "NotFoundException":
|
|
2788
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2789
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2790
|
-
case "ServiceUnavailableException":
|
|
2791
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2792
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2793
|
-
case "TooManyRequestsException":
|
|
2794
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2795
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2796
|
-
default:
|
|
2797
|
-
const parsedBody = parsedOutput.body;
|
|
2798
|
-
return throwDefaultError({
|
|
2799
|
-
output,
|
|
2800
|
-
parsedBody,
|
|
2801
|
-
errorCode,
|
|
2802
|
-
});
|
|
2803
|
-
}
|
|
2804
|
-
};
|
|
2805
1324
|
export const de_UpdateBridgeStateCommand = async (output, context) => {
|
|
2806
1325
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2807
|
-
return
|
|
1326
|
+
return de_CommandError(output, context);
|
|
2808
1327
|
}
|
|
2809
1328
|
const contents = map({
|
|
2810
1329
|
$metadata: deserializeMetadata(output),
|
|
@@ -2817,46 +1336,9 @@ export const de_UpdateBridgeStateCommand = async (output, context) => {
|
|
|
2817
1336
|
Object.assign(contents, doc);
|
|
2818
1337
|
return contents;
|
|
2819
1338
|
};
|
|
2820
|
-
const de_UpdateBridgeStateCommandError = async (output, context) => {
|
|
2821
|
-
const parsedOutput = {
|
|
2822
|
-
...output,
|
|
2823
|
-
body: await parseErrorBody(output.body, context),
|
|
2824
|
-
};
|
|
2825
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2826
|
-
switch (errorCode) {
|
|
2827
|
-
case "BadRequestException":
|
|
2828
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2829
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2830
|
-
case "ConflictException":
|
|
2831
|
-
case "com.amazonaws.mediaconnect#ConflictException":
|
|
2832
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2833
|
-
case "ForbiddenException":
|
|
2834
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2835
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2836
|
-
case "InternalServerErrorException":
|
|
2837
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2838
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2839
|
-
case "NotFoundException":
|
|
2840
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2841
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2842
|
-
case "ServiceUnavailableException":
|
|
2843
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2844
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2845
|
-
case "TooManyRequestsException":
|
|
2846
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2847
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2848
|
-
default:
|
|
2849
|
-
const parsedBody = parsedOutput.body;
|
|
2850
|
-
return throwDefaultError({
|
|
2851
|
-
output,
|
|
2852
|
-
parsedBody,
|
|
2853
|
-
errorCode,
|
|
2854
|
-
});
|
|
2855
|
-
}
|
|
2856
|
-
};
|
|
2857
1339
|
export const de_UpdateFlowCommand = async (output, context) => {
|
|
2858
1340
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2859
|
-
return
|
|
1341
|
+
return de_CommandError(output, context);
|
|
2860
1342
|
}
|
|
2861
1343
|
const contents = map({
|
|
2862
1344
|
$metadata: deserializeMetadata(output),
|
|
@@ -2868,43 +1350,9 @@ export const de_UpdateFlowCommand = async (output, context) => {
|
|
|
2868
1350
|
Object.assign(contents, doc);
|
|
2869
1351
|
return contents;
|
|
2870
1352
|
};
|
|
2871
|
-
const de_UpdateFlowCommandError = async (output, context) => {
|
|
2872
|
-
const parsedOutput = {
|
|
2873
|
-
...output,
|
|
2874
|
-
body: await parseErrorBody(output.body, context),
|
|
2875
|
-
};
|
|
2876
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2877
|
-
switch (errorCode) {
|
|
2878
|
-
case "BadRequestException":
|
|
2879
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2880
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2881
|
-
case "ForbiddenException":
|
|
2882
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2883
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2884
|
-
case "InternalServerErrorException":
|
|
2885
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2886
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2887
|
-
case "NotFoundException":
|
|
2888
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2889
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2890
|
-
case "ServiceUnavailableException":
|
|
2891
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2892
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2893
|
-
case "TooManyRequestsException":
|
|
2894
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2895
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2896
|
-
default:
|
|
2897
|
-
const parsedBody = parsedOutput.body;
|
|
2898
|
-
return throwDefaultError({
|
|
2899
|
-
output,
|
|
2900
|
-
parsedBody,
|
|
2901
|
-
errorCode,
|
|
2902
|
-
});
|
|
2903
|
-
}
|
|
2904
|
-
};
|
|
2905
1353
|
export const de_UpdateFlowEntitlementCommand = async (output, context) => {
|
|
2906
1354
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2907
|
-
return
|
|
1355
|
+
return de_CommandError(output, context);
|
|
2908
1356
|
}
|
|
2909
1357
|
const contents = map({
|
|
2910
1358
|
$metadata: deserializeMetadata(output),
|
|
@@ -2917,43 +1365,9 @@ export const de_UpdateFlowEntitlementCommand = async (output, context) => {
|
|
|
2917
1365
|
Object.assign(contents, doc);
|
|
2918
1366
|
return contents;
|
|
2919
1367
|
};
|
|
2920
|
-
const de_UpdateFlowEntitlementCommandError = async (output, context) => {
|
|
2921
|
-
const parsedOutput = {
|
|
2922
|
-
...output,
|
|
2923
|
-
body: await parseErrorBody(output.body, context),
|
|
2924
|
-
};
|
|
2925
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2926
|
-
switch (errorCode) {
|
|
2927
|
-
case "BadRequestException":
|
|
2928
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2929
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2930
|
-
case "ForbiddenException":
|
|
2931
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2932
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2933
|
-
case "InternalServerErrorException":
|
|
2934
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2935
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2936
|
-
case "NotFoundException":
|
|
2937
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2938
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2939
|
-
case "ServiceUnavailableException":
|
|
2940
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2941
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2942
|
-
case "TooManyRequestsException":
|
|
2943
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2944
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2945
|
-
default:
|
|
2946
|
-
const parsedBody = parsedOutput.body;
|
|
2947
|
-
return throwDefaultError({
|
|
2948
|
-
output,
|
|
2949
|
-
parsedBody,
|
|
2950
|
-
errorCode,
|
|
2951
|
-
});
|
|
2952
|
-
}
|
|
2953
|
-
};
|
|
2954
1368
|
export const de_UpdateFlowMediaStreamCommand = async (output, context) => {
|
|
2955
1369
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2956
|
-
return
|
|
1370
|
+
return de_CommandError(output, context);
|
|
2957
1371
|
}
|
|
2958
1372
|
const contents = map({
|
|
2959
1373
|
$metadata: deserializeMetadata(output),
|
|
@@ -2966,43 +1380,9 @@ export const de_UpdateFlowMediaStreamCommand = async (output, context) => {
|
|
|
2966
1380
|
Object.assign(contents, doc);
|
|
2967
1381
|
return contents;
|
|
2968
1382
|
};
|
|
2969
|
-
const de_UpdateFlowMediaStreamCommandError = async (output, context) => {
|
|
2970
|
-
const parsedOutput = {
|
|
2971
|
-
...output,
|
|
2972
|
-
body: await parseErrorBody(output.body, context),
|
|
2973
|
-
};
|
|
2974
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2975
|
-
switch (errorCode) {
|
|
2976
|
-
case "BadRequestException":
|
|
2977
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2978
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2979
|
-
case "ForbiddenException":
|
|
2980
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2981
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2982
|
-
case "InternalServerErrorException":
|
|
2983
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2984
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2985
|
-
case "NotFoundException":
|
|
2986
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2987
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2988
|
-
case "ServiceUnavailableException":
|
|
2989
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2990
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2991
|
-
case "TooManyRequestsException":
|
|
2992
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2993
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2994
|
-
default:
|
|
2995
|
-
const parsedBody = parsedOutput.body;
|
|
2996
|
-
return throwDefaultError({
|
|
2997
|
-
output,
|
|
2998
|
-
parsedBody,
|
|
2999
|
-
errorCode,
|
|
3000
|
-
});
|
|
3001
|
-
}
|
|
3002
|
-
};
|
|
3003
1383
|
export const de_UpdateFlowOutputCommand = async (output, context) => {
|
|
3004
1384
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3005
|
-
return
|
|
1385
|
+
return de_CommandError(output, context);
|
|
3006
1386
|
}
|
|
3007
1387
|
const contents = map({
|
|
3008
1388
|
$metadata: deserializeMetadata(output),
|
|
@@ -3015,43 +1395,9 @@ export const de_UpdateFlowOutputCommand = async (output, context) => {
|
|
|
3015
1395
|
Object.assign(contents, doc);
|
|
3016
1396
|
return contents;
|
|
3017
1397
|
};
|
|
3018
|
-
const de_UpdateFlowOutputCommandError = async (output, context) => {
|
|
3019
|
-
const parsedOutput = {
|
|
3020
|
-
...output,
|
|
3021
|
-
body: await parseErrorBody(output.body, context),
|
|
3022
|
-
};
|
|
3023
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3024
|
-
switch (errorCode) {
|
|
3025
|
-
case "BadRequestException":
|
|
3026
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3027
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3028
|
-
case "ForbiddenException":
|
|
3029
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3030
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3031
|
-
case "InternalServerErrorException":
|
|
3032
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3033
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3034
|
-
case "NotFoundException":
|
|
3035
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3036
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3037
|
-
case "ServiceUnavailableException":
|
|
3038
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3039
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3040
|
-
case "TooManyRequestsException":
|
|
3041
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3042
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3043
|
-
default:
|
|
3044
|
-
const parsedBody = parsedOutput.body;
|
|
3045
|
-
return throwDefaultError({
|
|
3046
|
-
output,
|
|
3047
|
-
parsedBody,
|
|
3048
|
-
errorCode,
|
|
3049
|
-
});
|
|
3050
|
-
}
|
|
3051
|
-
};
|
|
3052
1398
|
export const de_UpdateFlowSourceCommand = async (output, context) => {
|
|
3053
1399
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3054
|
-
return
|
|
1400
|
+
return de_CommandError(output, context);
|
|
3055
1401
|
}
|
|
3056
1402
|
const contents = map({
|
|
3057
1403
|
$metadata: deserializeMetadata(output),
|
|
@@ -3064,43 +1410,9 @@ export const de_UpdateFlowSourceCommand = async (output, context) => {
|
|
|
3064
1410
|
Object.assign(contents, doc);
|
|
3065
1411
|
return contents;
|
|
3066
1412
|
};
|
|
3067
|
-
const de_UpdateFlowSourceCommandError = async (output, context) => {
|
|
3068
|
-
const parsedOutput = {
|
|
3069
|
-
...output,
|
|
3070
|
-
body: await parseErrorBody(output.body, context),
|
|
3071
|
-
};
|
|
3072
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3073
|
-
switch (errorCode) {
|
|
3074
|
-
case "BadRequestException":
|
|
3075
|
-
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3076
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3077
|
-
case "ForbiddenException":
|
|
3078
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3079
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3080
|
-
case "InternalServerErrorException":
|
|
3081
|
-
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3082
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3083
|
-
case "NotFoundException":
|
|
3084
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3085
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3086
|
-
case "ServiceUnavailableException":
|
|
3087
|
-
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3088
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3089
|
-
case "TooManyRequestsException":
|
|
3090
|
-
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3091
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3092
|
-
default:
|
|
3093
|
-
const parsedBody = parsedOutput.body;
|
|
3094
|
-
return throwDefaultError({
|
|
3095
|
-
output,
|
|
3096
|
-
parsedBody,
|
|
3097
|
-
errorCode,
|
|
3098
|
-
});
|
|
3099
|
-
}
|
|
3100
|
-
};
|
|
3101
1413
|
export const de_UpdateGatewayInstanceCommand = async (output, context) => {
|
|
3102
1414
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3103
|
-
return
|
|
1415
|
+
return de_CommandError(output, context);
|
|
3104
1416
|
}
|
|
3105
1417
|
const contents = map({
|
|
3106
1418
|
$metadata: deserializeMetadata(output),
|
|
@@ -3113,7 +1425,7 @@ export const de_UpdateGatewayInstanceCommand = async (output, context) => {
|
|
|
3113
1425
|
Object.assign(contents, doc);
|
|
3114
1426
|
return contents;
|
|
3115
1427
|
};
|
|
3116
|
-
const
|
|
1428
|
+
const de_CommandError = async (output, context) => {
|
|
3117
1429
|
const parsedOutput = {
|
|
3118
1430
|
...output,
|
|
3119
1431
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3141,6 +1453,21 @@ const de_UpdateGatewayInstanceCommandError = async (output, context) => {
|
|
|
3141
1453
|
case "TooManyRequestsException":
|
|
3142
1454
|
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3143
1455
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1456
|
+
case "AddFlowOutputs420Exception":
|
|
1457
|
+
case "com.amazonaws.mediaconnect#AddFlowOutputs420Exception":
|
|
1458
|
+
throw await de_AddFlowOutputs420ExceptionRes(parsedOutput, context);
|
|
1459
|
+
case "CreateBridge420Exception":
|
|
1460
|
+
case "com.amazonaws.mediaconnect#CreateBridge420Exception":
|
|
1461
|
+
throw await de_CreateBridge420ExceptionRes(parsedOutput, context);
|
|
1462
|
+
case "CreateFlow420Exception":
|
|
1463
|
+
case "com.amazonaws.mediaconnect#CreateFlow420Exception":
|
|
1464
|
+
throw await de_CreateFlow420ExceptionRes(parsedOutput, context);
|
|
1465
|
+
case "CreateGateway420Exception":
|
|
1466
|
+
case "com.amazonaws.mediaconnect#CreateGateway420Exception":
|
|
1467
|
+
throw await de_CreateGateway420ExceptionRes(parsedOutput, context);
|
|
1468
|
+
case "GrantFlowEntitlements420Exception":
|
|
1469
|
+
case "com.amazonaws.mediaconnect#GrantFlowEntitlements420Exception":
|
|
1470
|
+
throw await de_GrantFlowEntitlements420ExceptionRes(parsedOutput, context);
|
|
3144
1471
|
default:
|
|
3145
1472
|
const parsedBody = parsedOutput.body;
|
|
3146
1473
|
return throwDefaultError({
|