@aws-sdk/client-personalize 3.118.0 → 3.127.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.
@@ -627,8 +627,7 @@ const deserializeAws_json1_1CreateBatchInferenceJobCommandError = async (output,
627
627
  body: await parseBody(output.body, context),
628
628
  };
629
629
  let response;
630
- let errorCode = "UnknownError";
631
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
630
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
632
631
  switch (errorCode) {
633
632
  case "InvalidInputException":
634
633
  case "com.amazonaws.personalize#InvalidInputException":
@@ -650,10 +649,12 @@ const deserializeAws_json1_1CreateBatchInferenceJobCommandError = async (output,
650
649
  throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
651
650
  default:
652
651
  const parsedBody = parsedOutput.body;
652
+ const $metadata = deserializeMetadata(output);
653
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
653
654
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
654
- name: parsedBody.code || parsedBody.Code || errorCode,
655
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
655
656
  $fault: "client",
656
- $metadata: deserializeMetadata(output),
657
+ $metadata,
657
658
  });
658
659
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
659
660
  }
@@ -678,8 +679,7 @@ const deserializeAws_json1_1CreateBatchSegmentJobCommandError = async (output, c
678
679
  body: await parseBody(output.body, context),
679
680
  };
680
681
  let response;
681
- let errorCode = "UnknownError";
682
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
682
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
683
683
  switch (errorCode) {
684
684
  case "InvalidInputException":
685
685
  case "com.amazonaws.personalize#InvalidInputException":
@@ -701,10 +701,12 @@ const deserializeAws_json1_1CreateBatchSegmentJobCommandError = async (output, c
701
701
  throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
702
702
  default:
703
703
  const parsedBody = parsedOutput.body;
704
+ const $metadata = deserializeMetadata(output);
705
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
704
706
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
705
- name: parsedBody.code || parsedBody.Code || errorCode,
707
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
706
708
  $fault: "client",
707
- $metadata: deserializeMetadata(output),
709
+ $metadata,
708
710
  });
709
711
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
710
712
  }
@@ -729,8 +731,7 @@ const deserializeAws_json1_1CreateCampaignCommandError = async (output, context)
729
731
  body: await parseBody(output.body, context),
730
732
  };
731
733
  let response;
732
- let errorCode = "UnknownError";
733
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
734
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
734
735
  switch (errorCode) {
735
736
  case "InvalidInputException":
736
737
  case "com.amazonaws.personalize#InvalidInputException":
@@ -752,10 +753,12 @@ const deserializeAws_json1_1CreateCampaignCommandError = async (output, context)
752
753
  throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
753
754
  default:
754
755
  const parsedBody = parsedOutput.body;
756
+ const $metadata = deserializeMetadata(output);
757
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
755
758
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
756
- name: parsedBody.code || parsedBody.Code || errorCode,
759
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
757
760
  $fault: "client",
758
- $metadata: deserializeMetadata(output),
761
+ $metadata,
759
762
  });
760
763
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
761
764
  }
@@ -780,8 +783,7 @@ const deserializeAws_json1_1CreateDatasetCommandError = async (output, context)
780
783
  body: await parseBody(output.body, context),
781
784
  };
782
785
  let response;
783
- let errorCode = "UnknownError";
784
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
786
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
785
787
  switch (errorCode) {
786
788
  case "InvalidInputException":
787
789
  case "com.amazonaws.personalize#InvalidInputException":
@@ -803,10 +805,12 @@ const deserializeAws_json1_1CreateDatasetCommandError = async (output, context)
803
805
  throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
804
806
  default:
805
807
  const parsedBody = parsedOutput.body;
808
+ const $metadata = deserializeMetadata(output);
809
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
806
810
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
807
- name: parsedBody.code || parsedBody.Code || errorCode,
811
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
808
812
  $fault: "client",
809
- $metadata: deserializeMetadata(output),
813
+ $metadata,
810
814
  });
811
815
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
812
816
  }
@@ -831,8 +835,7 @@ const deserializeAws_json1_1CreateDatasetExportJobCommandError = async (output,
831
835
  body: await parseBody(output.body, context),
832
836
  };
833
837
  let response;
834
- let errorCode = "UnknownError";
835
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
838
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
836
839
  switch (errorCode) {
837
840
  case "InvalidInputException":
838
841
  case "com.amazonaws.personalize#InvalidInputException":
@@ -854,10 +857,12 @@ const deserializeAws_json1_1CreateDatasetExportJobCommandError = async (output,
854
857
  throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
855
858
  default:
856
859
  const parsedBody = parsedOutput.body;
860
+ const $metadata = deserializeMetadata(output);
861
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
857
862
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
858
- name: parsedBody.code || parsedBody.Code || errorCode,
863
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
859
864
  $fault: "client",
860
- $metadata: deserializeMetadata(output),
865
+ $metadata,
861
866
  });
862
867
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
863
868
  }
@@ -882,8 +887,7 @@ const deserializeAws_json1_1CreateDatasetGroupCommandError = async (output, cont
882
887
  body: await parseBody(output.body, context),
883
888
  };
884
889
  let response;
885
- let errorCode = "UnknownError";
886
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
890
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
887
891
  switch (errorCode) {
888
892
  case "InvalidInputException":
889
893
  case "com.amazonaws.personalize#InvalidInputException":
@@ -899,10 +903,12 @@ const deserializeAws_json1_1CreateDatasetGroupCommandError = async (output, cont
899
903
  throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
900
904
  default:
901
905
  const parsedBody = parsedOutput.body;
906
+ const $metadata = deserializeMetadata(output);
907
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
902
908
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
903
- name: parsedBody.code || parsedBody.Code || errorCode,
909
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
904
910
  $fault: "client",
905
- $metadata: deserializeMetadata(output),
911
+ $metadata,
906
912
  });
907
913
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
908
914
  }
@@ -927,8 +933,7 @@ const deserializeAws_json1_1CreateDatasetImportJobCommandError = async (output,
927
933
  body: await parseBody(output.body, context),
928
934
  };
929
935
  let response;
930
- let errorCode = "UnknownError";
931
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
936
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
932
937
  switch (errorCode) {
933
938
  case "InvalidInputException":
934
939
  case "com.amazonaws.personalize#InvalidInputException":
@@ -950,10 +955,12 @@ const deserializeAws_json1_1CreateDatasetImportJobCommandError = async (output,
950
955
  throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
951
956
  default:
952
957
  const parsedBody = parsedOutput.body;
958
+ const $metadata = deserializeMetadata(output);
959
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
953
960
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
954
- name: parsedBody.code || parsedBody.Code || errorCode,
961
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
955
962
  $fault: "client",
956
- $metadata: deserializeMetadata(output),
963
+ $metadata,
957
964
  });
958
965
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
959
966
  }
@@ -978,8 +985,7 @@ const deserializeAws_json1_1CreateEventTrackerCommandError = async (output, cont
978
985
  body: await parseBody(output.body, context),
979
986
  };
980
987
  let response;
981
- let errorCode = "UnknownError";
982
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
988
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
983
989
  switch (errorCode) {
984
990
  case "InvalidInputException":
985
991
  case "com.amazonaws.personalize#InvalidInputException":
@@ -1001,10 +1007,12 @@ const deserializeAws_json1_1CreateEventTrackerCommandError = async (output, cont
1001
1007
  throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
1002
1008
  default:
1003
1009
  const parsedBody = parsedOutput.body;
1010
+ const $metadata = deserializeMetadata(output);
1011
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1004
1012
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
1005
- name: parsedBody.code || parsedBody.Code || errorCode,
1013
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1006
1014
  $fault: "client",
1007
- $metadata: deserializeMetadata(output),
1015
+ $metadata,
1008
1016
  });
1009
1017
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1010
1018
  }
@@ -1029,8 +1037,7 @@ const deserializeAws_json1_1CreateFilterCommandError = async (output, context) =
1029
1037
  body: await parseBody(output.body, context),
1030
1038
  };
1031
1039
  let response;
1032
- let errorCode = "UnknownError";
1033
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1040
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1034
1041
  switch (errorCode) {
1035
1042
  case "InvalidInputException":
1036
1043
  case "com.amazonaws.personalize#InvalidInputException":
@@ -1049,10 +1056,12 @@ const deserializeAws_json1_1CreateFilterCommandError = async (output, context) =
1049
1056
  throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
1050
1057
  default:
1051
1058
  const parsedBody = parsedOutput.body;
1059
+ const $metadata = deserializeMetadata(output);
1060
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1052
1061
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
1053
- name: parsedBody.code || parsedBody.Code || errorCode,
1062
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1054
1063
  $fault: "client",
1055
- $metadata: deserializeMetadata(output),
1064
+ $metadata,
1056
1065
  });
1057
1066
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1058
1067
  }
@@ -1077,8 +1086,7 @@ const deserializeAws_json1_1CreateRecommenderCommandError = async (output, conte
1077
1086
  body: await parseBody(output.body, context),
1078
1087
  };
1079
1088
  let response;
1080
- let errorCode = "UnknownError";
1081
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1089
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1082
1090
  switch (errorCode) {
1083
1091
  case "InvalidInputException":
1084
1092
  case "com.amazonaws.personalize#InvalidInputException":
@@ -1100,10 +1108,12 @@ const deserializeAws_json1_1CreateRecommenderCommandError = async (output, conte
1100
1108
  throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
1101
1109
  default:
1102
1110
  const parsedBody = parsedOutput.body;
1111
+ const $metadata = deserializeMetadata(output);
1112
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1103
1113
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
1104
- name: parsedBody.code || parsedBody.Code || errorCode,
1114
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1105
1115
  $fault: "client",
1106
- $metadata: deserializeMetadata(output),
1116
+ $metadata,
1107
1117
  });
1108
1118
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1109
1119
  }
@@ -1128,8 +1138,7 @@ const deserializeAws_json1_1CreateSchemaCommandError = async (output, context) =
1128
1138
  body: await parseBody(output.body, context),
1129
1139
  };
1130
1140
  let response;
1131
- let errorCode = "UnknownError";
1132
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1141
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1133
1142
  switch (errorCode) {
1134
1143
  case "InvalidInputException":
1135
1144
  case "com.amazonaws.personalize#InvalidInputException":
@@ -1142,10 +1151,12 @@ const deserializeAws_json1_1CreateSchemaCommandError = async (output, context) =
1142
1151
  throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
1143
1152
  default:
1144
1153
  const parsedBody = parsedOutput.body;
1154
+ const $metadata = deserializeMetadata(output);
1155
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1145
1156
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
1146
- name: parsedBody.code || parsedBody.Code || errorCode,
1157
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1147
1158
  $fault: "client",
1148
- $metadata: deserializeMetadata(output),
1159
+ $metadata,
1149
1160
  });
1150
1161
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1151
1162
  }
@@ -1170,8 +1181,7 @@ const deserializeAws_json1_1CreateSolutionCommandError = async (output, context)
1170
1181
  body: await parseBody(output.body, context),
1171
1182
  };
1172
1183
  let response;
1173
- let errorCode = "UnknownError";
1174
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1184
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1175
1185
  switch (errorCode) {
1176
1186
  case "InvalidInputException":
1177
1187
  case "com.amazonaws.personalize#InvalidInputException":
@@ -1193,10 +1203,12 @@ const deserializeAws_json1_1CreateSolutionCommandError = async (output, context)
1193
1203
  throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
1194
1204
  default:
1195
1205
  const parsedBody = parsedOutput.body;
1206
+ const $metadata = deserializeMetadata(output);
1207
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1196
1208
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
1197
- name: parsedBody.code || parsedBody.Code || errorCode,
1209
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1198
1210
  $fault: "client",
1199
- $metadata: deserializeMetadata(output),
1211
+ $metadata,
1200
1212
  });
1201
1213
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1202
1214
  }
@@ -1221,8 +1233,7 @@ const deserializeAws_json1_1CreateSolutionVersionCommandError = async (output, c
1221
1233
  body: await parseBody(output.body, context),
1222
1234
  };
1223
1235
  let response;
1224
- let errorCode = "UnknownError";
1225
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1236
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1226
1237
  switch (errorCode) {
1227
1238
  case "InvalidInputException":
1228
1239
  case "com.amazonaws.personalize#InvalidInputException":
@@ -1241,10 +1252,12 @@ const deserializeAws_json1_1CreateSolutionVersionCommandError = async (output, c
1241
1252
  throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
1242
1253
  default:
1243
1254
  const parsedBody = parsedOutput.body;
1255
+ const $metadata = deserializeMetadata(output);
1256
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1244
1257
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
1245
- name: parsedBody.code || parsedBody.Code || errorCode,
1258
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1246
1259
  $fault: "client",
1247
- $metadata: deserializeMetadata(output),
1260
+ $metadata,
1248
1261
  });
1249
1262
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1250
1263
  }
@@ -1266,8 +1279,7 @@ const deserializeAws_json1_1DeleteCampaignCommandError = async (output, context)
1266
1279
  body: await parseBody(output.body, context),
1267
1280
  };
1268
1281
  let response;
1269
- let errorCode = "UnknownError";
1270
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1282
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1271
1283
  switch (errorCode) {
1272
1284
  case "InvalidInputException":
1273
1285
  case "com.amazonaws.personalize#InvalidInputException":
@@ -1280,10 +1292,12 @@ const deserializeAws_json1_1DeleteCampaignCommandError = async (output, context)
1280
1292
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1281
1293
  default:
1282
1294
  const parsedBody = parsedOutput.body;
1295
+ const $metadata = deserializeMetadata(output);
1296
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1283
1297
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
1284
- name: parsedBody.code || parsedBody.Code || errorCode,
1298
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1285
1299
  $fault: "client",
1286
- $metadata: deserializeMetadata(output),
1300
+ $metadata,
1287
1301
  });
1288
1302
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1289
1303
  }
@@ -1305,8 +1319,7 @@ const deserializeAws_json1_1DeleteDatasetCommandError = async (output, context)
1305
1319
  body: await parseBody(output.body, context),
1306
1320
  };
1307
1321
  let response;
1308
- let errorCode = "UnknownError";
1309
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1322
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1310
1323
  switch (errorCode) {
1311
1324
  case "InvalidInputException":
1312
1325
  case "com.amazonaws.personalize#InvalidInputException":
@@ -1319,10 +1332,12 @@ const deserializeAws_json1_1DeleteDatasetCommandError = async (output, context)
1319
1332
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1320
1333
  default:
1321
1334
  const parsedBody = parsedOutput.body;
1335
+ const $metadata = deserializeMetadata(output);
1336
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1322
1337
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
1323
- name: parsedBody.code || parsedBody.Code || errorCode,
1338
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1324
1339
  $fault: "client",
1325
- $metadata: deserializeMetadata(output),
1340
+ $metadata,
1326
1341
  });
1327
1342
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1328
1343
  }
@@ -1344,8 +1359,7 @@ const deserializeAws_json1_1DeleteDatasetGroupCommandError = async (output, cont
1344
1359
  body: await parseBody(output.body, context),
1345
1360
  };
1346
1361
  let response;
1347
- let errorCode = "UnknownError";
1348
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1362
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1349
1363
  switch (errorCode) {
1350
1364
  case "InvalidInputException":
1351
1365
  case "com.amazonaws.personalize#InvalidInputException":
@@ -1358,10 +1372,12 @@ const deserializeAws_json1_1DeleteDatasetGroupCommandError = async (output, cont
1358
1372
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1359
1373
  default:
1360
1374
  const parsedBody = parsedOutput.body;
1375
+ const $metadata = deserializeMetadata(output);
1376
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1361
1377
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
1362
- name: parsedBody.code || parsedBody.Code || errorCode,
1378
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1363
1379
  $fault: "client",
1364
- $metadata: deserializeMetadata(output),
1380
+ $metadata,
1365
1381
  });
1366
1382
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1367
1383
  }
@@ -1383,8 +1399,7 @@ const deserializeAws_json1_1DeleteEventTrackerCommandError = async (output, cont
1383
1399
  body: await parseBody(output.body, context),
1384
1400
  };
1385
1401
  let response;
1386
- let errorCode = "UnknownError";
1387
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1402
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1388
1403
  switch (errorCode) {
1389
1404
  case "InvalidInputException":
1390
1405
  case "com.amazonaws.personalize#InvalidInputException":
@@ -1397,10 +1412,12 @@ const deserializeAws_json1_1DeleteEventTrackerCommandError = async (output, cont
1397
1412
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1398
1413
  default:
1399
1414
  const parsedBody = parsedOutput.body;
1415
+ const $metadata = deserializeMetadata(output);
1416
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1400
1417
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
1401
- name: parsedBody.code || parsedBody.Code || errorCode,
1418
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1402
1419
  $fault: "client",
1403
- $metadata: deserializeMetadata(output),
1420
+ $metadata,
1404
1421
  });
1405
1422
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1406
1423
  }
@@ -1422,8 +1439,7 @@ const deserializeAws_json1_1DeleteFilterCommandError = async (output, context) =
1422
1439
  body: await parseBody(output.body, context),
1423
1440
  };
1424
1441
  let response;
1425
- let errorCode = "UnknownError";
1426
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1442
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1427
1443
  switch (errorCode) {
1428
1444
  case "InvalidInputException":
1429
1445
  case "com.amazonaws.personalize#InvalidInputException":
@@ -1436,10 +1452,12 @@ const deserializeAws_json1_1DeleteFilterCommandError = async (output, context) =
1436
1452
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1437
1453
  default:
1438
1454
  const parsedBody = parsedOutput.body;
1455
+ const $metadata = deserializeMetadata(output);
1456
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1439
1457
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
1440
- name: parsedBody.code || parsedBody.Code || errorCode,
1458
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1441
1459
  $fault: "client",
1442
- $metadata: deserializeMetadata(output),
1460
+ $metadata,
1443
1461
  });
1444
1462
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1445
1463
  }
@@ -1461,8 +1479,7 @@ const deserializeAws_json1_1DeleteRecommenderCommandError = async (output, conte
1461
1479
  body: await parseBody(output.body, context),
1462
1480
  };
1463
1481
  let response;
1464
- let errorCode = "UnknownError";
1465
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1482
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1466
1483
  switch (errorCode) {
1467
1484
  case "InvalidInputException":
1468
1485
  case "com.amazonaws.personalize#InvalidInputException":
@@ -1475,10 +1492,12 @@ const deserializeAws_json1_1DeleteRecommenderCommandError = async (output, conte
1475
1492
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1476
1493
  default:
1477
1494
  const parsedBody = parsedOutput.body;
1495
+ const $metadata = deserializeMetadata(output);
1496
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1478
1497
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
1479
- name: parsedBody.code || parsedBody.Code || errorCode,
1498
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1480
1499
  $fault: "client",
1481
- $metadata: deserializeMetadata(output),
1500
+ $metadata,
1482
1501
  });
1483
1502
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1484
1503
  }
@@ -1500,8 +1519,7 @@ const deserializeAws_json1_1DeleteSchemaCommandError = async (output, context) =
1500
1519
  body: await parseBody(output.body, context),
1501
1520
  };
1502
1521
  let response;
1503
- let errorCode = "UnknownError";
1504
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1522
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1505
1523
  switch (errorCode) {
1506
1524
  case "InvalidInputException":
1507
1525
  case "com.amazonaws.personalize#InvalidInputException":
@@ -1514,10 +1532,12 @@ const deserializeAws_json1_1DeleteSchemaCommandError = async (output, context) =
1514
1532
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1515
1533
  default:
1516
1534
  const parsedBody = parsedOutput.body;
1535
+ const $metadata = deserializeMetadata(output);
1536
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1517
1537
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
1518
- name: parsedBody.code || parsedBody.Code || errorCode,
1538
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1519
1539
  $fault: "client",
1520
- $metadata: deserializeMetadata(output),
1540
+ $metadata,
1521
1541
  });
1522
1542
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1523
1543
  }
@@ -1539,8 +1559,7 @@ const deserializeAws_json1_1DeleteSolutionCommandError = async (output, context)
1539
1559
  body: await parseBody(output.body, context),
1540
1560
  };
1541
1561
  let response;
1542
- let errorCode = "UnknownError";
1543
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1562
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1544
1563
  switch (errorCode) {
1545
1564
  case "InvalidInputException":
1546
1565
  case "com.amazonaws.personalize#InvalidInputException":
@@ -1553,10 +1572,12 @@ const deserializeAws_json1_1DeleteSolutionCommandError = async (output, context)
1553
1572
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1554
1573
  default:
1555
1574
  const parsedBody = parsedOutput.body;
1575
+ const $metadata = deserializeMetadata(output);
1576
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1556
1577
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
1557
- name: parsedBody.code || parsedBody.Code || errorCode,
1578
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1558
1579
  $fault: "client",
1559
- $metadata: deserializeMetadata(output),
1580
+ $metadata,
1560
1581
  });
1561
1582
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1562
1583
  }
@@ -1581,8 +1602,7 @@ const deserializeAws_json1_1DescribeAlgorithmCommandError = async (output, conte
1581
1602
  body: await parseBody(output.body, context),
1582
1603
  };
1583
1604
  let response;
1584
- let errorCode = "UnknownError";
1585
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1605
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1586
1606
  switch (errorCode) {
1587
1607
  case "InvalidInputException":
1588
1608
  case "com.amazonaws.personalize#InvalidInputException":
@@ -1592,10 +1612,12 @@ const deserializeAws_json1_1DescribeAlgorithmCommandError = async (output, conte
1592
1612
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1593
1613
  default:
1594
1614
  const parsedBody = parsedOutput.body;
1615
+ const $metadata = deserializeMetadata(output);
1616
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1595
1617
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
1596
- name: parsedBody.code || parsedBody.Code || errorCode,
1618
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1597
1619
  $fault: "client",
1598
- $metadata: deserializeMetadata(output),
1620
+ $metadata,
1599
1621
  });
1600
1622
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1601
1623
  }
@@ -1620,8 +1642,7 @@ const deserializeAws_json1_1DescribeBatchInferenceJobCommandError = async (outpu
1620
1642
  body: await parseBody(output.body, context),
1621
1643
  };
1622
1644
  let response;
1623
- let errorCode = "UnknownError";
1624
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1645
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1625
1646
  switch (errorCode) {
1626
1647
  case "InvalidInputException":
1627
1648
  case "com.amazonaws.personalize#InvalidInputException":
@@ -1631,10 +1652,12 @@ const deserializeAws_json1_1DescribeBatchInferenceJobCommandError = async (outpu
1631
1652
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1632
1653
  default:
1633
1654
  const parsedBody = parsedOutput.body;
1655
+ const $metadata = deserializeMetadata(output);
1656
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1634
1657
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
1635
- name: parsedBody.code || parsedBody.Code || errorCode,
1658
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1636
1659
  $fault: "client",
1637
- $metadata: deserializeMetadata(output),
1660
+ $metadata,
1638
1661
  });
1639
1662
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1640
1663
  }
@@ -1659,8 +1682,7 @@ const deserializeAws_json1_1DescribeBatchSegmentJobCommandError = async (output,
1659
1682
  body: await parseBody(output.body, context),
1660
1683
  };
1661
1684
  let response;
1662
- let errorCode = "UnknownError";
1663
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1685
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1664
1686
  switch (errorCode) {
1665
1687
  case "InvalidInputException":
1666
1688
  case "com.amazonaws.personalize#InvalidInputException":
@@ -1670,10 +1692,12 @@ const deserializeAws_json1_1DescribeBatchSegmentJobCommandError = async (output,
1670
1692
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1671
1693
  default:
1672
1694
  const parsedBody = parsedOutput.body;
1695
+ const $metadata = deserializeMetadata(output);
1696
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1673
1697
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
1674
- name: parsedBody.code || parsedBody.Code || errorCode,
1698
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1675
1699
  $fault: "client",
1676
- $metadata: deserializeMetadata(output),
1700
+ $metadata,
1677
1701
  });
1678
1702
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1679
1703
  }
@@ -1698,8 +1722,7 @@ const deserializeAws_json1_1DescribeCampaignCommandError = async (output, contex
1698
1722
  body: await parseBody(output.body, context),
1699
1723
  };
1700
1724
  let response;
1701
- let errorCode = "UnknownError";
1702
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1725
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1703
1726
  switch (errorCode) {
1704
1727
  case "InvalidInputException":
1705
1728
  case "com.amazonaws.personalize#InvalidInputException":
@@ -1709,10 +1732,12 @@ const deserializeAws_json1_1DescribeCampaignCommandError = async (output, contex
1709
1732
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1710
1733
  default:
1711
1734
  const parsedBody = parsedOutput.body;
1735
+ const $metadata = deserializeMetadata(output);
1736
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1712
1737
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
1713
- name: parsedBody.code || parsedBody.Code || errorCode,
1738
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1714
1739
  $fault: "client",
1715
- $metadata: deserializeMetadata(output),
1740
+ $metadata,
1716
1741
  });
1717
1742
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1718
1743
  }
@@ -1737,8 +1762,7 @@ const deserializeAws_json1_1DescribeDatasetCommandError = async (output, context
1737
1762
  body: await parseBody(output.body, context),
1738
1763
  };
1739
1764
  let response;
1740
- let errorCode = "UnknownError";
1741
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1765
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1742
1766
  switch (errorCode) {
1743
1767
  case "InvalidInputException":
1744
1768
  case "com.amazonaws.personalize#InvalidInputException":
@@ -1748,10 +1772,12 @@ const deserializeAws_json1_1DescribeDatasetCommandError = async (output, context
1748
1772
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1749
1773
  default:
1750
1774
  const parsedBody = parsedOutput.body;
1775
+ const $metadata = deserializeMetadata(output);
1776
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1751
1777
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
1752
- name: parsedBody.code || parsedBody.Code || errorCode,
1778
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1753
1779
  $fault: "client",
1754
- $metadata: deserializeMetadata(output),
1780
+ $metadata,
1755
1781
  });
1756
1782
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1757
1783
  }
@@ -1776,8 +1802,7 @@ const deserializeAws_json1_1DescribeDatasetExportJobCommandError = async (output
1776
1802
  body: await parseBody(output.body, context),
1777
1803
  };
1778
1804
  let response;
1779
- let errorCode = "UnknownError";
1780
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1805
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1781
1806
  switch (errorCode) {
1782
1807
  case "InvalidInputException":
1783
1808
  case "com.amazonaws.personalize#InvalidInputException":
@@ -1787,10 +1812,12 @@ const deserializeAws_json1_1DescribeDatasetExportJobCommandError = async (output
1787
1812
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1788
1813
  default:
1789
1814
  const parsedBody = parsedOutput.body;
1815
+ const $metadata = deserializeMetadata(output);
1816
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1790
1817
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
1791
- name: parsedBody.code || parsedBody.Code || errorCode,
1818
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1792
1819
  $fault: "client",
1793
- $metadata: deserializeMetadata(output),
1820
+ $metadata,
1794
1821
  });
1795
1822
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1796
1823
  }
@@ -1815,8 +1842,7 @@ const deserializeAws_json1_1DescribeDatasetGroupCommandError = async (output, co
1815
1842
  body: await parseBody(output.body, context),
1816
1843
  };
1817
1844
  let response;
1818
- let errorCode = "UnknownError";
1819
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1845
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1820
1846
  switch (errorCode) {
1821
1847
  case "InvalidInputException":
1822
1848
  case "com.amazonaws.personalize#InvalidInputException":
@@ -1826,10 +1852,12 @@ const deserializeAws_json1_1DescribeDatasetGroupCommandError = async (output, co
1826
1852
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1827
1853
  default:
1828
1854
  const parsedBody = parsedOutput.body;
1855
+ const $metadata = deserializeMetadata(output);
1856
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1829
1857
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
1830
- name: parsedBody.code || parsedBody.Code || errorCode,
1858
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1831
1859
  $fault: "client",
1832
- $metadata: deserializeMetadata(output),
1860
+ $metadata,
1833
1861
  });
1834
1862
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1835
1863
  }
@@ -1854,8 +1882,7 @@ const deserializeAws_json1_1DescribeDatasetImportJobCommandError = async (output
1854
1882
  body: await parseBody(output.body, context),
1855
1883
  };
1856
1884
  let response;
1857
- let errorCode = "UnknownError";
1858
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1885
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1859
1886
  switch (errorCode) {
1860
1887
  case "InvalidInputException":
1861
1888
  case "com.amazonaws.personalize#InvalidInputException":
@@ -1865,10 +1892,12 @@ const deserializeAws_json1_1DescribeDatasetImportJobCommandError = async (output
1865
1892
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1866
1893
  default:
1867
1894
  const parsedBody = parsedOutput.body;
1895
+ const $metadata = deserializeMetadata(output);
1896
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1868
1897
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
1869
- name: parsedBody.code || parsedBody.Code || errorCode,
1898
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1870
1899
  $fault: "client",
1871
- $metadata: deserializeMetadata(output),
1900
+ $metadata,
1872
1901
  });
1873
1902
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1874
1903
  }
@@ -1893,8 +1922,7 @@ const deserializeAws_json1_1DescribeEventTrackerCommandError = async (output, co
1893
1922
  body: await parseBody(output.body, context),
1894
1923
  };
1895
1924
  let response;
1896
- let errorCode = "UnknownError";
1897
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1925
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1898
1926
  switch (errorCode) {
1899
1927
  case "InvalidInputException":
1900
1928
  case "com.amazonaws.personalize#InvalidInputException":
@@ -1904,10 +1932,12 @@ const deserializeAws_json1_1DescribeEventTrackerCommandError = async (output, co
1904
1932
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1905
1933
  default:
1906
1934
  const parsedBody = parsedOutput.body;
1935
+ const $metadata = deserializeMetadata(output);
1936
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1907
1937
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
1908
- name: parsedBody.code || parsedBody.Code || errorCode,
1938
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1909
1939
  $fault: "client",
1910
- $metadata: deserializeMetadata(output),
1940
+ $metadata,
1911
1941
  });
1912
1942
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1913
1943
  }
@@ -1932,8 +1962,7 @@ const deserializeAws_json1_1DescribeFeatureTransformationCommandError = async (o
1932
1962
  body: await parseBody(output.body, context),
1933
1963
  };
1934
1964
  let response;
1935
- let errorCode = "UnknownError";
1936
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1965
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1937
1966
  switch (errorCode) {
1938
1967
  case "InvalidInputException":
1939
1968
  case "com.amazonaws.personalize#InvalidInputException":
@@ -1943,10 +1972,12 @@ const deserializeAws_json1_1DescribeFeatureTransformationCommandError = async (o
1943
1972
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1944
1973
  default:
1945
1974
  const parsedBody = parsedOutput.body;
1975
+ const $metadata = deserializeMetadata(output);
1976
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1946
1977
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
1947
- name: parsedBody.code || parsedBody.Code || errorCode,
1978
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1948
1979
  $fault: "client",
1949
- $metadata: deserializeMetadata(output),
1980
+ $metadata,
1950
1981
  });
1951
1982
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1952
1983
  }
@@ -1971,8 +2002,7 @@ const deserializeAws_json1_1DescribeFilterCommandError = async (output, context)
1971
2002
  body: await parseBody(output.body, context),
1972
2003
  };
1973
2004
  let response;
1974
- let errorCode = "UnknownError";
1975
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2005
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1976
2006
  switch (errorCode) {
1977
2007
  case "InvalidInputException":
1978
2008
  case "com.amazonaws.personalize#InvalidInputException":
@@ -1982,10 +2012,12 @@ const deserializeAws_json1_1DescribeFilterCommandError = async (output, context)
1982
2012
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1983
2013
  default:
1984
2014
  const parsedBody = parsedOutput.body;
2015
+ const $metadata = deserializeMetadata(output);
2016
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1985
2017
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
1986
- name: parsedBody.code || parsedBody.Code || errorCode,
2018
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1987
2019
  $fault: "client",
1988
- $metadata: deserializeMetadata(output),
2020
+ $metadata,
1989
2021
  });
1990
2022
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1991
2023
  }
@@ -2010,8 +2042,7 @@ const deserializeAws_json1_1DescribeRecipeCommandError = async (output, context)
2010
2042
  body: await parseBody(output.body, context),
2011
2043
  };
2012
2044
  let response;
2013
- let errorCode = "UnknownError";
2014
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2045
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2015
2046
  switch (errorCode) {
2016
2047
  case "InvalidInputException":
2017
2048
  case "com.amazonaws.personalize#InvalidInputException":
@@ -2021,10 +2052,12 @@ const deserializeAws_json1_1DescribeRecipeCommandError = async (output, context)
2021
2052
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2022
2053
  default:
2023
2054
  const parsedBody = parsedOutput.body;
2055
+ const $metadata = deserializeMetadata(output);
2056
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2024
2057
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
2025
- name: parsedBody.code || parsedBody.Code || errorCode,
2058
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2026
2059
  $fault: "client",
2027
- $metadata: deserializeMetadata(output),
2060
+ $metadata,
2028
2061
  });
2029
2062
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2030
2063
  }
@@ -2049,8 +2082,7 @@ const deserializeAws_json1_1DescribeRecommenderCommandError = async (output, con
2049
2082
  body: await parseBody(output.body, context),
2050
2083
  };
2051
2084
  let response;
2052
- let errorCode = "UnknownError";
2053
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2085
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2054
2086
  switch (errorCode) {
2055
2087
  case "InvalidInputException":
2056
2088
  case "com.amazonaws.personalize#InvalidInputException":
@@ -2060,10 +2092,12 @@ const deserializeAws_json1_1DescribeRecommenderCommandError = async (output, con
2060
2092
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2061
2093
  default:
2062
2094
  const parsedBody = parsedOutput.body;
2095
+ const $metadata = deserializeMetadata(output);
2096
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2063
2097
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
2064
- name: parsedBody.code || parsedBody.Code || errorCode,
2098
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2065
2099
  $fault: "client",
2066
- $metadata: deserializeMetadata(output),
2100
+ $metadata,
2067
2101
  });
2068
2102
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2069
2103
  }
@@ -2088,8 +2122,7 @@ const deserializeAws_json1_1DescribeSchemaCommandError = async (output, context)
2088
2122
  body: await parseBody(output.body, context),
2089
2123
  };
2090
2124
  let response;
2091
- let errorCode = "UnknownError";
2092
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2125
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2093
2126
  switch (errorCode) {
2094
2127
  case "InvalidInputException":
2095
2128
  case "com.amazonaws.personalize#InvalidInputException":
@@ -2099,10 +2132,12 @@ const deserializeAws_json1_1DescribeSchemaCommandError = async (output, context)
2099
2132
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2100
2133
  default:
2101
2134
  const parsedBody = parsedOutput.body;
2135
+ const $metadata = deserializeMetadata(output);
2136
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2102
2137
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
2103
- name: parsedBody.code || parsedBody.Code || errorCode,
2138
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2104
2139
  $fault: "client",
2105
- $metadata: deserializeMetadata(output),
2140
+ $metadata,
2106
2141
  });
2107
2142
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2108
2143
  }
@@ -2127,8 +2162,7 @@ const deserializeAws_json1_1DescribeSolutionCommandError = async (output, contex
2127
2162
  body: await parseBody(output.body, context),
2128
2163
  };
2129
2164
  let response;
2130
- let errorCode = "UnknownError";
2131
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2165
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2132
2166
  switch (errorCode) {
2133
2167
  case "InvalidInputException":
2134
2168
  case "com.amazonaws.personalize#InvalidInputException":
@@ -2138,10 +2172,12 @@ const deserializeAws_json1_1DescribeSolutionCommandError = async (output, contex
2138
2172
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2139
2173
  default:
2140
2174
  const parsedBody = parsedOutput.body;
2175
+ const $metadata = deserializeMetadata(output);
2176
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2141
2177
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
2142
- name: parsedBody.code || parsedBody.Code || errorCode,
2178
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2143
2179
  $fault: "client",
2144
- $metadata: deserializeMetadata(output),
2180
+ $metadata,
2145
2181
  });
2146
2182
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2147
2183
  }
@@ -2166,8 +2202,7 @@ const deserializeAws_json1_1DescribeSolutionVersionCommandError = async (output,
2166
2202
  body: await parseBody(output.body, context),
2167
2203
  };
2168
2204
  let response;
2169
- let errorCode = "UnknownError";
2170
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2205
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2171
2206
  switch (errorCode) {
2172
2207
  case "InvalidInputException":
2173
2208
  case "com.amazonaws.personalize#InvalidInputException":
@@ -2177,10 +2212,12 @@ const deserializeAws_json1_1DescribeSolutionVersionCommandError = async (output,
2177
2212
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2178
2213
  default:
2179
2214
  const parsedBody = parsedOutput.body;
2215
+ const $metadata = deserializeMetadata(output);
2216
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2180
2217
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
2181
- name: parsedBody.code || parsedBody.Code || errorCode,
2218
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2182
2219
  $fault: "client",
2183
- $metadata: deserializeMetadata(output),
2220
+ $metadata,
2184
2221
  });
2185
2222
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2186
2223
  }
@@ -2205,8 +2242,7 @@ const deserializeAws_json1_1GetSolutionMetricsCommandError = async (output, cont
2205
2242
  body: await parseBody(output.body, context),
2206
2243
  };
2207
2244
  let response;
2208
- let errorCode = "UnknownError";
2209
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2245
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2210
2246
  switch (errorCode) {
2211
2247
  case "InvalidInputException":
2212
2248
  case "com.amazonaws.personalize#InvalidInputException":
@@ -2219,10 +2255,12 @@ const deserializeAws_json1_1GetSolutionMetricsCommandError = async (output, cont
2219
2255
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2220
2256
  default:
2221
2257
  const parsedBody = parsedOutput.body;
2258
+ const $metadata = deserializeMetadata(output);
2259
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2222
2260
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
2223
- name: parsedBody.code || parsedBody.Code || errorCode,
2261
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2224
2262
  $fault: "client",
2225
- $metadata: deserializeMetadata(output),
2263
+ $metadata,
2226
2264
  });
2227
2265
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2228
2266
  }
@@ -2247,8 +2285,7 @@ const deserializeAws_json1_1ListBatchInferenceJobsCommandError = async (output,
2247
2285
  body: await parseBody(output.body, context),
2248
2286
  };
2249
2287
  let response;
2250
- let errorCode = "UnknownError";
2251
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2288
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2252
2289
  switch (errorCode) {
2253
2290
  case "InvalidInputException":
2254
2291
  case "com.amazonaws.personalize#InvalidInputException":
@@ -2258,10 +2295,12 @@ const deserializeAws_json1_1ListBatchInferenceJobsCommandError = async (output,
2258
2295
  throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
2259
2296
  default:
2260
2297
  const parsedBody = parsedOutput.body;
2298
+ const $metadata = deserializeMetadata(output);
2299
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2261
2300
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
2262
- name: parsedBody.code || parsedBody.Code || errorCode,
2301
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2263
2302
  $fault: "client",
2264
- $metadata: deserializeMetadata(output),
2303
+ $metadata,
2265
2304
  });
2266
2305
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2267
2306
  }
@@ -2286,8 +2325,7 @@ const deserializeAws_json1_1ListBatchSegmentJobsCommandError = async (output, co
2286
2325
  body: await parseBody(output.body, context),
2287
2326
  };
2288
2327
  let response;
2289
- let errorCode = "UnknownError";
2290
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2328
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2291
2329
  switch (errorCode) {
2292
2330
  case "InvalidInputException":
2293
2331
  case "com.amazonaws.personalize#InvalidInputException":
@@ -2297,10 +2335,12 @@ const deserializeAws_json1_1ListBatchSegmentJobsCommandError = async (output, co
2297
2335
  throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
2298
2336
  default:
2299
2337
  const parsedBody = parsedOutput.body;
2338
+ const $metadata = deserializeMetadata(output);
2339
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2300
2340
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
2301
- name: parsedBody.code || parsedBody.Code || errorCode,
2341
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2302
2342
  $fault: "client",
2303
- $metadata: deserializeMetadata(output),
2343
+ $metadata,
2304
2344
  });
2305
2345
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2306
2346
  }
@@ -2325,8 +2365,7 @@ const deserializeAws_json1_1ListCampaignsCommandError = async (output, context)
2325
2365
  body: await parseBody(output.body, context),
2326
2366
  };
2327
2367
  let response;
2328
- let errorCode = "UnknownError";
2329
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2368
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2330
2369
  switch (errorCode) {
2331
2370
  case "InvalidInputException":
2332
2371
  case "com.amazonaws.personalize#InvalidInputException":
@@ -2336,10 +2375,12 @@ const deserializeAws_json1_1ListCampaignsCommandError = async (output, context)
2336
2375
  throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
2337
2376
  default:
2338
2377
  const parsedBody = parsedOutput.body;
2378
+ const $metadata = deserializeMetadata(output);
2379
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2339
2380
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
2340
- name: parsedBody.code || parsedBody.Code || errorCode,
2381
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2341
2382
  $fault: "client",
2342
- $metadata: deserializeMetadata(output),
2383
+ $metadata,
2343
2384
  });
2344
2385
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2345
2386
  }
@@ -2364,8 +2405,7 @@ const deserializeAws_json1_1ListDatasetExportJobsCommandError = async (output, c
2364
2405
  body: await parseBody(output.body, context),
2365
2406
  };
2366
2407
  let response;
2367
- let errorCode = "UnknownError";
2368
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2408
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2369
2409
  switch (errorCode) {
2370
2410
  case "InvalidInputException":
2371
2411
  case "com.amazonaws.personalize#InvalidInputException":
@@ -2375,10 +2415,12 @@ const deserializeAws_json1_1ListDatasetExportJobsCommandError = async (output, c
2375
2415
  throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
2376
2416
  default:
2377
2417
  const parsedBody = parsedOutput.body;
2418
+ const $metadata = deserializeMetadata(output);
2419
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2378
2420
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
2379
- name: parsedBody.code || parsedBody.Code || errorCode,
2421
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2380
2422
  $fault: "client",
2381
- $metadata: deserializeMetadata(output),
2423
+ $metadata,
2382
2424
  });
2383
2425
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2384
2426
  }
@@ -2403,18 +2445,19 @@ const deserializeAws_json1_1ListDatasetGroupsCommandError = async (output, conte
2403
2445
  body: await parseBody(output.body, context),
2404
2446
  };
2405
2447
  let response;
2406
- let errorCode = "UnknownError";
2407
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2448
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2408
2449
  switch (errorCode) {
2409
2450
  case "InvalidNextTokenException":
2410
2451
  case "com.amazonaws.personalize#InvalidNextTokenException":
2411
2452
  throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
2412
2453
  default:
2413
2454
  const parsedBody = parsedOutput.body;
2455
+ const $metadata = deserializeMetadata(output);
2456
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2414
2457
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
2415
- name: parsedBody.code || parsedBody.Code || errorCode,
2458
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2416
2459
  $fault: "client",
2417
- $metadata: deserializeMetadata(output),
2460
+ $metadata,
2418
2461
  });
2419
2462
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2420
2463
  }
@@ -2439,8 +2482,7 @@ const deserializeAws_json1_1ListDatasetImportJobsCommandError = async (output, c
2439
2482
  body: await parseBody(output.body, context),
2440
2483
  };
2441
2484
  let response;
2442
- let errorCode = "UnknownError";
2443
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2485
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2444
2486
  switch (errorCode) {
2445
2487
  case "InvalidInputException":
2446
2488
  case "com.amazonaws.personalize#InvalidInputException":
@@ -2450,10 +2492,12 @@ const deserializeAws_json1_1ListDatasetImportJobsCommandError = async (output, c
2450
2492
  throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
2451
2493
  default:
2452
2494
  const parsedBody = parsedOutput.body;
2495
+ const $metadata = deserializeMetadata(output);
2496
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2453
2497
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
2454
- name: parsedBody.code || parsedBody.Code || errorCode,
2498
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2455
2499
  $fault: "client",
2456
- $metadata: deserializeMetadata(output),
2500
+ $metadata,
2457
2501
  });
2458
2502
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2459
2503
  }
@@ -2478,8 +2522,7 @@ const deserializeAws_json1_1ListDatasetsCommandError = async (output, context) =
2478
2522
  body: await parseBody(output.body, context),
2479
2523
  };
2480
2524
  let response;
2481
- let errorCode = "UnknownError";
2482
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2525
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2483
2526
  switch (errorCode) {
2484
2527
  case "InvalidInputException":
2485
2528
  case "com.amazonaws.personalize#InvalidInputException":
@@ -2489,10 +2532,12 @@ const deserializeAws_json1_1ListDatasetsCommandError = async (output, context) =
2489
2532
  throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
2490
2533
  default:
2491
2534
  const parsedBody = parsedOutput.body;
2535
+ const $metadata = deserializeMetadata(output);
2536
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2492
2537
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
2493
- name: parsedBody.code || parsedBody.Code || errorCode,
2538
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2494
2539
  $fault: "client",
2495
- $metadata: deserializeMetadata(output),
2540
+ $metadata,
2496
2541
  });
2497
2542
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2498
2543
  }
@@ -2517,8 +2562,7 @@ const deserializeAws_json1_1ListEventTrackersCommandError = async (output, conte
2517
2562
  body: await parseBody(output.body, context),
2518
2563
  };
2519
2564
  let response;
2520
- let errorCode = "UnknownError";
2521
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2565
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2522
2566
  switch (errorCode) {
2523
2567
  case "InvalidInputException":
2524
2568
  case "com.amazonaws.personalize#InvalidInputException":
@@ -2528,10 +2572,12 @@ const deserializeAws_json1_1ListEventTrackersCommandError = async (output, conte
2528
2572
  throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
2529
2573
  default:
2530
2574
  const parsedBody = parsedOutput.body;
2575
+ const $metadata = deserializeMetadata(output);
2576
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2531
2577
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
2532
- name: parsedBody.code || parsedBody.Code || errorCode,
2578
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2533
2579
  $fault: "client",
2534
- $metadata: deserializeMetadata(output),
2580
+ $metadata,
2535
2581
  });
2536
2582
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2537
2583
  }
@@ -2556,8 +2602,7 @@ const deserializeAws_json1_1ListFiltersCommandError = async (output, context) =>
2556
2602
  body: await parseBody(output.body, context),
2557
2603
  };
2558
2604
  let response;
2559
- let errorCode = "UnknownError";
2560
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2605
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2561
2606
  switch (errorCode) {
2562
2607
  case "InvalidInputException":
2563
2608
  case "com.amazonaws.personalize#InvalidInputException":
@@ -2567,10 +2612,12 @@ const deserializeAws_json1_1ListFiltersCommandError = async (output, context) =>
2567
2612
  throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
2568
2613
  default:
2569
2614
  const parsedBody = parsedOutput.body;
2615
+ const $metadata = deserializeMetadata(output);
2616
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2570
2617
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
2571
- name: parsedBody.code || parsedBody.Code || errorCode,
2618
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2572
2619
  $fault: "client",
2573
- $metadata: deserializeMetadata(output),
2620
+ $metadata,
2574
2621
  });
2575
2622
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2576
2623
  }
@@ -2595,8 +2642,7 @@ const deserializeAws_json1_1ListRecipesCommandError = async (output, context) =>
2595
2642
  body: await parseBody(output.body, context),
2596
2643
  };
2597
2644
  let response;
2598
- let errorCode = "UnknownError";
2599
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2645
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2600
2646
  switch (errorCode) {
2601
2647
  case "InvalidInputException":
2602
2648
  case "com.amazonaws.personalize#InvalidInputException":
@@ -2606,10 +2652,12 @@ const deserializeAws_json1_1ListRecipesCommandError = async (output, context) =>
2606
2652
  throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
2607
2653
  default:
2608
2654
  const parsedBody = parsedOutput.body;
2655
+ const $metadata = deserializeMetadata(output);
2656
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2609
2657
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
2610
- name: parsedBody.code || parsedBody.Code || errorCode,
2658
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2611
2659
  $fault: "client",
2612
- $metadata: deserializeMetadata(output),
2660
+ $metadata,
2613
2661
  });
2614
2662
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2615
2663
  }
@@ -2634,8 +2682,7 @@ const deserializeAws_json1_1ListRecommendersCommandError = async (output, contex
2634
2682
  body: await parseBody(output.body, context),
2635
2683
  };
2636
2684
  let response;
2637
- let errorCode = "UnknownError";
2638
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2685
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2639
2686
  switch (errorCode) {
2640
2687
  case "InvalidInputException":
2641
2688
  case "com.amazonaws.personalize#InvalidInputException":
@@ -2645,10 +2692,12 @@ const deserializeAws_json1_1ListRecommendersCommandError = async (output, contex
2645
2692
  throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
2646
2693
  default:
2647
2694
  const parsedBody = parsedOutput.body;
2695
+ const $metadata = deserializeMetadata(output);
2696
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2648
2697
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
2649
- name: parsedBody.code || parsedBody.Code || errorCode,
2698
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2650
2699
  $fault: "client",
2651
- $metadata: deserializeMetadata(output),
2700
+ $metadata,
2652
2701
  });
2653
2702
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2654
2703
  }
@@ -2673,18 +2722,19 @@ const deserializeAws_json1_1ListSchemasCommandError = async (output, context) =>
2673
2722
  body: await parseBody(output.body, context),
2674
2723
  };
2675
2724
  let response;
2676
- let errorCode = "UnknownError";
2677
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2725
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2678
2726
  switch (errorCode) {
2679
2727
  case "InvalidNextTokenException":
2680
2728
  case "com.amazonaws.personalize#InvalidNextTokenException":
2681
2729
  throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
2682
2730
  default:
2683
2731
  const parsedBody = parsedOutput.body;
2732
+ const $metadata = deserializeMetadata(output);
2733
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2684
2734
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
2685
- name: parsedBody.code || parsedBody.Code || errorCode,
2735
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2686
2736
  $fault: "client",
2687
- $metadata: deserializeMetadata(output),
2737
+ $metadata,
2688
2738
  });
2689
2739
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2690
2740
  }
@@ -2709,8 +2759,7 @@ const deserializeAws_json1_1ListSolutionsCommandError = async (output, context)
2709
2759
  body: await parseBody(output.body, context),
2710
2760
  };
2711
2761
  let response;
2712
- let errorCode = "UnknownError";
2713
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2762
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2714
2763
  switch (errorCode) {
2715
2764
  case "InvalidInputException":
2716
2765
  case "com.amazonaws.personalize#InvalidInputException":
@@ -2720,10 +2769,12 @@ const deserializeAws_json1_1ListSolutionsCommandError = async (output, context)
2720
2769
  throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
2721
2770
  default:
2722
2771
  const parsedBody = parsedOutput.body;
2772
+ const $metadata = deserializeMetadata(output);
2773
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2723
2774
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
2724
- name: parsedBody.code || parsedBody.Code || errorCode,
2775
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2725
2776
  $fault: "client",
2726
- $metadata: deserializeMetadata(output),
2777
+ $metadata,
2727
2778
  });
2728
2779
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2729
2780
  }
@@ -2748,8 +2799,7 @@ const deserializeAws_json1_1ListSolutionVersionsCommandError = async (output, co
2748
2799
  body: await parseBody(output.body, context),
2749
2800
  };
2750
2801
  let response;
2751
- let errorCode = "UnknownError";
2752
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2802
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2753
2803
  switch (errorCode) {
2754
2804
  case "InvalidInputException":
2755
2805
  case "com.amazonaws.personalize#InvalidInputException":
@@ -2762,10 +2812,12 @@ const deserializeAws_json1_1ListSolutionVersionsCommandError = async (output, co
2762
2812
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2763
2813
  default:
2764
2814
  const parsedBody = parsedOutput.body;
2815
+ const $metadata = deserializeMetadata(output);
2816
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2765
2817
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
2766
- name: parsedBody.code || parsedBody.Code || errorCode,
2818
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2767
2819
  $fault: "client",
2768
- $metadata: deserializeMetadata(output),
2820
+ $metadata,
2769
2821
  });
2770
2822
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2771
2823
  }
@@ -2790,8 +2842,7 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
2790
2842
  body: await parseBody(output.body, context),
2791
2843
  };
2792
2844
  let response;
2793
- let errorCode = "UnknownError";
2794
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2845
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2795
2846
  switch (errorCode) {
2796
2847
  case "InvalidInputException":
2797
2848
  case "com.amazonaws.personalize#InvalidInputException":
@@ -2804,10 +2855,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
2804
2855
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2805
2856
  default:
2806
2857
  const parsedBody = parsedOutput.body;
2858
+ const $metadata = deserializeMetadata(output);
2859
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2807
2860
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
2808
- name: parsedBody.code || parsedBody.Code || errorCode,
2861
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2809
2862
  $fault: "client",
2810
- $metadata: deserializeMetadata(output),
2863
+ $metadata,
2811
2864
  });
2812
2865
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2813
2866
  }
@@ -2832,8 +2885,7 @@ const deserializeAws_json1_1StartRecommenderCommandError = async (output, contex
2832
2885
  body: await parseBody(output.body, context),
2833
2886
  };
2834
2887
  let response;
2835
- let errorCode = "UnknownError";
2836
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2888
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2837
2889
  switch (errorCode) {
2838
2890
  case "InvalidInputException":
2839
2891
  case "com.amazonaws.personalize#InvalidInputException":
@@ -2846,10 +2898,12 @@ const deserializeAws_json1_1StartRecommenderCommandError = async (output, contex
2846
2898
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2847
2899
  default:
2848
2900
  const parsedBody = parsedOutput.body;
2901
+ const $metadata = deserializeMetadata(output);
2902
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2849
2903
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
2850
- name: parsedBody.code || parsedBody.Code || errorCode,
2904
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2851
2905
  $fault: "client",
2852
- $metadata: deserializeMetadata(output),
2906
+ $metadata,
2853
2907
  });
2854
2908
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2855
2909
  }
@@ -2874,8 +2928,7 @@ const deserializeAws_json1_1StopRecommenderCommandError = async (output, context
2874
2928
  body: await parseBody(output.body, context),
2875
2929
  };
2876
2930
  let response;
2877
- let errorCode = "UnknownError";
2878
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2931
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2879
2932
  switch (errorCode) {
2880
2933
  case "InvalidInputException":
2881
2934
  case "com.amazonaws.personalize#InvalidInputException":
@@ -2888,10 +2941,12 @@ const deserializeAws_json1_1StopRecommenderCommandError = async (output, context
2888
2941
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2889
2942
  default:
2890
2943
  const parsedBody = parsedOutput.body;
2944
+ const $metadata = deserializeMetadata(output);
2945
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2891
2946
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
2892
- name: parsedBody.code || parsedBody.Code || errorCode,
2947
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2893
2948
  $fault: "client",
2894
- $metadata: deserializeMetadata(output),
2949
+ $metadata,
2895
2950
  });
2896
2951
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2897
2952
  }
@@ -2913,8 +2968,7 @@ const deserializeAws_json1_1StopSolutionVersionCreationCommandError = async (out
2913
2968
  body: await parseBody(output.body, context),
2914
2969
  };
2915
2970
  let response;
2916
- let errorCode = "UnknownError";
2917
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2971
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2918
2972
  switch (errorCode) {
2919
2973
  case "InvalidInputException":
2920
2974
  case "com.amazonaws.personalize#InvalidInputException":
@@ -2927,10 +2981,12 @@ const deserializeAws_json1_1StopSolutionVersionCreationCommandError = async (out
2927
2981
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2928
2982
  default:
2929
2983
  const parsedBody = parsedOutput.body;
2984
+ const $metadata = deserializeMetadata(output);
2985
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2930
2986
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
2931
- name: parsedBody.code || parsedBody.Code || errorCode,
2987
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2932
2988
  $fault: "client",
2933
- $metadata: deserializeMetadata(output),
2989
+ $metadata,
2934
2990
  });
2935
2991
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2936
2992
  }
@@ -2955,8 +3011,7 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
2955
3011
  body: await parseBody(output.body, context),
2956
3012
  };
2957
3013
  let response;
2958
- let errorCode = "UnknownError";
2959
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3014
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2960
3015
  switch (errorCode) {
2961
3016
  case "InvalidInputException":
2962
3017
  case "com.amazonaws.personalize#InvalidInputException":
@@ -2975,10 +3030,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
2975
3030
  throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
2976
3031
  default:
2977
3032
  const parsedBody = parsedOutput.body;
3033
+ const $metadata = deserializeMetadata(output);
3034
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2978
3035
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
2979
- name: parsedBody.code || parsedBody.Code || errorCode,
3036
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2980
3037
  $fault: "client",
2981
- $metadata: deserializeMetadata(output),
3038
+ $metadata,
2982
3039
  });
2983
3040
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2984
3041
  }
@@ -3003,8 +3060,7 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
3003
3060
  body: await parseBody(output.body, context),
3004
3061
  };
3005
3062
  let response;
3006
- let errorCode = "UnknownError";
3007
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3063
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3008
3064
  switch (errorCode) {
3009
3065
  case "InvalidInputException":
3010
3066
  case "com.amazonaws.personalize#InvalidInputException":
@@ -3020,10 +3076,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
3020
3076
  throw await deserializeAws_json1_1TooManyTagKeysExceptionResponse(parsedOutput, context);
3021
3077
  default:
3022
3078
  const parsedBody = parsedOutput.body;
3079
+ const $metadata = deserializeMetadata(output);
3080
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3023
3081
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
3024
- name: parsedBody.code || parsedBody.Code || errorCode,
3082
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3025
3083
  $fault: "client",
3026
- $metadata: deserializeMetadata(output),
3084
+ $metadata,
3027
3085
  });
3028
3086
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3029
3087
  }
@@ -3048,8 +3106,7 @@ const deserializeAws_json1_1UpdateCampaignCommandError = async (output, context)
3048
3106
  body: await parseBody(output.body, context),
3049
3107
  };
3050
3108
  let response;
3051
- let errorCode = "UnknownError";
3052
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3109
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3053
3110
  switch (errorCode) {
3054
3111
  case "InvalidInputException":
3055
3112
  case "com.amazonaws.personalize#InvalidInputException":
@@ -3062,10 +3119,12 @@ const deserializeAws_json1_1UpdateCampaignCommandError = async (output, context)
3062
3119
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
3063
3120
  default:
3064
3121
  const parsedBody = parsedOutput.body;
3122
+ const $metadata = deserializeMetadata(output);
3123
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3065
3124
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
3066
- name: parsedBody.code || parsedBody.Code || errorCode,
3125
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3067
3126
  $fault: "client",
3068
- $metadata: deserializeMetadata(output),
3127
+ $metadata,
3069
3128
  });
3070
3129
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3071
3130
  }
@@ -3090,8 +3149,7 @@ const deserializeAws_json1_1UpdateRecommenderCommandError = async (output, conte
3090
3149
  body: await parseBody(output.body, context),
3091
3150
  };
3092
3151
  let response;
3093
- let errorCode = "UnknownError";
3094
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3152
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3095
3153
  switch (errorCode) {
3096
3154
  case "InvalidInputException":
3097
3155
  case "com.amazonaws.personalize#InvalidInputException":
@@ -3104,10 +3162,12 @@ const deserializeAws_json1_1UpdateRecommenderCommandError = async (output, conte
3104
3162
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
3105
3163
  default:
3106
3164
  const parsedBody = parsedOutput.body;
3165
+ const $metadata = deserializeMetadata(output);
3166
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3107
3167
  response = new PersonalizeServiceException_1.PersonalizeServiceException({
3108
- name: parsedBody.code || parsedBody.Code || errorCode,
3168
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3109
3169
  $fault: "client",
3110
- $metadata: deserializeMetadata(output),
3170
+ $metadata,
3111
3171
  });
3112
3172
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3113
3173
  }
@@ -3196,60 +3256,52 @@ const serializeAws_json1_1ArnList = (input, context) => {
3196
3256
  };
3197
3257
  const serializeAws_json1_1AutoMLConfig = (input, context) => {
3198
3258
  return {
3199
- ...(input.metricName !== undefined && input.metricName !== null && { metricName: input.metricName }),
3200
- ...(input.recipeList !== undefined &&
3201
- input.recipeList !== null && { recipeList: serializeAws_json1_1ArnList(input.recipeList, context) }),
3259
+ ...(input.metricName != null && { metricName: input.metricName }),
3260
+ ...(input.recipeList != null && { recipeList: serializeAws_json1_1ArnList(input.recipeList, context) }),
3202
3261
  };
3203
3262
  };
3204
3263
  const serializeAws_json1_1BatchInferenceJobConfig = (input, context) => {
3205
3264
  return {
3206
- ...(input.itemExplorationConfig !== undefined &&
3207
- input.itemExplorationConfig !== null && {
3265
+ ...(input.itemExplorationConfig != null && {
3208
3266
  itemExplorationConfig: serializeAws_json1_1HyperParameters(input.itemExplorationConfig, context),
3209
3267
  }),
3210
3268
  };
3211
3269
  };
3212
3270
  const serializeAws_json1_1BatchInferenceJobInput = (input, context) => {
3213
3271
  return {
3214
- ...(input.s3DataSource !== undefined &&
3215
- input.s3DataSource !== null && { s3DataSource: serializeAws_json1_1S3DataConfig(input.s3DataSource, context) }),
3272
+ ...(input.s3DataSource != null && { s3DataSource: serializeAws_json1_1S3DataConfig(input.s3DataSource, context) }),
3216
3273
  };
3217
3274
  };
3218
3275
  const serializeAws_json1_1BatchInferenceJobOutput = (input, context) => {
3219
3276
  return {
3220
- ...(input.s3DataDestination !== undefined &&
3221
- input.s3DataDestination !== null && {
3277
+ ...(input.s3DataDestination != null && {
3222
3278
  s3DataDestination: serializeAws_json1_1S3DataConfig(input.s3DataDestination, context),
3223
3279
  }),
3224
3280
  };
3225
3281
  };
3226
3282
  const serializeAws_json1_1BatchSegmentJobInput = (input, context) => {
3227
3283
  return {
3228
- ...(input.s3DataSource !== undefined &&
3229
- input.s3DataSource !== null && { s3DataSource: serializeAws_json1_1S3DataConfig(input.s3DataSource, context) }),
3284
+ ...(input.s3DataSource != null && { s3DataSource: serializeAws_json1_1S3DataConfig(input.s3DataSource, context) }),
3230
3285
  };
3231
3286
  };
3232
3287
  const serializeAws_json1_1BatchSegmentJobOutput = (input, context) => {
3233
3288
  return {
3234
- ...(input.s3DataDestination !== undefined &&
3235
- input.s3DataDestination !== null && {
3289
+ ...(input.s3DataDestination != null && {
3236
3290
  s3DataDestination: serializeAws_json1_1S3DataConfig(input.s3DataDestination, context),
3237
3291
  }),
3238
3292
  };
3239
3293
  };
3240
3294
  const serializeAws_json1_1CampaignConfig = (input, context) => {
3241
3295
  return {
3242
- ...(input.itemExplorationConfig !== undefined &&
3243
- input.itemExplorationConfig !== null && {
3296
+ ...(input.itemExplorationConfig != null && {
3244
3297
  itemExplorationConfig: serializeAws_json1_1HyperParameters(input.itemExplorationConfig, context),
3245
3298
  }),
3246
3299
  };
3247
3300
  };
3248
3301
  const serializeAws_json1_1CategoricalHyperParameterRange = (input, context) => {
3249
3302
  return {
3250
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
3251
- ...(input.values !== undefined &&
3252
- input.values !== null && { values: serializeAws_json1_1CategoricalValues(input.values, context) }),
3303
+ ...(input.name != null && { name: input.name }),
3304
+ ...(input.values != null && { values: serializeAws_json1_1CategoricalValues(input.values, context) }),
3253
3305
  };
3254
3306
  };
3255
3307
  const serializeAws_json1_1CategoricalHyperParameterRanges = (input, context) => {
@@ -3274,9 +3326,9 @@ const serializeAws_json1_1CategoricalValues = (input, context) => {
3274
3326
  };
3275
3327
  const serializeAws_json1_1ContinuousHyperParameterRange = (input, context) => {
3276
3328
  return {
3277
- ...(input.maxValue !== undefined && input.maxValue !== null && { maxValue: (0, smithy_client_1.serializeFloat)(input.maxValue) }),
3278
- ...(input.minValue !== undefined && input.minValue !== null && { minValue: (0, smithy_client_1.serializeFloat)(input.minValue) }),
3279
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
3329
+ ...(input.maxValue != null && { maxValue: (0, smithy_client_1.serializeFloat)(input.maxValue) }),
3330
+ ...(input.minValue != null && { minValue: (0, smithy_client_1.serializeFloat)(input.minValue) }),
3331
+ ...(input.name != null && { name: input.name }),
3280
3332
  };
3281
3333
  };
3282
3334
  const serializeAws_json1_1ContinuousHyperParameterRanges = (input, context) => {
@@ -3291,296 +3343,265 @@ const serializeAws_json1_1ContinuousHyperParameterRanges = (input, context) => {
3291
3343
  };
3292
3344
  const serializeAws_json1_1CreateBatchInferenceJobRequest = (input, context) => {
3293
3345
  return {
3294
- ...(input.batchInferenceJobConfig !== undefined &&
3295
- input.batchInferenceJobConfig !== null && {
3346
+ ...(input.batchInferenceJobConfig != null && {
3296
3347
  batchInferenceJobConfig: serializeAws_json1_1BatchInferenceJobConfig(input.batchInferenceJobConfig, context),
3297
3348
  }),
3298
- ...(input.filterArn !== undefined && input.filterArn !== null && { filterArn: input.filterArn }),
3299
- ...(input.jobInput !== undefined &&
3300
- input.jobInput !== null && { jobInput: serializeAws_json1_1BatchInferenceJobInput(input.jobInput, context) }),
3301
- ...(input.jobName !== undefined && input.jobName !== null && { jobName: input.jobName }),
3302
- ...(input.jobOutput !== undefined &&
3303
- input.jobOutput !== null && { jobOutput: serializeAws_json1_1BatchInferenceJobOutput(input.jobOutput, context) }),
3304
- ...(input.numResults !== undefined && input.numResults !== null && { numResults: input.numResults }),
3305
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
3306
- ...(input.solutionVersionArn !== undefined &&
3307
- input.solutionVersionArn !== null && { solutionVersionArn: input.solutionVersionArn }),
3308
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3349
+ ...(input.filterArn != null && { filterArn: input.filterArn }),
3350
+ ...(input.jobInput != null && { jobInput: serializeAws_json1_1BatchInferenceJobInput(input.jobInput, context) }),
3351
+ ...(input.jobName != null && { jobName: input.jobName }),
3352
+ ...(input.jobOutput != null && {
3353
+ jobOutput: serializeAws_json1_1BatchInferenceJobOutput(input.jobOutput, context),
3354
+ }),
3355
+ ...(input.numResults != null && { numResults: input.numResults }),
3356
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
3357
+ ...(input.solutionVersionArn != null && { solutionVersionArn: input.solutionVersionArn }),
3358
+ ...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3309
3359
  };
3310
3360
  };
3311
3361
  const serializeAws_json1_1CreateBatchSegmentJobRequest = (input, context) => {
3312
3362
  return {
3313
- ...(input.filterArn !== undefined && input.filterArn !== null && { filterArn: input.filterArn }),
3314
- ...(input.jobInput !== undefined &&
3315
- input.jobInput !== null && { jobInput: serializeAws_json1_1BatchSegmentJobInput(input.jobInput, context) }),
3316
- ...(input.jobName !== undefined && input.jobName !== null && { jobName: input.jobName }),
3317
- ...(input.jobOutput !== undefined &&
3318
- input.jobOutput !== null && { jobOutput: serializeAws_json1_1BatchSegmentJobOutput(input.jobOutput, context) }),
3319
- ...(input.numResults !== undefined && input.numResults !== null && { numResults: input.numResults }),
3320
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
3321
- ...(input.solutionVersionArn !== undefined &&
3322
- input.solutionVersionArn !== null && { solutionVersionArn: input.solutionVersionArn }),
3323
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3363
+ ...(input.filterArn != null && { filterArn: input.filterArn }),
3364
+ ...(input.jobInput != null && { jobInput: serializeAws_json1_1BatchSegmentJobInput(input.jobInput, context) }),
3365
+ ...(input.jobName != null && { jobName: input.jobName }),
3366
+ ...(input.jobOutput != null && { jobOutput: serializeAws_json1_1BatchSegmentJobOutput(input.jobOutput, context) }),
3367
+ ...(input.numResults != null && { numResults: input.numResults }),
3368
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
3369
+ ...(input.solutionVersionArn != null && { solutionVersionArn: input.solutionVersionArn }),
3370
+ ...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3324
3371
  };
3325
3372
  };
3326
3373
  const serializeAws_json1_1CreateCampaignRequest = (input, context) => {
3327
3374
  return {
3328
- ...(input.campaignConfig !== undefined &&
3329
- input.campaignConfig !== null && {
3375
+ ...(input.campaignConfig != null && {
3330
3376
  campaignConfig: serializeAws_json1_1CampaignConfig(input.campaignConfig, context),
3331
3377
  }),
3332
- ...(input.minProvisionedTPS !== undefined &&
3333
- input.minProvisionedTPS !== null && { minProvisionedTPS: input.minProvisionedTPS }),
3334
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
3335
- ...(input.solutionVersionArn !== undefined &&
3336
- input.solutionVersionArn !== null && { solutionVersionArn: input.solutionVersionArn }),
3337
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3378
+ ...(input.minProvisionedTPS != null && { minProvisionedTPS: input.minProvisionedTPS }),
3379
+ ...(input.name != null && { name: input.name }),
3380
+ ...(input.solutionVersionArn != null && { solutionVersionArn: input.solutionVersionArn }),
3381
+ ...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3338
3382
  };
3339
3383
  };
3340
3384
  const serializeAws_json1_1CreateDatasetExportJobRequest = (input, context) => {
3341
3385
  return {
3342
- ...(input.datasetArn !== undefined && input.datasetArn !== null && { datasetArn: input.datasetArn }),
3343
- ...(input.ingestionMode !== undefined && input.ingestionMode !== null && { ingestionMode: input.ingestionMode }),
3344
- ...(input.jobName !== undefined && input.jobName !== null && { jobName: input.jobName }),
3345
- ...(input.jobOutput !== undefined &&
3346
- input.jobOutput !== null && { jobOutput: serializeAws_json1_1DatasetExportJobOutput(input.jobOutput, context) }),
3347
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
3348
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3386
+ ...(input.datasetArn != null && { datasetArn: input.datasetArn }),
3387
+ ...(input.ingestionMode != null && { ingestionMode: input.ingestionMode }),
3388
+ ...(input.jobName != null && { jobName: input.jobName }),
3389
+ ...(input.jobOutput != null && { jobOutput: serializeAws_json1_1DatasetExportJobOutput(input.jobOutput, context) }),
3390
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
3391
+ ...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3349
3392
  };
3350
3393
  };
3351
3394
  const serializeAws_json1_1CreateDatasetGroupRequest = (input, context) => {
3352
3395
  return {
3353
- ...(input.domain !== undefined && input.domain !== null && { domain: input.domain }),
3354
- ...(input.kmsKeyArn !== undefined && input.kmsKeyArn !== null && { kmsKeyArn: input.kmsKeyArn }),
3355
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
3356
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
3357
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3396
+ ...(input.domain != null && { domain: input.domain }),
3397
+ ...(input.kmsKeyArn != null && { kmsKeyArn: input.kmsKeyArn }),
3398
+ ...(input.name != null && { name: input.name }),
3399
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
3400
+ ...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3358
3401
  };
3359
3402
  };
3360
3403
  const serializeAws_json1_1CreateDatasetImportJobRequest = (input, context) => {
3361
3404
  return {
3362
- ...(input.dataSource !== undefined &&
3363
- input.dataSource !== null && { dataSource: serializeAws_json1_1DataSource(input.dataSource, context) }),
3364
- ...(input.datasetArn !== undefined && input.datasetArn !== null && { datasetArn: input.datasetArn }),
3365
- ...(input.jobName !== undefined && input.jobName !== null && { jobName: input.jobName }),
3366
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
3367
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3405
+ ...(input.dataSource != null && { dataSource: serializeAws_json1_1DataSource(input.dataSource, context) }),
3406
+ ...(input.datasetArn != null && { datasetArn: input.datasetArn }),
3407
+ ...(input.jobName != null && { jobName: input.jobName }),
3408
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
3409
+ ...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3368
3410
  };
3369
3411
  };
3370
3412
  const serializeAws_json1_1CreateDatasetRequest = (input, context) => {
3371
3413
  return {
3372
- ...(input.datasetGroupArn !== undefined &&
3373
- input.datasetGroupArn !== null && { datasetGroupArn: input.datasetGroupArn }),
3374
- ...(input.datasetType !== undefined && input.datasetType !== null && { datasetType: input.datasetType }),
3375
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
3376
- ...(input.schemaArn !== undefined && input.schemaArn !== null && { schemaArn: input.schemaArn }),
3377
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3414
+ ...(input.datasetGroupArn != null && { datasetGroupArn: input.datasetGroupArn }),
3415
+ ...(input.datasetType != null && { datasetType: input.datasetType }),
3416
+ ...(input.name != null && { name: input.name }),
3417
+ ...(input.schemaArn != null && { schemaArn: input.schemaArn }),
3418
+ ...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3378
3419
  };
3379
3420
  };
3380
3421
  const serializeAws_json1_1CreateEventTrackerRequest = (input, context) => {
3381
3422
  return {
3382
- ...(input.datasetGroupArn !== undefined &&
3383
- input.datasetGroupArn !== null && { datasetGroupArn: input.datasetGroupArn }),
3384
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
3385
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3423
+ ...(input.datasetGroupArn != null && { datasetGroupArn: input.datasetGroupArn }),
3424
+ ...(input.name != null && { name: input.name }),
3425
+ ...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3386
3426
  };
3387
3427
  };
3388
3428
  const serializeAws_json1_1CreateFilterRequest = (input, context) => {
3389
3429
  return {
3390
- ...(input.datasetGroupArn !== undefined &&
3391
- input.datasetGroupArn !== null && { datasetGroupArn: input.datasetGroupArn }),
3392
- ...(input.filterExpression !== undefined &&
3393
- input.filterExpression !== null && { filterExpression: input.filterExpression }),
3394
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
3395
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3430
+ ...(input.datasetGroupArn != null && { datasetGroupArn: input.datasetGroupArn }),
3431
+ ...(input.filterExpression != null && { filterExpression: input.filterExpression }),
3432
+ ...(input.name != null && { name: input.name }),
3433
+ ...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3396
3434
  };
3397
3435
  };
3398
3436
  const serializeAws_json1_1CreateRecommenderRequest = (input, context) => {
3399
3437
  return {
3400
- ...(input.datasetGroupArn !== undefined &&
3401
- input.datasetGroupArn !== null && { datasetGroupArn: input.datasetGroupArn }),
3402
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
3403
- ...(input.recipeArn !== undefined && input.recipeArn !== null && { recipeArn: input.recipeArn }),
3404
- ...(input.recommenderConfig !== undefined &&
3405
- input.recommenderConfig !== null && {
3438
+ ...(input.datasetGroupArn != null && { datasetGroupArn: input.datasetGroupArn }),
3439
+ ...(input.name != null && { name: input.name }),
3440
+ ...(input.recipeArn != null && { recipeArn: input.recipeArn }),
3441
+ ...(input.recommenderConfig != null && {
3406
3442
  recommenderConfig: serializeAws_json1_1RecommenderConfig(input.recommenderConfig, context),
3407
3443
  }),
3408
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3444
+ ...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3409
3445
  };
3410
3446
  };
3411
3447
  const serializeAws_json1_1CreateSchemaRequest = (input, context) => {
3412
3448
  return {
3413
- ...(input.domain !== undefined && input.domain !== null && { domain: input.domain }),
3414
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
3415
- ...(input.schema !== undefined && input.schema !== null && { schema: input.schema }),
3449
+ ...(input.domain != null && { domain: input.domain }),
3450
+ ...(input.name != null && { name: input.name }),
3451
+ ...(input.schema != null && { schema: input.schema }),
3416
3452
  };
3417
3453
  };
3418
3454
  const serializeAws_json1_1CreateSolutionRequest = (input, context) => {
3419
3455
  return {
3420
- ...(input.datasetGroupArn !== undefined &&
3421
- input.datasetGroupArn !== null && { datasetGroupArn: input.datasetGroupArn }),
3422
- ...(input.eventType !== undefined && input.eventType !== null && { eventType: input.eventType }),
3423
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
3424
- ...(input.performAutoML !== undefined && input.performAutoML !== null && { performAutoML: input.performAutoML }),
3425
- ...(input.performHPO !== undefined && input.performHPO !== null && { performHPO: input.performHPO }),
3426
- ...(input.recipeArn !== undefined && input.recipeArn !== null && { recipeArn: input.recipeArn }),
3427
- ...(input.solutionConfig !== undefined &&
3428
- input.solutionConfig !== null && {
3456
+ ...(input.datasetGroupArn != null && { datasetGroupArn: input.datasetGroupArn }),
3457
+ ...(input.eventType != null && { eventType: input.eventType }),
3458
+ ...(input.name != null && { name: input.name }),
3459
+ ...(input.performAutoML != null && { performAutoML: input.performAutoML }),
3460
+ ...(input.performHPO != null && { performHPO: input.performHPO }),
3461
+ ...(input.recipeArn != null && { recipeArn: input.recipeArn }),
3462
+ ...(input.solutionConfig != null && {
3429
3463
  solutionConfig: serializeAws_json1_1SolutionConfig(input.solutionConfig, context),
3430
3464
  }),
3431
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3465
+ ...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3432
3466
  };
3433
3467
  };
3434
3468
  const serializeAws_json1_1CreateSolutionVersionRequest = (input, context) => {
3435
3469
  return {
3436
- ...(input.solutionArn !== undefined && input.solutionArn !== null && { solutionArn: input.solutionArn }),
3437
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3438
- ...(input.trainingMode !== undefined && input.trainingMode !== null && { trainingMode: input.trainingMode }),
3470
+ ...(input.solutionArn != null && { solutionArn: input.solutionArn }),
3471
+ ...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3472
+ ...(input.trainingMode != null && { trainingMode: input.trainingMode }),
3439
3473
  };
3440
3474
  };
3441
3475
  const serializeAws_json1_1DatasetExportJobOutput = (input, context) => {
3442
3476
  return {
3443
- ...(input.s3DataDestination !== undefined &&
3444
- input.s3DataDestination !== null && {
3477
+ ...(input.s3DataDestination != null && {
3445
3478
  s3DataDestination: serializeAws_json1_1S3DataConfig(input.s3DataDestination, context),
3446
3479
  }),
3447
3480
  };
3448
3481
  };
3449
3482
  const serializeAws_json1_1DataSource = (input, context) => {
3450
3483
  return {
3451
- ...(input.dataLocation !== undefined && input.dataLocation !== null && { dataLocation: input.dataLocation }),
3484
+ ...(input.dataLocation != null && { dataLocation: input.dataLocation }),
3452
3485
  };
3453
3486
  };
3454
3487
  const serializeAws_json1_1DeleteCampaignRequest = (input, context) => {
3455
3488
  return {
3456
- ...(input.campaignArn !== undefined && input.campaignArn !== null && { campaignArn: input.campaignArn }),
3489
+ ...(input.campaignArn != null && { campaignArn: input.campaignArn }),
3457
3490
  };
3458
3491
  };
3459
3492
  const serializeAws_json1_1DeleteDatasetGroupRequest = (input, context) => {
3460
3493
  return {
3461
- ...(input.datasetGroupArn !== undefined &&
3462
- input.datasetGroupArn !== null && { datasetGroupArn: input.datasetGroupArn }),
3494
+ ...(input.datasetGroupArn != null && { datasetGroupArn: input.datasetGroupArn }),
3463
3495
  };
3464
3496
  };
3465
3497
  const serializeAws_json1_1DeleteDatasetRequest = (input, context) => {
3466
3498
  return {
3467
- ...(input.datasetArn !== undefined && input.datasetArn !== null && { datasetArn: input.datasetArn }),
3499
+ ...(input.datasetArn != null && { datasetArn: input.datasetArn }),
3468
3500
  };
3469
3501
  };
3470
3502
  const serializeAws_json1_1DeleteEventTrackerRequest = (input, context) => {
3471
3503
  return {
3472
- ...(input.eventTrackerArn !== undefined &&
3473
- input.eventTrackerArn !== null && { eventTrackerArn: input.eventTrackerArn }),
3504
+ ...(input.eventTrackerArn != null && { eventTrackerArn: input.eventTrackerArn }),
3474
3505
  };
3475
3506
  };
3476
3507
  const serializeAws_json1_1DeleteFilterRequest = (input, context) => {
3477
3508
  return {
3478
- ...(input.filterArn !== undefined && input.filterArn !== null && { filterArn: input.filterArn }),
3509
+ ...(input.filterArn != null && { filterArn: input.filterArn }),
3479
3510
  };
3480
3511
  };
3481
3512
  const serializeAws_json1_1DeleteRecommenderRequest = (input, context) => {
3482
3513
  return {
3483
- ...(input.recommenderArn !== undefined &&
3484
- input.recommenderArn !== null && { recommenderArn: input.recommenderArn }),
3514
+ ...(input.recommenderArn != null && { recommenderArn: input.recommenderArn }),
3485
3515
  };
3486
3516
  };
3487
3517
  const serializeAws_json1_1DeleteSchemaRequest = (input, context) => {
3488
3518
  return {
3489
- ...(input.schemaArn !== undefined && input.schemaArn !== null && { schemaArn: input.schemaArn }),
3519
+ ...(input.schemaArn != null && { schemaArn: input.schemaArn }),
3490
3520
  };
3491
3521
  };
3492
3522
  const serializeAws_json1_1DeleteSolutionRequest = (input, context) => {
3493
3523
  return {
3494
- ...(input.solutionArn !== undefined && input.solutionArn !== null && { solutionArn: input.solutionArn }),
3524
+ ...(input.solutionArn != null && { solutionArn: input.solutionArn }),
3495
3525
  };
3496
3526
  };
3497
3527
  const serializeAws_json1_1DescribeAlgorithmRequest = (input, context) => {
3498
3528
  return {
3499
- ...(input.algorithmArn !== undefined && input.algorithmArn !== null && { algorithmArn: input.algorithmArn }),
3529
+ ...(input.algorithmArn != null && { algorithmArn: input.algorithmArn }),
3500
3530
  };
3501
3531
  };
3502
3532
  const serializeAws_json1_1DescribeBatchInferenceJobRequest = (input, context) => {
3503
3533
  return {
3504
- ...(input.batchInferenceJobArn !== undefined &&
3505
- input.batchInferenceJobArn !== null && { batchInferenceJobArn: input.batchInferenceJobArn }),
3534
+ ...(input.batchInferenceJobArn != null && { batchInferenceJobArn: input.batchInferenceJobArn }),
3506
3535
  };
3507
3536
  };
3508
3537
  const serializeAws_json1_1DescribeBatchSegmentJobRequest = (input, context) => {
3509
3538
  return {
3510
- ...(input.batchSegmentJobArn !== undefined &&
3511
- input.batchSegmentJobArn !== null && { batchSegmentJobArn: input.batchSegmentJobArn }),
3539
+ ...(input.batchSegmentJobArn != null && { batchSegmentJobArn: input.batchSegmentJobArn }),
3512
3540
  };
3513
3541
  };
3514
3542
  const serializeAws_json1_1DescribeCampaignRequest = (input, context) => {
3515
3543
  return {
3516
- ...(input.campaignArn !== undefined && input.campaignArn !== null && { campaignArn: input.campaignArn }),
3544
+ ...(input.campaignArn != null && { campaignArn: input.campaignArn }),
3517
3545
  };
3518
3546
  };
3519
3547
  const serializeAws_json1_1DescribeDatasetExportJobRequest = (input, context) => {
3520
3548
  return {
3521
- ...(input.datasetExportJobArn !== undefined &&
3522
- input.datasetExportJobArn !== null && { datasetExportJobArn: input.datasetExportJobArn }),
3549
+ ...(input.datasetExportJobArn != null && { datasetExportJobArn: input.datasetExportJobArn }),
3523
3550
  };
3524
3551
  };
3525
3552
  const serializeAws_json1_1DescribeDatasetGroupRequest = (input, context) => {
3526
3553
  return {
3527
- ...(input.datasetGroupArn !== undefined &&
3528
- input.datasetGroupArn !== null && { datasetGroupArn: input.datasetGroupArn }),
3554
+ ...(input.datasetGroupArn != null && { datasetGroupArn: input.datasetGroupArn }),
3529
3555
  };
3530
3556
  };
3531
3557
  const serializeAws_json1_1DescribeDatasetImportJobRequest = (input, context) => {
3532
3558
  return {
3533
- ...(input.datasetImportJobArn !== undefined &&
3534
- input.datasetImportJobArn !== null && { datasetImportJobArn: input.datasetImportJobArn }),
3559
+ ...(input.datasetImportJobArn != null && { datasetImportJobArn: input.datasetImportJobArn }),
3535
3560
  };
3536
3561
  };
3537
3562
  const serializeAws_json1_1DescribeDatasetRequest = (input, context) => {
3538
3563
  return {
3539
- ...(input.datasetArn !== undefined && input.datasetArn !== null && { datasetArn: input.datasetArn }),
3564
+ ...(input.datasetArn != null && { datasetArn: input.datasetArn }),
3540
3565
  };
3541
3566
  };
3542
3567
  const serializeAws_json1_1DescribeEventTrackerRequest = (input, context) => {
3543
3568
  return {
3544
- ...(input.eventTrackerArn !== undefined &&
3545
- input.eventTrackerArn !== null && { eventTrackerArn: input.eventTrackerArn }),
3569
+ ...(input.eventTrackerArn != null && { eventTrackerArn: input.eventTrackerArn }),
3546
3570
  };
3547
3571
  };
3548
3572
  const serializeAws_json1_1DescribeFeatureTransformationRequest = (input, context) => {
3549
3573
  return {
3550
- ...(input.featureTransformationArn !== undefined &&
3551
- input.featureTransformationArn !== null && { featureTransformationArn: input.featureTransformationArn }),
3574
+ ...(input.featureTransformationArn != null && { featureTransformationArn: input.featureTransformationArn }),
3552
3575
  };
3553
3576
  };
3554
3577
  const serializeAws_json1_1DescribeFilterRequest = (input, context) => {
3555
3578
  return {
3556
- ...(input.filterArn !== undefined && input.filterArn !== null && { filterArn: input.filterArn }),
3579
+ ...(input.filterArn != null && { filterArn: input.filterArn }),
3557
3580
  };
3558
3581
  };
3559
3582
  const serializeAws_json1_1DescribeRecipeRequest = (input, context) => {
3560
3583
  return {
3561
- ...(input.recipeArn !== undefined && input.recipeArn !== null && { recipeArn: input.recipeArn }),
3584
+ ...(input.recipeArn != null && { recipeArn: input.recipeArn }),
3562
3585
  };
3563
3586
  };
3564
3587
  const serializeAws_json1_1DescribeRecommenderRequest = (input, context) => {
3565
3588
  return {
3566
- ...(input.recommenderArn !== undefined &&
3567
- input.recommenderArn !== null && { recommenderArn: input.recommenderArn }),
3589
+ ...(input.recommenderArn != null && { recommenderArn: input.recommenderArn }),
3568
3590
  };
3569
3591
  };
3570
3592
  const serializeAws_json1_1DescribeSchemaRequest = (input, context) => {
3571
3593
  return {
3572
- ...(input.schemaArn !== undefined && input.schemaArn !== null && { schemaArn: input.schemaArn }),
3594
+ ...(input.schemaArn != null && { schemaArn: input.schemaArn }),
3573
3595
  };
3574
3596
  };
3575
3597
  const serializeAws_json1_1DescribeSolutionRequest = (input, context) => {
3576
3598
  return {
3577
- ...(input.solutionArn !== undefined && input.solutionArn !== null && { solutionArn: input.solutionArn }),
3599
+ ...(input.solutionArn != null && { solutionArn: input.solutionArn }),
3578
3600
  };
3579
3601
  };
3580
3602
  const serializeAws_json1_1DescribeSolutionVersionRequest = (input, context) => {
3581
3603
  return {
3582
- ...(input.solutionVersionArn !== undefined &&
3583
- input.solutionVersionArn !== null && { solutionVersionArn: input.solutionVersionArn }),
3604
+ ...(input.solutionVersionArn != null && { solutionVersionArn: input.solutionVersionArn }),
3584
3605
  };
3585
3606
  };
3586
3607
  const serializeAws_json1_1FeatureTransformationParameters = (input, context) => {
@@ -3596,51 +3617,42 @@ const serializeAws_json1_1FeatureTransformationParameters = (input, context) =>
3596
3617
  };
3597
3618
  const serializeAws_json1_1GetSolutionMetricsRequest = (input, context) => {
3598
3619
  return {
3599
- ...(input.solutionVersionArn !== undefined &&
3600
- input.solutionVersionArn !== null && { solutionVersionArn: input.solutionVersionArn }),
3620
+ ...(input.solutionVersionArn != null && { solutionVersionArn: input.solutionVersionArn }),
3601
3621
  };
3602
3622
  };
3603
3623
  const serializeAws_json1_1HPOConfig = (input, context) => {
3604
3624
  return {
3605
- ...(input.algorithmHyperParameterRanges !== undefined &&
3606
- input.algorithmHyperParameterRanges !== null && {
3625
+ ...(input.algorithmHyperParameterRanges != null && {
3607
3626
  algorithmHyperParameterRanges: serializeAws_json1_1HyperParameterRanges(input.algorithmHyperParameterRanges, context),
3608
3627
  }),
3609
- ...(input.hpoObjective !== undefined &&
3610
- input.hpoObjective !== null && { hpoObjective: serializeAws_json1_1HPOObjective(input.hpoObjective, context) }),
3611
- ...(input.hpoResourceConfig !== undefined &&
3612
- input.hpoResourceConfig !== null && {
3628
+ ...(input.hpoObjective != null && { hpoObjective: serializeAws_json1_1HPOObjective(input.hpoObjective, context) }),
3629
+ ...(input.hpoResourceConfig != null && {
3613
3630
  hpoResourceConfig: serializeAws_json1_1HPOResourceConfig(input.hpoResourceConfig, context),
3614
3631
  }),
3615
3632
  };
3616
3633
  };
3617
3634
  const serializeAws_json1_1HPOObjective = (input, context) => {
3618
3635
  return {
3619
- ...(input.metricName !== undefined && input.metricName !== null && { metricName: input.metricName }),
3620
- ...(input.metricRegex !== undefined && input.metricRegex !== null && { metricRegex: input.metricRegex }),
3621
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
3636
+ ...(input.metricName != null && { metricName: input.metricName }),
3637
+ ...(input.metricRegex != null && { metricRegex: input.metricRegex }),
3638
+ ...(input.type != null && { type: input.type }),
3622
3639
  };
3623
3640
  };
3624
3641
  const serializeAws_json1_1HPOResourceConfig = (input, context) => {
3625
3642
  return {
3626
- ...(input.maxNumberOfTrainingJobs !== undefined &&
3627
- input.maxNumberOfTrainingJobs !== null && { maxNumberOfTrainingJobs: input.maxNumberOfTrainingJobs }),
3628
- ...(input.maxParallelTrainingJobs !== undefined &&
3629
- input.maxParallelTrainingJobs !== null && { maxParallelTrainingJobs: input.maxParallelTrainingJobs }),
3643
+ ...(input.maxNumberOfTrainingJobs != null && { maxNumberOfTrainingJobs: input.maxNumberOfTrainingJobs }),
3644
+ ...(input.maxParallelTrainingJobs != null && { maxParallelTrainingJobs: input.maxParallelTrainingJobs }),
3630
3645
  };
3631
3646
  };
3632
3647
  const serializeAws_json1_1HyperParameterRanges = (input, context) => {
3633
3648
  return {
3634
- ...(input.categoricalHyperParameterRanges !== undefined &&
3635
- input.categoricalHyperParameterRanges !== null && {
3649
+ ...(input.categoricalHyperParameterRanges != null && {
3636
3650
  categoricalHyperParameterRanges: serializeAws_json1_1CategoricalHyperParameterRanges(input.categoricalHyperParameterRanges, context),
3637
3651
  }),
3638
- ...(input.continuousHyperParameterRanges !== undefined &&
3639
- input.continuousHyperParameterRanges !== null && {
3652
+ ...(input.continuousHyperParameterRanges != null && {
3640
3653
  continuousHyperParameterRanges: serializeAws_json1_1ContinuousHyperParameterRanges(input.continuousHyperParameterRanges, context),
3641
3654
  }),
3642
- ...(input.integerHyperParameterRanges !== undefined &&
3643
- input.integerHyperParameterRanges !== null && {
3655
+ ...(input.integerHyperParameterRanges != null && {
3644
3656
  integerHyperParameterRanges: serializeAws_json1_1IntegerHyperParameterRanges(input.integerHyperParameterRanges, context),
3645
3657
  }),
3646
3658
  };
@@ -3658,9 +3670,9 @@ const serializeAws_json1_1HyperParameters = (input, context) => {
3658
3670
  };
3659
3671
  const serializeAws_json1_1IntegerHyperParameterRange = (input, context) => {
3660
3672
  return {
3661
- ...(input.maxValue !== undefined && input.maxValue !== null && { maxValue: input.maxValue }),
3662
- ...(input.minValue !== undefined && input.minValue !== null && { minValue: input.minValue }),
3663
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
3673
+ ...(input.maxValue != null && { maxValue: input.maxValue }),
3674
+ ...(input.minValue != null && { minValue: input.minValue }),
3675
+ ...(input.name != null && { name: input.name }),
3664
3676
  };
3665
3677
  };
3666
3678
  const serializeAws_json1_1IntegerHyperParameterRanges = (input, context) => {
@@ -3675,183 +3687,163 @@ const serializeAws_json1_1IntegerHyperParameterRanges = (input, context) => {
3675
3687
  };
3676
3688
  const serializeAws_json1_1ListBatchInferenceJobsRequest = (input, context) => {
3677
3689
  return {
3678
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
3679
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
3680
- ...(input.solutionVersionArn !== undefined &&
3681
- input.solutionVersionArn !== null && { solutionVersionArn: input.solutionVersionArn }),
3690
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3691
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3692
+ ...(input.solutionVersionArn != null && { solutionVersionArn: input.solutionVersionArn }),
3682
3693
  };
3683
3694
  };
3684
3695
  const serializeAws_json1_1ListBatchSegmentJobsRequest = (input, context) => {
3685
3696
  return {
3686
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
3687
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
3688
- ...(input.solutionVersionArn !== undefined &&
3689
- input.solutionVersionArn !== null && { solutionVersionArn: input.solutionVersionArn }),
3697
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3698
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3699
+ ...(input.solutionVersionArn != null && { solutionVersionArn: input.solutionVersionArn }),
3690
3700
  };
3691
3701
  };
3692
3702
  const serializeAws_json1_1ListCampaignsRequest = (input, context) => {
3693
3703
  return {
3694
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
3695
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
3696
- ...(input.solutionArn !== undefined && input.solutionArn !== null && { solutionArn: input.solutionArn }),
3704
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3705
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3706
+ ...(input.solutionArn != null && { solutionArn: input.solutionArn }),
3697
3707
  };
3698
3708
  };
3699
3709
  const serializeAws_json1_1ListDatasetExportJobsRequest = (input, context) => {
3700
3710
  return {
3701
- ...(input.datasetArn !== undefined && input.datasetArn !== null && { datasetArn: input.datasetArn }),
3702
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
3703
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
3711
+ ...(input.datasetArn != null && { datasetArn: input.datasetArn }),
3712
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3713
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3704
3714
  };
3705
3715
  };
3706
3716
  const serializeAws_json1_1ListDatasetGroupsRequest = (input, context) => {
3707
3717
  return {
3708
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
3709
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
3718
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3719
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3710
3720
  };
3711
3721
  };
3712
3722
  const serializeAws_json1_1ListDatasetImportJobsRequest = (input, context) => {
3713
3723
  return {
3714
- ...(input.datasetArn !== undefined && input.datasetArn !== null && { datasetArn: input.datasetArn }),
3715
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
3716
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
3724
+ ...(input.datasetArn != null && { datasetArn: input.datasetArn }),
3725
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3726
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3717
3727
  };
3718
3728
  };
3719
3729
  const serializeAws_json1_1ListDatasetsRequest = (input, context) => {
3720
3730
  return {
3721
- ...(input.datasetGroupArn !== undefined &&
3722
- input.datasetGroupArn !== null && { datasetGroupArn: input.datasetGroupArn }),
3723
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
3724
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
3731
+ ...(input.datasetGroupArn != null && { datasetGroupArn: input.datasetGroupArn }),
3732
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3733
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3725
3734
  };
3726
3735
  };
3727
3736
  const serializeAws_json1_1ListEventTrackersRequest = (input, context) => {
3728
3737
  return {
3729
- ...(input.datasetGroupArn !== undefined &&
3730
- input.datasetGroupArn !== null && { datasetGroupArn: input.datasetGroupArn }),
3731
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
3732
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
3738
+ ...(input.datasetGroupArn != null && { datasetGroupArn: input.datasetGroupArn }),
3739
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3740
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3733
3741
  };
3734
3742
  };
3735
3743
  const serializeAws_json1_1ListFiltersRequest = (input, context) => {
3736
3744
  return {
3737
- ...(input.datasetGroupArn !== undefined &&
3738
- input.datasetGroupArn !== null && { datasetGroupArn: input.datasetGroupArn }),
3739
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
3740
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
3745
+ ...(input.datasetGroupArn != null && { datasetGroupArn: input.datasetGroupArn }),
3746
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3747
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3741
3748
  };
3742
3749
  };
3743
3750
  const serializeAws_json1_1ListRecipesRequest = (input, context) => {
3744
3751
  return {
3745
- ...(input.domain !== undefined && input.domain !== null && { domain: input.domain }),
3746
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
3747
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
3748
- ...(input.recipeProvider !== undefined &&
3749
- input.recipeProvider !== null && { recipeProvider: input.recipeProvider }),
3752
+ ...(input.domain != null && { domain: input.domain }),
3753
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3754
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3755
+ ...(input.recipeProvider != null && { recipeProvider: input.recipeProvider }),
3750
3756
  };
3751
3757
  };
3752
3758
  const serializeAws_json1_1ListRecommendersRequest = (input, context) => {
3753
3759
  return {
3754
- ...(input.datasetGroupArn !== undefined &&
3755
- input.datasetGroupArn !== null && { datasetGroupArn: input.datasetGroupArn }),
3756
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
3757
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
3760
+ ...(input.datasetGroupArn != null && { datasetGroupArn: input.datasetGroupArn }),
3761
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3762
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3758
3763
  };
3759
3764
  };
3760
3765
  const serializeAws_json1_1ListSchemasRequest = (input, context) => {
3761
3766
  return {
3762
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
3763
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
3767
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3768
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3764
3769
  };
3765
3770
  };
3766
3771
  const serializeAws_json1_1ListSolutionsRequest = (input, context) => {
3767
3772
  return {
3768
- ...(input.datasetGroupArn !== undefined &&
3769
- input.datasetGroupArn !== null && { datasetGroupArn: input.datasetGroupArn }),
3770
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
3771
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
3773
+ ...(input.datasetGroupArn != null && { datasetGroupArn: input.datasetGroupArn }),
3774
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3775
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3772
3776
  };
3773
3777
  };
3774
3778
  const serializeAws_json1_1ListSolutionVersionsRequest = (input, context) => {
3775
3779
  return {
3776
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
3777
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
3778
- ...(input.solutionArn !== undefined && input.solutionArn !== null && { solutionArn: input.solutionArn }),
3780
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3781
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3782
+ ...(input.solutionArn != null && { solutionArn: input.solutionArn }),
3779
3783
  };
3780
3784
  };
3781
3785
  const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
3782
3786
  return {
3783
- ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
3787
+ ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
3784
3788
  };
3785
3789
  };
3786
3790
  const serializeAws_json1_1OptimizationObjective = (input, context) => {
3787
3791
  return {
3788
- ...(input.itemAttribute !== undefined && input.itemAttribute !== null && { itemAttribute: input.itemAttribute }),
3789
- ...(input.objectiveSensitivity !== undefined &&
3790
- input.objectiveSensitivity !== null && { objectiveSensitivity: input.objectiveSensitivity }),
3792
+ ...(input.itemAttribute != null && { itemAttribute: input.itemAttribute }),
3793
+ ...(input.objectiveSensitivity != null && { objectiveSensitivity: input.objectiveSensitivity }),
3791
3794
  };
3792
3795
  };
3793
3796
  const serializeAws_json1_1RecommenderConfig = (input, context) => {
3794
3797
  return {
3795
- ...(input.itemExplorationConfig !== undefined &&
3796
- input.itemExplorationConfig !== null && {
3798
+ ...(input.itemExplorationConfig != null && {
3797
3799
  itemExplorationConfig: serializeAws_json1_1HyperParameters(input.itemExplorationConfig, context),
3798
3800
  }),
3799
- ...(input.minRecommendationRequestsPerSecond !== undefined &&
3800
- input.minRecommendationRequestsPerSecond !== null && {
3801
+ ...(input.minRecommendationRequestsPerSecond != null && {
3801
3802
  minRecommendationRequestsPerSecond: input.minRecommendationRequestsPerSecond,
3802
3803
  }),
3803
3804
  };
3804
3805
  };
3805
3806
  const serializeAws_json1_1S3DataConfig = (input, context) => {
3806
3807
  return {
3807
- ...(input.kmsKeyArn !== undefined && input.kmsKeyArn !== null && { kmsKeyArn: input.kmsKeyArn }),
3808
- ...(input.path !== undefined && input.path !== null && { path: input.path }),
3808
+ ...(input.kmsKeyArn != null && { kmsKeyArn: input.kmsKeyArn }),
3809
+ ...(input.path != null && { path: input.path }),
3809
3810
  };
3810
3811
  };
3811
3812
  const serializeAws_json1_1SolutionConfig = (input, context) => {
3812
3813
  return {
3813
- ...(input.algorithmHyperParameters !== undefined &&
3814
- input.algorithmHyperParameters !== null && {
3814
+ ...(input.algorithmHyperParameters != null && {
3815
3815
  algorithmHyperParameters: serializeAws_json1_1HyperParameters(input.algorithmHyperParameters, context),
3816
3816
  }),
3817
- ...(input.autoMLConfig !== undefined &&
3818
- input.autoMLConfig !== null && { autoMLConfig: serializeAws_json1_1AutoMLConfig(input.autoMLConfig, context) }),
3819
- ...(input.eventValueThreshold !== undefined &&
3820
- input.eventValueThreshold !== null && { eventValueThreshold: input.eventValueThreshold }),
3821
- ...(input.featureTransformationParameters !== undefined &&
3822
- input.featureTransformationParameters !== null && {
3817
+ ...(input.autoMLConfig != null && { autoMLConfig: serializeAws_json1_1AutoMLConfig(input.autoMLConfig, context) }),
3818
+ ...(input.eventValueThreshold != null && { eventValueThreshold: input.eventValueThreshold }),
3819
+ ...(input.featureTransformationParameters != null && {
3823
3820
  featureTransformationParameters: serializeAws_json1_1FeatureTransformationParameters(input.featureTransformationParameters, context),
3824
3821
  }),
3825
- ...(input.hpoConfig !== undefined &&
3826
- input.hpoConfig !== null && { hpoConfig: serializeAws_json1_1HPOConfig(input.hpoConfig, context) }),
3827
- ...(input.optimizationObjective !== undefined &&
3828
- input.optimizationObjective !== null && {
3822
+ ...(input.hpoConfig != null && { hpoConfig: serializeAws_json1_1HPOConfig(input.hpoConfig, context) }),
3823
+ ...(input.optimizationObjective != null && {
3829
3824
  optimizationObjective: serializeAws_json1_1OptimizationObjective(input.optimizationObjective, context),
3830
3825
  }),
3831
3826
  };
3832
3827
  };
3833
3828
  const serializeAws_json1_1StartRecommenderRequest = (input, context) => {
3834
3829
  return {
3835
- ...(input.recommenderArn !== undefined &&
3836
- input.recommenderArn !== null && { recommenderArn: input.recommenderArn }),
3830
+ ...(input.recommenderArn != null && { recommenderArn: input.recommenderArn }),
3837
3831
  };
3838
3832
  };
3839
3833
  const serializeAws_json1_1StopRecommenderRequest = (input, context) => {
3840
3834
  return {
3841
- ...(input.recommenderArn !== undefined &&
3842
- input.recommenderArn !== null && { recommenderArn: input.recommenderArn }),
3835
+ ...(input.recommenderArn != null && { recommenderArn: input.recommenderArn }),
3843
3836
  };
3844
3837
  };
3845
3838
  const serializeAws_json1_1StopSolutionVersionCreationRequest = (input, context) => {
3846
3839
  return {
3847
- ...(input.solutionVersionArn !== undefined &&
3848
- input.solutionVersionArn !== null && { solutionVersionArn: input.solutionVersionArn }),
3840
+ ...(input.solutionVersionArn != null && { solutionVersionArn: input.solutionVersionArn }),
3849
3841
  };
3850
3842
  };
3851
3843
  const serializeAws_json1_1Tag = (input, context) => {
3852
3844
  return {
3853
- ...(input.tagKey !== undefined && input.tagKey !== null && { tagKey: input.tagKey }),
3854
- ...(input.tagValue !== undefined && input.tagValue !== null && { tagValue: input.tagValue }),
3845
+ ...(input.tagKey != null && { tagKey: input.tagKey }),
3846
+ ...(input.tagValue != null && { tagValue: input.tagValue }),
3855
3847
  };
3856
3848
  };
3857
3849
  const serializeAws_json1_1TagKeys = (input, context) => {
@@ -3866,8 +3858,8 @@ const serializeAws_json1_1TagKeys = (input, context) => {
3866
3858
  };
3867
3859
  const serializeAws_json1_1TagResourceRequest = (input, context) => {
3868
3860
  return {
3869
- ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
3870
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3861
+ ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
3862
+ ...(input.tags != null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
3871
3863
  };
3872
3864
  };
3873
3865
  const serializeAws_json1_1Tags = (input, context) => {
@@ -3882,30 +3874,24 @@ const serializeAws_json1_1Tags = (input, context) => {
3882
3874
  };
3883
3875
  const serializeAws_json1_1UntagResourceRequest = (input, context) => {
3884
3876
  return {
3885
- ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
3886
- ...(input.tagKeys !== undefined &&
3887
- input.tagKeys !== null && { tagKeys: serializeAws_json1_1TagKeys(input.tagKeys, context) }),
3877
+ ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
3878
+ ...(input.tagKeys != null && { tagKeys: serializeAws_json1_1TagKeys(input.tagKeys, context) }),
3888
3879
  };
3889
3880
  };
3890
3881
  const serializeAws_json1_1UpdateCampaignRequest = (input, context) => {
3891
3882
  return {
3892
- ...(input.campaignArn !== undefined && input.campaignArn !== null && { campaignArn: input.campaignArn }),
3893
- ...(input.campaignConfig !== undefined &&
3894
- input.campaignConfig !== null && {
3883
+ ...(input.campaignArn != null && { campaignArn: input.campaignArn }),
3884
+ ...(input.campaignConfig != null && {
3895
3885
  campaignConfig: serializeAws_json1_1CampaignConfig(input.campaignConfig, context),
3896
3886
  }),
3897
- ...(input.minProvisionedTPS !== undefined &&
3898
- input.minProvisionedTPS !== null && { minProvisionedTPS: input.minProvisionedTPS }),
3899
- ...(input.solutionVersionArn !== undefined &&
3900
- input.solutionVersionArn !== null && { solutionVersionArn: input.solutionVersionArn }),
3887
+ ...(input.minProvisionedTPS != null && { minProvisionedTPS: input.minProvisionedTPS }),
3888
+ ...(input.solutionVersionArn != null && { solutionVersionArn: input.solutionVersionArn }),
3901
3889
  };
3902
3890
  };
3903
3891
  const serializeAws_json1_1UpdateRecommenderRequest = (input, context) => {
3904
3892
  return {
3905
- ...(input.recommenderArn !== undefined &&
3906
- input.recommenderArn !== null && { recommenderArn: input.recommenderArn }),
3907
- ...(input.recommenderConfig !== undefined &&
3908
- input.recommenderConfig !== null && {
3893
+ ...(input.recommenderArn != null && { recommenderArn: input.recommenderArn }),
3894
+ ...(input.recommenderConfig != null && {
3909
3895
  recommenderConfig: serializeAws_json1_1RecommenderConfig(input.recommenderConfig, context),
3910
3896
  }),
3911
3897
  };
@@ -3913,22 +3899,20 @@ const serializeAws_json1_1UpdateRecommenderRequest = (input, context) => {
3913
3899
  const deserializeAws_json1_1Algorithm = (output, context) => {
3914
3900
  return {
3915
3901
  algorithmArn: (0, smithy_client_1.expectString)(output.algorithmArn),
3916
- algorithmImage: output.algorithmImage !== undefined && output.algorithmImage !== null
3917
- ? deserializeAws_json1_1AlgorithmImage(output.algorithmImage, context)
3918
- : undefined,
3919
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
3902
+ algorithmImage: output.algorithmImage != null ? deserializeAws_json1_1AlgorithmImage(output.algorithmImage, context) : undefined,
3903
+ creationDateTime: output.creationDateTime != null
3920
3904
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
3921
3905
  : undefined,
3922
- defaultHyperParameterRanges: output.defaultHyperParameterRanges !== undefined && output.defaultHyperParameterRanges !== null
3906
+ defaultHyperParameterRanges: output.defaultHyperParameterRanges != null
3923
3907
  ? deserializeAws_json1_1DefaultHyperParameterRanges(output.defaultHyperParameterRanges, context)
3924
3908
  : undefined,
3925
- defaultHyperParameters: output.defaultHyperParameters !== undefined && output.defaultHyperParameters !== null
3909
+ defaultHyperParameters: output.defaultHyperParameters != null
3926
3910
  ? deserializeAws_json1_1HyperParameters(output.defaultHyperParameters, context)
3927
3911
  : undefined,
3928
- defaultResourceConfig: output.defaultResourceConfig !== undefined && output.defaultResourceConfig !== null
3912
+ defaultResourceConfig: output.defaultResourceConfig != null
3929
3913
  ? deserializeAws_json1_1ResourceConfig(output.defaultResourceConfig, context)
3930
3914
  : undefined,
3931
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
3915
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
3932
3916
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
3933
3917
  : undefined,
3934
3918
  name: (0, smithy_client_1.expectString)(output.name),
@@ -3956,9 +3940,7 @@ const deserializeAws_json1_1ArnList = (output, context) => {
3956
3940
  const deserializeAws_json1_1AutoMLConfig = (output, context) => {
3957
3941
  return {
3958
3942
  metricName: (0, smithy_client_1.expectString)(output.metricName),
3959
- recipeList: output.recipeList !== undefined && output.recipeList !== null
3960
- ? deserializeAws_json1_1ArnList(output.recipeList, context)
3961
- : undefined,
3943
+ recipeList: output.recipeList != null ? deserializeAws_json1_1ArnList(output.recipeList, context) : undefined,
3962
3944
  };
3963
3945
  };
3964
3946
  const deserializeAws_json1_1AutoMLResult = (output, context) => {
@@ -3969,22 +3951,18 @@ const deserializeAws_json1_1AutoMLResult = (output, context) => {
3969
3951
  const deserializeAws_json1_1BatchInferenceJob = (output, context) => {
3970
3952
  return {
3971
3953
  batchInferenceJobArn: (0, smithy_client_1.expectString)(output.batchInferenceJobArn),
3972
- batchInferenceJobConfig: output.batchInferenceJobConfig !== undefined && output.batchInferenceJobConfig !== null
3954
+ batchInferenceJobConfig: output.batchInferenceJobConfig != null
3973
3955
  ? deserializeAws_json1_1BatchInferenceJobConfig(output.batchInferenceJobConfig, context)
3974
3956
  : undefined,
3975
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
3957
+ creationDateTime: output.creationDateTime != null
3976
3958
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
3977
3959
  : undefined,
3978
3960
  failureReason: (0, smithy_client_1.expectString)(output.failureReason),
3979
3961
  filterArn: (0, smithy_client_1.expectString)(output.filterArn),
3980
- jobInput: output.jobInput !== undefined && output.jobInput !== null
3981
- ? deserializeAws_json1_1BatchInferenceJobInput(output.jobInput, context)
3982
- : undefined,
3962
+ jobInput: output.jobInput != null ? deserializeAws_json1_1BatchInferenceJobInput(output.jobInput, context) : undefined,
3983
3963
  jobName: (0, smithy_client_1.expectString)(output.jobName),
3984
- jobOutput: output.jobOutput !== undefined && output.jobOutput !== null
3985
- ? deserializeAws_json1_1BatchInferenceJobOutput(output.jobOutput, context)
3986
- : undefined,
3987
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
3964
+ jobOutput: output.jobOutput != null ? deserializeAws_json1_1BatchInferenceJobOutput(output.jobOutput, context) : undefined,
3965
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
3988
3966
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
3989
3967
  : undefined,
3990
3968
  numResults: (0, smithy_client_1.expectInt32)(output.numResults),
@@ -3995,21 +3973,19 @@ const deserializeAws_json1_1BatchInferenceJob = (output, context) => {
3995
3973
  };
3996
3974
  const deserializeAws_json1_1BatchInferenceJobConfig = (output, context) => {
3997
3975
  return {
3998
- itemExplorationConfig: output.itemExplorationConfig !== undefined && output.itemExplorationConfig !== null
3976
+ itemExplorationConfig: output.itemExplorationConfig != null
3999
3977
  ? deserializeAws_json1_1HyperParameters(output.itemExplorationConfig, context)
4000
3978
  : undefined,
4001
3979
  };
4002
3980
  };
4003
3981
  const deserializeAws_json1_1BatchInferenceJobInput = (output, context) => {
4004
3982
  return {
4005
- s3DataSource: output.s3DataSource !== undefined && output.s3DataSource !== null
4006
- ? deserializeAws_json1_1S3DataConfig(output.s3DataSource, context)
4007
- : undefined,
3983
+ s3DataSource: output.s3DataSource != null ? deserializeAws_json1_1S3DataConfig(output.s3DataSource, context) : undefined,
4008
3984
  };
4009
3985
  };
4010
3986
  const deserializeAws_json1_1BatchInferenceJobOutput = (output, context) => {
4011
3987
  return {
4012
- s3DataDestination: output.s3DataDestination !== undefined && output.s3DataDestination !== null
3988
+ s3DataDestination: output.s3DataDestination != null
4013
3989
  ? deserializeAws_json1_1S3DataConfig(output.s3DataDestination, context)
4014
3990
  : undefined,
4015
3991
  };
@@ -4028,12 +4004,12 @@ const deserializeAws_json1_1BatchInferenceJobs = (output, context) => {
4028
4004
  const deserializeAws_json1_1BatchInferenceJobSummary = (output, context) => {
4029
4005
  return {
4030
4006
  batchInferenceJobArn: (0, smithy_client_1.expectString)(output.batchInferenceJobArn),
4031
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4007
+ creationDateTime: output.creationDateTime != null
4032
4008
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4033
4009
  : undefined,
4034
4010
  failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4035
4011
  jobName: (0, smithy_client_1.expectString)(output.jobName),
4036
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4012
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4037
4013
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4038
4014
  : undefined,
4039
4015
  solutionVersionArn: (0, smithy_client_1.expectString)(output.solutionVersionArn),
@@ -4043,19 +4019,15 @@ const deserializeAws_json1_1BatchInferenceJobSummary = (output, context) => {
4043
4019
  const deserializeAws_json1_1BatchSegmentJob = (output, context) => {
4044
4020
  return {
4045
4021
  batchSegmentJobArn: (0, smithy_client_1.expectString)(output.batchSegmentJobArn),
4046
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4022
+ creationDateTime: output.creationDateTime != null
4047
4023
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4048
4024
  : undefined,
4049
4025
  failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4050
4026
  filterArn: (0, smithy_client_1.expectString)(output.filterArn),
4051
- jobInput: output.jobInput !== undefined && output.jobInput !== null
4052
- ? deserializeAws_json1_1BatchSegmentJobInput(output.jobInput, context)
4053
- : undefined,
4027
+ jobInput: output.jobInput != null ? deserializeAws_json1_1BatchSegmentJobInput(output.jobInput, context) : undefined,
4054
4028
  jobName: (0, smithy_client_1.expectString)(output.jobName),
4055
- jobOutput: output.jobOutput !== undefined && output.jobOutput !== null
4056
- ? deserializeAws_json1_1BatchSegmentJobOutput(output.jobOutput, context)
4057
- : undefined,
4058
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4029
+ jobOutput: output.jobOutput != null ? deserializeAws_json1_1BatchSegmentJobOutput(output.jobOutput, context) : undefined,
4030
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4059
4031
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4060
4032
  : undefined,
4061
4033
  numResults: (0, smithy_client_1.expectInt32)(output.numResults),
@@ -4066,14 +4038,12 @@ const deserializeAws_json1_1BatchSegmentJob = (output, context) => {
4066
4038
  };
4067
4039
  const deserializeAws_json1_1BatchSegmentJobInput = (output, context) => {
4068
4040
  return {
4069
- s3DataSource: output.s3DataSource !== undefined && output.s3DataSource !== null
4070
- ? deserializeAws_json1_1S3DataConfig(output.s3DataSource, context)
4071
- : undefined,
4041
+ s3DataSource: output.s3DataSource != null ? deserializeAws_json1_1S3DataConfig(output.s3DataSource, context) : undefined,
4072
4042
  };
4073
4043
  };
4074
4044
  const deserializeAws_json1_1BatchSegmentJobOutput = (output, context) => {
4075
4045
  return {
4076
- s3DataDestination: output.s3DataDestination !== undefined && output.s3DataDestination !== null
4046
+ s3DataDestination: output.s3DataDestination != null
4077
4047
  ? deserializeAws_json1_1S3DataConfig(output.s3DataDestination, context)
4078
4048
  : undefined,
4079
4049
  };
@@ -4092,12 +4062,12 @@ const deserializeAws_json1_1BatchSegmentJobs = (output, context) => {
4092
4062
  const deserializeAws_json1_1BatchSegmentJobSummary = (output, context) => {
4093
4063
  return {
4094
4064
  batchSegmentJobArn: (0, smithy_client_1.expectString)(output.batchSegmentJobArn),
4095
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4065
+ creationDateTime: output.creationDateTime != null
4096
4066
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4097
4067
  : undefined,
4098
4068
  failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4099
4069
  jobName: (0, smithy_client_1.expectString)(output.jobName),
4100
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4070
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4101
4071
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4102
4072
  : undefined,
4103
4073
  solutionVersionArn: (0, smithy_client_1.expectString)(output.solutionVersionArn),
@@ -4107,17 +4077,15 @@ const deserializeAws_json1_1BatchSegmentJobSummary = (output, context) => {
4107
4077
  const deserializeAws_json1_1Campaign = (output, context) => {
4108
4078
  return {
4109
4079
  campaignArn: (0, smithy_client_1.expectString)(output.campaignArn),
4110
- campaignConfig: output.campaignConfig !== undefined && output.campaignConfig !== null
4111
- ? deserializeAws_json1_1CampaignConfig(output.campaignConfig, context)
4112
- : undefined,
4113
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4080
+ campaignConfig: output.campaignConfig != null ? deserializeAws_json1_1CampaignConfig(output.campaignConfig, context) : undefined,
4081
+ creationDateTime: output.creationDateTime != null
4114
4082
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4115
4083
  : undefined,
4116
4084
  failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4117
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4085
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4118
4086
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4119
4087
  : undefined,
4120
- latestCampaignUpdate: output.latestCampaignUpdate !== undefined && output.latestCampaignUpdate !== null
4088
+ latestCampaignUpdate: output.latestCampaignUpdate != null
4121
4089
  ? deserializeAws_json1_1CampaignUpdateSummary(output.latestCampaignUpdate, context)
4122
4090
  : undefined,
4123
4091
  minProvisionedTPS: (0, smithy_client_1.expectInt32)(output.minProvisionedTPS),
@@ -4128,7 +4096,7 @@ const deserializeAws_json1_1Campaign = (output, context) => {
4128
4096
  };
4129
4097
  const deserializeAws_json1_1CampaignConfig = (output, context) => {
4130
4098
  return {
4131
- itemExplorationConfig: output.itemExplorationConfig !== undefined && output.itemExplorationConfig !== null
4099
+ itemExplorationConfig: output.itemExplorationConfig != null
4132
4100
  ? deserializeAws_json1_1HyperParameters(output.itemExplorationConfig, context)
4133
4101
  : undefined,
4134
4102
  };
@@ -4147,11 +4115,11 @@ const deserializeAws_json1_1Campaigns = (output, context) => {
4147
4115
  const deserializeAws_json1_1CampaignSummary = (output, context) => {
4148
4116
  return {
4149
4117
  campaignArn: (0, smithy_client_1.expectString)(output.campaignArn),
4150
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4118
+ creationDateTime: output.creationDateTime != null
4151
4119
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4152
4120
  : undefined,
4153
4121
  failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4154
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4122
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4155
4123
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4156
4124
  : undefined,
4157
4125
  name: (0, smithy_client_1.expectString)(output.name),
@@ -4160,14 +4128,12 @@ const deserializeAws_json1_1CampaignSummary = (output, context) => {
4160
4128
  };
4161
4129
  const deserializeAws_json1_1CampaignUpdateSummary = (output, context) => {
4162
4130
  return {
4163
- campaignConfig: output.campaignConfig !== undefined && output.campaignConfig !== null
4164
- ? deserializeAws_json1_1CampaignConfig(output.campaignConfig, context)
4165
- : undefined,
4166
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4131
+ campaignConfig: output.campaignConfig != null ? deserializeAws_json1_1CampaignConfig(output.campaignConfig, context) : undefined,
4132
+ creationDateTime: output.creationDateTime != null
4167
4133
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4168
4134
  : undefined,
4169
4135
  failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4170
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4136
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4171
4137
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4172
4138
  : undefined,
4173
4139
  minProvisionedTPS: (0, smithy_client_1.expectInt32)(output.minProvisionedTPS),
@@ -4178,9 +4144,7 @@ const deserializeAws_json1_1CampaignUpdateSummary = (output, context) => {
4178
4144
  const deserializeAws_json1_1CategoricalHyperParameterRange = (output, context) => {
4179
4145
  return {
4180
4146
  name: (0, smithy_client_1.expectString)(output.name),
4181
- values: output.values !== undefined && output.values !== null
4182
- ? deserializeAws_json1_1CategoricalValues(output.values, context)
4183
- : undefined,
4147
+ values: output.values != null ? deserializeAws_json1_1CategoricalValues(output.values, context) : undefined,
4184
4148
  };
4185
4149
  };
4186
4150
  const deserializeAws_json1_1CategoricalHyperParameterRanges = (output, context) => {
@@ -4292,13 +4256,13 @@ const deserializeAws_json1_1CreateSolutionVersionResponse = (output, context) =>
4292
4256
  };
4293
4257
  const deserializeAws_json1_1Dataset = (output, context) => {
4294
4258
  return {
4295
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4259
+ creationDateTime: output.creationDateTime != null
4296
4260
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4297
4261
  : undefined,
4298
4262
  datasetArn: (0, smithy_client_1.expectString)(output.datasetArn),
4299
4263
  datasetGroupArn: (0, smithy_client_1.expectString)(output.datasetGroupArn),
4300
4264
  datasetType: (0, smithy_client_1.expectString)(output.datasetType),
4301
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4265
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4302
4266
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4303
4267
  : undefined,
4304
4268
  name: (0, smithy_client_1.expectString)(output.name),
@@ -4308,7 +4272,7 @@ const deserializeAws_json1_1Dataset = (output, context) => {
4308
4272
  };
4309
4273
  const deserializeAws_json1_1DatasetExportJob = (output, context) => {
4310
4274
  return {
4311
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4275
+ creationDateTime: output.creationDateTime != null
4312
4276
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4313
4277
  : undefined,
4314
4278
  datasetArn: (0, smithy_client_1.expectString)(output.datasetArn),
@@ -4316,10 +4280,8 @@ const deserializeAws_json1_1DatasetExportJob = (output, context) => {
4316
4280
  failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4317
4281
  ingestionMode: (0, smithy_client_1.expectString)(output.ingestionMode),
4318
4282
  jobName: (0, smithy_client_1.expectString)(output.jobName),
4319
- jobOutput: output.jobOutput !== undefined && output.jobOutput !== null
4320
- ? deserializeAws_json1_1DatasetExportJobOutput(output.jobOutput, context)
4321
- : undefined,
4322
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4283
+ jobOutput: output.jobOutput != null ? deserializeAws_json1_1DatasetExportJobOutput(output.jobOutput, context) : undefined,
4284
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4323
4285
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4324
4286
  : undefined,
4325
4287
  roleArn: (0, smithy_client_1.expectString)(output.roleArn),
@@ -4328,7 +4290,7 @@ const deserializeAws_json1_1DatasetExportJob = (output, context) => {
4328
4290
  };
4329
4291
  const deserializeAws_json1_1DatasetExportJobOutput = (output, context) => {
4330
4292
  return {
4331
- s3DataDestination: output.s3DataDestination !== undefined && output.s3DataDestination !== null
4293
+ s3DataDestination: output.s3DataDestination != null
4332
4294
  ? deserializeAws_json1_1S3DataConfig(output.s3DataDestination, context)
4333
4295
  : undefined,
4334
4296
  };
@@ -4346,13 +4308,13 @@ const deserializeAws_json1_1DatasetExportJobs = (output, context) => {
4346
4308
  };
4347
4309
  const deserializeAws_json1_1DatasetExportJobSummary = (output, context) => {
4348
4310
  return {
4349
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4311
+ creationDateTime: output.creationDateTime != null
4350
4312
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4351
4313
  : undefined,
4352
4314
  datasetExportJobArn: (0, smithy_client_1.expectString)(output.datasetExportJobArn),
4353
4315
  failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4354
4316
  jobName: (0, smithy_client_1.expectString)(output.jobName),
4355
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4317
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4356
4318
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4357
4319
  : undefined,
4358
4320
  status: (0, smithy_client_1.expectString)(output.status),
@@ -4360,14 +4322,14 @@ const deserializeAws_json1_1DatasetExportJobSummary = (output, context) => {
4360
4322
  };
4361
4323
  const deserializeAws_json1_1DatasetGroup = (output, context) => {
4362
4324
  return {
4363
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4325
+ creationDateTime: output.creationDateTime != null
4364
4326
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4365
4327
  : undefined,
4366
4328
  datasetGroupArn: (0, smithy_client_1.expectString)(output.datasetGroupArn),
4367
4329
  domain: (0, smithy_client_1.expectString)(output.domain),
4368
4330
  failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4369
4331
  kmsKeyArn: (0, smithy_client_1.expectString)(output.kmsKeyArn),
4370
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4332
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4371
4333
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4372
4334
  : undefined,
4373
4335
  name: (0, smithy_client_1.expectString)(output.name),
@@ -4388,13 +4350,13 @@ const deserializeAws_json1_1DatasetGroups = (output, context) => {
4388
4350
  };
4389
4351
  const deserializeAws_json1_1DatasetGroupSummary = (output, context) => {
4390
4352
  return {
4391
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4353
+ creationDateTime: output.creationDateTime != null
4392
4354
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4393
4355
  : undefined,
4394
4356
  datasetGroupArn: (0, smithy_client_1.expectString)(output.datasetGroupArn),
4395
4357
  domain: (0, smithy_client_1.expectString)(output.domain),
4396
4358
  failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4397
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4359
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4398
4360
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4399
4361
  : undefined,
4400
4362
  name: (0, smithy_client_1.expectString)(output.name),
@@ -4403,17 +4365,15 @@ const deserializeAws_json1_1DatasetGroupSummary = (output, context) => {
4403
4365
  };
4404
4366
  const deserializeAws_json1_1DatasetImportJob = (output, context) => {
4405
4367
  return {
4406
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4368
+ creationDateTime: output.creationDateTime != null
4407
4369
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4408
4370
  : undefined,
4409
- dataSource: output.dataSource !== undefined && output.dataSource !== null
4410
- ? deserializeAws_json1_1DataSource(output.dataSource, context)
4411
- : undefined,
4371
+ dataSource: output.dataSource != null ? deserializeAws_json1_1DataSource(output.dataSource, context) : undefined,
4412
4372
  datasetArn: (0, smithy_client_1.expectString)(output.datasetArn),
4413
4373
  datasetImportJobArn: (0, smithy_client_1.expectString)(output.datasetImportJobArn),
4414
4374
  failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4415
4375
  jobName: (0, smithy_client_1.expectString)(output.jobName),
4416
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4376
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4417
4377
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4418
4378
  : undefined,
4419
4379
  roleArn: (0, smithy_client_1.expectString)(output.roleArn),
@@ -4433,13 +4393,13 @@ const deserializeAws_json1_1DatasetImportJobs = (output, context) => {
4433
4393
  };
4434
4394
  const deserializeAws_json1_1DatasetImportJobSummary = (output, context) => {
4435
4395
  return {
4436
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4396
+ creationDateTime: output.creationDateTime != null
4437
4397
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4438
4398
  : undefined,
4439
4399
  datasetImportJobArn: (0, smithy_client_1.expectString)(output.datasetImportJobArn),
4440
4400
  failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4441
4401
  jobName: (0, smithy_client_1.expectString)(output.jobName),
4442
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4402
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4443
4403
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4444
4404
  : undefined,
4445
4405
  status: (0, smithy_client_1.expectString)(output.status),
@@ -4458,11 +4418,11 @@ const deserializeAws_json1_1Datasets = (output, context) => {
4458
4418
  };
4459
4419
  const deserializeAws_json1_1DatasetSchema = (output, context) => {
4460
4420
  return {
4461
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4421
+ creationDateTime: output.creationDateTime != null
4462
4422
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4463
4423
  : undefined,
4464
4424
  domain: (0, smithy_client_1.expectString)(output.domain),
4465
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4425
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4466
4426
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4467
4427
  : undefined,
4468
4428
  name: (0, smithy_client_1.expectString)(output.name),
@@ -4472,11 +4432,11 @@ const deserializeAws_json1_1DatasetSchema = (output, context) => {
4472
4432
  };
4473
4433
  const deserializeAws_json1_1DatasetSchemaSummary = (output, context) => {
4474
4434
  return {
4475
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4435
+ creationDateTime: output.creationDateTime != null
4476
4436
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4477
4437
  : undefined,
4478
4438
  domain: (0, smithy_client_1.expectString)(output.domain),
4479
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4439
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4480
4440
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4481
4441
  : undefined,
4482
4442
  name: (0, smithy_client_1.expectString)(output.name),
@@ -4485,12 +4445,12 @@ const deserializeAws_json1_1DatasetSchemaSummary = (output, context) => {
4485
4445
  };
4486
4446
  const deserializeAws_json1_1DatasetSummary = (output, context) => {
4487
4447
  return {
4488
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4448
+ creationDateTime: output.creationDateTime != null
4489
4449
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4490
4450
  : undefined,
4491
4451
  datasetArn: (0, smithy_client_1.expectString)(output.datasetArn),
4492
4452
  datasetType: (0, smithy_client_1.expectString)(output.datasetType),
4493
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4453
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4494
4454
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4495
4455
  : undefined,
4496
4456
  name: (0, smithy_client_1.expectString)(output.name),
@@ -4506,9 +4466,7 @@ const deserializeAws_json1_1DefaultCategoricalHyperParameterRange = (output, con
4506
4466
  return {
4507
4467
  isTunable: (0, smithy_client_1.expectBoolean)(output.isTunable),
4508
4468
  name: (0, smithy_client_1.expectString)(output.name),
4509
- values: output.values !== undefined && output.values !== null
4510
- ? deserializeAws_json1_1CategoricalValues(output.values, context)
4511
- : undefined,
4469
+ values: output.values != null ? deserializeAws_json1_1CategoricalValues(output.values, context) : undefined,
4512
4470
  };
4513
4471
  };
4514
4472
  const deserializeAws_json1_1DefaultCategoricalHyperParameterRanges = (output, context) => {
@@ -4543,13 +4501,13 @@ const deserializeAws_json1_1DefaultContinuousHyperParameterRanges = (output, con
4543
4501
  };
4544
4502
  const deserializeAws_json1_1DefaultHyperParameterRanges = (output, context) => {
4545
4503
  return {
4546
- categoricalHyperParameterRanges: output.categoricalHyperParameterRanges !== undefined && output.categoricalHyperParameterRanges !== null
4504
+ categoricalHyperParameterRanges: output.categoricalHyperParameterRanges != null
4547
4505
  ? deserializeAws_json1_1DefaultCategoricalHyperParameterRanges(output.categoricalHyperParameterRanges, context)
4548
4506
  : undefined,
4549
- continuousHyperParameterRanges: output.continuousHyperParameterRanges !== undefined && output.continuousHyperParameterRanges !== null
4507
+ continuousHyperParameterRanges: output.continuousHyperParameterRanges != null
4550
4508
  ? deserializeAws_json1_1DefaultContinuousHyperParameterRanges(output.continuousHyperParameterRanges, context)
4551
4509
  : undefined,
4552
- integerHyperParameterRanges: output.integerHyperParameterRanges !== undefined && output.integerHyperParameterRanges !== null
4510
+ integerHyperParameterRanges: output.integerHyperParameterRanges != null
4553
4511
  ? deserializeAws_json1_1DefaultIntegerHyperParameterRanges(output.integerHyperParameterRanges, context)
4554
4512
  : undefined,
4555
4513
  };
@@ -4575,112 +4533,92 @@ const deserializeAws_json1_1DefaultIntegerHyperParameterRanges = (output, contex
4575
4533
  };
4576
4534
  const deserializeAws_json1_1DescribeAlgorithmResponse = (output, context) => {
4577
4535
  return {
4578
- algorithm: output.algorithm !== undefined && output.algorithm !== null
4579
- ? deserializeAws_json1_1Algorithm(output.algorithm, context)
4580
- : undefined,
4536
+ algorithm: output.algorithm != null ? deserializeAws_json1_1Algorithm(output.algorithm, context) : undefined,
4581
4537
  };
4582
4538
  };
4583
4539
  const deserializeAws_json1_1DescribeBatchInferenceJobResponse = (output, context) => {
4584
4540
  return {
4585
- batchInferenceJob: output.batchInferenceJob !== undefined && output.batchInferenceJob !== null
4541
+ batchInferenceJob: output.batchInferenceJob != null
4586
4542
  ? deserializeAws_json1_1BatchInferenceJob(output.batchInferenceJob, context)
4587
4543
  : undefined,
4588
4544
  };
4589
4545
  };
4590
4546
  const deserializeAws_json1_1DescribeBatchSegmentJobResponse = (output, context) => {
4591
4547
  return {
4592
- batchSegmentJob: output.batchSegmentJob !== undefined && output.batchSegmentJob !== null
4548
+ batchSegmentJob: output.batchSegmentJob != null
4593
4549
  ? deserializeAws_json1_1BatchSegmentJob(output.batchSegmentJob, context)
4594
4550
  : undefined,
4595
4551
  };
4596
4552
  };
4597
4553
  const deserializeAws_json1_1DescribeCampaignResponse = (output, context) => {
4598
4554
  return {
4599
- campaign: output.campaign !== undefined && output.campaign !== null
4600
- ? deserializeAws_json1_1Campaign(output.campaign, context)
4601
- : undefined,
4555
+ campaign: output.campaign != null ? deserializeAws_json1_1Campaign(output.campaign, context) : undefined,
4602
4556
  };
4603
4557
  };
4604
4558
  const deserializeAws_json1_1DescribeDatasetExportJobResponse = (output, context) => {
4605
4559
  return {
4606
- datasetExportJob: output.datasetExportJob !== undefined && output.datasetExportJob !== null
4560
+ datasetExportJob: output.datasetExportJob != null
4607
4561
  ? deserializeAws_json1_1DatasetExportJob(output.datasetExportJob, context)
4608
4562
  : undefined,
4609
4563
  };
4610
4564
  };
4611
4565
  const deserializeAws_json1_1DescribeDatasetGroupResponse = (output, context) => {
4612
4566
  return {
4613
- datasetGroup: output.datasetGroup !== undefined && output.datasetGroup !== null
4614
- ? deserializeAws_json1_1DatasetGroup(output.datasetGroup, context)
4615
- : undefined,
4567
+ datasetGroup: output.datasetGroup != null ? deserializeAws_json1_1DatasetGroup(output.datasetGroup, context) : undefined,
4616
4568
  };
4617
4569
  };
4618
4570
  const deserializeAws_json1_1DescribeDatasetImportJobResponse = (output, context) => {
4619
4571
  return {
4620
- datasetImportJob: output.datasetImportJob !== undefined && output.datasetImportJob !== null
4572
+ datasetImportJob: output.datasetImportJob != null
4621
4573
  ? deserializeAws_json1_1DatasetImportJob(output.datasetImportJob, context)
4622
4574
  : undefined,
4623
4575
  };
4624
4576
  };
4625
4577
  const deserializeAws_json1_1DescribeDatasetResponse = (output, context) => {
4626
4578
  return {
4627
- dataset: output.dataset !== undefined && output.dataset !== null
4628
- ? deserializeAws_json1_1Dataset(output.dataset, context)
4629
- : undefined,
4579
+ dataset: output.dataset != null ? deserializeAws_json1_1Dataset(output.dataset, context) : undefined,
4630
4580
  };
4631
4581
  };
4632
4582
  const deserializeAws_json1_1DescribeEventTrackerResponse = (output, context) => {
4633
4583
  return {
4634
- eventTracker: output.eventTracker !== undefined && output.eventTracker !== null
4635
- ? deserializeAws_json1_1EventTracker(output.eventTracker, context)
4636
- : undefined,
4584
+ eventTracker: output.eventTracker != null ? deserializeAws_json1_1EventTracker(output.eventTracker, context) : undefined,
4637
4585
  };
4638
4586
  };
4639
4587
  const deserializeAws_json1_1DescribeFeatureTransformationResponse = (output, context) => {
4640
4588
  return {
4641
- featureTransformation: output.featureTransformation !== undefined && output.featureTransformation !== null
4589
+ featureTransformation: output.featureTransformation != null
4642
4590
  ? deserializeAws_json1_1FeatureTransformation(output.featureTransformation, context)
4643
4591
  : undefined,
4644
4592
  };
4645
4593
  };
4646
4594
  const deserializeAws_json1_1DescribeFilterResponse = (output, context) => {
4647
4595
  return {
4648
- filter: output.filter !== undefined && output.filter !== null
4649
- ? deserializeAws_json1_1Filter(output.filter, context)
4650
- : undefined,
4596
+ filter: output.filter != null ? deserializeAws_json1_1Filter(output.filter, context) : undefined,
4651
4597
  };
4652
4598
  };
4653
4599
  const deserializeAws_json1_1DescribeRecipeResponse = (output, context) => {
4654
4600
  return {
4655
- recipe: output.recipe !== undefined && output.recipe !== null
4656
- ? deserializeAws_json1_1Recipe(output.recipe, context)
4657
- : undefined,
4601
+ recipe: output.recipe != null ? deserializeAws_json1_1Recipe(output.recipe, context) : undefined,
4658
4602
  };
4659
4603
  };
4660
4604
  const deserializeAws_json1_1DescribeRecommenderResponse = (output, context) => {
4661
4605
  return {
4662
- recommender: output.recommender !== undefined && output.recommender !== null
4663
- ? deserializeAws_json1_1Recommender(output.recommender, context)
4664
- : undefined,
4606
+ recommender: output.recommender != null ? deserializeAws_json1_1Recommender(output.recommender, context) : undefined,
4665
4607
  };
4666
4608
  };
4667
4609
  const deserializeAws_json1_1DescribeSchemaResponse = (output, context) => {
4668
4610
  return {
4669
- schema: output.schema !== undefined && output.schema !== null
4670
- ? deserializeAws_json1_1DatasetSchema(output.schema, context)
4671
- : undefined,
4611
+ schema: output.schema != null ? deserializeAws_json1_1DatasetSchema(output.schema, context) : undefined,
4672
4612
  };
4673
4613
  };
4674
4614
  const deserializeAws_json1_1DescribeSolutionResponse = (output, context) => {
4675
4615
  return {
4676
- solution: output.solution !== undefined && output.solution !== null
4677
- ? deserializeAws_json1_1Solution(output.solution, context)
4678
- : undefined,
4616
+ solution: output.solution != null ? deserializeAws_json1_1Solution(output.solution, context) : undefined,
4679
4617
  };
4680
4618
  };
4681
4619
  const deserializeAws_json1_1DescribeSolutionVersionResponse = (output, context) => {
4682
4620
  return {
4683
- solutionVersion: output.solutionVersion !== undefined && output.solutionVersion !== null
4621
+ solutionVersion: output.solutionVersion != null
4684
4622
  ? deserializeAws_json1_1SolutionVersion(output.solutionVersion, context)
4685
4623
  : undefined,
4686
4624
  };
@@ -4688,12 +4626,12 @@ const deserializeAws_json1_1DescribeSolutionVersionResponse = (output, context)
4688
4626
  const deserializeAws_json1_1EventTracker = (output, context) => {
4689
4627
  return {
4690
4628
  accountId: (0, smithy_client_1.expectString)(output.accountId),
4691
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4629
+ creationDateTime: output.creationDateTime != null
4692
4630
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4693
4631
  : undefined,
4694
4632
  datasetGroupArn: (0, smithy_client_1.expectString)(output.datasetGroupArn),
4695
4633
  eventTrackerArn: (0, smithy_client_1.expectString)(output.eventTrackerArn),
4696
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4634
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4697
4635
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4698
4636
  : undefined,
4699
4637
  name: (0, smithy_client_1.expectString)(output.name),
@@ -4714,11 +4652,11 @@ const deserializeAws_json1_1EventTrackers = (output, context) => {
4714
4652
  };
4715
4653
  const deserializeAws_json1_1EventTrackerSummary = (output, context) => {
4716
4654
  return {
4717
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4655
+ creationDateTime: output.creationDateTime != null
4718
4656
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4719
4657
  : undefined,
4720
4658
  eventTrackerArn: (0, smithy_client_1.expectString)(output.eventTrackerArn),
4721
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4659
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4722
4660
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4723
4661
  : undefined,
4724
4662
  name: (0, smithy_client_1.expectString)(output.name),
@@ -4727,14 +4665,14 @@ const deserializeAws_json1_1EventTrackerSummary = (output, context) => {
4727
4665
  };
4728
4666
  const deserializeAws_json1_1FeatureTransformation = (output, context) => {
4729
4667
  return {
4730
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4668
+ creationDateTime: output.creationDateTime != null
4731
4669
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4732
4670
  : undefined,
4733
- defaultParameters: output.defaultParameters !== undefined && output.defaultParameters !== null
4671
+ defaultParameters: output.defaultParameters != null
4734
4672
  ? deserializeAws_json1_1FeaturizationParameters(output.defaultParameters, context)
4735
4673
  : undefined,
4736
4674
  featureTransformationArn: (0, smithy_client_1.expectString)(output.featureTransformationArn),
4737
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4675
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4738
4676
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4739
4677
  : undefined,
4740
4678
  name: (0, smithy_client_1.expectString)(output.name),
@@ -4765,14 +4703,14 @@ const deserializeAws_json1_1FeaturizationParameters = (output, context) => {
4765
4703
  };
4766
4704
  const deserializeAws_json1_1Filter = (output, context) => {
4767
4705
  return {
4768
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4706
+ creationDateTime: output.creationDateTime != null
4769
4707
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4770
4708
  : undefined,
4771
4709
  datasetGroupArn: (0, smithy_client_1.expectString)(output.datasetGroupArn),
4772
4710
  failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4773
4711
  filterArn: (0, smithy_client_1.expectString)(output.filterArn),
4774
4712
  filterExpression: (0, smithy_client_1.expectString)(output.filterExpression),
4775
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4713
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4776
4714
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4777
4715
  : undefined,
4778
4716
  name: (0, smithy_client_1.expectString)(output.name),
@@ -4792,13 +4730,13 @@ const deserializeAws_json1_1Filters = (output, context) => {
4792
4730
  };
4793
4731
  const deserializeAws_json1_1FilterSummary = (output, context) => {
4794
4732
  return {
4795
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4733
+ creationDateTime: output.creationDateTime != null
4796
4734
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
4797
4735
  : undefined,
4798
4736
  datasetGroupArn: (0, smithy_client_1.expectString)(output.datasetGroupArn),
4799
4737
  failureReason: (0, smithy_client_1.expectString)(output.failureReason),
4800
4738
  filterArn: (0, smithy_client_1.expectString)(output.filterArn),
4801
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4739
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
4802
4740
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
4803
4741
  : undefined,
4804
4742
  name: (0, smithy_client_1.expectString)(output.name),
@@ -4807,21 +4745,17 @@ const deserializeAws_json1_1FilterSummary = (output, context) => {
4807
4745
  };
4808
4746
  const deserializeAws_json1_1GetSolutionMetricsResponse = (output, context) => {
4809
4747
  return {
4810
- metrics: output.metrics !== undefined && output.metrics !== null
4811
- ? deserializeAws_json1_1Metrics(output.metrics, context)
4812
- : undefined,
4748
+ metrics: output.metrics != null ? deserializeAws_json1_1Metrics(output.metrics, context) : undefined,
4813
4749
  solutionVersionArn: (0, smithy_client_1.expectString)(output.solutionVersionArn),
4814
4750
  };
4815
4751
  };
4816
4752
  const deserializeAws_json1_1HPOConfig = (output, context) => {
4817
4753
  return {
4818
- algorithmHyperParameterRanges: output.algorithmHyperParameterRanges !== undefined && output.algorithmHyperParameterRanges !== null
4754
+ algorithmHyperParameterRanges: output.algorithmHyperParameterRanges != null
4819
4755
  ? deserializeAws_json1_1HyperParameterRanges(output.algorithmHyperParameterRanges, context)
4820
4756
  : undefined,
4821
- hpoObjective: output.hpoObjective !== undefined && output.hpoObjective !== null
4822
- ? deserializeAws_json1_1HPOObjective(output.hpoObjective, context)
4823
- : undefined,
4824
- hpoResourceConfig: output.hpoResourceConfig !== undefined && output.hpoResourceConfig !== null
4757
+ hpoObjective: output.hpoObjective != null ? deserializeAws_json1_1HPOObjective(output.hpoObjective, context) : undefined,
4758
+ hpoResourceConfig: output.hpoResourceConfig != null
4825
4759
  ? deserializeAws_json1_1HPOResourceConfig(output.hpoResourceConfig, context)
4826
4760
  : undefined,
4827
4761
  };
@@ -4841,13 +4775,13 @@ const deserializeAws_json1_1HPOResourceConfig = (output, context) => {
4841
4775
  };
4842
4776
  const deserializeAws_json1_1HyperParameterRanges = (output, context) => {
4843
4777
  return {
4844
- categoricalHyperParameterRanges: output.categoricalHyperParameterRanges !== undefined && output.categoricalHyperParameterRanges !== null
4778
+ categoricalHyperParameterRanges: output.categoricalHyperParameterRanges != null
4845
4779
  ? deserializeAws_json1_1CategoricalHyperParameterRanges(output.categoricalHyperParameterRanges, context)
4846
4780
  : undefined,
4847
- continuousHyperParameterRanges: output.continuousHyperParameterRanges !== undefined && output.continuousHyperParameterRanges !== null
4781
+ continuousHyperParameterRanges: output.continuousHyperParameterRanges != null
4848
4782
  ? deserializeAws_json1_1ContinuousHyperParameterRanges(output.continuousHyperParameterRanges, context)
4849
4783
  : undefined,
4850
- integerHyperParameterRanges: output.integerHyperParameterRanges !== undefined && output.integerHyperParameterRanges !== null
4784
+ integerHyperParameterRanges: output.integerHyperParameterRanges != null
4851
4785
  ? deserializeAws_json1_1IntegerHyperParameterRanges(output.integerHyperParameterRanges, context)
4852
4786
  : undefined,
4853
4787
  };
@@ -4898,7 +4832,7 @@ const deserializeAws_json1_1LimitExceededException = (output, context) => {
4898
4832
  };
4899
4833
  const deserializeAws_json1_1ListBatchInferenceJobsResponse = (output, context) => {
4900
4834
  return {
4901
- batchInferenceJobs: output.batchInferenceJobs !== undefined && output.batchInferenceJobs !== null
4835
+ batchInferenceJobs: output.batchInferenceJobs != null
4902
4836
  ? deserializeAws_json1_1BatchInferenceJobs(output.batchInferenceJobs, context)
4903
4837
  : undefined,
4904
4838
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
@@ -4906,7 +4840,7 @@ const deserializeAws_json1_1ListBatchInferenceJobsResponse = (output, context) =
4906
4840
  };
4907
4841
  const deserializeAws_json1_1ListBatchSegmentJobsResponse = (output, context) => {
4908
4842
  return {
4909
- batchSegmentJobs: output.batchSegmentJobs !== undefined && output.batchSegmentJobs !== null
4843
+ batchSegmentJobs: output.batchSegmentJobs != null
4910
4844
  ? deserializeAws_json1_1BatchSegmentJobs(output.batchSegmentJobs, context)
4911
4845
  : undefined,
4912
4846
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
@@ -4914,15 +4848,13 @@ const deserializeAws_json1_1ListBatchSegmentJobsResponse = (output, context) =>
4914
4848
  };
4915
4849
  const deserializeAws_json1_1ListCampaignsResponse = (output, context) => {
4916
4850
  return {
4917
- campaigns: output.campaigns !== undefined && output.campaigns !== null
4918
- ? deserializeAws_json1_1Campaigns(output.campaigns, context)
4919
- : undefined,
4851
+ campaigns: output.campaigns != null ? deserializeAws_json1_1Campaigns(output.campaigns, context) : undefined,
4920
4852
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4921
4853
  };
4922
4854
  };
4923
4855
  const deserializeAws_json1_1ListDatasetExportJobsResponse = (output, context) => {
4924
4856
  return {
4925
- datasetExportJobs: output.datasetExportJobs !== undefined && output.datasetExportJobs !== null
4857
+ datasetExportJobs: output.datasetExportJobs != null
4926
4858
  ? deserializeAws_json1_1DatasetExportJobs(output.datasetExportJobs, context)
4927
4859
  : undefined,
4928
4860
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
@@ -4930,15 +4862,13 @@ const deserializeAws_json1_1ListDatasetExportJobsResponse = (output, context) =>
4930
4862
  };
4931
4863
  const deserializeAws_json1_1ListDatasetGroupsResponse = (output, context) => {
4932
4864
  return {
4933
- datasetGroups: output.datasetGroups !== undefined && output.datasetGroups !== null
4934
- ? deserializeAws_json1_1DatasetGroups(output.datasetGroups, context)
4935
- : undefined,
4865
+ datasetGroups: output.datasetGroups != null ? deserializeAws_json1_1DatasetGroups(output.datasetGroups, context) : undefined,
4936
4866
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4937
4867
  };
4938
4868
  };
4939
4869
  const deserializeAws_json1_1ListDatasetImportJobsResponse = (output, context) => {
4940
4870
  return {
4941
- datasetImportJobs: output.datasetImportJobs !== undefined && output.datasetImportJobs !== null
4871
+ datasetImportJobs: output.datasetImportJobs != null
4942
4872
  ? deserializeAws_json1_1DatasetImportJobs(output.datasetImportJobs, context)
4943
4873
  : undefined,
4944
4874
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
@@ -4946,71 +4876,57 @@ const deserializeAws_json1_1ListDatasetImportJobsResponse = (output, context) =>
4946
4876
  };
4947
4877
  const deserializeAws_json1_1ListDatasetsResponse = (output, context) => {
4948
4878
  return {
4949
- datasets: output.datasets !== undefined && output.datasets !== null
4950
- ? deserializeAws_json1_1Datasets(output.datasets, context)
4951
- : undefined,
4879
+ datasets: output.datasets != null ? deserializeAws_json1_1Datasets(output.datasets, context) : undefined,
4952
4880
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4953
4881
  };
4954
4882
  };
4955
4883
  const deserializeAws_json1_1ListEventTrackersResponse = (output, context) => {
4956
4884
  return {
4957
- eventTrackers: output.eventTrackers !== undefined && output.eventTrackers !== null
4958
- ? deserializeAws_json1_1EventTrackers(output.eventTrackers, context)
4959
- : undefined,
4885
+ eventTrackers: output.eventTrackers != null ? deserializeAws_json1_1EventTrackers(output.eventTrackers, context) : undefined,
4960
4886
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4961
4887
  };
4962
4888
  };
4963
4889
  const deserializeAws_json1_1ListFiltersResponse = (output, context) => {
4964
4890
  return {
4965
- Filters: output.Filters !== undefined && output.Filters !== null
4966
- ? deserializeAws_json1_1Filters(output.Filters, context)
4967
- : undefined,
4891
+ Filters: output.Filters != null ? deserializeAws_json1_1Filters(output.Filters, context) : undefined,
4968
4892
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4969
4893
  };
4970
4894
  };
4971
4895
  const deserializeAws_json1_1ListRecipesResponse = (output, context) => {
4972
4896
  return {
4973
4897
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4974
- recipes: output.recipes !== undefined && output.recipes !== null
4975
- ? deserializeAws_json1_1Recipes(output.recipes, context)
4976
- : undefined,
4898
+ recipes: output.recipes != null ? deserializeAws_json1_1Recipes(output.recipes, context) : undefined,
4977
4899
  };
4978
4900
  };
4979
4901
  const deserializeAws_json1_1ListRecommendersResponse = (output, context) => {
4980
4902
  return {
4981
4903
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4982
- recommenders: output.recommenders !== undefined && output.recommenders !== null
4983
- ? deserializeAws_json1_1Recommenders(output.recommenders, context)
4984
- : undefined,
4904
+ recommenders: output.recommenders != null ? deserializeAws_json1_1Recommenders(output.recommenders, context) : undefined,
4985
4905
  };
4986
4906
  };
4987
4907
  const deserializeAws_json1_1ListSchemasResponse = (output, context) => {
4988
4908
  return {
4989
4909
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4990
- schemas: output.schemas !== undefined && output.schemas !== null
4991
- ? deserializeAws_json1_1Schemas(output.schemas, context)
4992
- : undefined,
4910
+ schemas: output.schemas != null ? deserializeAws_json1_1Schemas(output.schemas, context) : undefined,
4993
4911
  };
4994
4912
  };
4995
4913
  const deserializeAws_json1_1ListSolutionsResponse = (output, context) => {
4996
4914
  return {
4997
4915
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
4998
- solutions: output.solutions !== undefined && output.solutions !== null
4999
- ? deserializeAws_json1_1Solutions(output.solutions, context)
5000
- : undefined,
4916
+ solutions: output.solutions != null ? deserializeAws_json1_1Solutions(output.solutions, context) : undefined,
5001
4917
  };
5002
4918
  };
5003
4919
  const deserializeAws_json1_1ListSolutionVersionsResponse = (output, context) => {
5004
4920
  return {
5005
4921
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5006
- solutionVersions: output.solutionVersions !== undefined && output.solutionVersions !== null
4922
+ solutionVersions: output.solutionVersions != null
5007
4923
  ? deserializeAws_json1_1SolutionVersions(output.solutionVersions, context)
5008
4924
  : undefined,
5009
4925
  };
5010
4926
  };
5011
4927
  const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
5012
4928
  return {
5013
- tags: output.tags !== undefined && output.tags !== null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
4929
+ tags: output.tags != null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
5014
4930
  };
5015
4931
  };
5016
4932
  const deserializeAws_json1_1Metrics = (output, context) => {
@@ -5033,12 +4949,12 @@ const deserializeAws_json1_1OptimizationObjective = (output, context) => {
5033
4949
  const deserializeAws_json1_1Recipe = (output, context) => {
5034
4950
  return {
5035
4951
  algorithmArn: (0, smithy_client_1.expectString)(output.algorithmArn),
5036
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4952
+ creationDateTime: output.creationDateTime != null
5037
4953
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
5038
4954
  : undefined,
5039
4955
  description: (0, smithy_client_1.expectString)(output.description),
5040
4956
  featureTransformationArn: (0, smithy_client_1.expectString)(output.featureTransformationArn),
5041
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4957
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
5042
4958
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
5043
4959
  : undefined,
5044
4960
  name: (0, smithy_client_1.expectString)(output.name),
@@ -5060,11 +4976,11 @@ const deserializeAws_json1_1Recipes = (output, context) => {
5060
4976
  };
5061
4977
  const deserializeAws_json1_1RecipeSummary = (output, context) => {
5062
4978
  return {
5063
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4979
+ creationDateTime: output.creationDateTime != null
5064
4980
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
5065
4981
  : undefined,
5066
4982
  domain: (0, smithy_client_1.expectString)(output.domain),
5067
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4983
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
5068
4984
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
5069
4985
  : undefined,
5070
4986
  name: (0, smithy_client_1.expectString)(output.name),
@@ -5074,24 +4990,22 @@ const deserializeAws_json1_1RecipeSummary = (output, context) => {
5074
4990
  };
5075
4991
  const deserializeAws_json1_1Recommender = (output, context) => {
5076
4992
  return {
5077
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
4993
+ creationDateTime: output.creationDateTime != null
5078
4994
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
5079
4995
  : undefined,
5080
4996
  datasetGroupArn: (0, smithy_client_1.expectString)(output.datasetGroupArn),
5081
4997
  failureReason: (0, smithy_client_1.expectString)(output.failureReason),
5082
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
4998
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
5083
4999
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
5084
5000
  : undefined,
5085
- latestRecommenderUpdate: output.latestRecommenderUpdate !== undefined && output.latestRecommenderUpdate !== null
5001
+ latestRecommenderUpdate: output.latestRecommenderUpdate != null
5086
5002
  ? deserializeAws_json1_1RecommenderUpdateSummary(output.latestRecommenderUpdate, context)
5087
5003
  : undefined,
5088
- modelMetrics: output.modelMetrics !== undefined && output.modelMetrics !== null
5089
- ? deserializeAws_json1_1Metrics(output.modelMetrics, context)
5090
- : undefined,
5004
+ modelMetrics: output.modelMetrics != null ? deserializeAws_json1_1Metrics(output.modelMetrics, context) : undefined,
5091
5005
  name: (0, smithy_client_1.expectString)(output.name),
5092
5006
  recipeArn: (0, smithy_client_1.expectString)(output.recipeArn),
5093
5007
  recommenderArn: (0, smithy_client_1.expectString)(output.recommenderArn),
5094
- recommenderConfig: output.recommenderConfig !== undefined && output.recommenderConfig !== null
5008
+ recommenderConfig: output.recommenderConfig != null
5095
5009
  ? deserializeAws_json1_1RecommenderConfig(output.recommenderConfig, context)
5096
5010
  : undefined,
5097
5011
  status: (0, smithy_client_1.expectString)(output.status),
@@ -5099,7 +5013,7 @@ const deserializeAws_json1_1Recommender = (output, context) => {
5099
5013
  };
5100
5014
  const deserializeAws_json1_1RecommenderConfig = (output, context) => {
5101
5015
  return {
5102
- itemExplorationConfig: output.itemExplorationConfig !== undefined && output.itemExplorationConfig !== null
5016
+ itemExplorationConfig: output.itemExplorationConfig != null
5103
5017
  ? deserializeAws_json1_1HyperParameters(output.itemExplorationConfig, context)
5104
5018
  : undefined,
5105
5019
  minRecommendationRequestsPerSecond: (0, smithy_client_1.expectInt32)(output.minRecommendationRequestsPerSecond),
@@ -5118,17 +5032,17 @@ const deserializeAws_json1_1Recommenders = (output, context) => {
5118
5032
  };
5119
5033
  const deserializeAws_json1_1RecommenderSummary = (output, context) => {
5120
5034
  return {
5121
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
5035
+ creationDateTime: output.creationDateTime != null
5122
5036
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
5123
5037
  : undefined,
5124
5038
  datasetGroupArn: (0, smithy_client_1.expectString)(output.datasetGroupArn),
5125
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
5039
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
5126
5040
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
5127
5041
  : undefined,
5128
5042
  name: (0, smithy_client_1.expectString)(output.name),
5129
5043
  recipeArn: (0, smithy_client_1.expectString)(output.recipeArn),
5130
5044
  recommenderArn: (0, smithy_client_1.expectString)(output.recommenderArn),
5131
- recommenderConfig: output.recommenderConfig !== undefined && output.recommenderConfig !== null
5045
+ recommenderConfig: output.recommenderConfig != null
5132
5046
  ? deserializeAws_json1_1RecommenderConfig(output.recommenderConfig, context)
5133
5047
  : undefined,
5134
5048
  status: (0, smithy_client_1.expectString)(output.status),
@@ -5136,14 +5050,14 @@ const deserializeAws_json1_1RecommenderSummary = (output, context) => {
5136
5050
  };
5137
5051
  const deserializeAws_json1_1RecommenderUpdateSummary = (output, context) => {
5138
5052
  return {
5139
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
5053
+ creationDateTime: output.creationDateTime != null
5140
5054
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
5141
5055
  : undefined,
5142
5056
  failureReason: (0, smithy_client_1.expectString)(output.failureReason),
5143
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
5057
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
5144
5058
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
5145
5059
  : undefined,
5146
- recommenderConfig: output.recommenderConfig !== undefined && output.recommenderConfig !== null
5060
+ recommenderConfig: output.recommenderConfig != null
5147
5061
  ? deserializeAws_json1_1RecommenderConfig(output.recommenderConfig, context)
5148
5062
  : undefined,
5149
5063
  status: (0, smithy_client_1.expectString)(output.status),
@@ -5194,18 +5108,16 @@ const deserializeAws_json1_1Schemas = (output, context) => {
5194
5108
  };
5195
5109
  const deserializeAws_json1_1Solution = (output, context) => {
5196
5110
  return {
5197
- autoMLResult: output.autoMLResult !== undefined && output.autoMLResult !== null
5198
- ? deserializeAws_json1_1AutoMLResult(output.autoMLResult, context)
5199
- : undefined,
5200
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
5111
+ autoMLResult: output.autoMLResult != null ? deserializeAws_json1_1AutoMLResult(output.autoMLResult, context) : undefined,
5112
+ creationDateTime: output.creationDateTime != null
5201
5113
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
5202
5114
  : undefined,
5203
5115
  datasetGroupArn: (0, smithy_client_1.expectString)(output.datasetGroupArn),
5204
5116
  eventType: (0, smithy_client_1.expectString)(output.eventType),
5205
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
5117
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
5206
5118
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
5207
5119
  : undefined,
5208
- latestSolutionVersion: output.latestSolutionVersion !== undefined && output.latestSolutionVersion !== null
5120
+ latestSolutionVersion: output.latestSolutionVersion != null
5209
5121
  ? deserializeAws_json1_1SolutionVersionSummary(output.latestSolutionVersion, context)
5210
5122
  : undefined,
5211
5123
  name: (0, smithy_client_1.expectString)(output.name),
@@ -5213,28 +5125,22 @@ const deserializeAws_json1_1Solution = (output, context) => {
5213
5125
  performHPO: (0, smithy_client_1.expectBoolean)(output.performHPO),
5214
5126
  recipeArn: (0, smithy_client_1.expectString)(output.recipeArn),
5215
5127
  solutionArn: (0, smithy_client_1.expectString)(output.solutionArn),
5216
- solutionConfig: output.solutionConfig !== undefined && output.solutionConfig !== null
5217
- ? deserializeAws_json1_1SolutionConfig(output.solutionConfig, context)
5218
- : undefined,
5128
+ solutionConfig: output.solutionConfig != null ? deserializeAws_json1_1SolutionConfig(output.solutionConfig, context) : undefined,
5219
5129
  status: (0, smithy_client_1.expectString)(output.status),
5220
5130
  };
5221
5131
  };
5222
5132
  const deserializeAws_json1_1SolutionConfig = (output, context) => {
5223
5133
  return {
5224
- algorithmHyperParameters: output.algorithmHyperParameters !== undefined && output.algorithmHyperParameters !== null
5134
+ algorithmHyperParameters: output.algorithmHyperParameters != null
5225
5135
  ? deserializeAws_json1_1HyperParameters(output.algorithmHyperParameters, context)
5226
5136
  : undefined,
5227
- autoMLConfig: output.autoMLConfig !== undefined && output.autoMLConfig !== null
5228
- ? deserializeAws_json1_1AutoMLConfig(output.autoMLConfig, context)
5229
- : undefined,
5137
+ autoMLConfig: output.autoMLConfig != null ? deserializeAws_json1_1AutoMLConfig(output.autoMLConfig, context) : undefined,
5230
5138
  eventValueThreshold: (0, smithy_client_1.expectString)(output.eventValueThreshold),
5231
- featureTransformationParameters: output.featureTransformationParameters !== undefined && output.featureTransformationParameters !== null
5139
+ featureTransformationParameters: output.featureTransformationParameters != null
5232
5140
  ? deserializeAws_json1_1FeatureTransformationParameters(output.featureTransformationParameters, context)
5233
5141
  : undefined,
5234
- hpoConfig: output.hpoConfig !== undefined && output.hpoConfig !== null
5235
- ? deserializeAws_json1_1HPOConfig(output.hpoConfig, context)
5236
- : undefined,
5237
- optimizationObjective: output.optimizationObjective !== undefined && output.optimizationObjective !== null
5142
+ hpoConfig: output.hpoConfig != null ? deserializeAws_json1_1HPOConfig(output.hpoConfig, context) : undefined,
5143
+ optimizationObjective: output.optimizationObjective != null
5238
5144
  ? deserializeAws_json1_1OptimizationObjective(output.optimizationObjective, context)
5239
5145
  : undefined,
5240
5146
  };
@@ -5252,10 +5158,10 @@ const deserializeAws_json1_1Solutions = (output, context) => {
5252
5158
  };
5253
5159
  const deserializeAws_json1_1SolutionSummary = (output, context) => {
5254
5160
  return {
5255
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
5161
+ creationDateTime: output.creationDateTime != null
5256
5162
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
5257
5163
  : undefined,
5258
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
5164
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
5259
5165
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
5260
5166
  : undefined,
5261
5167
  name: (0, smithy_client_1.expectString)(output.name),
@@ -5265,29 +5171,25 @@ const deserializeAws_json1_1SolutionSummary = (output, context) => {
5265
5171
  };
5266
5172
  const deserializeAws_json1_1SolutionVersion = (output, context) => {
5267
5173
  return {
5268
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
5174
+ creationDateTime: output.creationDateTime != null
5269
5175
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
5270
5176
  : undefined,
5271
5177
  datasetGroupArn: (0, smithy_client_1.expectString)(output.datasetGroupArn),
5272
5178
  eventType: (0, smithy_client_1.expectString)(output.eventType),
5273
5179
  failureReason: (0, smithy_client_1.expectString)(output.failureReason),
5274
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
5180
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
5275
5181
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
5276
5182
  : undefined,
5277
5183
  performAutoML: (0, smithy_client_1.expectBoolean)(output.performAutoML),
5278
5184
  performHPO: (0, smithy_client_1.expectBoolean)(output.performHPO),
5279
5185
  recipeArn: (0, smithy_client_1.expectString)(output.recipeArn),
5280
5186
  solutionArn: (0, smithy_client_1.expectString)(output.solutionArn),
5281
- solutionConfig: output.solutionConfig !== undefined && output.solutionConfig !== null
5282
- ? deserializeAws_json1_1SolutionConfig(output.solutionConfig, context)
5283
- : undefined,
5187
+ solutionConfig: output.solutionConfig != null ? deserializeAws_json1_1SolutionConfig(output.solutionConfig, context) : undefined,
5284
5188
  solutionVersionArn: (0, smithy_client_1.expectString)(output.solutionVersionArn),
5285
5189
  status: (0, smithy_client_1.expectString)(output.status),
5286
5190
  trainingHours: (0, smithy_client_1.limitedParseDouble)(output.trainingHours),
5287
5191
  trainingMode: (0, smithy_client_1.expectString)(output.trainingMode),
5288
- tunedHPOParams: output.tunedHPOParams !== undefined && output.tunedHPOParams !== null
5289
- ? deserializeAws_json1_1TunedHPOParams(output.tunedHPOParams, context)
5290
- : undefined,
5192
+ tunedHPOParams: output.tunedHPOParams != null ? deserializeAws_json1_1TunedHPOParams(output.tunedHPOParams, context) : undefined,
5291
5193
  };
5292
5194
  };
5293
5195
  const deserializeAws_json1_1SolutionVersions = (output, context) => {
@@ -5303,11 +5205,11 @@ const deserializeAws_json1_1SolutionVersions = (output, context) => {
5303
5205
  };
5304
5206
  const deserializeAws_json1_1SolutionVersionSummary = (output, context) => {
5305
5207
  return {
5306
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
5208
+ creationDateTime: output.creationDateTime != null
5307
5209
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
5308
5210
  : undefined,
5309
5211
  failureReason: (0, smithy_client_1.expectString)(output.failureReason),
5310
- lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
5212
+ lastUpdatedDateTime: output.lastUpdatedDateTime != null
5311
5213
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedDateTime)))
5312
5214
  : undefined,
5313
5215
  solutionVersionArn: (0, smithy_client_1.expectString)(output.solutionVersionArn),
@@ -5356,7 +5258,7 @@ const deserializeAws_json1_1TooManyTagsException = (output, context) => {
5356
5258
  };
5357
5259
  const deserializeAws_json1_1TunedHPOParams = (output, context) => {
5358
5260
  return {
5359
- algorithmHyperParameters: output.algorithmHyperParameters !== undefined && output.algorithmHyperParameters !== null
5261
+ algorithmHyperParameters: output.algorithmHyperParameters != null
5360
5262
  ? deserializeAws_json1_1HyperParameters(output.algorithmHyperParameters, context)
5361
5263
  : undefined,
5362
5264
  };
@@ -5436,5 +5338,4 @@ const loadRestJsonErrorCode = (output, data) => {
5436
5338
  if (data["__type"] !== undefined) {
5437
5339
  return sanitizeErrorCode(data["__type"]);
5438
5340
  }
5439
- return "";
5440
5341
  };