@aws-sdk/client-personalize 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 +133 -1783
- package/dist-es/protocols/Aws_json1_1.js +166 -1816
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -829,7 +829,7 @@ var se_UpdateRecommenderCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
829
829
|
}, "se_UpdateRecommenderCommand");
|
|
830
830
|
var de_CreateBatchInferenceJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
831
831
|
if (output.statusCode >= 300) {
|
|
832
|
-
return
|
|
832
|
+
return de_CommandError(output, context);
|
|
833
833
|
}
|
|
834
834
|
const data = await parseBody(output.body, context);
|
|
835
835
|
let contents = {};
|
|
@@ -840,43 +840,9 @@ var de_CreateBatchInferenceJobCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
840
840
|
};
|
|
841
841
|
return response;
|
|
842
842
|
}, "de_CreateBatchInferenceJobCommand");
|
|
843
|
-
var de_CreateBatchInferenceJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
844
|
-
const parsedOutput = {
|
|
845
|
-
...output,
|
|
846
|
-
body: await parseErrorBody(output.body, context)
|
|
847
|
-
};
|
|
848
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
849
|
-
switch (errorCode) {
|
|
850
|
-
case "InvalidInputException":
|
|
851
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
852
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
853
|
-
case "LimitExceededException":
|
|
854
|
-
case "com.amazonaws.personalize#LimitExceededException":
|
|
855
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
856
|
-
case "ResourceAlreadyExistsException":
|
|
857
|
-
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
858
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
859
|
-
case "ResourceInUseException":
|
|
860
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
861
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
862
|
-
case "ResourceNotFoundException":
|
|
863
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
864
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
865
|
-
case "TooManyTagsException":
|
|
866
|
-
case "com.amazonaws.personalize#TooManyTagsException":
|
|
867
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
868
|
-
default:
|
|
869
|
-
const parsedBody = parsedOutput.body;
|
|
870
|
-
return throwDefaultError({
|
|
871
|
-
output,
|
|
872
|
-
parsedBody,
|
|
873
|
-
errorCode
|
|
874
|
-
});
|
|
875
|
-
}
|
|
876
|
-
}, "de_CreateBatchInferenceJobCommandError");
|
|
877
843
|
var de_CreateBatchSegmentJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
878
844
|
if (output.statusCode >= 300) {
|
|
879
|
-
return
|
|
845
|
+
return de_CommandError(output, context);
|
|
880
846
|
}
|
|
881
847
|
const data = await parseBody(output.body, context);
|
|
882
848
|
let contents = {};
|
|
@@ -887,43 +853,9 @@ var de_CreateBatchSegmentJobCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
887
853
|
};
|
|
888
854
|
return response;
|
|
889
855
|
}, "de_CreateBatchSegmentJobCommand");
|
|
890
|
-
var de_CreateBatchSegmentJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
891
|
-
const parsedOutput = {
|
|
892
|
-
...output,
|
|
893
|
-
body: await parseErrorBody(output.body, context)
|
|
894
|
-
};
|
|
895
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
896
|
-
switch (errorCode) {
|
|
897
|
-
case "InvalidInputException":
|
|
898
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
899
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
900
|
-
case "LimitExceededException":
|
|
901
|
-
case "com.amazonaws.personalize#LimitExceededException":
|
|
902
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
903
|
-
case "ResourceAlreadyExistsException":
|
|
904
|
-
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
905
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
906
|
-
case "ResourceInUseException":
|
|
907
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
908
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
909
|
-
case "ResourceNotFoundException":
|
|
910
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
911
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
912
|
-
case "TooManyTagsException":
|
|
913
|
-
case "com.amazonaws.personalize#TooManyTagsException":
|
|
914
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
915
|
-
default:
|
|
916
|
-
const parsedBody = parsedOutput.body;
|
|
917
|
-
return throwDefaultError({
|
|
918
|
-
output,
|
|
919
|
-
parsedBody,
|
|
920
|
-
errorCode
|
|
921
|
-
});
|
|
922
|
-
}
|
|
923
|
-
}, "de_CreateBatchSegmentJobCommandError");
|
|
924
856
|
var de_CreateCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
925
857
|
if (output.statusCode >= 300) {
|
|
926
|
-
return
|
|
858
|
+
return de_CommandError(output, context);
|
|
927
859
|
}
|
|
928
860
|
const data = await parseBody(output.body, context);
|
|
929
861
|
let contents = {};
|
|
@@ -934,43 +866,9 @@ var de_CreateCampaignCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
934
866
|
};
|
|
935
867
|
return response;
|
|
936
868
|
}, "de_CreateCampaignCommand");
|
|
937
|
-
var de_CreateCampaignCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
938
|
-
const parsedOutput = {
|
|
939
|
-
...output,
|
|
940
|
-
body: await parseErrorBody(output.body, context)
|
|
941
|
-
};
|
|
942
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
943
|
-
switch (errorCode) {
|
|
944
|
-
case "InvalidInputException":
|
|
945
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
946
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
947
|
-
case "LimitExceededException":
|
|
948
|
-
case "com.amazonaws.personalize#LimitExceededException":
|
|
949
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
950
|
-
case "ResourceAlreadyExistsException":
|
|
951
|
-
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
952
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
953
|
-
case "ResourceInUseException":
|
|
954
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
955
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
956
|
-
case "ResourceNotFoundException":
|
|
957
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
958
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
959
|
-
case "TooManyTagsException":
|
|
960
|
-
case "com.amazonaws.personalize#TooManyTagsException":
|
|
961
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
962
|
-
default:
|
|
963
|
-
const parsedBody = parsedOutput.body;
|
|
964
|
-
return throwDefaultError({
|
|
965
|
-
output,
|
|
966
|
-
parsedBody,
|
|
967
|
-
errorCode
|
|
968
|
-
});
|
|
969
|
-
}
|
|
970
|
-
}, "de_CreateCampaignCommandError");
|
|
971
869
|
var de_CreateDatasetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
972
870
|
if (output.statusCode >= 300) {
|
|
973
|
-
return
|
|
871
|
+
return de_CommandError(output, context);
|
|
974
872
|
}
|
|
975
873
|
const data = await parseBody(output.body, context);
|
|
976
874
|
let contents = {};
|
|
@@ -981,43 +879,9 @@ var de_CreateDatasetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
981
879
|
};
|
|
982
880
|
return response;
|
|
983
881
|
}, "de_CreateDatasetCommand");
|
|
984
|
-
var de_CreateDatasetCommandError = /* @__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 "InvalidInputException":
|
|
992
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
993
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
994
|
-
case "LimitExceededException":
|
|
995
|
-
case "com.amazonaws.personalize#LimitExceededException":
|
|
996
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
997
|
-
case "ResourceAlreadyExistsException":
|
|
998
|
-
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
999
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1000
|
-
case "ResourceInUseException":
|
|
1001
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1002
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1003
|
-
case "ResourceNotFoundException":
|
|
1004
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1005
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1006
|
-
case "TooManyTagsException":
|
|
1007
|
-
case "com.amazonaws.personalize#TooManyTagsException":
|
|
1008
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1009
|
-
default:
|
|
1010
|
-
const parsedBody = parsedOutput.body;
|
|
1011
|
-
return throwDefaultError({
|
|
1012
|
-
output,
|
|
1013
|
-
parsedBody,
|
|
1014
|
-
errorCode
|
|
1015
|
-
});
|
|
1016
|
-
}
|
|
1017
|
-
}, "de_CreateDatasetCommandError");
|
|
1018
882
|
var de_CreateDatasetExportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1019
883
|
if (output.statusCode >= 300) {
|
|
1020
|
-
return
|
|
884
|
+
return de_CommandError(output, context);
|
|
1021
885
|
}
|
|
1022
886
|
const data = await parseBody(output.body, context);
|
|
1023
887
|
let contents = {};
|
|
@@ -1028,43 +892,9 @@ var de_CreateDatasetExportJobCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1028
892
|
};
|
|
1029
893
|
return response;
|
|
1030
894
|
}, "de_CreateDatasetExportJobCommand");
|
|
1031
|
-
var de_CreateDatasetExportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1032
|
-
const parsedOutput = {
|
|
1033
|
-
...output,
|
|
1034
|
-
body: await parseErrorBody(output.body, context)
|
|
1035
|
-
};
|
|
1036
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1037
|
-
switch (errorCode) {
|
|
1038
|
-
case "InvalidInputException":
|
|
1039
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1040
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1041
|
-
case "LimitExceededException":
|
|
1042
|
-
case "com.amazonaws.personalize#LimitExceededException":
|
|
1043
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1044
|
-
case "ResourceAlreadyExistsException":
|
|
1045
|
-
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
1046
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1047
|
-
case "ResourceInUseException":
|
|
1048
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1049
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1050
|
-
case "ResourceNotFoundException":
|
|
1051
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1052
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1053
|
-
case "TooManyTagsException":
|
|
1054
|
-
case "com.amazonaws.personalize#TooManyTagsException":
|
|
1055
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1056
|
-
default:
|
|
1057
|
-
const parsedBody = parsedOutput.body;
|
|
1058
|
-
return throwDefaultError({
|
|
1059
|
-
output,
|
|
1060
|
-
parsedBody,
|
|
1061
|
-
errorCode
|
|
1062
|
-
});
|
|
1063
|
-
}
|
|
1064
|
-
}, "de_CreateDatasetExportJobCommandError");
|
|
1065
895
|
var de_CreateDatasetGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1066
896
|
if (output.statusCode >= 300) {
|
|
1067
|
-
return
|
|
897
|
+
return de_CommandError(output, context);
|
|
1068
898
|
}
|
|
1069
899
|
const data = await parseBody(output.body, context);
|
|
1070
900
|
let contents = {};
|
|
@@ -1075,37 +905,9 @@ var de_CreateDatasetGroupCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1075
905
|
};
|
|
1076
906
|
return response;
|
|
1077
907
|
}, "de_CreateDatasetGroupCommand");
|
|
1078
|
-
var de_CreateDatasetGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1079
|
-
const parsedOutput = {
|
|
1080
|
-
...output,
|
|
1081
|
-
body: await parseErrorBody(output.body, context)
|
|
1082
|
-
};
|
|
1083
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1084
|
-
switch (errorCode) {
|
|
1085
|
-
case "InvalidInputException":
|
|
1086
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1087
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1088
|
-
case "LimitExceededException":
|
|
1089
|
-
case "com.amazonaws.personalize#LimitExceededException":
|
|
1090
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1091
|
-
case "ResourceAlreadyExistsException":
|
|
1092
|
-
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
1093
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1094
|
-
case "TooManyTagsException":
|
|
1095
|
-
case "com.amazonaws.personalize#TooManyTagsException":
|
|
1096
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1097
|
-
default:
|
|
1098
|
-
const parsedBody = parsedOutput.body;
|
|
1099
|
-
return throwDefaultError({
|
|
1100
|
-
output,
|
|
1101
|
-
parsedBody,
|
|
1102
|
-
errorCode
|
|
1103
|
-
});
|
|
1104
|
-
}
|
|
1105
|
-
}, "de_CreateDatasetGroupCommandError");
|
|
1106
908
|
var de_CreateDatasetImportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1107
909
|
if (output.statusCode >= 300) {
|
|
1108
|
-
return
|
|
910
|
+
return de_CommandError(output, context);
|
|
1109
911
|
}
|
|
1110
912
|
const data = await parseBody(output.body, context);
|
|
1111
913
|
let contents = {};
|
|
@@ -1116,43 +918,9 @@ var de_CreateDatasetImportJobCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1116
918
|
};
|
|
1117
919
|
return response;
|
|
1118
920
|
}, "de_CreateDatasetImportJobCommand");
|
|
1119
|
-
var de_CreateDatasetImportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1120
|
-
const parsedOutput = {
|
|
1121
|
-
...output,
|
|
1122
|
-
body: await parseErrorBody(output.body, context)
|
|
1123
|
-
};
|
|
1124
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1125
|
-
switch (errorCode) {
|
|
1126
|
-
case "InvalidInputException":
|
|
1127
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1128
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1129
|
-
case "LimitExceededException":
|
|
1130
|
-
case "com.amazonaws.personalize#LimitExceededException":
|
|
1131
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1132
|
-
case "ResourceAlreadyExistsException":
|
|
1133
|
-
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
1134
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1135
|
-
case "ResourceInUseException":
|
|
1136
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1137
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1138
|
-
case "ResourceNotFoundException":
|
|
1139
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1140
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1141
|
-
case "TooManyTagsException":
|
|
1142
|
-
case "com.amazonaws.personalize#TooManyTagsException":
|
|
1143
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1144
|
-
default:
|
|
1145
|
-
const parsedBody = parsedOutput.body;
|
|
1146
|
-
return throwDefaultError({
|
|
1147
|
-
output,
|
|
1148
|
-
parsedBody,
|
|
1149
|
-
errorCode
|
|
1150
|
-
});
|
|
1151
|
-
}
|
|
1152
|
-
}, "de_CreateDatasetImportJobCommandError");
|
|
1153
921
|
var de_CreateEventTrackerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1154
922
|
if (output.statusCode >= 300) {
|
|
1155
|
-
return
|
|
923
|
+
return de_CommandError(output, context);
|
|
1156
924
|
}
|
|
1157
925
|
const data = await parseBody(output.body, context);
|
|
1158
926
|
let contents = {};
|
|
@@ -1163,43 +931,9 @@ var de_CreateEventTrackerCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1163
931
|
};
|
|
1164
932
|
return response;
|
|
1165
933
|
}, "de_CreateEventTrackerCommand");
|
|
1166
|
-
var de_CreateEventTrackerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1167
|
-
const parsedOutput = {
|
|
1168
|
-
...output,
|
|
1169
|
-
body: await parseErrorBody(output.body, context)
|
|
1170
|
-
};
|
|
1171
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1172
|
-
switch (errorCode) {
|
|
1173
|
-
case "InvalidInputException":
|
|
1174
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1175
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1176
|
-
case "LimitExceededException":
|
|
1177
|
-
case "com.amazonaws.personalize#LimitExceededException":
|
|
1178
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1179
|
-
case "ResourceAlreadyExistsException":
|
|
1180
|
-
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
1181
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1182
|
-
case "ResourceInUseException":
|
|
1183
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1184
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1185
|
-
case "ResourceNotFoundException":
|
|
1186
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1187
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1188
|
-
case "TooManyTagsException":
|
|
1189
|
-
case "com.amazonaws.personalize#TooManyTagsException":
|
|
1190
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1191
|
-
default:
|
|
1192
|
-
const parsedBody = parsedOutput.body;
|
|
1193
|
-
return throwDefaultError({
|
|
1194
|
-
output,
|
|
1195
|
-
parsedBody,
|
|
1196
|
-
errorCode
|
|
1197
|
-
});
|
|
1198
|
-
}
|
|
1199
|
-
}, "de_CreateEventTrackerCommandError");
|
|
1200
934
|
var de_CreateFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1201
935
|
if (output.statusCode >= 300) {
|
|
1202
|
-
return
|
|
936
|
+
return de_CommandError(output, context);
|
|
1203
937
|
}
|
|
1204
938
|
const data = await parseBody(output.body, context);
|
|
1205
939
|
let contents = {};
|
|
@@ -1210,40 +944,9 @@ var de_CreateFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1210
944
|
};
|
|
1211
945
|
return response;
|
|
1212
946
|
}, "de_CreateFilterCommand");
|
|
1213
|
-
var de_CreateFilterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1214
|
-
const parsedOutput = {
|
|
1215
|
-
...output,
|
|
1216
|
-
body: await parseErrorBody(output.body, context)
|
|
1217
|
-
};
|
|
1218
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1219
|
-
switch (errorCode) {
|
|
1220
|
-
case "InvalidInputException":
|
|
1221
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1222
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1223
|
-
case "LimitExceededException":
|
|
1224
|
-
case "com.amazonaws.personalize#LimitExceededException":
|
|
1225
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1226
|
-
case "ResourceAlreadyExistsException":
|
|
1227
|
-
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
1228
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1229
|
-
case "ResourceNotFoundException":
|
|
1230
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1231
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1232
|
-
case "TooManyTagsException":
|
|
1233
|
-
case "com.amazonaws.personalize#TooManyTagsException":
|
|
1234
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1235
|
-
default:
|
|
1236
|
-
const parsedBody = parsedOutput.body;
|
|
1237
|
-
return throwDefaultError({
|
|
1238
|
-
output,
|
|
1239
|
-
parsedBody,
|
|
1240
|
-
errorCode
|
|
1241
|
-
});
|
|
1242
|
-
}
|
|
1243
|
-
}, "de_CreateFilterCommandError");
|
|
1244
947
|
var de_CreateMetricAttributionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1245
948
|
if (output.statusCode >= 300) {
|
|
1246
|
-
return
|
|
949
|
+
return de_CommandError(output, context);
|
|
1247
950
|
}
|
|
1248
951
|
const data = await parseBody(output.body, context);
|
|
1249
952
|
let contents = {};
|
|
@@ -1254,40 +957,9 @@ var de_CreateMetricAttributionCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1254
957
|
};
|
|
1255
958
|
return response;
|
|
1256
959
|
}, "de_CreateMetricAttributionCommand");
|
|
1257
|
-
var de_CreateMetricAttributionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1258
|
-
const parsedOutput = {
|
|
1259
|
-
...output,
|
|
1260
|
-
body: await parseErrorBody(output.body, context)
|
|
1261
|
-
};
|
|
1262
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1263
|
-
switch (errorCode) {
|
|
1264
|
-
case "InvalidInputException":
|
|
1265
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1266
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1267
|
-
case "LimitExceededException":
|
|
1268
|
-
case "com.amazonaws.personalize#LimitExceededException":
|
|
1269
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1270
|
-
case "ResourceAlreadyExistsException":
|
|
1271
|
-
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
1272
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1273
|
-
case "ResourceInUseException":
|
|
1274
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1275
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1276
|
-
case "ResourceNotFoundException":
|
|
1277
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1278
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1279
|
-
default:
|
|
1280
|
-
const parsedBody = parsedOutput.body;
|
|
1281
|
-
return throwDefaultError({
|
|
1282
|
-
output,
|
|
1283
|
-
parsedBody,
|
|
1284
|
-
errorCode
|
|
1285
|
-
});
|
|
1286
|
-
}
|
|
1287
|
-
}, "de_CreateMetricAttributionCommandError");
|
|
1288
960
|
var de_CreateRecommenderCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1289
961
|
if (output.statusCode >= 300) {
|
|
1290
|
-
return
|
|
962
|
+
return de_CommandError(output, context);
|
|
1291
963
|
}
|
|
1292
964
|
const data = await parseBody(output.body, context);
|
|
1293
965
|
let contents = {};
|
|
@@ -1298,43 +970,9 @@ var de_CreateRecommenderCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1298
970
|
};
|
|
1299
971
|
return response;
|
|
1300
972
|
}, "de_CreateRecommenderCommand");
|
|
1301
|
-
var de_CreateRecommenderCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1302
|
-
const parsedOutput = {
|
|
1303
|
-
...output,
|
|
1304
|
-
body: await parseErrorBody(output.body, context)
|
|
1305
|
-
};
|
|
1306
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1307
|
-
switch (errorCode) {
|
|
1308
|
-
case "InvalidInputException":
|
|
1309
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1310
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1311
|
-
case "LimitExceededException":
|
|
1312
|
-
case "com.amazonaws.personalize#LimitExceededException":
|
|
1313
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1314
|
-
case "ResourceAlreadyExistsException":
|
|
1315
|
-
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
1316
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1317
|
-
case "ResourceInUseException":
|
|
1318
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1319
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1320
|
-
case "ResourceNotFoundException":
|
|
1321
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1322
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1323
|
-
case "TooManyTagsException":
|
|
1324
|
-
case "com.amazonaws.personalize#TooManyTagsException":
|
|
1325
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1326
|
-
default:
|
|
1327
|
-
const parsedBody = parsedOutput.body;
|
|
1328
|
-
return throwDefaultError({
|
|
1329
|
-
output,
|
|
1330
|
-
parsedBody,
|
|
1331
|
-
errorCode
|
|
1332
|
-
});
|
|
1333
|
-
}
|
|
1334
|
-
}, "de_CreateRecommenderCommandError");
|
|
1335
973
|
var de_CreateSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1336
974
|
if (output.statusCode >= 300) {
|
|
1337
|
-
return
|
|
975
|
+
return de_CommandError(output, context);
|
|
1338
976
|
}
|
|
1339
977
|
const data = await parseBody(output.body, context);
|
|
1340
978
|
let contents = {};
|
|
@@ -1345,34 +983,9 @@ var de_CreateSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1345
983
|
};
|
|
1346
984
|
return response;
|
|
1347
985
|
}, "de_CreateSchemaCommand");
|
|
1348
|
-
var de_CreateSchemaCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1349
|
-
const parsedOutput = {
|
|
1350
|
-
...output,
|
|
1351
|
-
body: await parseErrorBody(output.body, context)
|
|
1352
|
-
};
|
|
1353
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1354
|
-
switch (errorCode) {
|
|
1355
|
-
case "InvalidInputException":
|
|
1356
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1357
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1358
|
-
case "LimitExceededException":
|
|
1359
|
-
case "com.amazonaws.personalize#LimitExceededException":
|
|
1360
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1361
|
-
case "ResourceAlreadyExistsException":
|
|
1362
|
-
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
1363
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1364
|
-
default:
|
|
1365
|
-
const parsedBody = parsedOutput.body;
|
|
1366
|
-
return throwDefaultError({
|
|
1367
|
-
output,
|
|
1368
|
-
parsedBody,
|
|
1369
|
-
errorCode
|
|
1370
|
-
});
|
|
1371
|
-
}
|
|
1372
|
-
}, "de_CreateSchemaCommandError");
|
|
1373
986
|
var de_CreateSolutionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1374
987
|
if (output.statusCode >= 300) {
|
|
1375
|
-
return
|
|
988
|
+
return de_CommandError(output, context);
|
|
1376
989
|
}
|
|
1377
990
|
const data = await parseBody(output.body, context);
|
|
1378
991
|
let contents = {};
|
|
@@ -1383,43 +996,9 @@ var de_CreateSolutionCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1383
996
|
};
|
|
1384
997
|
return response;
|
|
1385
998
|
}, "de_CreateSolutionCommand");
|
|
1386
|
-
var de_CreateSolutionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1387
|
-
const parsedOutput = {
|
|
1388
|
-
...output,
|
|
1389
|
-
body: await parseErrorBody(output.body, context)
|
|
1390
|
-
};
|
|
1391
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1392
|
-
switch (errorCode) {
|
|
1393
|
-
case "InvalidInputException":
|
|
1394
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1395
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1396
|
-
case "LimitExceededException":
|
|
1397
|
-
case "com.amazonaws.personalize#LimitExceededException":
|
|
1398
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1399
|
-
case "ResourceAlreadyExistsException":
|
|
1400
|
-
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
1401
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1402
|
-
case "ResourceInUseException":
|
|
1403
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1404
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1405
|
-
case "ResourceNotFoundException":
|
|
1406
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1407
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1408
|
-
case "TooManyTagsException":
|
|
1409
|
-
case "com.amazonaws.personalize#TooManyTagsException":
|
|
1410
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1411
|
-
default:
|
|
1412
|
-
const parsedBody = parsedOutput.body;
|
|
1413
|
-
return throwDefaultError({
|
|
1414
|
-
output,
|
|
1415
|
-
parsedBody,
|
|
1416
|
-
errorCode
|
|
1417
|
-
});
|
|
1418
|
-
}
|
|
1419
|
-
}, "de_CreateSolutionCommandError");
|
|
1420
999
|
var de_CreateSolutionVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1421
1000
|
if (output.statusCode >= 300) {
|
|
1422
|
-
return
|
|
1001
|
+
return de_CommandError(output, context);
|
|
1423
1002
|
}
|
|
1424
1003
|
const data = await parseBody(output.body, context);
|
|
1425
1004
|
let contents = {};
|
|
@@ -1430,43 +1009,9 @@ var de_CreateSolutionVersionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1430
1009
|
};
|
|
1431
1010
|
return response;
|
|
1432
1011
|
}, "de_CreateSolutionVersionCommand");
|
|
1433
|
-
var de_CreateSolutionVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1434
|
-
const parsedOutput = {
|
|
1435
|
-
...output,
|
|
1436
|
-
body: await parseErrorBody(output.body, context)
|
|
1437
|
-
};
|
|
1438
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1439
|
-
switch (errorCode) {
|
|
1440
|
-
case "InvalidInputException":
|
|
1441
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1442
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1443
|
-
case "LimitExceededException":
|
|
1444
|
-
case "com.amazonaws.personalize#LimitExceededException":
|
|
1445
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1446
|
-
case "ResourceAlreadyExistsException":
|
|
1447
|
-
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
1448
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1449
|
-
case "ResourceInUseException":
|
|
1450
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1451
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1452
|
-
case "ResourceNotFoundException":
|
|
1453
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1454
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1455
|
-
case "TooManyTagsException":
|
|
1456
|
-
case "com.amazonaws.personalize#TooManyTagsException":
|
|
1457
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1458
|
-
default:
|
|
1459
|
-
const parsedBody = parsedOutput.body;
|
|
1460
|
-
return throwDefaultError({
|
|
1461
|
-
output,
|
|
1462
|
-
parsedBody,
|
|
1463
|
-
errorCode
|
|
1464
|
-
});
|
|
1465
|
-
}
|
|
1466
|
-
}, "de_CreateSolutionVersionCommandError");
|
|
1467
1012
|
var de_DeleteCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1468
1013
|
if (output.statusCode >= 300) {
|
|
1469
|
-
return
|
|
1014
|
+
return de_CommandError(output, context);
|
|
1470
1015
|
}
|
|
1471
1016
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1472
1017
|
const response = {
|
|
@@ -1474,34 +1019,9 @@ var de_DeleteCampaignCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1474
1019
|
};
|
|
1475
1020
|
return response;
|
|
1476
1021
|
}, "de_DeleteCampaignCommand");
|
|
1477
|
-
var de_DeleteCampaignCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1478
|
-
const parsedOutput = {
|
|
1479
|
-
...output,
|
|
1480
|
-
body: await parseErrorBody(output.body, context)
|
|
1481
|
-
};
|
|
1482
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1483
|
-
switch (errorCode) {
|
|
1484
|
-
case "InvalidInputException":
|
|
1485
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1486
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1487
|
-
case "ResourceInUseException":
|
|
1488
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1489
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1490
|
-
case "ResourceNotFoundException":
|
|
1491
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1492
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1493
|
-
default:
|
|
1494
|
-
const parsedBody = parsedOutput.body;
|
|
1495
|
-
return throwDefaultError({
|
|
1496
|
-
output,
|
|
1497
|
-
parsedBody,
|
|
1498
|
-
errorCode
|
|
1499
|
-
});
|
|
1500
|
-
}
|
|
1501
|
-
}, "de_DeleteCampaignCommandError");
|
|
1502
1022
|
var de_DeleteDatasetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1503
1023
|
if (output.statusCode >= 300) {
|
|
1504
|
-
return
|
|
1024
|
+
return de_CommandError(output, context);
|
|
1505
1025
|
}
|
|
1506
1026
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1507
1027
|
const response = {
|
|
@@ -1509,34 +1029,9 @@ var de_DeleteDatasetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1509
1029
|
};
|
|
1510
1030
|
return response;
|
|
1511
1031
|
}, "de_DeleteDatasetCommand");
|
|
1512
|
-
var de_DeleteDatasetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1513
|
-
const parsedOutput = {
|
|
1514
|
-
...output,
|
|
1515
|
-
body: await parseErrorBody(output.body, context)
|
|
1516
|
-
};
|
|
1517
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1518
|
-
switch (errorCode) {
|
|
1519
|
-
case "InvalidInputException":
|
|
1520
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1521
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1522
|
-
case "ResourceInUseException":
|
|
1523
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1524
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1525
|
-
case "ResourceNotFoundException":
|
|
1526
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1527
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1528
|
-
default:
|
|
1529
|
-
const parsedBody = parsedOutput.body;
|
|
1530
|
-
return throwDefaultError({
|
|
1531
|
-
output,
|
|
1532
|
-
parsedBody,
|
|
1533
|
-
errorCode
|
|
1534
|
-
});
|
|
1535
|
-
}
|
|
1536
|
-
}, "de_DeleteDatasetCommandError");
|
|
1537
1032
|
var de_DeleteDatasetGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1538
1033
|
if (output.statusCode >= 300) {
|
|
1539
|
-
return
|
|
1034
|
+
return de_CommandError(output, context);
|
|
1540
1035
|
}
|
|
1541
1036
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1542
1037
|
const response = {
|
|
@@ -1544,34 +1039,9 @@ var de_DeleteDatasetGroupCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1544
1039
|
};
|
|
1545
1040
|
return response;
|
|
1546
1041
|
}, "de_DeleteDatasetGroupCommand");
|
|
1547
|
-
var de_DeleteDatasetGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1548
|
-
const parsedOutput = {
|
|
1549
|
-
...output,
|
|
1550
|
-
body: await parseErrorBody(output.body, context)
|
|
1551
|
-
};
|
|
1552
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1553
|
-
switch (errorCode) {
|
|
1554
|
-
case "InvalidInputException":
|
|
1555
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1556
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1557
|
-
case "ResourceInUseException":
|
|
1558
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1559
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1560
|
-
case "ResourceNotFoundException":
|
|
1561
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1562
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1563
|
-
default:
|
|
1564
|
-
const parsedBody = parsedOutput.body;
|
|
1565
|
-
return throwDefaultError({
|
|
1566
|
-
output,
|
|
1567
|
-
parsedBody,
|
|
1568
|
-
errorCode
|
|
1569
|
-
});
|
|
1570
|
-
}
|
|
1571
|
-
}, "de_DeleteDatasetGroupCommandError");
|
|
1572
1042
|
var de_DeleteEventTrackerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1573
1043
|
if (output.statusCode >= 300) {
|
|
1574
|
-
return
|
|
1044
|
+
return de_CommandError(output, context);
|
|
1575
1045
|
}
|
|
1576
1046
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1577
1047
|
const response = {
|
|
@@ -1579,34 +1049,9 @@ var de_DeleteEventTrackerCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1579
1049
|
};
|
|
1580
1050
|
return response;
|
|
1581
1051
|
}, "de_DeleteEventTrackerCommand");
|
|
1582
|
-
var de_DeleteEventTrackerCommandError = /* @__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 "InvalidInputException":
|
|
1590
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1591
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1592
|
-
case "ResourceInUseException":
|
|
1593
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1594
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1595
|
-
case "ResourceNotFoundException":
|
|
1596
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1597
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1598
|
-
default:
|
|
1599
|
-
const parsedBody = parsedOutput.body;
|
|
1600
|
-
return throwDefaultError({
|
|
1601
|
-
output,
|
|
1602
|
-
parsedBody,
|
|
1603
|
-
errorCode
|
|
1604
|
-
});
|
|
1605
|
-
}
|
|
1606
|
-
}, "de_DeleteEventTrackerCommandError");
|
|
1607
1052
|
var de_DeleteFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1608
1053
|
if (output.statusCode >= 300) {
|
|
1609
|
-
return
|
|
1054
|
+
return de_CommandError(output, context);
|
|
1610
1055
|
}
|
|
1611
1056
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1612
1057
|
const response = {
|
|
@@ -1614,34 +1059,9 @@ var de_DeleteFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1614
1059
|
};
|
|
1615
1060
|
return response;
|
|
1616
1061
|
}, "de_DeleteFilterCommand");
|
|
1617
|
-
var de_DeleteFilterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1618
|
-
const parsedOutput = {
|
|
1619
|
-
...output,
|
|
1620
|
-
body: await parseErrorBody(output.body, context)
|
|
1621
|
-
};
|
|
1622
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1623
|
-
switch (errorCode) {
|
|
1624
|
-
case "InvalidInputException":
|
|
1625
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1626
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1627
|
-
case "ResourceInUseException":
|
|
1628
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1629
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1630
|
-
case "ResourceNotFoundException":
|
|
1631
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1632
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1633
|
-
default:
|
|
1634
|
-
const parsedBody = parsedOutput.body;
|
|
1635
|
-
return throwDefaultError({
|
|
1636
|
-
output,
|
|
1637
|
-
parsedBody,
|
|
1638
|
-
errorCode
|
|
1639
|
-
});
|
|
1640
|
-
}
|
|
1641
|
-
}, "de_DeleteFilterCommandError");
|
|
1642
1062
|
var de_DeleteMetricAttributionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1643
1063
|
if (output.statusCode >= 300) {
|
|
1644
|
-
return
|
|
1064
|
+
return de_CommandError(output, context);
|
|
1645
1065
|
}
|
|
1646
1066
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1647
1067
|
const response = {
|
|
@@ -1649,104 +1069,29 @@ var de_DeleteMetricAttributionCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1649
1069
|
};
|
|
1650
1070
|
return response;
|
|
1651
1071
|
}, "de_DeleteMetricAttributionCommand");
|
|
1652
|
-
var de_DeleteMetricAttributionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1653
|
-
const parsedOutput = {
|
|
1654
|
-
...output,
|
|
1655
|
-
body: await parseErrorBody(output.body, context)
|
|
1656
|
-
};
|
|
1657
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1658
|
-
switch (errorCode) {
|
|
1659
|
-
case "InvalidInputException":
|
|
1660
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1661
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1662
|
-
case "ResourceInUseException":
|
|
1663
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1664
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1665
|
-
case "ResourceNotFoundException":
|
|
1666
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1667
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1668
|
-
default:
|
|
1669
|
-
const parsedBody = parsedOutput.body;
|
|
1670
|
-
return throwDefaultError({
|
|
1671
|
-
output,
|
|
1672
|
-
parsedBody,
|
|
1673
|
-
errorCode
|
|
1674
|
-
});
|
|
1675
|
-
}
|
|
1676
|
-
}, "de_DeleteMetricAttributionCommandError");
|
|
1677
1072
|
var de_DeleteRecommenderCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1678
1073
|
if (output.statusCode >= 300) {
|
|
1679
|
-
return
|
|
1074
|
+
return de_CommandError(output, context);
|
|
1680
1075
|
}
|
|
1681
1076
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1682
1077
|
const response = {
|
|
1683
1078
|
$metadata: deserializeMetadata(output)
|
|
1684
|
-
};
|
|
1685
|
-
return response;
|
|
1686
|
-
}, "de_DeleteRecommenderCommand");
|
|
1687
|
-
var
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
body: await parseErrorBody(output.body, context)
|
|
1691
|
-
};
|
|
1692
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1693
|
-
switch (errorCode) {
|
|
1694
|
-
case "InvalidInputException":
|
|
1695
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1696
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1697
|
-
case "ResourceInUseException":
|
|
1698
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1699
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1700
|
-
case "ResourceNotFoundException":
|
|
1701
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1702
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1703
|
-
default:
|
|
1704
|
-
const parsedBody = parsedOutput.body;
|
|
1705
|
-
return throwDefaultError({
|
|
1706
|
-
output,
|
|
1707
|
-
parsedBody,
|
|
1708
|
-
errorCode
|
|
1709
|
-
});
|
|
1710
|
-
}
|
|
1711
|
-
}, "de_DeleteRecommenderCommandError");
|
|
1712
|
-
var de_DeleteSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1713
|
-
if (output.statusCode >= 300) {
|
|
1714
|
-
return de_DeleteSchemaCommandError(output, context);
|
|
1715
|
-
}
|
|
1716
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1717
|
-
const response = {
|
|
1718
|
-
$metadata: deserializeMetadata(output)
|
|
1719
|
-
};
|
|
1720
|
-
return response;
|
|
1721
|
-
}, "de_DeleteSchemaCommand");
|
|
1722
|
-
var de_DeleteSchemaCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1723
|
-
const parsedOutput = {
|
|
1724
|
-
...output,
|
|
1725
|
-
body: await parseErrorBody(output.body, context)
|
|
1726
|
-
};
|
|
1727
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1728
|
-
switch (errorCode) {
|
|
1729
|
-
case "InvalidInputException":
|
|
1730
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1731
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1732
|
-
case "ResourceInUseException":
|
|
1733
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1734
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1735
|
-
case "ResourceNotFoundException":
|
|
1736
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1737
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1738
|
-
default:
|
|
1739
|
-
const parsedBody = parsedOutput.body;
|
|
1740
|
-
return throwDefaultError({
|
|
1741
|
-
output,
|
|
1742
|
-
parsedBody,
|
|
1743
|
-
errorCode
|
|
1744
|
-
});
|
|
1079
|
+
};
|
|
1080
|
+
return response;
|
|
1081
|
+
}, "de_DeleteRecommenderCommand");
|
|
1082
|
+
var de_DeleteSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1083
|
+
if (output.statusCode >= 300) {
|
|
1084
|
+
return de_CommandError(output, context);
|
|
1745
1085
|
}
|
|
1746
|
-
|
|
1086
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1087
|
+
const response = {
|
|
1088
|
+
$metadata: deserializeMetadata(output)
|
|
1089
|
+
};
|
|
1090
|
+
return response;
|
|
1091
|
+
}, "de_DeleteSchemaCommand");
|
|
1747
1092
|
var de_DeleteSolutionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1748
1093
|
if (output.statusCode >= 300) {
|
|
1749
|
-
return
|
|
1094
|
+
return de_CommandError(output, context);
|
|
1750
1095
|
}
|
|
1751
1096
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1752
1097
|
const response = {
|
|
@@ -1754,34 +1099,9 @@ var de_DeleteSolutionCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1754
1099
|
};
|
|
1755
1100
|
return response;
|
|
1756
1101
|
}, "de_DeleteSolutionCommand");
|
|
1757
|
-
var de_DeleteSolutionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1758
|
-
const parsedOutput = {
|
|
1759
|
-
...output,
|
|
1760
|
-
body: await parseErrorBody(output.body, context)
|
|
1761
|
-
};
|
|
1762
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1763
|
-
switch (errorCode) {
|
|
1764
|
-
case "InvalidInputException":
|
|
1765
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1766
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1767
|
-
case "ResourceInUseException":
|
|
1768
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1769
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1770
|
-
case "ResourceNotFoundException":
|
|
1771
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1772
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1773
|
-
default:
|
|
1774
|
-
const parsedBody = parsedOutput.body;
|
|
1775
|
-
return throwDefaultError({
|
|
1776
|
-
output,
|
|
1777
|
-
parsedBody,
|
|
1778
|
-
errorCode
|
|
1779
|
-
});
|
|
1780
|
-
}
|
|
1781
|
-
}, "de_DeleteSolutionCommandError");
|
|
1782
1102
|
var de_DescribeAlgorithmCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1783
1103
|
if (output.statusCode >= 300) {
|
|
1784
|
-
return
|
|
1104
|
+
return de_CommandError(output, context);
|
|
1785
1105
|
}
|
|
1786
1106
|
const data = await parseBody(output.body, context);
|
|
1787
1107
|
let contents = {};
|
|
@@ -1792,31 +1112,9 @@ var de_DescribeAlgorithmCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1792
1112
|
};
|
|
1793
1113
|
return response;
|
|
1794
1114
|
}, "de_DescribeAlgorithmCommand");
|
|
1795
|
-
var de_DescribeAlgorithmCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1796
|
-
const parsedOutput = {
|
|
1797
|
-
...output,
|
|
1798
|
-
body: await parseErrorBody(output.body, context)
|
|
1799
|
-
};
|
|
1800
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1801
|
-
switch (errorCode) {
|
|
1802
|
-
case "InvalidInputException":
|
|
1803
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1804
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1805
|
-
case "ResourceNotFoundException":
|
|
1806
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1807
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1808
|
-
default:
|
|
1809
|
-
const parsedBody = parsedOutput.body;
|
|
1810
|
-
return throwDefaultError({
|
|
1811
|
-
output,
|
|
1812
|
-
parsedBody,
|
|
1813
|
-
errorCode
|
|
1814
|
-
});
|
|
1815
|
-
}
|
|
1816
|
-
}, "de_DescribeAlgorithmCommandError");
|
|
1817
1115
|
var de_DescribeBatchInferenceJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1818
1116
|
if (output.statusCode >= 300) {
|
|
1819
|
-
return
|
|
1117
|
+
return de_CommandError(output, context);
|
|
1820
1118
|
}
|
|
1821
1119
|
const data = await parseBody(output.body, context);
|
|
1822
1120
|
let contents = {};
|
|
@@ -1827,31 +1125,9 @@ var de_DescribeBatchInferenceJobCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1827
1125
|
};
|
|
1828
1126
|
return response;
|
|
1829
1127
|
}, "de_DescribeBatchInferenceJobCommand");
|
|
1830
|
-
var de_DescribeBatchInferenceJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1831
|
-
const parsedOutput = {
|
|
1832
|
-
...output,
|
|
1833
|
-
body: await parseErrorBody(output.body, context)
|
|
1834
|
-
};
|
|
1835
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1836
|
-
switch (errorCode) {
|
|
1837
|
-
case "InvalidInputException":
|
|
1838
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1839
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1840
|
-
case "ResourceNotFoundException":
|
|
1841
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1842
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1843
|
-
default:
|
|
1844
|
-
const parsedBody = parsedOutput.body;
|
|
1845
|
-
return throwDefaultError({
|
|
1846
|
-
output,
|
|
1847
|
-
parsedBody,
|
|
1848
|
-
errorCode
|
|
1849
|
-
});
|
|
1850
|
-
}
|
|
1851
|
-
}, "de_DescribeBatchInferenceJobCommandError");
|
|
1852
1128
|
var de_DescribeBatchSegmentJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1853
1129
|
if (output.statusCode >= 300) {
|
|
1854
|
-
return
|
|
1130
|
+
return de_CommandError(output, context);
|
|
1855
1131
|
}
|
|
1856
1132
|
const data = await parseBody(output.body, context);
|
|
1857
1133
|
let contents = {};
|
|
@@ -1862,31 +1138,9 @@ var de_DescribeBatchSegmentJobCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1862
1138
|
};
|
|
1863
1139
|
return response;
|
|
1864
1140
|
}, "de_DescribeBatchSegmentJobCommand");
|
|
1865
|
-
var de_DescribeBatchSegmentJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1866
|
-
const parsedOutput = {
|
|
1867
|
-
...output,
|
|
1868
|
-
body: await parseErrorBody(output.body, context)
|
|
1869
|
-
};
|
|
1870
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1871
|
-
switch (errorCode) {
|
|
1872
|
-
case "InvalidInputException":
|
|
1873
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1874
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1875
|
-
case "ResourceNotFoundException":
|
|
1876
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1877
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1878
|
-
default:
|
|
1879
|
-
const parsedBody = parsedOutput.body;
|
|
1880
|
-
return throwDefaultError({
|
|
1881
|
-
output,
|
|
1882
|
-
parsedBody,
|
|
1883
|
-
errorCode
|
|
1884
|
-
});
|
|
1885
|
-
}
|
|
1886
|
-
}, "de_DescribeBatchSegmentJobCommandError");
|
|
1887
1141
|
var de_DescribeCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1888
1142
|
if (output.statusCode >= 300) {
|
|
1889
|
-
return
|
|
1143
|
+
return de_CommandError(output, context);
|
|
1890
1144
|
}
|
|
1891
1145
|
const data = await parseBody(output.body, context);
|
|
1892
1146
|
let contents = {};
|
|
@@ -1897,31 +1151,9 @@ var de_DescribeCampaignCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1897
1151
|
};
|
|
1898
1152
|
return response;
|
|
1899
1153
|
}, "de_DescribeCampaignCommand");
|
|
1900
|
-
var de_DescribeCampaignCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1901
|
-
const parsedOutput = {
|
|
1902
|
-
...output,
|
|
1903
|
-
body: await parseErrorBody(output.body, context)
|
|
1904
|
-
};
|
|
1905
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1906
|
-
switch (errorCode) {
|
|
1907
|
-
case "InvalidInputException":
|
|
1908
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1909
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1910
|
-
case "ResourceNotFoundException":
|
|
1911
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1912
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1913
|
-
default:
|
|
1914
|
-
const parsedBody = parsedOutput.body;
|
|
1915
|
-
return throwDefaultError({
|
|
1916
|
-
output,
|
|
1917
|
-
parsedBody,
|
|
1918
|
-
errorCode
|
|
1919
|
-
});
|
|
1920
|
-
}
|
|
1921
|
-
}, "de_DescribeCampaignCommandError");
|
|
1922
1154
|
var de_DescribeDatasetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1923
1155
|
if (output.statusCode >= 300) {
|
|
1924
|
-
return
|
|
1156
|
+
return de_CommandError(output, context);
|
|
1925
1157
|
}
|
|
1926
1158
|
const data = await parseBody(output.body, context);
|
|
1927
1159
|
let contents = {};
|
|
@@ -1932,31 +1164,9 @@ var de_DescribeDatasetCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1932
1164
|
};
|
|
1933
1165
|
return response;
|
|
1934
1166
|
}, "de_DescribeDatasetCommand");
|
|
1935
|
-
var de_DescribeDatasetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1936
|
-
const parsedOutput = {
|
|
1937
|
-
...output,
|
|
1938
|
-
body: await parseErrorBody(output.body, context)
|
|
1939
|
-
};
|
|
1940
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1941
|
-
switch (errorCode) {
|
|
1942
|
-
case "InvalidInputException":
|
|
1943
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1944
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1945
|
-
case "ResourceNotFoundException":
|
|
1946
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1947
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1948
|
-
default:
|
|
1949
|
-
const parsedBody = parsedOutput.body;
|
|
1950
|
-
return throwDefaultError({
|
|
1951
|
-
output,
|
|
1952
|
-
parsedBody,
|
|
1953
|
-
errorCode
|
|
1954
|
-
});
|
|
1955
|
-
}
|
|
1956
|
-
}, "de_DescribeDatasetCommandError");
|
|
1957
1167
|
var de_DescribeDatasetExportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1958
1168
|
if (output.statusCode >= 300) {
|
|
1959
|
-
return
|
|
1169
|
+
return de_CommandError(output, context);
|
|
1960
1170
|
}
|
|
1961
1171
|
const data = await parseBody(output.body, context);
|
|
1962
1172
|
let contents = {};
|
|
@@ -1967,31 +1177,9 @@ var de_DescribeDatasetExportJobCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1967
1177
|
};
|
|
1968
1178
|
return response;
|
|
1969
1179
|
}, "de_DescribeDatasetExportJobCommand");
|
|
1970
|
-
var de_DescribeDatasetExportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1971
|
-
const parsedOutput = {
|
|
1972
|
-
...output,
|
|
1973
|
-
body: await parseErrorBody(output.body, context)
|
|
1974
|
-
};
|
|
1975
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1976
|
-
switch (errorCode) {
|
|
1977
|
-
case "InvalidInputException":
|
|
1978
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
1979
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1980
|
-
case "ResourceNotFoundException":
|
|
1981
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1982
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1983
|
-
default:
|
|
1984
|
-
const parsedBody = parsedOutput.body;
|
|
1985
|
-
return throwDefaultError({
|
|
1986
|
-
output,
|
|
1987
|
-
parsedBody,
|
|
1988
|
-
errorCode
|
|
1989
|
-
});
|
|
1990
|
-
}
|
|
1991
|
-
}, "de_DescribeDatasetExportJobCommandError");
|
|
1992
1180
|
var de_DescribeDatasetGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1993
1181
|
if (output.statusCode >= 300) {
|
|
1994
|
-
return
|
|
1182
|
+
return de_CommandError(output, context);
|
|
1995
1183
|
}
|
|
1996
1184
|
const data = await parseBody(output.body, context);
|
|
1997
1185
|
let contents = {};
|
|
@@ -2002,31 +1190,9 @@ var de_DescribeDatasetGroupCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2002
1190
|
};
|
|
2003
1191
|
return response;
|
|
2004
1192
|
}, "de_DescribeDatasetGroupCommand");
|
|
2005
|
-
var de_DescribeDatasetGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2006
|
-
const parsedOutput = {
|
|
2007
|
-
...output,
|
|
2008
|
-
body: await parseErrorBody(output.body, context)
|
|
2009
|
-
};
|
|
2010
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2011
|
-
switch (errorCode) {
|
|
2012
|
-
case "InvalidInputException":
|
|
2013
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2014
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2015
|
-
case "ResourceNotFoundException":
|
|
2016
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2017
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2018
|
-
default:
|
|
2019
|
-
const parsedBody = parsedOutput.body;
|
|
2020
|
-
return throwDefaultError({
|
|
2021
|
-
output,
|
|
2022
|
-
parsedBody,
|
|
2023
|
-
errorCode
|
|
2024
|
-
});
|
|
2025
|
-
}
|
|
2026
|
-
}, "de_DescribeDatasetGroupCommandError");
|
|
2027
1193
|
var de_DescribeDatasetImportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2028
1194
|
if (output.statusCode >= 300) {
|
|
2029
|
-
return
|
|
1195
|
+
return de_CommandError(output, context);
|
|
2030
1196
|
}
|
|
2031
1197
|
const data = await parseBody(output.body, context);
|
|
2032
1198
|
let contents = {};
|
|
@@ -2037,31 +1203,9 @@ var de_DescribeDatasetImportJobCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2037
1203
|
};
|
|
2038
1204
|
return response;
|
|
2039
1205
|
}, "de_DescribeDatasetImportJobCommand");
|
|
2040
|
-
var de_DescribeDatasetImportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2041
|
-
const parsedOutput = {
|
|
2042
|
-
...output,
|
|
2043
|
-
body: await parseErrorBody(output.body, context)
|
|
2044
|
-
};
|
|
2045
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2046
|
-
switch (errorCode) {
|
|
2047
|
-
case "InvalidInputException":
|
|
2048
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2049
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2050
|
-
case "ResourceNotFoundException":
|
|
2051
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2052
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2053
|
-
default:
|
|
2054
|
-
const parsedBody = parsedOutput.body;
|
|
2055
|
-
return throwDefaultError({
|
|
2056
|
-
output,
|
|
2057
|
-
parsedBody,
|
|
2058
|
-
errorCode
|
|
2059
|
-
});
|
|
2060
|
-
}
|
|
2061
|
-
}, "de_DescribeDatasetImportJobCommandError");
|
|
2062
1206
|
var de_DescribeEventTrackerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2063
1207
|
if (output.statusCode >= 300) {
|
|
2064
|
-
return
|
|
1208
|
+
return de_CommandError(output, context);
|
|
2065
1209
|
}
|
|
2066
1210
|
const data = await parseBody(output.body, context);
|
|
2067
1211
|
let contents = {};
|
|
@@ -2072,31 +1216,9 @@ var de_DescribeEventTrackerCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2072
1216
|
};
|
|
2073
1217
|
return response;
|
|
2074
1218
|
}, "de_DescribeEventTrackerCommand");
|
|
2075
|
-
var de_DescribeEventTrackerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2076
|
-
const parsedOutput = {
|
|
2077
|
-
...output,
|
|
2078
|
-
body: await parseErrorBody(output.body, context)
|
|
2079
|
-
};
|
|
2080
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2081
|
-
switch (errorCode) {
|
|
2082
|
-
case "InvalidInputException":
|
|
2083
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2084
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2085
|
-
case "ResourceNotFoundException":
|
|
2086
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2087
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2088
|
-
default:
|
|
2089
|
-
const parsedBody = parsedOutput.body;
|
|
2090
|
-
return throwDefaultError({
|
|
2091
|
-
output,
|
|
2092
|
-
parsedBody,
|
|
2093
|
-
errorCode
|
|
2094
|
-
});
|
|
2095
|
-
}
|
|
2096
|
-
}, "de_DescribeEventTrackerCommandError");
|
|
2097
1219
|
var de_DescribeFeatureTransformationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2098
1220
|
if (output.statusCode >= 300) {
|
|
2099
|
-
return
|
|
1221
|
+
return de_CommandError(output, context);
|
|
2100
1222
|
}
|
|
2101
1223
|
const data = await parseBody(output.body, context);
|
|
2102
1224
|
let contents = {};
|
|
@@ -2107,31 +1229,9 @@ var de_DescribeFeatureTransformationCommand = /* @__PURE__ */ __name(async (outp
|
|
|
2107
1229
|
};
|
|
2108
1230
|
return response;
|
|
2109
1231
|
}, "de_DescribeFeatureTransformationCommand");
|
|
2110
|
-
var de_DescribeFeatureTransformationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2111
|
-
const parsedOutput = {
|
|
2112
|
-
...output,
|
|
2113
|
-
body: await parseErrorBody(output.body, context)
|
|
2114
|
-
};
|
|
2115
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2116
|
-
switch (errorCode) {
|
|
2117
|
-
case "InvalidInputException":
|
|
2118
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2119
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2120
|
-
case "ResourceNotFoundException":
|
|
2121
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2122
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2123
|
-
default:
|
|
2124
|
-
const parsedBody = parsedOutput.body;
|
|
2125
|
-
return throwDefaultError({
|
|
2126
|
-
output,
|
|
2127
|
-
parsedBody,
|
|
2128
|
-
errorCode
|
|
2129
|
-
});
|
|
2130
|
-
}
|
|
2131
|
-
}, "de_DescribeFeatureTransformationCommandError");
|
|
2132
1232
|
var de_DescribeFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2133
1233
|
if (output.statusCode >= 300) {
|
|
2134
|
-
return
|
|
1234
|
+
return de_CommandError(output, context);
|
|
2135
1235
|
}
|
|
2136
1236
|
const data = await parseBody(output.body, context);
|
|
2137
1237
|
let contents = {};
|
|
@@ -2140,33 +1240,11 @@ var de_DescribeFilterCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2140
1240
|
$metadata: deserializeMetadata(output),
|
|
2141
1241
|
...contents
|
|
2142
1242
|
};
|
|
2143
|
-
return response;
|
|
2144
|
-
}, "de_DescribeFilterCommand");
|
|
2145
|
-
var de_DescribeFilterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2146
|
-
const parsedOutput = {
|
|
2147
|
-
...output,
|
|
2148
|
-
body: await parseErrorBody(output.body, context)
|
|
2149
|
-
};
|
|
2150
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2151
|
-
switch (errorCode) {
|
|
2152
|
-
case "InvalidInputException":
|
|
2153
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2154
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2155
|
-
case "ResourceNotFoundException":
|
|
2156
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2157
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2158
|
-
default:
|
|
2159
|
-
const parsedBody = parsedOutput.body;
|
|
2160
|
-
return throwDefaultError({
|
|
2161
|
-
output,
|
|
2162
|
-
parsedBody,
|
|
2163
|
-
errorCode
|
|
2164
|
-
});
|
|
2165
|
-
}
|
|
2166
|
-
}, "de_DescribeFilterCommandError");
|
|
1243
|
+
return response;
|
|
1244
|
+
}, "de_DescribeFilterCommand");
|
|
2167
1245
|
var de_DescribeMetricAttributionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2168
1246
|
if (output.statusCode >= 300) {
|
|
2169
|
-
return
|
|
1247
|
+
return de_CommandError(output, context);
|
|
2170
1248
|
}
|
|
2171
1249
|
const data = await parseBody(output.body, context);
|
|
2172
1250
|
let contents = {};
|
|
@@ -2177,31 +1255,9 @@ var de_DescribeMetricAttributionCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2177
1255
|
};
|
|
2178
1256
|
return response;
|
|
2179
1257
|
}, "de_DescribeMetricAttributionCommand");
|
|
2180
|
-
var de_DescribeMetricAttributionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2181
|
-
const parsedOutput = {
|
|
2182
|
-
...output,
|
|
2183
|
-
body: await parseErrorBody(output.body, context)
|
|
2184
|
-
};
|
|
2185
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2186
|
-
switch (errorCode) {
|
|
2187
|
-
case "InvalidInputException":
|
|
2188
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2189
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2190
|
-
case "ResourceNotFoundException":
|
|
2191
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2192
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2193
|
-
default:
|
|
2194
|
-
const parsedBody = parsedOutput.body;
|
|
2195
|
-
return throwDefaultError({
|
|
2196
|
-
output,
|
|
2197
|
-
parsedBody,
|
|
2198
|
-
errorCode
|
|
2199
|
-
});
|
|
2200
|
-
}
|
|
2201
|
-
}, "de_DescribeMetricAttributionCommandError");
|
|
2202
1258
|
var de_DescribeRecipeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2203
1259
|
if (output.statusCode >= 300) {
|
|
2204
|
-
return
|
|
1260
|
+
return de_CommandError(output, context);
|
|
2205
1261
|
}
|
|
2206
1262
|
const data = await parseBody(output.body, context);
|
|
2207
1263
|
let contents = {};
|
|
@@ -2212,31 +1268,9 @@ var de_DescribeRecipeCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2212
1268
|
};
|
|
2213
1269
|
return response;
|
|
2214
1270
|
}, "de_DescribeRecipeCommand");
|
|
2215
|
-
var de_DescribeRecipeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2216
|
-
const parsedOutput = {
|
|
2217
|
-
...output,
|
|
2218
|
-
body: await parseErrorBody(output.body, context)
|
|
2219
|
-
};
|
|
2220
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2221
|
-
switch (errorCode) {
|
|
2222
|
-
case "InvalidInputException":
|
|
2223
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2224
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2225
|
-
case "ResourceNotFoundException":
|
|
2226
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2227
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2228
|
-
default:
|
|
2229
|
-
const parsedBody = parsedOutput.body;
|
|
2230
|
-
return throwDefaultError({
|
|
2231
|
-
output,
|
|
2232
|
-
parsedBody,
|
|
2233
|
-
errorCode
|
|
2234
|
-
});
|
|
2235
|
-
}
|
|
2236
|
-
}, "de_DescribeRecipeCommandError");
|
|
2237
1271
|
var de_DescribeRecommenderCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2238
1272
|
if (output.statusCode >= 300) {
|
|
2239
|
-
return
|
|
1273
|
+
return de_CommandError(output, context);
|
|
2240
1274
|
}
|
|
2241
1275
|
const data = await parseBody(output.body, context);
|
|
2242
1276
|
let contents = {};
|
|
@@ -2247,31 +1281,9 @@ var de_DescribeRecommenderCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2247
1281
|
};
|
|
2248
1282
|
return response;
|
|
2249
1283
|
}, "de_DescribeRecommenderCommand");
|
|
2250
|
-
var de_DescribeRecommenderCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2251
|
-
const parsedOutput = {
|
|
2252
|
-
...output,
|
|
2253
|
-
body: await parseErrorBody(output.body, context)
|
|
2254
|
-
};
|
|
2255
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2256
|
-
switch (errorCode) {
|
|
2257
|
-
case "InvalidInputException":
|
|
2258
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2259
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2260
|
-
case "ResourceNotFoundException":
|
|
2261
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2262
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2263
|
-
default:
|
|
2264
|
-
const parsedBody = parsedOutput.body;
|
|
2265
|
-
return throwDefaultError({
|
|
2266
|
-
output,
|
|
2267
|
-
parsedBody,
|
|
2268
|
-
errorCode
|
|
2269
|
-
});
|
|
2270
|
-
}
|
|
2271
|
-
}, "de_DescribeRecommenderCommandError");
|
|
2272
1284
|
var de_DescribeSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2273
1285
|
if (output.statusCode >= 300) {
|
|
2274
|
-
return
|
|
1286
|
+
return de_CommandError(output, context);
|
|
2275
1287
|
}
|
|
2276
1288
|
const data = await parseBody(output.body, context);
|
|
2277
1289
|
let contents = {};
|
|
@@ -2282,31 +1294,9 @@ var de_DescribeSchemaCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2282
1294
|
};
|
|
2283
1295
|
return response;
|
|
2284
1296
|
}, "de_DescribeSchemaCommand");
|
|
2285
|
-
var de_DescribeSchemaCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2286
|
-
const parsedOutput = {
|
|
2287
|
-
...output,
|
|
2288
|
-
body: await parseErrorBody(output.body, context)
|
|
2289
|
-
};
|
|
2290
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2291
|
-
switch (errorCode) {
|
|
2292
|
-
case "InvalidInputException":
|
|
2293
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2294
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2295
|
-
case "ResourceNotFoundException":
|
|
2296
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2297
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2298
|
-
default:
|
|
2299
|
-
const parsedBody = parsedOutput.body;
|
|
2300
|
-
return throwDefaultError({
|
|
2301
|
-
output,
|
|
2302
|
-
parsedBody,
|
|
2303
|
-
errorCode
|
|
2304
|
-
});
|
|
2305
|
-
}
|
|
2306
|
-
}, "de_DescribeSchemaCommandError");
|
|
2307
1297
|
var de_DescribeSolutionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2308
1298
|
if (output.statusCode >= 300) {
|
|
2309
|
-
return
|
|
1299
|
+
return de_CommandError(output, context);
|
|
2310
1300
|
}
|
|
2311
1301
|
const data = await parseBody(output.body, context);
|
|
2312
1302
|
let contents = {};
|
|
@@ -2317,31 +1307,9 @@ var de_DescribeSolutionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2317
1307
|
};
|
|
2318
1308
|
return response;
|
|
2319
1309
|
}, "de_DescribeSolutionCommand");
|
|
2320
|
-
var de_DescribeSolutionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2321
|
-
const parsedOutput = {
|
|
2322
|
-
...output,
|
|
2323
|
-
body: await parseErrorBody(output.body, context)
|
|
2324
|
-
};
|
|
2325
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2326
|
-
switch (errorCode) {
|
|
2327
|
-
case "InvalidInputException":
|
|
2328
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2329
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2330
|
-
case "ResourceNotFoundException":
|
|
2331
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2332
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2333
|
-
default:
|
|
2334
|
-
const parsedBody = parsedOutput.body;
|
|
2335
|
-
return throwDefaultError({
|
|
2336
|
-
output,
|
|
2337
|
-
parsedBody,
|
|
2338
|
-
errorCode
|
|
2339
|
-
});
|
|
2340
|
-
}
|
|
2341
|
-
}, "de_DescribeSolutionCommandError");
|
|
2342
1310
|
var de_DescribeSolutionVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2343
1311
|
if (output.statusCode >= 300) {
|
|
2344
|
-
return
|
|
1312
|
+
return de_CommandError(output, context);
|
|
2345
1313
|
}
|
|
2346
1314
|
const data = await parseBody(output.body, context);
|
|
2347
1315
|
let contents = {};
|
|
@@ -2352,31 +1320,9 @@ var de_DescribeSolutionVersionCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2352
1320
|
};
|
|
2353
1321
|
return response;
|
|
2354
1322
|
}, "de_DescribeSolutionVersionCommand");
|
|
2355
|
-
var de_DescribeSolutionVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2356
|
-
const parsedOutput = {
|
|
2357
|
-
...output,
|
|
2358
|
-
body: await parseErrorBody(output.body, context)
|
|
2359
|
-
};
|
|
2360
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2361
|
-
switch (errorCode) {
|
|
2362
|
-
case "InvalidInputException":
|
|
2363
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2364
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2365
|
-
case "ResourceNotFoundException":
|
|
2366
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2367
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2368
|
-
default:
|
|
2369
|
-
const parsedBody = parsedOutput.body;
|
|
2370
|
-
return throwDefaultError({
|
|
2371
|
-
output,
|
|
2372
|
-
parsedBody,
|
|
2373
|
-
errorCode
|
|
2374
|
-
});
|
|
2375
|
-
}
|
|
2376
|
-
}, "de_DescribeSolutionVersionCommandError");
|
|
2377
1323
|
var de_GetSolutionMetricsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2378
1324
|
if (output.statusCode >= 300) {
|
|
2379
|
-
return
|
|
1325
|
+
return de_CommandError(output, context);
|
|
2380
1326
|
}
|
|
2381
1327
|
const data = await parseBody(output.body, context);
|
|
2382
1328
|
let contents = {};
|
|
@@ -2387,34 +1333,9 @@ var de_GetSolutionMetricsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2387
1333
|
};
|
|
2388
1334
|
return response;
|
|
2389
1335
|
}, "de_GetSolutionMetricsCommand");
|
|
2390
|
-
var de_GetSolutionMetricsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2391
|
-
const parsedOutput = {
|
|
2392
|
-
...output,
|
|
2393
|
-
body: await parseErrorBody(output.body, context)
|
|
2394
|
-
};
|
|
2395
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2396
|
-
switch (errorCode) {
|
|
2397
|
-
case "InvalidInputException":
|
|
2398
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2399
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2400
|
-
case "ResourceInUseException":
|
|
2401
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
2402
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2403
|
-
case "ResourceNotFoundException":
|
|
2404
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2405
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2406
|
-
default:
|
|
2407
|
-
const parsedBody = parsedOutput.body;
|
|
2408
|
-
return throwDefaultError({
|
|
2409
|
-
output,
|
|
2410
|
-
parsedBody,
|
|
2411
|
-
errorCode
|
|
2412
|
-
});
|
|
2413
|
-
}
|
|
2414
|
-
}, "de_GetSolutionMetricsCommandError");
|
|
2415
1336
|
var de_ListBatchInferenceJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2416
1337
|
if (output.statusCode >= 300) {
|
|
2417
|
-
return
|
|
1338
|
+
return de_CommandError(output, context);
|
|
2418
1339
|
}
|
|
2419
1340
|
const data = await parseBody(output.body, context);
|
|
2420
1341
|
let contents = {};
|
|
@@ -2425,31 +1346,9 @@ var de_ListBatchInferenceJobsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2425
1346
|
};
|
|
2426
1347
|
return response;
|
|
2427
1348
|
}, "de_ListBatchInferenceJobsCommand");
|
|
2428
|
-
var de_ListBatchInferenceJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2429
|
-
const parsedOutput = {
|
|
2430
|
-
...output,
|
|
2431
|
-
body: await parseErrorBody(output.body, context)
|
|
2432
|
-
};
|
|
2433
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2434
|
-
switch (errorCode) {
|
|
2435
|
-
case "InvalidInputException":
|
|
2436
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2437
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2438
|
-
case "InvalidNextTokenException":
|
|
2439
|
-
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
2440
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2441
|
-
default:
|
|
2442
|
-
const parsedBody = parsedOutput.body;
|
|
2443
|
-
return throwDefaultError({
|
|
2444
|
-
output,
|
|
2445
|
-
parsedBody,
|
|
2446
|
-
errorCode
|
|
2447
|
-
});
|
|
2448
|
-
}
|
|
2449
|
-
}, "de_ListBatchInferenceJobsCommandError");
|
|
2450
1349
|
var de_ListBatchSegmentJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2451
1350
|
if (output.statusCode >= 300) {
|
|
2452
|
-
return
|
|
1351
|
+
return de_CommandError(output, context);
|
|
2453
1352
|
}
|
|
2454
1353
|
const data = await parseBody(output.body, context);
|
|
2455
1354
|
let contents = {};
|
|
@@ -2460,31 +1359,9 @@ var de_ListBatchSegmentJobsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2460
1359
|
};
|
|
2461
1360
|
return response;
|
|
2462
1361
|
}, "de_ListBatchSegmentJobsCommand");
|
|
2463
|
-
var de_ListBatchSegmentJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2464
|
-
const parsedOutput = {
|
|
2465
|
-
...output,
|
|
2466
|
-
body: await parseErrorBody(output.body, context)
|
|
2467
|
-
};
|
|
2468
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2469
|
-
switch (errorCode) {
|
|
2470
|
-
case "InvalidInputException":
|
|
2471
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2472
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2473
|
-
case "InvalidNextTokenException":
|
|
2474
|
-
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
2475
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2476
|
-
default:
|
|
2477
|
-
const parsedBody = parsedOutput.body;
|
|
2478
|
-
return throwDefaultError({
|
|
2479
|
-
output,
|
|
2480
|
-
parsedBody,
|
|
2481
|
-
errorCode
|
|
2482
|
-
});
|
|
2483
|
-
}
|
|
2484
|
-
}, "de_ListBatchSegmentJobsCommandError");
|
|
2485
1362
|
var de_ListCampaignsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2486
1363
|
if (output.statusCode >= 300) {
|
|
2487
|
-
return
|
|
1364
|
+
return de_CommandError(output, context);
|
|
2488
1365
|
}
|
|
2489
1366
|
const data = await parseBody(output.body, context);
|
|
2490
1367
|
let contents = {};
|
|
@@ -2495,31 +1372,9 @@ var de_ListCampaignsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2495
1372
|
};
|
|
2496
1373
|
return response;
|
|
2497
1374
|
}, "de_ListCampaignsCommand");
|
|
2498
|
-
var de_ListCampaignsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2499
|
-
const parsedOutput = {
|
|
2500
|
-
...output,
|
|
2501
|
-
body: await parseErrorBody(output.body, context)
|
|
2502
|
-
};
|
|
2503
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2504
|
-
switch (errorCode) {
|
|
2505
|
-
case "InvalidInputException":
|
|
2506
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2507
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2508
|
-
case "InvalidNextTokenException":
|
|
2509
|
-
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
2510
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2511
|
-
default:
|
|
2512
|
-
const parsedBody = parsedOutput.body;
|
|
2513
|
-
return throwDefaultError({
|
|
2514
|
-
output,
|
|
2515
|
-
parsedBody,
|
|
2516
|
-
errorCode
|
|
2517
|
-
});
|
|
2518
|
-
}
|
|
2519
|
-
}, "de_ListCampaignsCommandError");
|
|
2520
1375
|
var de_ListDatasetExportJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2521
1376
|
if (output.statusCode >= 300) {
|
|
2522
|
-
return
|
|
1377
|
+
return de_CommandError(output, context);
|
|
2523
1378
|
}
|
|
2524
1379
|
const data = await parseBody(output.body, context);
|
|
2525
1380
|
let contents = {};
|
|
@@ -2527,66 +1382,25 @@ var de_ListDatasetExportJobsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2527
1382
|
const response = {
|
|
2528
1383
|
$metadata: deserializeMetadata(output),
|
|
2529
1384
|
...contents
|
|
2530
|
-
};
|
|
2531
|
-
return response;
|
|
2532
|
-
}, "de_ListDatasetExportJobsCommand");
|
|
2533
|
-
var
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
body: await parseErrorBody(output.body, context)
|
|
2537
|
-
};
|
|
2538
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2539
|
-
switch (errorCode) {
|
|
2540
|
-
case "InvalidInputException":
|
|
2541
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2542
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2543
|
-
case "InvalidNextTokenException":
|
|
2544
|
-
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
2545
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2546
|
-
default:
|
|
2547
|
-
const parsedBody = parsedOutput.body;
|
|
2548
|
-
return throwDefaultError({
|
|
2549
|
-
output,
|
|
2550
|
-
parsedBody,
|
|
2551
|
-
errorCode
|
|
2552
|
-
});
|
|
2553
|
-
}
|
|
2554
|
-
}, "de_ListDatasetExportJobsCommandError");
|
|
2555
|
-
var de_ListDatasetGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2556
|
-
if (output.statusCode >= 300) {
|
|
2557
|
-
return de_ListDatasetGroupsCommandError(output, context);
|
|
2558
|
-
}
|
|
2559
|
-
const data = await parseBody(output.body, context);
|
|
2560
|
-
let contents = {};
|
|
2561
|
-
contents = de_ListDatasetGroupsResponse(data, context);
|
|
2562
|
-
const response = {
|
|
2563
|
-
$metadata: deserializeMetadata(output),
|
|
2564
|
-
...contents
|
|
2565
|
-
};
|
|
2566
|
-
return response;
|
|
2567
|
-
}, "de_ListDatasetGroupsCommand");
|
|
2568
|
-
var de_ListDatasetGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2569
|
-
const parsedOutput = {
|
|
2570
|
-
...output,
|
|
2571
|
-
body: await parseErrorBody(output.body, context)
|
|
2572
|
-
};
|
|
2573
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2574
|
-
switch (errorCode) {
|
|
2575
|
-
case "InvalidNextTokenException":
|
|
2576
|
-
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
2577
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2578
|
-
default:
|
|
2579
|
-
const parsedBody = parsedOutput.body;
|
|
2580
|
-
return throwDefaultError({
|
|
2581
|
-
output,
|
|
2582
|
-
parsedBody,
|
|
2583
|
-
errorCode
|
|
2584
|
-
});
|
|
1385
|
+
};
|
|
1386
|
+
return response;
|
|
1387
|
+
}, "de_ListDatasetExportJobsCommand");
|
|
1388
|
+
var de_ListDatasetGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1389
|
+
if (output.statusCode >= 300) {
|
|
1390
|
+
return de_CommandError(output, context);
|
|
2585
1391
|
}
|
|
2586
|
-
|
|
1392
|
+
const data = await parseBody(output.body, context);
|
|
1393
|
+
let contents = {};
|
|
1394
|
+
contents = de_ListDatasetGroupsResponse(data, context);
|
|
1395
|
+
const response = {
|
|
1396
|
+
$metadata: deserializeMetadata(output),
|
|
1397
|
+
...contents
|
|
1398
|
+
};
|
|
1399
|
+
return response;
|
|
1400
|
+
}, "de_ListDatasetGroupsCommand");
|
|
2587
1401
|
var de_ListDatasetImportJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2588
1402
|
if (output.statusCode >= 300) {
|
|
2589
|
-
return
|
|
1403
|
+
return de_CommandError(output, context);
|
|
2590
1404
|
}
|
|
2591
1405
|
const data = await parseBody(output.body, context);
|
|
2592
1406
|
let contents = {};
|
|
@@ -2597,31 +1411,9 @@ var de_ListDatasetImportJobsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2597
1411
|
};
|
|
2598
1412
|
return response;
|
|
2599
1413
|
}, "de_ListDatasetImportJobsCommand");
|
|
2600
|
-
var de_ListDatasetImportJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2601
|
-
const parsedOutput = {
|
|
2602
|
-
...output,
|
|
2603
|
-
body: await parseErrorBody(output.body, context)
|
|
2604
|
-
};
|
|
2605
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2606
|
-
switch (errorCode) {
|
|
2607
|
-
case "InvalidInputException":
|
|
2608
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2609
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2610
|
-
case "InvalidNextTokenException":
|
|
2611
|
-
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
2612
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2613
|
-
default:
|
|
2614
|
-
const parsedBody = parsedOutput.body;
|
|
2615
|
-
return throwDefaultError({
|
|
2616
|
-
output,
|
|
2617
|
-
parsedBody,
|
|
2618
|
-
errorCode
|
|
2619
|
-
});
|
|
2620
|
-
}
|
|
2621
|
-
}, "de_ListDatasetImportJobsCommandError");
|
|
2622
1414
|
var de_ListDatasetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2623
1415
|
if (output.statusCode >= 300) {
|
|
2624
|
-
return
|
|
1416
|
+
return de_CommandError(output, context);
|
|
2625
1417
|
}
|
|
2626
1418
|
const data = await parseBody(output.body, context);
|
|
2627
1419
|
let contents = {};
|
|
@@ -2632,31 +1424,9 @@ var de_ListDatasetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2632
1424
|
};
|
|
2633
1425
|
return response;
|
|
2634
1426
|
}, "de_ListDatasetsCommand");
|
|
2635
|
-
var de_ListDatasetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2636
|
-
const parsedOutput = {
|
|
2637
|
-
...output,
|
|
2638
|
-
body: await parseErrorBody(output.body, context)
|
|
2639
|
-
};
|
|
2640
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2641
|
-
switch (errorCode) {
|
|
2642
|
-
case "InvalidInputException":
|
|
2643
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2644
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2645
|
-
case "InvalidNextTokenException":
|
|
2646
|
-
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
2647
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2648
|
-
default:
|
|
2649
|
-
const parsedBody = parsedOutput.body;
|
|
2650
|
-
return throwDefaultError({
|
|
2651
|
-
output,
|
|
2652
|
-
parsedBody,
|
|
2653
|
-
errorCode
|
|
2654
|
-
});
|
|
2655
|
-
}
|
|
2656
|
-
}, "de_ListDatasetsCommandError");
|
|
2657
1427
|
var de_ListEventTrackersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2658
1428
|
if (output.statusCode >= 300) {
|
|
2659
|
-
return
|
|
1429
|
+
return de_CommandError(output, context);
|
|
2660
1430
|
}
|
|
2661
1431
|
const data = await parseBody(output.body, context);
|
|
2662
1432
|
let contents = {};
|
|
@@ -2667,31 +1437,9 @@ var de_ListEventTrackersCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2667
1437
|
};
|
|
2668
1438
|
return response;
|
|
2669
1439
|
}, "de_ListEventTrackersCommand");
|
|
2670
|
-
var de_ListEventTrackersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2671
|
-
const parsedOutput = {
|
|
2672
|
-
...output,
|
|
2673
|
-
body: await parseErrorBody(output.body, context)
|
|
2674
|
-
};
|
|
2675
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2676
|
-
switch (errorCode) {
|
|
2677
|
-
case "InvalidInputException":
|
|
2678
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2679
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2680
|
-
case "InvalidNextTokenException":
|
|
2681
|
-
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
2682
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2683
|
-
default:
|
|
2684
|
-
const parsedBody = parsedOutput.body;
|
|
2685
|
-
return throwDefaultError({
|
|
2686
|
-
output,
|
|
2687
|
-
parsedBody,
|
|
2688
|
-
errorCode
|
|
2689
|
-
});
|
|
2690
|
-
}
|
|
2691
|
-
}, "de_ListEventTrackersCommandError");
|
|
2692
1440
|
var de_ListFiltersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2693
1441
|
if (output.statusCode >= 300) {
|
|
2694
|
-
return
|
|
1442
|
+
return de_CommandError(output, context);
|
|
2695
1443
|
}
|
|
2696
1444
|
const data = await parseBody(output.body, context);
|
|
2697
1445
|
let contents = {};
|
|
@@ -2702,31 +1450,9 @@ var de_ListFiltersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2702
1450
|
};
|
|
2703
1451
|
return response;
|
|
2704
1452
|
}, "de_ListFiltersCommand");
|
|
2705
|
-
var de_ListFiltersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2706
|
-
const parsedOutput = {
|
|
2707
|
-
...output,
|
|
2708
|
-
body: await parseErrorBody(output.body, context)
|
|
2709
|
-
};
|
|
2710
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2711
|
-
switch (errorCode) {
|
|
2712
|
-
case "InvalidInputException":
|
|
2713
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2714
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2715
|
-
case "InvalidNextTokenException":
|
|
2716
|
-
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
2717
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2718
|
-
default:
|
|
2719
|
-
const parsedBody = parsedOutput.body;
|
|
2720
|
-
return throwDefaultError({
|
|
2721
|
-
output,
|
|
2722
|
-
parsedBody,
|
|
2723
|
-
errorCode
|
|
2724
|
-
});
|
|
2725
|
-
}
|
|
2726
|
-
}, "de_ListFiltersCommandError");
|
|
2727
1453
|
var de_ListMetricAttributionMetricsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2728
1454
|
if (output.statusCode >= 300) {
|
|
2729
|
-
return
|
|
1455
|
+
return de_CommandError(output, context);
|
|
2730
1456
|
}
|
|
2731
1457
|
const data = await parseBody(output.body, context);
|
|
2732
1458
|
let contents = {};
|
|
@@ -2737,31 +1463,9 @@ var de_ListMetricAttributionMetricsCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
2737
1463
|
};
|
|
2738
1464
|
return response;
|
|
2739
1465
|
}, "de_ListMetricAttributionMetricsCommand");
|
|
2740
|
-
var de_ListMetricAttributionMetricsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2741
|
-
const parsedOutput = {
|
|
2742
|
-
...output,
|
|
2743
|
-
body: await parseErrorBody(output.body, context)
|
|
2744
|
-
};
|
|
2745
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2746
|
-
switch (errorCode) {
|
|
2747
|
-
case "InvalidInputException":
|
|
2748
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2749
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2750
|
-
case "InvalidNextTokenException":
|
|
2751
|
-
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
2752
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2753
|
-
default:
|
|
2754
|
-
const parsedBody = parsedOutput.body;
|
|
2755
|
-
return throwDefaultError({
|
|
2756
|
-
output,
|
|
2757
|
-
parsedBody,
|
|
2758
|
-
errorCode
|
|
2759
|
-
});
|
|
2760
|
-
}
|
|
2761
|
-
}, "de_ListMetricAttributionMetricsCommandError");
|
|
2762
1466
|
var de_ListMetricAttributionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2763
1467
|
if (output.statusCode >= 300) {
|
|
2764
|
-
return
|
|
1468
|
+
return de_CommandError(output, context);
|
|
2765
1469
|
}
|
|
2766
1470
|
const data = await parseBody(output.body, context);
|
|
2767
1471
|
let contents = {};
|
|
@@ -2772,31 +1476,9 @@ var de_ListMetricAttributionsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2772
1476
|
};
|
|
2773
1477
|
return response;
|
|
2774
1478
|
}, "de_ListMetricAttributionsCommand");
|
|
2775
|
-
var de_ListMetricAttributionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2776
|
-
const parsedOutput = {
|
|
2777
|
-
...output,
|
|
2778
|
-
body: await parseErrorBody(output.body, context)
|
|
2779
|
-
};
|
|
2780
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2781
|
-
switch (errorCode) {
|
|
2782
|
-
case "InvalidInputException":
|
|
2783
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2784
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2785
|
-
case "InvalidNextTokenException":
|
|
2786
|
-
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
2787
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2788
|
-
default:
|
|
2789
|
-
const parsedBody = parsedOutput.body;
|
|
2790
|
-
return throwDefaultError({
|
|
2791
|
-
output,
|
|
2792
|
-
parsedBody,
|
|
2793
|
-
errorCode
|
|
2794
|
-
});
|
|
2795
|
-
}
|
|
2796
|
-
}, "de_ListMetricAttributionsCommandError");
|
|
2797
1479
|
var de_ListRecipesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2798
1480
|
if (output.statusCode >= 300) {
|
|
2799
|
-
return
|
|
1481
|
+
return de_CommandError(output, context);
|
|
2800
1482
|
}
|
|
2801
1483
|
const data = await parseBody(output.body, context);
|
|
2802
1484
|
let contents = {};
|
|
@@ -2807,31 +1489,9 @@ var de_ListRecipesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2807
1489
|
};
|
|
2808
1490
|
return response;
|
|
2809
1491
|
}, "de_ListRecipesCommand");
|
|
2810
|
-
var de_ListRecipesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2811
|
-
const parsedOutput = {
|
|
2812
|
-
...output,
|
|
2813
|
-
body: await parseErrorBody(output.body, context)
|
|
2814
|
-
};
|
|
2815
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2816
|
-
switch (errorCode) {
|
|
2817
|
-
case "InvalidInputException":
|
|
2818
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2819
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2820
|
-
case "InvalidNextTokenException":
|
|
2821
|
-
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
2822
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2823
|
-
default:
|
|
2824
|
-
const parsedBody = parsedOutput.body;
|
|
2825
|
-
return throwDefaultError({
|
|
2826
|
-
output,
|
|
2827
|
-
parsedBody,
|
|
2828
|
-
errorCode
|
|
2829
|
-
});
|
|
2830
|
-
}
|
|
2831
|
-
}, "de_ListRecipesCommandError");
|
|
2832
1492
|
var de_ListRecommendersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2833
1493
|
if (output.statusCode >= 300) {
|
|
2834
|
-
return
|
|
1494
|
+
return de_CommandError(output, context);
|
|
2835
1495
|
}
|
|
2836
1496
|
const data = await parseBody(output.body, context);
|
|
2837
1497
|
let contents = {};
|
|
@@ -2842,31 +1502,9 @@ var de_ListRecommendersCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2842
1502
|
};
|
|
2843
1503
|
return response;
|
|
2844
1504
|
}, "de_ListRecommendersCommand");
|
|
2845
|
-
var de_ListRecommendersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2846
|
-
const parsedOutput = {
|
|
2847
|
-
...output,
|
|
2848
|
-
body: await parseErrorBody(output.body, context)
|
|
2849
|
-
};
|
|
2850
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2851
|
-
switch (errorCode) {
|
|
2852
|
-
case "InvalidInputException":
|
|
2853
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2854
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2855
|
-
case "InvalidNextTokenException":
|
|
2856
|
-
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
2857
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2858
|
-
default:
|
|
2859
|
-
const parsedBody = parsedOutput.body;
|
|
2860
|
-
return throwDefaultError({
|
|
2861
|
-
output,
|
|
2862
|
-
parsedBody,
|
|
2863
|
-
errorCode
|
|
2864
|
-
});
|
|
2865
|
-
}
|
|
2866
|
-
}, "de_ListRecommendersCommandError");
|
|
2867
1505
|
var de_ListSchemasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2868
1506
|
if (output.statusCode >= 300) {
|
|
2869
|
-
return
|
|
1507
|
+
return de_CommandError(output, context);
|
|
2870
1508
|
}
|
|
2871
1509
|
const data = await parseBody(output.body, context);
|
|
2872
1510
|
let contents = {};
|
|
@@ -2877,101 +1515,35 @@ var de_ListSchemasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2877
1515
|
};
|
|
2878
1516
|
return response;
|
|
2879
1517
|
}, "de_ListSchemasCommand");
|
|
2880
|
-
var de_ListSchemasCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2881
|
-
const parsedOutput = {
|
|
2882
|
-
...output,
|
|
2883
|
-
body: await parseErrorBody(output.body, context)
|
|
2884
|
-
};
|
|
2885
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2886
|
-
switch (errorCode) {
|
|
2887
|
-
case "InvalidNextTokenException":
|
|
2888
|
-
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
2889
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2890
|
-
default:
|
|
2891
|
-
const parsedBody = parsedOutput.body;
|
|
2892
|
-
return throwDefaultError({
|
|
2893
|
-
output,
|
|
2894
|
-
parsedBody,
|
|
2895
|
-
errorCode
|
|
2896
|
-
});
|
|
2897
|
-
}
|
|
2898
|
-
}, "de_ListSchemasCommandError");
|
|
2899
1518
|
var de_ListSolutionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2900
|
-
if (output.statusCode >= 300) {
|
|
2901
|
-
return
|
|
2902
|
-
}
|
|
2903
|
-
const data = await parseBody(output.body, context);
|
|
2904
|
-
let contents = {};
|
|
2905
|
-
contents = de_ListSolutionsResponse(data, context);
|
|
2906
|
-
const response = {
|
|
2907
|
-
$metadata: deserializeMetadata(output),
|
|
2908
|
-
...contents
|
|
2909
|
-
};
|
|
2910
|
-
return response;
|
|
2911
|
-
}, "de_ListSolutionsCommand");
|
|
2912
|
-
var
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
body: await parseErrorBody(output.body, context)
|
|
2916
|
-
};
|
|
2917
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2918
|
-
switch (errorCode) {
|
|
2919
|
-
case "InvalidInputException":
|
|
2920
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2921
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2922
|
-
case "InvalidNextTokenException":
|
|
2923
|
-
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
2924
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2925
|
-
default:
|
|
2926
|
-
const parsedBody = parsedOutput.body;
|
|
2927
|
-
return throwDefaultError({
|
|
2928
|
-
output,
|
|
2929
|
-
parsedBody,
|
|
2930
|
-
errorCode
|
|
2931
|
-
});
|
|
2932
|
-
}
|
|
2933
|
-
}, "de_ListSolutionsCommandError");
|
|
2934
|
-
var de_ListSolutionVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2935
|
-
if (output.statusCode >= 300) {
|
|
2936
|
-
return de_ListSolutionVersionsCommandError(output, context);
|
|
2937
|
-
}
|
|
2938
|
-
const data = await parseBody(output.body, context);
|
|
2939
|
-
let contents = {};
|
|
2940
|
-
contents = de_ListSolutionVersionsResponse(data, context);
|
|
2941
|
-
const response = {
|
|
2942
|
-
$metadata: deserializeMetadata(output),
|
|
2943
|
-
...contents
|
|
2944
|
-
};
|
|
2945
|
-
return response;
|
|
2946
|
-
}, "de_ListSolutionVersionsCommand");
|
|
2947
|
-
var de_ListSolutionVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2948
|
-
const parsedOutput = {
|
|
2949
|
-
...output,
|
|
2950
|
-
body: await parseErrorBody(output.body, context)
|
|
2951
|
-
};
|
|
2952
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2953
|
-
switch (errorCode) {
|
|
2954
|
-
case "InvalidInputException":
|
|
2955
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2956
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2957
|
-
case "InvalidNextTokenException":
|
|
2958
|
-
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
2959
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2960
|
-
case "ResourceNotFoundException":
|
|
2961
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2962
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2963
|
-
default:
|
|
2964
|
-
const parsedBody = parsedOutput.body;
|
|
2965
|
-
return throwDefaultError({
|
|
2966
|
-
output,
|
|
2967
|
-
parsedBody,
|
|
2968
|
-
errorCode
|
|
2969
|
-
});
|
|
1519
|
+
if (output.statusCode >= 300) {
|
|
1520
|
+
return de_CommandError(output, context);
|
|
1521
|
+
}
|
|
1522
|
+
const data = await parseBody(output.body, context);
|
|
1523
|
+
let contents = {};
|
|
1524
|
+
contents = de_ListSolutionsResponse(data, context);
|
|
1525
|
+
const response = {
|
|
1526
|
+
$metadata: deserializeMetadata(output),
|
|
1527
|
+
...contents
|
|
1528
|
+
};
|
|
1529
|
+
return response;
|
|
1530
|
+
}, "de_ListSolutionsCommand");
|
|
1531
|
+
var de_ListSolutionVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1532
|
+
if (output.statusCode >= 300) {
|
|
1533
|
+
return de_CommandError(output, context);
|
|
2970
1534
|
}
|
|
2971
|
-
|
|
1535
|
+
const data = await parseBody(output.body, context);
|
|
1536
|
+
let contents = {};
|
|
1537
|
+
contents = de_ListSolutionVersionsResponse(data, context);
|
|
1538
|
+
const response = {
|
|
1539
|
+
$metadata: deserializeMetadata(output),
|
|
1540
|
+
...contents
|
|
1541
|
+
};
|
|
1542
|
+
return response;
|
|
1543
|
+
}, "de_ListSolutionVersionsCommand");
|
|
2972
1544
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2973
1545
|
if (output.statusCode >= 300) {
|
|
2974
|
-
return
|
|
1546
|
+
return de_CommandError(output, context);
|
|
2975
1547
|
}
|
|
2976
1548
|
const data = await parseBody(output.body, context);
|
|
2977
1549
|
let contents = {};
|
|
@@ -2982,34 +1554,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2982
1554
|
};
|
|
2983
1555
|
return response;
|
|
2984
1556
|
}, "de_ListTagsForResourceCommand");
|
|
2985
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2986
|
-
const parsedOutput = {
|
|
2987
|
-
...output,
|
|
2988
|
-
body: await parseErrorBody(output.body, context)
|
|
2989
|
-
};
|
|
2990
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2991
|
-
switch (errorCode) {
|
|
2992
|
-
case "InvalidInputException":
|
|
2993
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
2994
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2995
|
-
case "ResourceInUseException":
|
|
2996
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
2997
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2998
|
-
case "ResourceNotFoundException":
|
|
2999
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
3000
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3001
|
-
default:
|
|
3002
|
-
const parsedBody = parsedOutput.body;
|
|
3003
|
-
return throwDefaultError({
|
|
3004
|
-
output,
|
|
3005
|
-
parsedBody,
|
|
3006
|
-
errorCode
|
|
3007
|
-
});
|
|
3008
|
-
}
|
|
3009
|
-
}, "de_ListTagsForResourceCommandError");
|
|
3010
1557
|
var de_StartRecommenderCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3011
1558
|
if (output.statusCode >= 300) {
|
|
3012
|
-
return
|
|
1559
|
+
return de_CommandError(output, context);
|
|
3013
1560
|
}
|
|
3014
1561
|
const data = await parseBody(output.body, context);
|
|
3015
1562
|
let contents = {};
|
|
@@ -3020,34 +1567,9 @@ var de_StartRecommenderCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3020
1567
|
};
|
|
3021
1568
|
return response;
|
|
3022
1569
|
}, "de_StartRecommenderCommand");
|
|
3023
|
-
var de_StartRecommenderCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3024
|
-
const parsedOutput = {
|
|
3025
|
-
...output,
|
|
3026
|
-
body: await parseErrorBody(output.body, context)
|
|
3027
|
-
};
|
|
3028
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3029
|
-
switch (errorCode) {
|
|
3030
|
-
case "InvalidInputException":
|
|
3031
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
3032
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3033
|
-
case "ResourceInUseException":
|
|
3034
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
3035
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
3036
|
-
case "ResourceNotFoundException":
|
|
3037
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
3038
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3039
|
-
default:
|
|
3040
|
-
const parsedBody = parsedOutput.body;
|
|
3041
|
-
return throwDefaultError({
|
|
3042
|
-
output,
|
|
3043
|
-
parsedBody,
|
|
3044
|
-
errorCode
|
|
3045
|
-
});
|
|
3046
|
-
}
|
|
3047
|
-
}, "de_StartRecommenderCommandError");
|
|
3048
1570
|
var de_StopRecommenderCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3049
1571
|
if (output.statusCode >= 300) {
|
|
3050
|
-
return
|
|
1572
|
+
return de_CommandError(output, context);
|
|
3051
1573
|
}
|
|
3052
1574
|
const data = await parseBody(output.body, context);
|
|
3053
1575
|
let contents = {};
|
|
@@ -3058,34 +1580,9 @@ var de_StopRecommenderCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3058
1580
|
};
|
|
3059
1581
|
return response;
|
|
3060
1582
|
}, "de_StopRecommenderCommand");
|
|
3061
|
-
var de_StopRecommenderCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3062
|
-
const parsedOutput = {
|
|
3063
|
-
...output,
|
|
3064
|
-
body: await parseErrorBody(output.body, context)
|
|
3065
|
-
};
|
|
3066
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3067
|
-
switch (errorCode) {
|
|
3068
|
-
case "InvalidInputException":
|
|
3069
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
3070
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3071
|
-
case "ResourceInUseException":
|
|
3072
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
3073
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
3074
|
-
case "ResourceNotFoundException":
|
|
3075
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
3076
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3077
|
-
default:
|
|
3078
|
-
const parsedBody = parsedOutput.body;
|
|
3079
|
-
return throwDefaultError({
|
|
3080
|
-
output,
|
|
3081
|
-
parsedBody,
|
|
3082
|
-
errorCode
|
|
3083
|
-
});
|
|
3084
|
-
}
|
|
3085
|
-
}, "de_StopRecommenderCommandError");
|
|
3086
1583
|
var de_StopSolutionVersionCreationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3087
1584
|
if (output.statusCode >= 300) {
|
|
3088
|
-
return
|
|
1585
|
+
return de_CommandError(output, context);
|
|
3089
1586
|
}
|
|
3090
1587
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3091
1588
|
const response = {
|
|
@@ -3093,34 +1590,9 @@ var de_StopSolutionVersionCreationCommand = /* @__PURE__ */ __name(async (output
|
|
|
3093
1590
|
};
|
|
3094
1591
|
return response;
|
|
3095
1592
|
}, "de_StopSolutionVersionCreationCommand");
|
|
3096
|
-
var de_StopSolutionVersionCreationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3097
|
-
const parsedOutput = {
|
|
3098
|
-
...output,
|
|
3099
|
-
body: await parseErrorBody(output.body, context)
|
|
3100
|
-
};
|
|
3101
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3102
|
-
switch (errorCode) {
|
|
3103
|
-
case "InvalidInputException":
|
|
3104
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
3105
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3106
|
-
case "ResourceInUseException":
|
|
3107
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
3108
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
3109
|
-
case "ResourceNotFoundException":
|
|
3110
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
3111
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3112
|
-
default:
|
|
3113
|
-
const parsedBody = parsedOutput.body;
|
|
3114
|
-
return throwDefaultError({
|
|
3115
|
-
output,
|
|
3116
|
-
parsedBody,
|
|
3117
|
-
errorCode
|
|
3118
|
-
});
|
|
3119
|
-
}
|
|
3120
|
-
}, "de_StopSolutionVersionCreationCommandError");
|
|
3121
1593
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3122
1594
|
if (output.statusCode >= 300) {
|
|
3123
|
-
return
|
|
1595
|
+
return de_CommandError(output, context);
|
|
3124
1596
|
}
|
|
3125
1597
|
const data = await parseBody(output.body, context);
|
|
3126
1598
|
let contents = {};
|
|
@@ -3131,40 +1603,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3131
1603
|
};
|
|
3132
1604
|
return response;
|
|
3133
1605
|
}, "de_TagResourceCommand");
|
|
3134
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3135
|
-
const parsedOutput = {
|
|
3136
|
-
...output,
|
|
3137
|
-
body: await parseErrorBody(output.body, context)
|
|
3138
|
-
};
|
|
3139
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3140
|
-
switch (errorCode) {
|
|
3141
|
-
case "InvalidInputException":
|
|
3142
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
3143
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3144
|
-
case "LimitExceededException":
|
|
3145
|
-
case "com.amazonaws.personalize#LimitExceededException":
|
|
3146
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3147
|
-
case "ResourceInUseException":
|
|
3148
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
3149
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
3150
|
-
case "ResourceNotFoundException":
|
|
3151
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
3152
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3153
|
-
case "TooManyTagsException":
|
|
3154
|
-
case "com.amazonaws.personalize#TooManyTagsException":
|
|
3155
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
3156
|
-
default:
|
|
3157
|
-
const parsedBody = parsedOutput.body;
|
|
3158
|
-
return throwDefaultError({
|
|
3159
|
-
output,
|
|
3160
|
-
parsedBody,
|
|
3161
|
-
errorCode
|
|
3162
|
-
});
|
|
3163
|
-
}
|
|
3164
|
-
}, "de_TagResourceCommandError");
|
|
3165
1606
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3166
1607
|
if (output.statusCode >= 300) {
|
|
3167
|
-
return
|
|
1608
|
+
return de_CommandError(output, context);
|
|
3168
1609
|
}
|
|
3169
1610
|
const data = await parseBody(output.body, context);
|
|
3170
1611
|
let contents = {};
|
|
@@ -3175,37 +1616,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3175
1616
|
};
|
|
3176
1617
|
return response;
|
|
3177
1618
|
}, "de_UntagResourceCommand");
|
|
3178
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3179
|
-
const parsedOutput = {
|
|
3180
|
-
...output,
|
|
3181
|
-
body: await parseErrorBody(output.body, context)
|
|
3182
|
-
};
|
|
3183
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3184
|
-
switch (errorCode) {
|
|
3185
|
-
case "InvalidInputException":
|
|
3186
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
3187
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3188
|
-
case "ResourceInUseException":
|
|
3189
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
3190
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
3191
|
-
case "ResourceNotFoundException":
|
|
3192
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
3193
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3194
|
-
case "TooManyTagKeysException":
|
|
3195
|
-
case "com.amazonaws.personalize#TooManyTagKeysException":
|
|
3196
|
-
throw await de_TooManyTagKeysExceptionRes(parsedOutput, context);
|
|
3197
|
-
default:
|
|
3198
|
-
const parsedBody = parsedOutput.body;
|
|
3199
|
-
return throwDefaultError({
|
|
3200
|
-
output,
|
|
3201
|
-
parsedBody,
|
|
3202
|
-
errorCode
|
|
3203
|
-
});
|
|
3204
|
-
}
|
|
3205
|
-
}, "de_UntagResourceCommandError");
|
|
3206
1619
|
var de_UpdateCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3207
1620
|
if (output.statusCode >= 300) {
|
|
3208
|
-
return
|
|
1621
|
+
return de_CommandError(output, context);
|
|
3209
1622
|
}
|
|
3210
1623
|
const data = await parseBody(output.body, context);
|
|
3211
1624
|
let contents = {};
|
|
@@ -3216,34 +1629,9 @@ var de_UpdateCampaignCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3216
1629
|
};
|
|
3217
1630
|
return response;
|
|
3218
1631
|
}, "de_UpdateCampaignCommand");
|
|
3219
|
-
var de_UpdateCampaignCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3220
|
-
const parsedOutput = {
|
|
3221
|
-
...output,
|
|
3222
|
-
body: await parseErrorBody(output.body, context)
|
|
3223
|
-
};
|
|
3224
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3225
|
-
switch (errorCode) {
|
|
3226
|
-
case "InvalidInputException":
|
|
3227
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
3228
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3229
|
-
case "ResourceInUseException":
|
|
3230
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
3231
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
3232
|
-
case "ResourceNotFoundException":
|
|
3233
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
3234
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3235
|
-
default:
|
|
3236
|
-
const parsedBody = parsedOutput.body;
|
|
3237
|
-
return throwDefaultError({
|
|
3238
|
-
output,
|
|
3239
|
-
parsedBody,
|
|
3240
|
-
errorCode
|
|
3241
|
-
});
|
|
3242
|
-
}
|
|
3243
|
-
}, "de_UpdateCampaignCommandError");
|
|
3244
1632
|
var de_UpdateDatasetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3245
1633
|
if (output.statusCode >= 300) {
|
|
3246
|
-
return
|
|
1634
|
+
return de_CommandError(output, context);
|
|
3247
1635
|
}
|
|
3248
1636
|
const data = await parseBody(output.body, context);
|
|
3249
1637
|
let contents = {};
|
|
@@ -3254,34 +1642,9 @@ var de_UpdateDatasetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3254
1642
|
};
|
|
3255
1643
|
return response;
|
|
3256
1644
|
}, "de_UpdateDatasetCommand");
|
|
3257
|
-
var de_UpdateDatasetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3258
|
-
const parsedOutput = {
|
|
3259
|
-
...output,
|
|
3260
|
-
body: await parseErrorBody(output.body, context)
|
|
3261
|
-
};
|
|
3262
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3263
|
-
switch (errorCode) {
|
|
3264
|
-
case "InvalidInputException":
|
|
3265
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
3266
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3267
|
-
case "ResourceInUseException":
|
|
3268
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
3269
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
3270
|
-
case "ResourceNotFoundException":
|
|
3271
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
3272
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3273
|
-
default:
|
|
3274
|
-
const parsedBody = parsedOutput.body;
|
|
3275
|
-
return throwDefaultError({
|
|
3276
|
-
output,
|
|
3277
|
-
parsedBody,
|
|
3278
|
-
errorCode
|
|
3279
|
-
});
|
|
3280
|
-
}
|
|
3281
|
-
}, "de_UpdateDatasetCommandError");
|
|
3282
1645
|
var de_UpdateMetricAttributionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3283
1646
|
if (output.statusCode >= 300) {
|
|
3284
|
-
return
|
|
1647
|
+
return de_CommandError(output, context);
|
|
3285
1648
|
}
|
|
3286
1649
|
const data = await parseBody(output.body, context);
|
|
3287
1650
|
let contents = {};
|
|
@@ -3292,37 +1655,9 @@ var de_UpdateMetricAttributionCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
3292
1655
|
};
|
|
3293
1656
|
return response;
|
|
3294
1657
|
}, "de_UpdateMetricAttributionCommand");
|
|
3295
|
-
var de_UpdateMetricAttributionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3296
|
-
const parsedOutput = {
|
|
3297
|
-
...output,
|
|
3298
|
-
body: await parseErrorBody(output.body, context)
|
|
3299
|
-
};
|
|
3300
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3301
|
-
switch (errorCode) {
|
|
3302
|
-
case "InvalidInputException":
|
|
3303
|
-
case "com.amazonaws.personalize#InvalidInputException":
|
|
3304
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3305
|
-
case "ResourceAlreadyExistsException":
|
|
3306
|
-
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
3307
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
3308
|
-
case "ResourceInUseException":
|
|
3309
|
-
case "com.amazonaws.personalize#ResourceInUseException":
|
|
3310
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
3311
|
-
case "ResourceNotFoundException":
|
|
3312
|
-
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
3313
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3314
|
-
default:
|
|
3315
|
-
const parsedBody = parsedOutput.body;
|
|
3316
|
-
return throwDefaultError({
|
|
3317
|
-
output,
|
|
3318
|
-
parsedBody,
|
|
3319
|
-
errorCode
|
|
3320
|
-
});
|
|
3321
|
-
}
|
|
3322
|
-
}, "de_UpdateMetricAttributionCommandError");
|
|
3323
1658
|
var de_UpdateRecommenderCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3324
1659
|
if (output.statusCode >= 300) {
|
|
3325
|
-
return
|
|
1660
|
+
return de_CommandError(output, context);
|
|
3326
1661
|
}
|
|
3327
1662
|
const data = await parseBody(output.body, context);
|
|
3328
1663
|
let contents = {};
|
|
@@ -3333,7 +1668,7 @@ var de_UpdateRecommenderCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3333
1668
|
};
|
|
3334
1669
|
return response;
|
|
3335
1670
|
}, "de_UpdateRecommenderCommand");
|
|
3336
|
-
var
|
|
1671
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3337
1672
|
const parsedOutput = {
|
|
3338
1673
|
...output,
|
|
3339
1674
|
body: await parseErrorBody(output.body, context)
|
|
@@ -3343,12 +1678,27 @@ var de_UpdateRecommenderCommandError = /* @__PURE__ */ __name(async (output, con
|
|
|
3343
1678
|
case "InvalidInputException":
|
|
3344
1679
|
case "com.amazonaws.personalize#InvalidInputException":
|
|
3345
1680
|
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1681
|
+
case "LimitExceededException":
|
|
1682
|
+
case "com.amazonaws.personalize#LimitExceededException":
|
|
1683
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1684
|
+
case "ResourceAlreadyExistsException":
|
|
1685
|
+
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
1686
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
3346
1687
|
case "ResourceInUseException":
|
|
3347
1688
|
case "com.amazonaws.personalize#ResourceInUseException":
|
|
3348
1689
|
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
3349
1690
|
case "ResourceNotFoundException":
|
|
3350
1691
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
3351
1692
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1693
|
+
case "TooManyTagsException":
|
|
1694
|
+
case "com.amazonaws.personalize#TooManyTagsException":
|
|
1695
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1696
|
+
case "InvalidNextTokenException":
|
|
1697
|
+
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
1698
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1699
|
+
case "TooManyTagKeysException":
|
|
1700
|
+
case "com.amazonaws.personalize#TooManyTagKeysException":
|
|
1701
|
+
throw await de_TooManyTagKeysExceptionRes(parsedOutput, context);
|
|
3352
1702
|
default:
|
|
3353
1703
|
const parsedBody = parsedOutput.body;
|
|
3354
1704
|
return throwDefaultError({
|
|
@@ -3357,7 +1707,7 @@ var de_UpdateRecommenderCommandError = /* @__PURE__ */ __name(async (output, con
|
|
|
3357
1707
|
errorCode
|
|
3358
1708
|
});
|
|
3359
1709
|
}
|
|
3360
|
-
}, "
|
|
1710
|
+
}, "de_CommandError");
|
|
3361
1711
|
var de_InvalidInputExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
3362
1712
|
const body = parsedOutput.body;
|
|
3363
1713
|
const deserialized = (0, import_smithy_client._json)(body);
|