@aws-sdk/client-mediapackagev2 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 +45 -746
- package/dist-es/protocols/Aws_restJson1.js +35 -736
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -754,7 +754,7 @@ var se_UpdateOriginEndpointCommand = /* @__PURE__ */ __name(async (input, contex
|
|
|
754
754
|
}, "se_UpdateOriginEndpointCommand");
|
|
755
755
|
var de_CreateChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
756
756
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
757
|
-
return
|
|
757
|
+
return de_CommandError(output, context);
|
|
758
758
|
}
|
|
759
759
|
const contents = (0, import_smithy_client.map)({
|
|
760
760
|
$metadata: deserializeMetadata(output)
|
|
@@ -773,46 +773,9 @@ var de_CreateChannelCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
773
773
|
Object.assign(contents, doc);
|
|
774
774
|
return contents;
|
|
775
775
|
}, "de_CreateChannelCommand");
|
|
776
|
-
var de_CreateChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
777
|
-
const parsedOutput = {
|
|
778
|
-
...output,
|
|
779
|
-
body: await parseErrorBody(output.body, context)
|
|
780
|
-
};
|
|
781
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
782
|
-
switch (errorCode) {
|
|
783
|
-
case "AccessDeniedException":
|
|
784
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
785
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
786
|
-
case "ConflictException":
|
|
787
|
-
case "com.amazonaws.mediapackagev2#ConflictException":
|
|
788
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
789
|
-
case "InternalServerException":
|
|
790
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
791
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
792
|
-
case "ResourceNotFoundException":
|
|
793
|
-
case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
|
|
794
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
795
|
-
case "ServiceQuotaExceededException":
|
|
796
|
-
case "com.amazonaws.mediapackagev2#ServiceQuotaExceededException":
|
|
797
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
798
|
-
case "ThrottlingException":
|
|
799
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
800
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
801
|
-
case "ValidationException":
|
|
802
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
803
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
804
|
-
default:
|
|
805
|
-
const parsedBody = parsedOutput.body;
|
|
806
|
-
return throwDefaultError({
|
|
807
|
-
output,
|
|
808
|
-
parsedBody,
|
|
809
|
-
errorCode
|
|
810
|
-
});
|
|
811
|
-
}
|
|
812
|
-
}, "de_CreateChannelCommandError");
|
|
813
776
|
var de_CreateChannelGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
814
777
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
815
|
-
return
|
|
778
|
+
return de_CommandError(output, context);
|
|
816
779
|
}
|
|
817
780
|
const contents = (0, import_smithy_client.map)({
|
|
818
781
|
$metadata: deserializeMetadata(output)
|
|
@@ -830,46 +793,9 @@ var de_CreateChannelGroupCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
830
793
|
Object.assign(contents, doc);
|
|
831
794
|
return contents;
|
|
832
795
|
}, "de_CreateChannelGroupCommand");
|
|
833
|
-
var de_CreateChannelGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
834
|
-
const parsedOutput = {
|
|
835
|
-
...output,
|
|
836
|
-
body: await parseErrorBody(output.body, context)
|
|
837
|
-
};
|
|
838
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
839
|
-
switch (errorCode) {
|
|
840
|
-
case "AccessDeniedException":
|
|
841
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
842
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
843
|
-
case "ConflictException":
|
|
844
|
-
case "com.amazonaws.mediapackagev2#ConflictException":
|
|
845
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
846
|
-
case "InternalServerException":
|
|
847
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
848
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
849
|
-
case "ResourceNotFoundException":
|
|
850
|
-
case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
|
|
851
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
852
|
-
case "ServiceQuotaExceededException":
|
|
853
|
-
case "com.amazonaws.mediapackagev2#ServiceQuotaExceededException":
|
|
854
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
855
|
-
case "ThrottlingException":
|
|
856
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
857
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
858
|
-
case "ValidationException":
|
|
859
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
860
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
861
|
-
default:
|
|
862
|
-
const parsedBody = parsedOutput.body;
|
|
863
|
-
return throwDefaultError({
|
|
864
|
-
output,
|
|
865
|
-
parsedBody,
|
|
866
|
-
errorCode
|
|
867
|
-
});
|
|
868
|
-
}
|
|
869
|
-
}, "de_CreateChannelGroupCommandError");
|
|
870
796
|
var de_CreateOriginEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
871
797
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
872
|
-
return
|
|
798
|
+
return de_CommandError(output, context);
|
|
873
799
|
}
|
|
874
800
|
const contents = (0, import_smithy_client.map)({
|
|
875
801
|
$metadata: deserializeMetadata(output)
|
|
@@ -893,46 +819,9 @@ var de_CreateOriginEndpointCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
893
819
|
Object.assign(contents, doc);
|
|
894
820
|
return contents;
|
|
895
821
|
}, "de_CreateOriginEndpointCommand");
|
|
896
|
-
var de_CreateOriginEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
897
|
-
const parsedOutput = {
|
|
898
|
-
...output,
|
|
899
|
-
body: await parseErrorBody(output.body, context)
|
|
900
|
-
};
|
|
901
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
902
|
-
switch (errorCode) {
|
|
903
|
-
case "AccessDeniedException":
|
|
904
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
905
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
906
|
-
case "ConflictException":
|
|
907
|
-
case "com.amazonaws.mediapackagev2#ConflictException":
|
|
908
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
909
|
-
case "InternalServerException":
|
|
910
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
911
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
912
|
-
case "ResourceNotFoundException":
|
|
913
|
-
case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
|
|
914
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
915
|
-
case "ServiceQuotaExceededException":
|
|
916
|
-
case "com.amazonaws.mediapackagev2#ServiceQuotaExceededException":
|
|
917
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
918
|
-
case "ThrottlingException":
|
|
919
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
920
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
921
|
-
case "ValidationException":
|
|
922
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
923
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
924
|
-
default:
|
|
925
|
-
const parsedBody = parsedOutput.body;
|
|
926
|
-
return throwDefaultError({
|
|
927
|
-
output,
|
|
928
|
-
parsedBody,
|
|
929
|
-
errorCode
|
|
930
|
-
});
|
|
931
|
-
}
|
|
932
|
-
}, "de_CreateOriginEndpointCommandError");
|
|
933
822
|
var de_DeleteChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
934
823
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
935
|
-
return
|
|
824
|
+
return de_CommandError(output, context);
|
|
936
825
|
}
|
|
937
826
|
const contents = (0, import_smithy_client.map)({
|
|
938
827
|
$metadata: deserializeMetadata(output)
|
|
@@ -940,40 +829,9 @@ var de_DeleteChannelCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
940
829
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
941
830
|
return contents;
|
|
942
831
|
}, "de_DeleteChannelCommand");
|
|
943
|
-
var de_DeleteChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
944
|
-
const parsedOutput = {
|
|
945
|
-
...output,
|
|
946
|
-
body: await parseErrorBody(output.body, context)
|
|
947
|
-
};
|
|
948
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
949
|
-
switch (errorCode) {
|
|
950
|
-
case "AccessDeniedException":
|
|
951
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
952
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
953
|
-
case "ConflictException":
|
|
954
|
-
case "com.amazonaws.mediapackagev2#ConflictException":
|
|
955
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
956
|
-
case "InternalServerException":
|
|
957
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
958
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
959
|
-
case "ThrottlingException":
|
|
960
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
961
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
962
|
-
case "ValidationException":
|
|
963
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
964
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
965
|
-
default:
|
|
966
|
-
const parsedBody = parsedOutput.body;
|
|
967
|
-
return throwDefaultError({
|
|
968
|
-
output,
|
|
969
|
-
parsedBody,
|
|
970
|
-
errorCode
|
|
971
|
-
});
|
|
972
|
-
}
|
|
973
|
-
}, "de_DeleteChannelCommandError");
|
|
974
832
|
var de_DeleteChannelGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
975
833
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
976
|
-
return
|
|
834
|
+
return de_CommandError(output, context);
|
|
977
835
|
}
|
|
978
836
|
const contents = (0, import_smithy_client.map)({
|
|
979
837
|
$metadata: deserializeMetadata(output)
|
|
@@ -981,40 +839,9 @@ var de_DeleteChannelGroupCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
981
839
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
982
840
|
return contents;
|
|
983
841
|
}, "de_DeleteChannelGroupCommand");
|
|
984
|
-
var de_DeleteChannelGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
985
|
-
const parsedOutput = {
|
|
986
|
-
...output,
|
|
987
|
-
body: await parseErrorBody(output.body, context)
|
|
988
|
-
};
|
|
989
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
990
|
-
switch (errorCode) {
|
|
991
|
-
case "AccessDeniedException":
|
|
992
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
993
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
994
|
-
case "ConflictException":
|
|
995
|
-
case "com.amazonaws.mediapackagev2#ConflictException":
|
|
996
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
997
|
-
case "InternalServerException":
|
|
998
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
999
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1000
|
-
case "ThrottlingException":
|
|
1001
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
1002
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1003
|
-
case "ValidationException":
|
|
1004
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
1005
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1006
|
-
default:
|
|
1007
|
-
const parsedBody = parsedOutput.body;
|
|
1008
|
-
return throwDefaultError({
|
|
1009
|
-
output,
|
|
1010
|
-
parsedBody,
|
|
1011
|
-
errorCode
|
|
1012
|
-
});
|
|
1013
|
-
}
|
|
1014
|
-
}, "de_DeleteChannelGroupCommandError");
|
|
1015
842
|
var de_DeleteChannelPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1016
843
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1017
|
-
return
|
|
844
|
+
return de_CommandError(output, context);
|
|
1018
845
|
}
|
|
1019
846
|
const contents = (0, import_smithy_client.map)({
|
|
1020
847
|
$metadata: deserializeMetadata(output)
|
|
@@ -1022,40 +849,9 @@ var de_DeleteChannelPolicyCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1022
849
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1023
850
|
return contents;
|
|
1024
851
|
}, "de_DeleteChannelPolicyCommand");
|
|
1025
|
-
var de_DeleteChannelPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1026
|
-
const parsedOutput = {
|
|
1027
|
-
...output,
|
|
1028
|
-
body: await parseErrorBody(output.body, context)
|
|
1029
|
-
};
|
|
1030
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1031
|
-
switch (errorCode) {
|
|
1032
|
-
case "AccessDeniedException":
|
|
1033
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
1034
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1035
|
-
case "ConflictException":
|
|
1036
|
-
case "com.amazonaws.mediapackagev2#ConflictException":
|
|
1037
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1038
|
-
case "InternalServerException":
|
|
1039
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
1040
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1041
|
-
case "ThrottlingException":
|
|
1042
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
1043
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1044
|
-
case "ValidationException":
|
|
1045
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
1046
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1047
|
-
default:
|
|
1048
|
-
const parsedBody = parsedOutput.body;
|
|
1049
|
-
return throwDefaultError({
|
|
1050
|
-
output,
|
|
1051
|
-
parsedBody,
|
|
1052
|
-
errorCode
|
|
1053
|
-
});
|
|
1054
|
-
}
|
|
1055
|
-
}, "de_DeleteChannelPolicyCommandError");
|
|
1056
852
|
var de_DeleteOriginEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1057
853
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1058
|
-
return
|
|
854
|
+
return de_CommandError(output, context);
|
|
1059
855
|
}
|
|
1060
856
|
const contents = (0, import_smithy_client.map)({
|
|
1061
857
|
$metadata: deserializeMetadata(output)
|
|
@@ -1063,37 +859,9 @@ var de_DeleteOriginEndpointCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1063
859
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1064
860
|
return contents;
|
|
1065
861
|
}, "de_DeleteOriginEndpointCommand");
|
|
1066
|
-
var de_DeleteOriginEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1067
|
-
const parsedOutput = {
|
|
1068
|
-
...output,
|
|
1069
|
-
body: await parseErrorBody(output.body, context)
|
|
1070
|
-
};
|
|
1071
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1072
|
-
switch (errorCode) {
|
|
1073
|
-
case "AccessDeniedException":
|
|
1074
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
1075
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1076
|
-
case "InternalServerException":
|
|
1077
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
1078
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1079
|
-
case "ThrottlingException":
|
|
1080
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
1081
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1082
|
-
case "ValidationException":
|
|
1083
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
1084
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1085
|
-
default:
|
|
1086
|
-
const parsedBody = parsedOutput.body;
|
|
1087
|
-
return throwDefaultError({
|
|
1088
|
-
output,
|
|
1089
|
-
parsedBody,
|
|
1090
|
-
errorCode
|
|
1091
|
-
});
|
|
1092
|
-
}
|
|
1093
|
-
}, "de_DeleteOriginEndpointCommandError");
|
|
1094
862
|
var de_DeleteOriginEndpointPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1095
863
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1096
|
-
return
|
|
864
|
+
return de_CommandError(output, context);
|
|
1097
865
|
}
|
|
1098
866
|
const contents = (0, import_smithy_client.map)({
|
|
1099
867
|
$metadata: deserializeMetadata(output)
|
|
@@ -1101,40 +869,9 @@ var de_DeleteOriginEndpointPolicyCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1101
869
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1102
870
|
return contents;
|
|
1103
871
|
}, "de_DeleteOriginEndpointPolicyCommand");
|
|
1104
|
-
var de_DeleteOriginEndpointPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1105
|
-
const parsedOutput = {
|
|
1106
|
-
...output,
|
|
1107
|
-
body: await parseErrorBody(output.body, context)
|
|
1108
|
-
};
|
|
1109
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1110
|
-
switch (errorCode) {
|
|
1111
|
-
case "AccessDeniedException":
|
|
1112
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
1113
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1114
|
-
case "ConflictException":
|
|
1115
|
-
case "com.amazonaws.mediapackagev2#ConflictException":
|
|
1116
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1117
|
-
case "InternalServerException":
|
|
1118
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
1119
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1120
|
-
case "ThrottlingException":
|
|
1121
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
1122
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1123
|
-
case "ValidationException":
|
|
1124
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
1125
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1126
|
-
default:
|
|
1127
|
-
const parsedBody = parsedOutput.body;
|
|
1128
|
-
return throwDefaultError({
|
|
1129
|
-
output,
|
|
1130
|
-
parsedBody,
|
|
1131
|
-
errorCode
|
|
1132
|
-
});
|
|
1133
|
-
}
|
|
1134
|
-
}, "de_DeleteOriginEndpointPolicyCommandError");
|
|
1135
872
|
var de_GetChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1136
873
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1137
|
-
return
|
|
874
|
+
return de_CommandError(output, context);
|
|
1138
875
|
}
|
|
1139
876
|
const contents = (0, import_smithy_client.map)({
|
|
1140
877
|
$metadata: deserializeMetadata(output)
|
|
@@ -1153,40 +890,9 @@ var de_GetChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1153
890
|
Object.assign(contents, doc);
|
|
1154
891
|
return contents;
|
|
1155
892
|
}, "de_GetChannelCommand");
|
|
1156
|
-
var de_GetChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1157
|
-
const parsedOutput = {
|
|
1158
|
-
...output,
|
|
1159
|
-
body: await parseErrorBody(output.body, context)
|
|
1160
|
-
};
|
|
1161
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1162
|
-
switch (errorCode) {
|
|
1163
|
-
case "AccessDeniedException":
|
|
1164
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
1165
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1166
|
-
case "InternalServerException":
|
|
1167
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
1168
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1169
|
-
case "ResourceNotFoundException":
|
|
1170
|
-
case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
|
|
1171
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1172
|
-
case "ThrottlingException":
|
|
1173
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
1174
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1175
|
-
case "ValidationException":
|
|
1176
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
1177
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1178
|
-
default:
|
|
1179
|
-
const parsedBody = parsedOutput.body;
|
|
1180
|
-
return throwDefaultError({
|
|
1181
|
-
output,
|
|
1182
|
-
parsedBody,
|
|
1183
|
-
errorCode
|
|
1184
|
-
});
|
|
1185
|
-
}
|
|
1186
|
-
}, "de_GetChannelCommandError");
|
|
1187
893
|
var de_GetChannelGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1188
894
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1189
|
-
return
|
|
895
|
+
return de_CommandError(output, context);
|
|
1190
896
|
}
|
|
1191
897
|
const contents = (0, import_smithy_client.map)({
|
|
1192
898
|
$metadata: deserializeMetadata(output)
|
|
@@ -1204,40 +910,9 @@ var de_GetChannelGroupCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1204
910
|
Object.assign(contents, doc);
|
|
1205
911
|
return contents;
|
|
1206
912
|
}, "de_GetChannelGroupCommand");
|
|
1207
|
-
var de_GetChannelGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1208
|
-
const parsedOutput = {
|
|
1209
|
-
...output,
|
|
1210
|
-
body: await parseErrorBody(output.body, context)
|
|
1211
|
-
};
|
|
1212
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1213
|
-
switch (errorCode) {
|
|
1214
|
-
case "AccessDeniedException":
|
|
1215
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
1216
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1217
|
-
case "InternalServerException":
|
|
1218
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
1219
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1220
|
-
case "ResourceNotFoundException":
|
|
1221
|
-
case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
|
|
1222
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1223
|
-
case "ThrottlingException":
|
|
1224
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
1225
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1226
|
-
case "ValidationException":
|
|
1227
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
1228
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1229
|
-
default:
|
|
1230
|
-
const parsedBody = parsedOutput.body;
|
|
1231
|
-
return throwDefaultError({
|
|
1232
|
-
output,
|
|
1233
|
-
parsedBody,
|
|
1234
|
-
errorCode
|
|
1235
|
-
});
|
|
1236
|
-
}
|
|
1237
|
-
}, "de_GetChannelGroupCommandError");
|
|
1238
913
|
var de_GetChannelPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1239
914
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1240
|
-
return
|
|
915
|
+
return de_CommandError(output, context);
|
|
1241
916
|
}
|
|
1242
917
|
const contents = (0, import_smithy_client.map)({
|
|
1243
918
|
$metadata: deserializeMetadata(output)
|
|
@@ -1251,40 +926,9 @@ var de_GetChannelPolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1251
926
|
Object.assign(contents, doc);
|
|
1252
927
|
return contents;
|
|
1253
928
|
}, "de_GetChannelPolicyCommand");
|
|
1254
|
-
var de_GetChannelPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1255
|
-
const parsedOutput = {
|
|
1256
|
-
...output,
|
|
1257
|
-
body: await parseErrorBody(output.body, context)
|
|
1258
|
-
};
|
|
1259
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1260
|
-
switch (errorCode) {
|
|
1261
|
-
case "AccessDeniedException":
|
|
1262
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
1263
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1264
|
-
case "InternalServerException":
|
|
1265
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
1266
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1267
|
-
case "ResourceNotFoundException":
|
|
1268
|
-
case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
|
|
1269
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1270
|
-
case "ThrottlingException":
|
|
1271
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
1272
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1273
|
-
case "ValidationException":
|
|
1274
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
1275
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1276
|
-
default:
|
|
1277
|
-
const parsedBody = parsedOutput.body;
|
|
1278
|
-
return throwDefaultError({
|
|
1279
|
-
output,
|
|
1280
|
-
parsedBody,
|
|
1281
|
-
errorCode
|
|
1282
|
-
});
|
|
1283
|
-
}
|
|
1284
|
-
}, "de_GetChannelPolicyCommandError");
|
|
1285
929
|
var de_GetOriginEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1286
930
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1287
|
-
return
|
|
931
|
+
return de_CommandError(output, context);
|
|
1288
932
|
}
|
|
1289
933
|
const contents = (0, import_smithy_client.map)({
|
|
1290
934
|
$metadata: deserializeMetadata(output)
|
|
@@ -1308,40 +952,9 @@ var de_GetOriginEndpointCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1308
952
|
Object.assign(contents, doc);
|
|
1309
953
|
return contents;
|
|
1310
954
|
}, "de_GetOriginEndpointCommand");
|
|
1311
|
-
var de_GetOriginEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1312
|
-
const parsedOutput = {
|
|
1313
|
-
...output,
|
|
1314
|
-
body: await parseErrorBody(output.body, context)
|
|
1315
|
-
};
|
|
1316
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1317
|
-
switch (errorCode) {
|
|
1318
|
-
case "AccessDeniedException":
|
|
1319
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
1320
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1321
|
-
case "InternalServerException":
|
|
1322
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
1323
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1324
|
-
case "ResourceNotFoundException":
|
|
1325
|
-
case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
|
|
1326
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1327
|
-
case "ThrottlingException":
|
|
1328
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
1329
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1330
|
-
case "ValidationException":
|
|
1331
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
1332
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1333
|
-
default:
|
|
1334
|
-
const parsedBody = parsedOutput.body;
|
|
1335
|
-
return throwDefaultError({
|
|
1336
|
-
output,
|
|
1337
|
-
parsedBody,
|
|
1338
|
-
errorCode
|
|
1339
|
-
});
|
|
1340
|
-
}
|
|
1341
|
-
}, "de_GetOriginEndpointCommandError");
|
|
1342
955
|
var de_GetOriginEndpointPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1343
956
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1344
|
-
return
|
|
957
|
+
return de_CommandError(output, context);
|
|
1345
958
|
}
|
|
1346
959
|
const contents = (0, import_smithy_client.map)({
|
|
1347
960
|
$metadata: deserializeMetadata(output)
|
|
@@ -1350,89 +963,30 @@ var de_GetOriginEndpointPolicyCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1350
963
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1351
964
|
ChannelGroupName: import_smithy_client.expectString,
|
|
1352
965
|
ChannelName: import_smithy_client.expectString,
|
|
1353
|
-
OriginEndpointName: import_smithy_client.expectString,
|
|
1354
|
-
Policy: import_smithy_client.expectString
|
|
1355
|
-
});
|
|
1356
|
-
Object.assign(contents, doc);
|
|
1357
|
-
return contents;
|
|
1358
|
-
}, "de_GetOriginEndpointPolicyCommand");
|
|
1359
|
-
var
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
body: await parseErrorBody(output.body, context)
|
|
1363
|
-
};
|
|
1364
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1365
|
-
switch (errorCode) {
|
|
1366
|
-
case "AccessDeniedException":
|
|
1367
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
1368
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1369
|
-
case "InternalServerException":
|
|
1370
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
1371
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1372
|
-
case "ResourceNotFoundException":
|
|
1373
|
-
case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
|
|
1374
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1375
|
-
case "ThrottlingException":
|
|
1376
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
1377
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1378
|
-
case "ValidationException":
|
|
1379
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
1380
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1381
|
-
default:
|
|
1382
|
-
const parsedBody = parsedOutput.body;
|
|
1383
|
-
return throwDefaultError({
|
|
1384
|
-
output,
|
|
1385
|
-
parsedBody,
|
|
1386
|
-
errorCode
|
|
1387
|
-
});
|
|
1388
|
-
}
|
|
1389
|
-
}, "de_GetOriginEndpointPolicyCommandError");
|
|
1390
|
-
var de_ListChannelGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1391
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1392
|
-
return de_ListChannelGroupsCommandError(output, context);
|
|
1393
|
-
}
|
|
1394
|
-
const contents = (0, import_smithy_client.map)({
|
|
1395
|
-
$metadata: deserializeMetadata(output)
|
|
1396
|
-
});
|
|
1397
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1398
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1399
|
-
Items: (_) => de_ChannelGroupsList(_, context),
|
|
1400
|
-
NextToken: import_smithy_client.expectString
|
|
1401
|
-
});
|
|
1402
|
-
Object.assign(contents, doc);
|
|
1403
|
-
return contents;
|
|
1404
|
-
}, "de_ListChannelGroupsCommand");
|
|
1405
|
-
var de_ListChannelGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1406
|
-
const parsedOutput = {
|
|
1407
|
-
...output,
|
|
1408
|
-
body: await parseErrorBody(output.body, context)
|
|
1409
|
-
};
|
|
1410
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1411
|
-
switch (errorCode) {
|
|
1412
|
-
case "AccessDeniedException":
|
|
1413
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
1414
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1415
|
-
case "InternalServerException":
|
|
1416
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
1417
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1418
|
-
case "ThrottlingException":
|
|
1419
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
1420
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1421
|
-
case "ValidationException":
|
|
1422
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
1423
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1424
|
-
default:
|
|
1425
|
-
const parsedBody = parsedOutput.body;
|
|
1426
|
-
return throwDefaultError({
|
|
1427
|
-
output,
|
|
1428
|
-
parsedBody,
|
|
1429
|
-
errorCode
|
|
1430
|
-
});
|
|
966
|
+
OriginEndpointName: import_smithy_client.expectString,
|
|
967
|
+
Policy: import_smithy_client.expectString
|
|
968
|
+
});
|
|
969
|
+
Object.assign(contents, doc);
|
|
970
|
+
return contents;
|
|
971
|
+
}, "de_GetOriginEndpointPolicyCommand");
|
|
972
|
+
var de_ListChannelGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
973
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
974
|
+
return de_CommandError(output, context);
|
|
1431
975
|
}
|
|
1432
|
-
|
|
976
|
+
const contents = (0, import_smithy_client.map)({
|
|
977
|
+
$metadata: deserializeMetadata(output)
|
|
978
|
+
});
|
|
979
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
980
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
981
|
+
Items: (_) => de_ChannelGroupsList(_, context),
|
|
982
|
+
NextToken: import_smithy_client.expectString
|
|
983
|
+
});
|
|
984
|
+
Object.assign(contents, doc);
|
|
985
|
+
return contents;
|
|
986
|
+
}, "de_ListChannelGroupsCommand");
|
|
1433
987
|
var de_ListChannelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1434
988
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1435
|
-
return
|
|
989
|
+
return de_CommandError(output, context);
|
|
1436
990
|
}
|
|
1437
991
|
const contents = (0, import_smithy_client.map)({
|
|
1438
992
|
$metadata: deserializeMetadata(output)
|
|
@@ -1445,40 +999,9 @@ var de_ListChannelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1445
999
|
Object.assign(contents, doc);
|
|
1446
1000
|
return contents;
|
|
1447
1001
|
}, "de_ListChannelsCommand");
|
|
1448
|
-
var de_ListChannelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1449
|
-
const parsedOutput = {
|
|
1450
|
-
...output,
|
|
1451
|
-
body: await parseErrorBody(output.body, context)
|
|
1452
|
-
};
|
|
1453
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1454
|
-
switch (errorCode) {
|
|
1455
|
-
case "AccessDeniedException":
|
|
1456
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
1457
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1458
|
-
case "InternalServerException":
|
|
1459
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
1460
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1461
|
-
case "ResourceNotFoundException":
|
|
1462
|
-
case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
|
|
1463
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1464
|
-
case "ThrottlingException":
|
|
1465
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
1466
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1467
|
-
case "ValidationException":
|
|
1468
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
1469
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1470
|
-
default:
|
|
1471
|
-
const parsedBody = parsedOutput.body;
|
|
1472
|
-
return throwDefaultError({
|
|
1473
|
-
output,
|
|
1474
|
-
parsedBody,
|
|
1475
|
-
errorCode
|
|
1476
|
-
});
|
|
1477
|
-
}
|
|
1478
|
-
}, "de_ListChannelsCommandError");
|
|
1479
1002
|
var de_ListOriginEndpointsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1480
1003
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1481
|
-
return
|
|
1004
|
+
return de_CommandError(output, context);
|
|
1482
1005
|
}
|
|
1483
1006
|
const contents = (0, import_smithy_client.map)({
|
|
1484
1007
|
$metadata: deserializeMetadata(output)
|
|
@@ -1491,40 +1014,9 @@ var de_ListOriginEndpointsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1491
1014
|
Object.assign(contents, doc);
|
|
1492
1015
|
return contents;
|
|
1493
1016
|
}, "de_ListOriginEndpointsCommand");
|
|
1494
|
-
var de_ListOriginEndpointsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1495
|
-
const parsedOutput = {
|
|
1496
|
-
...output,
|
|
1497
|
-
body: await parseErrorBody(output.body, context)
|
|
1498
|
-
};
|
|
1499
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1500
|
-
switch (errorCode) {
|
|
1501
|
-
case "AccessDeniedException":
|
|
1502
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
1503
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1504
|
-
case "InternalServerException":
|
|
1505
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
1506
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1507
|
-
case "ResourceNotFoundException":
|
|
1508
|
-
case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
|
|
1509
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1510
|
-
case "ThrottlingException":
|
|
1511
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
1512
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1513
|
-
case "ValidationException":
|
|
1514
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
1515
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1516
|
-
default:
|
|
1517
|
-
const parsedBody = parsedOutput.body;
|
|
1518
|
-
return throwDefaultError({
|
|
1519
|
-
output,
|
|
1520
|
-
parsedBody,
|
|
1521
|
-
errorCode
|
|
1522
|
-
});
|
|
1523
|
-
}
|
|
1524
|
-
}, "de_ListOriginEndpointsCommandError");
|
|
1525
1017
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1526
1018
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1527
|
-
return
|
|
1019
|
+
return de_CommandError(output, context);
|
|
1528
1020
|
}
|
|
1529
1021
|
const contents = (0, import_smithy_client.map)({
|
|
1530
1022
|
$metadata: deserializeMetadata(output)
|
|
@@ -1536,28 +1028,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1536
1028
|
Object.assign(contents, doc);
|
|
1537
1029
|
return contents;
|
|
1538
1030
|
}, "de_ListTagsForResourceCommand");
|
|
1539
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1540
|
-
const parsedOutput = {
|
|
1541
|
-
...output,
|
|
1542
|
-
body: await parseErrorBody(output.body, context)
|
|
1543
|
-
};
|
|
1544
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1545
|
-
switch (errorCode) {
|
|
1546
|
-
case "ValidationException":
|
|
1547
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
1548
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1549
|
-
default:
|
|
1550
|
-
const parsedBody = parsedOutput.body;
|
|
1551
|
-
return throwDefaultError({
|
|
1552
|
-
output,
|
|
1553
|
-
parsedBody,
|
|
1554
|
-
errorCode
|
|
1555
|
-
});
|
|
1556
|
-
}
|
|
1557
|
-
}, "de_ListTagsForResourceCommandError");
|
|
1558
1031
|
var de_PutChannelPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1559
1032
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1560
|
-
return
|
|
1033
|
+
return de_CommandError(output, context);
|
|
1561
1034
|
}
|
|
1562
1035
|
const contents = (0, import_smithy_client.map)({
|
|
1563
1036
|
$metadata: deserializeMetadata(output)
|
|
@@ -1565,43 +1038,9 @@ var de_PutChannelPolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1565
1038
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1566
1039
|
return contents;
|
|
1567
1040
|
}, "de_PutChannelPolicyCommand");
|
|
1568
|
-
var de_PutChannelPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1569
|
-
const parsedOutput = {
|
|
1570
|
-
...output,
|
|
1571
|
-
body: await parseErrorBody(output.body, context)
|
|
1572
|
-
};
|
|
1573
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1574
|
-
switch (errorCode) {
|
|
1575
|
-
case "AccessDeniedException":
|
|
1576
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
1577
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1578
|
-
case "ConflictException":
|
|
1579
|
-
case "com.amazonaws.mediapackagev2#ConflictException":
|
|
1580
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1581
|
-
case "InternalServerException":
|
|
1582
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
1583
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1584
|
-
case "ResourceNotFoundException":
|
|
1585
|
-
case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
|
|
1586
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1587
|
-
case "ThrottlingException":
|
|
1588
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
1589
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1590
|
-
case "ValidationException":
|
|
1591
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
1592
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1593
|
-
default:
|
|
1594
|
-
const parsedBody = parsedOutput.body;
|
|
1595
|
-
return throwDefaultError({
|
|
1596
|
-
output,
|
|
1597
|
-
parsedBody,
|
|
1598
|
-
errorCode
|
|
1599
|
-
});
|
|
1600
|
-
}
|
|
1601
|
-
}, "de_PutChannelPolicyCommandError");
|
|
1602
1041
|
var de_PutOriginEndpointPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1603
1042
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1604
|
-
return
|
|
1043
|
+
return de_CommandError(output, context);
|
|
1605
1044
|
}
|
|
1606
1045
|
const contents = (0, import_smithy_client.map)({
|
|
1607
1046
|
$metadata: deserializeMetadata(output)
|
|
@@ -1609,43 +1048,9 @@ var de_PutOriginEndpointPolicyCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1609
1048
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1610
1049
|
return contents;
|
|
1611
1050
|
}, "de_PutOriginEndpointPolicyCommand");
|
|
1612
|
-
var de_PutOriginEndpointPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1613
|
-
const parsedOutput = {
|
|
1614
|
-
...output,
|
|
1615
|
-
body: await parseErrorBody(output.body, context)
|
|
1616
|
-
};
|
|
1617
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1618
|
-
switch (errorCode) {
|
|
1619
|
-
case "AccessDeniedException":
|
|
1620
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
1621
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1622
|
-
case "ConflictException":
|
|
1623
|
-
case "com.amazonaws.mediapackagev2#ConflictException":
|
|
1624
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1625
|
-
case "InternalServerException":
|
|
1626
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
1627
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1628
|
-
case "ResourceNotFoundException":
|
|
1629
|
-
case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
|
|
1630
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1631
|
-
case "ThrottlingException":
|
|
1632
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
1633
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1634
|
-
case "ValidationException":
|
|
1635
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
1636
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1637
|
-
default:
|
|
1638
|
-
const parsedBody = parsedOutput.body;
|
|
1639
|
-
return throwDefaultError({
|
|
1640
|
-
output,
|
|
1641
|
-
parsedBody,
|
|
1642
|
-
errorCode
|
|
1643
|
-
});
|
|
1644
|
-
}
|
|
1645
|
-
}, "de_PutOriginEndpointPolicyCommandError");
|
|
1646
1051
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1647
1052
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1648
|
-
return
|
|
1053
|
+
return de_CommandError(output, context);
|
|
1649
1054
|
}
|
|
1650
1055
|
const contents = (0, import_smithy_client.map)({
|
|
1651
1056
|
$metadata: deserializeMetadata(output)
|
|
@@ -1653,28 +1058,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1653
1058
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1654
1059
|
return contents;
|
|
1655
1060
|
}, "de_TagResourceCommand");
|
|
1656
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1657
|
-
const parsedOutput = {
|
|
1658
|
-
...output,
|
|
1659
|
-
body: await parseErrorBody(output.body, context)
|
|
1660
|
-
};
|
|
1661
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1662
|
-
switch (errorCode) {
|
|
1663
|
-
case "ValidationException":
|
|
1664
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
1665
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1666
|
-
default:
|
|
1667
|
-
const parsedBody = parsedOutput.body;
|
|
1668
|
-
return throwDefaultError({
|
|
1669
|
-
output,
|
|
1670
|
-
parsedBody,
|
|
1671
|
-
errorCode
|
|
1672
|
-
});
|
|
1673
|
-
}
|
|
1674
|
-
}, "de_TagResourceCommandError");
|
|
1675
1061
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1676
1062
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1677
|
-
return
|
|
1063
|
+
return de_CommandError(output, context);
|
|
1678
1064
|
}
|
|
1679
1065
|
const contents = (0, import_smithy_client.map)({
|
|
1680
1066
|
$metadata: deserializeMetadata(output)
|
|
@@ -1682,28 +1068,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1682
1068
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1683
1069
|
return contents;
|
|
1684
1070
|
}, "de_UntagResourceCommand");
|
|
1685
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1686
|
-
const parsedOutput = {
|
|
1687
|
-
...output,
|
|
1688
|
-
body: await parseErrorBody(output.body, context)
|
|
1689
|
-
};
|
|
1690
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1691
|
-
switch (errorCode) {
|
|
1692
|
-
case "ValidationException":
|
|
1693
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
1694
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1695
|
-
default:
|
|
1696
|
-
const parsedBody = parsedOutput.body;
|
|
1697
|
-
return throwDefaultError({
|
|
1698
|
-
output,
|
|
1699
|
-
parsedBody,
|
|
1700
|
-
errorCode
|
|
1701
|
-
});
|
|
1702
|
-
}
|
|
1703
|
-
}, "de_UntagResourceCommandError");
|
|
1704
1071
|
var de_UpdateChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1705
1072
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1706
|
-
return
|
|
1073
|
+
return de_CommandError(output, context);
|
|
1707
1074
|
}
|
|
1708
1075
|
const contents = (0, import_smithy_client.map)({
|
|
1709
1076
|
$metadata: deserializeMetadata(output)
|
|
@@ -1722,43 +1089,9 @@ var de_UpdateChannelCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1722
1089
|
Object.assign(contents, doc);
|
|
1723
1090
|
return contents;
|
|
1724
1091
|
}, "de_UpdateChannelCommand");
|
|
1725
|
-
var de_UpdateChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1726
|
-
const parsedOutput = {
|
|
1727
|
-
...output,
|
|
1728
|
-
body: await parseErrorBody(output.body, context)
|
|
1729
|
-
};
|
|
1730
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1731
|
-
switch (errorCode) {
|
|
1732
|
-
case "AccessDeniedException":
|
|
1733
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
1734
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1735
|
-
case "ConflictException":
|
|
1736
|
-
case "com.amazonaws.mediapackagev2#ConflictException":
|
|
1737
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1738
|
-
case "InternalServerException":
|
|
1739
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
1740
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1741
|
-
case "ResourceNotFoundException":
|
|
1742
|
-
case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
|
|
1743
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1744
|
-
case "ThrottlingException":
|
|
1745
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
1746
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1747
|
-
case "ValidationException":
|
|
1748
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
1749
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1750
|
-
default:
|
|
1751
|
-
const parsedBody = parsedOutput.body;
|
|
1752
|
-
return throwDefaultError({
|
|
1753
|
-
output,
|
|
1754
|
-
parsedBody,
|
|
1755
|
-
errorCode
|
|
1756
|
-
});
|
|
1757
|
-
}
|
|
1758
|
-
}, "de_UpdateChannelCommandError");
|
|
1759
1092
|
var de_UpdateChannelGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1760
1093
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1761
|
-
return
|
|
1094
|
+
return de_CommandError(output, context);
|
|
1762
1095
|
}
|
|
1763
1096
|
const contents = (0, import_smithy_client.map)({
|
|
1764
1097
|
$metadata: deserializeMetadata(output)
|
|
@@ -1776,43 +1109,9 @@ var de_UpdateChannelGroupCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1776
1109
|
Object.assign(contents, doc);
|
|
1777
1110
|
return contents;
|
|
1778
1111
|
}, "de_UpdateChannelGroupCommand");
|
|
1779
|
-
var de_UpdateChannelGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1780
|
-
const parsedOutput = {
|
|
1781
|
-
...output,
|
|
1782
|
-
body: await parseErrorBody(output.body, context)
|
|
1783
|
-
};
|
|
1784
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1785
|
-
switch (errorCode) {
|
|
1786
|
-
case "AccessDeniedException":
|
|
1787
|
-
case "com.amazonaws.mediapackagev2#AccessDeniedException":
|
|
1788
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1789
|
-
case "ConflictException":
|
|
1790
|
-
case "com.amazonaws.mediapackagev2#ConflictException":
|
|
1791
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1792
|
-
case "InternalServerException":
|
|
1793
|
-
case "com.amazonaws.mediapackagev2#InternalServerException":
|
|
1794
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1795
|
-
case "ResourceNotFoundException":
|
|
1796
|
-
case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
|
|
1797
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1798
|
-
case "ThrottlingException":
|
|
1799
|
-
case "com.amazonaws.mediapackagev2#ThrottlingException":
|
|
1800
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1801
|
-
case "ValidationException":
|
|
1802
|
-
case "com.amazonaws.mediapackagev2#ValidationException":
|
|
1803
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1804
|
-
default:
|
|
1805
|
-
const parsedBody = parsedOutput.body;
|
|
1806
|
-
return throwDefaultError({
|
|
1807
|
-
output,
|
|
1808
|
-
parsedBody,
|
|
1809
|
-
errorCode
|
|
1810
|
-
});
|
|
1811
|
-
}
|
|
1812
|
-
}, "de_UpdateChannelGroupCommandError");
|
|
1813
1112
|
var de_UpdateOriginEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1814
1113
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1815
|
-
return
|
|
1114
|
+
return de_CommandError(output, context);
|
|
1816
1115
|
}
|
|
1817
1116
|
const contents = (0, import_smithy_client.map)({
|
|
1818
1117
|
$metadata: deserializeMetadata(output)
|
|
@@ -1836,7 +1135,7 @@ var de_UpdateOriginEndpointCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1836
1135
|
Object.assign(contents, doc);
|
|
1837
1136
|
return contents;
|
|
1838
1137
|
}, "de_UpdateOriginEndpointCommand");
|
|
1839
|
-
var
|
|
1138
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1840
1139
|
const parsedOutput = {
|
|
1841
1140
|
...output,
|
|
1842
1141
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1872,7 +1171,7 @@ var de_UpdateOriginEndpointCommandError = /* @__PURE__ */ __name(async (output,
|
|
|
1872
1171
|
errorCode
|
|
1873
1172
|
});
|
|
1874
1173
|
}
|
|
1875
|
-
}, "
|
|
1174
|
+
}, "de_CommandError");
|
|
1876
1175
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(MediaPackageV2ServiceException);
|
|
1877
1176
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1878
1177
|
const contents = (0, import_smithy_client.map)({});
|