@aws-sdk/client-personalize 3.141.0 → 3.150.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/CHANGELOG.md +28 -0
- package/dist-cjs/models/models_0.js +9 -4
- package/dist-cjs/protocols/Aws_json1_1.js +303 -501
- package/dist-es/models/models_0.js +5 -0
- package/dist-es/protocols/Aws_json1_1.js +484 -503
- package/dist-types/Personalize.d.ts +87 -77
- package/dist-types/commands/CreateDatasetCommand.d.ts +8 -6
- package/dist-types/commands/CreateDatasetExportJobCommand.d.ts +10 -13
- package/dist-types/commands/CreateDatasetGroupCommand.d.ts +20 -18
- package/dist-types/commands/CreateDatasetImportJobCommand.d.ts +20 -14
- package/dist-types/commands/DeleteDatasetCommand.d.ts +3 -2
- package/dist-types/commands/DeleteDatasetGroupCommand.d.ts +2 -2
- package/dist-types/commands/DescribeDatasetCommand.d.ts +2 -1
- package/dist-types/commands/DescribeDatasetExportJobCommand.d.ts +1 -2
- package/dist-types/commands/DescribeDatasetGroupCommand.d.ts +2 -1
- package/dist-types/commands/DescribeDatasetImportJobCommand.d.ts +1 -2
- package/dist-types/commands/ListDatasetExportJobsCommand.d.ts +6 -5
- package/dist-types/commands/ListDatasetGroupsCommand.d.ts +3 -3
- package/dist-types/commands/ListDatasetImportJobsCommand.d.ts +6 -5
- package/dist-types/commands/ListDatasetsCommand.d.ts +3 -3
- package/dist-types/models/models_0.d.ts +144 -72
- package/dist-types/ts3.4/models/models_0.d.ts +10 -0
- package/package.json +11 -6
|
@@ -626,7 +626,6 @@ const deserializeAws_json1_1CreateBatchInferenceJobCommandError = async (output,
|
|
|
626
626
|
...output,
|
|
627
627
|
body: await parseBody(output.body, context),
|
|
628
628
|
};
|
|
629
|
-
let response;
|
|
630
629
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
631
630
|
switch (errorCode) {
|
|
632
631
|
case "InvalidInputException":
|
|
@@ -649,14 +648,12 @@ const deserializeAws_json1_1CreateBatchInferenceJobCommandError = async (output,
|
|
|
649
648
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
650
649
|
default:
|
|
651
650
|
const parsedBody = parsedOutput.body;
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
$metadata,
|
|
651
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
652
|
+
output,
|
|
653
|
+
parsedBody,
|
|
654
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
655
|
+
errorCode,
|
|
658
656
|
});
|
|
659
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
660
657
|
}
|
|
661
658
|
};
|
|
662
659
|
const deserializeAws_json1_1CreateBatchSegmentJobCommand = async (output, context) => {
|
|
@@ -678,7 +675,6 @@ const deserializeAws_json1_1CreateBatchSegmentJobCommandError = async (output, c
|
|
|
678
675
|
...output,
|
|
679
676
|
body: await parseBody(output.body, context),
|
|
680
677
|
};
|
|
681
|
-
let response;
|
|
682
678
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
683
679
|
switch (errorCode) {
|
|
684
680
|
case "InvalidInputException":
|
|
@@ -701,14 +697,12 @@ const deserializeAws_json1_1CreateBatchSegmentJobCommandError = async (output, c
|
|
|
701
697
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
702
698
|
default:
|
|
703
699
|
const parsedBody = parsedOutput.body;
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
$metadata,
|
|
700
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
701
|
+
output,
|
|
702
|
+
parsedBody,
|
|
703
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
704
|
+
errorCode,
|
|
710
705
|
});
|
|
711
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
712
706
|
}
|
|
713
707
|
};
|
|
714
708
|
const deserializeAws_json1_1CreateCampaignCommand = async (output, context) => {
|
|
@@ -730,7 +724,6 @@ const deserializeAws_json1_1CreateCampaignCommandError = async (output, context)
|
|
|
730
724
|
...output,
|
|
731
725
|
body: await parseBody(output.body, context),
|
|
732
726
|
};
|
|
733
|
-
let response;
|
|
734
727
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
735
728
|
switch (errorCode) {
|
|
736
729
|
case "InvalidInputException":
|
|
@@ -753,14 +746,12 @@ const deserializeAws_json1_1CreateCampaignCommandError = async (output, context)
|
|
|
753
746
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
754
747
|
default:
|
|
755
748
|
const parsedBody = parsedOutput.body;
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
$metadata,
|
|
749
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
750
|
+
output,
|
|
751
|
+
parsedBody,
|
|
752
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
753
|
+
errorCode,
|
|
762
754
|
});
|
|
763
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
764
755
|
}
|
|
765
756
|
};
|
|
766
757
|
const deserializeAws_json1_1CreateDatasetCommand = async (output, context) => {
|
|
@@ -782,7 +773,6 @@ const deserializeAws_json1_1CreateDatasetCommandError = async (output, context)
|
|
|
782
773
|
...output,
|
|
783
774
|
body: await parseBody(output.body, context),
|
|
784
775
|
};
|
|
785
|
-
let response;
|
|
786
776
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
787
777
|
switch (errorCode) {
|
|
788
778
|
case "InvalidInputException":
|
|
@@ -805,14 +795,12 @@ const deserializeAws_json1_1CreateDatasetCommandError = async (output, context)
|
|
|
805
795
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
806
796
|
default:
|
|
807
797
|
const parsedBody = parsedOutput.body;
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
$metadata,
|
|
798
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
799
|
+
output,
|
|
800
|
+
parsedBody,
|
|
801
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
802
|
+
errorCode,
|
|
814
803
|
});
|
|
815
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
816
804
|
}
|
|
817
805
|
};
|
|
818
806
|
const deserializeAws_json1_1CreateDatasetExportJobCommand = async (output, context) => {
|
|
@@ -834,7 +822,6 @@ const deserializeAws_json1_1CreateDatasetExportJobCommandError = async (output,
|
|
|
834
822
|
...output,
|
|
835
823
|
body: await parseBody(output.body, context),
|
|
836
824
|
};
|
|
837
|
-
let response;
|
|
838
825
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
839
826
|
switch (errorCode) {
|
|
840
827
|
case "InvalidInputException":
|
|
@@ -857,14 +844,12 @@ const deserializeAws_json1_1CreateDatasetExportJobCommandError = async (output,
|
|
|
857
844
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
858
845
|
default:
|
|
859
846
|
const parsedBody = parsedOutput.body;
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
$metadata,
|
|
847
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
848
|
+
output,
|
|
849
|
+
parsedBody,
|
|
850
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
851
|
+
errorCode,
|
|
866
852
|
});
|
|
867
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
868
853
|
}
|
|
869
854
|
};
|
|
870
855
|
const deserializeAws_json1_1CreateDatasetGroupCommand = async (output, context) => {
|
|
@@ -886,7 +871,6 @@ const deserializeAws_json1_1CreateDatasetGroupCommandError = async (output, cont
|
|
|
886
871
|
...output,
|
|
887
872
|
body: await parseBody(output.body, context),
|
|
888
873
|
};
|
|
889
|
-
let response;
|
|
890
874
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
891
875
|
switch (errorCode) {
|
|
892
876
|
case "InvalidInputException":
|
|
@@ -903,14 +887,12 @@ const deserializeAws_json1_1CreateDatasetGroupCommandError = async (output, cont
|
|
|
903
887
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
904
888
|
default:
|
|
905
889
|
const parsedBody = parsedOutput.body;
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
$metadata,
|
|
890
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
891
|
+
output,
|
|
892
|
+
parsedBody,
|
|
893
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
894
|
+
errorCode,
|
|
912
895
|
});
|
|
913
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
914
896
|
}
|
|
915
897
|
};
|
|
916
898
|
const deserializeAws_json1_1CreateDatasetImportJobCommand = async (output, context) => {
|
|
@@ -932,7 +914,6 @@ const deserializeAws_json1_1CreateDatasetImportJobCommandError = async (output,
|
|
|
932
914
|
...output,
|
|
933
915
|
body: await parseBody(output.body, context),
|
|
934
916
|
};
|
|
935
|
-
let response;
|
|
936
917
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
937
918
|
switch (errorCode) {
|
|
938
919
|
case "InvalidInputException":
|
|
@@ -955,14 +936,12 @@ const deserializeAws_json1_1CreateDatasetImportJobCommandError = async (output,
|
|
|
955
936
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
956
937
|
default:
|
|
957
938
|
const parsedBody = parsedOutput.body;
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
$metadata,
|
|
939
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
940
|
+
output,
|
|
941
|
+
parsedBody,
|
|
942
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
943
|
+
errorCode,
|
|
964
944
|
});
|
|
965
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
966
945
|
}
|
|
967
946
|
};
|
|
968
947
|
const deserializeAws_json1_1CreateEventTrackerCommand = async (output, context) => {
|
|
@@ -984,7 +963,6 @@ const deserializeAws_json1_1CreateEventTrackerCommandError = async (output, cont
|
|
|
984
963
|
...output,
|
|
985
964
|
body: await parseBody(output.body, context),
|
|
986
965
|
};
|
|
987
|
-
let response;
|
|
988
966
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
989
967
|
switch (errorCode) {
|
|
990
968
|
case "InvalidInputException":
|
|
@@ -1007,14 +985,12 @@ const deserializeAws_json1_1CreateEventTrackerCommandError = async (output, cont
|
|
|
1007
985
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1008
986
|
default:
|
|
1009
987
|
const parsedBody = parsedOutput.body;
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
$metadata,
|
|
988
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
989
|
+
output,
|
|
990
|
+
parsedBody,
|
|
991
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
992
|
+
errorCode,
|
|
1016
993
|
});
|
|
1017
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1018
994
|
}
|
|
1019
995
|
};
|
|
1020
996
|
const deserializeAws_json1_1CreateFilterCommand = async (output, context) => {
|
|
@@ -1036,7 +1012,6 @@ const deserializeAws_json1_1CreateFilterCommandError = async (output, context) =
|
|
|
1036
1012
|
...output,
|
|
1037
1013
|
body: await parseBody(output.body, context),
|
|
1038
1014
|
};
|
|
1039
|
-
let response;
|
|
1040
1015
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1041
1016
|
switch (errorCode) {
|
|
1042
1017
|
case "InvalidInputException":
|
|
@@ -1056,14 +1031,12 @@ const deserializeAws_json1_1CreateFilterCommandError = async (output, context) =
|
|
|
1056
1031
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1057
1032
|
default:
|
|
1058
1033
|
const parsedBody = parsedOutput.body;
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
$metadata,
|
|
1034
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1035
|
+
output,
|
|
1036
|
+
parsedBody,
|
|
1037
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
1038
|
+
errorCode,
|
|
1065
1039
|
});
|
|
1066
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1067
1040
|
}
|
|
1068
1041
|
};
|
|
1069
1042
|
const deserializeAws_json1_1CreateRecommenderCommand = async (output, context) => {
|
|
@@ -1085,7 +1058,6 @@ const deserializeAws_json1_1CreateRecommenderCommandError = async (output, conte
|
|
|
1085
1058
|
...output,
|
|
1086
1059
|
body: await parseBody(output.body, context),
|
|
1087
1060
|
};
|
|
1088
|
-
let response;
|
|
1089
1061
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1090
1062
|
switch (errorCode) {
|
|
1091
1063
|
case "InvalidInputException":
|
|
@@ -1108,14 +1080,12 @@ const deserializeAws_json1_1CreateRecommenderCommandError = async (output, conte
|
|
|
1108
1080
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1109
1081
|
default:
|
|
1110
1082
|
const parsedBody = parsedOutput.body;
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
$metadata,
|
|
1083
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1084
|
+
output,
|
|
1085
|
+
parsedBody,
|
|
1086
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
1087
|
+
errorCode,
|
|
1117
1088
|
});
|
|
1118
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1119
1089
|
}
|
|
1120
1090
|
};
|
|
1121
1091
|
const deserializeAws_json1_1CreateSchemaCommand = async (output, context) => {
|
|
@@ -1137,7 +1107,6 @@ const deserializeAws_json1_1CreateSchemaCommandError = async (output, context) =
|
|
|
1137
1107
|
...output,
|
|
1138
1108
|
body: await parseBody(output.body, context),
|
|
1139
1109
|
};
|
|
1140
|
-
let response;
|
|
1141
1110
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1142
1111
|
switch (errorCode) {
|
|
1143
1112
|
case "InvalidInputException":
|
|
@@ -1151,14 +1120,12 @@ const deserializeAws_json1_1CreateSchemaCommandError = async (output, context) =
|
|
|
1151
1120
|
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1152
1121
|
default:
|
|
1153
1122
|
const parsedBody = parsedOutput.body;
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
$metadata,
|
|
1123
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1124
|
+
output,
|
|
1125
|
+
parsedBody,
|
|
1126
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
1127
|
+
errorCode,
|
|
1160
1128
|
});
|
|
1161
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1162
1129
|
}
|
|
1163
1130
|
};
|
|
1164
1131
|
const deserializeAws_json1_1CreateSolutionCommand = async (output, context) => {
|
|
@@ -1180,7 +1147,6 @@ const deserializeAws_json1_1CreateSolutionCommandError = async (output, context)
|
|
|
1180
1147
|
...output,
|
|
1181
1148
|
body: await parseBody(output.body, context),
|
|
1182
1149
|
};
|
|
1183
|
-
let response;
|
|
1184
1150
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1185
1151
|
switch (errorCode) {
|
|
1186
1152
|
case "InvalidInputException":
|
|
@@ -1203,14 +1169,12 @@ const deserializeAws_json1_1CreateSolutionCommandError = async (output, context)
|
|
|
1203
1169
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1204
1170
|
default:
|
|
1205
1171
|
const parsedBody = parsedOutput.body;
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
$metadata,
|
|
1172
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1173
|
+
output,
|
|
1174
|
+
parsedBody,
|
|
1175
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
1176
|
+
errorCode,
|
|
1212
1177
|
});
|
|
1213
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1214
1178
|
}
|
|
1215
1179
|
};
|
|
1216
1180
|
const deserializeAws_json1_1CreateSolutionVersionCommand = async (output, context) => {
|
|
@@ -1232,7 +1196,6 @@ const deserializeAws_json1_1CreateSolutionVersionCommandError = async (output, c
|
|
|
1232
1196
|
...output,
|
|
1233
1197
|
body: await parseBody(output.body, context),
|
|
1234
1198
|
};
|
|
1235
|
-
let response;
|
|
1236
1199
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1237
1200
|
switch (errorCode) {
|
|
1238
1201
|
case "InvalidInputException":
|
|
@@ -1252,14 +1215,12 @@ const deserializeAws_json1_1CreateSolutionVersionCommandError = async (output, c
|
|
|
1252
1215
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1253
1216
|
default:
|
|
1254
1217
|
const parsedBody = parsedOutput.body;
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
$metadata,
|
|
1218
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1219
|
+
output,
|
|
1220
|
+
parsedBody,
|
|
1221
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
1222
|
+
errorCode,
|
|
1261
1223
|
});
|
|
1262
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1263
1224
|
}
|
|
1264
1225
|
};
|
|
1265
1226
|
const deserializeAws_json1_1DeleteCampaignCommand = async (output, context) => {
|
|
@@ -1278,7 +1239,6 @@ const deserializeAws_json1_1DeleteCampaignCommandError = async (output, context)
|
|
|
1278
1239
|
...output,
|
|
1279
1240
|
body: await parseBody(output.body, context),
|
|
1280
1241
|
};
|
|
1281
|
-
let response;
|
|
1282
1242
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1283
1243
|
switch (errorCode) {
|
|
1284
1244
|
case "InvalidInputException":
|
|
@@ -1292,14 +1252,12 @@ const deserializeAws_json1_1DeleteCampaignCommandError = async (output, context)
|
|
|
1292
1252
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1293
1253
|
default:
|
|
1294
1254
|
const parsedBody = parsedOutput.body;
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
$metadata,
|
|
1255
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1256
|
+
output,
|
|
1257
|
+
parsedBody,
|
|
1258
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
1259
|
+
errorCode,
|
|
1301
1260
|
});
|
|
1302
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1303
1261
|
}
|
|
1304
1262
|
};
|
|
1305
1263
|
const deserializeAws_json1_1DeleteDatasetCommand = async (output, context) => {
|
|
@@ -1318,7 +1276,6 @@ const deserializeAws_json1_1DeleteDatasetCommandError = async (output, context)
|
|
|
1318
1276
|
...output,
|
|
1319
1277
|
body: await parseBody(output.body, context),
|
|
1320
1278
|
};
|
|
1321
|
-
let response;
|
|
1322
1279
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1323
1280
|
switch (errorCode) {
|
|
1324
1281
|
case "InvalidInputException":
|
|
@@ -1332,14 +1289,12 @@ const deserializeAws_json1_1DeleteDatasetCommandError = async (output, context)
|
|
|
1332
1289
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1333
1290
|
default:
|
|
1334
1291
|
const parsedBody = parsedOutput.body;
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
$metadata,
|
|
1292
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1293
|
+
output,
|
|
1294
|
+
parsedBody,
|
|
1295
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
1296
|
+
errorCode,
|
|
1341
1297
|
});
|
|
1342
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1343
1298
|
}
|
|
1344
1299
|
};
|
|
1345
1300
|
const deserializeAws_json1_1DeleteDatasetGroupCommand = async (output, context) => {
|
|
@@ -1358,7 +1313,6 @@ const deserializeAws_json1_1DeleteDatasetGroupCommandError = async (output, cont
|
|
|
1358
1313
|
...output,
|
|
1359
1314
|
body: await parseBody(output.body, context),
|
|
1360
1315
|
};
|
|
1361
|
-
let response;
|
|
1362
1316
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1363
1317
|
switch (errorCode) {
|
|
1364
1318
|
case "InvalidInputException":
|
|
@@ -1372,14 +1326,12 @@ const deserializeAws_json1_1DeleteDatasetGroupCommandError = async (output, cont
|
|
|
1372
1326
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1373
1327
|
default:
|
|
1374
1328
|
const parsedBody = parsedOutput.body;
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
$metadata,
|
|
1329
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1330
|
+
output,
|
|
1331
|
+
parsedBody,
|
|
1332
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
1333
|
+
errorCode,
|
|
1381
1334
|
});
|
|
1382
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1383
1335
|
}
|
|
1384
1336
|
};
|
|
1385
1337
|
const deserializeAws_json1_1DeleteEventTrackerCommand = async (output, context) => {
|
|
@@ -1398,7 +1350,6 @@ const deserializeAws_json1_1DeleteEventTrackerCommandError = async (output, cont
|
|
|
1398
1350
|
...output,
|
|
1399
1351
|
body: await parseBody(output.body, context),
|
|
1400
1352
|
};
|
|
1401
|
-
let response;
|
|
1402
1353
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1403
1354
|
switch (errorCode) {
|
|
1404
1355
|
case "InvalidInputException":
|
|
@@ -1412,14 +1363,12 @@ const deserializeAws_json1_1DeleteEventTrackerCommandError = async (output, cont
|
|
|
1412
1363
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1413
1364
|
default:
|
|
1414
1365
|
const parsedBody = parsedOutput.body;
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
$metadata,
|
|
1366
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1367
|
+
output,
|
|
1368
|
+
parsedBody,
|
|
1369
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
1370
|
+
errorCode,
|
|
1421
1371
|
});
|
|
1422
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1423
1372
|
}
|
|
1424
1373
|
};
|
|
1425
1374
|
const deserializeAws_json1_1DeleteFilterCommand = async (output, context) => {
|
|
@@ -1438,7 +1387,6 @@ const deserializeAws_json1_1DeleteFilterCommandError = async (output, context) =
|
|
|
1438
1387
|
...output,
|
|
1439
1388
|
body: await parseBody(output.body, context),
|
|
1440
1389
|
};
|
|
1441
|
-
let response;
|
|
1442
1390
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1443
1391
|
switch (errorCode) {
|
|
1444
1392
|
case "InvalidInputException":
|
|
@@ -1452,14 +1400,12 @@ const deserializeAws_json1_1DeleteFilterCommandError = async (output, context) =
|
|
|
1452
1400
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1453
1401
|
default:
|
|
1454
1402
|
const parsedBody = parsedOutput.body;
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
$metadata,
|
|
1403
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1404
|
+
output,
|
|
1405
|
+
parsedBody,
|
|
1406
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
1407
|
+
errorCode,
|
|
1461
1408
|
});
|
|
1462
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1463
1409
|
}
|
|
1464
1410
|
};
|
|
1465
1411
|
const deserializeAws_json1_1DeleteRecommenderCommand = async (output, context) => {
|
|
@@ -1478,7 +1424,6 @@ const deserializeAws_json1_1DeleteRecommenderCommandError = async (output, conte
|
|
|
1478
1424
|
...output,
|
|
1479
1425
|
body: await parseBody(output.body, context),
|
|
1480
1426
|
};
|
|
1481
|
-
let response;
|
|
1482
1427
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1483
1428
|
switch (errorCode) {
|
|
1484
1429
|
case "InvalidInputException":
|
|
@@ -1492,14 +1437,12 @@ const deserializeAws_json1_1DeleteRecommenderCommandError = async (output, conte
|
|
|
1492
1437
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1493
1438
|
default:
|
|
1494
1439
|
const parsedBody = parsedOutput.body;
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
$metadata,
|
|
1440
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1441
|
+
output,
|
|
1442
|
+
parsedBody,
|
|
1443
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
1444
|
+
errorCode,
|
|
1501
1445
|
});
|
|
1502
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1503
1446
|
}
|
|
1504
1447
|
};
|
|
1505
1448
|
const deserializeAws_json1_1DeleteSchemaCommand = async (output, context) => {
|
|
@@ -1518,7 +1461,6 @@ const deserializeAws_json1_1DeleteSchemaCommandError = async (output, context) =
|
|
|
1518
1461
|
...output,
|
|
1519
1462
|
body: await parseBody(output.body, context),
|
|
1520
1463
|
};
|
|
1521
|
-
let response;
|
|
1522
1464
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1523
1465
|
switch (errorCode) {
|
|
1524
1466
|
case "InvalidInputException":
|
|
@@ -1532,14 +1474,12 @@ const deserializeAws_json1_1DeleteSchemaCommandError = async (output, context) =
|
|
|
1532
1474
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1533
1475
|
default:
|
|
1534
1476
|
const parsedBody = parsedOutput.body;
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
$metadata,
|
|
1477
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1478
|
+
output,
|
|
1479
|
+
parsedBody,
|
|
1480
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
1481
|
+
errorCode,
|
|
1541
1482
|
});
|
|
1542
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1543
1483
|
}
|
|
1544
1484
|
};
|
|
1545
1485
|
const deserializeAws_json1_1DeleteSolutionCommand = async (output, context) => {
|
|
@@ -1558,7 +1498,6 @@ const deserializeAws_json1_1DeleteSolutionCommandError = async (output, context)
|
|
|
1558
1498
|
...output,
|
|
1559
1499
|
body: await parseBody(output.body, context),
|
|
1560
1500
|
};
|
|
1561
|
-
let response;
|
|
1562
1501
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1563
1502
|
switch (errorCode) {
|
|
1564
1503
|
case "InvalidInputException":
|
|
@@ -1572,14 +1511,12 @@ const deserializeAws_json1_1DeleteSolutionCommandError = async (output, context)
|
|
|
1572
1511
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1573
1512
|
default:
|
|
1574
1513
|
const parsedBody = parsedOutput.body;
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
$metadata,
|
|
1514
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1515
|
+
output,
|
|
1516
|
+
parsedBody,
|
|
1517
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
1518
|
+
errorCode,
|
|
1581
1519
|
});
|
|
1582
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1583
1520
|
}
|
|
1584
1521
|
};
|
|
1585
1522
|
const deserializeAws_json1_1DescribeAlgorithmCommand = async (output, context) => {
|
|
@@ -1601,7 +1538,6 @@ const deserializeAws_json1_1DescribeAlgorithmCommandError = async (output, conte
|
|
|
1601
1538
|
...output,
|
|
1602
1539
|
body: await parseBody(output.body, context),
|
|
1603
1540
|
};
|
|
1604
|
-
let response;
|
|
1605
1541
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1606
1542
|
switch (errorCode) {
|
|
1607
1543
|
case "InvalidInputException":
|
|
@@ -1612,14 +1548,12 @@ const deserializeAws_json1_1DescribeAlgorithmCommandError = async (output, conte
|
|
|
1612
1548
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1613
1549
|
default:
|
|
1614
1550
|
const parsedBody = parsedOutput.body;
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
$metadata,
|
|
1551
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1552
|
+
output,
|
|
1553
|
+
parsedBody,
|
|
1554
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
1555
|
+
errorCode,
|
|
1621
1556
|
});
|
|
1622
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1623
1557
|
}
|
|
1624
1558
|
};
|
|
1625
1559
|
const deserializeAws_json1_1DescribeBatchInferenceJobCommand = async (output, context) => {
|
|
@@ -1641,7 +1575,6 @@ const deserializeAws_json1_1DescribeBatchInferenceJobCommandError = async (outpu
|
|
|
1641
1575
|
...output,
|
|
1642
1576
|
body: await parseBody(output.body, context),
|
|
1643
1577
|
};
|
|
1644
|
-
let response;
|
|
1645
1578
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1646
1579
|
switch (errorCode) {
|
|
1647
1580
|
case "InvalidInputException":
|
|
@@ -1652,14 +1585,12 @@ const deserializeAws_json1_1DescribeBatchInferenceJobCommandError = async (outpu
|
|
|
1652
1585
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1653
1586
|
default:
|
|
1654
1587
|
const parsedBody = parsedOutput.body;
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
$metadata,
|
|
1588
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1589
|
+
output,
|
|
1590
|
+
parsedBody,
|
|
1591
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
1592
|
+
errorCode,
|
|
1661
1593
|
});
|
|
1662
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1663
1594
|
}
|
|
1664
1595
|
};
|
|
1665
1596
|
const deserializeAws_json1_1DescribeBatchSegmentJobCommand = async (output, context) => {
|
|
@@ -1681,7 +1612,6 @@ const deserializeAws_json1_1DescribeBatchSegmentJobCommandError = async (output,
|
|
|
1681
1612
|
...output,
|
|
1682
1613
|
body: await parseBody(output.body, context),
|
|
1683
1614
|
};
|
|
1684
|
-
let response;
|
|
1685
1615
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1686
1616
|
switch (errorCode) {
|
|
1687
1617
|
case "InvalidInputException":
|
|
@@ -1692,14 +1622,12 @@ const deserializeAws_json1_1DescribeBatchSegmentJobCommandError = async (output,
|
|
|
1692
1622
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1693
1623
|
default:
|
|
1694
1624
|
const parsedBody = parsedOutput.body;
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
$metadata,
|
|
1625
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1626
|
+
output,
|
|
1627
|
+
parsedBody,
|
|
1628
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
1629
|
+
errorCode,
|
|
1701
1630
|
});
|
|
1702
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1703
1631
|
}
|
|
1704
1632
|
};
|
|
1705
1633
|
const deserializeAws_json1_1DescribeCampaignCommand = async (output, context) => {
|
|
@@ -1721,7 +1649,6 @@ const deserializeAws_json1_1DescribeCampaignCommandError = async (output, contex
|
|
|
1721
1649
|
...output,
|
|
1722
1650
|
body: await parseBody(output.body, context),
|
|
1723
1651
|
};
|
|
1724
|
-
let response;
|
|
1725
1652
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1726
1653
|
switch (errorCode) {
|
|
1727
1654
|
case "InvalidInputException":
|
|
@@ -1732,14 +1659,12 @@ const deserializeAws_json1_1DescribeCampaignCommandError = async (output, contex
|
|
|
1732
1659
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1733
1660
|
default:
|
|
1734
1661
|
const parsedBody = parsedOutput.body;
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
$metadata,
|
|
1662
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1663
|
+
output,
|
|
1664
|
+
parsedBody,
|
|
1665
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
1666
|
+
errorCode,
|
|
1741
1667
|
});
|
|
1742
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1743
1668
|
}
|
|
1744
1669
|
};
|
|
1745
1670
|
const deserializeAws_json1_1DescribeDatasetCommand = async (output, context) => {
|
|
@@ -1761,7 +1686,6 @@ const deserializeAws_json1_1DescribeDatasetCommandError = async (output, context
|
|
|
1761
1686
|
...output,
|
|
1762
1687
|
body: await parseBody(output.body, context),
|
|
1763
1688
|
};
|
|
1764
|
-
let response;
|
|
1765
1689
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1766
1690
|
switch (errorCode) {
|
|
1767
1691
|
case "InvalidInputException":
|
|
@@ -1772,14 +1696,12 @@ const deserializeAws_json1_1DescribeDatasetCommandError = async (output, context
|
|
|
1772
1696
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1773
1697
|
default:
|
|
1774
1698
|
const parsedBody = parsedOutput.body;
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
$metadata,
|
|
1699
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1700
|
+
output,
|
|
1701
|
+
parsedBody,
|
|
1702
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
1703
|
+
errorCode,
|
|
1781
1704
|
});
|
|
1782
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1783
1705
|
}
|
|
1784
1706
|
};
|
|
1785
1707
|
const deserializeAws_json1_1DescribeDatasetExportJobCommand = async (output, context) => {
|
|
@@ -1801,7 +1723,6 @@ const deserializeAws_json1_1DescribeDatasetExportJobCommandError = async (output
|
|
|
1801
1723
|
...output,
|
|
1802
1724
|
body: await parseBody(output.body, context),
|
|
1803
1725
|
};
|
|
1804
|
-
let response;
|
|
1805
1726
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1806
1727
|
switch (errorCode) {
|
|
1807
1728
|
case "InvalidInputException":
|
|
@@ -1812,14 +1733,12 @@ const deserializeAws_json1_1DescribeDatasetExportJobCommandError = async (output
|
|
|
1812
1733
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1813
1734
|
default:
|
|
1814
1735
|
const parsedBody = parsedOutput.body;
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
$metadata,
|
|
1736
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1737
|
+
output,
|
|
1738
|
+
parsedBody,
|
|
1739
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
1740
|
+
errorCode,
|
|
1821
1741
|
});
|
|
1822
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1823
1742
|
}
|
|
1824
1743
|
};
|
|
1825
1744
|
const deserializeAws_json1_1DescribeDatasetGroupCommand = async (output, context) => {
|
|
@@ -1841,7 +1760,6 @@ const deserializeAws_json1_1DescribeDatasetGroupCommandError = async (output, co
|
|
|
1841
1760
|
...output,
|
|
1842
1761
|
body: await parseBody(output.body, context),
|
|
1843
1762
|
};
|
|
1844
|
-
let response;
|
|
1845
1763
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1846
1764
|
switch (errorCode) {
|
|
1847
1765
|
case "InvalidInputException":
|
|
@@ -1852,14 +1770,12 @@ const deserializeAws_json1_1DescribeDatasetGroupCommandError = async (output, co
|
|
|
1852
1770
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1853
1771
|
default:
|
|
1854
1772
|
const parsedBody = parsedOutput.body;
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
$metadata,
|
|
1773
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1774
|
+
output,
|
|
1775
|
+
parsedBody,
|
|
1776
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
1777
|
+
errorCode,
|
|
1861
1778
|
});
|
|
1862
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1863
1779
|
}
|
|
1864
1780
|
};
|
|
1865
1781
|
const deserializeAws_json1_1DescribeDatasetImportJobCommand = async (output, context) => {
|
|
@@ -1881,7 +1797,6 @@ const deserializeAws_json1_1DescribeDatasetImportJobCommandError = async (output
|
|
|
1881
1797
|
...output,
|
|
1882
1798
|
body: await parseBody(output.body, context),
|
|
1883
1799
|
};
|
|
1884
|
-
let response;
|
|
1885
1800
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1886
1801
|
switch (errorCode) {
|
|
1887
1802
|
case "InvalidInputException":
|
|
@@ -1892,14 +1807,12 @@ const deserializeAws_json1_1DescribeDatasetImportJobCommandError = async (output
|
|
|
1892
1807
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1893
1808
|
default:
|
|
1894
1809
|
const parsedBody = parsedOutput.body;
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
$metadata,
|
|
1810
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1811
|
+
output,
|
|
1812
|
+
parsedBody,
|
|
1813
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
1814
|
+
errorCode,
|
|
1901
1815
|
});
|
|
1902
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1903
1816
|
}
|
|
1904
1817
|
};
|
|
1905
1818
|
const deserializeAws_json1_1DescribeEventTrackerCommand = async (output, context) => {
|
|
@@ -1921,7 +1834,6 @@ const deserializeAws_json1_1DescribeEventTrackerCommandError = async (output, co
|
|
|
1921
1834
|
...output,
|
|
1922
1835
|
body: await parseBody(output.body, context),
|
|
1923
1836
|
};
|
|
1924
|
-
let response;
|
|
1925
1837
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1926
1838
|
switch (errorCode) {
|
|
1927
1839
|
case "InvalidInputException":
|
|
@@ -1932,14 +1844,12 @@ const deserializeAws_json1_1DescribeEventTrackerCommandError = async (output, co
|
|
|
1932
1844
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1933
1845
|
default:
|
|
1934
1846
|
const parsedBody = parsedOutput.body;
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
$metadata,
|
|
1847
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1848
|
+
output,
|
|
1849
|
+
parsedBody,
|
|
1850
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
1851
|
+
errorCode,
|
|
1941
1852
|
});
|
|
1942
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1943
1853
|
}
|
|
1944
1854
|
};
|
|
1945
1855
|
const deserializeAws_json1_1DescribeFeatureTransformationCommand = async (output, context) => {
|
|
@@ -1961,7 +1871,6 @@ const deserializeAws_json1_1DescribeFeatureTransformationCommandError = async (o
|
|
|
1961
1871
|
...output,
|
|
1962
1872
|
body: await parseBody(output.body, context),
|
|
1963
1873
|
};
|
|
1964
|
-
let response;
|
|
1965
1874
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1966
1875
|
switch (errorCode) {
|
|
1967
1876
|
case "InvalidInputException":
|
|
@@ -1972,14 +1881,12 @@ const deserializeAws_json1_1DescribeFeatureTransformationCommandError = async (o
|
|
|
1972
1881
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1973
1882
|
default:
|
|
1974
1883
|
const parsedBody = parsedOutput.body;
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
$metadata,
|
|
1884
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1885
|
+
output,
|
|
1886
|
+
parsedBody,
|
|
1887
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
1888
|
+
errorCode,
|
|
1981
1889
|
});
|
|
1982
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1983
1890
|
}
|
|
1984
1891
|
};
|
|
1985
1892
|
const deserializeAws_json1_1DescribeFilterCommand = async (output, context) => {
|
|
@@ -2001,7 +1908,6 @@ const deserializeAws_json1_1DescribeFilterCommandError = async (output, context)
|
|
|
2001
1908
|
...output,
|
|
2002
1909
|
body: await parseBody(output.body, context),
|
|
2003
1910
|
};
|
|
2004
|
-
let response;
|
|
2005
1911
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2006
1912
|
switch (errorCode) {
|
|
2007
1913
|
case "InvalidInputException":
|
|
@@ -2012,14 +1918,12 @@ const deserializeAws_json1_1DescribeFilterCommandError = async (output, context)
|
|
|
2012
1918
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2013
1919
|
default:
|
|
2014
1920
|
const parsedBody = parsedOutput.body;
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
$metadata,
|
|
1921
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1922
|
+
output,
|
|
1923
|
+
parsedBody,
|
|
1924
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
1925
|
+
errorCode,
|
|
2021
1926
|
});
|
|
2022
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2023
1927
|
}
|
|
2024
1928
|
};
|
|
2025
1929
|
const deserializeAws_json1_1DescribeRecipeCommand = async (output, context) => {
|
|
@@ -2041,7 +1945,6 @@ const deserializeAws_json1_1DescribeRecipeCommandError = async (output, context)
|
|
|
2041
1945
|
...output,
|
|
2042
1946
|
body: await parseBody(output.body, context),
|
|
2043
1947
|
};
|
|
2044
|
-
let response;
|
|
2045
1948
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2046
1949
|
switch (errorCode) {
|
|
2047
1950
|
case "InvalidInputException":
|
|
@@ -2052,14 +1955,12 @@ const deserializeAws_json1_1DescribeRecipeCommandError = async (output, context)
|
|
|
2052
1955
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2053
1956
|
default:
|
|
2054
1957
|
const parsedBody = parsedOutput.body;
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
$metadata,
|
|
1958
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1959
|
+
output,
|
|
1960
|
+
parsedBody,
|
|
1961
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
1962
|
+
errorCode,
|
|
2061
1963
|
});
|
|
2062
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2063
1964
|
}
|
|
2064
1965
|
};
|
|
2065
1966
|
const deserializeAws_json1_1DescribeRecommenderCommand = async (output, context) => {
|
|
@@ -2081,7 +1982,6 @@ const deserializeAws_json1_1DescribeRecommenderCommandError = async (output, con
|
|
|
2081
1982
|
...output,
|
|
2082
1983
|
body: await parseBody(output.body, context),
|
|
2083
1984
|
};
|
|
2084
|
-
let response;
|
|
2085
1985
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2086
1986
|
switch (errorCode) {
|
|
2087
1987
|
case "InvalidInputException":
|
|
@@ -2092,14 +1992,12 @@ const deserializeAws_json1_1DescribeRecommenderCommandError = async (output, con
|
|
|
2092
1992
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2093
1993
|
default:
|
|
2094
1994
|
const parsedBody = parsedOutput.body;
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
$metadata,
|
|
1995
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1996
|
+
output,
|
|
1997
|
+
parsedBody,
|
|
1998
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
1999
|
+
errorCode,
|
|
2101
2000
|
});
|
|
2102
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2103
2001
|
}
|
|
2104
2002
|
};
|
|
2105
2003
|
const deserializeAws_json1_1DescribeSchemaCommand = async (output, context) => {
|
|
@@ -2121,7 +2019,6 @@ const deserializeAws_json1_1DescribeSchemaCommandError = async (output, context)
|
|
|
2121
2019
|
...output,
|
|
2122
2020
|
body: await parseBody(output.body, context),
|
|
2123
2021
|
};
|
|
2124
|
-
let response;
|
|
2125
2022
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2126
2023
|
switch (errorCode) {
|
|
2127
2024
|
case "InvalidInputException":
|
|
@@ -2132,14 +2029,12 @@ const deserializeAws_json1_1DescribeSchemaCommandError = async (output, context)
|
|
|
2132
2029
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2133
2030
|
default:
|
|
2134
2031
|
const parsedBody = parsedOutput.body;
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
$metadata,
|
|
2032
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2033
|
+
output,
|
|
2034
|
+
parsedBody,
|
|
2035
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
2036
|
+
errorCode,
|
|
2141
2037
|
});
|
|
2142
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2143
2038
|
}
|
|
2144
2039
|
};
|
|
2145
2040
|
const deserializeAws_json1_1DescribeSolutionCommand = async (output, context) => {
|
|
@@ -2161,7 +2056,6 @@ const deserializeAws_json1_1DescribeSolutionCommandError = async (output, contex
|
|
|
2161
2056
|
...output,
|
|
2162
2057
|
body: await parseBody(output.body, context),
|
|
2163
2058
|
};
|
|
2164
|
-
let response;
|
|
2165
2059
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2166
2060
|
switch (errorCode) {
|
|
2167
2061
|
case "InvalidInputException":
|
|
@@ -2172,14 +2066,12 @@ const deserializeAws_json1_1DescribeSolutionCommandError = async (output, contex
|
|
|
2172
2066
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2173
2067
|
default:
|
|
2174
2068
|
const parsedBody = parsedOutput.body;
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
$metadata,
|
|
2069
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2070
|
+
output,
|
|
2071
|
+
parsedBody,
|
|
2072
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
2073
|
+
errorCode,
|
|
2181
2074
|
});
|
|
2182
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2183
2075
|
}
|
|
2184
2076
|
};
|
|
2185
2077
|
const deserializeAws_json1_1DescribeSolutionVersionCommand = async (output, context) => {
|
|
@@ -2201,7 +2093,6 @@ const deserializeAws_json1_1DescribeSolutionVersionCommandError = async (output,
|
|
|
2201
2093
|
...output,
|
|
2202
2094
|
body: await parseBody(output.body, context),
|
|
2203
2095
|
};
|
|
2204
|
-
let response;
|
|
2205
2096
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2206
2097
|
switch (errorCode) {
|
|
2207
2098
|
case "InvalidInputException":
|
|
@@ -2212,14 +2103,12 @@ const deserializeAws_json1_1DescribeSolutionVersionCommandError = async (output,
|
|
|
2212
2103
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2213
2104
|
default:
|
|
2214
2105
|
const parsedBody = parsedOutput.body;
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
$metadata,
|
|
2106
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2107
|
+
output,
|
|
2108
|
+
parsedBody,
|
|
2109
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
2110
|
+
errorCode,
|
|
2221
2111
|
});
|
|
2222
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2223
2112
|
}
|
|
2224
2113
|
};
|
|
2225
2114
|
const deserializeAws_json1_1GetSolutionMetricsCommand = async (output, context) => {
|
|
@@ -2241,7 +2130,6 @@ const deserializeAws_json1_1GetSolutionMetricsCommandError = async (output, cont
|
|
|
2241
2130
|
...output,
|
|
2242
2131
|
body: await parseBody(output.body, context),
|
|
2243
2132
|
};
|
|
2244
|
-
let response;
|
|
2245
2133
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2246
2134
|
switch (errorCode) {
|
|
2247
2135
|
case "InvalidInputException":
|
|
@@ -2255,14 +2143,12 @@ const deserializeAws_json1_1GetSolutionMetricsCommandError = async (output, cont
|
|
|
2255
2143
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2256
2144
|
default:
|
|
2257
2145
|
const parsedBody = parsedOutput.body;
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
$metadata,
|
|
2146
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2147
|
+
output,
|
|
2148
|
+
parsedBody,
|
|
2149
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
2150
|
+
errorCode,
|
|
2264
2151
|
});
|
|
2265
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2266
2152
|
}
|
|
2267
2153
|
};
|
|
2268
2154
|
const deserializeAws_json1_1ListBatchInferenceJobsCommand = async (output, context) => {
|
|
@@ -2284,7 +2170,6 @@ const deserializeAws_json1_1ListBatchInferenceJobsCommandError = async (output,
|
|
|
2284
2170
|
...output,
|
|
2285
2171
|
body: await parseBody(output.body, context),
|
|
2286
2172
|
};
|
|
2287
|
-
let response;
|
|
2288
2173
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2289
2174
|
switch (errorCode) {
|
|
2290
2175
|
case "InvalidInputException":
|
|
@@ -2295,14 +2180,12 @@ const deserializeAws_json1_1ListBatchInferenceJobsCommandError = async (output,
|
|
|
2295
2180
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2296
2181
|
default:
|
|
2297
2182
|
const parsedBody = parsedOutput.body;
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
$metadata,
|
|
2183
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2184
|
+
output,
|
|
2185
|
+
parsedBody,
|
|
2186
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
2187
|
+
errorCode,
|
|
2304
2188
|
});
|
|
2305
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2306
2189
|
}
|
|
2307
2190
|
};
|
|
2308
2191
|
const deserializeAws_json1_1ListBatchSegmentJobsCommand = async (output, context) => {
|
|
@@ -2324,7 +2207,6 @@ const deserializeAws_json1_1ListBatchSegmentJobsCommandError = async (output, co
|
|
|
2324
2207
|
...output,
|
|
2325
2208
|
body: await parseBody(output.body, context),
|
|
2326
2209
|
};
|
|
2327
|
-
let response;
|
|
2328
2210
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2329
2211
|
switch (errorCode) {
|
|
2330
2212
|
case "InvalidInputException":
|
|
@@ -2335,14 +2217,12 @@ const deserializeAws_json1_1ListBatchSegmentJobsCommandError = async (output, co
|
|
|
2335
2217
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2336
2218
|
default:
|
|
2337
2219
|
const parsedBody = parsedOutput.body;
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
$metadata,
|
|
2220
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2221
|
+
output,
|
|
2222
|
+
parsedBody,
|
|
2223
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
2224
|
+
errorCode,
|
|
2344
2225
|
});
|
|
2345
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2346
2226
|
}
|
|
2347
2227
|
};
|
|
2348
2228
|
const deserializeAws_json1_1ListCampaignsCommand = async (output, context) => {
|
|
@@ -2364,7 +2244,6 @@ const deserializeAws_json1_1ListCampaignsCommandError = async (output, context)
|
|
|
2364
2244
|
...output,
|
|
2365
2245
|
body: await parseBody(output.body, context),
|
|
2366
2246
|
};
|
|
2367
|
-
let response;
|
|
2368
2247
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2369
2248
|
switch (errorCode) {
|
|
2370
2249
|
case "InvalidInputException":
|
|
@@ -2375,14 +2254,12 @@ const deserializeAws_json1_1ListCampaignsCommandError = async (output, context)
|
|
|
2375
2254
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2376
2255
|
default:
|
|
2377
2256
|
const parsedBody = parsedOutput.body;
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
$metadata,
|
|
2257
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2258
|
+
output,
|
|
2259
|
+
parsedBody,
|
|
2260
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
2261
|
+
errorCode,
|
|
2384
2262
|
});
|
|
2385
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2386
2263
|
}
|
|
2387
2264
|
};
|
|
2388
2265
|
const deserializeAws_json1_1ListDatasetExportJobsCommand = async (output, context) => {
|
|
@@ -2404,7 +2281,6 @@ const deserializeAws_json1_1ListDatasetExportJobsCommandError = async (output, c
|
|
|
2404
2281
|
...output,
|
|
2405
2282
|
body: await parseBody(output.body, context),
|
|
2406
2283
|
};
|
|
2407
|
-
let response;
|
|
2408
2284
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2409
2285
|
switch (errorCode) {
|
|
2410
2286
|
case "InvalidInputException":
|
|
@@ -2415,14 +2291,12 @@ const deserializeAws_json1_1ListDatasetExportJobsCommandError = async (output, c
|
|
|
2415
2291
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2416
2292
|
default:
|
|
2417
2293
|
const parsedBody = parsedOutput.body;
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
$metadata,
|
|
2294
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2295
|
+
output,
|
|
2296
|
+
parsedBody,
|
|
2297
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
2298
|
+
errorCode,
|
|
2424
2299
|
});
|
|
2425
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2426
2300
|
}
|
|
2427
2301
|
};
|
|
2428
2302
|
const deserializeAws_json1_1ListDatasetGroupsCommand = async (output, context) => {
|
|
@@ -2444,7 +2318,6 @@ const deserializeAws_json1_1ListDatasetGroupsCommandError = async (output, conte
|
|
|
2444
2318
|
...output,
|
|
2445
2319
|
body: await parseBody(output.body, context),
|
|
2446
2320
|
};
|
|
2447
|
-
let response;
|
|
2448
2321
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2449
2322
|
switch (errorCode) {
|
|
2450
2323
|
case "InvalidNextTokenException":
|
|
@@ -2452,14 +2325,12 @@ const deserializeAws_json1_1ListDatasetGroupsCommandError = async (output, conte
|
|
|
2452
2325
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2453
2326
|
default:
|
|
2454
2327
|
const parsedBody = parsedOutput.body;
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
$metadata,
|
|
2328
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2329
|
+
output,
|
|
2330
|
+
parsedBody,
|
|
2331
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
2332
|
+
errorCode,
|
|
2461
2333
|
});
|
|
2462
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2463
2334
|
}
|
|
2464
2335
|
};
|
|
2465
2336
|
const deserializeAws_json1_1ListDatasetImportJobsCommand = async (output, context) => {
|
|
@@ -2481,7 +2352,6 @@ const deserializeAws_json1_1ListDatasetImportJobsCommandError = async (output, c
|
|
|
2481
2352
|
...output,
|
|
2482
2353
|
body: await parseBody(output.body, context),
|
|
2483
2354
|
};
|
|
2484
|
-
let response;
|
|
2485
2355
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2486
2356
|
switch (errorCode) {
|
|
2487
2357
|
case "InvalidInputException":
|
|
@@ -2492,14 +2362,12 @@ const deserializeAws_json1_1ListDatasetImportJobsCommandError = async (output, c
|
|
|
2492
2362
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2493
2363
|
default:
|
|
2494
2364
|
const parsedBody = parsedOutput.body;
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
$metadata,
|
|
2365
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2366
|
+
output,
|
|
2367
|
+
parsedBody,
|
|
2368
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
2369
|
+
errorCode,
|
|
2501
2370
|
});
|
|
2502
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2503
2371
|
}
|
|
2504
2372
|
};
|
|
2505
2373
|
const deserializeAws_json1_1ListDatasetsCommand = async (output, context) => {
|
|
@@ -2521,7 +2389,6 @@ const deserializeAws_json1_1ListDatasetsCommandError = async (output, context) =
|
|
|
2521
2389
|
...output,
|
|
2522
2390
|
body: await parseBody(output.body, context),
|
|
2523
2391
|
};
|
|
2524
|
-
let response;
|
|
2525
2392
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2526
2393
|
switch (errorCode) {
|
|
2527
2394
|
case "InvalidInputException":
|
|
@@ -2532,14 +2399,12 @@ const deserializeAws_json1_1ListDatasetsCommandError = async (output, context) =
|
|
|
2532
2399
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2533
2400
|
default:
|
|
2534
2401
|
const parsedBody = parsedOutput.body;
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
$metadata,
|
|
2402
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2403
|
+
output,
|
|
2404
|
+
parsedBody,
|
|
2405
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
2406
|
+
errorCode,
|
|
2541
2407
|
});
|
|
2542
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2543
2408
|
}
|
|
2544
2409
|
};
|
|
2545
2410
|
const deserializeAws_json1_1ListEventTrackersCommand = async (output, context) => {
|
|
@@ -2561,7 +2426,6 @@ const deserializeAws_json1_1ListEventTrackersCommandError = async (output, conte
|
|
|
2561
2426
|
...output,
|
|
2562
2427
|
body: await parseBody(output.body, context),
|
|
2563
2428
|
};
|
|
2564
|
-
let response;
|
|
2565
2429
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2566
2430
|
switch (errorCode) {
|
|
2567
2431
|
case "InvalidInputException":
|
|
@@ -2572,14 +2436,12 @@ const deserializeAws_json1_1ListEventTrackersCommandError = async (output, conte
|
|
|
2572
2436
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2573
2437
|
default:
|
|
2574
2438
|
const parsedBody = parsedOutput.body;
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
$metadata,
|
|
2439
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2440
|
+
output,
|
|
2441
|
+
parsedBody,
|
|
2442
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
2443
|
+
errorCode,
|
|
2581
2444
|
});
|
|
2582
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2583
2445
|
}
|
|
2584
2446
|
};
|
|
2585
2447
|
const deserializeAws_json1_1ListFiltersCommand = async (output, context) => {
|
|
@@ -2601,7 +2463,6 @@ const deserializeAws_json1_1ListFiltersCommandError = async (output, context) =>
|
|
|
2601
2463
|
...output,
|
|
2602
2464
|
body: await parseBody(output.body, context),
|
|
2603
2465
|
};
|
|
2604
|
-
let response;
|
|
2605
2466
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2606
2467
|
switch (errorCode) {
|
|
2607
2468
|
case "InvalidInputException":
|
|
@@ -2612,14 +2473,12 @@ const deserializeAws_json1_1ListFiltersCommandError = async (output, context) =>
|
|
|
2612
2473
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2613
2474
|
default:
|
|
2614
2475
|
const parsedBody = parsedOutput.body;
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
$metadata,
|
|
2476
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2477
|
+
output,
|
|
2478
|
+
parsedBody,
|
|
2479
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
2480
|
+
errorCode,
|
|
2621
2481
|
});
|
|
2622
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2623
2482
|
}
|
|
2624
2483
|
};
|
|
2625
2484
|
const deserializeAws_json1_1ListRecipesCommand = async (output, context) => {
|
|
@@ -2641,7 +2500,6 @@ const deserializeAws_json1_1ListRecipesCommandError = async (output, context) =>
|
|
|
2641
2500
|
...output,
|
|
2642
2501
|
body: await parseBody(output.body, context),
|
|
2643
2502
|
};
|
|
2644
|
-
let response;
|
|
2645
2503
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2646
2504
|
switch (errorCode) {
|
|
2647
2505
|
case "InvalidInputException":
|
|
@@ -2652,14 +2510,12 @@ const deserializeAws_json1_1ListRecipesCommandError = async (output, context) =>
|
|
|
2652
2510
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2653
2511
|
default:
|
|
2654
2512
|
const parsedBody = parsedOutput.body;
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
$metadata,
|
|
2513
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2514
|
+
output,
|
|
2515
|
+
parsedBody,
|
|
2516
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
2517
|
+
errorCode,
|
|
2661
2518
|
});
|
|
2662
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2663
2519
|
}
|
|
2664
2520
|
};
|
|
2665
2521
|
const deserializeAws_json1_1ListRecommendersCommand = async (output, context) => {
|
|
@@ -2681,7 +2537,6 @@ const deserializeAws_json1_1ListRecommendersCommandError = async (output, contex
|
|
|
2681
2537
|
...output,
|
|
2682
2538
|
body: await parseBody(output.body, context),
|
|
2683
2539
|
};
|
|
2684
|
-
let response;
|
|
2685
2540
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2686
2541
|
switch (errorCode) {
|
|
2687
2542
|
case "InvalidInputException":
|
|
@@ -2692,14 +2547,12 @@ const deserializeAws_json1_1ListRecommendersCommandError = async (output, contex
|
|
|
2692
2547
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2693
2548
|
default:
|
|
2694
2549
|
const parsedBody = parsedOutput.body;
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
$metadata,
|
|
2550
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2551
|
+
output,
|
|
2552
|
+
parsedBody,
|
|
2553
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
2554
|
+
errorCode,
|
|
2701
2555
|
});
|
|
2702
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2703
2556
|
}
|
|
2704
2557
|
};
|
|
2705
2558
|
const deserializeAws_json1_1ListSchemasCommand = async (output, context) => {
|
|
@@ -2721,7 +2574,6 @@ const deserializeAws_json1_1ListSchemasCommandError = async (output, context) =>
|
|
|
2721
2574
|
...output,
|
|
2722
2575
|
body: await parseBody(output.body, context),
|
|
2723
2576
|
};
|
|
2724
|
-
let response;
|
|
2725
2577
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2726
2578
|
switch (errorCode) {
|
|
2727
2579
|
case "InvalidNextTokenException":
|
|
@@ -2729,14 +2581,12 @@ const deserializeAws_json1_1ListSchemasCommandError = async (output, context) =>
|
|
|
2729
2581
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2730
2582
|
default:
|
|
2731
2583
|
const parsedBody = parsedOutput.body;
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
$metadata,
|
|
2584
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2585
|
+
output,
|
|
2586
|
+
parsedBody,
|
|
2587
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
2588
|
+
errorCode,
|
|
2738
2589
|
});
|
|
2739
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2740
2590
|
}
|
|
2741
2591
|
};
|
|
2742
2592
|
const deserializeAws_json1_1ListSolutionsCommand = async (output, context) => {
|
|
@@ -2758,7 +2608,6 @@ const deserializeAws_json1_1ListSolutionsCommandError = async (output, context)
|
|
|
2758
2608
|
...output,
|
|
2759
2609
|
body: await parseBody(output.body, context),
|
|
2760
2610
|
};
|
|
2761
|
-
let response;
|
|
2762
2611
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2763
2612
|
switch (errorCode) {
|
|
2764
2613
|
case "InvalidInputException":
|
|
@@ -2769,14 +2618,12 @@ const deserializeAws_json1_1ListSolutionsCommandError = async (output, context)
|
|
|
2769
2618
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2770
2619
|
default:
|
|
2771
2620
|
const parsedBody = parsedOutput.body;
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
$metadata,
|
|
2621
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2622
|
+
output,
|
|
2623
|
+
parsedBody,
|
|
2624
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
2625
|
+
errorCode,
|
|
2778
2626
|
});
|
|
2779
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2780
2627
|
}
|
|
2781
2628
|
};
|
|
2782
2629
|
const deserializeAws_json1_1ListSolutionVersionsCommand = async (output, context) => {
|
|
@@ -2798,7 +2645,6 @@ const deserializeAws_json1_1ListSolutionVersionsCommandError = async (output, co
|
|
|
2798
2645
|
...output,
|
|
2799
2646
|
body: await parseBody(output.body, context),
|
|
2800
2647
|
};
|
|
2801
|
-
let response;
|
|
2802
2648
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2803
2649
|
switch (errorCode) {
|
|
2804
2650
|
case "InvalidInputException":
|
|
@@ -2812,14 +2658,12 @@ const deserializeAws_json1_1ListSolutionVersionsCommandError = async (output, co
|
|
|
2812
2658
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2813
2659
|
default:
|
|
2814
2660
|
const parsedBody = parsedOutput.body;
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
$metadata,
|
|
2661
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2662
|
+
output,
|
|
2663
|
+
parsedBody,
|
|
2664
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
2665
|
+
errorCode,
|
|
2821
2666
|
});
|
|
2822
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2823
2667
|
}
|
|
2824
2668
|
};
|
|
2825
2669
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -2841,7 +2685,6 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2841
2685
|
...output,
|
|
2842
2686
|
body: await parseBody(output.body, context),
|
|
2843
2687
|
};
|
|
2844
|
-
let response;
|
|
2845
2688
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2846
2689
|
switch (errorCode) {
|
|
2847
2690
|
case "InvalidInputException":
|
|
@@ -2855,14 +2698,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2855
2698
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2856
2699
|
default:
|
|
2857
2700
|
const parsedBody = parsedOutput.body;
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
$metadata,
|
|
2701
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2702
|
+
output,
|
|
2703
|
+
parsedBody,
|
|
2704
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
2705
|
+
errorCode,
|
|
2864
2706
|
});
|
|
2865
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2866
2707
|
}
|
|
2867
2708
|
};
|
|
2868
2709
|
const deserializeAws_json1_1StartRecommenderCommand = async (output, context) => {
|
|
@@ -2884,7 +2725,6 @@ const deserializeAws_json1_1StartRecommenderCommandError = async (output, contex
|
|
|
2884
2725
|
...output,
|
|
2885
2726
|
body: await parseBody(output.body, context),
|
|
2886
2727
|
};
|
|
2887
|
-
let response;
|
|
2888
2728
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2889
2729
|
switch (errorCode) {
|
|
2890
2730
|
case "InvalidInputException":
|
|
@@ -2898,14 +2738,12 @@ const deserializeAws_json1_1StartRecommenderCommandError = async (output, contex
|
|
|
2898
2738
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2899
2739
|
default:
|
|
2900
2740
|
const parsedBody = parsedOutput.body;
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
$metadata,
|
|
2741
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2742
|
+
output,
|
|
2743
|
+
parsedBody,
|
|
2744
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
2745
|
+
errorCode,
|
|
2907
2746
|
});
|
|
2908
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2909
2747
|
}
|
|
2910
2748
|
};
|
|
2911
2749
|
const deserializeAws_json1_1StopRecommenderCommand = async (output, context) => {
|
|
@@ -2927,7 +2765,6 @@ const deserializeAws_json1_1StopRecommenderCommandError = async (output, context
|
|
|
2927
2765
|
...output,
|
|
2928
2766
|
body: await parseBody(output.body, context),
|
|
2929
2767
|
};
|
|
2930
|
-
let response;
|
|
2931
2768
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2932
2769
|
switch (errorCode) {
|
|
2933
2770
|
case "InvalidInputException":
|
|
@@ -2941,14 +2778,12 @@ const deserializeAws_json1_1StopRecommenderCommandError = async (output, context
|
|
|
2941
2778
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2942
2779
|
default:
|
|
2943
2780
|
const parsedBody = parsedOutput.body;
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
$metadata,
|
|
2781
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2782
|
+
output,
|
|
2783
|
+
parsedBody,
|
|
2784
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
2785
|
+
errorCode,
|
|
2950
2786
|
});
|
|
2951
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2952
2787
|
}
|
|
2953
2788
|
};
|
|
2954
2789
|
const deserializeAws_json1_1StopSolutionVersionCreationCommand = async (output, context) => {
|
|
@@ -2967,7 +2802,6 @@ const deserializeAws_json1_1StopSolutionVersionCreationCommandError = async (out
|
|
|
2967
2802
|
...output,
|
|
2968
2803
|
body: await parseBody(output.body, context),
|
|
2969
2804
|
};
|
|
2970
|
-
let response;
|
|
2971
2805
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2972
2806
|
switch (errorCode) {
|
|
2973
2807
|
case "InvalidInputException":
|
|
@@ -2981,14 +2815,12 @@ const deserializeAws_json1_1StopSolutionVersionCreationCommandError = async (out
|
|
|
2981
2815
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2982
2816
|
default:
|
|
2983
2817
|
const parsedBody = parsedOutput.body;
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
$metadata,
|
|
2818
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2819
|
+
output,
|
|
2820
|
+
parsedBody,
|
|
2821
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
2822
|
+
errorCode,
|
|
2990
2823
|
});
|
|
2991
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2992
2824
|
}
|
|
2993
2825
|
};
|
|
2994
2826
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
@@ -3010,7 +2842,6 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
3010
2842
|
...output,
|
|
3011
2843
|
body: await parseBody(output.body, context),
|
|
3012
2844
|
};
|
|
3013
|
-
let response;
|
|
3014
2845
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3015
2846
|
switch (errorCode) {
|
|
3016
2847
|
case "InvalidInputException":
|
|
@@ -3030,14 +2861,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
3030
2861
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
3031
2862
|
default:
|
|
3032
2863
|
const parsedBody = parsedOutput.body;
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
$metadata,
|
|
2864
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2865
|
+
output,
|
|
2866
|
+
parsedBody,
|
|
2867
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
2868
|
+
errorCode,
|
|
3039
2869
|
});
|
|
3040
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3041
2870
|
}
|
|
3042
2871
|
};
|
|
3043
2872
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
@@ -3059,7 +2888,6 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
3059
2888
|
...output,
|
|
3060
2889
|
body: await parseBody(output.body, context),
|
|
3061
2890
|
};
|
|
3062
|
-
let response;
|
|
3063
2891
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3064
2892
|
switch (errorCode) {
|
|
3065
2893
|
case "InvalidInputException":
|
|
@@ -3076,14 +2904,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
3076
2904
|
throw await deserializeAws_json1_1TooManyTagKeysExceptionResponse(parsedOutput, context);
|
|
3077
2905
|
default:
|
|
3078
2906
|
const parsedBody = parsedOutput.body;
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
$metadata,
|
|
2907
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2908
|
+
output,
|
|
2909
|
+
parsedBody,
|
|
2910
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
2911
|
+
errorCode,
|
|
3085
2912
|
});
|
|
3086
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3087
2913
|
}
|
|
3088
2914
|
};
|
|
3089
2915
|
const deserializeAws_json1_1UpdateCampaignCommand = async (output, context) => {
|
|
@@ -3105,7 +2931,6 @@ const deserializeAws_json1_1UpdateCampaignCommandError = async (output, context)
|
|
|
3105
2931
|
...output,
|
|
3106
2932
|
body: await parseBody(output.body, context),
|
|
3107
2933
|
};
|
|
3108
|
-
let response;
|
|
3109
2934
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3110
2935
|
switch (errorCode) {
|
|
3111
2936
|
case "InvalidInputException":
|
|
@@ -3119,14 +2944,12 @@ const deserializeAws_json1_1UpdateCampaignCommandError = async (output, context)
|
|
|
3119
2944
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3120
2945
|
default:
|
|
3121
2946
|
const parsedBody = parsedOutput.body;
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
$metadata,
|
|
2947
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2948
|
+
output,
|
|
2949
|
+
parsedBody,
|
|
2950
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
2951
|
+
errorCode,
|
|
3128
2952
|
});
|
|
3129
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3130
2953
|
}
|
|
3131
2954
|
};
|
|
3132
2955
|
const deserializeAws_json1_1UpdateRecommenderCommand = async (output, context) => {
|
|
@@ -3148,7 +2971,6 @@ const deserializeAws_json1_1UpdateRecommenderCommandError = async (output, conte
|
|
|
3148
2971
|
...output,
|
|
3149
2972
|
body: await parseBody(output.body, context),
|
|
3150
2973
|
};
|
|
3151
|
-
let response;
|
|
3152
2974
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3153
2975
|
switch (errorCode) {
|
|
3154
2976
|
case "InvalidInputException":
|
|
@@ -3162,14 +2984,12 @@ const deserializeAws_json1_1UpdateRecommenderCommandError = async (output, conte
|
|
|
3162
2984
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3163
2985
|
default:
|
|
3164
2986
|
const parsedBody = parsedOutput.body;
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
$metadata,
|
|
2987
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2988
|
+
output,
|
|
2989
|
+
parsedBody,
|
|
2990
|
+
exceptionCtor: PersonalizeServiceException_1.PersonalizeServiceException,
|
|
2991
|
+
errorCode,
|
|
3171
2992
|
});
|
|
3172
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3173
2993
|
}
|
|
3174
2994
|
};
|
|
3175
2995
|
const deserializeAws_json1_1InvalidInputExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -3248,9 +3068,6 @@ const serializeAws_json1_1ArnList = (input, context) => {
|
|
|
3248
3068
|
return input
|
|
3249
3069
|
.filter((e) => e != null)
|
|
3250
3070
|
.map((entry) => {
|
|
3251
|
-
if (entry === null) {
|
|
3252
|
-
return null;
|
|
3253
|
-
}
|
|
3254
3071
|
return entry;
|
|
3255
3072
|
});
|
|
3256
3073
|
};
|
|
@@ -3308,9 +3125,6 @@ const serializeAws_json1_1CategoricalHyperParameterRanges = (input, context) =>
|
|
|
3308
3125
|
return input
|
|
3309
3126
|
.filter((e) => e != null)
|
|
3310
3127
|
.map((entry) => {
|
|
3311
|
-
if (entry === null) {
|
|
3312
|
-
return null;
|
|
3313
|
-
}
|
|
3314
3128
|
return serializeAws_json1_1CategoricalHyperParameterRange(entry, context);
|
|
3315
3129
|
});
|
|
3316
3130
|
};
|
|
@@ -3318,9 +3132,6 @@ const serializeAws_json1_1CategoricalValues = (input, context) => {
|
|
|
3318
3132
|
return input
|
|
3319
3133
|
.filter((e) => e != null)
|
|
3320
3134
|
.map((entry) => {
|
|
3321
|
-
if (entry === null) {
|
|
3322
|
-
return null;
|
|
3323
|
-
}
|
|
3324
3135
|
return entry;
|
|
3325
3136
|
});
|
|
3326
3137
|
};
|
|
@@ -3335,9 +3146,6 @@ const serializeAws_json1_1ContinuousHyperParameterRanges = (input, context) => {
|
|
|
3335
3146
|
return input
|
|
3336
3147
|
.filter((e) => e != null)
|
|
3337
3148
|
.map((entry) => {
|
|
3338
|
-
if (entry === null) {
|
|
3339
|
-
return null;
|
|
3340
|
-
}
|
|
3341
3149
|
return serializeAws_json1_1ContinuousHyperParameterRange(entry, context);
|
|
3342
3150
|
});
|
|
3343
3151
|
};
|
|
@@ -3404,6 +3212,7 @@ const serializeAws_json1_1CreateDatasetImportJobRequest = (input, context) => {
|
|
|
3404
3212
|
return {
|
|
3405
3213
|
...(input.dataSource != null && { dataSource: serializeAws_json1_1DataSource(input.dataSource, context) }),
|
|
3406
3214
|
...(input.datasetArn != null && { datasetArn: input.datasetArn }),
|
|
3215
|
+
...(input.importMode != null && { importMode: input.importMode }),
|
|
3407
3216
|
...(input.jobName != null && { jobName: input.jobName }),
|
|
3408
3217
|
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
3409
3218
|
...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
|
|
@@ -3679,9 +3488,6 @@ const serializeAws_json1_1IntegerHyperParameterRanges = (input, context) => {
|
|
|
3679
3488
|
return input
|
|
3680
3489
|
.filter((e) => e != null)
|
|
3681
3490
|
.map((entry) => {
|
|
3682
|
-
if (entry === null) {
|
|
3683
|
-
return null;
|
|
3684
|
-
}
|
|
3685
3491
|
return serializeAws_json1_1IntegerHyperParameterRange(entry, context);
|
|
3686
3492
|
});
|
|
3687
3493
|
};
|
|
@@ -3850,9 +3656,6 @@ const serializeAws_json1_1TagKeys = (input, context) => {
|
|
|
3850
3656
|
return input
|
|
3851
3657
|
.filter((e) => e != null)
|
|
3852
3658
|
.map((entry) => {
|
|
3853
|
-
if (entry === null) {
|
|
3854
|
-
return null;
|
|
3855
|
-
}
|
|
3856
3659
|
return entry;
|
|
3857
3660
|
});
|
|
3858
3661
|
};
|
|
@@ -3866,9 +3669,6 @@ const serializeAws_json1_1Tags = (input, context) => {
|
|
|
3866
3669
|
return input
|
|
3867
3670
|
.filter((e) => e != null)
|
|
3868
3671
|
.map((entry) => {
|
|
3869
|
-
if (entry === null) {
|
|
3870
|
-
return null;
|
|
3871
|
-
}
|
|
3872
3672
|
return serializeAws_json1_1Tag(entry, context);
|
|
3873
3673
|
});
|
|
3874
3674
|
};
|
|
@@ -4372,6 +4172,7 @@ const deserializeAws_json1_1DatasetImportJob = (output, context) => {
|
|
|
4372
4172
|
datasetArn: (0, smithy_client_1.expectString)(output.datasetArn),
|
|
4373
4173
|
datasetImportJobArn: (0, smithy_client_1.expectString)(output.datasetImportJobArn),
|
|
4374
4174
|
failureReason: (0, smithy_client_1.expectString)(output.failureReason),
|
|
4175
|
+
importMode: (0, smithy_client_1.expectString)(output.importMode),
|
|
4375
4176
|
jobName: (0, smithy_client_1.expectString)(output.jobName),
|
|
4376
4177
|
lastUpdatedDateTime: output.lastUpdatedDateTime != null
|
|
4377
4178
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
|
|
@@ -4398,6 +4199,7 @@ const deserializeAws_json1_1DatasetImportJobSummary = (output, context) => {
|
|
|
4398
4199
|
: undefined,
|
|
4399
4200
|
datasetImportJobArn: (0, smithy_client_1.expectString)(output.datasetImportJobArn),
|
|
4400
4201
|
failureReason: (0, smithy_client_1.expectString)(output.failureReason),
|
|
4202
|
+
importMode: (0, smithy_client_1.expectString)(output.importMode),
|
|
4401
4203
|
jobName: (0, smithy_client_1.expectString)(output.jobName),
|
|
4402
4204
|
lastUpdatedDateTime: output.lastUpdatedDateTime != null
|
|
4403
4205
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
|