@aws-sdk/client-mediapackage 3.504.0 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +21 -570
- package/dist-es/protocols/Aws_restJson1.js +24 -573
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -709,7 +709,7 @@ var se_UpdateOriginEndpointCommand = /* @__PURE__ */ __name(async (input, contex
|
|
|
709
709
|
}, "se_UpdateOriginEndpointCommand");
|
|
710
710
|
var de_ConfigureLogsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
711
711
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
712
|
-
return
|
|
712
|
+
return de_CommandError(output, context);
|
|
713
713
|
}
|
|
714
714
|
const contents = (0, import_smithy_client.map)({
|
|
715
715
|
$metadata: deserializeMetadata(output)
|
|
@@ -728,43 +728,9 @@ var de_ConfigureLogsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
728
728
|
Object.assign(contents, doc);
|
|
729
729
|
return contents;
|
|
730
730
|
}, "de_ConfigureLogsCommand");
|
|
731
|
-
var de_ConfigureLogsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
732
|
-
const parsedOutput = {
|
|
733
|
-
...output,
|
|
734
|
-
body: await parseErrorBody(output.body, context)
|
|
735
|
-
};
|
|
736
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
737
|
-
switch (errorCode) {
|
|
738
|
-
case "ForbiddenException":
|
|
739
|
-
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
740
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
741
|
-
case "InternalServerErrorException":
|
|
742
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
743
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
744
|
-
case "NotFoundException":
|
|
745
|
-
case "com.amazonaws.mediapackage#NotFoundException":
|
|
746
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
747
|
-
case "ServiceUnavailableException":
|
|
748
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
749
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
750
|
-
case "TooManyRequestsException":
|
|
751
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
752
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
753
|
-
case "UnprocessableEntityException":
|
|
754
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
755
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
756
|
-
default:
|
|
757
|
-
const parsedBody = parsedOutput.body;
|
|
758
|
-
return throwDefaultError({
|
|
759
|
-
output,
|
|
760
|
-
parsedBody,
|
|
761
|
-
errorCode
|
|
762
|
-
});
|
|
763
|
-
}
|
|
764
|
-
}, "de_ConfigureLogsCommandError");
|
|
765
731
|
var de_CreateChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
766
732
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
767
|
-
return
|
|
733
|
+
return de_CommandError(output, context);
|
|
768
734
|
}
|
|
769
735
|
const contents = (0, import_smithy_client.map)({
|
|
770
736
|
$metadata: deserializeMetadata(output)
|
|
@@ -783,43 +749,9 @@ var de_CreateChannelCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
783
749
|
Object.assign(contents, doc);
|
|
784
750
|
return contents;
|
|
785
751
|
}, "de_CreateChannelCommand");
|
|
786
|
-
var de_CreateChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
787
|
-
const parsedOutput = {
|
|
788
|
-
...output,
|
|
789
|
-
body: await parseErrorBody(output.body, context)
|
|
790
|
-
};
|
|
791
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
792
|
-
switch (errorCode) {
|
|
793
|
-
case "ForbiddenException":
|
|
794
|
-
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
795
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
796
|
-
case "InternalServerErrorException":
|
|
797
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
798
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
799
|
-
case "NotFoundException":
|
|
800
|
-
case "com.amazonaws.mediapackage#NotFoundException":
|
|
801
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
802
|
-
case "ServiceUnavailableException":
|
|
803
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
804
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
805
|
-
case "TooManyRequestsException":
|
|
806
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
807
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
808
|
-
case "UnprocessableEntityException":
|
|
809
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
810
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
811
|
-
default:
|
|
812
|
-
const parsedBody = parsedOutput.body;
|
|
813
|
-
return throwDefaultError({
|
|
814
|
-
output,
|
|
815
|
-
parsedBody,
|
|
816
|
-
errorCode
|
|
817
|
-
});
|
|
818
|
-
}
|
|
819
|
-
}, "de_CreateChannelCommandError");
|
|
820
752
|
var de_CreateHarvestJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
821
753
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
822
|
-
return
|
|
754
|
+
return de_CommandError(output, context);
|
|
823
755
|
}
|
|
824
756
|
const contents = (0, import_smithy_client.map)({
|
|
825
757
|
$metadata: deserializeMetadata(output)
|
|
@@ -839,43 +771,9 @@ var de_CreateHarvestJobCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
839
771
|
Object.assign(contents, doc);
|
|
840
772
|
return contents;
|
|
841
773
|
}, "de_CreateHarvestJobCommand");
|
|
842
|
-
var de_CreateHarvestJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
843
|
-
const parsedOutput = {
|
|
844
|
-
...output,
|
|
845
|
-
body: await parseErrorBody(output.body, context)
|
|
846
|
-
};
|
|
847
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
848
|
-
switch (errorCode) {
|
|
849
|
-
case "ForbiddenException":
|
|
850
|
-
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
851
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
852
|
-
case "InternalServerErrorException":
|
|
853
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
854
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
855
|
-
case "NotFoundException":
|
|
856
|
-
case "com.amazonaws.mediapackage#NotFoundException":
|
|
857
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
858
|
-
case "ServiceUnavailableException":
|
|
859
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
860
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
861
|
-
case "TooManyRequestsException":
|
|
862
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
863
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
864
|
-
case "UnprocessableEntityException":
|
|
865
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
866
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
867
|
-
default:
|
|
868
|
-
const parsedBody = parsedOutput.body;
|
|
869
|
-
return throwDefaultError({
|
|
870
|
-
output,
|
|
871
|
-
parsedBody,
|
|
872
|
-
errorCode
|
|
873
|
-
});
|
|
874
|
-
}
|
|
875
|
-
}, "de_CreateHarvestJobCommandError");
|
|
876
774
|
var de_CreateOriginEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
877
775
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
878
|
-
return
|
|
776
|
+
return de_CommandError(output, context);
|
|
879
777
|
}
|
|
880
778
|
const contents = (0, import_smithy_client.map)({
|
|
881
779
|
$metadata: deserializeMetadata(output)
|
|
@@ -903,43 +801,9 @@ var de_CreateOriginEndpointCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
903
801
|
Object.assign(contents, doc);
|
|
904
802
|
return contents;
|
|
905
803
|
}, "de_CreateOriginEndpointCommand");
|
|
906
|
-
var de_CreateOriginEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
907
|
-
const parsedOutput = {
|
|
908
|
-
...output,
|
|
909
|
-
body: await parseErrorBody(output.body, context)
|
|
910
|
-
};
|
|
911
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
912
|
-
switch (errorCode) {
|
|
913
|
-
case "ForbiddenException":
|
|
914
|
-
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
915
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
916
|
-
case "InternalServerErrorException":
|
|
917
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
918
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
919
|
-
case "NotFoundException":
|
|
920
|
-
case "com.amazonaws.mediapackage#NotFoundException":
|
|
921
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
922
|
-
case "ServiceUnavailableException":
|
|
923
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
924
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
925
|
-
case "TooManyRequestsException":
|
|
926
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
927
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
928
|
-
case "UnprocessableEntityException":
|
|
929
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
930
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
931
|
-
default:
|
|
932
|
-
const parsedBody = parsedOutput.body;
|
|
933
|
-
return throwDefaultError({
|
|
934
|
-
output,
|
|
935
|
-
parsedBody,
|
|
936
|
-
errorCode
|
|
937
|
-
});
|
|
938
|
-
}
|
|
939
|
-
}, "de_CreateOriginEndpointCommandError");
|
|
940
804
|
var de_DeleteChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
941
805
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
942
|
-
return
|
|
806
|
+
return de_CommandError(output, context);
|
|
943
807
|
}
|
|
944
808
|
const contents = (0, import_smithy_client.map)({
|
|
945
809
|
$metadata: deserializeMetadata(output)
|
|
@@ -947,43 +811,9 @@ var de_DeleteChannelCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
947
811
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
948
812
|
return contents;
|
|
949
813
|
}, "de_DeleteChannelCommand");
|
|
950
|
-
var de_DeleteChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
951
|
-
const parsedOutput = {
|
|
952
|
-
...output,
|
|
953
|
-
body: await parseErrorBody(output.body, context)
|
|
954
|
-
};
|
|
955
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
956
|
-
switch (errorCode) {
|
|
957
|
-
case "ForbiddenException":
|
|
958
|
-
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
959
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
960
|
-
case "InternalServerErrorException":
|
|
961
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
962
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
963
|
-
case "NotFoundException":
|
|
964
|
-
case "com.amazonaws.mediapackage#NotFoundException":
|
|
965
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
966
|
-
case "ServiceUnavailableException":
|
|
967
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
968
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
969
|
-
case "TooManyRequestsException":
|
|
970
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
971
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
972
|
-
case "UnprocessableEntityException":
|
|
973
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
974
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
975
|
-
default:
|
|
976
|
-
const parsedBody = parsedOutput.body;
|
|
977
|
-
return throwDefaultError({
|
|
978
|
-
output,
|
|
979
|
-
parsedBody,
|
|
980
|
-
errorCode
|
|
981
|
-
});
|
|
982
|
-
}
|
|
983
|
-
}, "de_DeleteChannelCommandError");
|
|
984
814
|
var de_DeleteOriginEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
985
815
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
986
|
-
return
|
|
816
|
+
return de_CommandError(output, context);
|
|
987
817
|
}
|
|
988
818
|
const contents = (0, import_smithy_client.map)({
|
|
989
819
|
$metadata: deserializeMetadata(output)
|
|
@@ -991,43 +821,9 @@ var de_DeleteOriginEndpointCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
991
821
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
992
822
|
return contents;
|
|
993
823
|
}, "de_DeleteOriginEndpointCommand");
|
|
994
|
-
var de_DeleteOriginEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
995
|
-
const parsedOutput = {
|
|
996
|
-
...output,
|
|
997
|
-
body: await parseErrorBody(output.body, context)
|
|
998
|
-
};
|
|
999
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1000
|
-
switch (errorCode) {
|
|
1001
|
-
case "ForbiddenException":
|
|
1002
|
-
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
1003
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1004
|
-
case "InternalServerErrorException":
|
|
1005
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
1006
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1007
|
-
case "NotFoundException":
|
|
1008
|
-
case "com.amazonaws.mediapackage#NotFoundException":
|
|
1009
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1010
|
-
case "ServiceUnavailableException":
|
|
1011
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
1012
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1013
|
-
case "TooManyRequestsException":
|
|
1014
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
1015
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1016
|
-
case "UnprocessableEntityException":
|
|
1017
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
1018
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
1019
|
-
default:
|
|
1020
|
-
const parsedBody = parsedOutput.body;
|
|
1021
|
-
return throwDefaultError({
|
|
1022
|
-
output,
|
|
1023
|
-
parsedBody,
|
|
1024
|
-
errorCode
|
|
1025
|
-
});
|
|
1026
|
-
}
|
|
1027
|
-
}, "de_DeleteOriginEndpointCommandError");
|
|
1028
824
|
var de_DescribeChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1029
825
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1030
|
-
return
|
|
826
|
+
return de_CommandError(output, context);
|
|
1031
827
|
}
|
|
1032
828
|
const contents = (0, import_smithy_client.map)({
|
|
1033
829
|
$metadata: deserializeMetadata(output)
|
|
@@ -1046,43 +842,9 @@ var de_DescribeChannelCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1046
842
|
Object.assign(contents, doc);
|
|
1047
843
|
return contents;
|
|
1048
844
|
}, "de_DescribeChannelCommand");
|
|
1049
|
-
var de_DescribeChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1050
|
-
const parsedOutput = {
|
|
1051
|
-
...output,
|
|
1052
|
-
body: await parseErrorBody(output.body, context)
|
|
1053
|
-
};
|
|
1054
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1055
|
-
switch (errorCode) {
|
|
1056
|
-
case "ForbiddenException":
|
|
1057
|
-
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
1058
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1059
|
-
case "InternalServerErrorException":
|
|
1060
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
1061
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1062
|
-
case "NotFoundException":
|
|
1063
|
-
case "com.amazonaws.mediapackage#NotFoundException":
|
|
1064
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1065
|
-
case "ServiceUnavailableException":
|
|
1066
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
1067
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1068
|
-
case "TooManyRequestsException":
|
|
1069
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
1070
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1071
|
-
case "UnprocessableEntityException":
|
|
1072
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
1073
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
1074
|
-
default:
|
|
1075
|
-
const parsedBody = parsedOutput.body;
|
|
1076
|
-
return throwDefaultError({
|
|
1077
|
-
output,
|
|
1078
|
-
parsedBody,
|
|
1079
|
-
errorCode
|
|
1080
|
-
});
|
|
1081
|
-
}
|
|
1082
|
-
}, "de_DescribeChannelCommandError");
|
|
1083
845
|
var de_DescribeHarvestJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1084
846
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1085
|
-
return
|
|
847
|
+
return de_CommandError(output, context);
|
|
1086
848
|
}
|
|
1087
849
|
const contents = (0, import_smithy_client.map)({
|
|
1088
850
|
$metadata: deserializeMetadata(output)
|
|
@@ -1102,43 +864,9 @@ var de_DescribeHarvestJobCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1102
864
|
Object.assign(contents, doc);
|
|
1103
865
|
return contents;
|
|
1104
866
|
}, "de_DescribeHarvestJobCommand");
|
|
1105
|
-
var de_DescribeHarvestJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1106
|
-
const parsedOutput = {
|
|
1107
|
-
...output,
|
|
1108
|
-
body: await parseErrorBody(output.body, context)
|
|
1109
|
-
};
|
|
1110
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1111
|
-
switch (errorCode) {
|
|
1112
|
-
case "ForbiddenException":
|
|
1113
|
-
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
1114
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1115
|
-
case "InternalServerErrorException":
|
|
1116
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
1117
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1118
|
-
case "NotFoundException":
|
|
1119
|
-
case "com.amazonaws.mediapackage#NotFoundException":
|
|
1120
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1121
|
-
case "ServiceUnavailableException":
|
|
1122
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
1123
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1124
|
-
case "TooManyRequestsException":
|
|
1125
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
1126
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1127
|
-
case "UnprocessableEntityException":
|
|
1128
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
1129
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
1130
|
-
default:
|
|
1131
|
-
const parsedBody = parsedOutput.body;
|
|
1132
|
-
return throwDefaultError({
|
|
1133
|
-
output,
|
|
1134
|
-
parsedBody,
|
|
1135
|
-
errorCode
|
|
1136
|
-
});
|
|
1137
|
-
}
|
|
1138
|
-
}, "de_DescribeHarvestJobCommandError");
|
|
1139
867
|
var de_DescribeOriginEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1140
868
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1141
|
-
return
|
|
869
|
+
return de_CommandError(output, context);
|
|
1142
870
|
}
|
|
1143
871
|
const contents = (0, import_smithy_client.map)({
|
|
1144
872
|
$metadata: deserializeMetadata(output)
|
|
@@ -1166,43 +894,9 @@ var de_DescribeOriginEndpointCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1166
894
|
Object.assign(contents, doc);
|
|
1167
895
|
return contents;
|
|
1168
896
|
}, "de_DescribeOriginEndpointCommand");
|
|
1169
|
-
var de_DescribeOriginEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1170
|
-
const parsedOutput = {
|
|
1171
|
-
...output,
|
|
1172
|
-
body: await parseErrorBody(output.body, context)
|
|
1173
|
-
};
|
|
1174
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1175
|
-
switch (errorCode) {
|
|
1176
|
-
case "ForbiddenException":
|
|
1177
|
-
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
1178
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1179
|
-
case "InternalServerErrorException":
|
|
1180
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
1181
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1182
|
-
case "NotFoundException":
|
|
1183
|
-
case "com.amazonaws.mediapackage#NotFoundException":
|
|
1184
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1185
|
-
case "ServiceUnavailableException":
|
|
1186
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
1187
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1188
|
-
case "TooManyRequestsException":
|
|
1189
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
1190
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1191
|
-
case "UnprocessableEntityException":
|
|
1192
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
1193
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
1194
|
-
default:
|
|
1195
|
-
const parsedBody = parsedOutput.body;
|
|
1196
|
-
return throwDefaultError({
|
|
1197
|
-
output,
|
|
1198
|
-
parsedBody,
|
|
1199
|
-
errorCode
|
|
1200
|
-
});
|
|
1201
|
-
}
|
|
1202
|
-
}, "de_DescribeOriginEndpointCommandError");
|
|
1203
897
|
var de_ListChannelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1204
898
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1205
|
-
return
|
|
899
|
+
return de_CommandError(output, context);
|
|
1206
900
|
}
|
|
1207
901
|
const contents = (0, import_smithy_client.map)({
|
|
1208
902
|
$metadata: deserializeMetadata(output)
|
|
@@ -1215,43 +909,9 @@ var de_ListChannelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1215
909
|
Object.assign(contents, doc);
|
|
1216
910
|
return contents;
|
|
1217
911
|
}, "de_ListChannelsCommand");
|
|
1218
|
-
var de_ListChannelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1219
|
-
const parsedOutput = {
|
|
1220
|
-
...output,
|
|
1221
|
-
body: await parseErrorBody(output.body, context)
|
|
1222
|
-
};
|
|
1223
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1224
|
-
switch (errorCode) {
|
|
1225
|
-
case "ForbiddenException":
|
|
1226
|
-
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
1227
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1228
|
-
case "InternalServerErrorException":
|
|
1229
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
1230
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1231
|
-
case "NotFoundException":
|
|
1232
|
-
case "com.amazonaws.mediapackage#NotFoundException":
|
|
1233
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1234
|
-
case "ServiceUnavailableException":
|
|
1235
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
1236
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1237
|
-
case "TooManyRequestsException":
|
|
1238
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
1239
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1240
|
-
case "UnprocessableEntityException":
|
|
1241
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
1242
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
1243
|
-
default:
|
|
1244
|
-
const parsedBody = parsedOutput.body;
|
|
1245
|
-
return throwDefaultError({
|
|
1246
|
-
output,
|
|
1247
|
-
parsedBody,
|
|
1248
|
-
errorCode
|
|
1249
|
-
});
|
|
1250
|
-
}
|
|
1251
|
-
}, "de_ListChannelsCommandError");
|
|
1252
912
|
var de_ListHarvestJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1253
913
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1254
|
-
return
|
|
914
|
+
return de_CommandError(output, context);
|
|
1255
915
|
}
|
|
1256
916
|
const contents = (0, import_smithy_client.map)({
|
|
1257
917
|
$metadata: deserializeMetadata(output)
|
|
@@ -1264,43 +924,9 @@ var de_ListHarvestJobsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1264
924
|
Object.assign(contents, doc);
|
|
1265
925
|
return contents;
|
|
1266
926
|
}, "de_ListHarvestJobsCommand");
|
|
1267
|
-
var de_ListHarvestJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1268
|
-
const parsedOutput = {
|
|
1269
|
-
...output,
|
|
1270
|
-
body: await parseErrorBody(output.body, context)
|
|
1271
|
-
};
|
|
1272
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1273
|
-
switch (errorCode) {
|
|
1274
|
-
case "ForbiddenException":
|
|
1275
|
-
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
1276
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1277
|
-
case "InternalServerErrorException":
|
|
1278
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
1279
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1280
|
-
case "NotFoundException":
|
|
1281
|
-
case "com.amazonaws.mediapackage#NotFoundException":
|
|
1282
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1283
|
-
case "ServiceUnavailableException":
|
|
1284
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
1285
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1286
|
-
case "TooManyRequestsException":
|
|
1287
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
1288
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1289
|
-
case "UnprocessableEntityException":
|
|
1290
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
1291
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
1292
|
-
default:
|
|
1293
|
-
const parsedBody = parsedOutput.body;
|
|
1294
|
-
return throwDefaultError({
|
|
1295
|
-
output,
|
|
1296
|
-
parsedBody,
|
|
1297
|
-
errorCode
|
|
1298
|
-
});
|
|
1299
|
-
}
|
|
1300
|
-
}, "de_ListHarvestJobsCommandError");
|
|
1301
927
|
var de_ListOriginEndpointsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1302
928
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1303
|
-
return
|
|
929
|
+
return de_CommandError(output, context);
|
|
1304
930
|
}
|
|
1305
931
|
const contents = (0, import_smithy_client.map)({
|
|
1306
932
|
$metadata: deserializeMetadata(output)
|
|
@@ -1313,43 +939,9 @@ var de_ListOriginEndpointsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1313
939
|
Object.assign(contents, doc);
|
|
1314
940
|
return contents;
|
|
1315
941
|
}, "de_ListOriginEndpointsCommand");
|
|
1316
|
-
var de_ListOriginEndpointsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1317
|
-
const parsedOutput = {
|
|
1318
|
-
...output,
|
|
1319
|
-
body: await parseErrorBody(output.body, context)
|
|
1320
|
-
};
|
|
1321
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1322
|
-
switch (errorCode) {
|
|
1323
|
-
case "ForbiddenException":
|
|
1324
|
-
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
1325
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1326
|
-
case "InternalServerErrorException":
|
|
1327
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
1328
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1329
|
-
case "NotFoundException":
|
|
1330
|
-
case "com.amazonaws.mediapackage#NotFoundException":
|
|
1331
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1332
|
-
case "ServiceUnavailableException":
|
|
1333
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
1334
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1335
|
-
case "TooManyRequestsException":
|
|
1336
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
1337
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1338
|
-
case "UnprocessableEntityException":
|
|
1339
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
1340
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
1341
|
-
default:
|
|
1342
|
-
const parsedBody = parsedOutput.body;
|
|
1343
|
-
return throwDefaultError({
|
|
1344
|
-
output,
|
|
1345
|
-
parsedBody,
|
|
1346
|
-
errorCode
|
|
1347
|
-
});
|
|
1348
|
-
}
|
|
1349
|
-
}, "de_ListOriginEndpointsCommandError");
|
|
1350
942
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1351
943
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1352
|
-
return
|
|
944
|
+
return de_CommandError(output, context);
|
|
1353
945
|
}
|
|
1354
946
|
const contents = (0, import_smithy_client.map)({
|
|
1355
947
|
$metadata: deserializeMetadata(output)
|
|
@@ -1361,22 +953,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1361
953
|
Object.assign(contents, doc);
|
|
1362
954
|
return contents;
|
|
1363
955
|
}, "de_ListTagsForResourceCommand");
|
|
1364
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1365
|
-
const parsedOutput = {
|
|
1366
|
-
...output,
|
|
1367
|
-
body: await parseErrorBody(output.body, context)
|
|
1368
|
-
};
|
|
1369
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1370
|
-
const parsedBody = parsedOutput.body;
|
|
1371
|
-
return throwDefaultError({
|
|
1372
|
-
output,
|
|
1373
|
-
parsedBody,
|
|
1374
|
-
errorCode
|
|
1375
|
-
});
|
|
1376
|
-
}, "de_ListTagsForResourceCommandError");
|
|
1377
956
|
var de_RotateChannelCredentialsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1378
957
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1379
|
-
return
|
|
958
|
+
return de_CommandError(output, context);
|
|
1380
959
|
}
|
|
1381
960
|
const contents = (0, import_smithy_client.map)({
|
|
1382
961
|
$metadata: deserializeMetadata(output)
|
|
@@ -1395,43 +974,9 @@ var de_RotateChannelCredentialsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1395
974
|
Object.assign(contents, doc);
|
|
1396
975
|
return contents;
|
|
1397
976
|
}, "de_RotateChannelCredentialsCommand");
|
|
1398
|
-
var de_RotateChannelCredentialsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1399
|
-
const parsedOutput = {
|
|
1400
|
-
...output,
|
|
1401
|
-
body: await parseErrorBody(output.body, context)
|
|
1402
|
-
};
|
|
1403
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1404
|
-
switch (errorCode) {
|
|
1405
|
-
case "ForbiddenException":
|
|
1406
|
-
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
1407
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1408
|
-
case "InternalServerErrorException":
|
|
1409
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
1410
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1411
|
-
case "NotFoundException":
|
|
1412
|
-
case "com.amazonaws.mediapackage#NotFoundException":
|
|
1413
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1414
|
-
case "ServiceUnavailableException":
|
|
1415
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
1416
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1417
|
-
case "TooManyRequestsException":
|
|
1418
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
1419
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1420
|
-
case "UnprocessableEntityException":
|
|
1421
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
1422
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
1423
|
-
default:
|
|
1424
|
-
const parsedBody = parsedOutput.body;
|
|
1425
|
-
return throwDefaultError({
|
|
1426
|
-
output,
|
|
1427
|
-
parsedBody,
|
|
1428
|
-
errorCode
|
|
1429
|
-
});
|
|
1430
|
-
}
|
|
1431
|
-
}, "de_RotateChannelCredentialsCommandError");
|
|
1432
977
|
var de_RotateIngestEndpointCredentialsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1433
978
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1434
|
-
return
|
|
979
|
+
return de_CommandError(output, context);
|
|
1435
980
|
}
|
|
1436
981
|
const contents = (0, import_smithy_client.map)({
|
|
1437
982
|
$metadata: deserializeMetadata(output)
|
|
@@ -1450,43 +995,9 @@ var de_RotateIngestEndpointCredentialsCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1450
995
|
Object.assign(contents, doc);
|
|
1451
996
|
return contents;
|
|
1452
997
|
}, "de_RotateIngestEndpointCredentialsCommand");
|
|
1453
|
-
var de_RotateIngestEndpointCredentialsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1454
|
-
const parsedOutput = {
|
|
1455
|
-
...output,
|
|
1456
|
-
body: await parseErrorBody(output.body, context)
|
|
1457
|
-
};
|
|
1458
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1459
|
-
switch (errorCode) {
|
|
1460
|
-
case "ForbiddenException":
|
|
1461
|
-
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
1462
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1463
|
-
case "InternalServerErrorException":
|
|
1464
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
1465
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1466
|
-
case "NotFoundException":
|
|
1467
|
-
case "com.amazonaws.mediapackage#NotFoundException":
|
|
1468
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1469
|
-
case "ServiceUnavailableException":
|
|
1470
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
1471
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1472
|
-
case "TooManyRequestsException":
|
|
1473
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
1474
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1475
|
-
case "UnprocessableEntityException":
|
|
1476
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
1477
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
1478
|
-
default:
|
|
1479
|
-
const parsedBody = parsedOutput.body;
|
|
1480
|
-
return throwDefaultError({
|
|
1481
|
-
output,
|
|
1482
|
-
parsedBody,
|
|
1483
|
-
errorCode
|
|
1484
|
-
});
|
|
1485
|
-
}
|
|
1486
|
-
}, "de_RotateIngestEndpointCredentialsCommandError");
|
|
1487
998
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1488
999
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1489
|
-
return
|
|
1000
|
+
return de_CommandError(output, context);
|
|
1490
1001
|
}
|
|
1491
1002
|
const contents = (0, import_smithy_client.map)({
|
|
1492
1003
|
$metadata: deserializeMetadata(output)
|
|
@@ -1494,22 +1005,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1494
1005
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1495
1006
|
return contents;
|
|
1496
1007
|
}, "de_TagResourceCommand");
|
|
1497
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1498
|
-
const parsedOutput = {
|
|
1499
|
-
...output,
|
|
1500
|
-
body: await parseErrorBody(output.body, context)
|
|
1501
|
-
};
|
|
1502
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1503
|
-
const parsedBody = parsedOutput.body;
|
|
1504
|
-
return throwDefaultError({
|
|
1505
|
-
output,
|
|
1506
|
-
parsedBody,
|
|
1507
|
-
errorCode
|
|
1508
|
-
});
|
|
1509
|
-
}, "de_TagResourceCommandError");
|
|
1510
1008
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1511
1009
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1512
|
-
return
|
|
1010
|
+
return de_CommandError(output, context);
|
|
1513
1011
|
}
|
|
1514
1012
|
const contents = (0, import_smithy_client.map)({
|
|
1515
1013
|
$metadata: deserializeMetadata(output)
|
|
@@ -1517,22 +1015,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1517
1015
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1518
1016
|
return contents;
|
|
1519
1017
|
}, "de_UntagResourceCommand");
|
|
1520
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1521
|
-
const parsedOutput = {
|
|
1522
|
-
...output,
|
|
1523
|
-
body: await parseErrorBody(output.body, context)
|
|
1524
|
-
};
|
|
1525
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1526
|
-
const parsedBody = parsedOutput.body;
|
|
1527
|
-
return throwDefaultError({
|
|
1528
|
-
output,
|
|
1529
|
-
parsedBody,
|
|
1530
|
-
errorCode
|
|
1531
|
-
});
|
|
1532
|
-
}, "de_UntagResourceCommandError");
|
|
1533
1018
|
var de_UpdateChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1534
1019
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1535
|
-
return
|
|
1020
|
+
return de_CommandError(output, context);
|
|
1536
1021
|
}
|
|
1537
1022
|
const contents = (0, import_smithy_client.map)({
|
|
1538
1023
|
$metadata: deserializeMetadata(output)
|
|
@@ -1551,43 +1036,9 @@ var de_UpdateChannelCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1551
1036
|
Object.assign(contents, doc);
|
|
1552
1037
|
return contents;
|
|
1553
1038
|
}, "de_UpdateChannelCommand");
|
|
1554
|
-
var de_UpdateChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1555
|
-
const parsedOutput = {
|
|
1556
|
-
...output,
|
|
1557
|
-
body: await parseErrorBody(output.body, context)
|
|
1558
|
-
};
|
|
1559
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1560
|
-
switch (errorCode) {
|
|
1561
|
-
case "ForbiddenException":
|
|
1562
|
-
case "com.amazonaws.mediapackage#ForbiddenException":
|
|
1563
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1564
|
-
case "InternalServerErrorException":
|
|
1565
|
-
case "com.amazonaws.mediapackage#InternalServerErrorException":
|
|
1566
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1567
|
-
case "NotFoundException":
|
|
1568
|
-
case "com.amazonaws.mediapackage#NotFoundException":
|
|
1569
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1570
|
-
case "ServiceUnavailableException":
|
|
1571
|
-
case "com.amazonaws.mediapackage#ServiceUnavailableException":
|
|
1572
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1573
|
-
case "TooManyRequestsException":
|
|
1574
|
-
case "com.amazonaws.mediapackage#TooManyRequestsException":
|
|
1575
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1576
|
-
case "UnprocessableEntityException":
|
|
1577
|
-
case "com.amazonaws.mediapackage#UnprocessableEntityException":
|
|
1578
|
-
throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
|
|
1579
|
-
default:
|
|
1580
|
-
const parsedBody = parsedOutput.body;
|
|
1581
|
-
return throwDefaultError({
|
|
1582
|
-
output,
|
|
1583
|
-
parsedBody,
|
|
1584
|
-
errorCode
|
|
1585
|
-
});
|
|
1586
|
-
}
|
|
1587
|
-
}, "de_UpdateChannelCommandError");
|
|
1588
1039
|
var de_UpdateOriginEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1589
1040
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1590
|
-
return
|
|
1041
|
+
return de_CommandError(output, context);
|
|
1591
1042
|
}
|
|
1592
1043
|
const contents = (0, import_smithy_client.map)({
|
|
1593
1044
|
$metadata: deserializeMetadata(output)
|
|
@@ -1615,7 +1066,7 @@ var de_UpdateOriginEndpointCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1615
1066
|
Object.assign(contents, doc);
|
|
1616
1067
|
return contents;
|
|
1617
1068
|
}, "de_UpdateOriginEndpointCommand");
|
|
1618
|
-
var
|
|
1069
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1619
1070
|
const parsedOutput = {
|
|
1620
1071
|
...output,
|
|
1621
1072
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1648,7 +1099,7 @@ var de_UpdateOriginEndpointCommandError = /* @__PURE__ */ __name(async (output,
|
|
|
1648
1099
|
errorCode
|
|
1649
1100
|
});
|
|
1650
1101
|
}
|
|
1651
|
-
}, "
|
|
1102
|
+
}, "de_CommandError");
|
|
1652
1103
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(MediaPackageServiceException);
|
|
1653
1104
|
var de_ForbiddenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1654
1105
|
const contents = (0, import_smithy_client.map)({});
|