@aws-sdk/client-device-farm 3.118.1 → 3.128.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.
@@ -798,8 +798,7 @@ const deserializeAws_json1_1CreateDevicePoolCommandError = async (output, contex
798
798
  body: await parseBody(output.body, context),
799
799
  };
800
800
  let response;
801
- let errorCode = "UnknownError";
802
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
801
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
803
802
  switch (errorCode) {
804
803
  case "ArgumentException":
805
804
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -815,10 +814,12 @@ const deserializeAws_json1_1CreateDevicePoolCommandError = async (output, contex
815
814
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
816
815
  default:
817
816
  const parsedBody = parsedOutput.body;
817
+ const $metadata = deserializeMetadata(output);
818
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
818
819
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
819
- name: parsedBody.code || parsedBody.Code || errorCode,
820
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
820
821
  $fault: "client",
821
- $metadata: deserializeMetadata(output),
822
+ $metadata,
822
823
  });
823
824
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
824
825
  }
@@ -843,8 +844,7 @@ const deserializeAws_json1_1CreateInstanceProfileCommandError = async (output, c
843
844
  body: await parseBody(output.body, context),
844
845
  };
845
846
  let response;
846
- let errorCode = "UnknownError";
847
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
847
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
848
848
  switch (errorCode) {
849
849
  case "ArgumentException":
850
850
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -860,10 +860,12 @@ const deserializeAws_json1_1CreateInstanceProfileCommandError = async (output, c
860
860
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
861
861
  default:
862
862
  const parsedBody = parsedOutput.body;
863
+ const $metadata = deserializeMetadata(output);
864
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
863
865
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
864
- name: parsedBody.code || parsedBody.Code || errorCode,
866
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
865
867
  $fault: "client",
866
- $metadata: deserializeMetadata(output),
868
+ $metadata,
867
869
  });
868
870
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
869
871
  }
@@ -888,8 +890,7 @@ const deserializeAws_json1_1CreateNetworkProfileCommandError = async (output, co
888
890
  body: await parseBody(output.body, context),
889
891
  };
890
892
  let response;
891
- let errorCode = "UnknownError";
892
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
893
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
893
894
  switch (errorCode) {
894
895
  case "ArgumentException":
895
896
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -905,10 +906,12 @@ const deserializeAws_json1_1CreateNetworkProfileCommandError = async (output, co
905
906
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
906
907
  default:
907
908
  const parsedBody = parsedOutput.body;
909
+ const $metadata = deserializeMetadata(output);
910
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
908
911
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
909
- name: parsedBody.code || parsedBody.Code || errorCode,
912
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
910
913
  $fault: "client",
911
- $metadata: deserializeMetadata(output),
914
+ $metadata,
912
915
  });
913
916
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
914
917
  }
@@ -933,8 +936,7 @@ const deserializeAws_json1_1CreateProjectCommandError = async (output, context)
933
936
  body: await parseBody(output.body, context),
934
937
  };
935
938
  let response;
936
- let errorCode = "UnknownError";
937
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
939
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
938
940
  switch (errorCode) {
939
941
  case "ArgumentException":
940
942
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -953,10 +955,12 @@ const deserializeAws_json1_1CreateProjectCommandError = async (output, context)
953
955
  throw await deserializeAws_json1_1TagOperationExceptionResponse(parsedOutput, context);
954
956
  default:
955
957
  const parsedBody = parsedOutput.body;
958
+ const $metadata = deserializeMetadata(output);
959
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
956
960
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
957
- name: parsedBody.code || parsedBody.Code || errorCode,
961
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
958
962
  $fault: "client",
959
- $metadata: deserializeMetadata(output),
963
+ $metadata,
960
964
  });
961
965
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
962
966
  }
@@ -981,8 +985,7 @@ const deserializeAws_json1_1CreateRemoteAccessSessionCommandError = async (outpu
981
985
  body: await parseBody(output.body, context),
982
986
  };
983
987
  let response;
984
- let errorCode = "UnknownError";
985
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
988
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
986
989
  switch (errorCode) {
987
990
  case "ArgumentException":
988
991
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -998,10 +1001,12 @@ const deserializeAws_json1_1CreateRemoteAccessSessionCommandError = async (outpu
998
1001
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
999
1002
  default:
1000
1003
  const parsedBody = parsedOutput.body;
1004
+ const $metadata = deserializeMetadata(output);
1005
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1001
1006
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
1002
- name: parsedBody.code || parsedBody.Code || errorCode,
1007
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1003
1008
  $fault: "client",
1004
- $metadata: deserializeMetadata(output),
1009
+ $metadata,
1005
1010
  });
1006
1011
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1007
1012
  }
@@ -1026,8 +1031,7 @@ const deserializeAws_json1_1CreateTestGridProjectCommandError = async (output, c
1026
1031
  body: await parseBody(output.body, context),
1027
1032
  };
1028
1033
  let response;
1029
- let errorCode = "UnknownError";
1030
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1034
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1031
1035
  switch (errorCode) {
1032
1036
  case "ArgumentException":
1033
1037
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -1040,10 +1044,12 @@ const deserializeAws_json1_1CreateTestGridProjectCommandError = async (output, c
1040
1044
  throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
1041
1045
  default:
1042
1046
  const parsedBody = parsedOutput.body;
1047
+ const $metadata = deserializeMetadata(output);
1048
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1043
1049
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
1044
- name: parsedBody.code || parsedBody.Code || errorCode,
1050
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1045
1051
  $fault: "client",
1046
- $metadata: deserializeMetadata(output),
1052
+ $metadata,
1047
1053
  });
1048
1054
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1049
1055
  }
@@ -1068,8 +1074,7 @@ const deserializeAws_json1_1CreateTestGridUrlCommandError = async (output, conte
1068
1074
  body: await parseBody(output.body, context),
1069
1075
  };
1070
1076
  let response;
1071
- let errorCode = "UnknownError";
1072
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1077
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1073
1078
  switch (errorCode) {
1074
1079
  case "ArgumentException":
1075
1080
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -1082,10 +1087,12 @@ const deserializeAws_json1_1CreateTestGridUrlCommandError = async (output, conte
1082
1087
  throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
1083
1088
  default:
1084
1089
  const parsedBody = parsedOutput.body;
1090
+ const $metadata = deserializeMetadata(output);
1091
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1085
1092
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
1086
- name: parsedBody.code || parsedBody.Code || errorCode,
1093
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1087
1094
  $fault: "client",
1088
- $metadata: deserializeMetadata(output),
1095
+ $metadata,
1089
1096
  });
1090
1097
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1091
1098
  }
@@ -1110,8 +1117,7 @@ const deserializeAws_json1_1CreateUploadCommandError = async (output, context) =
1110
1117
  body: await parseBody(output.body, context),
1111
1118
  };
1112
1119
  let response;
1113
- let errorCode = "UnknownError";
1114
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1120
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1115
1121
  switch (errorCode) {
1116
1122
  case "ArgumentException":
1117
1123
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -1127,10 +1133,12 @@ const deserializeAws_json1_1CreateUploadCommandError = async (output, context) =
1127
1133
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
1128
1134
  default:
1129
1135
  const parsedBody = parsedOutput.body;
1136
+ const $metadata = deserializeMetadata(output);
1137
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1130
1138
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
1131
- name: parsedBody.code || parsedBody.Code || errorCode,
1139
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1132
1140
  $fault: "client",
1133
- $metadata: deserializeMetadata(output),
1141
+ $metadata,
1134
1142
  });
1135
1143
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1136
1144
  }
@@ -1155,8 +1163,7 @@ const deserializeAws_json1_1CreateVPCEConfigurationCommandError = async (output,
1155
1163
  body: await parseBody(output.body, context),
1156
1164
  };
1157
1165
  let response;
1158
- let errorCode = "UnknownError";
1159
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1166
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1160
1167
  switch (errorCode) {
1161
1168
  case "ArgumentException":
1162
1169
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -1169,10 +1176,12 @@ const deserializeAws_json1_1CreateVPCEConfigurationCommandError = async (output,
1169
1176
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
1170
1177
  default:
1171
1178
  const parsedBody = parsedOutput.body;
1179
+ const $metadata = deserializeMetadata(output);
1180
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1172
1181
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
1173
- name: parsedBody.code || parsedBody.Code || errorCode,
1182
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1174
1183
  $fault: "client",
1175
- $metadata: deserializeMetadata(output),
1184
+ $metadata,
1176
1185
  });
1177
1186
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1178
1187
  }
@@ -1197,8 +1206,7 @@ const deserializeAws_json1_1DeleteDevicePoolCommandError = async (output, contex
1197
1206
  body: await parseBody(output.body, context),
1198
1207
  };
1199
1208
  let response;
1200
- let errorCode = "UnknownError";
1201
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1209
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1202
1210
  switch (errorCode) {
1203
1211
  case "ArgumentException":
1204
1212
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -1214,10 +1222,12 @@ const deserializeAws_json1_1DeleteDevicePoolCommandError = async (output, contex
1214
1222
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
1215
1223
  default:
1216
1224
  const parsedBody = parsedOutput.body;
1225
+ const $metadata = deserializeMetadata(output);
1226
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1217
1227
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
1218
- name: parsedBody.code || parsedBody.Code || errorCode,
1228
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1219
1229
  $fault: "client",
1220
- $metadata: deserializeMetadata(output),
1230
+ $metadata,
1221
1231
  });
1222
1232
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1223
1233
  }
@@ -1242,8 +1252,7 @@ const deserializeAws_json1_1DeleteInstanceProfileCommandError = async (output, c
1242
1252
  body: await parseBody(output.body, context),
1243
1253
  };
1244
1254
  let response;
1245
- let errorCode = "UnknownError";
1246
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1255
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1247
1256
  switch (errorCode) {
1248
1257
  case "ArgumentException":
1249
1258
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -1259,10 +1268,12 @@ const deserializeAws_json1_1DeleteInstanceProfileCommandError = async (output, c
1259
1268
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
1260
1269
  default:
1261
1270
  const parsedBody = parsedOutput.body;
1271
+ const $metadata = deserializeMetadata(output);
1272
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1262
1273
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
1263
- name: parsedBody.code || parsedBody.Code || errorCode,
1274
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1264
1275
  $fault: "client",
1265
- $metadata: deserializeMetadata(output),
1276
+ $metadata,
1266
1277
  });
1267
1278
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1268
1279
  }
@@ -1287,8 +1298,7 @@ const deserializeAws_json1_1DeleteNetworkProfileCommandError = async (output, co
1287
1298
  body: await parseBody(output.body, context),
1288
1299
  };
1289
1300
  let response;
1290
- let errorCode = "UnknownError";
1291
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1301
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1292
1302
  switch (errorCode) {
1293
1303
  case "ArgumentException":
1294
1304
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -1304,10 +1314,12 @@ const deserializeAws_json1_1DeleteNetworkProfileCommandError = async (output, co
1304
1314
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
1305
1315
  default:
1306
1316
  const parsedBody = parsedOutput.body;
1317
+ const $metadata = deserializeMetadata(output);
1318
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1307
1319
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
1308
- name: parsedBody.code || parsedBody.Code || errorCode,
1320
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1309
1321
  $fault: "client",
1310
- $metadata: deserializeMetadata(output),
1322
+ $metadata,
1311
1323
  });
1312
1324
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1313
1325
  }
@@ -1332,8 +1344,7 @@ const deserializeAws_json1_1DeleteProjectCommandError = async (output, context)
1332
1344
  body: await parseBody(output.body, context),
1333
1345
  };
1334
1346
  let response;
1335
- let errorCode = "UnknownError";
1336
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1347
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1337
1348
  switch (errorCode) {
1338
1349
  case "ArgumentException":
1339
1350
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -1349,10 +1360,12 @@ const deserializeAws_json1_1DeleteProjectCommandError = async (output, context)
1349
1360
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
1350
1361
  default:
1351
1362
  const parsedBody = parsedOutput.body;
1363
+ const $metadata = deserializeMetadata(output);
1364
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1352
1365
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
1353
- name: parsedBody.code || parsedBody.Code || errorCode,
1366
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1354
1367
  $fault: "client",
1355
- $metadata: deserializeMetadata(output),
1368
+ $metadata,
1356
1369
  });
1357
1370
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1358
1371
  }
@@ -1377,8 +1390,7 @@ const deserializeAws_json1_1DeleteRemoteAccessSessionCommandError = async (outpu
1377
1390
  body: await parseBody(output.body, context),
1378
1391
  };
1379
1392
  let response;
1380
- let errorCode = "UnknownError";
1381
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1393
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1382
1394
  switch (errorCode) {
1383
1395
  case "ArgumentException":
1384
1396
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -1394,10 +1406,12 @@ const deserializeAws_json1_1DeleteRemoteAccessSessionCommandError = async (outpu
1394
1406
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
1395
1407
  default:
1396
1408
  const parsedBody = parsedOutput.body;
1409
+ const $metadata = deserializeMetadata(output);
1410
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1397
1411
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
1398
- name: parsedBody.code || parsedBody.Code || errorCode,
1412
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1399
1413
  $fault: "client",
1400
- $metadata: deserializeMetadata(output),
1414
+ $metadata,
1401
1415
  });
1402
1416
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1403
1417
  }
@@ -1422,8 +1436,7 @@ const deserializeAws_json1_1DeleteRunCommandError = async (output, context) => {
1422
1436
  body: await parseBody(output.body, context),
1423
1437
  };
1424
1438
  let response;
1425
- let errorCode = "UnknownError";
1426
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1439
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1427
1440
  switch (errorCode) {
1428
1441
  case "ArgumentException":
1429
1442
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -1439,10 +1452,12 @@ const deserializeAws_json1_1DeleteRunCommandError = async (output, context) => {
1439
1452
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
1440
1453
  default:
1441
1454
  const parsedBody = parsedOutput.body;
1455
+ const $metadata = deserializeMetadata(output);
1456
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1442
1457
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
1443
- name: parsedBody.code || parsedBody.Code || errorCode,
1458
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1444
1459
  $fault: "client",
1445
- $metadata: deserializeMetadata(output),
1460
+ $metadata,
1446
1461
  });
1447
1462
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1448
1463
  }
@@ -1467,8 +1482,7 @@ const deserializeAws_json1_1DeleteTestGridProjectCommandError = async (output, c
1467
1482
  body: await parseBody(output.body, context),
1468
1483
  };
1469
1484
  let response;
1470
- let errorCode = "UnknownError";
1471
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1485
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1472
1486
  switch (errorCode) {
1473
1487
  case "ArgumentException":
1474
1488
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -1484,10 +1498,12 @@ const deserializeAws_json1_1DeleteTestGridProjectCommandError = async (output, c
1484
1498
  throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
1485
1499
  default:
1486
1500
  const parsedBody = parsedOutput.body;
1501
+ const $metadata = deserializeMetadata(output);
1502
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1487
1503
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
1488
- name: parsedBody.code || parsedBody.Code || errorCode,
1504
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1489
1505
  $fault: "client",
1490
- $metadata: deserializeMetadata(output),
1506
+ $metadata,
1491
1507
  });
1492
1508
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1493
1509
  }
@@ -1512,8 +1528,7 @@ const deserializeAws_json1_1DeleteUploadCommandError = async (output, context) =
1512
1528
  body: await parseBody(output.body, context),
1513
1529
  };
1514
1530
  let response;
1515
- let errorCode = "UnknownError";
1516
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1531
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1517
1532
  switch (errorCode) {
1518
1533
  case "ArgumentException":
1519
1534
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -1529,10 +1544,12 @@ const deserializeAws_json1_1DeleteUploadCommandError = async (output, context) =
1529
1544
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
1530
1545
  default:
1531
1546
  const parsedBody = parsedOutput.body;
1547
+ const $metadata = deserializeMetadata(output);
1548
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1532
1549
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
1533
- name: parsedBody.code || parsedBody.Code || errorCode,
1550
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1534
1551
  $fault: "client",
1535
- $metadata: deserializeMetadata(output),
1552
+ $metadata,
1536
1553
  });
1537
1554
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1538
1555
  }
@@ -1557,8 +1574,7 @@ const deserializeAws_json1_1DeleteVPCEConfigurationCommandError = async (output,
1557
1574
  body: await parseBody(output.body, context),
1558
1575
  };
1559
1576
  let response;
1560
- let errorCode = "UnknownError";
1561
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1577
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1562
1578
  switch (errorCode) {
1563
1579
  case "ArgumentException":
1564
1580
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -1574,10 +1590,12 @@ const deserializeAws_json1_1DeleteVPCEConfigurationCommandError = async (output,
1574
1590
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
1575
1591
  default:
1576
1592
  const parsedBody = parsedOutput.body;
1593
+ const $metadata = deserializeMetadata(output);
1594
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1577
1595
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
1578
- name: parsedBody.code || parsedBody.Code || errorCode,
1596
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1579
1597
  $fault: "client",
1580
- $metadata: deserializeMetadata(output),
1598
+ $metadata,
1581
1599
  });
1582
1600
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1583
1601
  }
@@ -1602,8 +1620,7 @@ const deserializeAws_json1_1GetAccountSettingsCommandError = async (output, cont
1602
1620
  body: await parseBody(output.body, context),
1603
1621
  };
1604
1622
  let response;
1605
- let errorCode = "UnknownError";
1606
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1623
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1607
1624
  switch (errorCode) {
1608
1625
  case "ArgumentException":
1609
1626
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -1619,10 +1636,12 @@ const deserializeAws_json1_1GetAccountSettingsCommandError = async (output, cont
1619
1636
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
1620
1637
  default:
1621
1638
  const parsedBody = parsedOutput.body;
1639
+ const $metadata = deserializeMetadata(output);
1640
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1622
1641
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
1623
- name: parsedBody.code || parsedBody.Code || errorCode,
1642
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1624
1643
  $fault: "client",
1625
- $metadata: deserializeMetadata(output),
1644
+ $metadata,
1626
1645
  });
1627
1646
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1628
1647
  }
@@ -1647,8 +1666,7 @@ const deserializeAws_json1_1GetDeviceCommandError = async (output, context) => {
1647
1666
  body: await parseBody(output.body, context),
1648
1667
  };
1649
1668
  let response;
1650
- let errorCode = "UnknownError";
1651
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1669
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1652
1670
  switch (errorCode) {
1653
1671
  case "ArgumentException":
1654
1672
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -1664,10 +1682,12 @@ const deserializeAws_json1_1GetDeviceCommandError = async (output, context) => {
1664
1682
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
1665
1683
  default:
1666
1684
  const parsedBody = parsedOutput.body;
1685
+ const $metadata = deserializeMetadata(output);
1686
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1667
1687
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
1668
- name: parsedBody.code || parsedBody.Code || errorCode,
1688
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1669
1689
  $fault: "client",
1670
- $metadata: deserializeMetadata(output),
1690
+ $metadata,
1671
1691
  });
1672
1692
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1673
1693
  }
@@ -1692,8 +1712,7 @@ const deserializeAws_json1_1GetDeviceInstanceCommandError = async (output, conte
1692
1712
  body: await parseBody(output.body, context),
1693
1713
  };
1694
1714
  let response;
1695
- let errorCode = "UnknownError";
1696
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1715
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1697
1716
  switch (errorCode) {
1698
1717
  case "ArgumentException":
1699
1718
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -1709,10 +1728,12 @@ const deserializeAws_json1_1GetDeviceInstanceCommandError = async (output, conte
1709
1728
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
1710
1729
  default:
1711
1730
  const parsedBody = parsedOutput.body;
1731
+ const $metadata = deserializeMetadata(output);
1732
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1712
1733
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
1713
- name: parsedBody.code || parsedBody.Code || errorCode,
1734
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1714
1735
  $fault: "client",
1715
- $metadata: deserializeMetadata(output),
1736
+ $metadata,
1716
1737
  });
1717
1738
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1718
1739
  }
@@ -1737,8 +1758,7 @@ const deserializeAws_json1_1GetDevicePoolCommandError = async (output, context)
1737
1758
  body: await parseBody(output.body, context),
1738
1759
  };
1739
1760
  let response;
1740
- let errorCode = "UnknownError";
1741
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1761
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1742
1762
  switch (errorCode) {
1743
1763
  case "ArgumentException":
1744
1764
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -1754,10 +1774,12 @@ const deserializeAws_json1_1GetDevicePoolCommandError = async (output, context)
1754
1774
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
1755
1775
  default:
1756
1776
  const parsedBody = parsedOutput.body;
1777
+ const $metadata = deserializeMetadata(output);
1778
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1757
1779
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
1758
- name: parsedBody.code || parsedBody.Code || errorCode,
1780
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1759
1781
  $fault: "client",
1760
- $metadata: deserializeMetadata(output),
1782
+ $metadata,
1761
1783
  });
1762
1784
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1763
1785
  }
@@ -1782,8 +1804,7 @@ const deserializeAws_json1_1GetDevicePoolCompatibilityCommandError = async (outp
1782
1804
  body: await parseBody(output.body, context),
1783
1805
  };
1784
1806
  let response;
1785
- let errorCode = "UnknownError";
1786
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1807
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1787
1808
  switch (errorCode) {
1788
1809
  case "ArgumentException":
1789
1810
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -1799,10 +1820,12 @@ const deserializeAws_json1_1GetDevicePoolCompatibilityCommandError = async (outp
1799
1820
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
1800
1821
  default:
1801
1822
  const parsedBody = parsedOutput.body;
1823
+ const $metadata = deserializeMetadata(output);
1824
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1802
1825
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
1803
- name: parsedBody.code || parsedBody.Code || errorCode,
1826
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1804
1827
  $fault: "client",
1805
- $metadata: deserializeMetadata(output),
1828
+ $metadata,
1806
1829
  });
1807
1830
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1808
1831
  }
@@ -1827,8 +1850,7 @@ const deserializeAws_json1_1GetInstanceProfileCommandError = async (output, cont
1827
1850
  body: await parseBody(output.body, context),
1828
1851
  };
1829
1852
  let response;
1830
- let errorCode = "UnknownError";
1831
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1853
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1832
1854
  switch (errorCode) {
1833
1855
  case "ArgumentException":
1834
1856
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -1844,10 +1866,12 @@ const deserializeAws_json1_1GetInstanceProfileCommandError = async (output, cont
1844
1866
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
1845
1867
  default:
1846
1868
  const parsedBody = parsedOutput.body;
1869
+ const $metadata = deserializeMetadata(output);
1870
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1847
1871
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
1848
- name: parsedBody.code || parsedBody.Code || errorCode,
1872
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1849
1873
  $fault: "client",
1850
- $metadata: deserializeMetadata(output),
1874
+ $metadata,
1851
1875
  });
1852
1876
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1853
1877
  }
@@ -1872,8 +1896,7 @@ const deserializeAws_json1_1GetJobCommandError = async (output, context) => {
1872
1896
  body: await parseBody(output.body, context),
1873
1897
  };
1874
1898
  let response;
1875
- let errorCode = "UnknownError";
1876
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1899
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1877
1900
  switch (errorCode) {
1878
1901
  case "ArgumentException":
1879
1902
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -1889,10 +1912,12 @@ const deserializeAws_json1_1GetJobCommandError = async (output, context) => {
1889
1912
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
1890
1913
  default:
1891
1914
  const parsedBody = parsedOutput.body;
1915
+ const $metadata = deserializeMetadata(output);
1916
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1892
1917
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
1893
- name: parsedBody.code || parsedBody.Code || errorCode,
1918
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1894
1919
  $fault: "client",
1895
- $metadata: deserializeMetadata(output),
1920
+ $metadata,
1896
1921
  });
1897
1922
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1898
1923
  }
@@ -1917,8 +1942,7 @@ const deserializeAws_json1_1GetNetworkProfileCommandError = async (output, conte
1917
1942
  body: await parseBody(output.body, context),
1918
1943
  };
1919
1944
  let response;
1920
- let errorCode = "UnknownError";
1921
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1945
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1922
1946
  switch (errorCode) {
1923
1947
  case "ArgumentException":
1924
1948
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -1934,10 +1958,12 @@ const deserializeAws_json1_1GetNetworkProfileCommandError = async (output, conte
1934
1958
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
1935
1959
  default:
1936
1960
  const parsedBody = parsedOutput.body;
1961
+ const $metadata = deserializeMetadata(output);
1962
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1937
1963
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
1938
- name: parsedBody.code || parsedBody.Code || errorCode,
1964
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1939
1965
  $fault: "client",
1940
- $metadata: deserializeMetadata(output),
1966
+ $metadata,
1941
1967
  });
1942
1968
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1943
1969
  }
@@ -1962,8 +1988,7 @@ const deserializeAws_json1_1GetOfferingStatusCommandError = async (output, conte
1962
1988
  body: await parseBody(output.body, context),
1963
1989
  };
1964
1990
  let response;
1965
- let errorCode = "UnknownError";
1966
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1991
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1967
1992
  switch (errorCode) {
1968
1993
  case "ArgumentException":
1969
1994
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -1982,10 +2007,12 @@ const deserializeAws_json1_1GetOfferingStatusCommandError = async (output, conte
1982
2007
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
1983
2008
  default:
1984
2009
  const parsedBody = parsedOutput.body;
2010
+ const $metadata = deserializeMetadata(output);
2011
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1985
2012
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
1986
- name: parsedBody.code || parsedBody.Code || errorCode,
2013
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1987
2014
  $fault: "client",
1988
- $metadata: deserializeMetadata(output),
2015
+ $metadata,
1989
2016
  });
1990
2017
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1991
2018
  }
@@ -2010,8 +2037,7 @@ const deserializeAws_json1_1GetProjectCommandError = async (output, context) =>
2010
2037
  body: await parseBody(output.body, context),
2011
2038
  };
2012
2039
  let response;
2013
- let errorCode = "UnknownError";
2014
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2040
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2015
2041
  switch (errorCode) {
2016
2042
  case "ArgumentException":
2017
2043
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -2027,10 +2053,12 @@ const deserializeAws_json1_1GetProjectCommandError = async (output, context) =>
2027
2053
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
2028
2054
  default:
2029
2055
  const parsedBody = parsedOutput.body;
2056
+ const $metadata = deserializeMetadata(output);
2057
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2030
2058
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
2031
- name: parsedBody.code || parsedBody.Code || errorCode,
2059
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2032
2060
  $fault: "client",
2033
- $metadata: deserializeMetadata(output),
2061
+ $metadata,
2034
2062
  });
2035
2063
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2036
2064
  }
@@ -2055,8 +2083,7 @@ const deserializeAws_json1_1GetRemoteAccessSessionCommandError = async (output,
2055
2083
  body: await parseBody(output.body, context),
2056
2084
  };
2057
2085
  let response;
2058
- let errorCode = "UnknownError";
2059
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2086
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2060
2087
  switch (errorCode) {
2061
2088
  case "ArgumentException":
2062
2089
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -2072,10 +2099,12 @@ const deserializeAws_json1_1GetRemoteAccessSessionCommandError = async (output,
2072
2099
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
2073
2100
  default:
2074
2101
  const parsedBody = parsedOutput.body;
2102
+ const $metadata = deserializeMetadata(output);
2103
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2075
2104
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
2076
- name: parsedBody.code || parsedBody.Code || errorCode,
2105
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2077
2106
  $fault: "client",
2078
- $metadata: deserializeMetadata(output),
2107
+ $metadata,
2079
2108
  });
2080
2109
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2081
2110
  }
@@ -2100,8 +2129,7 @@ const deserializeAws_json1_1GetRunCommandError = async (output, context) => {
2100
2129
  body: await parseBody(output.body, context),
2101
2130
  };
2102
2131
  let response;
2103
- let errorCode = "UnknownError";
2104
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2132
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2105
2133
  switch (errorCode) {
2106
2134
  case "ArgumentException":
2107
2135
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -2117,10 +2145,12 @@ const deserializeAws_json1_1GetRunCommandError = async (output, context) => {
2117
2145
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
2118
2146
  default:
2119
2147
  const parsedBody = parsedOutput.body;
2148
+ const $metadata = deserializeMetadata(output);
2149
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2120
2150
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
2121
- name: parsedBody.code || parsedBody.Code || errorCode,
2151
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2122
2152
  $fault: "client",
2123
- $metadata: deserializeMetadata(output),
2153
+ $metadata,
2124
2154
  });
2125
2155
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2126
2156
  }
@@ -2145,8 +2175,7 @@ const deserializeAws_json1_1GetSuiteCommandError = async (output, context) => {
2145
2175
  body: await parseBody(output.body, context),
2146
2176
  };
2147
2177
  let response;
2148
- let errorCode = "UnknownError";
2149
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2178
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2150
2179
  switch (errorCode) {
2151
2180
  case "ArgumentException":
2152
2181
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -2162,10 +2191,12 @@ const deserializeAws_json1_1GetSuiteCommandError = async (output, context) => {
2162
2191
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
2163
2192
  default:
2164
2193
  const parsedBody = parsedOutput.body;
2194
+ const $metadata = deserializeMetadata(output);
2195
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2165
2196
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
2166
- name: parsedBody.code || parsedBody.Code || errorCode,
2197
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2167
2198
  $fault: "client",
2168
- $metadata: deserializeMetadata(output),
2199
+ $metadata,
2169
2200
  });
2170
2201
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2171
2202
  }
@@ -2190,8 +2221,7 @@ const deserializeAws_json1_1GetTestCommandError = async (output, context) => {
2190
2221
  body: await parseBody(output.body, context),
2191
2222
  };
2192
2223
  let response;
2193
- let errorCode = "UnknownError";
2194
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2224
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2195
2225
  switch (errorCode) {
2196
2226
  case "ArgumentException":
2197
2227
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -2207,10 +2237,12 @@ const deserializeAws_json1_1GetTestCommandError = async (output, context) => {
2207
2237
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
2208
2238
  default:
2209
2239
  const parsedBody = parsedOutput.body;
2240
+ const $metadata = deserializeMetadata(output);
2241
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2210
2242
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
2211
- name: parsedBody.code || parsedBody.Code || errorCode,
2243
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2212
2244
  $fault: "client",
2213
- $metadata: deserializeMetadata(output),
2245
+ $metadata,
2214
2246
  });
2215
2247
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2216
2248
  }
@@ -2235,8 +2267,7 @@ const deserializeAws_json1_1GetTestGridProjectCommandError = async (output, cont
2235
2267
  body: await parseBody(output.body, context),
2236
2268
  };
2237
2269
  let response;
2238
- let errorCode = "UnknownError";
2239
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2270
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2240
2271
  switch (errorCode) {
2241
2272
  case "ArgumentException":
2242
2273
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -2249,10 +2280,12 @@ const deserializeAws_json1_1GetTestGridProjectCommandError = async (output, cont
2249
2280
  throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
2250
2281
  default:
2251
2282
  const parsedBody = parsedOutput.body;
2283
+ const $metadata = deserializeMetadata(output);
2284
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2252
2285
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
2253
- name: parsedBody.code || parsedBody.Code || errorCode,
2286
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2254
2287
  $fault: "client",
2255
- $metadata: deserializeMetadata(output),
2288
+ $metadata,
2256
2289
  });
2257
2290
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2258
2291
  }
@@ -2277,8 +2310,7 @@ const deserializeAws_json1_1GetTestGridSessionCommandError = async (output, cont
2277
2310
  body: await parseBody(output.body, context),
2278
2311
  };
2279
2312
  let response;
2280
- let errorCode = "UnknownError";
2281
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2313
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2282
2314
  switch (errorCode) {
2283
2315
  case "ArgumentException":
2284
2316
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -2291,10 +2323,12 @@ const deserializeAws_json1_1GetTestGridSessionCommandError = async (output, cont
2291
2323
  throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
2292
2324
  default:
2293
2325
  const parsedBody = parsedOutput.body;
2326
+ const $metadata = deserializeMetadata(output);
2327
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2294
2328
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
2295
- name: parsedBody.code || parsedBody.Code || errorCode,
2329
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2296
2330
  $fault: "client",
2297
- $metadata: deserializeMetadata(output),
2331
+ $metadata,
2298
2332
  });
2299
2333
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2300
2334
  }
@@ -2319,8 +2353,7 @@ const deserializeAws_json1_1GetUploadCommandError = async (output, context) => {
2319
2353
  body: await parseBody(output.body, context),
2320
2354
  };
2321
2355
  let response;
2322
- let errorCode = "UnknownError";
2323
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2356
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2324
2357
  switch (errorCode) {
2325
2358
  case "ArgumentException":
2326
2359
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -2336,10 +2369,12 @@ const deserializeAws_json1_1GetUploadCommandError = async (output, context) => {
2336
2369
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
2337
2370
  default:
2338
2371
  const parsedBody = parsedOutput.body;
2372
+ const $metadata = deserializeMetadata(output);
2373
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2339
2374
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
2340
- name: parsedBody.code || parsedBody.Code || errorCode,
2375
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2341
2376
  $fault: "client",
2342
- $metadata: deserializeMetadata(output),
2377
+ $metadata,
2343
2378
  });
2344
2379
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2345
2380
  }
@@ -2364,8 +2399,7 @@ const deserializeAws_json1_1GetVPCEConfigurationCommandError = async (output, co
2364
2399
  body: await parseBody(output.body, context),
2365
2400
  };
2366
2401
  let response;
2367
- let errorCode = "UnknownError";
2368
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2402
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2369
2403
  switch (errorCode) {
2370
2404
  case "ArgumentException":
2371
2405
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -2378,10 +2412,12 @@ const deserializeAws_json1_1GetVPCEConfigurationCommandError = async (output, co
2378
2412
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
2379
2413
  default:
2380
2414
  const parsedBody = parsedOutput.body;
2415
+ const $metadata = deserializeMetadata(output);
2416
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2381
2417
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
2382
- name: parsedBody.code || parsedBody.Code || errorCode,
2418
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2383
2419
  $fault: "client",
2384
- $metadata: deserializeMetadata(output),
2420
+ $metadata,
2385
2421
  });
2386
2422
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2387
2423
  }
@@ -2406,8 +2442,7 @@ const deserializeAws_json1_1InstallToRemoteAccessSessionCommandError = async (ou
2406
2442
  body: await parseBody(output.body, context),
2407
2443
  };
2408
2444
  let response;
2409
- let errorCode = "UnknownError";
2410
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2445
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2411
2446
  switch (errorCode) {
2412
2447
  case "ArgumentException":
2413
2448
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -2423,10 +2458,12 @@ const deserializeAws_json1_1InstallToRemoteAccessSessionCommandError = async (ou
2423
2458
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
2424
2459
  default:
2425
2460
  const parsedBody = parsedOutput.body;
2461
+ const $metadata = deserializeMetadata(output);
2462
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2426
2463
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
2427
- name: parsedBody.code || parsedBody.Code || errorCode,
2464
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2428
2465
  $fault: "client",
2429
- $metadata: deserializeMetadata(output),
2466
+ $metadata,
2430
2467
  });
2431
2468
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2432
2469
  }
@@ -2451,8 +2488,7 @@ const deserializeAws_json1_1ListArtifactsCommandError = async (output, context)
2451
2488
  body: await parseBody(output.body, context),
2452
2489
  };
2453
2490
  let response;
2454
- let errorCode = "UnknownError";
2455
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2491
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2456
2492
  switch (errorCode) {
2457
2493
  case "ArgumentException":
2458
2494
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -2468,10 +2504,12 @@ const deserializeAws_json1_1ListArtifactsCommandError = async (output, context)
2468
2504
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
2469
2505
  default:
2470
2506
  const parsedBody = parsedOutput.body;
2507
+ const $metadata = deserializeMetadata(output);
2508
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2471
2509
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
2472
- name: parsedBody.code || parsedBody.Code || errorCode,
2510
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2473
2511
  $fault: "client",
2474
- $metadata: deserializeMetadata(output),
2512
+ $metadata,
2475
2513
  });
2476
2514
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2477
2515
  }
@@ -2496,8 +2534,7 @@ const deserializeAws_json1_1ListDeviceInstancesCommandError = async (output, con
2496
2534
  body: await parseBody(output.body, context),
2497
2535
  };
2498
2536
  let response;
2499
- let errorCode = "UnknownError";
2500
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2537
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2501
2538
  switch (errorCode) {
2502
2539
  case "ArgumentException":
2503
2540
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -2513,10 +2550,12 @@ const deserializeAws_json1_1ListDeviceInstancesCommandError = async (output, con
2513
2550
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
2514
2551
  default:
2515
2552
  const parsedBody = parsedOutput.body;
2553
+ const $metadata = deserializeMetadata(output);
2554
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2516
2555
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
2517
- name: parsedBody.code || parsedBody.Code || errorCode,
2556
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2518
2557
  $fault: "client",
2519
- $metadata: deserializeMetadata(output),
2558
+ $metadata,
2520
2559
  });
2521
2560
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2522
2561
  }
@@ -2541,8 +2580,7 @@ const deserializeAws_json1_1ListDevicePoolsCommandError = async (output, context
2541
2580
  body: await parseBody(output.body, context),
2542
2581
  };
2543
2582
  let response;
2544
- let errorCode = "UnknownError";
2545
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2583
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2546
2584
  switch (errorCode) {
2547
2585
  case "ArgumentException":
2548
2586
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -2558,10 +2596,12 @@ const deserializeAws_json1_1ListDevicePoolsCommandError = async (output, context
2558
2596
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
2559
2597
  default:
2560
2598
  const parsedBody = parsedOutput.body;
2599
+ const $metadata = deserializeMetadata(output);
2600
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2561
2601
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
2562
- name: parsedBody.code || parsedBody.Code || errorCode,
2602
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2563
2603
  $fault: "client",
2564
- $metadata: deserializeMetadata(output),
2604
+ $metadata,
2565
2605
  });
2566
2606
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2567
2607
  }
@@ -2586,8 +2626,7 @@ const deserializeAws_json1_1ListDevicesCommandError = async (output, context) =>
2586
2626
  body: await parseBody(output.body, context),
2587
2627
  };
2588
2628
  let response;
2589
- let errorCode = "UnknownError";
2590
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2629
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2591
2630
  switch (errorCode) {
2592
2631
  case "ArgumentException":
2593
2632
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -2603,10 +2642,12 @@ const deserializeAws_json1_1ListDevicesCommandError = async (output, context) =>
2603
2642
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
2604
2643
  default:
2605
2644
  const parsedBody = parsedOutput.body;
2645
+ const $metadata = deserializeMetadata(output);
2646
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2606
2647
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
2607
- name: parsedBody.code || parsedBody.Code || errorCode,
2648
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2608
2649
  $fault: "client",
2609
- $metadata: deserializeMetadata(output),
2650
+ $metadata,
2610
2651
  });
2611
2652
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2612
2653
  }
@@ -2631,8 +2672,7 @@ const deserializeAws_json1_1ListInstanceProfilesCommandError = async (output, co
2631
2672
  body: await parseBody(output.body, context),
2632
2673
  };
2633
2674
  let response;
2634
- let errorCode = "UnknownError";
2635
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2675
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2636
2676
  switch (errorCode) {
2637
2677
  case "ArgumentException":
2638
2678
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -2648,10 +2688,12 @@ const deserializeAws_json1_1ListInstanceProfilesCommandError = async (output, co
2648
2688
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
2649
2689
  default:
2650
2690
  const parsedBody = parsedOutput.body;
2691
+ const $metadata = deserializeMetadata(output);
2692
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2651
2693
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
2652
- name: parsedBody.code || parsedBody.Code || errorCode,
2694
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2653
2695
  $fault: "client",
2654
- $metadata: deserializeMetadata(output),
2696
+ $metadata,
2655
2697
  });
2656
2698
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2657
2699
  }
@@ -2676,8 +2718,7 @@ const deserializeAws_json1_1ListJobsCommandError = async (output, context) => {
2676
2718
  body: await parseBody(output.body, context),
2677
2719
  };
2678
2720
  let response;
2679
- let errorCode = "UnknownError";
2680
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2721
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2681
2722
  switch (errorCode) {
2682
2723
  case "ArgumentException":
2683
2724
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -2693,10 +2734,12 @@ const deserializeAws_json1_1ListJobsCommandError = async (output, context) => {
2693
2734
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
2694
2735
  default:
2695
2736
  const parsedBody = parsedOutput.body;
2737
+ const $metadata = deserializeMetadata(output);
2738
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2696
2739
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
2697
- name: parsedBody.code || parsedBody.Code || errorCode,
2740
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2698
2741
  $fault: "client",
2699
- $metadata: deserializeMetadata(output),
2742
+ $metadata,
2700
2743
  });
2701
2744
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2702
2745
  }
@@ -2721,8 +2764,7 @@ const deserializeAws_json1_1ListNetworkProfilesCommandError = async (output, con
2721
2764
  body: await parseBody(output.body, context),
2722
2765
  };
2723
2766
  let response;
2724
- let errorCode = "UnknownError";
2725
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2767
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2726
2768
  switch (errorCode) {
2727
2769
  case "ArgumentException":
2728
2770
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -2738,10 +2780,12 @@ const deserializeAws_json1_1ListNetworkProfilesCommandError = async (output, con
2738
2780
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
2739
2781
  default:
2740
2782
  const parsedBody = parsedOutput.body;
2783
+ const $metadata = deserializeMetadata(output);
2784
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2741
2785
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
2742
- name: parsedBody.code || parsedBody.Code || errorCode,
2786
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2743
2787
  $fault: "client",
2744
- $metadata: deserializeMetadata(output),
2788
+ $metadata,
2745
2789
  });
2746
2790
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2747
2791
  }
@@ -2766,8 +2810,7 @@ const deserializeAws_json1_1ListOfferingPromotionsCommandError = async (output,
2766
2810
  body: await parseBody(output.body, context),
2767
2811
  };
2768
2812
  let response;
2769
- let errorCode = "UnknownError";
2770
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2813
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2771
2814
  switch (errorCode) {
2772
2815
  case "ArgumentException":
2773
2816
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -2786,10 +2829,12 @@ const deserializeAws_json1_1ListOfferingPromotionsCommandError = async (output,
2786
2829
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
2787
2830
  default:
2788
2831
  const parsedBody = parsedOutput.body;
2832
+ const $metadata = deserializeMetadata(output);
2833
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2789
2834
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
2790
- name: parsedBody.code || parsedBody.Code || errorCode,
2835
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2791
2836
  $fault: "client",
2792
- $metadata: deserializeMetadata(output),
2837
+ $metadata,
2793
2838
  });
2794
2839
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2795
2840
  }
@@ -2814,8 +2859,7 @@ const deserializeAws_json1_1ListOfferingsCommandError = async (output, context)
2814
2859
  body: await parseBody(output.body, context),
2815
2860
  };
2816
2861
  let response;
2817
- let errorCode = "UnknownError";
2818
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2862
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2819
2863
  switch (errorCode) {
2820
2864
  case "ArgumentException":
2821
2865
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -2834,10 +2878,12 @@ const deserializeAws_json1_1ListOfferingsCommandError = async (output, context)
2834
2878
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
2835
2879
  default:
2836
2880
  const parsedBody = parsedOutput.body;
2881
+ const $metadata = deserializeMetadata(output);
2882
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2837
2883
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
2838
- name: parsedBody.code || parsedBody.Code || errorCode,
2884
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2839
2885
  $fault: "client",
2840
- $metadata: deserializeMetadata(output),
2886
+ $metadata,
2841
2887
  });
2842
2888
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2843
2889
  }
@@ -2862,8 +2908,7 @@ const deserializeAws_json1_1ListOfferingTransactionsCommandError = async (output
2862
2908
  body: await parseBody(output.body, context),
2863
2909
  };
2864
2910
  let response;
2865
- let errorCode = "UnknownError";
2866
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2911
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2867
2912
  switch (errorCode) {
2868
2913
  case "ArgumentException":
2869
2914
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -2882,10 +2927,12 @@ const deserializeAws_json1_1ListOfferingTransactionsCommandError = async (output
2882
2927
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
2883
2928
  default:
2884
2929
  const parsedBody = parsedOutput.body;
2930
+ const $metadata = deserializeMetadata(output);
2931
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2885
2932
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
2886
- name: parsedBody.code || parsedBody.Code || errorCode,
2933
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2887
2934
  $fault: "client",
2888
- $metadata: deserializeMetadata(output),
2935
+ $metadata,
2889
2936
  });
2890
2937
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2891
2938
  }
@@ -2910,8 +2957,7 @@ const deserializeAws_json1_1ListProjectsCommandError = async (output, context) =
2910
2957
  body: await parseBody(output.body, context),
2911
2958
  };
2912
2959
  let response;
2913
- let errorCode = "UnknownError";
2914
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2960
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2915
2961
  switch (errorCode) {
2916
2962
  case "ArgumentException":
2917
2963
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -2927,10 +2973,12 @@ const deserializeAws_json1_1ListProjectsCommandError = async (output, context) =
2927
2973
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
2928
2974
  default:
2929
2975
  const parsedBody = parsedOutput.body;
2976
+ const $metadata = deserializeMetadata(output);
2977
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2930
2978
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
2931
- name: parsedBody.code || parsedBody.Code || errorCode,
2979
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2932
2980
  $fault: "client",
2933
- $metadata: deserializeMetadata(output),
2981
+ $metadata,
2934
2982
  });
2935
2983
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2936
2984
  }
@@ -2955,8 +3003,7 @@ const deserializeAws_json1_1ListRemoteAccessSessionsCommandError = async (output
2955
3003
  body: await parseBody(output.body, context),
2956
3004
  };
2957
3005
  let response;
2958
- let errorCode = "UnknownError";
2959
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3006
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2960
3007
  switch (errorCode) {
2961
3008
  case "ArgumentException":
2962
3009
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -2972,10 +3019,12 @@ const deserializeAws_json1_1ListRemoteAccessSessionsCommandError = async (output
2972
3019
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
2973
3020
  default:
2974
3021
  const parsedBody = parsedOutput.body;
3022
+ const $metadata = deserializeMetadata(output);
3023
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2975
3024
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
2976
- name: parsedBody.code || parsedBody.Code || errorCode,
3025
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2977
3026
  $fault: "client",
2978
- $metadata: deserializeMetadata(output),
3027
+ $metadata,
2979
3028
  });
2980
3029
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2981
3030
  }
@@ -3000,8 +3049,7 @@ const deserializeAws_json1_1ListRunsCommandError = async (output, context) => {
3000
3049
  body: await parseBody(output.body, context),
3001
3050
  };
3002
3051
  let response;
3003
- let errorCode = "UnknownError";
3004
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3052
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3005
3053
  switch (errorCode) {
3006
3054
  case "ArgumentException":
3007
3055
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -3017,10 +3065,12 @@ const deserializeAws_json1_1ListRunsCommandError = async (output, context) => {
3017
3065
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
3018
3066
  default:
3019
3067
  const parsedBody = parsedOutput.body;
3068
+ const $metadata = deserializeMetadata(output);
3069
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3020
3070
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
3021
- name: parsedBody.code || parsedBody.Code || errorCode,
3071
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3022
3072
  $fault: "client",
3023
- $metadata: deserializeMetadata(output),
3073
+ $metadata,
3024
3074
  });
3025
3075
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3026
3076
  }
@@ -3045,8 +3095,7 @@ const deserializeAws_json1_1ListSamplesCommandError = async (output, context) =>
3045
3095
  body: await parseBody(output.body, context),
3046
3096
  };
3047
3097
  let response;
3048
- let errorCode = "UnknownError";
3049
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3098
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3050
3099
  switch (errorCode) {
3051
3100
  case "ArgumentException":
3052
3101
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -3062,10 +3111,12 @@ const deserializeAws_json1_1ListSamplesCommandError = async (output, context) =>
3062
3111
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
3063
3112
  default:
3064
3113
  const parsedBody = parsedOutput.body;
3114
+ const $metadata = deserializeMetadata(output);
3115
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3065
3116
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
3066
- name: parsedBody.code || parsedBody.Code || errorCode,
3117
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3067
3118
  $fault: "client",
3068
- $metadata: deserializeMetadata(output),
3119
+ $metadata,
3069
3120
  });
3070
3121
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3071
3122
  }
@@ -3090,8 +3141,7 @@ const deserializeAws_json1_1ListSuitesCommandError = async (output, context) =>
3090
3141
  body: await parseBody(output.body, context),
3091
3142
  };
3092
3143
  let response;
3093
- let errorCode = "UnknownError";
3094
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3144
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3095
3145
  switch (errorCode) {
3096
3146
  case "ArgumentException":
3097
3147
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -3107,10 +3157,12 @@ const deserializeAws_json1_1ListSuitesCommandError = async (output, context) =>
3107
3157
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
3108
3158
  default:
3109
3159
  const parsedBody = parsedOutput.body;
3160
+ const $metadata = deserializeMetadata(output);
3161
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3110
3162
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
3111
- name: parsedBody.code || parsedBody.Code || errorCode,
3163
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3112
3164
  $fault: "client",
3113
- $metadata: deserializeMetadata(output),
3165
+ $metadata,
3114
3166
  });
3115
3167
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3116
3168
  }
@@ -3135,8 +3187,7 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
3135
3187
  body: await parseBody(output.body, context),
3136
3188
  };
3137
3189
  let response;
3138
- let errorCode = "UnknownError";
3139
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3190
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3140
3191
  switch (errorCode) {
3141
3192
  case "ArgumentException":
3142
3193
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -3149,10 +3200,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
3149
3200
  throw await deserializeAws_json1_1TagOperationExceptionResponse(parsedOutput, context);
3150
3201
  default:
3151
3202
  const parsedBody = parsedOutput.body;
3203
+ const $metadata = deserializeMetadata(output);
3204
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3152
3205
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
3153
- name: parsedBody.code || parsedBody.Code || errorCode,
3206
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3154
3207
  $fault: "client",
3155
- $metadata: deserializeMetadata(output),
3208
+ $metadata,
3156
3209
  });
3157
3210
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3158
3211
  }
@@ -3177,8 +3230,7 @@ const deserializeAws_json1_1ListTestGridProjectsCommandError = async (output, co
3177
3230
  body: await parseBody(output.body, context),
3178
3231
  };
3179
3232
  let response;
3180
- let errorCode = "UnknownError";
3181
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3233
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3182
3234
  switch (errorCode) {
3183
3235
  case "ArgumentException":
3184
3236
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -3188,10 +3240,12 @@ const deserializeAws_json1_1ListTestGridProjectsCommandError = async (output, co
3188
3240
  throw await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context);
3189
3241
  default:
3190
3242
  const parsedBody = parsedOutput.body;
3243
+ const $metadata = deserializeMetadata(output);
3244
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3191
3245
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
3192
- name: parsedBody.code || parsedBody.Code || errorCode,
3246
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3193
3247
  $fault: "client",
3194
- $metadata: deserializeMetadata(output),
3248
+ $metadata,
3195
3249
  });
3196
3250
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3197
3251
  }
@@ -3216,8 +3270,7 @@ const deserializeAws_json1_1ListTestGridSessionActionsCommandError = async (outp
3216
3270
  body: await parseBody(output.body, context),
3217
3271
  };
3218
3272
  let response;
3219
- let errorCode = "UnknownError";
3220
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3273
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3221
3274
  switch (errorCode) {
3222
3275
  case "ArgumentException":
3223
3276
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -3230,10 +3283,12 @@ const deserializeAws_json1_1ListTestGridSessionActionsCommandError = async (outp
3230
3283
  throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
3231
3284
  default:
3232
3285
  const parsedBody = parsedOutput.body;
3286
+ const $metadata = deserializeMetadata(output);
3287
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3233
3288
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
3234
- name: parsedBody.code || parsedBody.Code || errorCode,
3289
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3235
3290
  $fault: "client",
3236
- $metadata: deserializeMetadata(output),
3291
+ $metadata,
3237
3292
  });
3238
3293
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3239
3294
  }
@@ -3258,8 +3313,7 @@ const deserializeAws_json1_1ListTestGridSessionArtifactsCommandError = async (ou
3258
3313
  body: await parseBody(output.body, context),
3259
3314
  };
3260
3315
  let response;
3261
- let errorCode = "UnknownError";
3262
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3316
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3263
3317
  switch (errorCode) {
3264
3318
  case "ArgumentException":
3265
3319
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -3272,10 +3326,12 @@ const deserializeAws_json1_1ListTestGridSessionArtifactsCommandError = async (ou
3272
3326
  throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
3273
3327
  default:
3274
3328
  const parsedBody = parsedOutput.body;
3329
+ const $metadata = deserializeMetadata(output);
3330
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3275
3331
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
3276
- name: parsedBody.code || parsedBody.Code || errorCode,
3332
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3277
3333
  $fault: "client",
3278
- $metadata: deserializeMetadata(output),
3334
+ $metadata,
3279
3335
  });
3280
3336
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3281
3337
  }
@@ -3300,8 +3356,7 @@ const deserializeAws_json1_1ListTestGridSessionsCommandError = async (output, co
3300
3356
  body: await parseBody(output.body, context),
3301
3357
  };
3302
3358
  let response;
3303
- let errorCode = "UnknownError";
3304
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3359
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3305
3360
  switch (errorCode) {
3306
3361
  case "ArgumentException":
3307
3362
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -3314,10 +3369,12 @@ const deserializeAws_json1_1ListTestGridSessionsCommandError = async (output, co
3314
3369
  throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
3315
3370
  default:
3316
3371
  const parsedBody = parsedOutput.body;
3372
+ const $metadata = deserializeMetadata(output);
3373
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3317
3374
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
3318
- name: parsedBody.code || parsedBody.Code || errorCode,
3375
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3319
3376
  $fault: "client",
3320
- $metadata: deserializeMetadata(output),
3377
+ $metadata,
3321
3378
  });
3322
3379
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3323
3380
  }
@@ -3342,8 +3399,7 @@ const deserializeAws_json1_1ListTestsCommandError = async (output, context) => {
3342
3399
  body: await parseBody(output.body, context),
3343
3400
  };
3344
3401
  let response;
3345
- let errorCode = "UnknownError";
3346
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3402
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3347
3403
  switch (errorCode) {
3348
3404
  case "ArgumentException":
3349
3405
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -3359,10 +3415,12 @@ const deserializeAws_json1_1ListTestsCommandError = async (output, context) => {
3359
3415
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
3360
3416
  default:
3361
3417
  const parsedBody = parsedOutput.body;
3418
+ const $metadata = deserializeMetadata(output);
3419
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3362
3420
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
3363
- name: parsedBody.code || parsedBody.Code || errorCode,
3421
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3364
3422
  $fault: "client",
3365
- $metadata: deserializeMetadata(output),
3423
+ $metadata,
3366
3424
  });
3367
3425
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3368
3426
  }
@@ -3387,8 +3445,7 @@ const deserializeAws_json1_1ListUniqueProblemsCommandError = async (output, cont
3387
3445
  body: await parseBody(output.body, context),
3388
3446
  };
3389
3447
  let response;
3390
- let errorCode = "UnknownError";
3391
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3448
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3392
3449
  switch (errorCode) {
3393
3450
  case "ArgumentException":
3394
3451
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -3404,10 +3461,12 @@ const deserializeAws_json1_1ListUniqueProblemsCommandError = async (output, cont
3404
3461
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
3405
3462
  default:
3406
3463
  const parsedBody = parsedOutput.body;
3464
+ const $metadata = deserializeMetadata(output);
3465
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3407
3466
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
3408
- name: parsedBody.code || parsedBody.Code || errorCode,
3467
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3409
3468
  $fault: "client",
3410
- $metadata: deserializeMetadata(output),
3469
+ $metadata,
3411
3470
  });
3412
3471
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3413
3472
  }
@@ -3432,8 +3491,7 @@ const deserializeAws_json1_1ListUploadsCommandError = async (output, context) =>
3432
3491
  body: await parseBody(output.body, context),
3433
3492
  };
3434
3493
  let response;
3435
- let errorCode = "UnknownError";
3436
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3494
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3437
3495
  switch (errorCode) {
3438
3496
  case "ArgumentException":
3439
3497
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -3449,10 +3507,12 @@ const deserializeAws_json1_1ListUploadsCommandError = async (output, context) =>
3449
3507
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
3450
3508
  default:
3451
3509
  const parsedBody = parsedOutput.body;
3510
+ const $metadata = deserializeMetadata(output);
3511
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3452
3512
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
3453
- name: parsedBody.code || parsedBody.Code || errorCode,
3513
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3454
3514
  $fault: "client",
3455
- $metadata: deserializeMetadata(output),
3515
+ $metadata,
3456
3516
  });
3457
3517
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3458
3518
  }
@@ -3477,8 +3537,7 @@ const deserializeAws_json1_1ListVPCEConfigurationsCommandError = async (output,
3477
3537
  body: await parseBody(output.body, context),
3478
3538
  };
3479
3539
  let response;
3480
- let errorCode = "UnknownError";
3481
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3540
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3482
3541
  switch (errorCode) {
3483
3542
  case "ArgumentException":
3484
3543
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -3488,10 +3547,12 @@ const deserializeAws_json1_1ListVPCEConfigurationsCommandError = async (output,
3488
3547
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
3489
3548
  default:
3490
3549
  const parsedBody = parsedOutput.body;
3550
+ const $metadata = deserializeMetadata(output);
3551
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3491
3552
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
3492
- name: parsedBody.code || parsedBody.Code || errorCode,
3553
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3493
3554
  $fault: "client",
3494
- $metadata: deserializeMetadata(output),
3555
+ $metadata,
3495
3556
  });
3496
3557
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3497
3558
  }
@@ -3516,8 +3577,7 @@ const deserializeAws_json1_1PurchaseOfferingCommandError = async (output, contex
3516
3577
  body: await parseBody(output.body, context),
3517
3578
  };
3518
3579
  let response;
3519
- let errorCode = "UnknownError";
3520
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3580
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3521
3581
  switch (errorCode) {
3522
3582
  case "ArgumentException":
3523
3583
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -3536,10 +3596,12 @@ const deserializeAws_json1_1PurchaseOfferingCommandError = async (output, contex
3536
3596
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
3537
3597
  default:
3538
3598
  const parsedBody = parsedOutput.body;
3599
+ const $metadata = deserializeMetadata(output);
3600
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3539
3601
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
3540
- name: parsedBody.code || parsedBody.Code || errorCode,
3602
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3541
3603
  $fault: "client",
3542
- $metadata: deserializeMetadata(output),
3604
+ $metadata,
3543
3605
  });
3544
3606
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3545
3607
  }
@@ -3564,8 +3626,7 @@ const deserializeAws_json1_1RenewOfferingCommandError = async (output, context)
3564
3626
  body: await parseBody(output.body, context),
3565
3627
  };
3566
3628
  let response;
3567
- let errorCode = "UnknownError";
3568
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3629
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3569
3630
  switch (errorCode) {
3570
3631
  case "ArgumentException":
3571
3632
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -3584,10 +3645,12 @@ const deserializeAws_json1_1RenewOfferingCommandError = async (output, context)
3584
3645
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
3585
3646
  default:
3586
3647
  const parsedBody = parsedOutput.body;
3648
+ const $metadata = deserializeMetadata(output);
3649
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3587
3650
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
3588
- name: parsedBody.code || parsedBody.Code || errorCode,
3651
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3589
3652
  $fault: "client",
3590
- $metadata: deserializeMetadata(output),
3653
+ $metadata,
3591
3654
  });
3592
3655
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3593
3656
  }
@@ -3612,8 +3675,7 @@ const deserializeAws_json1_1ScheduleRunCommandError = async (output, context) =>
3612
3675
  body: await parseBody(output.body, context),
3613
3676
  };
3614
3677
  let response;
3615
- let errorCode = "UnknownError";
3616
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3678
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3617
3679
  switch (errorCode) {
3618
3680
  case "ArgumentException":
3619
3681
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -3632,10 +3694,12 @@ const deserializeAws_json1_1ScheduleRunCommandError = async (output, context) =>
3632
3694
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
3633
3695
  default:
3634
3696
  const parsedBody = parsedOutput.body;
3697
+ const $metadata = deserializeMetadata(output);
3698
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3635
3699
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
3636
- name: parsedBody.code || parsedBody.Code || errorCode,
3700
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3637
3701
  $fault: "client",
3638
- $metadata: deserializeMetadata(output),
3702
+ $metadata,
3639
3703
  });
3640
3704
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3641
3705
  }
@@ -3660,8 +3724,7 @@ const deserializeAws_json1_1StopJobCommandError = async (output, context) => {
3660
3724
  body: await parseBody(output.body, context),
3661
3725
  };
3662
3726
  let response;
3663
- let errorCode = "UnknownError";
3664
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3727
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3665
3728
  switch (errorCode) {
3666
3729
  case "ArgumentException":
3667
3730
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -3677,10 +3740,12 @@ const deserializeAws_json1_1StopJobCommandError = async (output, context) => {
3677
3740
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
3678
3741
  default:
3679
3742
  const parsedBody = parsedOutput.body;
3743
+ const $metadata = deserializeMetadata(output);
3744
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3680
3745
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
3681
- name: parsedBody.code || parsedBody.Code || errorCode,
3746
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3682
3747
  $fault: "client",
3683
- $metadata: deserializeMetadata(output),
3748
+ $metadata,
3684
3749
  });
3685
3750
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3686
3751
  }
@@ -3705,8 +3770,7 @@ const deserializeAws_json1_1StopRemoteAccessSessionCommandError = async (output,
3705
3770
  body: await parseBody(output.body, context),
3706
3771
  };
3707
3772
  let response;
3708
- let errorCode = "UnknownError";
3709
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3773
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3710
3774
  switch (errorCode) {
3711
3775
  case "ArgumentException":
3712
3776
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -3722,10 +3786,12 @@ const deserializeAws_json1_1StopRemoteAccessSessionCommandError = async (output,
3722
3786
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
3723
3787
  default:
3724
3788
  const parsedBody = parsedOutput.body;
3789
+ const $metadata = deserializeMetadata(output);
3790
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3725
3791
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
3726
- name: parsedBody.code || parsedBody.Code || errorCode,
3792
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3727
3793
  $fault: "client",
3728
- $metadata: deserializeMetadata(output),
3794
+ $metadata,
3729
3795
  });
3730
3796
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3731
3797
  }
@@ -3750,8 +3816,7 @@ const deserializeAws_json1_1StopRunCommandError = async (output, context) => {
3750
3816
  body: await parseBody(output.body, context),
3751
3817
  };
3752
3818
  let response;
3753
- let errorCode = "UnknownError";
3754
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3819
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3755
3820
  switch (errorCode) {
3756
3821
  case "ArgumentException":
3757
3822
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -3767,10 +3832,12 @@ const deserializeAws_json1_1StopRunCommandError = async (output, context) => {
3767
3832
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
3768
3833
  default:
3769
3834
  const parsedBody = parsedOutput.body;
3835
+ const $metadata = deserializeMetadata(output);
3836
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3770
3837
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
3771
- name: parsedBody.code || parsedBody.Code || errorCode,
3838
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3772
3839
  $fault: "client",
3773
- $metadata: deserializeMetadata(output),
3840
+ $metadata,
3774
3841
  });
3775
3842
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3776
3843
  }
@@ -3795,8 +3862,7 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
3795
3862
  body: await parseBody(output.body, context),
3796
3863
  };
3797
3864
  let response;
3798
- let errorCode = "UnknownError";
3799
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3865
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3800
3866
  switch (errorCode) {
3801
3867
  case "ArgumentException":
3802
3868
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -3815,10 +3881,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
3815
3881
  throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
3816
3882
  default:
3817
3883
  const parsedBody = parsedOutput.body;
3884
+ const $metadata = deserializeMetadata(output);
3885
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3818
3886
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
3819
- name: parsedBody.code || parsedBody.Code || errorCode,
3887
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3820
3888
  $fault: "client",
3821
- $metadata: deserializeMetadata(output),
3889
+ $metadata,
3822
3890
  });
3823
3891
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3824
3892
  }
@@ -3843,8 +3911,7 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
3843
3911
  body: await parseBody(output.body, context),
3844
3912
  };
3845
3913
  let response;
3846
- let errorCode = "UnknownError";
3847
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3914
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3848
3915
  switch (errorCode) {
3849
3916
  case "ArgumentException":
3850
3917
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -3857,10 +3924,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
3857
3924
  throw await deserializeAws_json1_1TagOperationExceptionResponse(parsedOutput, context);
3858
3925
  default:
3859
3926
  const parsedBody = parsedOutput.body;
3927
+ const $metadata = deserializeMetadata(output);
3928
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3860
3929
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
3861
- name: parsedBody.code || parsedBody.Code || errorCode,
3930
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3862
3931
  $fault: "client",
3863
- $metadata: deserializeMetadata(output),
3932
+ $metadata,
3864
3933
  });
3865
3934
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3866
3935
  }
@@ -3885,8 +3954,7 @@ const deserializeAws_json1_1UpdateDeviceInstanceCommandError = async (output, co
3885
3954
  body: await parseBody(output.body, context),
3886
3955
  };
3887
3956
  let response;
3888
- let errorCode = "UnknownError";
3889
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3957
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3890
3958
  switch (errorCode) {
3891
3959
  case "ArgumentException":
3892
3960
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -3902,10 +3970,12 @@ const deserializeAws_json1_1UpdateDeviceInstanceCommandError = async (output, co
3902
3970
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
3903
3971
  default:
3904
3972
  const parsedBody = parsedOutput.body;
3973
+ const $metadata = deserializeMetadata(output);
3974
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3905
3975
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
3906
- name: parsedBody.code || parsedBody.Code || errorCode,
3976
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3907
3977
  $fault: "client",
3908
- $metadata: deserializeMetadata(output),
3978
+ $metadata,
3909
3979
  });
3910
3980
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3911
3981
  }
@@ -3930,8 +4000,7 @@ const deserializeAws_json1_1UpdateDevicePoolCommandError = async (output, contex
3930
4000
  body: await parseBody(output.body, context),
3931
4001
  };
3932
4002
  let response;
3933
- let errorCode = "UnknownError";
3934
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4003
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3935
4004
  switch (errorCode) {
3936
4005
  case "ArgumentException":
3937
4006
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -3947,10 +4016,12 @@ const deserializeAws_json1_1UpdateDevicePoolCommandError = async (output, contex
3947
4016
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
3948
4017
  default:
3949
4018
  const parsedBody = parsedOutput.body;
4019
+ const $metadata = deserializeMetadata(output);
4020
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3950
4021
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
3951
- name: parsedBody.code || parsedBody.Code || errorCode,
4022
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3952
4023
  $fault: "client",
3953
- $metadata: deserializeMetadata(output),
4024
+ $metadata,
3954
4025
  });
3955
4026
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3956
4027
  }
@@ -3975,8 +4046,7 @@ const deserializeAws_json1_1UpdateInstanceProfileCommandError = async (output, c
3975
4046
  body: await parseBody(output.body, context),
3976
4047
  };
3977
4048
  let response;
3978
- let errorCode = "UnknownError";
3979
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4049
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3980
4050
  switch (errorCode) {
3981
4051
  case "ArgumentException":
3982
4052
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -3992,10 +4062,12 @@ const deserializeAws_json1_1UpdateInstanceProfileCommandError = async (output, c
3992
4062
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
3993
4063
  default:
3994
4064
  const parsedBody = parsedOutput.body;
4065
+ const $metadata = deserializeMetadata(output);
4066
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3995
4067
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
3996
- name: parsedBody.code || parsedBody.Code || errorCode,
4068
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3997
4069
  $fault: "client",
3998
- $metadata: deserializeMetadata(output),
4070
+ $metadata,
3999
4071
  });
4000
4072
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4001
4073
  }
@@ -4020,8 +4092,7 @@ const deserializeAws_json1_1UpdateNetworkProfileCommandError = async (output, co
4020
4092
  body: await parseBody(output.body, context),
4021
4093
  };
4022
4094
  let response;
4023
- let errorCode = "UnknownError";
4024
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4095
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4025
4096
  switch (errorCode) {
4026
4097
  case "ArgumentException":
4027
4098
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -4037,10 +4108,12 @@ const deserializeAws_json1_1UpdateNetworkProfileCommandError = async (output, co
4037
4108
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
4038
4109
  default:
4039
4110
  const parsedBody = parsedOutput.body;
4111
+ const $metadata = deserializeMetadata(output);
4112
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4040
4113
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
4041
- name: parsedBody.code || parsedBody.Code || errorCode,
4114
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
4042
4115
  $fault: "client",
4043
- $metadata: deserializeMetadata(output),
4116
+ $metadata,
4044
4117
  });
4045
4118
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4046
4119
  }
@@ -4065,8 +4138,7 @@ const deserializeAws_json1_1UpdateProjectCommandError = async (output, context)
4065
4138
  body: await parseBody(output.body, context),
4066
4139
  };
4067
4140
  let response;
4068
- let errorCode = "UnknownError";
4069
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4141
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4070
4142
  switch (errorCode) {
4071
4143
  case "ArgumentException":
4072
4144
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -4082,10 +4154,12 @@ const deserializeAws_json1_1UpdateProjectCommandError = async (output, context)
4082
4154
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
4083
4155
  default:
4084
4156
  const parsedBody = parsedOutput.body;
4157
+ const $metadata = deserializeMetadata(output);
4158
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4085
4159
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
4086
- name: parsedBody.code || parsedBody.Code || errorCode,
4160
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
4087
4161
  $fault: "client",
4088
- $metadata: deserializeMetadata(output),
4162
+ $metadata,
4089
4163
  });
4090
4164
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4091
4165
  }
@@ -4110,8 +4184,7 @@ const deserializeAws_json1_1UpdateTestGridProjectCommandError = async (output, c
4110
4184
  body: await parseBody(output.body, context),
4111
4185
  };
4112
4186
  let response;
4113
- let errorCode = "UnknownError";
4114
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4187
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4115
4188
  switch (errorCode) {
4116
4189
  case "ArgumentException":
4117
4190
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -4127,10 +4200,12 @@ const deserializeAws_json1_1UpdateTestGridProjectCommandError = async (output, c
4127
4200
  throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
4128
4201
  default:
4129
4202
  const parsedBody = parsedOutput.body;
4203
+ const $metadata = deserializeMetadata(output);
4204
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4130
4205
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
4131
- name: parsedBody.code || parsedBody.Code || errorCode,
4206
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
4132
4207
  $fault: "client",
4133
- $metadata: deserializeMetadata(output),
4208
+ $metadata,
4134
4209
  });
4135
4210
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4136
4211
  }
@@ -4155,8 +4230,7 @@ const deserializeAws_json1_1UpdateUploadCommandError = async (output, context) =
4155
4230
  body: await parseBody(output.body, context),
4156
4231
  };
4157
4232
  let response;
4158
- let errorCode = "UnknownError";
4159
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4233
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4160
4234
  switch (errorCode) {
4161
4235
  case "ArgumentException":
4162
4236
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -4172,10 +4246,12 @@ const deserializeAws_json1_1UpdateUploadCommandError = async (output, context) =
4172
4246
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
4173
4247
  default:
4174
4248
  const parsedBody = parsedOutput.body;
4249
+ const $metadata = deserializeMetadata(output);
4250
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4175
4251
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
4176
- name: parsedBody.code || parsedBody.Code || errorCode,
4252
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
4177
4253
  $fault: "client",
4178
- $metadata: deserializeMetadata(output),
4254
+ $metadata,
4179
4255
  });
4180
4256
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4181
4257
  }
@@ -4200,8 +4276,7 @@ const deserializeAws_json1_1UpdateVPCEConfigurationCommandError = async (output,
4200
4276
  body: await parseBody(output.body, context),
4201
4277
  };
4202
4278
  let response;
4203
- let errorCode = "UnknownError";
4204
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4279
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4205
4280
  switch (errorCode) {
4206
4281
  case "ArgumentException":
4207
4282
  case "com.amazonaws.devicefarm#ArgumentException":
@@ -4217,10 +4292,12 @@ const deserializeAws_json1_1UpdateVPCEConfigurationCommandError = async (output,
4217
4292
  throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
4218
4293
  default:
4219
4294
  const parsedBody = parsedOutput.body;
4295
+ const $metadata = deserializeMetadata(output);
4296
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4220
4297
  response = new DeviceFarmServiceException_1.DeviceFarmServiceException({
4221
- name: parsedBody.code || parsedBody.Code || errorCode,
4298
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
4222
4299
  $fault: "client",
4223
- $metadata: deserializeMetadata(output),
4300
+ $metadata,
4224
4301
  });
4225
4302
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4226
4303
  }
@@ -4355,190 +4432,162 @@ const serializeAws_json1_1AndroidPaths = (input, context) => {
4355
4432
  };
4356
4433
  const serializeAws_json1_1CreateDevicePoolRequest = (input, context) => {
4357
4434
  return {
4358
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
4359
- ...(input.maxDevices !== undefined && input.maxDevices !== null && { maxDevices: input.maxDevices }),
4360
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4361
- ...(input.projectArn !== undefined && input.projectArn !== null && { projectArn: input.projectArn }),
4362
- ...(input.rules !== undefined &&
4363
- input.rules !== null && { rules: serializeAws_json1_1Rules(input.rules, context) }),
4435
+ ...(input.description != null && { description: input.description }),
4436
+ ...(input.maxDevices != null && { maxDevices: input.maxDevices }),
4437
+ ...(input.name != null && { name: input.name }),
4438
+ ...(input.projectArn != null && { projectArn: input.projectArn }),
4439
+ ...(input.rules != null && { rules: serializeAws_json1_1Rules(input.rules, context) }),
4364
4440
  };
4365
4441
  };
4366
4442
  const serializeAws_json1_1CreateInstanceProfileRequest = (input, context) => {
4367
4443
  return {
4368
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
4369
- ...(input.excludeAppPackagesFromCleanup !== undefined &&
4370
- input.excludeAppPackagesFromCleanup !== null && {
4444
+ ...(input.description != null && { description: input.description }),
4445
+ ...(input.excludeAppPackagesFromCleanup != null && {
4371
4446
  excludeAppPackagesFromCleanup: serializeAws_json1_1PackageIds(input.excludeAppPackagesFromCleanup, context),
4372
4447
  }),
4373
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4374
- ...(input.packageCleanup !== undefined &&
4375
- input.packageCleanup !== null && { packageCleanup: input.packageCleanup }),
4376
- ...(input.rebootAfterUse !== undefined &&
4377
- input.rebootAfterUse !== null && { rebootAfterUse: input.rebootAfterUse }),
4448
+ ...(input.name != null && { name: input.name }),
4449
+ ...(input.packageCleanup != null && { packageCleanup: input.packageCleanup }),
4450
+ ...(input.rebootAfterUse != null && { rebootAfterUse: input.rebootAfterUse }),
4378
4451
  };
4379
4452
  };
4380
4453
  const serializeAws_json1_1CreateNetworkProfileRequest = (input, context) => {
4381
4454
  return {
4382
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
4383
- ...(input.downlinkBandwidthBits !== undefined &&
4384
- input.downlinkBandwidthBits !== null && { downlinkBandwidthBits: input.downlinkBandwidthBits }),
4385
- ...(input.downlinkDelayMs !== undefined &&
4386
- input.downlinkDelayMs !== null && { downlinkDelayMs: input.downlinkDelayMs }),
4387
- ...(input.downlinkJitterMs !== undefined &&
4388
- input.downlinkJitterMs !== null && { downlinkJitterMs: input.downlinkJitterMs }),
4389
- ...(input.downlinkLossPercent !== undefined &&
4390
- input.downlinkLossPercent !== null && { downlinkLossPercent: input.downlinkLossPercent }),
4391
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4392
- ...(input.projectArn !== undefined && input.projectArn !== null && { projectArn: input.projectArn }),
4393
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
4394
- ...(input.uplinkBandwidthBits !== undefined &&
4395
- input.uplinkBandwidthBits !== null && { uplinkBandwidthBits: input.uplinkBandwidthBits }),
4396
- ...(input.uplinkDelayMs !== undefined && input.uplinkDelayMs !== null && { uplinkDelayMs: input.uplinkDelayMs }),
4397
- ...(input.uplinkJitterMs !== undefined &&
4398
- input.uplinkJitterMs !== null && { uplinkJitterMs: input.uplinkJitterMs }),
4399
- ...(input.uplinkLossPercent !== undefined &&
4400
- input.uplinkLossPercent !== null && { uplinkLossPercent: input.uplinkLossPercent }),
4455
+ ...(input.description != null && { description: input.description }),
4456
+ ...(input.downlinkBandwidthBits != null && { downlinkBandwidthBits: input.downlinkBandwidthBits }),
4457
+ ...(input.downlinkDelayMs != null && { downlinkDelayMs: input.downlinkDelayMs }),
4458
+ ...(input.downlinkJitterMs != null && { downlinkJitterMs: input.downlinkJitterMs }),
4459
+ ...(input.downlinkLossPercent != null && { downlinkLossPercent: input.downlinkLossPercent }),
4460
+ ...(input.name != null && { name: input.name }),
4461
+ ...(input.projectArn != null && { projectArn: input.projectArn }),
4462
+ ...(input.type != null && { type: input.type }),
4463
+ ...(input.uplinkBandwidthBits != null && { uplinkBandwidthBits: input.uplinkBandwidthBits }),
4464
+ ...(input.uplinkDelayMs != null && { uplinkDelayMs: input.uplinkDelayMs }),
4465
+ ...(input.uplinkJitterMs != null && { uplinkJitterMs: input.uplinkJitterMs }),
4466
+ ...(input.uplinkLossPercent != null && { uplinkLossPercent: input.uplinkLossPercent }),
4401
4467
  };
4402
4468
  };
4403
4469
  const serializeAws_json1_1CreateProjectRequest = (input, context) => {
4404
4470
  return {
4405
- ...(input.defaultJobTimeoutMinutes !== undefined &&
4406
- input.defaultJobTimeoutMinutes !== null && { defaultJobTimeoutMinutes: input.defaultJobTimeoutMinutes }),
4407
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4471
+ ...(input.defaultJobTimeoutMinutes != null && { defaultJobTimeoutMinutes: input.defaultJobTimeoutMinutes }),
4472
+ ...(input.name != null && { name: input.name }),
4408
4473
  };
4409
4474
  };
4410
4475
  const serializeAws_json1_1CreateRemoteAccessSessionConfiguration = (input, context) => {
4411
4476
  return {
4412
- ...(input.billingMethod !== undefined && input.billingMethod !== null && { billingMethod: input.billingMethod }),
4413
- ...(input.vpceConfigurationArns !== undefined &&
4414
- input.vpceConfigurationArns !== null && {
4477
+ ...(input.billingMethod != null && { billingMethod: input.billingMethod }),
4478
+ ...(input.vpceConfigurationArns != null && {
4415
4479
  vpceConfigurationArns: serializeAws_json1_1AmazonResourceNames(input.vpceConfigurationArns, context),
4416
4480
  }),
4417
4481
  };
4418
4482
  };
4419
4483
  const serializeAws_json1_1CreateRemoteAccessSessionRequest = (input, context) => {
4420
4484
  return {
4421
- ...(input.clientId !== undefined && input.clientId !== null && { clientId: input.clientId }),
4422
- ...(input.configuration !== undefined &&
4423
- input.configuration !== null && {
4485
+ ...(input.clientId != null && { clientId: input.clientId }),
4486
+ ...(input.configuration != null && {
4424
4487
  configuration: serializeAws_json1_1CreateRemoteAccessSessionConfiguration(input.configuration, context),
4425
4488
  }),
4426
- ...(input.deviceArn !== undefined && input.deviceArn !== null && { deviceArn: input.deviceArn }),
4427
- ...(input.instanceArn !== undefined && input.instanceArn !== null && { instanceArn: input.instanceArn }),
4428
- ...(input.interactionMode !== undefined &&
4429
- input.interactionMode !== null && { interactionMode: input.interactionMode }),
4430
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4431
- ...(input.projectArn !== undefined && input.projectArn !== null && { projectArn: input.projectArn }),
4432
- ...(input.remoteDebugEnabled !== undefined &&
4433
- input.remoteDebugEnabled !== null && { remoteDebugEnabled: input.remoteDebugEnabled }),
4434
- ...(input.remoteRecordAppArn !== undefined &&
4435
- input.remoteRecordAppArn !== null && { remoteRecordAppArn: input.remoteRecordAppArn }),
4436
- ...(input.remoteRecordEnabled !== undefined &&
4437
- input.remoteRecordEnabled !== null && { remoteRecordEnabled: input.remoteRecordEnabled }),
4438
- ...(input.skipAppResign !== undefined && input.skipAppResign !== null && { skipAppResign: input.skipAppResign }),
4439
- ...(input.sshPublicKey !== undefined && input.sshPublicKey !== null && { sshPublicKey: input.sshPublicKey }),
4489
+ ...(input.deviceArn != null && { deviceArn: input.deviceArn }),
4490
+ ...(input.instanceArn != null && { instanceArn: input.instanceArn }),
4491
+ ...(input.interactionMode != null && { interactionMode: input.interactionMode }),
4492
+ ...(input.name != null && { name: input.name }),
4493
+ ...(input.projectArn != null && { projectArn: input.projectArn }),
4494
+ ...(input.remoteDebugEnabled != null && { remoteDebugEnabled: input.remoteDebugEnabled }),
4495
+ ...(input.remoteRecordAppArn != null && { remoteRecordAppArn: input.remoteRecordAppArn }),
4496
+ ...(input.remoteRecordEnabled != null && { remoteRecordEnabled: input.remoteRecordEnabled }),
4497
+ ...(input.skipAppResign != null && { skipAppResign: input.skipAppResign }),
4498
+ ...(input.sshPublicKey != null && { sshPublicKey: input.sshPublicKey }),
4440
4499
  };
4441
4500
  };
4442
4501
  const serializeAws_json1_1CreateTestGridProjectRequest = (input, context) => {
4443
4502
  return {
4444
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
4445
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4446
- ...(input.vpcConfig !== undefined &&
4447
- input.vpcConfig !== null && { vpcConfig: serializeAws_json1_1TestGridVpcConfig(input.vpcConfig, context) }),
4503
+ ...(input.description != null && { description: input.description }),
4504
+ ...(input.name != null && { name: input.name }),
4505
+ ...(input.vpcConfig != null && { vpcConfig: serializeAws_json1_1TestGridVpcConfig(input.vpcConfig, context) }),
4448
4506
  };
4449
4507
  };
4450
4508
  const serializeAws_json1_1CreateTestGridUrlRequest = (input, context) => {
4451
4509
  return {
4452
- ...(input.expiresInSeconds !== undefined &&
4453
- input.expiresInSeconds !== null && { expiresInSeconds: input.expiresInSeconds }),
4454
- ...(input.projectArn !== undefined && input.projectArn !== null && { projectArn: input.projectArn }),
4510
+ ...(input.expiresInSeconds != null && { expiresInSeconds: input.expiresInSeconds }),
4511
+ ...(input.projectArn != null && { projectArn: input.projectArn }),
4455
4512
  };
4456
4513
  };
4457
4514
  const serializeAws_json1_1CreateUploadRequest = (input, context) => {
4458
4515
  return {
4459
- ...(input.contentType !== undefined && input.contentType !== null && { contentType: input.contentType }),
4460
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4461
- ...(input.projectArn !== undefined && input.projectArn !== null && { projectArn: input.projectArn }),
4462
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
4516
+ ...(input.contentType != null && { contentType: input.contentType }),
4517
+ ...(input.name != null && { name: input.name }),
4518
+ ...(input.projectArn != null && { projectArn: input.projectArn }),
4519
+ ...(input.type != null && { type: input.type }),
4463
4520
  };
4464
4521
  };
4465
4522
  const serializeAws_json1_1CreateVPCEConfigurationRequest = (input, context) => {
4466
4523
  return {
4467
- ...(input.serviceDnsName !== undefined &&
4468
- input.serviceDnsName !== null && { serviceDnsName: input.serviceDnsName }),
4469
- ...(input.vpceConfigurationDescription !== undefined &&
4470
- input.vpceConfigurationDescription !== null && {
4524
+ ...(input.serviceDnsName != null && { serviceDnsName: input.serviceDnsName }),
4525
+ ...(input.vpceConfigurationDescription != null && {
4471
4526
  vpceConfigurationDescription: input.vpceConfigurationDescription,
4472
4527
  }),
4473
- ...(input.vpceConfigurationName !== undefined &&
4474
- input.vpceConfigurationName !== null && { vpceConfigurationName: input.vpceConfigurationName }),
4475
- ...(input.vpceServiceName !== undefined &&
4476
- input.vpceServiceName !== null && { vpceServiceName: input.vpceServiceName }),
4528
+ ...(input.vpceConfigurationName != null && { vpceConfigurationName: input.vpceConfigurationName }),
4529
+ ...(input.vpceServiceName != null && { vpceServiceName: input.vpceServiceName }),
4477
4530
  };
4478
4531
  };
4479
4532
  const serializeAws_json1_1CustomerArtifactPaths = (input, context) => {
4480
4533
  return {
4481
- ...(input.androidPaths !== undefined &&
4482
- input.androidPaths !== null && { androidPaths: serializeAws_json1_1AndroidPaths(input.androidPaths, context) }),
4483
- ...(input.deviceHostPaths !== undefined &&
4484
- input.deviceHostPaths !== null && {
4534
+ ...(input.androidPaths != null && { androidPaths: serializeAws_json1_1AndroidPaths(input.androidPaths, context) }),
4535
+ ...(input.deviceHostPaths != null && {
4485
4536
  deviceHostPaths: serializeAws_json1_1DeviceHostPaths(input.deviceHostPaths, context),
4486
4537
  }),
4487
- ...(input.iosPaths !== undefined &&
4488
- input.iosPaths !== null && { iosPaths: serializeAws_json1_1IosPaths(input.iosPaths, context) }),
4538
+ ...(input.iosPaths != null && { iosPaths: serializeAws_json1_1IosPaths(input.iosPaths, context) }),
4489
4539
  };
4490
4540
  };
4491
4541
  const serializeAws_json1_1DeleteDevicePoolRequest = (input, context) => {
4492
4542
  return {
4493
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
4543
+ ...(input.arn != null && { arn: input.arn }),
4494
4544
  };
4495
4545
  };
4496
4546
  const serializeAws_json1_1DeleteInstanceProfileRequest = (input, context) => {
4497
4547
  return {
4498
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
4548
+ ...(input.arn != null && { arn: input.arn }),
4499
4549
  };
4500
4550
  };
4501
4551
  const serializeAws_json1_1DeleteNetworkProfileRequest = (input, context) => {
4502
4552
  return {
4503
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
4553
+ ...(input.arn != null && { arn: input.arn }),
4504
4554
  };
4505
4555
  };
4506
4556
  const serializeAws_json1_1DeleteProjectRequest = (input, context) => {
4507
4557
  return {
4508
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
4558
+ ...(input.arn != null && { arn: input.arn }),
4509
4559
  };
4510
4560
  };
4511
4561
  const serializeAws_json1_1DeleteRemoteAccessSessionRequest = (input, context) => {
4512
4562
  return {
4513
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
4563
+ ...(input.arn != null && { arn: input.arn }),
4514
4564
  };
4515
4565
  };
4516
4566
  const serializeAws_json1_1DeleteRunRequest = (input, context) => {
4517
4567
  return {
4518
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
4568
+ ...(input.arn != null && { arn: input.arn }),
4519
4569
  };
4520
4570
  };
4521
4571
  const serializeAws_json1_1DeleteTestGridProjectRequest = (input, context) => {
4522
4572
  return {
4523
- ...(input.projectArn !== undefined && input.projectArn !== null && { projectArn: input.projectArn }),
4573
+ ...(input.projectArn != null && { projectArn: input.projectArn }),
4524
4574
  };
4525
4575
  };
4526
4576
  const serializeAws_json1_1DeleteUploadRequest = (input, context) => {
4527
4577
  return {
4528
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
4578
+ ...(input.arn != null && { arn: input.arn }),
4529
4579
  };
4530
4580
  };
4531
4581
  const serializeAws_json1_1DeleteVPCEConfigurationRequest = (input, context) => {
4532
4582
  return {
4533
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
4583
+ ...(input.arn != null && { arn: input.arn }),
4534
4584
  };
4535
4585
  };
4536
4586
  const serializeAws_json1_1DeviceFilter = (input, context) => {
4537
4587
  return {
4538
- ...(input.attribute !== undefined && input.attribute !== null && { attribute: input.attribute }),
4539
- ...(input.operator !== undefined && input.operator !== null && { operator: input.operator }),
4540
- ...(input.values !== undefined &&
4541
- input.values !== null && { values: serializeAws_json1_1DeviceFilterValues(input.values, context) }),
4588
+ ...(input.attribute != null && { attribute: input.attribute }),
4589
+ ...(input.operator != null && { operator: input.operator }),
4590
+ ...(input.values != null && { values: serializeAws_json1_1DeviceFilterValues(input.values, context) }),
4542
4591
  };
4543
4592
  };
4544
4593
  const serializeAws_json1_1DeviceFilters = (input, context) => {
@@ -4573,21 +4622,17 @@ const serializeAws_json1_1DeviceHostPaths = (input, context) => {
4573
4622
  };
4574
4623
  const serializeAws_json1_1DeviceSelectionConfiguration = (input, context) => {
4575
4624
  return {
4576
- ...(input.filters !== undefined &&
4577
- input.filters !== null && { filters: serializeAws_json1_1DeviceFilters(input.filters, context) }),
4578
- ...(input.maxDevices !== undefined && input.maxDevices !== null && { maxDevices: input.maxDevices }),
4625
+ ...(input.filters != null && { filters: serializeAws_json1_1DeviceFilters(input.filters, context) }),
4626
+ ...(input.maxDevices != null && { maxDevices: input.maxDevices }),
4579
4627
  };
4580
4628
  };
4581
4629
  const serializeAws_json1_1ExecutionConfiguration = (input, context) => {
4582
4630
  return {
4583
- ...(input.accountsCleanup !== undefined &&
4584
- input.accountsCleanup !== null && { accountsCleanup: input.accountsCleanup }),
4585
- ...(input.appPackagesCleanup !== undefined &&
4586
- input.appPackagesCleanup !== null && { appPackagesCleanup: input.appPackagesCleanup }),
4587
- ...(input.jobTimeoutMinutes !== undefined &&
4588
- input.jobTimeoutMinutes !== null && { jobTimeoutMinutes: input.jobTimeoutMinutes }),
4589
- ...(input.skipAppResign !== undefined && input.skipAppResign !== null && { skipAppResign: input.skipAppResign }),
4590
- ...(input.videoCapture !== undefined && input.videoCapture !== null && { videoCapture: input.videoCapture }),
4631
+ ...(input.accountsCleanup != null && { accountsCleanup: input.accountsCleanup }),
4632
+ ...(input.appPackagesCleanup != null && { appPackagesCleanup: input.appPackagesCleanup }),
4633
+ ...(input.jobTimeoutMinutes != null && { jobTimeoutMinutes: input.jobTimeoutMinutes }),
4634
+ ...(input.skipAppResign != null && { skipAppResign: input.skipAppResign }),
4635
+ ...(input.videoCapture != null && { videoCapture: input.videoCapture }),
4591
4636
  };
4592
4637
  };
4593
4638
  const serializeAws_json1_1GetAccountSettingsRequest = (input, context) => {
@@ -4595,104 +4640,101 @@ const serializeAws_json1_1GetAccountSettingsRequest = (input, context) => {
4595
4640
  };
4596
4641
  const serializeAws_json1_1GetDeviceInstanceRequest = (input, context) => {
4597
4642
  return {
4598
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
4643
+ ...(input.arn != null && { arn: input.arn }),
4599
4644
  };
4600
4645
  };
4601
4646
  const serializeAws_json1_1GetDevicePoolCompatibilityRequest = (input, context) => {
4602
4647
  return {
4603
- ...(input.appArn !== undefined && input.appArn !== null && { appArn: input.appArn }),
4604
- ...(input.configuration !== undefined &&
4605
- input.configuration !== null && {
4648
+ ...(input.appArn != null && { appArn: input.appArn }),
4649
+ ...(input.configuration != null && {
4606
4650
  configuration: serializeAws_json1_1ScheduleRunConfiguration(input.configuration, context),
4607
4651
  }),
4608
- ...(input.devicePoolArn !== undefined && input.devicePoolArn !== null && { devicePoolArn: input.devicePoolArn }),
4609
- ...(input.test !== undefined &&
4610
- input.test !== null && { test: serializeAws_json1_1ScheduleRunTest(input.test, context) }),
4611
- ...(input.testType !== undefined && input.testType !== null && { testType: input.testType }),
4652
+ ...(input.devicePoolArn != null && { devicePoolArn: input.devicePoolArn }),
4653
+ ...(input.test != null && { test: serializeAws_json1_1ScheduleRunTest(input.test, context) }),
4654
+ ...(input.testType != null && { testType: input.testType }),
4612
4655
  };
4613
4656
  };
4614
4657
  const serializeAws_json1_1GetDevicePoolRequest = (input, context) => {
4615
4658
  return {
4616
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
4659
+ ...(input.arn != null && { arn: input.arn }),
4617
4660
  };
4618
4661
  };
4619
4662
  const serializeAws_json1_1GetDeviceRequest = (input, context) => {
4620
4663
  return {
4621
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
4664
+ ...(input.arn != null && { arn: input.arn }),
4622
4665
  };
4623
4666
  };
4624
4667
  const serializeAws_json1_1GetInstanceProfileRequest = (input, context) => {
4625
4668
  return {
4626
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
4669
+ ...(input.arn != null && { arn: input.arn }),
4627
4670
  };
4628
4671
  };
4629
4672
  const serializeAws_json1_1GetJobRequest = (input, context) => {
4630
4673
  return {
4631
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
4674
+ ...(input.arn != null && { arn: input.arn }),
4632
4675
  };
4633
4676
  };
4634
4677
  const serializeAws_json1_1GetNetworkProfileRequest = (input, context) => {
4635
4678
  return {
4636
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
4679
+ ...(input.arn != null && { arn: input.arn }),
4637
4680
  };
4638
4681
  };
4639
4682
  const serializeAws_json1_1GetOfferingStatusRequest = (input, context) => {
4640
4683
  return {
4641
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4684
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4642
4685
  };
4643
4686
  };
4644
4687
  const serializeAws_json1_1GetProjectRequest = (input, context) => {
4645
4688
  return {
4646
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
4689
+ ...(input.arn != null && { arn: input.arn }),
4647
4690
  };
4648
4691
  };
4649
4692
  const serializeAws_json1_1GetRemoteAccessSessionRequest = (input, context) => {
4650
4693
  return {
4651
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
4694
+ ...(input.arn != null && { arn: input.arn }),
4652
4695
  };
4653
4696
  };
4654
4697
  const serializeAws_json1_1GetRunRequest = (input, context) => {
4655
4698
  return {
4656
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
4699
+ ...(input.arn != null && { arn: input.arn }),
4657
4700
  };
4658
4701
  };
4659
4702
  const serializeAws_json1_1GetSuiteRequest = (input, context) => {
4660
4703
  return {
4661
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
4704
+ ...(input.arn != null && { arn: input.arn }),
4662
4705
  };
4663
4706
  };
4664
4707
  const serializeAws_json1_1GetTestGridProjectRequest = (input, context) => {
4665
4708
  return {
4666
- ...(input.projectArn !== undefined && input.projectArn !== null && { projectArn: input.projectArn }),
4709
+ ...(input.projectArn != null && { projectArn: input.projectArn }),
4667
4710
  };
4668
4711
  };
4669
4712
  const serializeAws_json1_1GetTestGridSessionRequest = (input, context) => {
4670
4713
  return {
4671
- ...(input.projectArn !== undefined && input.projectArn !== null && { projectArn: input.projectArn }),
4672
- ...(input.sessionArn !== undefined && input.sessionArn !== null && { sessionArn: input.sessionArn }),
4673
- ...(input.sessionId !== undefined && input.sessionId !== null && { sessionId: input.sessionId }),
4714
+ ...(input.projectArn != null && { projectArn: input.projectArn }),
4715
+ ...(input.sessionArn != null && { sessionArn: input.sessionArn }),
4716
+ ...(input.sessionId != null && { sessionId: input.sessionId }),
4674
4717
  };
4675
4718
  };
4676
4719
  const serializeAws_json1_1GetTestRequest = (input, context) => {
4677
4720
  return {
4678
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
4721
+ ...(input.arn != null && { arn: input.arn }),
4679
4722
  };
4680
4723
  };
4681
4724
  const serializeAws_json1_1GetUploadRequest = (input, context) => {
4682
4725
  return {
4683
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
4726
+ ...(input.arn != null && { arn: input.arn }),
4684
4727
  };
4685
4728
  };
4686
4729
  const serializeAws_json1_1GetVPCEConfigurationRequest = (input, context) => {
4687
4730
  return {
4688
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
4731
+ ...(input.arn != null && { arn: input.arn }),
4689
4732
  };
4690
4733
  };
4691
4734
  const serializeAws_json1_1InstallToRemoteAccessSessionRequest = (input, context) => {
4692
4735
  return {
4693
- ...(input.appArn !== undefined && input.appArn !== null && { appArn: input.appArn }),
4694
- ...(input.remoteAccessSessionArn !== undefined &&
4695
- input.remoteAccessSessionArn !== null && { remoteAccessSessionArn: input.remoteAccessSessionArn }),
4736
+ ...(input.appArn != null && { appArn: input.appArn }),
4737
+ ...(input.remoteAccessSessionArn != null && { remoteAccessSessionArn: input.remoteAccessSessionArn }),
4696
4738
  };
4697
4739
  };
4698
4740
  const serializeAws_json1_1InstanceLabels = (input, context) => {
@@ -4717,169 +4759,164 @@ const serializeAws_json1_1IosPaths = (input, context) => {
4717
4759
  };
4718
4760
  const serializeAws_json1_1ListArtifactsRequest = (input, context) => {
4719
4761
  return {
4720
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
4721
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4722
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
4762
+ ...(input.arn != null && { arn: input.arn }),
4763
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4764
+ ...(input.type != null && { type: input.type }),
4723
4765
  };
4724
4766
  };
4725
4767
  const serializeAws_json1_1ListDeviceInstancesRequest = (input, context) => {
4726
4768
  return {
4727
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
4728
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4769
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
4770
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4729
4771
  };
4730
4772
  };
4731
4773
  const serializeAws_json1_1ListDevicePoolsRequest = (input, context) => {
4732
4774
  return {
4733
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
4734
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4735
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
4775
+ ...(input.arn != null && { arn: input.arn }),
4776
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4777
+ ...(input.type != null && { type: input.type }),
4736
4778
  };
4737
4779
  };
4738
4780
  const serializeAws_json1_1ListDevicesRequest = (input, context) => {
4739
4781
  return {
4740
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
4741
- ...(input.filters !== undefined &&
4742
- input.filters !== null && { filters: serializeAws_json1_1DeviceFilters(input.filters, context) }),
4743
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4782
+ ...(input.arn != null && { arn: input.arn }),
4783
+ ...(input.filters != null && { filters: serializeAws_json1_1DeviceFilters(input.filters, context) }),
4784
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4744
4785
  };
4745
4786
  };
4746
4787
  const serializeAws_json1_1ListInstanceProfilesRequest = (input, context) => {
4747
4788
  return {
4748
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
4749
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4789
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
4790
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4750
4791
  };
4751
4792
  };
4752
4793
  const serializeAws_json1_1ListJobsRequest = (input, context) => {
4753
4794
  return {
4754
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
4755
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4795
+ ...(input.arn != null && { arn: input.arn }),
4796
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4756
4797
  };
4757
4798
  };
4758
4799
  const serializeAws_json1_1ListNetworkProfilesRequest = (input, context) => {
4759
4800
  return {
4760
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
4761
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4762
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
4801
+ ...(input.arn != null && { arn: input.arn }),
4802
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4803
+ ...(input.type != null && { type: input.type }),
4763
4804
  };
4764
4805
  };
4765
4806
  const serializeAws_json1_1ListOfferingPromotionsRequest = (input, context) => {
4766
4807
  return {
4767
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4808
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4768
4809
  };
4769
4810
  };
4770
4811
  const serializeAws_json1_1ListOfferingsRequest = (input, context) => {
4771
4812
  return {
4772
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4813
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4773
4814
  };
4774
4815
  };
4775
4816
  const serializeAws_json1_1ListOfferingTransactionsRequest = (input, context) => {
4776
4817
  return {
4777
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4818
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4778
4819
  };
4779
4820
  };
4780
4821
  const serializeAws_json1_1ListProjectsRequest = (input, context) => {
4781
4822
  return {
4782
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
4783
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4823
+ ...(input.arn != null && { arn: input.arn }),
4824
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4784
4825
  };
4785
4826
  };
4786
4827
  const serializeAws_json1_1ListRemoteAccessSessionsRequest = (input, context) => {
4787
4828
  return {
4788
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
4789
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4829
+ ...(input.arn != null && { arn: input.arn }),
4830
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4790
4831
  };
4791
4832
  };
4792
4833
  const serializeAws_json1_1ListRunsRequest = (input, context) => {
4793
4834
  return {
4794
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
4795
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4835
+ ...(input.arn != null && { arn: input.arn }),
4836
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4796
4837
  };
4797
4838
  };
4798
4839
  const serializeAws_json1_1ListSamplesRequest = (input, context) => {
4799
4840
  return {
4800
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
4801
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4841
+ ...(input.arn != null && { arn: input.arn }),
4842
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4802
4843
  };
4803
4844
  };
4804
4845
  const serializeAws_json1_1ListSuitesRequest = (input, context) => {
4805
4846
  return {
4806
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
4807
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4847
+ ...(input.arn != null && { arn: input.arn }),
4848
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4808
4849
  };
4809
4850
  };
4810
4851
  const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
4811
4852
  return {
4812
- ...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
4853
+ ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
4813
4854
  };
4814
4855
  };
4815
4856
  const serializeAws_json1_1ListTestGridProjectsRequest = (input, context) => {
4816
4857
  return {
4817
- ...(input.maxResult !== undefined && input.maxResult !== null && { maxResult: input.maxResult }),
4818
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4858
+ ...(input.maxResult != null && { maxResult: input.maxResult }),
4859
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4819
4860
  };
4820
4861
  };
4821
4862
  const serializeAws_json1_1ListTestGridSessionActionsRequest = (input, context) => {
4822
4863
  return {
4823
- ...(input.maxResult !== undefined && input.maxResult !== null && { maxResult: input.maxResult }),
4824
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4825
- ...(input.sessionArn !== undefined && input.sessionArn !== null && { sessionArn: input.sessionArn }),
4864
+ ...(input.maxResult != null && { maxResult: input.maxResult }),
4865
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4866
+ ...(input.sessionArn != null && { sessionArn: input.sessionArn }),
4826
4867
  };
4827
4868
  };
4828
4869
  const serializeAws_json1_1ListTestGridSessionArtifactsRequest = (input, context) => {
4829
4870
  return {
4830
- ...(input.maxResult !== undefined && input.maxResult !== null && { maxResult: input.maxResult }),
4831
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4832
- ...(input.sessionArn !== undefined && input.sessionArn !== null && { sessionArn: input.sessionArn }),
4833
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
4871
+ ...(input.maxResult != null && { maxResult: input.maxResult }),
4872
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4873
+ ...(input.sessionArn != null && { sessionArn: input.sessionArn }),
4874
+ ...(input.type != null && { type: input.type }),
4834
4875
  };
4835
4876
  };
4836
4877
  const serializeAws_json1_1ListTestGridSessionsRequest = (input, context) => {
4837
4878
  return {
4838
- ...(input.creationTimeAfter !== undefined &&
4839
- input.creationTimeAfter !== null && { creationTimeAfter: Math.round(input.creationTimeAfter.getTime() / 1000) }),
4840
- ...(input.creationTimeBefore !== undefined &&
4841
- input.creationTimeBefore !== null && {
4879
+ ...(input.creationTimeAfter != null && { creationTimeAfter: Math.round(input.creationTimeAfter.getTime() / 1000) }),
4880
+ ...(input.creationTimeBefore != null && {
4842
4881
  creationTimeBefore: Math.round(input.creationTimeBefore.getTime() / 1000),
4843
4882
  }),
4844
- ...(input.endTimeAfter !== undefined &&
4845
- input.endTimeAfter !== null && { endTimeAfter: Math.round(input.endTimeAfter.getTime() / 1000) }),
4846
- ...(input.endTimeBefore !== undefined &&
4847
- input.endTimeBefore !== null && { endTimeBefore: Math.round(input.endTimeBefore.getTime() / 1000) }),
4848
- ...(input.maxResult !== undefined && input.maxResult !== null && { maxResult: input.maxResult }),
4849
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4850
- ...(input.projectArn !== undefined && input.projectArn !== null && { projectArn: input.projectArn }),
4851
- ...(input.status !== undefined && input.status !== null && { status: input.status }),
4883
+ ...(input.endTimeAfter != null && { endTimeAfter: Math.round(input.endTimeAfter.getTime() / 1000) }),
4884
+ ...(input.endTimeBefore != null && { endTimeBefore: Math.round(input.endTimeBefore.getTime() / 1000) }),
4885
+ ...(input.maxResult != null && { maxResult: input.maxResult }),
4886
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4887
+ ...(input.projectArn != null && { projectArn: input.projectArn }),
4888
+ ...(input.status != null && { status: input.status }),
4852
4889
  };
4853
4890
  };
4854
4891
  const serializeAws_json1_1ListTestsRequest = (input, context) => {
4855
4892
  return {
4856
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
4857
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4893
+ ...(input.arn != null && { arn: input.arn }),
4894
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4858
4895
  };
4859
4896
  };
4860
4897
  const serializeAws_json1_1ListUniqueProblemsRequest = (input, context) => {
4861
4898
  return {
4862
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
4863
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4899
+ ...(input.arn != null && { arn: input.arn }),
4900
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4864
4901
  };
4865
4902
  };
4866
4903
  const serializeAws_json1_1ListUploadsRequest = (input, context) => {
4867
4904
  return {
4868
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
4869
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4870
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
4905
+ ...(input.arn != null && { arn: input.arn }),
4906
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4907
+ ...(input.type != null && { type: input.type }),
4871
4908
  };
4872
4909
  };
4873
4910
  const serializeAws_json1_1ListVPCEConfigurationsRequest = (input, context) => {
4874
4911
  return {
4875
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
4876
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4912
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
4913
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4877
4914
  };
4878
4915
  };
4879
4916
  const serializeAws_json1_1Location = (input, context) => {
4880
4917
  return {
4881
- ...(input.latitude !== undefined && input.latitude !== null && { latitude: (0, smithy_client_1.serializeFloat)(input.latitude) }),
4882
- ...(input.longitude !== undefined && input.longitude !== null && { longitude: (0, smithy_client_1.serializeFloat)(input.longitude) }),
4918
+ ...(input.latitude != null && { latitude: (0, smithy_client_1.serializeFloat)(input.latitude) }),
4919
+ ...(input.longitude != null && { longitude: (0, smithy_client_1.serializeFloat)(input.longitude) }),
4883
4920
  };
4884
4921
  };
4885
4922
  const serializeAws_json1_1PackageIds = (input, context) => {
@@ -4894,31 +4931,30 @@ const serializeAws_json1_1PackageIds = (input, context) => {
4894
4931
  };
4895
4932
  const serializeAws_json1_1PurchaseOfferingRequest = (input, context) => {
4896
4933
  return {
4897
- ...(input.offeringId !== undefined && input.offeringId !== null && { offeringId: input.offeringId }),
4898
- ...(input.offeringPromotionId !== undefined &&
4899
- input.offeringPromotionId !== null && { offeringPromotionId: input.offeringPromotionId }),
4900
- ...(input.quantity !== undefined && input.quantity !== null && { quantity: input.quantity }),
4934
+ ...(input.offeringId != null && { offeringId: input.offeringId }),
4935
+ ...(input.offeringPromotionId != null && { offeringPromotionId: input.offeringPromotionId }),
4936
+ ...(input.quantity != null && { quantity: input.quantity }),
4901
4937
  };
4902
4938
  };
4903
4939
  const serializeAws_json1_1Radios = (input, context) => {
4904
4940
  return {
4905
- ...(input.bluetooth !== undefined && input.bluetooth !== null && { bluetooth: input.bluetooth }),
4906
- ...(input.gps !== undefined && input.gps !== null && { gps: input.gps }),
4907
- ...(input.nfc !== undefined && input.nfc !== null && { nfc: input.nfc }),
4908
- ...(input.wifi !== undefined && input.wifi !== null && { wifi: input.wifi }),
4941
+ ...(input.bluetooth != null && { bluetooth: input.bluetooth }),
4942
+ ...(input.gps != null && { gps: input.gps }),
4943
+ ...(input.nfc != null && { nfc: input.nfc }),
4944
+ ...(input.wifi != null && { wifi: input.wifi }),
4909
4945
  };
4910
4946
  };
4911
4947
  const serializeAws_json1_1RenewOfferingRequest = (input, context) => {
4912
4948
  return {
4913
- ...(input.offeringId !== undefined && input.offeringId !== null && { offeringId: input.offeringId }),
4914
- ...(input.quantity !== undefined && input.quantity !== null && { quantity: input.quantity }),
4949
+ ...(input.offeringId != null && { offeringId: input.offeringId }),
4950
+ ...(input.quantity != null && { quantity: input.quantity }),
4915
4951
  };
4916
4952
  };
4917
4953
  const serializeAws_json1_1Rule = (input, context) => {
4918
4954
  return {
4919
- ...(input.attribute !== undefined && input.attribute !== null && { attribute: input.attribute }),
4920
- ...(input.operator !== undefined && input.operator !== null && { operator: input.operator }),
4921
- ...(input.value !== undefined && input.value !== null && { value: input.value }),
4955
+ ...(input.attribute != null && { attribute: input.attribute }),
4956
+ ...(input.operator != null && { operator: input.operator }),
4957
+ ...(input.value != null && { value: input.value }),
4922
4958
  };
4923
4959
  };
4924
4960
  const serializeAws_json1_1Rules = (input, context) => {
@@ -4933,61 +4969,48 @@ const serializeAws_json1_1Rules = (input, context) => {
4933
4969
  };
4934
4970
  const serializeAws_json1_1ScheduleRunConfiguration = (input, context) => {
4935
4971
  return {
4936
- ...(input.auxiliaryApps !== undefined &&
4937
- input.auxiliaryApps !== null && {
4972
+ ...(input.auxiliaryApps != null && {
4938
4973
  auxiliaryApps: serializeAws_json1_1AmazonResourceNames(input.auxiliaryApps, context),
4939
4974
  }),
4940
- ...(input.billingMethod !== undefined && input.billingMethod !== null && { billingMethod: input.billingMethod }),
4941
- ...(input.customerArtifactPaths !== undefined &&
4942
- input.customerArtifactPaths !== null && {
4975
+ ...(input.billingMethod != null && { billingMethod: input.billingMethod }),
4976
+ ...(input.customerArtifactPaths != null && {
4943
4977
  customerArtifactPaths: serializeAws_json1_1CustomerArtifactPaths(input.customerArtifactPaths, context),
4944
4978
  }),
4945
- ...(input.extraDataPackageArn !== undefined &&
4946
- input.extraDataPackageArn !== null && { extraDataPackageArn: input.extraDataPackageArn }),
4947
- ...(input.locale !== undefined && input.locale !== null && { locale: input.locale }),
4948
- ...(input.location !== undefined &&
4949
- input.location !== null && { location: serializeAws_json1_1Location(input.location, context) }),
4950
- ...(input.networkProfileArn !== undefined &&
4951
- input.networkProfileArn !== null && { networkProfileArn: input.networkProfileArn }),
4952
- ...(input.radios !== undefined &&
4953
- input.radios !== null && { radios: serializeAws_json1_1Radios(input.radios, context) }),
4954
- ...(input.vpceConfigurationArns !== undefined &&
4955
- input.vpceConfigurationArns !== null && {
4979
+ ...(input.extraDataPackageArn != null && { extraDataPackageArn: input.extraDataPackageArn }),
4980
+ ...(input.locale != null && { locale: input.locale }),
4981
+ ...(input.location != null && { location: serializeAws_json1_1Location(input.location, context) }),
4982
+ ...(input.networkProfileArn != null && { networkProfileArn: input.networkProfileArn }),
4983
+ ...(input.radios != null && { radios: serializeAws_json1_1Radios(input.radios, context) }),
4984
+ ...(input.vpceConfigurationArns != null && {
4956
4985
  vpceConfigurationArns: serializeAws_json1_1AmazonResourceNames(input.vpceConfigurationArns, context),
4957
4986
  }),
4958
4987
  };
4959
4988
  };
4960
4989
  const serializeAws_json1_1ScheduleRunRequest = (input, context) => {
4961
4990
  return {
4962
- ...(input.appArn !== undefined && input.appArn !== null && { appArn: input.appArn }),
4963
- ...(input.configuration !== undefined &&
4964
- input.configuration !== null && {
4991
+ ...(input.appArn != null && { appArn: input.appArn }),
4992
+ ...(input.configuration != null && {
4965
4993
  configuration: serializeAws_json1_1ScheduleRunConfiguration(input.configuration, context),
4966
4994
  }),
4967
- ...(input.devicePoolArn !== undefined && input.devicePoolArn !== null && { devicePoolArn: input.devicePoolArn }),
4968
- ...(input.deviceSelectionConfiguration !== undefined &&
4969
- input.deviceSelectionConfiguration !== null && {
4995
+ ...(input.devicePoolArn != null && { devicePoolArn: input.devicePoolArn }),
4996
+ ...(input.deviceSelectionConfiguration != null && {
4970
4997
  deviceSelectionConfiguration: serializeAws_json1_1DeviceSelectionConfiguration(input.deviceSelectionConfiguration, context),
4971
4998
  }),
4972
- ...(input.executionConfiguration !== undefined &&
4973
- input.executionConfiguration !== null && {
4999
+ ...(input.executionConfiguration != null && {
4974
5000
  executionConfiguration: serializeAws_json1_1ExecutionConfiguration(input.executionConfiguration, context),
4975
5001
  }),
4976
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4977
- ...(input.projectArn !== undefined && input.projectArn !== null && { projectArn: input.projectArn }),
4978
- ...(input.test !== undefined &&
4979
- input.test !== null && { test: serializeAws_json1_1ScheduleRunTest(input.test, context) }),
5002
+ ...(input.name != null && { name: input.name }),
5003
+ ...(input.projectArn != null && { projectArn: input.projectArn }),
5004
+ ...(input.test != null && { test: serializeAws_json1_1ScheduleRunTest(input.test, context) }),
4980
5005
  };
4981
5006
  };
4982
5007
  const serializeAws_json1_1ScheduleRunTest = (input, context) => {
4983
5008
  return {
4984
- ...(input.filter !== undefined && input.filter !== null && { filter: input.filter }),
4985
- ...(input.parameters !== undefined &&
4986
- input.parameters !== null && { parameters: serializeAws_json1_1TestParameters(input.parameters, context) }),
4987
- ...(input.testPackageArn !== undefined &&
4988
- input.testPackageArn !== null && { testPackageArn: input.testPackageArn }),
4989
- ...(input.testSpecArn !== undefined && input.testSpecArn !== null && { testSpecArn: input.testSpecArn }),
4990
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
5009
+ ...(input.filter != null && { filter: input.filter }),
5010
+ ...(input.parameters != null && { parameters: serializeAws_json1_1TestParameters(input.parameters, context) }),
5011
+ ...(input.testPackageArn != null && { testPackageArn: input.testPackageArn }),
5012
+ ...(input.testSpecArn != null && { testSpecArn: input.testSpecArn }),
5013
+ ...(input.type != null && { type: input.type }),
4991
5014
  };
4992
5015
  };
4993
5016
  const serializeAws_json1_1SecurityGroupIds = (input, context) => {
@@ -5002,17 +5025,17 @@ const serializeAws_json1_1SecurityGroupIds = (input, context) => {
5002
5025
  };
5003
5026
  const serializeAws_json1_1StopJobRequest = (input, context) => {
5004
5027
  return {
5005
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
5028
+ ...(input.arn != null && { arn: input.arn }),
5006
5029
  };
5007
5030
  };
5008
5031
  const serializeAws_json1_1StopRemoteAccessSessionRequest = (input, context) => {
5009
5032
  return {
5010
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
5033
+ ...(input.arn != null && { arn: input.arn }),
5011
5034
  };
5012
5035
  };
5013
5036
  const serializeAws_json1_1StopRunRequest = (input, context) => {
5014
5037
  return {
5015
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
5038
+ ...(input.arn != null && { arn: input.arn }),
5016
5039
  };
5017
5040
  };
5018
5041
  const serializeAws_json1_1SubnetIds = (input, context) => {
@@ -5027,8 +5050,8 @@ const serializeAws_json1_1SubnetIds = (input, context) => {
5027
5050
  };
5028
5051
  const serializeAws_json1_1Tag = (input, context) => {
5029
5052
  return {
5030
- ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
5031
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
5053
+ ...(input.Key != null && { Key: input.Key }),
5054
+ ...(input.Value != null && { Value: input.Value }),
5032
5055
  };
5033
5056
  };
5034
5057
  const serializeAws_json1_1TagKeyList = (input, context) => {
@@ -5053,19 +5076,17 @@ const serializeAws_json1_1TagList = (input, context) => {
5053
5076
  };
5054
5077
  const serializeAws_json1_1TagResourceRequest = (input, context) => {
5055
5078
  return {
5056
- ...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
5057
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
5079
+ ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
5080
+ ...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
5058
5081
  };
5059
5082
  };
5060
5083
  const serializeAws_json1_1TestGridVpcConfig = (input, context) => {
5061
5084
  return {
5062
- ...(input.securityGroupIds !== undefined &&
5063
- input.securityGroupIds !== null && {
5085
+ ...(input.securityGroupIds != null && {
5064
5086
  securityGroupIds: serializeAws_json1_1SecurityGroupIds(input.securityGroupIds, context),
5065
5087
  }),
5066
- ...(input.subnetIds !== undefined &&
5067
- input.subnetIds !== null && { subnetIds: serializeAws_json1_1SubnetIds(input.subnetIds, context) }),
5068
- ...(input.vpcId !== undefined && input.vpcId !== null && { vpcId: input.vpcId }),
5088
+ ...(input.subnetIds != null && { subnetIds: serializeAws_json1_1SubnetIds(input.subnetIds, context) }),
5089
+ ...(input.vpcId != null && { vpcId: input.vpcId }),
5069
5090
  };
5070
5091
  };
5071
5092
  const serializeAws_json1_1TestParameters = (input, context) => {
@@ -5081,107 +5102,87 @@ const serializeAws_json1_1TestParameters = (input, context) => {
5081
5102
  };
5082
5103
  const serializeAws_json1_1UntagResourceRequest = (input, context) => {
5083
5104
  return {
5084
- ...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
5085
- ...(input.TagKeys !== undefined &&
5086
- input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
5105
+ ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
5106
+ ...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
5087
5107
  };
5088
5108
  };
5089
5109
  const serializeAws_json1_1UpdateDeviceInstanceRequest = (input, context) => {
5090
5110
  return {
5091
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
5092
- ...(input.labels !== undefined &&
5093
- input.labels !== null && { labels: serializeAws_json1_1InstanceLabels(input.labels, context) }),
5094
- ...(input.profileArn !== undefined && input.profileArn !== null && { profileArn: input.profileArn }),
5111
+ ...(input.arn != null && { arn: input.arn }),
5112
+ ...(input.labels != null && { labels: serializeAws_json1_1InstanceLabels(input.labels, context) }),
5113
+ ...(input.profileArn != null && { profileArn: input.profileArn }),
5095
5114
  };
5096
5115
  };
5097
5116
  const serializeAws_json1_1UpdateDevicePoolRequest = (input, context) => {
5098
5117
  return {
5099
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
5100
- ...(input.clearMaxDevices !== undefined &&
5101
- input.clearMaxDevices !== null && { clearMaxDevices: input.clearMaxDevices }),
5102
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
5103
- ...(input.maxDevices !== undefined && input.maxDevices !== null && { maxDevices: input.maxDevices }),
5104
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
5105
- ...(input.rules !== undefined &&
5106
- input.rules !== null && { rules: serializeAws_json1_1Rules(input.rules, context) }),
5118
+ ...(input.arn != null && { arn: input.arn }),
5119
+ ...(input.clearMaxDevices != null && { clearMaxDevices: input.clearMaxDevices }),
5120
+ ...(input.description != null && { description: input.description }),
5121
+ ...(input.maxDevices != null && { maxDevices: input.maxDevices }),
5122
+ ...(input.name != null && { name: input.name }),
5123
+ ...(input.rules != null && { rules: serializeAws_json1_1Rules(input.rules, context) }),
5107
5124
  };
5108
5125
  };
5109
5126
  const serializeAws_json1_1UpdateInstanceProfileRequest = (input, context) => {
5110
5127
  return {
5111
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
5112
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
5113
- ...(input.excludeAppPackagesFromCleanup !== undefined &&
5114
- input.excludeAppPackagesFromCleanup !== null && {
5128
+ ...(input.arn != null && { arn: input.arn }),
5129
+ ...(input.description != null && { description: input.description }),
5130
+ ...(input.excludeAppPackagesFromCleanup != null && {
5115
5131
  excludeAppPackagesFromCleanup: serializeAws_json1_1PackageIds(input.excludeAppPackagesFromCleanup, context),
5116
5132
  }),
5117
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
5118
- ...(input.packageCleanup !== undefined &&
5119
- input.packageCleanup !== null && { packageCleanup: input.packageCleanup }),
5120
- ...(input.rebootAfterUse !== undefined &&
5121
- input.rebootAfterUse !== null && { rebootAfterUse: input.rebootAfterUse }),
5133
+ ...(input.name != null && { name: input.name }),
5134
+ ...(input.packageCleanup != null && { packageCleanup: input.packageCleanup }),
5135
+ ...(input.rebootAfterUse != null && { rebootAfterUse: input.rebootAfterUse }),
5122
5136
  };
5123
5137
  };
5124
5138
  const serializeAws_json1_1UpdateNetworkProfileRequest = (input, context) => {
5125
5139
  return {
5126
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
5127
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
5128
- ...(input.downlinkBandwidthBits !== undefined &&
5129
- input.downlinkBandwidthBits !== null && { downlinkBandwidthBits: input.downlinkBandwidthBits }),
5130
- ...(input.downlinkDelayMs !== undefined &&
5131
- input.downlinkDelayMs !== null && { downlinkDelayMs: input.downlinkDelayMs }),
5132
- ...(input.downlinkJitterMs !== undefined &&
5133
- input.downlinkJitterMs !== null && { downlinkJitterMs: input.downlinkJitterMs }),
5134
- ...(input.downlinkLossPercent !== undefined &&
5135
- input.downlinkLossPercent !== null && { downlinkLossPercent: input.downlinkLossPercent }),
5136
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
5137
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
5138
- ...(input.uplinkBandwidthBits !== undefined &&
5139
- input.uplinkBandwidthBits !== null && { uplinkBandwidthBits: input.uplinkBandwidthBits }),
5140
- ...(input.uplinkDelayMs !== undefined && input.uplinkDelayMs !== null && { uplinkDelayMs: input.uplinkDelayMs }),
5141
- ...(input.uplinkJitterMs !== undefined &&
5142
- input.uplinkJitterMs !== null && { uplinkJitterMs: input.uplinkJitterMs }),
5143
- ...(input.uplinkLossPercent !== undefined &&
5144
- input.uplinkLossPercent !== null && { uplinkLossPercent: input.uplinkLossPercent }),
5140
+ ...(input.arn != null && { arn: input.arn }),
5141
+ ...(input.description != null && { description: input.description }),
5142
+ ...(input.downlinkBandwidthBits != null && { downlinkBandwidthBits: input.downlinkBandwidthBits }),
5143
+ ...(input.downlinkDelayMs != null && { downlinkDelayMs: input.downlinkDelayMs }),
5144
+ ...(input.downlinkJitterMs != null && { downlinkJitterMs: input.downlinkJitterMs }),
5145
+ ...(input.downlinkLossPercent != null && { downlinkLossPercent: input.downlinkLossPercent }),
5146
+ ...(input.name != null && { name: input.name }),
5147
+ ...(input.type != null && { type: input.type }),
5148
+ ...(input.uplinkBandwidthBits != null && { uplinkBandwidthBits: input.uplinkBandwidthBits }),
5149
+ ...(input.uplinkDelayMs != null && { uplinkDelayMs: input.uplinkDelayMs }),
5150
+ ...(input.uplinkJitterMs != null && { uplinkJitterMs: input.uplinkJitterMs }),
5151
+ ...(input.uplinkLossPercent != null && { uplinkLossPercent: input.uplinkLossPercent }),
5145
5152
  };
5146
5153
  };
5147
5154
  const serializeAws_json1_1UpdateProjectRequest = (input, context) => {
5148
5155
  return {
5149
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
5150
- ...(input.defaultJobTimeoutMinutes !== undefined &&
5151
- input.defaultJobTimeoutMinutes !== null && { defaultJobTimeoutMinutes: input.defaultJobTimeoutMinutes }),
5152
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
5156
+ ...(input.arn != null && { arn: input.arn }),
5157
+ ...(input.defaultJobTimeoutMinutes != null && { defaultJobTimeoutMinutes: input.defaultJobTimeoutMinutes }),
5158
+ ...(input.name != null && { name: input.name }),
5153
5159
  };
5154
5160
  };
5155
5161
  const serializeAws_json1_1UpdateTestGridProjectRequest = (input, context) => {
5156
5162
  return {
5157
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
5158
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
5159
- ...(input.projectArn !== undefined && input.projectArn !== null && { projectArn: input.projectArn }),
5160
- ...(input.vpcConfig !== undefined &&
5161
- input.vpcConfig !== null && { vpcConfig: serializeAws_json1_1TestGridVpcConfig(input.vpcConfig, context) }),
5163
+ ...(input.description != null && { description: input.description }),
5164
+ ...(input.name != null && { name: input.name }),
5165
+ ...(input.projectArn != null && { projectArn: input.projectArn }),
5166
+ ...(input.vpcConfig != null && { vpcConfig: serializeAws_json1_1TestGridVpcConfig(input.vpcConfig, context) }),
5162
5167
  };
5163
5168
  };
5164
5169
  const serializeAws_json1_1UpdateUploadRequest = (input, context) => {
5165
5170
  return {
5166
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
5167
- ...(input.contentType !== undefined && input.contentType !== null && { contentType: input.contentType }),
5168
- ...(input.editContent !== undefined && input.editContent !== null && { editContent: input.editContent }),
5169
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
5171
+ ...(input.arn != null && { arn: input.arn }),
5172
+ ...(input.contentType != null && { contentType: input.contentType }),
5173
+ ...(input.editContent != null && { editContent: input.editContent }),
5174
+ ...(input.name != null && { name: input.name }),
5170
5175
  };
5171
5176
  };
5172
5177
  const serializeAws_json1_1UpdateVPCEConfigurationRequest = (input, context) => {
5173
5178
  return {
5174
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
5175
- ...(input.serviceDnsName !== undefined &&
5176
- input.serviceDnsName !== null && { serviceDnsName: input.serviceDnsName }),
5177
- ...(input.vpceConfigurationDescription !== undefined &&
5178
- input.vpceConfigurationDescription !== null && {
5179
+ ...(input.arn != null && { arn: input.arn }),
5180
+ ...(input.serviceDnsName != null && { serviceDnsName: input.serviceDnsName }),
5181
+ ...(input.vpceConfigurationDescription != null && {
5179
5182
  vpceConfigurationDescription: input.vpceConfigurationDescription,
5180
5183
  }),
5181
- ...(input.vpceConfigurationName !== undefined &&
5182
- input.vpceConfigurationName !== null && { vpceConfigurationName: input.vpceConfigurationName }),
5183
- ...(input.vpceServiceName !== undefined &&
5184
- input.vpceServiceName !== null && { vpceServiceName: input.vpceServiceName }),
5184
+ ...(input.vpceConfigurationName != null && { vpceConfigurationName: input.vpceConfigurationName }),
5185
+ ...(input.vpceServiceName != null && { vpceServiceName: input.vpceServiceName }),
5185
5186
  };
5186
5187
  };
5187
5188
  const deserializeAws_json1_1AccountSettings = (output, context) => {
@@ -5189,17 +5190,13 @@ const deserializeAws_json1_1AccountSettings = (output, context) => {
5189
5190
  awsAccountNumber: (0, smithy_client_1.expectString)(output.awsAccountNumber),
5190
5191
  defaultJobTimeoutMinutes: (0, smithy_client_1.expectInt32)(output.defaultJobTimeoutMinutes),
5191
5192
  maxJobTimeoutMinutes: (0, smithy_client_1.expectInt32)(output.maxJobTimeoutMinutes),
5192
- maxSlots: output.maxSlots !== undefined && output.maxSlots !== null
5193
- ? deserializeAws_json1_1MaxSlotMap(output.maxSlots, context)
5194
- : undefined,
5193
+ maxSlots: output.maxSlots != null ? deserializeAws_json1_1MaxSlotMap(output.maxSlots, context) : undefined,
5195
5194
  skipAppResign: (0, smithy_client_1.expectBoolean)(output.skipAppResign),
5196
- trialMinutes: output.trialMinutes !== undefined && output.trialMinutes !== null
5197
- ? deserializeAws_json1_1TrialMinutes(output.trialMinutes, context)
5198
- : undefined,
5199
- unmeteredDevices: output.unmeteredDevices !== undefined && output.unmeteredDevices !== null
5195
+ trialMinutes: output.trialMinutes != null ? deserializeAws_json1_1TrialMinutes(output.trialMinutes, context) : undefined,
5196
+ unmeteredDevices: output.unmeteredDevices != null
5200
5197
  ? deserializeAws_json1_1PurchasedDevicesMap(output.unmeteredDevices, context)
5201
5198
  : undefined,
5202
- unmeteredRemoteAccessDevices: output.unmeteredRemoteAccessDevices !== undefined && output.unmeteredRemoteAccessDevices !== null
5199
+ unmeteredRemoteAccessDevices: output.unmeteredRemoteAccessDevices != null
5203
5200
  ? deserializeAws_json1_1PurchasedDevicesMap(output.unmeteredRemoteAccessDevices, context)
5204
5201
  : undefined,
5205
5202
  };
@@ -5265,79 +5262,65 @@ const deserializeAws_json1_1CPU = (output, context) => {
5265
5262
  };
5266
5263
  const deserializeAws_json1_1CreateDevicePoolResult = (output, context) => {
5267
5264
  return {
5268
- devicePool: output.devicePool !== undefined && output.devicePool !== null
5269
- ? deserializeAws_json1_1DevicePool(output.devicePool, context)
5270
- : undefined,
5265
+ devicePool: output.devicePool != null ? deserializeAws_json1_1DevicePool(output.devicePool, context) : undefined,
5271
5266
  };
5272
5267
  };
5273
5268
  const deserializeAws_json1_1CreateInstanceProfileResult = (output, context) => {
5274
5269
  return {
5275
- instanceProfile: output.instanceProfile !== undefined && output.instanceProfile !== null
5270
+ instanceProfile: output.instanceProfile != null
5276
5271
  ? deserializeAws_json1_1InstanceProfile(output.instanceProfile, context)
5277
5272
  : undefined,
5278
5273
  };
5279
5274
  };
5280
5275
  const deserializeAws_json1_1CreateNetworkProfileResult = (output, context) => {
5281
5276
  return {
5282
- networkProfile: output.networkProfile !== undefined && output.networkProfile !== null
5283
- ? deserializeAws_json1_1NetworkProfile(output.networkProfile, context)
5284
- : undefined,
5277
+ networkProfile: output.networkProfile != null ? deserializeAws_json1_1NetworkProfile(output.networkProfile, context) : undefined,
5285
5278
  };
5286
5279
  };
5287
5280
  const deserializeAws_json1_1CreateProjectResult = (output, context) => {
5288
5281
  return {
5289
- project: output.project !== undefined && output.project !== null
5290
- ? deserializeAws_json1_1Project(output.project, context)
5291
- : undefined,
5282
+ project: output.project != null ? deserializeAws_json1_1Project(output.project, context) : undefined,
5292
5283
  };
5293
5284
  };
5294
5285
  const deserializeAws_json1_1CreateRemoteAccessSessionResult = (output, context) => {
5295
5286
  return {
5296
- remoteAccessSession: output.remoteAccessSession !== undefined && output.remoteAccessSession !== null
5287
+ remoteAccessSession: output.remoteAccessSession != null
5297
5288
  ? deserializeAws_json1_1RemoteAccessSession(output.remoteAccessSession, context)
5298
5289
  : undefined,
5299
5290
  };
5300
5291
  };
5301
5292
  const deserializeAws_json1_1CreateTestGridProjectResult = (output, context) => {
5302
5293
  return {
5303
- testGridProject: output.testGridProject !== undefined && output.testGridProject !== null
5294
+ testGridProject: output.testGridProject != null
5304
5295
  ? deserializeAws_json1_1TestGridProject(output.testGridProject, context)
5305
5296
  : undefined,
5306
5297
  };
5307
5298
  };
5308
5299
  const deserializeAws_json1_1CreateTestGridUrlResult = (output, context) => {
5309
5300
  return {
5310
- expires: output.expires !== undefined && output.expires !== null
5311
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.expires)))
5312
- : undefined,
5301
+ expires: output.expires != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.expires))) : undefined,
5313
5302
  url: (0, smithy_client_1.expectString)(output.url),
5314
5303
  };
5315
5304
  };
5316
5305
  const deserializeAws_json1_1CreateUploadResult = (output, context) => {
5317
5306
  return {
5318
- upload: output.upload !== undefined && output.upload !== null
5319
- ? deserializeAws_json1_1Upload(output.upload, context)
5320
- : undefined,
5307
+ upload: output.upload != null ? deserializeAws_json1_1Upload(output.upload, context) : undefined,
5321
5308
  };
5322
5309
  };
5323
5310
  const deserializeAws_json1_1CreateVPCEConfigurationResult = (output, context) => {
5324
5311
  return {
5325
- vpceConfiguration: output.vpceConfiguration !== undefined && output.vpceConfiguration !== null
5312
+ vpceConfiguration: output.vpceConfiguration != null
5326
5313
  ? deserializeAws_json1_1VPCEConfiguration(output.vpceConfiguration, context)
5327
5314
  : undefined,
5328
5315
  };
5329
5316
  };
5330
5317
  const deserializeAws_json1_1CustomerArtifactPaths = (output, context) => {
5331
5318
  return {
5332
- androidPaths: output.androidPaths !== undefined && output.androidPaths !== null
5333
- ? deserializeAws_json1_1AndroidPaths(output.androidPaths, context)
5334
- : undefined,
5335
- deviceHostPaths: output.deviceHostPaths !== undefined && output.deviceHostPaths !== null
5319
+ androidPaths: output.androidPaths != null ? deserializeAws_json1_1AndroidPaths(output.androidPaths, context) : undefined,
5320
+ deviceHostPaths: output.deviceHostPaths != null
5336
5321
  ? deserializeAws_json1_1DeviceHostPaths(output.deviceHostPaths, context)
5337
5322
  : undefined,
5338
- iosPaths: output.iosPaths !== undefined && output.iosPaths !== null
5339
- ? deserializeAws_json1_1IosPaths(output.iosPaths, context)
5340
- : undefined,
5323
+ iosPaths: output.iosPaths != null ? deserializeAws_json1_1IosPaths(output.iosPaths, context) : undefined,
5341
5324
  };
5342
5325
  };
5343
5326
  const deserializeAws_json1_1DeleteDevicePoolResult = (output, context) => {
@@ -5372,15 +5355,13 @@ const deserializeAws_json1_1Device = (output, context) => {
5372
5355
  arn: (0, smithy_client_1.expectString)(output.arn),
5373
5356
  availability: (0, smithy_client_1.expectString)(output.availability),
5374
5357
  carrier: (0, smithy_client_1.expectString)(output.carrier),
5375
- cpu: output.cpu !== undefined && output.cpu !== null ? deserializeAws_json1_1CPU(output.cpu, context) : undefined,
5358
+ cpu: output.cpu != null ? deserializeAws_json1_1CPU(output.cpu, context) : undefined,
5376
5359
  fleetName: (0, smithy_client_1.expectString)(output.fleetName),
5377
5360
  fleetType: (0, smithy_client_1.expectString)(output.fleetType),
5378
5361
  formFactor: (0, smithy_client_1.expectString)(output.formFactor),
5379
5362
  heapSize: (0, smithy_client_1.expectLong)(output.heapSize),
5380
5363
  image: (0, smithy_client_1.expectString)(output.image),
5381
- instances: output.instances !== undefined && output.instances !== null
5382
- ? deserializeAws_json1_1DeviceInstances(output.instances, context)
5383
- : undefined,
5364
+ instances: output.instances != null ? deserializeAws_json1_1DeviceInstances(output.instances, context) : undefined,
5384
5365
  manufacturer: (0, smithy_client_1.expectString)(output.manufacturer),
5385
5366
  memory: (0, smithy_client_1.expectLong)(output.memory),
5386
5367
  model: (0, smithy_client_1.expectString)(output.model),
@@ -5391,18 +5372,14 @@ const deserializeAws_json1_1Device = (output, context) => {
5391
5372
  radio: (0, smithy_client_1.expectString)(output.radio),
5392
5373
  remoteAccessEnabled: (0, smithy_client_1.expectBoolean)(output.remoteAccessEnabled),
5393
5374
  remoteDebugEnabled: (0, smithy_client_1.expectBoolean)(output.remoteDebugEnabled),
5394
- resolution: output.resolution !== undefined && output.resolution !== null
5395
- ? deserializeAws_json1_1Resolution(output.resolution, context)
5396
- : undefined,
5375
+ resolution: output.resolution != null ? deserializeAws_json1_1Resolution(output.resolution, context) : undefined,
5397
5376
  };
5398
5377
  };
5399
5378
  const deserializeAws_json1_1DeviceFilter = (output, context) => {
5400
5379
  return {
5401
5380
  attribute: (0, smithy_client_1.expectString)(output.attribute),
5402
5381
  operator: (0, smithy_client_1.expectString)(output.operator),
5403
- values: output.values !== undefined && output.values !== null
5404
- ? deserializeAws_json1_1DeviceFilterValues(output.values, context)
5405
- : undefined,
5382
+ values: output.values != null ? deserializeAws_json1_1DeviceFilterValues(output.values, context) : undefined,
5406
5383
  };
5407
5384
  };
5408
5385
  const deserializeAws_json1_1DeviceFilters = (output, context) => {
@@ -5442,12 +5419,10 @@ const deserializeAws_json1_1DeviceInstance = (output, context) => {
5442
5419
  return {
5443
5420
  arn: (0, smithy_client_1.expectString)(output.arn),
5444
5421
  deviceArn: (0, smithy_client_1.expectString)(output.deviceArn),
5445
- instanceProfile: output.instanceProfile !== undefined && output.instanceProfile !== null
5422
+ instanceProfile: output.instanceProfile != null
5446
5423
  ? deserializeAws_json1_1InstanceProfile(output.instanceProfile, context)
5447
5424
  : undefined,
5448
- labels: output.labels !== undefined && output.labels !== null
5449
- ? deserializeAws_json1_1InstanceLabels(output.labels, context)
5450
- : undefined,
5425
+ labels: output.labels != null ? deserializeAws_json1_1InstanceLabels(output.labels, context) : undefined,
5451
5426
  status: (0, smithy_client_1.expectString)(output.status),
5452
5427
  udid: (0, smithy_client_1.expectString)(output.udid),
5453
5428
  };
@@ -5476,19 +5451,15 @@ const deserializeAws_json1_1DevicePool = (output, context) => {
5476
5451
  description: (0, smithy_client_1.expectString)(output.description),
5477
5452
  maxDevices: (0, smithy_client_1.expectInt32)(output.maxDevices),
5478
5453
  name: (0, smithy_client_1.expectString)(output.name),
5479
- rules: output.rules !== undefined && output.rules !== null
5480
- ? deserializeAws_json1_1Rules(output.rules, context)
5481
- : undefined,
5454
+ rules: output.rules != null ? deserializeAws_json1_1Rules(output.rules, context) : undefined,
5482
5455
  type: (0, smithy_client_1.expectString)(output.type),
5483
5456
  };
5484
5457
  };
5485
5458
  const deserializeAws_json1_1DevicePoolCompatibilityResult = (output, context) => {
5486
5459
  return {
5487
5460
  compatible: (0, smithy_client_1.expectBoolean)(output.compatible),
5488
- device: output.device !== undefined && output.device !== null
5489
- ? deserializeAws_json1_1Device(output.device, context)
5490
- : undefined,
5491
- incompatibilityMessages: output.incompatibilityMessages !== undefined && output.incompatibilityMessages !== null
5461
+ device: output.device != null ? deserializeAws_json1_1Device(output.device, context) : undefined,
5462
+ incompatibilityMessages: output.incompatibilityMessages != null
5492
5463
  ? deserializeAws_json1_1IncompatibilityMessages(output.incompatibilityMessages, context)
5493
5464
  : undefined,
5494
5465
  };
@@ -5528,136 +5499,116 @@ const deserializeAws_json1_1Devices = (output, context) => {
5528
5499
  };
5529
5500
  const deserializeAws_json1_1DeviceSelectionResult = (output, context) => {
5530
5501
  return {
5531
- filters: output.filters !== undefined && output.filters !== null
5532
- ? deserializeAws_json1_1DeviceFilters(output.filters, context)
5533
- : undefined,
5502
+ filters: output.filters != null ? deserializeAws_json1_1DeviceFilters(output.filters, context) : undefined,
5534
5503
  matchedDevicesCount: (0, smithy_client_1.expectInt32)(output.matchedDevicesCount),
5535
5504
  maxDevices: (0, smithy_client_1.expectInt32)(output.maxDevices),
5536
5505
  };
5537
5506
  };
5538
5507
  const deserializeAws_json1_1GetAccountSettingsResult = (output, context) => {
5539
5508
  return {
5540
- accountSettings: output.accountSettings !== undefined && output.accountSettings !== null
5509
+ accountSettings: output.accountSettings != null
5541
5510
  ? deserializeAws_json1_1AccountSettings(output.accountSettings, context)
5542
5511
  : undefined,
5543
5512
  };
5544
5513
  };
5545
5514
  const deserializeAws_json1_1GetDeviceInstanceResult = (output, context) => {
5546
5515
  return {
5547
- deviceInstance: output.deviceInstance !== undefined && output.deviceInstance !== null
5548
- ? deserializeAws_json1_1DeviceInstance(output.deviceInstance, context)
5549
- : undefined,
5516
+ deviceInstance: output.deviceInstance != null ? deserializeAws_json1_1DeviceInstance(output.deviceInstance, context) : undefined,
5550
5517
  };
5551
5518
  };
5552
5519
  const deserializeAws_json1_1GetDevicePoolCompatibilityResult = (output, context) => {
5553
5520
  return {
5554
- compatibleDevices: output.compatibleDevices !== undefined && output.compatibleDevices !== null
5521
+ compatibleDevices: output.compatibleDevices != null
5555
5522
  ? deserializeAws_json1_1DevicePoolCompatibilityResults(output.compatibleDevices, context)
5556
5523
  : undefined,
5557
- incompatibleDevices: output.incompatibleDevices !== undefined && output.incompatibleDevices !== null
5524
+ incompatibleDevices: output.incompatibleDevices != null
5558
5525
  ? deserializeAws_json1_1DevicePoolCompatibilityResults(output.incompatibleDevices, context)
5559
5526
  : undefined,
5560
5527
  };
5561
5528
  };
5562
5529
  const deserializeAws_json1_1GetDevicePoolResult = (output, context) => {
5563
5530
  return {
5564
- devicePool: output.devicePool !== undefined && output.devicePool !== null
5565
- ? deserializeAws_json1_1DevicePool(output.devicePool, context)
5566
- : undefined,
5531
+ devicePool: output.devicePool != null ? deserializeAws_json1_1DevicePool(output.devicePool, context) : undefined,
5567
5532
  };
5568
5533
  };
5569
5534
  const deserializeAws_json1_1GetDeviceResult = (output, context) => {
5570
5535
  return {
5571
- device: output.device !== undefined && output.device !== null
5572
- ? deserializeAws_json1_1Device(output.device, context)
5573
- : undefined,
5536
+ device: output.device != null ? deserializeAws_json1_1Device(output.device, context) : undefined,
5574
5537
  };
5575
5538
  };
5576
5539
  const deserializeAws_json1_1GetInstanceProfileResult = (output, context) => {
5577
5540
  return {
5578
- instanceProfile: output.instanceProfile !== undefined && output.instanceProfile !== null
5541
+ instanceProfile: output.instanceProfile != null
5579
5542
  ? deserializeAws_json1_1InstanceProfile(output.instanceProfile, context)
5580
5543
  : undefined,
5581
5544
  };
5582
5545
  };
5583
5546
  const deserializeAws_json1_1GetJobResult = (output, context) => {
5584
5547
  return {
5585
- job: output.job !== undefined && output.job !== null ? deserializeAws_json1_1Job(output.job, context) : undefined,
5548
+ job: output.job != null ? deserializeAws_json1_1Job(output.job, context) : undefined,
5586
5549
  };
5587
5550
  };
5588
5551
  const deserializeAws_json1_1GetNetworkProfileResult = (output, context) => {
5589
5552
  return {
5590
- networkProfile: output.networkProfile !== undefined && output.networkProfile !== null
5591
- ? deserializeAws_json1_1NetworkProfile(output.networkProfile, context)
5592
- : undefined,
5553
+ networkProfile: output.networkProfile != null ? deserializeAws_json1_1NetworkProfile(output.networkProfile, context) : undefined,
5593
5554
  };
5594
5555
  };
5595
5556
  const deserializeAws_json1_1GetOfferingStatusResult = (output, context) => {
5596
5557
  return {
5597
- current: output.current !== undefined && output.current !== null
5598
- ? deserializeAws_json1_1OfferingStatusMap(output.current, context)
5599
- : undefined,
5600
- nextPeriod: output.nextPeriod !== undefined && output.nextPeriod !== null
5601
- ? deserializeAws_json1_1OfferingStatusMap(output.nextPeriod, context)
5602
- : undefined,
5558
+ current: output.current != null ? deserializeAws_json1_1OfferingStatusMap(output.current, context) : undefined,
5559
+ nextPeriod: output.nextPeriod != null ? deserializeAws_json1_1OfferingStatusMap(output.nextPeriod, context) : undefined,
5603
5560
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5604
5561
  };
5605
5562
  };
5606
5563
  const deserializeAws_json1_1GetProjectResult = (output, context) => {
5607
5564
  return {
5608
- project: output.project !== undefined && output.project !== null
5609
- ? deserializeAws_json1_1Project(output.project, context)
5610
- : undefined,
5565
+ project: output.project != null ? deserializeAws_json1_1Project(output.project, context) : undefined,
5611
5566
  };
5612
5567
  };
5613
5568
  const deserializeAws_json1_1GetRemoteAccessSessionResult = (output, context) => {
5614
5569
  return {
5615
- remoteAccessSession: output.remoteAccessSession !== undefined && output.remoteAccessSession !== null
5570
+ remoteAccessSession: output.remoteAccessSession != null
5616
5571
  ? deserializeAws_json1_1RemoteAccessSession(output.remoteAccessSession, context)
5617
5572
  : undefined,
5618
5573
  };
5619
5574
  };
5620
5575
  const deserializeAws_json1_1GetRunResult = (output, context) => {
5621
5576
  return {
5622
- run: output.run !== undefined && output.run !== null ? deserializeAws_json1_1Run(output.run, context) : undefined,
5577
+ run: output.run != null ? deserializeAws_json1_1Run(output.run, context) : undefined,
5623
5578
  };
5624
5579
  };
5625
5580
  const deserializeAws_json1_1GetSuiteResult = (output, context) => {
5626
5581
  return {
5627
- suite: output.suite !== undefined && output.suite !== null
5628
- ? deserializeAws_json1_1Suite(output.suite, context)
5629
- : undefined,
5582
+ suite: output.suite != null ? deserializeAws_json1_1Suite(output.suite, context) : undefined,
5630
5583
  };
5631
5584
  };
5632
5585
  const deserializeAws_json1_1GetTestGridProjectResult = (output, context) => {
5633
5586
  return {
5634
- testGridProject: output.testGridProject !== undefined && output.testGridProject !== null
5587
+ testGridProject: output.testGridProject != null
5635
5588
  ? deserializeAws_json1_1TestGridProject(output.testGridProject, context)
5636
5589
  : undefined,
5637
5590
  };
5638
5591
  };
5639
5592
  const deserializeAws_json1_1GetTestGridSessionResult = (output, context) => {
5640
5593
  return {
5641
- testGridSession: output.testGridSession !== undefined && output.testGridSession !== null
5594
+ testGridSession: output.testGridSession != null
5642
5595
  ? deserializeAws_json1_1TestGridSession(output.testGridSession, context)
5643
5596
  : undefined,
5644
5597
  };
5645
5598
  };
5646
5599
  const deserializeAws_json1_1GetTestResult = (output, context) => {
5647
5600
  return {
5648
- test: output.test !== undefined && output.test !== null ? deserializeAws_json1_1Test(output.test, context) : undefined,
5601
+ test: output.test != null ? deserializeAws_json1_1Test(output.test, context) : undefined,
5649
5602
  };
5650
5603
  };
5651
5604
  const deserializeAws_json1_1GetUploadResult = (output, context) => {
5652
5605
  return {
5653
- upload: output.upload !== undefined && output.upload !== null
5654
- ? deserializeAws_json1_1Upload(output.upload, context)
5655
- : undefined,
5606
+ upload: output.upload != null ? deserializeAws_json1_1Upload(output.upload, context) : undefined,
5656
5607
  };
5657
5608
  };
5658
5609
  const deserializeAws_json1_1GetVPCEConfigurationResult = (output, context) => {
5659
5610
  return {
5660
- vpceConfiguration: output.vpceConfiguration !== undefined && output.vpceConfiguration !== null
5611
+ vpceConfiguration: output.vpceConfiguration != null
5661
5612
  ? deserializeAws_json1_1VPCEConfiguration(output.vpceConfiguration, context)
5662
5613
  : undefined,
5663
5614
  };
@@ -5686,9 +5637,7 @@ const deserializeAws_json1_1IncompatibilityMessages = (output, context) => {
5686
5637
  };
5687
5638
  const deserializeAws_json1_1InstallToRemoteAccessSessionResult = (output, context) => {
5688
5639
  return {
5689
- appUpload: output.appUpload !== undefined && output.appUpload !== null
5690
- ? deserializeAws_json1_1Upload(output.appUpload, context)
5691
- : undefined,
5640
+ appUpload: output.appUpload != null ? deserializeAws_json1_1Upload(output.appUpload, context) : undefined,
5692
5641
  };
5693
5642
  };
5694
5643
  const deserializeAws_json1_1InstanceLabels = (output, context) => {
@@ -5706,7 +5655,7 @@ const deserializeAws_json1_1InstanceProfile = (output, context) => {
5706
5655
  return {
5707
5656
  arn: (0, smithy_client_1.expectString)(output.arn),
5708
5657
  description: (0, smithy_client_1.expectString)(output.description),
5709
- excludeAppPackagesFromCleanup: output.excludeAppPackagesFromCleanup !== undefined && output.excludeAppPackagesFromCleanup !== null
5658
+ excludeAppPackagesFromCleanup: output.excludeAppPackagesFromCleanup != null
5710
5659
  ? deserializeAws_json1_1PackageIds(output.excludeAppPackagesFromCleanup, context)
5711
5660
  : undefined,
5712
5661
  name: (0, smithy_client_1.expectString)(output.name),
@@ -5749,29 +5698,17 @@ const deserializeAws_json1_1IosPaths = (output, context) => {
5749
5698
  const deserializeAws_json1_1Job = (output, context) => {
5750
5699
  return {
5751
5700
  arn: (0, smithy_client_1.expectString)(output.arn),
5752
- counters: output.counters !== undefined && output.counters !== null
5753
- ? deserializeAws_json1_1Counters(output.counters, context)
5754
- : undefined,
5755
- created: output.created !== undefined && output.created !== null
5756
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created)))
5757
- : undefined,
5758
- device: output.device !== undefined && output.device !== null
5759
- ? deserializeAws_json1_1Device(output.device, context)
5760
- : undefined,
5761
- deviceMinutes: output.deviceMinutes !== undefined && output.deviceMinutes !== null
5762
- ? deserializeAws_json1_1DeviceMinutes(output.deviceMinutes, context)
5763
- : undefined,
5701
+ counters: output.counters != null ? deserializeAws_json1_1Counters(output.counters, context) : undefined,
5702
+ created: output.created != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created))) : undefined,
5703
+ device: output.device != null ? deserializeAws_json1_1Device(output.device, context) : undefined,
5704
+ deviceMinutes: output.deviceMinutes != null ? deserializeAws_json1_1DeviceMinutes(output.deviceMinutes, context) : undefined,
5764
5705
  instanceArn: (0, smithy_client_1.expectString)(output.instanceArn),
5765
5706
  message: (0, smithy_client_1.expectString)(output.message),
5766
5707
  name: (0, smithy_client_1.expectString)(output.name),
5767
5708
  result: (0, smithy_client_1.expectString)(output.result),
5768
- started: output.started !== undefined && output.started !== null
5769
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.started)))
5770
- : undefined,
5709
+ started: output.started != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.started))) : undefined,
5771
5710
  status: (0, smithy_client_1.expectString)(output.status),
5772
- stopped: output.stopped !== undefined && output.stopped !== null
5773
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stopped)))
5774
- : undefined,
5711
+ stopped: output.stopped != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stopped))) : undefined,
5775
5712
  type: (0, smithy_client_1.expectString)(output.type),
5776
5713
  videoCapture: (0, smithy_client_1.expectBoolean)(output.videoCapture),
5777
5714
  videoEndpoint: (0, smithy_client_1.expectString)(output.videoEndpoint),
@@ -5795,15 +5732,13 @@ const deserializeAws_json1_1LimitExceededException = (output, context) => {
5795
5732
  };
5796
5733
  const deserializeAws_json1_1ListArtifactsResult = (output, context) => {
5797
5734
  return {
5798
- artifacts: output.artifacts !== undefined && output.artifacts !== null
5799
- ? deserializeAws_json1_1Artifacts(output.artifacts, context)
5800
- : undefined,
5735
+ artifacts: output.artifacts != null ? deserializeAws_json1_1Artifacts(output.artifacts, context) : undefined,
5801
5736
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5802
5737
  };
5803
5738
  };
5804
5739
  const deserializeAws_json1_1ListDeviceInstancesResult = (output, context) => {
5805
5740
  return {
5806
- deviceInstances: output.deviceInstances !== undefined && output.deviceInstances !== null
5741
+ deviceInstances: output.deviceInstances != null
5807
5742
  ? deserializeAws_json1_1DeviceInstances(output.deviceInstances, context)
5808
5743
  : undefined,
5809
5744
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
@@ -5811,23 +5746,19 @@ const deserializeAws_json1_1ListDeviceInstancesResult = (output, context) => {
5811
5746
  };
5812
5747
  const deserializeAws_json1_1ListDevicePoolsResult = (output, context) => {
5813
5748
  return {
5814
- devicePools: output.devicePools !== undefined && output.devicePools !== null
5815
- ? deserializeAws_json1_1DevicePools(output.devicePools, context)
5816
- : undefined,
5749
+ devicePools: output.devicePools != null ? deserializeAws_json1_1DevicePools(output.devicePools, context) : undefined,
5817
5750
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5818
5751
  };
5819
5752
  };
5820
5753
  const deserializeAws_json1_1ListDevicesResult = (output, context) => {
5821
5754
  return {
5822
- devices: output.devices !== undefined && output.devices !== null
5823
- ? deserializeAws_json1_1Devices(output.devices, context)
5824
- : undefined,
5755
+ devices: output.devices != null ? deserializeAws_json1_1Devices(output.devices, context) : undefined,
5825
5756
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5826
5757
  };
5827
5758
  };
5828
5759
  const deserializeAws_json1_1ListInstanceProfilesResult = (output, context) => {
5829
5760
  return {
5830
- instanceProfiles: output.instanceProfiles !== undefined && output.instanceProfiles !== null
5761
+ instanceProfiles: output.instanceProfiles != null
5831
5762
  ? deserializeAws_json1_1InstanceProfiles(output.instanceProfiles, context)
5832
5763
  : undefined,
5833
5764
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
@@ -5835,13 +5766,13 @@ const deserializeAws_json1_1ListInstanceProfilesResult = (output, context) => {
5835
5766
  };
5836
5767
  const deserializeAws_json1_1ListJobsResult = (output, context) => {
5837
5768
  return {
5838
- jobs: output.jobs !== undefined && output.jobs !== null ? deserializeAws_json1_1Jobs(output.jobs, context) : undefined,
5769
+ jobs: output.jobs != null ? deserializeAws_json1_1Jobs(output.jobs, context) : undefined,
5839
5770
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5840
5771
  };
5841
5772
  };
5842
5773
  const deserializeAws_json1_1ListNetworkProfilesResult = (output, context) => {
5843
5774
  return {
5844
- networkProfiles: output.networkProfiles !== undefined && output.networkProfiles !== null
5775
+ networkProfiles: output.networkProfiles != null
5845
5776
  ? deserializeAws_json1_1NetworkProfiles(output.networkProfiles, context)
5846
5777
  : undefined,
5847
5778
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
@@ -5850,7 +5781,7 @@ const deserializeAws_json1_1ListNetworkProfilesResult = (output, context) => {
5850
5781
  const deserializeAws_json1_1ListOfferingPromotionsResult = (output, context) => {
5851
5782
  return {
5852
5783
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5853
- offeringPromotions: output.offeringPromotions !== undefined && output.offeringPromotions !== null
5784
+ offeringPromotions: output.offeringPromotions != null
5854
5785
  ? deserializeAws_json1_1OfferingPromotions(output.offeringPromotions, context)
5855
5786
  : undefined,
5856
5787
  };
@@ -5858,15 +5789,13 @@ const deserializeAws_json1_1ListOfferingPromotionsResult = (output, context) =>
5858
5789
  const deserializeAws_json1_1ListOfferingsResult = (output, context) => {
5859
5790
  return {
5860
5791
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5861
- offerings: output.offerings !== undefined && output.offerings !== null
5862
- ? deserializeAws_json1_1Offerings(output.offerings, context)
5863
- : undefined,
5792
+ offerings: output.offerings != null ? deserializeAws_json1_1Offerings(output.offerings, context) : undefined,
5864
5793
  };
5865
5794
  };
5866
5795
  const deserializeAws_json1_1ListOfferingTransactionsResult = (output, context) => {
5867
5796
  return {
5868
5797
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5869
- offeringTransactions: output.offeringTransactions !== undefined && output.offeringTransactions !== null
5798
+ offeringTransactions: output.offeringTransactions != null
5870
5799
  ? deserializeAws_json1_1OfferingTransactions(output.offeringTransactions, context)
5871
5800
  : undefined,
5872
5801
  };
@@ -5874,15 +5803,13 @@ const deserializeAws_json1_1ListOfferingTransactionsResult = (output, context) =
5874
5803
  const deserializeAws_json1_1ListProjectsResult = (output, context) => {
5875
5804
  return {
5876
5805
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5877
- projects: output.projects !== undefined && output.projects !== null
5878
- ? deserializeAws_json1_1Projects(output.projects, context)
5879
- : undefined,
5806
+ projects: output.projects != null ? deserializeAws_json1_1Projects(output.projects, context) : undefined,
5880
5807
  };
5881
5808
  };
5882
5809
  const deserializeAws_json1_1ListRemoteAccessSessionsResult = (output, context) => {
5883
5810
  return {
5884
5811
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5885
- remoteAccessSessions: output.remoteAccessSessions !== undefined && output.remoteAccessSessions !== null
5812
+ remoteAccessSessions: output.remoteAccessSessions != null
5886
5813
  ? deserializeAws_json1_1RemoteAccessSessions(output.remoteAccessSessions, context)
5887
5814
  : undefined,
5888
5815
  };
@@ -5890,60 +5817,50 @@ const deserializeAws_json1_1ListRemoteAccessSessionsResult = (output, context) =
5890
5817
  const deserializeAws_json1_1ListRunsResult = (output, context) => {
5891
5818
  return {
5892
5819
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5893
- runs: output.runs !== undefined && output.runs !== null ? deserializeAws_json1_1Runs(output.runs, context) : undefined,
5820
+ runs: output.runs != null ? deserializeAws_json1_1Runs(output.runs, context) : undefined,
5894
5821
  };
5895
5822
  };
5896
5823
  const deserializeAws_json1_1ListSamplesResult = (output, context) => {
5897
5824
  return {
5898
5825
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5899
- samples: output.samples !== undefined && output.samples !== null
5900
- ? deserializeAws_json1_1Samples(output.samples, context)
5901
- : undefined,
5826
+ samples: output.samples != null ? deserializeAws_json1_1Samples(output.samples, context) : undefined,
5902
5827
  };
5903
5828
  };
5904
5829
  const deserializeAws_json1_1ListSuitesResult = (output, context) => {
5905
5830
  return {
5906
5831
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5907
- suites: output.suites !== undefined && output.suites !== null
5908
- ? deserializeAws_json1_1Suites(output.suites, context)
5909
- : undefined,
5832
+ suites: output.suites != null ? deserializeAws_json1_1Suites(output.suites, context) : undefined,
5910
5833
  };
5911
5834
  };
5912
5835
  const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
5913
5836
  return {
5914
- Tags: output.Tags !== undefined && output.Tags !== null
5915
- ? deserializeAws_json1_1TagList(output.Tags, context)
5916
- : undefined,
5837
+ Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
5917
5838
  };
5918
5839
  };
5919
5840
  const deserializeAws_json1_1ListTestGridProjectsResult = (output, context) => {
5920
5841
  return {
5921
5842
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5922
- testGridProjects: output.testGridProjects !== undefined && output.testGridProjects !== null
5843
+ testGridProjects: output.testGridProjects != null
5923
5844
  ? deserializeAws_json1_1TestGridProjects(output.testGridProjects, context)
5924
5845
  : undefined,
5925
5846
  };
5926
5847
  };
5927
5848
  const deserializeAws_json1_1ListTestGridSessionActionsResult = (output, context) => {
5928
5849
  return {
5929
- actions: output.actions !== undefined && output.actions !== null
5930
- ? deserializeAws_json1_1TestGridSessionActions(output.actions, context)
5931
- : undefined,
5850
+ actions: output.actions != null ? deserializeAws_json1_1TestGridSessionActions(output.actions, context) : undefined,
5932
5851
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5933
5852
  };
5934
5853
  };
5935
5854
  const deserializeAws_json1_1ListTestGridSessionArtifactsResult = (output, context) => {
5936
5855
  return {
5937
- artifacts: output.artifacts !== undefined && output.artifacts !== null
5938
- ? deserializeAws_json1_1TestGridSessionArtifacts(output.artifacts, context)
5939
- : undefined,
5856
+ artifacts: output.artifacts != null ? deserializeAws_json1_1TestGridSessionArtifacts(output.artifacts, context) : undefined,
5940
5857
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5941
5858
  };
5942
5859
  };
5943
5860
  const deserializeAws_json1_1ListTestGridSessionsResult = (output, context) => {
5944
5861
  return {
5945
5862
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5946
- testGridSessions: output.testGridSessions !== undefined && output.testGridSessions !== null
5863
+ testGridSessions: output.testGridSessions != null
5947
5864
  ? deserializeAws_json1_1TestGridSessions(output.testGridSessions, context)
5948
5865
  : undefined,
5949
5866
  };
@@ -5951,15 +5868,13 @@ const deserializeAws_json1_1ListTestGridSessionsResult = (output, context) => {
5951
5868
  const deserializeAws_json1_1ListTestsResult = (output, context) => {
5952
5869
  return {
5953
5870
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5954
- tests: output.tests !== undefined && output.tests !== null
5955
- ? deserializeAws_json1_1Tests(output.tests, context)
5956
- : undefined,
5871
+ tests: output.tests != null ? deserializeAws_json1_1Tests(output.tests, context) : undefined,
5957
5872
  };
5958
5873
  };
5959
5874
  const deserializeAws_json1_1ListUniqueProblemsResult = (output, context) => {
5960
5875
  return {
5961
5876
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5962
- uniqueProblems: output.uniqueProblems !== undefined && output.uniqueProblems !== null
5877
+ uniqueProblems: output.uniqueProblems != null
5963
5878
  ? deserializeAws_json1_1UniqueProblemsByExecutionResultMap(output.uniqueProblems, context)
5964
5879
  : undefined,
5965
5880
  };
@@ -5967,15 +5882,13 @@ const deserializeAws_json1_1ListUniqueProblemsResult = (output, context) => {
5967
5882
  const deserializeAws_json1_1ListUploadsResult = (output, context) => {
5968
5883
  return {
5969
5884
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5970
- uploads: output.uploads !== undefined && output.uploads !== null
5971
- ? deserializeAws_json1_1Uploads(output.uploads, context)
5972
- : undefined,
5885
+ uploads: output.uploads != null ? deserializeAws_json1_1Uploads(output.uploads, context) : undefined,
5973
5886
  };
5974
5887
  };
5975
5888
  const deserializeAws_json1_1ListVPCEConfigurationsResult = (output, context) => {
5976
5889
  return {
5977
5890
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5978
- vpceConfigurations: output.vpceConfigurations !== undefined && output.vpceConfigurations !== null
5891
+ vpceConfigurations: output.vpceConfigurations != null
5979
5892
  ? deserializeAws_json1_1VPCEConfigurations(output.vpceConfigurations, context)
5980
5893
  : undefined,
5981
5894
  };
@@ -6045,7 +5958,7 @@ const deserializeAws_json1_1Offering = (output, context) => {
6045
5958
  description: (0, smithy_client_1.expectString)(output.description),
6046
5959
  id: (0, smithy_client_1.expectString)(output.id),
6047
5960
  platform: (0, smithy_client_1.expectString)(output.platform),
6048
- recurringCharges: output.recurringCharges !== undefined && output.recurringCharges !== null
5961
+ recurringCharges: output.recurringCharges != null
6049
5962
  ? deserializeAws_json1_1RecurringCharges(output.recurringCharges, context)
6050
5963
  : undefined,
6051
5964
  type: (0, smithy_client_1.expectString)(output.type),
@@ -6081,12 +5994,10 @@ const deserializeAws_json1_1Offerings = (output, context) => {
6081
5994
  };
6082
5995
  const deserializeAws_json1_1OfferingStatus = (output, context) => {
6083
5996
  return {
6084
- effectiveOn: output.effectiveOn !== undefined && output.effectiveOn !== null
5997
+ effectiveOn: output.effectiveOn != null
6085
5998
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.effectiveOn)))
6086
5999
  : undefined,
6087
- offering: output.offering !== undefined && output.offering !== null
6088
- ? deserializeAws_json1_1Offering(output.offering, context)
6089
- : undefined,
6000
+ offering: output.offering != null ? deserializeAws_json1_1Offering(output.offering, context) : undefined,
6090
6001
  quantity: (0, smithy_client_1.expectInt32)(output.quantity),
6091
6002
  type: (0, smithy_client_1.expectString)(output.type),
6092
6003
  };
@@ -6104,16 +6015,10 @@ const deserializeAws_json1_1OfferingStatusMap = (output, context) => {
6104
6015
  };
6105
6016
  const deserializeAws_json1_1OfferingTransaction = (output, context) => {
6106
6017
  return {
6107
- cost: output.cost !== undefined && output.cost !== null
6108
- ? deserializeAws_json1_1MonetaryAmount(output.cost, context)
6109
- : undefined,
6110
- createdOn: output.createdOn !== undefined && output.createdOn !== null
6111
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdOn)))
6112
- : undefined,
6018
+ cost: output.cost != null ? deserializeAws_json1_1MonetaryAmount(output.cost, context) : undefined,
6019
+ createdOn: output.createdOn != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdOn))) : undefined,
6113
6020
  offeringPromotionId: (0, smithy_client_1.expectString)(output.offeringPromotionId),
6114
- offeringStatus: output.offeringStatus !== undefined && output.offeringStatus !== null
6115
- ? deserializeAws_json1_1OfferingStatus(output.offeringStatus, context)
6116
- : undefined,
6021
+ offeringStatus: output.offeringStatus != null ? deserializeAws_json1_1OfferingStatus(output.offeringStatus, context) : undefined,
6117
6022
  transactionId: (0, smithy_client_1.expectString)(output.transactionId),
6118
6023
  };
6119
6024
  };
@@ -6141,23 +6046,13 @@ const deserializeAws_json1_1PackageIds = (output, context) => {
6141
6046
  };
6142
6047
  const deserializeAws_json1_1Problem = (output, context) => {
6143
6048
  return {
6144
- device: output.device !== undefined && output.device !== null
6145
- ? deserializeAws_json1_1Device(output.device, context)
6146
- : undefined,
6147
- job: output.job !== undefined && output.job !== null
6148
- ? deserializeAws_json1_1ProblemDetail(output.job, context)
6149
- : undefined,
6049
+ device: output.device != null ? deserializeAws_json1_1Device(output.device, context) : undefined,
6050
+ job: output.job != null ? deserializeAws_json1_1ProblemDetail(output.job, context) : undefined,
6150
6051
  message: (0, smithy_client_1.expectString)(output.message),
6151
6052
  result: (0, smithy_client_1.expectString)(output.result),
6152
- run: output.run !== undefined && output.run !== null
6153
- ? deserializeAws_json1_1ProblemDetail(output.run, context)
6154
- : undefined,
6155
- suite: output.suite !== undefined && output.suite !== null
6156
- ? deserializeAws_json1_1ProblemDetail(output.suite, context)
6157
- : undefined,
6158
- test: output.test !== undefined && output.test !== null
6159
- ? deserializeAws_json1_1ProblemDetail(output.test, context)
6160
- : undefined,
6053
+ run: output.run != null ? deserializeAws_json1_1ProblemDetail(output.run, context) : undefined,
6054
+ suite: output.suite != null ? deserializeAws_json1_1ProblemDetail(output.suite, context) : undefined,
6055
+ test: output.test != null ? deserializeAws_json1_1ProblemDetail(output.test, context) : undefined,
6161
6056
  };
6162
6057
  };
6163
6058
  const deserializeAws_json1_1ProblemDetail = (output, context) => {
@@ -6180,9 +6075,7 @@ const deserializeAws_json1_1Problems = (output, context) => {
6180
6075
  const deserializeAws_json1_1Project = (output, context) => {
6181
6076
  return {
6182
6077
  arn: (0, smithy_client_1.expectString)(output.arn),
6183
- created: output.created !== undefined && output.created !== null
6184
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created)))
6185
- : undefined,
6078
+ created: output.created != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created))) : undefined,
6186
6079
  defaultJobTimeoutMinutes: (0, smithy_client_1.expectInt32)(output.defaultJobTimeoutMinutes),
6187
6080
  name: (0, smithy_client_1.expectString)(output.name),
6188
6081
  };
@@ -6211,7 +6104,7 @@ const deserializeAws_json1_1PurchasedDevicesMap = (output, context) => {
6211
6104
  };
6212
6105
  const deserializeAws_json1_1PurchaseOfferingResult = (output, context) => {
6213
6106
  return {
6214
- offeringTransaction: output.offeringTransaction !== undefined && output.offeringTransaction !== null
6107
+ offeringTransaction: output.offeringTransaction != null
6215
6108
  ? deserializeAws_json1_1OfferingTransaction(output.offeringTransaction, context)
6216
6109
  : undefined,
6217
6110
  };
@@ -6226,9 +6119,7 @@ const deserializeAws_json1_1Radios = (output, context) => {
6226
6119
  };
6227
6120
  const deserializeAws_json1_1RecurringCharge = (output, context) => {
6228
6121
  return {
6229
- cost: output.cost !== undefined && output.cost !== null
6230
- ? deserializeAws_json1_1MonetaryAmount(output.cost, context)
6231
- : undefined,
6122
+ cost: output.cost != null ? deserializeAws_json1_1MonetaryAmount(output.cost, context) : undefined,
6232
6123
  frequency: (0, smithy_client_1.expectString)(output.frequency),
6233
6124
  };
6234
6125
  };
@@ -6248,15 +6139,9 @@ const deserializeAws_json1_1RemoteAccessSession = (output, context) => {
6248
6139
  arn: (0, smithy_client_1.expectString)(output.arn),
6249
6140
  billingMethod: (0, smithy_client_1.expectString)(output.billingMethod),
6250
6141
  clientId: (0, smithy_client_1.expectString)(output.clientId),
6251
- created: output.created !== undefined && output.created !== null
6252
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created)))
6253
- : undefined,
6254
- device: output.device !== undefined && output.device !== null
6255
- ? deserializeAws_json1_1Device(output.device, context)
6256
- : undefined,
6257
- deviceMinutes: output.deviceMinutes !== undefined && output.deviceMinutes !== null
6258
- ? deserializeAws_json1_1DeviceMinutes(output.deviceMinutes, context)
6259
- : undefined,
6142
+ created: output.created != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created))) : undefined,
6143
+ device: output.device != null ? deserializeAws_json1_1Device(output.device, context) : undefined,
6144
+ deviceMinutes: output.deviceMinutes != null ? deserializeAws_json1_1DeviceMinutes(output.deviceMinutes, context) : undefined,
6260
6145
  deviceUdid: (0, smithy_client_1.expectString)(output.deviceUdid),
6261
6146
  endpoint: (0, smithy_client_1.expectString)(output.endpoint),
6262
6147
  hostAddress: (0, smithy_client_1.expectString)(output.hostAddress),
@@ -6269,13 +6154,9 @@ const deserializeAws_json1_1RemoteAccessSession = (output, context) => {
6269
6154
  remoteRecordEnabled: (0, smithy_client_1.expectBoolean)(output.remoteRecordEnabled),
6270
6155
  result: (0, smithy_client_1.expectString)(output.result),
6271
6156
  skipAppResign: (0, smithy_client_1.expectBoolean)(output.skipAppResign),
6272
- started: output.started !== undefined && output.started !== null
6273
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.started)))
6274
- : undefined,
6157
+ started: output.started != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.started))) : undefined,
6275
6158
  status: (0, smithy_client_1.expectString)(output.status),
6276
- stopped: output.stopped !== undefined && output.stopped !== null
6277
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stopped)))
6278
- : undefined,
6159
+ stopped: output.stopped != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stopped))) : undefined,
6279
6160
  };
6280
6161
  };
6281
6162
  const deserializeAws_json1_1RemoteAccessSessions = (output, context) => {
@@ -6291,7 +6172,7 @@ const deserializeAws_json1_1RemoteAccessSessions = (output, context) => {
6291
6172
  };
6292
6173
  const deserializeAws_json1_1RenewOfferingResult = (output, context) => {
6293
6174
  return {
6294
- offeringTransaction: output.offeringTransaction !== undefined && output.offeringTransaction !== null
6175
+ offeringTransaction: output.offeringTransaction != null
6295
6176
  ? deserializeAws_json1_1OfferingTransaction(output.offeringTransaction, context)
6296
6177
  : undefined,
6297
6178
  };
@@ -6326,49 +6207,33 @@ const deserializeAws_json1_1Run = (output, context) => {
6326
6207
  arn: (0, smithy_client_1.expectString)(output.arn),
6327
6208
  billingMethod: (0, smithy_client_1.expectString)(output.billingMethod),
6328
6209
  completedJobs: (0, smithy_client_1.expectInt32)(output.completedJobs),
6329
- counters: output.counters !== undefined && output.counters !== null
6330
- ? deserializeAws_json1_1Counters(output.counters, context)
6331
- : undefined,
6332
- created: output.created !== undefined && output.created !== null
6333
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created)))
6334
- : undefined,
6335
- customerArtifactPaths: output.customerArtifactPaths !== undefined && output.customerArtifactPaths !== null
6210
+ counters: output.counters != null ? deserializeAws_json1_1Counters(output.counters, context) : undefined,
6211
+ created: output.created != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created))) : undefined,
6212
+ customerArtifactPaths: output.customerArtifactPaths != null
6336
6213
  ? deserializeAws_json1_1CustomerArtifactPaths(output.customerArtifactPaths, context)
6337
6214
  : undefined,
6338
- deviceMinutes: output.deviceMinutes !== undefined && output.deviceMinutes !== null
6339
- ? deserializeAws_json1_1DeviceMinutes(output.deviceMinutes, context)
6340
- : undefined,
6215
+ deviceMinutes: output.deviceMinutes != null ? deserializeAws_json1_1DeviceMinutes(output.deviceMinutes, context) : undefined,
6341
6216
  devicePoolArn: (0, smithy_client_1.expectString)(output.devicePoolArn),
6342
- deviceSelectionResult: output.deviceSelectionResult !== undefined && output.deviceSelectionResult !== null
6217
+ deviceSelectionResult: output.deviceSelectionResult != null
6343
6218
  ? deserializeAws_json1_1DeviceSelectionResult(output.deviceSelectionResult, context)
6344
6219
  : undefined,
6345
6220
  eventCount: (0, smithy_client_1.expectInt32)(output.eventCount),
6346
6221
  jobTimeoutMinutes: (0, smithy_client_1.expectInt32)(output.jobTimeoutMinutes),
6347
6222
  locale: (0, smithy_client_1.expectString)(output.locale),
6348
- location: output.location !== undefined && output.location !== null
6349
- ? deserializeAws_json1_1Location(output.location, context)
6350
- : undefined,
6223
+ location: output.location != null ? deserializeAws_json1_1Location(output.location, context) : undefined,
6351
6224
  message: (0, smithy_client_1.expectString)(output.message),
6352
6225
  name: (0, smithy_client_1.expectString)(output.name),
6353
- networkProfile: output.networkProfile !== undefined && output.networkProfile !== null
6354
- ? deserializeAws_json1_1NetworkProfile(output.networkProfile, context)
6355
- : undefined,
6226
+ networkProfile: output.networkProfile != null ? deserializeAws_json1_1NetworkProfile(output.networkProfile, context) : undefined,
6356
6227
  parsingResultUrl: (0, smithy_client_1.expectString)(output.parsingResultUrl),
6357
6228
  platform: (0, smithy_client_1.expectString)(output.platform),
6358
- radios: output.radios !== undefined && output.radios !== null
6359
- ? deserializeAws_json1_1Radios(output.radios, context)
6360
- : undefined,
6229
+ radios: output.radios != null ? deserializeAws_json1_1Radios(output.radios, context) : undefined,
6361
6230
  result: (0, smithy_client_1.expectString)(output.result),
6362
6231
  resultCode: (0, smithy_client_1.expectString)(output.resultCode),
6363
6232
  seed: (0, smithy_client_1.expectInt32)(output.seed),
6364
6233
  skipAppResign: (0, smithy_client_1.expectBoolean)(output.skipAppResign),
6365
- started: output.started !== undefined && output.started !== null
6366
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.started)))
6367
- : undefined,
6234
+ started: output.started != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.started))) : undefined,
6368
6235
  status: (0, smithy_client_1.expectString)(output.status),
6369
- stopped: output.stopped !== undefined && output.stopped !== null
6370
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stopped)))
6371
- : undefined,
6236
+ stopped: output.stopped != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stopped))) : undefined,
6372
6237
  testSpecArn: (0, smithy_client_1.expectString)(output.testSpecArn),
6373
6238
  totalJobs: (0, smithy_client_1.expectInt32)(output.totalJobs),
6374
6239
  type: (0, smithy_client_1.expectString)(output.type),
@@ -6406,7 +6271,7 @@ const deserializeAws_json1_1Samples = (output, context) => {
6406
6271
  };
6407
6272
  const deserializeAws_json1_1ScheduleRunResult = (output, context) => {
6408
6273
  return {
6409
- run: output.run !== undefined && output.run !== null ? deserializeAws_json1_1Run(output.run, context) : undefined,
6274
+ run: output.run != null ? deserializeAws_json1_1Run(output.run, context) : undefined,
6410
6275
  };
6411
6276
  };
6412
6277
  const deserializeAws_json1_1SecurityGroupIds = (output, context) => {
@@ -6427,19 +6292,19 @@ const deserializeAws_json1_1ServiceAccountException = (output, context) => {
6427
6292
  };
6428
6293
  const deserializeAws_json1_1StopJobResult = (output, context) => {
6429
6294
  return {
6430
- job: output.job !== undefined && output.job !== null ? deserializeAws_json1_1Job(output.job, context) : undefined,
6295
+ job: output.job != null ? deserializeAws_json1_1Job(output.job, context) : undefined,
6431
6296
  };
6432
6297
  };
6433
6298
  const deserializeAws_json1_1StopRemoteAccessSessionResult = (output, context) => {
6434
6299
  return {
6435
- remoteAccessSession: output.remoteAccessSession !== undefined && output.remoteAccessSession !== null
6300
+ remoteAccessSession: output.remoteAccessSession != null
6436
6301
  ? deserializeAws_json1_1RemoteAccessSession(output.remoteAccessSession, context)
6437
6302
  : undefined,
6438
6303
  };
6439
6304
  };
6440
6305
  const deserializeAws_json1_1StopRunResult = (output, context) => {
6441
6306
  return {
6442
- run: output.run !== undefined && output.run !== null ? deserializeAws_json1_1Run(output.run, context) : undefined,
6307
+ run: output.run != null ? deserializeAws_json1_1Run(output.run, context) : undefined,
6443
6308
  };
6444
6309
  };
6445
6310
  const deserializeAws_json1_1SubnetIds = (output, context) => {
@@ -6456,25 +6321,15 @@ const deserializeAws_json1_1SubnetIds = (output, context) => {
6456
6321
  const deserializeAws_json1_1Suite = (output, context) => {
6457
6322
  return {
6458
6323
  arn: (0, smithy_client_1.expectString)(output.arn),
6459
- counters: output.counters !== undefined && output.counters !== null
6460
- ? deserializeAws_json1_1Counters(output.counters, context)
6461
- : undefined,
6462
- created: output.created !== undefined && output.created !== null
6463
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created)))
6464
- : undefined,
6465
- deviceMinutes: output.deviceMinutes !== undefined && output.deviceMinutes !== null
6466
- ? deserializeAws_json1_1DeviceMinutes(output.deviceMinutes, context)
6467
- : undefined,
6324
+ counters: output.counters != null ? deserializeAws_json1_1Counters(output.counters, context) : undefined,
6325
+ created: output.created != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created))) : undefined,
6326
+ deviceMinutes: output.deviceMinutes != null ? deserializeAws_json1_1DeviceMinutes(output.deviceMinutes, context) : undefined,
6468
6327
  message: (0, smithy_client_1.expectString)(output.message),
6469
6328
  name: (0, smithy_client_1.expectString)(output.name),
6470
6329
  result: (0, smithy_client_1.expectString)(output.result),
6471
- started: output.started !== undefined && output.started !== null
6472
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.started)))
6473
- : undefined,
6330
+ started: output.started != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.started))) : undefined,
6474
6331
  status: (0, smithy_client_1.expectString)(output.status),
6475
- stopped: output.stopped !== undefined && output.stopped !== null
6476
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stopped)))
6477
- : undefined,
6332
+ stopped: output.stopped != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stopped))) : undefined,
6478
6333
  type: (0, smithy_client_1.expectString)(output.type),
6479
6334
  };
6480
6335
  };
@@ -6524,39 +6379,25 @@ const deserializeAws_json1_1TagResourceResponse = (output, context) => {
6524
6379
  const deserializeAws_json1_1Test = (output, context) => {
6525
6380
  return {
6526
6381
  arn: (0, smithy_client_1.expectString)(output.arn),
6527
- counters: output.counters !== undefined && output.counters !== null
6528
- ? deserializeAws_json1_1Counters(output.counters, context)
6529
- : undefined,
6530
- created: output.created !== undefined && output.created !== null
6531
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created)))
6532
- : undefined,
6533
- deviceMinutes: output.deviceMinutes !== undefined && output.deviceMinutes !== null
6534
- ? deserializeAws_json1_1DeviceMinutes(output.deviceMinutes, context)
6535
- : undefined,
6382
+ counters: output.counters != null ? deserializeAws_json1_1Counters(output.counters, context) : undefined,
6383
+ created: output.created != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created))) : undefined,
6384
+ deviceMinutes: output.deviceMinutes != null ? deserializeAws_json1_1DeviceMinutes(output.deviceMinutes, context) : undefined,
6536
6385
  message: (0, smithy_client_1.expectString)(output.message),
6537
6386
  name: (0, smithy_client_1.expectString)(output.name),
6538
6387
  result: (0, smithy_client_1.expectString)(output.result),
6539
- started: output.started !== undefined && output.started !== null
6540
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.started)))
6541
- : undefined,
6388
+ started: output.started != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.started))) : undefined,
6542
6389
  status: (0, smithy_client_1.expectString)(output.status),
6543
- stopped: output.stopped !== undefined && output.stopped !== null
6544
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stopped)))
6545
- : undefined,
6390
+ stopped: output.stopped != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.stopped))) : undefined,
6546
6391
  type: (0, smithy_client_1.expectString)(output.type),
6547
6392
  };
6548
6393
  };
6549
6394
  const deserializeAws_json1_1TestGridProject = (output, context) => {
6550
6395
  return {
6551
6396
  arn: (0, smithy_client_1.expectString)(output.arn),
6552
- created: output.created !== undefined && output.created !== null
6553
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created)))
6554
- : undefined,
6397
+ created: output.created != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created))) : undefined,
6555
6398
  description: (0, smithy_client_1.expectString)(output.description),
6556
6399
  name: (0, smithy_client_1.expectString)(output.name),
6557
- vpcConfig: output.vpcConfig !== undefined && output.vpcConfig !== null
6558
- ? deserializeAws_json1_1TestGridVpcConfig(output.vpcConfig, context)
6559
- : undefined,
6400
+ vpcConfig: output.vpcConfig != null ? deserializeAws_json1_1TestGridVpcConfig(output.vpcConfig, context) : undefined,
6560
6401
  };
6561
6402
  };
6562
6403
  const deserializeAws_json1_1TestGridProjects = (output, context) => {
@@ -6574,12 +6415,8 @@ const deserializeAws_json1_1TestGridSession = (output, context) => {
6574
6415
  return {
6575
6416
  arn: (0, smithy_client_1.expectString)(output.arn),
6576
6417
  billingMinutes: (0, smithy_client_1.limitedParseDouble)(output.billingMinutes),
6577
- created: output.created !== undefined && output.created !== null
6578
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created)))
6579
- : undefined,
6580
- ended: output.ended !== undefined && output.ended !== null
6581
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ended)))
6582
- : undefined,
6418
+ created: output.created != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created))) : undefined,
6419
+ ended: output.ended != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ended))) : undefined,
6583
6420
  seleniumProperties: (0, smithy_client_1.expectString)(output.seleniumProperties),
6584
6421
  status: (0, smithy_client_1.expectString)(output.status),
6585
6422
  };
@@ -6589,9 +6426,7 @@ const deserializeAws_json1_1TestGridSessionAction = (output, context) => {
6589
6426
  action: (0, smithy_client_1.expectString)(output.action),
6590
6427
  duration: (0, smithy_client_1.expectLong)(output.duration),
6591
6428
  requestMethod: (0, smithy_client_1.expectString)(output.requestMethod),
6592
- started: output.started !== undefined && output.started !== null
6593
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.started)))
6594
- : undefined,
6429
+ started: output.started != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.started))) : undefined,
6595
6430
  statusCode: (0, smithy_client_1.expectString)(output.statusCode),
6596
6431
  };
6597
6432
  };
@@ -6637,12 +6472,10 @@ const deserializeAws_json1_1TestGridSessions = (output, context) => {
6637
6472
  };
6638
6473
  const deserializeAws_json1_1TestGridVpcConfig = (output, context) => {
6639
6474
  return {
6640
- securityGroupIds: output.securityGroupIds !== undefined && output.securityGroupIds !== null
6475
+ securityGroupIds: output.securityGroupIds != null
6641
6476
  ? deserializeAws_json1_1SecurityGroupIds(output.securityGroupIds, context)
6642
6477
  : undefined,
6643
- subnetIds: output.subnetIds !== undefined && output.subnetIds !== null
6644
- ? deserializeAws_json1_1SubnetIds(output.subnetIds, context)
6645
- : undefined,
6478
+ subnetIds: output.subnetIds != null ? deserializeAws_json1_1SubnetIds(output.subnetIds, context) : undefined,
6646
6479
  vpcId: (0, smithy_client_1.expectString)(output.vpcId),
6647
6480
  };
6648
6481
  };
@@ -6672,9 +6505,7 @@ const deserializeAws_json1_1TrialMinutes = (output, context) => {
6672
6505
  const deserializeAws_json1_1UniqueProblem = (output, context) => {
6673
6506
  return {
6674
6507
  message: (0, smithy_client_1.expectString)(output.message),
6675
- problems: output.problems !== undefined && output.problems !== null
6676
- ? deserializeAws_json1_1Problems(output.problems, context)
6677
- : undefined,
6508
+ problems: output.problems != null ? deserializeAws_json1_1Problems(output.problems, context) : undefined,
6678
6509
  };
6679
6510
  };
6680
6511
  const deserializeAws_json1_1UniqueProblems = (output, context) => {
@@ -6704,56 +6535,46 @@ const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
6704
6535
  };
6705
6536
  const deserializeAws_json1_1UpdateDeviceInstanceResult = (output, context) => {
6706
6537
  return {
6707
- deviceInstance: output.deviceInstance !== undefined && output.deviceInstance !== null
6708
- ? deserializeAws_json1_1DeviceInstance(output.deviceInstance, context)
6709
- : undefined,
6538
+ deviceInstance: output.deviceInstance != null ? deserializeAws_json1_1DeviceInstance(output.deviceInstance, context) : undefined,
6710
6539
  };
6711
6540
  };
6712
6541
  const deserializeAws_json1_1UpdateDevicePoolResult = (output, context) => {
6713
6542
  return {
6714
- devicePool: output.devicePool !== undefined && output.devicePool !== null
6715
- ? deserializeAws_json1_1DevicePool(output.devicePool, context)
6716
- : undefined,
6543
+ devicePool: output.devicePool != null ? deserializeAws_json1_1DevicePool(output.devicePool, context) : undefined,
6717
6544
  };
6718
6545
  };
6719
6546
  const deserializeAws_json1_1UpdateInstanceProfileResult = (output, context) => {
6720
6547
  return {
6721
- instanceProfile: output.instanceProfile !== undefined && output.instanceProfile !== null
6548
+ instanceProfile: output.instanceProfile != null
6722
6549
  ? deserializeAws_json1_1InstanceProfile(output.instanceProfile, context)
6723
6550
  : undefined,
6724
6551
  };
6725
6552
  };
6726
6553
  const deserializeAws_json1_1UpdateNetworkProfileResult = (output, context) => {
6727
6554
  return {
6728
- networkProfile: output.networkProfile !== undefined && output.networkProfile !== null
6729
- ? deserializeAws_json1_1NetworkProfile(output.networkProfile, context)
6730
- : undefined,
6555
+ networkProfile: output.networkProfile != null ? deserializeAws_json1_1NetworkProfile(output.networkProfile, context) : undefined,
6731
6556
  };
6732
6557
  };
6733
6558
  const deserializeAws_json1_1UpdateProjectResult = (output, context) => {
6734
6559
  return {
6735
- project: output.project !== undefined && output.project !== null
6736
- ? deserializeAws_json1_1Project(output.project, context)
6737
- : undefined,
6560
+ project: output.project != null ? deserializeAws_json1_1Project(output.project, context) : undefined,
6738
6561
  };
6739
6562
  };
6740
6563
  const deserializeAws_json1_1UpdateTestGridProjectResult = (output, context) => {
6741
6564
  return {
6742
- testGridProject: output.testGridProject !== undefined && output.testGridProject !== null
6565
+ testGridProject: output.testGridProject != null
6743
6566
  ? deserializeAws_json1_1TestGridProject(output.testGridProject, context)
6744
6567
  : undefined,
6745
6568
  };
6746
6569
  };
6747
6570
  const deserializeAws_json1_1UpdateUploadResult = (output, context) => {
6748
6571
  return {
6749
- upload: output.upload !== undefined && output.upload !== null
6750
- ? deserializeAws_json1_1Upload(output.upload, context)
6751
- : undefined,
6572
+ upload: output.upload != null ? deserializeAws_json1_1Upload(output.upload, context) : undefined,
6752
6573
  };
6753
6574
  };
6754
6575
  const deserializeAws_json1_1UpdateVPCEConfigurationResult = (output, context) => {
6755
6576
  return {
6756
- vpceConfiguration: output.vpceConfiguration !== undefined && output.vpceConfiguration !== null
6577
+ vpceConfiguration: output.vpceConfiguration != null
6757
6578
  ? deserializeAws_json1_1VPCEConfiguration(output.vpceConfiguration, context)
6758
6579
  : undefined,
6759
6580
  };
@@ -6763,9 +6584,7 @@ const deserializeAws_json1_1Upload = (output, context) => {
6763
6584
  arn: (0, smithy_client_1.expectString)(output.arn),
6764
6585
  category: (0, smithy_client_1.expectString)(output.category),
6765
6586
  contentType: (0, smithy_client_1.expectString)(output.contentType),
6766
- created: output.created !== undefined && output.created !== null
6767
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created)))
6768
- : undefined,
6587
+ created: output.created != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created))) : undefined,
6769
6588
  message: (0, smithy_client_1.expectString)(output.message),
6770
6589
  metadata: (0, smithy_client_1.expectString)(output.metadata),
6771
6590
  name: (0, smithy_client_1.expectString)(output.name),
@@ -6867,5 +6686,4 @@ const loadRestJsonErrorCode = (output, data) => {
6867
6686
  if (data["__type"] !== undefined) {
6868
6687
  return sanitizeErrorCode(data["__type"]);
6869
6688
  }
6870
- return "";
6871
6689
  };