@aws-sdk/client-voice-id 3.504.0 → 3.509.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +66 -991
- package/dist-es/protocols/Aws_json1_0.js +88 -1013
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -843,7 +843,7 @@ var se_UpdateWatchlistCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
843
843
|
}, "se_UpdateWatchlistCommand");
|
|
844
844
|
var de_AssociateFraudsterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
845
845
|
if (output.statusCode >= 300) {
|
|
846
|
-
return
|
|
846
|
+
return de_CommandError(output, context);
|
|
847
847
|
}
|
|
848
848
|
const data = await parseBody(output.body, context);
|
|
849
849
|
let contents = {};
|
|
@@ -854,46 +854,9 @@ var de_AssociateFraudsterCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
854
854
|
};
|
|
855
855
|
return response;
|
|
856
856
|
}, "de_AssociateFraudsterCommand");
|
|
857
|
-
var de_AssociateFraudsterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
858
|
-
const parsedOutput = {
|
|
859
|
-
...output,
|
|
860
|
-
body: await parseErrorBody(output.body, context)
|
|
861
|
-
};
|
|
862
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
863
|
-
switch (errorCode) {
|
|
864
|
-
case "AccessDeniedException":
|
|
865
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
866
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
867
|
-
case "ConflictException":
|
|
868
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
869
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
870
|
-
case "InternalServerException":
|
|
871
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
872
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
873
|
-
case "ResourceNotFoundException":
|
|
874
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
875
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
876
|
-
case "ServiceQuotaExceededException":
|
|
877
|
-
case "com.amazonaws.voiceid#ServiceQuotaExceededException":
|
|
878
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
879
|
-
case "ThrottlingException":
|
|
880
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
881
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
882
|
-
case "ValidationException":
|
|
883
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
884
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
885
|
-
default:
|
|
886
|
-
const parsedBody = parsedOutput.body;
|
|
887
|
-
return throwDefaultError({
|
|
888
|
-
output,
|
|
889
|
-
parsedBody,
|
|
890
|
-
errorCode
|
|
891
|
-
});
|
|
892
|
-
}
|
|
893
|
-
}, "de_AssociateFraudsterCommandError");
|
|
894
857
|
var de_CreateDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
895
858
|
if (output.statusCode >= 300) {
|
|
896
|
-
return
|
|
859
|
+
return de_CommandError(output, context);
|
|
897
860
|
}
|
|
898
861
|
const data = await parseBody(output.body, context);
|
|
899
862
|
let contents = {};
|
|
@@ -904,46 +867,9 @@ var de_CreateDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
904
867
|
};
|
|
905
868
|
return response;
|
|
906
869
|
}, "de_CreateDomainCommand");
|
|
907
|
-
var de_CreateDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
908
|
-
const parsedOutput = {
|
|
909
|
-
...output,
|
|
910
|
-
body: await parseErrorBody(output.body, context)
|
|
911
|
-
};
|
|
912
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
913
|
-
switch (errorCode) {
|
|
914
|
-
case "AccessDeniedException":
|
|
915
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
916
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
917
|
-
case "ConflictException":
|
|
918
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
919
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
920
|
-
case "InternalServerException":
|
|
921
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
922
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
923
|
-
case "ResourceNotFoundException":
|
|
924
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
925
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
926
|
-
case "ServiceQuotaExceededException":
|
|
927
|
-
case "com.amazonaws.voiceid#ServiceQuotaExceededException":
|
|
928
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
929
|
-
case "ThrottlingException":
|
|
930
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
931
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
932
|
-
case "ValidationException":
|
|
933
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
934
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
935
|
-
default:
|
|
936
|
-
const parsedBody = parsedOutput.body;
|
|
937
|
-
return throwDefaultError({
|
|
938
|
-
output,
|
|
939
|
-
parsedBody,
|
|
940
|
-
errorCode
|
|
941
|
-
});
|
|
942
|
-
}
|
|
943
|
-
}, "de_CreateDomainCommandError");
|
|
944
870
|
var de_CreateWatchlistCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
945
871
|
if (output.statusCode >= 300) {
|
|
946
|
-
return
|
|
872
|
+
return de_CommandError(output, context);
|
|
947
873
|
}
|
|
948
874
|
const data = await parseBody(output.body, context);
|
|
949
875
|
let contents = {};
|
|
@@ -954,46 +880,9 @@ var de_CreateWatchlistCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
954
880
|
};
|
|
955
881
|
return response;
|
|
956
882
|
}, "de_CreateWatchlistCommand");
|
|
957
|
-
var de_CreateWatchlistCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
958
|
-
const parsedOutput = {
|
|
959
|
-
...output,
|
|
960
|
-
body: await parseErrorBody(output.body, context)
|
|
961
|
-
};
|
|
962
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
963
|
-
switch (errorCode) {
|
|
964
|
-
case "AccessDeniedException":
|
|
965
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
966
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
967
|
-
case "ConflictException":
|
|
968
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
969
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
970
|
-
case "InternalServerException":
|
|
971
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
972
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
973
|
-
case "ResourceNotFoundException":
|
|
974
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
975
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
976
|
-
case "ServiceQuotaExceededException":
|
|
977
|
-
case "com.amazonaws.voiceid#ServiceQuotaExceededException":
|
|
978
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
979
|
-
case "ThrottlingException":
|
|
980
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
981
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
982
|
-
case "ValidationException":
|
|
983
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
984
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
985
|
-
default:
|
|
986
|
-
const parsedBody = parsedOutput.body;
|
|
987
|
-
return throwDefaultError({
|
|
988
|
-
output,
|
|
989
|
-
parsedBody,
|
|
990
|
-
errorCode
|
|
991
|
-
});
|
|
992
|
-
}
|
|
993
|
-
}, "de_CreateWatchlistCommandError");
|
|
994
883
|
var de_DeleteDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
995
884
|
if (output.statusCode >= 300) {
|
|
996
|
-
return
|
|
885
|
+
return de_CommandError(output, context);
|
|
997
886
|
}
|
|
998
887
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
999
888
|
const response = {
|
|
@@ -1001,43 +890,9 @@ var de_DeleteDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1001
890
|
};
|
|
1002
891
|
return response;
|
|
1003
892
|
}, "de_DeleteDomainCommand");
|
|
1004
|
-
var de_DeleteDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1005
|
-
const parsedOutput = {
|
|
1006
|
-
...output,
|
|
1007
|
-
body: await parseErrorBody(output.body, context)
|
|
1008
|
-
};
|
|
1009
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1010
|
-
switch (errorCode) {
|
|
1011
|
-
case "AccessDeniedException":
|
|
1012
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1013
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1014
|
-
case "ConflictException":
|
|
1015
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
1016
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1017
|
-
case "InternalServerException":
|
|
1018
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1019
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1020
|
-
case "ResourceNotFoundException":
|
|
1021
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1022
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1023
|
-
case "ThrottlingException":
|
|
1024
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1025
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1026
|
-
case "ValidationException":
|
|
1027
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1028
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1029
|
-
default:
|
|
1030
|
-
const parsedBody = parsedOutput.body;
|
|
1031
|
-
return throwDefaultError({
|
|
1032
|
-
output,
|
|
1033
|
-
parsedBody,
|
|
1034
|
-
errorCode
|
|
1035
|
-
});
|
|
1036
|
-
}
|
|
1037
|
-
}, "de_DeleteDomainCommandError");
|
|
1038
893
|
var de_DeleteFraudsterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1039
894
|
if (output.statusCode >= 300) {
|
|
1040
|
-
return
|
|
895
|
+
return de_CommandError(output, context);
|
|
1041
896
|
}
|
|
1042
897
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1043
898
|
const response = {
|
|
@@ -1045,43 +900,9 @@ var de_DeleteFraudsterCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1045
900
|
};
|
|
1046
901
|
return response;
|
|
1047
902
|
}, "de_DeleteFraudsterCommand");
|
|
1048
|
-
var de_DeleteFraudsterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1049
|
-
const parsedOutput = {
|
|
1050
|
-
...output,
|
|
1051
|
-
body: await parseErrorBody(output.body, context)
|
|
1052
|
-
};
|
|
1053
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1054
|
-
switch (errorCode) {
|
|
1055
|
-
case "AccessDeniedException":
|
|
1056
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1057
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1058
|
-
case "ConflictException":
|
|
1059
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
1060
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1061
|
-
case "InternalServerException":
|
|
1062
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1063
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1064
|
-
case "ResourceNotFoundException":
|
|
1065
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1066
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1067
|
-
case "ThrottlingException":
|
|
1068
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1069
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1070
|
-
case "ValidationException":
|
|
1071
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1072
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1073
|
-
default:
|
|
1074
|
-
const parsedBody = parsedOutput.body;
|
|
1075
|
-
return throwDefaultError({
|
|
1076
|
-
output,
|
|
1077
|
-
parsedBody,
|
|
1078
|
-
errorCode
|
|
1079
|
-
});
|
|
1080
|
-
}
|
|
1081
|
-
}, "de_DeleteFraudsterCommandError");
|
|
1082
903
|
var de_DeleteSpeakerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1083
904
|
if (output.statusCode >= 300) {
|
|
1084
|
-
return
|
|
905
|
+
return de_CommandError(output, context);
|
|
1085
906
|
}
|
|
1086
907
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1087
908
|
const response = {
|
|
@@ -1089,43 +910,9 @@ var de_DeleteSpeakerCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1089
910
|
};
|
|
1090
911
|
return response;
|
|
1091
912
|
}, "de_DeleteSpeakerCommand");
|
|
1092
|
-
var de_DeleteSpeakerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1093
|
-
const parsedOutput = {
|
|
1094
|
-
...output,
|
|
1095
|
-
body: await parseErrorBody(output.body, context)
|
|
1096
|
-
};
|
|
1097
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1098
|
-
switch (errorCode) {
|
|
1099
|
-
case "AccessDeniedException":
|
|
1100
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1101
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1102
|
-
case "ConflictException":
|
|
1103
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
1104
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1105
|
-
case "InternalServerException":
|
|
1106
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1107
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1108
|
-
case "ResourceNotFoundException":
|
|
1109
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1110
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1111
|
-
case "ThrottlingException":
|
|
1112
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1113
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1114
|
-
case "ValidationException":
|
|
1115
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1116
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1117
|
-
default:
|
|
1118
|
-
const parsedBody = parsedOutput.body;
|
|
1119
|
-
return throwDefaultError({
|
|
1120
|
-
output,
|
|
1121
|
-
parsedBody,
|
|
1122
|
-
errorCode
|
|
1123
|
-
});
|
|
1124
|
-
}
|
|
1125
|
-
}, "de_DeleteSpeakerCommandError");
|
|
1126
913
|
var de_DeleteWatchlistCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1127
914
|
if (output.statusCode >= 300) {
|
|
1128
|
-
return
|
|
915
|
+
return de_CommandError(output, context);
|
|
1129
916
|
}
|
|
1130
917
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1131
918
|
const response = {
|
|
@@ -1133,43 +920,9 @@ var de_DeleteWatchlistCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1133
920
|
};
|
|
1134
921
|
return response;
|
|
1135
922
|
}, "de_DeleteWatchlistCommand");
|
|
1136
|
-
var de_DeleteWatchlistCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1137
|
-
const parsedOutput = {
|
|
1138
|
-
...output,
|
|
1139
|
-
body: await parseErrorBody(output.body, context)
|
|
1140
|
-
};
|
|
1141
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1142
|
-
switch (errorCode) {
|
|
1143
|
-
case "AccessDeniedException":
|
|
1144
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1145
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1146
|
-
case "ConflictException":
|
|
1147
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
1148
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1149
|
-
case "InternalServerException":
|
|
1150
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1151
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1152
|
-
case "ResourceNotFoundException":
|
|
1153
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1154
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1155
|
-
case "ThrottlingException":
|
|
1156
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1157
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1158
|
-
case "ValidationException":
|
|
1159
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1160
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1161
|
-
default:
|
|
1162
|
-
const parsedBody = parsedOutput.body;
|
|
1163
|
-
return throwDefaultError({
|
|
1164
|
-
output,
|
|
1165
|
-
parsedBody,
|
|
1166
|
-
errorCode
|
|
1167
|
-
});
|
|
1168
|
-
}
|
|
1169
|
-
}, "de_DeleteWatchlistCommandError");
|
|
1170
923
|
var de_DescribeDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1171
924
|
if (output.statusCode >= 300) {
|
|
1172
|
-
return
|
|
925
|
+
return de_CommandError(output, context);
|
|
1173
926
|
}
|
|
1174
927
|
const data = await parseBody(output.body, context);
|
|
1175
928
|
let contents = {};
|
|
@@ -1180,84 +933,22 @@ var de_DescribeDomainCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1180
933
|
};
|
|
1181
934
|
return response;
|
|
1182
935
|
}, "de_DescribeDomainCommand");
|
|
1183
|
-
var
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
case "InternalServerException":
|
|
1194
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1195
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1196
|
-
case "ResourceNotFoundException":
|
|
1197
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1198
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1199
|
-
case "ThrottlingException":
|
|
1200
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1201
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1202
|
-
case "ValidationException":
|
|
1203
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1204
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1205
|
-
default:
|
|
1206
|
-
const parsedBody = parsedOutput.body;
|
|
1207
|
-
return throwDefaultError({
|
|
1208
|
-
output,
|
|
1209
|
-
parsedBody,
|
|
1210
|
-
errorCode
|
|
1211
|
-
});
|
|
1212
|
-
}
|
|
1213
|
-
}, "de_DescribeDomainCommandError");
|
|
1214
|
-
var de_DescribeFraudsterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1215
|
-
if (output.statusCode >= 300) {
|
|
1216
|
-
return de_DescribeFraudsterCommandError(output, context);
|
|
1217
|
-
}
|
|
1218
|
-
const data = await parseBody(output.body, context);
|
|
1219
|
-
let contents = {};
|
|
1220
|
-
contents = de_DescribeFraudsterResponse(data, context);
|
|
1221
|
-
const response = {
|
|
1222
|
-
$metadata: deserializeMetadata(output),
|
|
1223
|
-
...contents
|
|
936
|
+
var de_DescribeFraudsterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
937
|
+
if (output.statusCode >= 300) {
|
|
938
|
+
return de_CommandError(output, context);
|
|
939
|
+
}
|
|
940
|
+
const data = await parseBody(output.body, context);
|
|
941
|
+
let contents = {};
|
|
942
|
+
contents = de_DescribeFraudsterResponse(data, context);
|
|
943
|
+
const response = {
|
|
944
|
+
$metadata: deserializeMetadata(output),
|
|
945
|
+
...contents
|
|
1224
946
|
};
|
|
1225
947
|
return response;
|
|
1226
948
|
}, "de_DescribeFraudsterCommand");
|
|
1227
|
-
var de_DescribeFraudsterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1228
|
-
const parsedOutput = {
|
|
1229
|
-
...output,
|
|
1230
|
-
body: await parseErrorBody(output.body, context)
|
|
1231
|
-
};
|
|
1232
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1233
|
-
switch (errorCode) {
|
|
1234
|
-
case "AccessDeniedException":
|
|
1235
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1236
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1237
|
-
case "InternalServerException":
|
|
1238
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1239
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1240
|
-
case "ResourceNotFoundException":
|
|
1241
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1242
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1243
|
-
case "ThrottlingException":
|
|
1244
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1245
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1246
|
-
case "ValidationException":
|
|
1247
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1248
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1249
|
-
default:
|
|
1250
|
-
const parsedBody = parsedOutput.body;
|
|
1251
|
-
return throwDefaultError({
|
|
1252
|
-
output,
|
|
1253
|
-
parsedBody,
|
|
1254
|
-
errorCode
|
|
1255
|
-
});
|
|
1256
|
-
}
|
|
1257
|
-
}, "de_DescribeFraudsterCommandError");
|
|
1258
949
|
var de_DescribeFraudsterRegistrationJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1259
950
|
if (output.statusCode >= 300) {
|
|
1260
|
-
return
|
|
951
|
+
return de_CommandError(output, context);
|
|
1261
952
|
}
|
|
1262
953
|
const data = await parseBody(output.body, context);
|
|
1263
954
|
let contents = {};
|
|
@@ -1268,40 +959,9 @@ var de_DescribeFraudsterRegistrationJobCommand = /* @__PURE__ */ __name(async (o
|
|
|
1268
959
|
};
|
|
1269
960
|
return response;
|
|
1270
961
|
}, "de_DescribeFraudsterRegistrationJobCommand");
|
|
1271
|
-
var de_DescribeFraudsterRegistrationJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1272
|
-
const parsedOutput = {
|
|
1273
|
-
...output,
|
|
1274
|
-
body: await parseErrorBody(output.body, context)
|
|
1275
|
-
};
|
|
1276
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1277
|
-
switch (errorCode) {
|
|
1278
|
-
case "AccessDeniedException":
|
|
1279
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1280
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1281
|
-
case "InternalServerException":
|
|
1282
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1283
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1284
|
-
case "ResourceNotFoundException":
|
|
1285
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1286
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1287
|
-
case "ThrottlingException":
|
|
1288
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1289
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1290
|
-
case "ValidationException":
|
|
1291
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1292
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1293
|
-
default:
|
|
1294
|
-
const parsedBody = parsedOutput.body;
|
|
1295
|
-
return throwDefaultError({
|
|
1296
|
-
output,
|
|
1297
|
-
parsedBody,
|
|
1298
|
-
errorCode
|
|
1299
|
-
});
|
|
1300
|
-
}
|
|
1301
|
-
}, "de_DescribeFraudsterRegistrationJobCommandError");
|
|
1302
962
|
var de_DescribeSpeakerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1303
963
|
if (output.statusCode >= 300) {
|
|
1304
|
-
return
|
|
964
|
+
return de_CommandError(output, context);
|
|
1305
965
|
}
|
|
1306
966
|
const data = await parseBody(output.body, context);
|
|
1307
967
|
let contents = {};
|
|
@@ -1312,40 +972,9 @@ var de_DescribeSpeakerCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1312
972
|
};
|
|
1313
973
|
return response;
|
|
1314
974
|
}, "de_DescribeSpeakerCommand");
|
|
1315
|
-
var de_DescribeSpeakerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1316
|
-
const parsedOutput = {
|
|
1317
|
-
...output,
|
|
1318
|
-
body: await parseErrorBody(output.body, context)
|
|
1319
|
-
};
|
|
1320
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1321
|
-
switch (errorCode) {
|
|
1322
|
-
case "AccessDeniedException":
|
|
1323
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1324
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1325
|
-
case "InternalServerException":
|
|
1326
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1327
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1328
|
-
case "ResourceNotFoundException":
|
|
1329
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1330
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1331
|
-
case "ThrottlingException":
|
|
1332
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1333
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1334
|
-
case "ValidationException":
|
|
1335
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1336
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1337
|
-
default:
|
|
1338
|
-
const parsedBody = parsedOutput.body;
|
|
1339
|
-
return throwDefaultError({
|
|
1340
|
-
output,
|
|
1341
|
-
parsedBody,
|
|
1342
|
-
errorCode
|
|
1343
|
-
});
|
|
1344
|
-
}
|
|
1345
|
-
}, "de_DescribeSpeakerCommandError");
|
|
1346
975
|
var de_DescribeSpeakerEnrollmentJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1347
976
|
if (output.statusCode >= 300) {
|
|
1348
|
-
return
|
|
977
|
+
return de_CommandError(output, context);
|
|
1349
978
|
}
|
|
1350
979
|
const data = await parseBody(output.body, context);
|
|
1351
980
|
let contents = {};
|
|
@@ -1356,40 +985,9 @@ var de_DescribeSpeakerEnrollmentJobCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1356
985
|
};
|
|
1357
986
|
return response;
|
|
1358
987
|
}, "de_DescribeSpeakerEnrollmentJobCommand");
|
|
1359
|
-
var de_DescribeSpeakerEnrollmentJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1360
|
-
const parsedOutput = {
|
|
1361
|
-
...output,
|
|
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.voiceid#AccessDeniedException":
|
|
1368
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1369
|
-
case "InternalServerException":
|
|
1370
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1371
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1372
|
-
case "ResourceNotFoundException":
|
|
1373
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1374
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1375
|
-
case "ThrottlingException":
|
|
1376
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1377
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1378
|
-
case "ValidationException":
|
|
1379
|
-
case "com.amazonaws.voiceid#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_DescribeSpeakerEnrollmentJobCommandError");
|
|
1390
988
|
var de_DescribeWatchlistCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1391
989
|
if (output.statusCode >= 300) {
|
|
1392
|
-
return
|
|
990
|
+
return de_CommandError(output, context);
|
|
1393
991
|
}
|
|
1394
992
|
const data = await parseBody(output.body, context);
|
|
1395
993
|
let contents = {};
|
|
@@ -1400,40 +998,9 @@ var de_DescribeWatchlistCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1400
998
|
};
|
|
1401
999
|
return response;
|
|
1402
1000
|
}, "de_DescribeWatchlistCommand");
|
|
1403
|
-
var de_DescribeWatchlistCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1404
|
-
const parsedOutput = {
|
|
1405
|
-
...output,
|
|
1406
|
-
body: await parseErrorBody(output.body, context)
|
|
1407
|
-
};
|
|
1408
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1409
|
-
switch (errorCode) {
|
|
1410
|
-
case "AccessDeniedException":
|
|
1411
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1412
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1413
|
-
case "InternalServerException":
|
|
1414
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1415
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1416
|
-
case "ResourceNotFoundException":
|
|
1417
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1418
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1419
|
-
case "ThrottlingException":
|
|
1420
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1421
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1422
|
-
case "ValidationException":
|
|
1423
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1424
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1425
|
-
default:
|
|
1426
|
-
const parsedBody = parsedOutput.body;
|
|
1427
|
-
return throwDefaultError({
|
|
1428
|
-
output,
|
|
1429
|
-
parsedBody,
|
|
1430
|
-
errorCode
|
|
1431
|
-
});
|
|
1432
|
-
}
|
|
1433
|
-
}, "de_DescribeWatchlistCommandError");
|
|
1434
1001
|
var de_DisassociateFraudsterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1435
1002
|
if (output.statusCode >= 300) {
|
|
1436
|
-
return
|
|
1003
|
+
return de_CommandError(output, context);
|
|
1437
1004
|
}
|
|
1438
1005
|
const data = await parseBody(output.body, context);
|
|
1439
1006
|
let contents = {};
|
|
@@ -1444,43 +1011,9 @@ var de_DisassociateFraudsterCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1444
1011
|
};
|
|
1445
1012
|
return response;
|
|
1446
1013
|
}, "de_DisassociateFraudsterCommand");
|
|
1447
|
-
var de_DisassociateFraudsterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1448
|
-
const parsedOutput = {
|
|
1449
|
-
...output,
|
|
1450
|
-
body: await parseErrorBody(output.body, context)
|
|
1451
|
-
};
|
|
1452
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1453
|
-
switch (errorCode) {
|
|
1454
|
-
case "AccessDeniedException":
|
|
1455
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1456
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1457
|
-
case "ConflictException":
|
|
1458
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
1459
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1460
|
-
case "InternalServerException":
|
|
1461
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1462
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1463
|
-
case "ResourceNotFoundException":
|
|
1464
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1465
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1466
|
-
case "ThrottlingException":
|
|
1467
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1468
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1469
|
-
case "ValidationException":
|
|
1470
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1471
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1472
|
-
default:
|
|
1473
|
-
const parsedBody = parsedOutput.body;
|
|
1474
|
-
return throwDefaultError({
|
|
1475
|
-
output,
|
|
1476
|
-
parsedBody,
|
|
1477
|
-
errorCode
|
|
1478
|
-
});
|
|
1479
|
-
}
|
|
1480
|
-
}, "de_DisassociateFraudsterCommandError");
|
|
1481
1014
|
var de_EvaluateSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1482
1015
|
if (output.statusCode >= 300) {
|
|
1483
|
-
return
|
|
1016
|
+
return de_CommandError(output, context);
|
|
1484
1017
|
}
|
|
1485
1018
|
const data = await parseBody(output.body, context);
|
|
1486
1019
|
let contents = {};
|
|
@@ -1491,43 +1024,9 @@ var de_EvaluateSessionCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1491
1024
|
};
|
|
1492
1025
|
return response;
|
|
1493
1026
|
}, "de_EvaluateSessionCommand");
|
|
1494
|
-
var de_EvaluateSessionCommandError = /* @__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.voiceid#AccessDeniedException":
|
|
1503
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1504
|
-
case "ConflictException":
|
|
1505
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
1506
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1507
|
-
case "InternalServerException":
|
|
1508
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1509
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1510
|
-
case "ResourceNotFoundException":
|
|
1511
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1512
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1513
|
-
case "ThrottlingException":
|
|
1514
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1515
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1516
|
-
case "ValidationException":
|
|
1517
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1518
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1519
|
-
default:
|
|
1520
|
-
const parsedBody = parsedOutput.body;
|
|
1521
|
-
return throwDefaultError({
|
|
1522
|
-
output,
|
|
1523
|
-
parsedBody,
|
|
1524
|
-
errorCode
|
|
1525
|
-
});
|
|
1526
|
-
}
|
|
1527
|
-
}, "de_EvaluateSessionCommandError");
|
|
1528
1027
|
var de_ListDomainsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1529
1028
|
if (output.statusCode >= 300) {
|
|
1530
|
-
return
|
|
1029
|
+
return de_CommandError(output, context);
|
|
1531
1030
|
}
|
|
1532
1031
|
const data = await parseBody(output.body, context);
|
|
1533
1032
|
let contents = {};
|
|
@@ -1538,37 +1037,9 @@ var de_ListDomainsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1538
1037
|
};
|
|
1539
1038
|
return response;
|
|
1540
1039
|
}, "de_ListDomainsCommand");
|
|
1541
|
-
var de_ListDomainsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1542
|
-
const parsedOutput = {
|
|
1543
|
-
...output,
|
|
1544
|
-
body: await parseErrorBody(output.body, context)
|
|
1545
|
-
};
|
|
1546
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1547
|
-
switch (errorCode) {
|
|
1548
|
-
case "AccessDeniedException":
|
|
1549
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1550
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1551
|
-
case "InternalServerException":
|
|
1552
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1553
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1554
|
-
case "ThrottlingException":
|
|
1555
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1556
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1557
|
-
case "ValidationException":
|
|
1558
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1559
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1560
|
-
default:
|
|
1561
|
-
const parsedBody = parsedOutput.body;
|
|
1562
|
-
return throwDefaultError({
|
|
1563
|
-
output,
|
|
1564
|
-
parsedBody,
|
|
1565
|
-
errorCode
|
|
1566
|
-
});
|
|
1567
|
-
}
|
|
1568
|
-
}, "de_ListDomainsCommandError");
|
|
1569
1040
|
var de_ListFraudsterRegistrationJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1570
1041
|
if (output.statusCode >= 300) {
|
|
1571
|
-
return
|
|
1042
|
+
return de_CommandError(output, context);
|
|
1572
1043
|
}
|
|
1573
1044
|
const data = await parseBody(output.body, context);
|
|
1574
1045
|
let contents = {};
|
|
@@ -1579,40 +1050,9 @@ var de_ListFraudsterRegistrationJobsCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1579
1050
|
};
|
|
1580
1051
|
return response;
|
|
1581
1052
|
}, "de_ListFraudsterRegistrationJobsCommand");
|
|
1582
|
-
var de_ListFraudsterRegistrationJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1583
|
-
const parsedOutput = {
|
|
1584
|
-
...output,
|
|
1585
|
-
body: await parseErrorBody(output.body, context)
|
|
1586
|
-
};
|
|
1587
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1588
|
-
switch (errorCode) {
|
|
1589
|
-
case "AccessDeniedException":
|
|
1590
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1591
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1592
|
-
case "InternalServerException":
|
|
1593
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1594
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1595
|
-
case "ResourceNotFoundException":
|
|
1596
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1597
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1598
|
-
case "ThrottlingException":
|
|
1599
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1600
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1601
|
-
case "ValidationException":
|
|
1602
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1603
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1604
|
-
default:
|
|
1605
|
-
const parsedBody = parsedOutput.body;
|
|
1606
|
-
return throwDefaultError({
|
|
1607
|
-
output,
|
|
1608
|
-
parsedBody,
|
|
1609
|
-
errorCode
|
|
1610
|
-
});
|
|
1611
|
-
}
|
|
1612
|
-
}, "de_ListFraudsterRegistrationJobsCommandError");
|
|
1613
1053
|
var de_ListFraudstersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1614
1054
|
if (output.statusCode >= 300) {
|
|
1615
|
-
return
|
|
1055
|
+
return de_CommandError(output, context);
|
|
1616
1056
|
}
|
|
1617
1057
|
const data = await parseBody(output.body, context);
|
|
1618
1058
|
let contents = {};
|
|
@@ -1623,40 +1063,9 @@ var de_ListFraudstersCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1623
1063
|
};
|
|
1624
1064
|
return response;
|
|
1625
1065
|
}, "de_ListFraudstersCommand");
|
|
1626
|
-
var de_ListFraudstersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1627
|
-
const parsedOutput = {
|
|
1628
|
-
...output,
|
|
1629
|
-
body: await parseErrorBody(output.body, context)
|
|
1630
|
-
};
|
|
1631
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1632
|
-
switch (errorCode) {
|
|
1633
|
-
case "AccessDeniedException":
|
|
1634
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1635
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1636
|
-
case "InternalServerException":
|
|
1637
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1638
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1639
|
-
case "ResourceNotFoundException":
|
|
1640
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1641
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1642
|
-
case "ThrottlingException":
|
|
1643
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1644
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1645
|
-
case "ValidationException":
|
|
1646
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1647
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1648
|
-
default:
|
|
1649
|
-
const parsedBody = parsedOutput.body;
|
|
1650
|
-
return throwDefaultError({
|
|
1651
|
-
output,
|
|
1652
|
-
parsedBody,
|
|
1653
|
-
errorCode
|
|
1654
|
-
});
|
|
1655
|
-
}
|
|
1656
|
-
}, "de_ListFraudstersCommandError");
|
|
1657
1066
|
var de_ListSpeakerEnrollmentJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1658
1067
|
if (output.statusCode >= 300) {
|
|
1659
|
-
return
|
|
1068
|
+
return de_CommandError(output, context);
|
|
1660
1069
|
}
|
|
1661
1070
|
const data = await parseBody(output.body, context);
|
|
1662
1071
|
let contents = {};
|
|
@@ -1667,128 +1076,35 @@ var de_ListSpeakerEnrollmentJobsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1667
1076
|
};
|
|
1668
1077
|
return response;
|
|
1669
1078
|
}, "de_ListSpeakerEnrollmentJobsCommand");
|
|
1670
|
-
var
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
case "ThrottlingException":
|
|
1687
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1688
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1689
|
-
case "ValidationException":
|
|
1690
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1691
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1692
|
-
default:
|
|
1693
|
-
const parsedBody = parsedOutput.body;
|
|
1694
|
-
return throwDefaultError({
|
|
1695
|
-
output,
|
|
1696
|
-
parsedBody,
|
|
1697
|
-
errorCode
|
|
1698
|
-
});
|
|
1699
|
-
}
|
|
1700
|
-
}, "de_ListSpeakerEnrollmentJobsCommandError");
|
|
1701
|
-
var de_ListSpeakersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1702
|
-
if (output.statusCode >= 300) {
|
|
1703
|
-
return de_ListSpeakersCommandError(output, context);
|
|
1704
|
-
}
|
|
1705
|
-
const data = await parseBody(output.body, context);
|
|
1706
|
-
let contents = {};
|
|
1707
|
-
contents = de_ListSpeakersResponse(data, context);
|
|
1708
|
-
const response = {
|
|
1709
|
-
$metadata: deserializeMetadata(output),
|
|
1710
|
-
...contents
|
|
1711
|
-
};
|
|
1712
|
-
return response;
|
|
1713
|
-
}, "de_ListSpeakersCommand");
|
|
1714
|
-
var de_ListSpeakersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1715
|
-
const parsedOutput = {
|
|
1716
|
-
...output,
|
|
1717
|
-
body: await parseErrorBody(output.body, context)
|
|
1718
|
-
};
|
|
1719
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1720
|
-
switch (errorCode) {
|
|
1721
|
-
case "AccessDeniedException":
|
|
1722
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1723
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1724
|
-
case "InternalServerException":
|
|
1725
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1726
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1727
|
-
case "ResourceNotFoundException":
|
|
1728
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1729
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1730
|
-
case "ThrottlingException":
|
|
1731
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1732
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1733
|
-
case "ValidationException":
|
|
1734
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1735
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1736
|
-
default:
|
|
1737
|
-
const parsedBody = parsedOutput.body;
|
|
1738
|
-
return throwDefaultError({
|
|
1739
|
-
output,
|
|
1740
|
-
parsedBody,
|
|
1741
|
-
errorCode
|
|
1742
|
-
});
|
|
1743
|
-
}
|
|
1744
|
-
}, "de_ListSpeakersCommandError");
|
|
1745
|
-
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1746
|
-
if (output.statusCode >= 300) {
|
|
1747
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
1748
|
-
}
|
|
1749
|
-
const data = await parseBody(output.body, context);
|
|
1750
|
-
let contents = {};
|
|
1751
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1752
|
-
const response = {
|
|
1753
|
-
$metadata: deserializeMetadata(output),
|
|
1754
|
-
...contents
|
|
1755
|
-
};
|
|
1756
|
-
return response;
|
|
1757
|
-
}, "de_ListTagsForResourceCommand");
|
|
1758
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1759
|
-
const parsedOutput = {
|
|
1760
|
-
...output,
|
|
1761
|
-
body: await parseErrorBody(output.body, context)
|
|
1762
|
-
};
|
|
1763
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1764
|
-
switch (errorCode) {
|
|
1765
|
-
case "AccessDeniedException":
|
|
1766
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1767
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1768
|
-
case "InternalServerException":
|
|
1769
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1770
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1771
|
-
case "ResourceNotFoundException":
|
|
1772
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1773
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1774
|
-
case "ThrottlingException":
|
|
1775
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1776
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1777
|
-
case "ValidationException":
|
|
1778
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1779
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1780
|
-
default:
|
|
1781
|
-
const parsedBody = parsedOutput.body;
|
|
1782
|
-
return throwDefaultError({
|
|
1783
|
-
output,
|
|
1784
|
-
parsedBody,
|
|
1785
|
-
errorCode
|
|
1786
|
-
});
|
|
1079
|
+
var de_ListSpeakersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1080
|
+
if (output.statusCode >= 300) {
|
|
1081
|
+
return de_CommandError(output, context);
|
|
1082
|
+
}
|
|
1083
|
+
const data = await parseBody(output.body, context);
|
|
1084
|
+
let contents = {};
|
|
1085
|
+
contents = de_ListSpeakersResponse(data, context);
|
|
1086
|
+
const response = {
|
|
1087
|
+
$metadata: deserializeMetadata(output),
|
|
1088
|
+
...contents
|
|
1089
|
+
};
|
|
1090
|
+
return response;
|
|
1091
|
+
}, "de_ListSpeakersCommand");
|
|
1092
|
+
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1093
|
+
if (output.statusCode >= 300) {
|
|
1094
|
+
return de_CommandError(output, context);
|
|
1787
1095
|
}
|
|
1788
|
-
|
|
1096
|
+
const data = await parseBody(output.body, context);
|
|
1097
|
+
let contents = {};
|
|
1098
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1099
|
+
const response = {
|
|
1100
|
+
$metadata: deserializeMetadata(output),
|
|
1101
|
+
...contents
|
|
1102
|
+
};
|
|
1103
|
+
return response;
|
|
1104
|
+
}, "de_ListTagsForResourceCommand");
|
|
1789
1105
|
var de_ListWatchlistsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1790
1106
|
if (output.statusCode >= 300) {
|
|
1791
|
-
return
|
|
1107
|
+
return de_CommandError(output, context);
|
|
1792
1108
|
}
|
|
1793
1109
|
const data = await parseBody(output.body, context);
|
|
1794
1110
|
let contents = {};
|
|
@@ -1799,40 +1115,9 @@ var de_ListWatchlistsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1799
1115
|
};
|
|
1800
1116
|
return response;
|
|
1801
1117
|
}, "de_ListWatchlistsCommand");
|
|
1802
|
-
var de_ListWatchlistsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1803
|
-
const parsedOutput = {
|
|
1804
|
-
...output,
|
|
1805
|
-
body: await parseErrorBody(output.body, context)
|
|
1806
|
-
};
|
|
1807
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1808
|
-
switch (errorCode) {
|
|
1809
|
-
case "AccessDeniedException":
|
|
1810
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1811
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1812
|
-
case "InternalServerException":
|
|
1813
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1814
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1815
|
-
case "ResourceNotFoundException":
|
|
1816
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1817
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1818
|
-
case "ThrottlingException":
|
|
1819
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1820
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1821
|
-
case "ValidationException":
|
|
1822
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1823
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1824
|
-
default:
|
|
1825
|
-
const parsedBody = parsedOutput.body;
|
|
1826
|
-
return throwDefaultError({
|
|
1827
|
-
output,
|
|
1828
|
-
parsedBody,
|
|
1829
|
-
errorCode
|
|
1830
|
-
});
|
|
1831
|
-
}
|
|
1832
|
-
}, "de_ListWatchlistsCommandError");
|
|
1833
1118
|
var de_OptOutSpeakerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1834
1119
|
if (output.statusCode >= 300) {
|
|
1835
|
-
return
|
|
1120
|
+
return de_CommandError(output, context);
|
|
1836
1121
|
}
|
|
1837
1122
|
const data = await parseBody(output.body, context);
|
|
1838
1123
|
let contents = {};
|
|
@@ -1843,46 +1128,9 @@ var de_OptOutSpeakerCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1843
1128
|
};
|
|
1844
1129
|
return response;
|
|
1845
1130
|
}, "de_OptOutSpeakerCommand");
|
|
1846
|
-
var de_OptOutSpeakerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1847
|
-
const parsedOutput = {
|
|
1848
|
-
...output,
|
|
1849
|
-
body: await parseErrorBody(output.body, context)
|
|
1850
|
-
};
|
|
1851
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1852
|
-
switch (errorCode) {
|
|
1853
|
-
case "AccessDeniedException":
|
|
1854
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1855
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1856
|
-
case "ConflictException":
|
|
1857
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
1858
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1859
|
-
case "InternalServerException":
|
|
1860
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1861
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1862
|
-
case "ResourceNotFoundException":
|
|
1863
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1864
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1865
|
-
case "ServiceQuotaExceededException":
|
|
1866
|
-
case "com.amazonaws.voiceid#ServiceQuotaExceededException":
|
|
1867
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1868
|
-
case "ThrottlingException":
|
|
1869
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1870
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1871
|
-
case "ValidationException":
|
|
1872
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1873
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1874
|
-
default:
|
|
1875
|
-
const parsedBody = parsedOutput.body;
|
|
1876
|
-
return throwDefaultError({
|
|
1877
|
-
output,
|
|
1878
|
-
parsedBody,
|
|
1879
|
-
errorCode
|
|
1880
|
-
});
|
|
1881
|
-
}
|
|
1882
|
-
}, "de_OptOutSpeakerCommandError");
|
|
1883
1131
|
var de_StartFraudsterRegistrationJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1884
1132
|
if (output.statusCode >= 300) {
|
|
1885
|
-
return
|
|
1133
|
+
return de_CommandError(output, context);
|
|
1886
1134
|
}
|
|
1887
1135
|
const data = await parseBody(output.body, context);
|
|
1888
1136
|
let contents = {};
|
|
@@ -1893,46 +1141,9 @@ var de_StartFraudsterRegistrationJobCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1893
1141
|
};
|
|
1894
1142
|
return response;
|
|
1895
1143
|
}, "de_StartFraudsterRegistrationJobCommand");
|
|
1896
|
-
var de_StartFraudsterRegistrationJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1897
|
-
const parsedOutput = {
|
|
1898
|
-
...output,
|
|
1899
|
-
body: await parseErrorBody(output.body, context)
|
|
1900
|
-
};
|
|
1901
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1902
|
-
switch (errorCode) {
|
|
1903
|
-
case "AccessDeniedException":
|
|
1904
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1905
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1906
|
-
case "ConflictException":
|
|
1907
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
1908
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1909
|
-
case "InternalServerException":
|
|
1910
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1911
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1912
|
-
case "ResourceNotFoundException":
|
|
1913
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1914
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1915
|
-
case "ServiceQuotaExceededException":
|
|
1916
|
-
case "com.amazonaws.voiceid#ServiceQuotaExceededException":
|
|
1917
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1918
|
-
case "ThrottlingException":
|
|
1919
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1920
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1921
|
-
case "ValidationException":
|
|
1922
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1923
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1924
|
-
default:
|
|
1925
|
-
const parsedBody = parsedOutput.body;
|
|
1926
|
-
return throwDefaultError({
|
|
1927
|
-
output,
|
|
1928
|
-
parsedBody,
|
|
1929
|
-
errorCode
|
|
1930
|
-
});
|
|
1931
|
-
}
|
|
1932
|
-
}, "de_StartFraudsterRegistrationJobCommandError");
|
|
1933
1144
|
var de_StartSpeakerEnrollmentJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1934
1145
|
if (output.statusCode >= 300) {
|
|
1935
|
-
return
|
|
1146
|
+
return de_CommandError(output, context);
|
|
1936
1147
|
}
|
|
1937
1148
|
const data = await parseBody(output.body, context);
|
|
1938
1149
|
let contents = {};
|
|
@@ -1943,46 +1154,9 @@ var de_StartSpeakerEnrollmentJobCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1943
1154
|
};
|
|
1944
1155
|
return response;
|
|
1945
1156
|
}, "de_StartSpeakerEnrollmentJobCommand");
|
|
1946
|
-
var de_StartSpeakerEnrollmentJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1947
|
-
const parsedOutput = {
|
|
1948
|
-
...output,
|
|
1949
|
-
body: await parseErrorBody(output.body, context)
|
|
1950
|
-
};
|
|
1951
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1952
|
-
switch (errorCode) {
|
|
1953
|
-
case "AccessDeniedException":
|
|
1954
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
1955
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1956
|
-
case "ConflictException":
|
|
1957
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
1958
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1959
|
-
case "InternalServerException":
|
|
1960
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
1961
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1962
|
-
case "ResourceNotFoundException":
|
|
1963
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
1964
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1965
|
-
case "ServiceQuotaExceededException":
|
|
1966
|
-
case "com.amazonaws.voiceid#ServiceQuotaExceededException":
|
|
1967
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1968
|
-
case "ThrottlingException":
|
|
1969
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
1970
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1971
|
-
case "ValidationException":
|
|
1972
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
1973
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1974
|
-
default:
|
|
1975
|
-
const parsedBody = parsedOutput.body;
|
|
1976
|
-
return throwDefaultError({
|
|
1977
|
-
output,
|
|
1978
|
-
parsedBody,
|
|
1979
|
-
errorCode
|
|
1980
|
-
});
|
|
1981
|
-
}
|
|
1982
|
-
}, "de_StartSpeakerEnrollmentJobCommandError");
|
|
1983
1157
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1984
1158
|
if (output.statusCode >= 300) {
|
|
1985
|
-
return
|
|
1159
|
+
return de_CommandError(output, context);
|
|
1986
1160
|
}
|
|
1987
1161
|
const data = await parseBody(output.body, context);
|
|
1988
1162
|
let contents = {};
|
|
@@ -1993,43 +1167,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1993
1167
|
};
|
|
1994
1168
|
return response;
|
|
1995
1169
|
}, "de_TagResourceCommand");
|
|
1996
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1997
|
-
const parsedOutput = {
|
|
1998
|
-
...output,
|
|
1999
|
-
body: await parseErrorBody(output.body, context)
|
|
2000
|
-
};
|
|
2001
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2002
|
-
switch (errorCode) {
|
|
2003
|
-
case "AccessDeniedException":
|
|
2004
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
2005
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2006
|
-
case "ConflictException":
|
|
2007
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
2008
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2009
|
-
case "InternalServerException":
|
|
2010
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
2011
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2012
|
-
case "ResourceNotFoundException":
|
|
2013
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
2014
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2015
|
-
case "ThrottlingException":
|
|
2016
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
2017
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2018
|
-
case "ValidationException":
|
|
2019
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
2020
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2021
|
-
default:
|
|
2022
|
-
const parsedBody = parsedOutput.body;
|
|
2023
|
-
return throwDefaultError({
|
|
2024
|
-
output,
|
|
2025
|
-
parsedBody,
|
|
2026
|
-
errorCode
|
|
2027
|
-
});
|
|
2028
|
-
}
|
|
2029
|
-
}, "de_TagResourceCommandError");
|
|
2030
1170
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2031
1171
|
if (output.statusCode >= 300) {
|
|
2032
|
-
return
|
|
1172
|
+
return de_CommandError(output, context);
|
|
2033
1173
|
}
|
|
2034
1174
|
const data = await parseBody(output.body, context);
|
|
2035
1175
|
let contents = {};
|
|
@@ -2040,43 +1180,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2040
1180
|
};
|
|
2041
1181
|
return response;
|
|
2042
1182
|
}, "de_UntagResourceCommand");
|
|
2043
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2044
|
-
const parsedOutput = {
|
|
2045
|
-
...output,
|
|
2046
|
-
body: await parseErrorBody(output.body, context)
|
|
2047
|
-
};
|
|
2048
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2049
|
-
switch (errorCode) {
|
|
2050
|
-
case "AccessDeniedException":
|
|
2051
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
2052
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2053
|
-
case "ConflictException":
|
|
2054
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
2055
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2056
|
-
case "InternalServerException":
|
|
2057
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
2058
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2059
|
-
case "ResourceNotFoundException":
|
|
2060
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
2061
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2062
|
-
case "ThrottlingException":
|
|
2063
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
2064
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2065
|
-
case "ValidationException":
|
|
2066
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
2067
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2068
|
-
default:
|
|
2069
|
-
const parsedBody = parsedOutput.body;
|
|
2070
|
-
return throwDefaultError({
|
|
2071
|
-
output,
|
|
2072
|
-
parsedBody,
|
|
2073
|
-
errorCode
|
|
2074
|
-
});
|
|
2075
|
-
}
|
|
2076
|
-
}, "de_UntagResourceCommandError");
|
|
2077
1183
|
var de_UpdateDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2078
1184
|
if (output.statusCode >= 300) {
|
|
2079
|
-
return
|
|
1185
|
+
return de_CommandError(output, context);
|
|
2080
1186
|
}
|
|
2081
1187
|
const data = await parseBody(output.body, context);
|
|
2082
1188
|
let contents = {};
|
|
@@ -2087,43 +1193,9 @@ var de_UpdateDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2087
1193
|
};
|
|
2088
1194
|
return response;
|
|
2089
1195
|
}, "de_UpdateDomainCommand");
|
|
2090
|
-
var de_UpdateDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2091
|
-
const parsedOutput = {
|
|
2092
|
-
...output,
|
|
2093
|
-
body: await parseErrorBody(output.body, context)
|
|
2094
|
-
};
|
|
2095
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2096
|
-
switch (errorCode) {
|
|
2097
|
-
case "AccessDeniedException":
|
|
2098
|
-
case "com.amazonaws.voiceid#AccessDeniedException":
|
|
2099
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2100
|
-
case "ConflictException":
|
|
2101
|
-
case "com.amazonaws.voiceid#ConflictException":
|
|
2102
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2103
|
-
case "InternalServerException":
|
|
2104
|
-
case "com.amazonaws.voiceid#InternalServerException":
|
|
2105
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2106
|
-
case "ResourceNotFoundException":
|
|
2107
|
-
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
2108
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2109
|
-
case "ThrottlingException":
|
|
2110
|
-
case "com.amazonaws.voiceid#ThrottlingException":
|
|
2111
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2112
|
-
case "ValidationException":
|
|
2113
|
-
case "com.amazonaws.voiceid#ValidationException":
|
|
2114
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2115
|
-
default:
|
|
2116
|
-
const parsedBody = parsedOutput.body;
|
|
2117
|
-
return throwDefaultError({
|
|
2118
|
-
output,
|
|
2119
|
-
parsedBody,
|
|
2120
|
-
errorCode
|
|
2121
|
-
});
|
|
2122
|
-
}
|
|
2123
|
-
}, "de_UpdateDomainCommandError");
|
|
2124
1196
|
var de_UpdateWatchlistCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2125
1197
|
if (output.statusCode >= 300) {
|
|
2126
|
-
return
|
|
1198
|
+
return de_CommandError(output, context);
|
|
2127
1199
|
}
|
|
2128
1200
|
const data = await parseBody(output.body, context);
|
|
2129
1201
|
let contents = {};
|
|
@@ -2134,7 +1206,7 @@ var de_UpdateWatchlistCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2134
1206
|
};
|
|
2135
1207
|
return response;
|
|
2136
1208
|
}, "de_UpdateWatchlistCommand");
|
|
2137
|
-
var
|
|
1209
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2138
1210
|
const parsedOutput = {
|
|
2139
1211
|
...output,
|
|
2140
1212
|
body: await parseErrorBody(output.body, context)
|
|
@@ -2153,6 +1225,9 @@ var de_UpdateWatchlistCommandError = /* @__PURE__ */ __name(async (output, conte
|
|
|
2153
1225
|
case "ResourceNotFoundException":
|
|
2154
1226
|
case "com.amazonaws.voiceid#ResourceNotFoundException":
|
|
2155
1227
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1228
|
+
case "ServiceQuotaExceededException":
|
|
1229
|
+
case "com.amazonaws.voiceid#ServiceQuotaExceededException":
|
|
1230
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2156
1231
|
case "ThrottlingException":
|
|
2157
1232
|
case "com.amazonaws.voiceid#ThrottlingException":
|
|
2158
1233
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -2167,7 +1242,7 @@ var de_UpdateWatchlistCommandError = /* @__PURE__ */ __name(async (output, conte
|
|
|
2167
1242
|
errorCode
|
|
2168
1243
|
});
|
|
2169
1244
|
}
|
|
2170
|
-
}, "
|
|
1245
|
+
}, "de_CommandError");
|
|
2171
1246
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2172
1247
|
const body = parsedOutput.body;
|
|
2173
1248
|
const deserialized = (0, import_smithy_client._json)(body);
|