@aws-sdk/client-appstream 3.118.1 → 3.127.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -677,8 +677,7 @@ const deserializeAws_json1_1AssociateApplicationFleetCommandError = async (outpu
677
677
  body: await parseBody(output.body, context),
678
678
  };
679
679
  let response;
680
- let errorCode = "UnknownError";
681
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
680
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
682
681
  switch (errorCode) {
683
682
  case "ConcurrentModificationException":
684
683
  case "com.amazonaws.appstream#ConcurrentModificationException":
@@ -697,10 +696,12 @@ const deserializeAws_json1_1AssociateApplicationFleetCommandError = async (outpu
697
696
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
698
697
  default:
699
698
  const parsedBody = parsedOutput.body;
699
+ const $metadata = deserializeMetadata(output);
700
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
700
701
  response = new AppStreamServiceException_1.AppStreamServiceException({
701
- name: parsedBody.code || parsedBody.Code || errorCode,
702
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
702
703
  $fault: "client",
703
- $metadata: deserializeMetadata(output),
704
+ $metadata,
704
705
  });
705
706
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
706
707
  }
@@ -725,8 +726,7 @@ const deserializeAws_json1_1AssociateApplicationToEntitlementCommandError = asyn
725
726
  body: await parseBody(output.body, context),
726
727
  };
727
728
  let response;
728
- let errorCode = "UnknownError";
729
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
729
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
730
730
  switch (errorCode) {
731
731
  case "EntitlementNotFoundException":
732
732
  case "com.amazonaws.appstream#EntitlementNotFoundException":
@@ -742,10 +742,12 @@ const deserializeAws_json1_1AssociateApplicationToEntitlementCommandError = asyn
742
742
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
743
743
  default:
744
744
  const parsedBody = parsedOutput.body;
745
+ const $metadata = deserializeMetadata(output);
746
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
745
747
  response = new AppStreamServiceException_1.AppStreamServiceException({
746
- name: parsedBody.code || parsedBody.Code || errorCode,
748
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
747
749
  $fault: "client",
748
- $metadata: deserializeMetadata(output),
750
+ $metadata,
749
751
  });
750
752
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
751
753
  }
@@ -770,8 +772,7 @@ const deserializeAws_json1_1AssociateFleetCommandError = async (output, context)
770
772
  body: await parseBody(output.body, context),
771
773
  };
772
774
  let response;
773
- let errorCode = "UnknownError";
774
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
775
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
775
776
  switch (errorCode) {
776
777
  case "ConcurrentModificationException":
777
778
  case "com.amazonaws.appstream#ConcurrentModificationException":
@@ -793,10 +794,12 @@ const deserializeAws_json1_1AssociateFleetCommandError = async (output, context)
793
794
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
794
795
  default:
795
796
  const parsedBody = parsedOutput.body;
797
+ const $metadata = deserializeMetadata(output);
798
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
796
799
  response = new AppStreamServiceException_1.AppStreamServiceException({
797
- name: parsedBody.code || parsedBody.Code || errorCode,
800
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
798
801
  $fault: "client",
799
- $metadata: deserializeMetadata(output),
802
+ $metadata,
800
803
  });
801
804
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
802
805
  }
@@ -821,8 +824,7 @@ const deserializeAws_json1_1BatchAssociateUserStackCommandError = async (output,
821
824
  body: await parseBody(output.body, context),
822
825
  };
823
826
  let response;
824
- let errorCode = "UnknownError";
825
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
827
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
826
828
  switch (errorCode) {
827
829
  case "InvalidParameterCombinationException":
828
830
  case "com.amazonaws.appstream#InvalidParameterCombinationException":
@@ -832,10 +834,12 @@ const deserializeAws_json1_1BatchAssociateUserStackCommandError = async (output,
832
834
  throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
833
835
  default:
834
836
  const parsedBody = parsedOutput.body;
837
+ const $metadata = deserializeMetadata(output);
838
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
835
839
  response = new AppStreamServiceException_1.AppStreamServiceException({
836
- name: parsedBody.code || parsedBody.Code || errorCode,
840
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
837
841
  $fault: "client",
838
- $metadata: deserializeMetadata(output),
842
+ $metadata,
839
843
  });
840
844
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
841
845
  }
@@ -860,8 +864,7 @@ const deserializeAws_json1_1BatchDisassociateUserStackCommandError = async (outp
860
864
  body: await parseBody(output.body, context),
861
865
  };
862
866
  let response;
863
- let errorCode = "UnknownError";
864
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
867
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
865
868
  switch (errorCode) {
866
869
  case "InvalidParameterCombinationException":
867
870
  case "com.amazonaws.appstream#InvalidParameterCombinationException":
@@ -871,10 +874,12 @@ const deserializeAws_json1_1BatchDisassociateUserStackCommandError = async (outp
871
874
  throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
872
875
  default:
873
876
  const parsedBody = parsedOutput.body;
877
+ const $metadata = deserializeMetadata(output);
878
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
874
879
  response = new AppStreamServiceException_1.AppStreamServiceException({
875
- name: parsedBody.code || parsedBody.Code || errorCode,
880
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
876
881
  $fault: "client",
877
- $metadata: deserializeMetadata(output),
882
+ $metadata,
878
883
  });
879
884
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
880
885
  }
@@ -899,8 +904,7 @@ const deserializeAws_json1_1CopyImageCommandError = async (output, context) => {
899
904
  body: await parseBody(output.body, context),
900
905
  };
901
906
  let response;
902
- let errorCode = "UnknownError";
903
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
907
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
904
908
  switch (errorCode) {
905
909
  case "IncompatibleImageException":
906
910
  case "com.amazonaws.appstream#IncompatibleImageException":
@@ -922,10 +926,12 @@ const deserializeAws_json1_1CopyImageCommandError = async (output, context) => {
922
926
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
923
927
  default:
924
928
  const parsedBody = parsedOutput.body;
929
+ const $metadata = deserializeMetadata(output);
930
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
925
931
  response = new AppStreamServiceException_1.AppStreamServiceException({
926
- name: parsedBody.code || parsedBody.Code || errorCode,
932
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
927
933
  $fault: "client",
928
- $metadata: deserializeMetadata(output),
934
+ $metadata,
929
935
  });
930
936
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
931
937
  }
@@ -950,8 +956,7 @@ const deserializeAws_json1_1CreateAppBlockCommandError = async (output, context)
950
956
  body: await parseBody(output.body, context),
951
957
  };
952
958
  let response;
953
- let errorCode = "UnknownError";
954
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
959
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
955
960
  switch (errorCode) {
956
961
  case "ConcurrentModificationException":
957
962
  case "com.amazonaws.appstream#ConcurrentModificationException":
@@ -967,10 +972,12 @@ const deserializeAws_json1_1CreateAppBlockCommandError = async (output, context)
967
972
  throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
968
973
  default:
969
974
  const parsedBody = parsedOutput.body;
975
+ const $metadata = deserializeMetadata(output);
976
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
970
977
  response = new AppStreamServiceException_1.AppStreamServiceException({
971
- name: parsedBody.code || parsedBody.Code || errorCode,
978
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
972
979
  $fault: "client",
973
- $metadata: deserializeMetadata(output),
980
+ $metadata,
974
981
  });
975
982
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
976
983
  }
@@ -995,8 +1002,7 @@ const deserializeAws_json1_1CreateApplicationCommandError = async (output, conte
995
1002
  body: await parseBody(output.body, context),
996
1003
  };
997
1004
  let response;
998
- let errorCode = "UnknownError";
999
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1005
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1000
1006
  switch (errorCode) {
1001
1007
  case "ConcurrentModificationException":
1002
1008
  case "com.amazonaws.appstream#ConcurrentModificationException":
@@ -1015,10 +1021,12 @@ const deserializeAws_json1_1CreateApplicationCommandError = async (output, conte
1015
1021
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1016
1022
  default:
1017
1023
  const parsedBody = parsedOutput.body;
1024
+ const $metadata = deserializeMetadata(output);
1025
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1018
1026
  response = new AppStreamServiceException_1.AppStreamServiceException({
1019
- name: parsedBody.code || parsedBody.Code || errorCode,
1027
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1020
1028
  $fault: "client",
1021
- $metadata: deserializeMetadata(output),
1029
+ $metadata,
1022
1030
  });
1023
1031
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1024
1032
  }
@@ -1043,8 +1051,7 @@ const deserializeAws_json1_1CreateDirectoryConfigCommandError = async (output, c
1043
1051
  body: await parseBody(output.body, context),
1044
1052
  };
1045
1053
  let response;
1046
- let errorCode = "UnknownError";
1047
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1054
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1048
1055
  switch (errorCode) {
1049
1056
  case "InvalidAccountStatusException":
1050
1057
  case "com.amazonaws.appstream#InvalidAccountStatusException":
@@ -1066,10 +1073,12 @@ const deserializeAws_json1_1CreateDirectoryConfigCommandError = async (output, c
1066
1073
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1067
1074
  default:
1068
1075
  const parsedBody = parsedOutput.body;
1076
+ const $metadata = deserializeMetadata(output);
1077
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1069
1078
  response = new AppStreamServiceException_1.AppStreamServiceException({
1070
- name: parsedBody.code || parsedBody.Code || errorCode,
1079
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1071
1080
  $fault: "client",
1072
- $metadata: deserializeMetadata(output),
1081
+ $metadata,
1073
1082
  });
1074
1083
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1075
1084
  }
@@ -1094,8 +1103,7 @@ const deserializeAws_json1_1CreateEntitlementCommandError = async (output, conte
1094
1103
  body: await parseBody(output.body, context),
1095
1104
  };
1096
1105
  let response;
1097
- let errorCode = "UnknownError";
1098
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1106
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1099
1107
  switch (errorCode) {
1100
1108
  case "EntitlementAlreadyExistsException":
1101
1109
  case "com.amazonaws.appstream#EntitlementAlreadyExistsException":
@@ -1111,10 +1119,12 @@ const deserializeAws_json1_1CreateEntitlementCommandError = async (output, conte
1111
1119
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1112
1120
  default:
1113
1121
  const parsedBody = parsedOutput.body;
1122
+ const $metadata = deserializeMetadata(output);
1123
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1114
1124
  response = new AppStreamServiceException_1.AppStreamServiceException({
1115
- name: parsedBody.code || parsedBody.Code || errorCode,
1125
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1116
1126
  $fault: "client",
1117
- $metadata: deserializeMetadata(output),
1127
+ $metadata,
1118
1128
  });
1119
1129
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1120
1130
  }
@@ -1139,8 +1149,7 @@ const deserializeAws_json1_1CreateFleetCommandError = async (output, context) =>
1139
1149
  body: await parseBody(output.body, context),
1140
1150
  };
1141
1151
  let response;
1142
- let errorCode = "UnknownError";
1143
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1152
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1144
1153
  switch (errorCode) {
1145
1154
  case "ConcurrentModificationException":
1146
1155
  case "com.amazonaws.appstream#ConcurrentModificationException":
@@ -1177,10 +1186,12 @@ const deserializeAws_json1_1CreateFleetCommandError = async (output, context) =>
1177
1186
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1178
1187
  default:
1179
1188
  const parsedBody = parsedOutput.body;
1189
+ const $metadata = deserializeMetadata(output);
1190
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1180
1191
  response = new AppStreamServiceException_1.AppStreamServiceException({
1181
- name: parsedBody.code || parsedBody.Code || errorCode,
1192
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1182
1193
  $fault: "client",
1183
- $metadata: deserializeMetadata(output),
1194
+ $metadata,
1184
1195
  });
1185
1196
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1186
1197
  }
@@ -1205,8 +1216,7 @@ const deserializeAws_json1_1CreateImageBuilderCommandError = async (output, cont
1205
1216
  body: await parseBody(output.body, context),
1206
1217
  };
1207
1218
  let response;
1208
- let errorCode = "UnknownError";
1209
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1219
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1210
1220
  switch (errorCode) {
1211
1221
  case "ConcurrentModificationException":
1212
1222
  case "com.amazonaws.appstream#ConcurrentModificationException":
@@ -1243,10 +1253,12 @@ const deserializeAws_json1_1CreateImageBuilderCommandError = async (output, cont
1243
1253
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1244
1254
  default:
1245
1255
  const parsedBody = parsedOutput.body;
1256
+ const $metadata = deserializeMetadata(output);
1257
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1246
1258
  response = new AppStreamServiceException_1.AppStreamServiceException({
1247
- name: parsedBody.code || parsedBody.Code || errorCode,
1259
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1248
1260
  $fault: "client",
1249
- $metadata: deserializeMetadata(output),
1261
+ $metadata,
1250
1262
  });
1251
1263
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1252
1264
  }
@@ -1271,8 +1283,7 @@ const deserializeAws_json1_1CreateImageBuilderStreamingURLCommandError = async (
1271
1283
  body: await parseBody(output.body, context),
1272
1284
  };
1273
1285
  let response;
1274
- let errorCode = "UnknownError";
1275
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1286
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1276
1287
  switch (errorCode) {
1277
1288
  case "OperationNotPermittedException":
1278
1289
  case "com.amazonaws.appstream#OperationNotPermittedException":
@@ -1282,10 +1293,12 @@ const deserializeAws_json1_1CreateImageBuilderStreamingURLCommandError = async (
1282
1293
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1283
1294
  default:
1284
1295
  const parsedBody = parsedOutput.body;
1296
+ const $metadata = deserializeMetadata(output);
1297
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1285
1298
  response = new AppStreamServiceException_1.AppStreamServiceException({
1286
- name: parsedBody.code || parsedBody.Code || errorCode,
1299
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1287
1300
  $fault: "client",
1288
- $metadata: deserializeMetadata(output),
1301
+ $metadata,
1289
1302
  });
1290
1303
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1291
1304
  }
@@ -1310,8 +1323,7 @@ const deserializeAws_json1_1CreateStackCommandError = async (output, context) =>
1310
1323
  body: await parseBody(output.body, context),
1311
1324
  };
1312
1325
  let response;
1313
- let errorCode = "UnknownError";
1314
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1326
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1315
1327
  switch (errorCode) {
1316
1328
  case "ConcurrentModificationException":
1317
1329
  case "com.amazonaws.appstream#ConcurrentModificationException":
@@ -1336,10 +1348,12 @@ const deserializeAws_json1_1CreateStackCommandError = async (output, context) =>
1336
1348
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1337
1349
  default:
1338
1350
  const parsedBody = parsedOutput.body;
1351
+ const $metadata = deserializeMetadata(output);
1352
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1339
1353
  response = new AppStreamServiceException_1.AppStreamServiceException({
1340
- name: parsedBody.code || parsedBody.Code || errorCode,
1354
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1341
1355
  $fault: "client",
1342
- $metadata: deserializeMetadata(output),
1356
+ $metadata,
1343
1357
  });
1344
1358
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1345
1359
  }
@@ -1364,8 +1378,7 @@ const deserializeAws_json1_1CreateStreamingURLCommandError = async (output, cont
1364
1378
  body: await parseBody(output.body, context),
1365
1379
  };
1366
1380
  let response;
1367
- let errorCode = "UnknownError";
1368
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1381
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1369
1382
  switch (errorCode) {
1370
1383
  case "InvalidParameterCombinationException":
1371
1384
  case "com.amazonaws.appstream#InvalidParameterCombinationException":
@@ -1381,10 +1394,12 @@ const deserializeAws_json1_1CreateStreamingURLCommandError = async (output, cont
1381
1394
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1382
1395
  default:
1383
1396
  const parsedBody = parsedOutput.body;
1397
+ const $metadata = deserializeMetadata(output);
1398
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1384
1399
  response = new AppStreamServiceException_1.AppStreamServiceException({
1385
- name: parsedBody.code || parsedBody.Code || errorCode,
1400
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1386
1401
  $fault: "client",
1387
- $metadata: deserializeMetadata(output),
1402
+ $metadata,
1388
1403
  });
1389
1404
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1390
1405
  }
@@ -1409,8 +1424,7 @@ const deserializeAws_json1_1CreateUpdatedImageCommandError = async (output, cont
1409
1424
  body: await parseBody(output.body, context),
1410
1425
  };
1411
1426
  let response;
1412
- let errorCode = "UnknownError";
1413
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1427
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1414
1428
  switch (errorCode) {
1415
1429
  case "ConcurrentModificationException":
1416
1430
  case "com.amazonaws.appstream#ConcurrentModificationException":
@@ -1435,10 +1449,12 @@ const deserializeAws_json1_1CreateUpdatedImageCommandError = async (output, cont
1435
1449
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1436
1450
  default:
1437
1451
  const parsedBody = parsedOutput.body;
1452
+ const $metadata = deserializeMetadata(output);
1453
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1438
1454
  response = new AppStreamServiceException_1.AppStreamServiceException({
1439
- name: parsedBody.code || parsedBody.Code || errorCode,
1455
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1440
1456
  $fault: "client",
1441
- $metadata: deserializeMetadata(output),
1457
+ $metadata,
1442
1458
  });
1443
1459
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1444
1460
  }
@@ -1463,8 +1479,7 @@ const deserializeAws_json1_1CreateUsageReportSubscriptionCommandError = async (o
1463
1479
  body: await parseBody(output.body, context),
1464
1480
  };
1465
1481
  let response;
1466
- let errorCode = "UnknownError";
1467
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1482
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1468
1483
  switch (errorCode) {
1469
1484
  case "InvalidAccountStatusException":
1470
1485
  case "com.amazonaws.appstream#InvalidAccountStatusException":
@@ -1477,10 +1492,12 @@ const deserializeAws_json1_1CreateUsageReportSubscriptionCommandError = async (o
1477
1492
  throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
1478
1493
  default:
1479
1494
  const parsedBody = parsedOutput.body;
1495
+ const $metadata = deserializeMetadata(output);
1496
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1480
1497
  response = new AppStreamServiceException_1.AppStreamServiceException({
1481
- name: parsedBody.code || parsedBody.Code || errorCode,
1498
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1482
1499
  $fault: "client",
1483
- $metadata: deserializeMetadata(output),
1500
+ $metadata,
1484
1501
  });
1485
1502
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1486
1503
  }
@@ -1505,8 +1522,7 @@ const deserializeAws_json1_1CreateUserCommandError = async (output, context) =>
1505
1522
  body: await parseBody(output.body, context),
1506
1523
  };
1507
1524
  let response;
1508
- let errorCode = "UnknownError";
1509
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1525
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1510
1526
  switch (errorCode) {
1511
1527
  case "InvalidAccountStatusException":
1512
1528
  case "com.amazonaws.appstream#InvalidAccountStatusException":
@@ -1525,10 +1541,12 @@ const deserializeAws_json1_1CreateUserCommandError = async (output, context) =>
1525
1541
  throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
1526
1542
  default:
1527
1543
  const parsedBody = parsedOutput.body;
1544
+ const $metadata = deserializeMetadata(output);
1545
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1528
1546
  response = new AppStreamServiceException_1.AppStreamServiceException({
1529
- name: parsedBody.code || parsedBody.Code || errorCode,
1547
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1530
1548
  $fault: "client",
1531
- $metadata: deserializeMetadata(output),
1549
+ $metadata,
1532
1550
  });
1533
1551
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1534
1552
  }
@@ -1553,8 +1571,7 @@ const deserializeAws_json1_1DeleteAppBlockCommandError = async (output, context)
1553
1571
  body: await parseBody(output.body, context),
1554
1572
  };
1555
1573
  let response;
1556
- let errorCode = "UnknownError";
1557
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1574
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1558
1575
  switch (errorCode) {
1559
1576
  case "ConcurrentModificationException":
1560
1577
  case "com.amazonaws.appstream#ConcurrentModificationException":
@@ -1567,10 +1584,12 @@ const deserializeAws_json1_1DeleteAppBlockCommandError = async (output, context)
1567
1584
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1568
1585
  default:
1569
1586
  const parsedBody = parsedOutput.body;
1587
+ const $metadata = deserializeMetadata(output);
1588
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1570
1589
  response = new AppStreamServiceException_1.AppStreamServiceException({
1571
- name: parsedBody.code || parsedBody.Code || errorCode,
1590
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1572
1591
  $fault: "client",
1573
- $metadata: deserializeMetadata(output),
1592
+ $metadata,
1574
1593
  });
1575
1594
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1576
1595
  }
@@ -1595,8 +1614,7 @@ const deserializeAws_json1_1DeleteApplicationCommandError = async (output, conte
1595
1614
  body: await parseBody(output.body, context),
1596
1615
  };
1597
1616
  let response;
1598
- let errorCode = "UnknownError";
1599
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1617
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1600
1618
  switch (errorCode) {
1601
1619
  case "ConcurrentModificationException":
1602
1620
  case "com.amazonaws.appstream#ConcurrentModificationException":
@@ -1612,10 +1630,12 @@ const deserializeAws_json1_1DeleteApplicationCommandError = async (output, conte
1612
1630
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1613
1631
  default:
1614
1632
  const parsedBody = parsedOutput.body;
1633
+ const $metadata = deserializeMetadata(output);
1634
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1615
1635
  response = new AppStreamServiceException_1.AppStreamServiceException({
1616
- name: parsedBody.code || parsedBody.Code || errorCode,
1636
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1617
1637
  $fault: "client",
1618
- $metadata: deserializeMetadata(output),
1638
+ $metadata,
1619
1639
  });
1620
1640
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1621
1641
  }
@@ -1640,8 +1660,7 @@ const deserializeAws_json1_1DeleteDirectoryConfigCommandError = async (output, c
1640
1660
  body: await parseBody(output.body, context),
1641
1661
  };
1642
1662
  let response;
1643
- let errorCode = "UnknownError";
1644
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1663
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1645
1664
  switch (errorCode) {
1646
1665
  case "ResourceInUseException":
1647
1666
  case "com.amazonaws.appstream#ResourceInUseException":
@@ -1651,10 +1670,12 @@ const deserializeAws_json1_1DeleteDirectoryConfigCommandError = async (output, c
1651
1670
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1652
1671
  default:
1653
1672
  const parsedBody = parsedOutput.body;
1673
+ const $metadata = deserializeMetadata(output);
1674
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1654
1675
  response = new AppStreamServiceException_1.AppStreamServiceException({
1655
- name: parsedBody.code || parsedBody.Code || errorCode,
1676
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1656
1677
  $fault: "client",
1657
- $metadata: deserializeMetadata(output),
1678
+ $metadata,
1658
1679
  });
1659
1680
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1660
1681
  }
@@ -1679,8 +1700,7 @@ const deserializeAws_json1_1DeleteEntitlementCommandError = async (output, conte
1679
1700
  body: await parseBody(output.body, context),
1680
1701
  };
1681
1702
  let response;
1682
- let errorCode = "UnknownError";
1683
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1703
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1684
1704
  switch (errorCode) {
1685
1705
  case "ConcurrentModificationException":
1686
1706
  case "com.amazonaws.appstream#ConcurrentModificationException":
@@ -1696,10 +1716,12 @@ const deserializeAws_json1_1DeleteEntitlementCommandError = async (output, conte
1696
1716
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1697
1717
  default:
1698
1718
  const parsedBody = parsedOutput.body;
1719
+ const $metadata = deserializeMetadata(output);
1720
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1699
1721
  response = new AppStreamServiceException_1.AppStreamServiceException({
1700
- name: parsedBody.code || parsedBody.Code || errorCode,
1722
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1701
1723
  $fault: "client",
1702
- $metadata: deserializeMetadata(output),
1724
+ $metadata,
1703
1725
  });
1704
1726
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1705
1727
  }
@@ -1724,8 +1746,7 @@ const deserializeAws_json1_1DeleteFleetCommandError = async (output, context) =>
1724
1746
  body: await parseBody(output.body, context),
1725
1747
  };
1726
1748
  let response;
1727
- let errorCode = "UnknownError";
1728
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1749
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1729
1750
  switch (errorCode) {
1730
1751
  case "ConcurrentModificationException":
1731
1752
  case "com.amazonaws.appstream#ConcurrentModificationException":
@@ -1738,10 +1759,12 @@ const deserializeAws_json1_1DeleteFleetCommandError = async (output, context) =>
1738
1759
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1739
1760
  default:
1740
1761
  const parsedBody = parsedOutput.body;
1762
+ const $metadata = deserializeMetadata(output);
1763
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1741
1764
  response = new AppStreamServiceException_1.AppStreamServiceException({
1742
- name: parsedBody.code || parsedBody.Code || errorCode,
1765
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1743
1766
  $fault: "client",
1744
- $metadata: deserializeMetadata(output),
1767
+ $metadata,
1745
1768
  });
1746
1769
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1747
1770
  }
@@ -1766,8 +1789,7 @@ const deserializeAws_json1_1DeleteImageCommandError = async (output, context) =>
1766
1789
  body: await parseBody(output.body, context),
1767
1790
  };
1768
1791
  let response;
1769
- let errorCode = "UnknownError";
1770
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1792
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1771
1793
  switch (errorCode) {
1772
1794
  case "ConcurrentModificationException":
1773
1795
  case "com.amazonaws.appstream#ConcurrentModificationException":
@@ -1783,10 +1805,12 @@ const deserializeAws_json1_1DeleteImageCommandError = async (output, context) =>
1783
1805
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1784
1806
  default:
1785
1807
  const parsedBody = parsedOutput.body;
1808
+ const $metadata = deserializeMetadata(output);
1809
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1786
1810
  response = new AppStreamServiceException_1.AppStreamServiceException({
1787
- name: parsedBody.code || parsedBody.Code || errorCode,
1811
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1788
1812
  $fault: "client",
1789
- $metadata: deserializeMetadata(output),
1813
+ $metadata,
1790
1814
  });
1791
1815
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1792
1816
  }
@@ -1811,8 +1835,7 @@ const deserializeAws_json1_1DeleteImageBuilderCommandError = async (output, cont
1811
1835
  body: await parseBody(output.body, context),
1812
1836
  };
1813
1837
  let response;
1814
- let errorCode = "UnknownError";
1815
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1838
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1816
1839
  switch (errorCode) {
1817
1840
  case "ConcurrentModificationException":
1818
1841
  case "com.amazonaws.appstream#ConcurrentModificationException":
@@ -1825,10 +1848,12 @@ const deserializeAws_json1_1DeleteImageBuilderCommandError = async (output, cont
1825
1848
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1826
1849
  default:
1827
1850
  const parsedBody = parsedOutput.body;
1851
+ const $metadata = deserializeMetadata(output);
1852
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1828
1853
  response = new AppStreamServiceException_1.AppStreamServiceException({
1829
- name: parsedBody.code || parsedBody.Code || errorCode,
1854
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1830
1855
  $fault: "client",
1831
- $metadata: deserializeMetadata(output),
1856
+ $metadata,
1832
1857
  });
1833
1858
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1834
1859
  }
@@ -1853,8 +1878,7 @@ const deserializeAws_json1_1DeleteImagePermissionsCommandError = async (output,
1853
1878
  body: await parseBody(output.body, context),
1854
1879
  };
1855
1880
  let response;
1856
- let errorCode = "UnknownError";
1857
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1881
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1858
1882
  switch (errorCode) {
1859
1883
  case "ResourceNotAvailableException":
1860
1884
  case "com.amazonaws.appstream#ResourceNotAvailableException":
@@ -1864,10 +1888,12 @@ const deserializeAws_json1_1DeleteImagePermissionsCommandError = async (output,
1864
1888
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1865
1889
  default:
1866
1890
  const parsedBody = parsedOutput.body;
1891
+ const $metadata = deserializeMetadata(output);
1892
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1867
1893
  response = new AppStreamServiceException_1.AppStreamServiceException({
1868
- name: parsedBody.code || parsedBody.Code || errorCode,
1894
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1869
1895
  $fault: "client",
1870
- $metadata: deserializeMetadata(output),
1896
+ $metadata,
1871
1897
  });
1872
1898
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1873
1899
  }
@@ -1892,8 +1918,7 @@ const deserializeAws_json1_1DeleteStackCommandError = async (output, context) =>
1892
1918
  body: await parseBody(output.body, context),
1893
1919
  };
1894
1920
  let response;
1895
- let errorCode = "UnknownError";
1896
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1921
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1897
1922
  switch (errorCode) {
1898
1923
  case "ConcurrentModificationException":
1899
1924
  case "com.amazonaws.appstream#ConcurrentModificationException":
@@ -1909,10 +1934,12 @@ const deserializeAws_json1_1DeleteStackCommandError = async (output, context) =>
1909
1934
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1910
1935
  default:
1911
1936
  const parsedBody = parsedOutput.body;
1937
+ const $metadata = deserializeMetadata(output);
1938
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1912
1939
  response = new AppStreamServiceException_1.AppStreamServiceException({
1913
- name: parsedBody.code || parsedBody.Code || errorCode,
1940
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1914
1941
  $fault: "client",
1915
- $metadata: deserializeMetadata(output),
1942
+ $metadata,
1916
1943
  });
1917
1944
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1918
1945
  }
@@ -1937,8 +1964,7 @@ const deserializeAws_json1_1DeleteUsageReportSubscriptionCommandError = async (o
1937
1964
  body: await parseBody(output.body, context),
1938
1965
  };
1939
1966
  let response;
1940
- let errorCode = "UnknownError";
1941
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1967
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1942
1968
  switch (errorCode) {
1943
1969
  case "InvalidAccountStatusException":
1944
1970
  case "com.amazonaws.appstream#InvalidAccountStatusException":
@@ -1948,10 +1974,12 @@ const deserializeAws_json1_1DeleteUsageReportSubscriptionCommandError = async (o
1948
1974
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1949
1975
  default:
1950
1976
  const parsedBody = parsedOutput.body;
1977
+ const $metadata = deserializeMetadata(output);
1978
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1951
1979
  response = new AppStreamServiceException_1.AppStreamServiceException({
1952
- name: parsedBody.code || parsedBody.Code || errorCode,
1980
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1953
1981
  $fault: "client",
1954
- $metadata: deserializeMetadata(output),
1982
+ $metadata,
1955
1983
  });
1956
1984
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1957
1985
  }
@@ -1976,18 +2004,19 @@ const deserializeAws_json1_1DeleteUserCommandError = async (output, context) =>
1976
2004
  body: await parseBody(output.body, context),
1977
2005
  };
1978
2006
  let response;
1979
- let errorCode = "UnknownError";
1980
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2007
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1981
2008
  switch (errorCode) {
1982
2009
  case "ResourceNotFoundException":
1983
2010
  case "com.amazonaws.appstream#ResourceNotFoundException":
1984
2011
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
1985
2012
  default:
1986
2013
  const parsedBody = parsedOutput.body;
2014
+ const $metadata = deserializeMetadata(output);
2015
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1987
2016
  response = new AppStreamServiceException_1.AppStreamServiceException({
1988
- name: parsedBody.code || parsedBody.Code || errorCode,
2017
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1989
2018
  $fault: "client",
1990
- $metadata: deserializeMetadata(output),
2019
+ $metadata,
1991
2020
  });
1992
2021
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1993
2022
  }
@@ -2012,8 +2041,7 @@ const deserializeAws_json1_1DescribeAppBlocksCommandError = async (output, conte
2012
2041
  body: await parseBody(output.body, context),
2013
2042
  };
2014
2043
  let response;
2015
- let errorCode = "UnknownError";
2016
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2044
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2017
2045
  switch (errorCode) {
2018
2046
  case "OperationNotPermittedException":
2019
2047
  case "com.amazonaws.appstream#OperationNotPermittedException":
@@ -2023,10 +2051,12 @@ const deserializeAws_json1_1DescribeAppBlocksCommandError = async (output, conte
2023
2051
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2024
2052
  default:
2025
2053
  const parsedBody = parsedOutput.body;
2054
+ const $metadata = deserializeMetadata(output);
2055
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2026
2056
  response = new AppStreamServiceException_1.AppStreamServiceException({
2027
- name: parsedBody.code || parsedBody.Code || errorCode,
2057
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2028
2058
  $fault: "client",
2029
- $metadata: deserializeMetadata(output),
2059
+ $metadata,
2030
2060
  });
2031
2061
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2032
2062
  }
@@ -2051,8 +2081,7 @@ const deserializeAws_json1_1DescribeApplicationFleetAssociationsCommandError = a
2051
2081
  body: await parseBody(output.body, context),
2052
2082
  };
2053
2083
  let response;
2054
- let errorCode = "UnknownError";
2055
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2084
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2056
2085
  switch (errorCode) {
2057
2086
  case "InvalidParameterCombinationException":
2058
2087
  case "com.amazonaws.appstream#InvalidParameterCombinationException":
@@ -2062,10 +2091,12 @@ const deserializeAws_json1_1DescribeApplicationFleetAssociationsCommandError = a
2062
2091
  throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
2063
2092
  default:
2064
2093
  const parsedBody = parsedOutput.body;
2094
+ const $metadata = deserializeMetadata(output);
2095
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2065
2096
  response = new AppStreamServiceException_1.AppStreamServiceException({
2066
- name: parsedBody.code || parsedBody.Code || errorCode,
2097
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2067
2098
  $fault: "client",
2068
- $metadata: deserializeMetadata(output),
2099
+ $metadata,
2069
2100
  });
2070
2101
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2071
2102
  }
@@ -2090,8 +2121,7 @@ const deserializeAws_json1_1DescribeApplicationsCommandError = async (output, co
2090
2121
  body: await parseBody(output.body, context),
2091
2122
  };
2092
2123
  let response;
2093
- let errorCode = "UnknownError";
2094
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2124
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2095
2125
  switch (errorCode) {
2096
2126
  case "OperationNotPermittedException":
2097
2127
  case "com.amazonaws.appstream#OperationNotPermittedException":
@@ -2101,10 +2131,12 @@ const deserializeAws_json1_1DescribeApplicationsCommandError = async (output, co
2101
2131
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2102
2132
  default:
2103
2133
  const parsedBody = parsedOutput.body;
2134
+ const $metadata = deserializeMetadata(output);
2135
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2104
2136
  response = new AppStreamServiceException_1.AppStreamServiceException({
2105
- name: parsedBody.code || parsedBody.Code || errorCode,
2137
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2106
2138
  $fault: "client",
2107
- $metadata: deserializeMetadata(output),
2139
+ $metadata,
2108
2140
  });
2109
2141
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2110
2142
  }
@@ -2129,18 +2161,19 @@ const deserializeAws_json1_1DescribeDirectoryConfigsCommandError = async (output
2129
2161
  body: await parseBody(output.body, context),
2130
2162
  };
2131
2163
  let response;
2132
- let errorCode = "UnknownError";
2133
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2164
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2134
2165
  switch (errorCode) {
2135
2166
  case "ResourceNotFoundException":
2136
2167
  case "com.amazonaws.appstream#ResourceNotFoundException":
2137
2168
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2138
2169
  default:
2139
2170
  const parsedBody = parsedOutput.body;
2171
+ const $metadata = deserializeMetadata(output);
2172
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2140
2173
  response = new AppStreamServiceException_1.AppStreamServiceException({
2141
- name: parsedBody.code || parsedBody.Code || errorCode,
2174
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2142
2175
  $fault: "client",
2143
- $metadata: deserializeMetadata(output),
2176
+ $metadata,
2144
2177
  });
2145
2178
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2146
2179
  }
@@ -2165,8 +2198,7 @@ const deserializeAws_json1_1DescribeEntitlementsCommandError = async (output, co
2165
2198
  body: await parseBody(output.body, context),
2166
2199
  };
2167
2200
  let response;
2168
- let errorCode = "UnknownError";
2169
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2201
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2170
2202
  switch (errorCode) {
2171
2203
  case "EntitlementNotFoundException":
2172
2204
  case "com.amazonaws.appstream#EntitlementNotFoundException":
@@ -2179,10 +2211,12 @@ const deserializeAws_json1_1DescribeEntitlementsCommandError = async (output, co
2179
2211
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2180
2212
  default:
2181
2213
  const parsedBody = parsedOutput.body;
2214
+ const $metadata = deserializeMetadata(output);
2215
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2182
2216
  response = new AppStreamServiceException_1.AppStreamServiceException({
2183
- name: parsedBody.code || parsedBody.Code || errorCode,
2217
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2184
2218
  $fault: "client",
2185
- $metadata: deserializeMetadata(output),
2219
+ $metadata,
2186
2220
  });
2187
2221
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2188
2222
  }
@@ -2207,18 +2241,19 @@ const deserializeAws_json1_1DescribeFleetsCommandError = async (output, context)
2207
2241
  body: await parseBody(output.body, context),
2208
2242
  };
2209
2243
  let response;
2210
- let errorCode = "UnknownError";
2211
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2244
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2212
2245
  switch (errorCode) {
2213
2246
  case "ResourceNotFoundException":
2214
2247
  case "com.amazonaws.appstream#ResourceNotFoundException":
2215
2248
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2216
2249
  default:
2217
2250
  const parsedBody = parsedOutput.body;
2251
+ const $metadata = deserializeMetadata(output);
2252
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2218
2253
  response = new AppStreamServiceException_1.AppStreamServiceException({
2219
- name: parsedBody.code || parsedBody.Code || errorCode,
2254
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2220
2255
  $fault: "client",
2221
- $metadata: deserializeMetadata(output),
2256
+ $metadata,
2222
2257
  });
2223
2258
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2224
2259
  }
@@ -2243,18 +2278,19 @@ const deserializeAws_json1_1DescribeImageBuildersCommandError = async (output, c
2243
2278
  body: await parseBody(output.body, context),
2244
2279
  };
2245
2280
  let response;
2246
- let errorCode = "UnknownError";
2247
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2281
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2248
2282
  switch (errorCode) {
2249
2283
  case "ResourceNotFoundException":
2250
2284
  case "com.amazonaws.appstream#ResourceNotFoundException":
2251
2285
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2252
2286
  default:
2253
2287
  const parsedBody = parsedOutput.body;
2288
+ const $metadata = deserializeMetadata(output);
2289
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2254
2290
  response = new AppStreamServiceException_1.AppStreamServiceException({
2255
- name: parsedBody.code || parsedBody.Code || errorCode,
2291
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2256
2292
  $fault: "client",
2257
- $metadata: deserializeMetadata(output),
2293
+ $metadata,
2258
2294
  });
2259
2295
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2260
2296
  }
@@ -2279,18 +2315,19 @@ const deserializeAws_json1_1DescribeImagePermissionsCommandError = async (output
2279
2315
  body: await parseBody(output.body, context),
2280
2316
  };
2281
2317
  let response;
2282
- let errorCode = "UnknownError";
2283
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2318
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2284
2319
  switch (errorCode) {
2285
2320
  case "ResourceNotFoundException":
2286
2321
  case "com.amazonaws.appstream#ResourceNotFoundException":
2287
2322
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2288
2323
  default:
2289
2324
  const parsedBody = parsedOutput.body;
2325
+ const $metadata = deserializeMetadata(output);
2326
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2290
2327
  response = new AppStreamServiceException_1.AppStreamServiceException({
2291
- name: parsedBody.code || parsedBody.Code || errorCode,
2328
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2292
2329
  $fault: "client",
2293
- $metadata: deserializeMetadata(output),
2330
+ $metadata,
2294
2331
  });
2295
2332
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2296
2333
  }
@@ -2315,8 +2352,7 @@ const deserializeAws_json1_1DescribeImagesCommandError = async (output, context)
2315
2352
  body: await parseBody(output.body, context),
2316
2353
  };
2317
2354
  let response;
2318
- let errorCode = "UnknownError";
2319
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2355
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2320
2356
  switch (errorCode) {
2321
2357
  case "InvalidParameterCombinationException":
2322
2358
  case "com.amazonaws.appstream#InvalidParameterCombinationException":
@@ -2326,10 +2362,12 @@ const deserializeAws_json1_1DescribeImagesCommandError = async (output, context)
2326
2362
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2327
2363
  default:
2328
2364
  const parsedBody = parsedOutput.body;
2365
+ const $metadata = deserializeMetadata(output);
2366
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2329
2367
  response = new AppStreamServiceException_1.AppStreamServiceException({
2330
- name: parsedBody.code || parsedBody.Code || errorCode,
2368
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2331
2369
  $fault: "client",
2332
- $metadata: deserializeMetadata(output),
2370
+ $metadata,
2333
2371
  });
2334
2372
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2335
2373
  }
@@ -2354,18 +2392,19 @@ const deserializeAws_json1_1DescribeSessionsCommandError = async (output, contex
2354
2392
  body: await parseBody(output.body, context),
2355
2393
  };
2356
2394
  let response;
2357
- let errorCode = "UnknownError";
2358
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2395
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2359
2396
  switch (errorCode) {
2360
2397
  case "InvalidParameterCombinationException":
2361
2398
  case "com.amazonaws.appstream#InvalidParameterCombinationException":
2362
2399
  throw await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context);
2363
2400
  default:
2364
2401
  const parsedBody = parsedOutput.body;
2402
+ const $metadata = deserializeMetadata(output);
2403
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2365
2404
  response = new AppStreamServiceException_1.AppStreamServiceException({
2366
- name: parsedBody.code || parsedBody.Code || errorCode,
2405
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2367
2406
  $fault: "client",
2368
- $metadata: deserializeMetadata(output),
2407
+ $metadata,
2369
2408
  });
2370
2409
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2371
2410
  }
@@ -2390,18 +2429,19 @@ const deserializeAws_json1_1DescribeStacksCommandError = async (output, context)
2390
2429
  body: await parseBody(output.body, context),
2391
2430
  };
2392
2431
  let response;
2393
- let errorCode = "UnknownError";
2394
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2432
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2395
2433
  switch (errorCode) {
2396
2434
  case "ResourceNotFoundException":
2397
2435
  case "com.amazonaws.appstream#ResourceNotFoundException":
2398
2436
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2399
2437
  default:
2400
2438
  const parsedBody = parsedOutput.body;
2439
+ const $metadata = deserializeMetadata(output);
2440
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2401
2441
  response = new AppStreamServiceException_1.AppStreamServiceException({
2402
- name: parsedBody.code || parsedBody.Code || errorCode,
2442
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2403
2443
  $fault: "client",
2404
- $metadata: deserializeMetadata(output),
2444
+ $metadata,
2405
2445
  });
2406
2446
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2407
2447
  }
@@ -2426,8 +2466,7 @@ const deserializeAws_json1_1DescribeUsageReportSubscriptionsCommandError = async
2426
2466
  body: await parseBody(output.body, context),
2427
2467
  };
2428
2468
  let response;
2429
- let errorCode = "UnknownError";
2430
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2469
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2431
2470
  switch (errorCode) {
2432
2471
  case "InvalidAccountStatusException":
2433
2472
  case "com.amazonaws.appstream#InvalidAccountStatusException":
@@ -2437,10 +2476,12 @@ const deserializeAws_json1_1DescribeUsageReportSubscriptionsCommandError = async
2437
2476
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2438
2477
  default:
2439
2478
  const parsedBody = parsedOutput.body;
2479
+ const $metadata = deserializeMetadata(output);
2480
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2440
2481
  response = new AppStreamServiceException_1.AppStreamServiceException({
2441
- name: parsedBody.code || parsedBody.Code || errorCode,
2482
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2442
2483
  $fault: "client",
2443
- $metadata: deserializeMetadata(output),
2484
+ $metadata,
2444
2485
  });
2445
2486
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2446
2487
  }
@@ -2465,8 +2506,7 @@ const deserializeAws_json1_1DescribeUsersCommandError = async (output, context)
2465
2506
  body: await parseBody(output.body, context),
2466
2507
  };
2467
2508
  let response;
2468
- let errorCode = "UnknownError";
2469
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2509
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2470
2510
  switch (errorCode) {
2471
2511
  case "InvalidParameterCombinationException":
2472
2512
  case "com.amazonaws.appstream#InvalidParameterCombinationException":
@@ -2479,10 +2519,12 @@ const deserializeAws_json1_1DescribeUsersCommandError = async (output, context)
2479
2519
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2480
2520
  default:
2481
2521
  const parsedBody = parsedOutput.body;
2522
+ const $metadata = deserializeMetadata(output);
2523
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2482
2524
  response = new AppStreamServiceException_1.AppStreamServiceException({
2483
- name: parsedBody.code || parsedBody.Code || errorCode,
2525
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2484
2526
  $fault: "client",
2485
- $metadata: deserializeMetadata(output),
2527
+ $metadata,
2486
2528
  });
2487
2529
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2488
2530
  }
@@ -2507,8 +2549,7 @@ const deserializeAws_json1_1DescribeUserStackAssociationsCommandError = async (o
2507
2549
  body: await parseBody(output.body, context),
2508
2550
  };
2509
2551
  let response;
2510
- let errorCode = "UnknownError";
2511
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2552
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2512
2553
  switch (errorCode) {
2513
2554
  case "InvalidParameterCombinationException":
2514
2555
  case "com.amazonaws.appstream#InvalidParameterCombinationException":
@@ -2518,10 +2559,12 @@ const deserializeAws_json1_1DescribeUserStackAssociationsCommandError = async (o
2518
2559
  throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
2519
2560
  default:
2520
2561
  const parsedBody = parsedOutput.body;
2562
+ const $metadata = deserializeMetadata(output);
2563
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2521
2564
  response = new AppStreamServiceException_1.AppStreamServiceException({
2522
- name: parsedBody.code || parsedBody.Code || errorCode,
2565
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2523
2566
  $fault: "client",
2524
- $metadata: deserializeMetadata(output),
2567
+ $metadata,
2525
2568
  });
2526
2569
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2527
2570
  }
@@ -2546,18 +2589,19 @@ const deserializeAws_json1_1DisableUserCommandError = async (output, context) =>
2546
2589
  body: await parseBody(output.body, context),
2547
2590
  };
2548
2591
  let response;
2549
- let errorCode = "UnknownError";
2550
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2592
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2551
2593
  switch (errorCode) {
2552
2594
  case "ResourceNotFoundException":
2553
2595
  case "com.amazonaws.appstream#ResourceNotFoundException":
2554
2596
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2555
2597
  default:
2556
2598
  const parsedBody = parsedOutput.body;
2599
+ const $metadata = deserializeMetadata(output);
2600
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2557
2601
  response = new AppStreamServiceException_1.AppStreamServiceException({
2558
- name: parsedBody.code || parsedBody.Code || errorCode,
2602
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2559
2603
  $fault: "client",
2560
- $metadata: deserializeMetadata(output),
2604
+ $metadata,
2561
2605
  });
2562
2606
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2563
2607
  }
@@ -2582,8 +2626,7 @@ const deserializeAws_json1_1DisassociateApplicationFleetCommandError = async (ou
2582
2626
  body: await parseBody(output.body, context),
2583
2627
  };
2584
2628
  let response;
2585
- let errorCode = "UnknownError";
2586
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2629
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2587
2630
  switch (errorCode) {
2588
2631
  case "ConcurrentModificationException":
2589
2632
  case "com.amazonaws.appstream#ConcurrentModificationException":
@@ -2596,10 +2639,12 @@ const deserializeAws_json1_1DisassociateApplicationFleetCommandError = async (ou
2596
2639
  throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
2597
2640
  default:
2598
2641
  const parsedBody = parsedOutput.body;
2642
+ const $metadata = deserializeMetadata(output);
2643
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2599
2644
  response = new AppStreamServiceException_1.AppStreamServiceException({
2600
- name: parsedBody.code || parsedBody.Code || errorCode,
2645
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2601
2646
  $fault: "client",
2602
- $metadata: deserializeMetadata(output),
2647
+ $metadata,
2603
2648
  });
2604
2649
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2605
2650
  }
@@ -2624,8 +2669,7 @@ const deserializeAws_json1_1DisassociateApplicationFromEntitlementCommandError =
2624
2669
  body: await parseBody(output.body, context),
2625
2670
  };
2626
2671
  let response;
2627
- let errorCode = "UnknownError";
2628
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2672
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2629
2673
  switch (errorCode) {
2630
2674
  case "EntitlementNotFoundException":
2631
2675
  case "com.amazonaws.appstream#EntitlementNotFoundException":
@@ -2638,10 +2682,12 @@ const deserializeAws_json1_1DisassociateApplicationFromEntitlementCommandError =
2638
2682
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2639
2683
  default:
2640
2684
  const parsedBody = parsedOutput.body;
2685
+ const $metadata = deserializeMetadata(output);
2686
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2641
2687
  response = new AppStreamServiceException_1.AppStreamServiceException({
2642
- name: parsedBody.code || parsedBody.Code || errorCode,
2688
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2643
2689
  $fault: "client",
2644
- $metadata: deserializeMetadata(output),
2690
+ $metadata,
2645
2691
  });
2646
2692
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2647
2693
  }
@@ -2666,8 +2712,7 @@ const deserializeAws_json1_1DisassociateFleetCommandError = async (output, conte
2666
2712
  body: await parseBody(output.body, context),
2667
2713
  };
2668
2714
  let response;
2669
- let errorCode = "UnknownError";
2670
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2715
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2671
2716
  switch (errorCode) {
2672
2717
  case "ConcurrentModificationException":
2673
2718
  case "com.amazonaws.appstream#ConcurrentModificationException":
@@ -2683,10 +2728,12 @@ const deserializeAws_json1_1DisassociateFleetCommandError = async (output, conte
2683
2728
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2684
2729
  default:
2685
2730
  const parsedBody = parsedOutput.body;
2731
+ const $metadata = deserializeMetadata(output);
2732
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2686
2733
  response = new AppStreamServiceException_1.AppStreamServiceException({
2687
- name: parsedBody.code || parsedBody.Code || errorCode,
2734
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2688
2735
  $fault: "client",
2689
- $metadata: deserializeMetadata(output),
2736
+ $metadata,
2690
2737
  });
2691
2738
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2692
2739
  }
@@ -2711,8 +2758,7 @@ const deserializeAws_json1_1EnableUserCommandError = async (output, context) =>
2711
2758
  body: await parseBody(output.body, context),
2712
2759
  };
2713
2760
  let response;
2714
- let errorCode = "UnknownError";
2715
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2761
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2716
2762
  switch (errorCode) {
2717
2763
  case "InvalidAccountStatusException":
2718
2764
  case "com.amazonaws.appstream#InvalidAccountStatusException":
@@ -2722,10 +2768,12 @@ const deserializeAws_json1_1EnableUserCommandError = async (output, context) =>
2722
2768
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2723
2769
  default:
2724
2770
  const parsedBody = parsedOutput.body;
2771
+ const $metadata = deserializeMetadata(output);
2772
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2725
2773
  response = new AppStreamServiceException_1.AppStreamServiceException({
2726
- name: parsedBody.code || parsedBody.Code || errorCode,
2774
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2727
2775
  $fault: "client",
2728
- $metadata: deserializeMetadata(output),
2776
+ $metadata,
2729
2777
  });
2730
2778
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2731
2779
  }
@@ -2750,15 +2798,16 @@ const deserializeAws_json1_1ExpireSessionCommandError = async (output, context)
2750
2798
  body: await parseBody(output.body, context),
2751
2799
  };
2752
2800
  let response;
2753
- let errorCode = "UnknownError";
2754
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2801
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2755
2802
  switch (errorCode) {
2756
2803
  default:
2757
2804
  const parsedBody = parsedOutput.body;
2805
+ const $metadata = deserializeMetadata(output);
2806
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2758
2807
  response = new AppStreamServiceException_1.AppStreamServiceException({
2759
- name: parsedBody.code || parsedBody.Code || errorCode,
2808
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2760
2809
  $fault: "client",
2761
- $metadata: deserializeMetadata(output),
2810
+ $metadata,
2762
2811
  });
2763
2812
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2764
2813
  }
@@ -2783,15 +2832,16 @@ const deserializeAws_json1_1ListAssociatedFleetsCommandError = async (output, co
2783
2832
  body: await parseBody(output.body, context),
2784
2833
  };
2785
2834
  let response;
2786
- let errorCode = "UnknownError";
2787
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2835
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2788
2836
  switch (errorCode) {
2789
2837
  default:
2790
2838
  const parsedBody = parsedOutput.body;
2839
+ const $metadata = deserializeMetadata(output);
2840
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2791
2841
  response = new AppStreamServiceException_1.AppStreamServiceException({
2792
- name: parsedBody.code || parsedBody.Code || errorCode,
2842
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2793
2843
  $fault: "client",
2794
- $metadata: deserializeMetadata(output),
2844
+ $metadata,
2795
2845
  });
2796
2846
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2797
2847
  }
@@ -2816,15 +2866,16 @@ const deserializeAws_json1_1ListAssociatedStacksCommandError = async (output, co
2816
2866
  body: await parseBody(output.body, context),
2817
2867
  };
2818
2868
  let response;
2819
- let errorCode = "UnknownError";
2820
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2869
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2821
2870
  switch (errorCode) {
2822
2871
  default:
2823
2872
  const parsedBody = parsedOutput.body;
2873
+ const $metadata = deserializeMetadata(output);
2874
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2824
2875
  response = new AppStreamServiceException_1.AppStreamServiceException({
2825
- name: parsedBody.code || parsedBody.Code || errorCode,
2876
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2826
2877
  $fault: "client",
2827
- $metadata: deserializeMetadata(output),
2878
+ $metadata,
2828
2879
  });
2829
2880
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2830
2881
  }
@@ -2849,8 +2900,7 @@ const deserializeAws_json1_1ListEntitledApplicationsCommandError = async (output
2849
2900
  body: await parseBody(output.body, context),
2850
2901
  };
2851
2902
  let response;
2852
- let errorCode = "UnknownError";
2853
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2903
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2854
2904
  switch (errorCode) {
2855
2905
  case "EntitlementNotFoundException":
2856
2906
  case "com.amazonaws.appstream#EntitlementNotFoundException":
@@ -2863,10 +2913,12 @@ const deserializeAws_json1_1ListEntitledApplicationsCommandError = async (output
2863
2913
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2864
2914
  default:
2865
2915
  const parsedBody = parsedOutput.body;
2916
+ const $metadata = deserializeMetadata(output);
2917
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2866
2918
  response = new AppStreamServiceException_1.AppStreamServiceException({
2867
- name: parsedBody.code || parsedBody.Code || errorCode,
2919
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2868
2920
  $fault: "client",
2869
- $metadata: deserializeMetadata(output),
2921
+ $metadata,
2870
2922
  });
2871
2923
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2872
2924
  }
@@ -2891,18 +2943,19 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
2891
2943
  body: await parseBody(output.body, context),
2892
2944
  };
2893
2945
  let response;
2894
- let errorCode = "UnknownError";
2895
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2946
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2896
2947
  switch (errorCode) {
2897
2948
  case "ResourceNotFoundException":
2898
2949
  case "com.amazonaws.appstream#ResourceNotFoundException":
2899
2950
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2900
2951
  default:
2901
2952
  const parsedBody = parsedOutput.body;
2953
+ const $metadata = deserializeMetadata(output);
2954
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2902
2955
  response = new AppStreamServiceException_1.AppStreamServiceException({
2903
- name: parsedBody.code || parsedBody.Code || errorCode,
2956
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2904
2957
  $fault: "client",
2905
- $metadata: deserializeMetadata(output),
2958
+ $metadata,
2906
2959
  });
2907
2960
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2908
2961
  }
@@ -2927,8 +2980,7 @@ const deserializeAws_json1_1StartFleetCommandError = async (output, context) =>
2927
2980
  body: await parseBody(output.body, context),
2928
2981
  };
2929
2982
  let response;
2930
- let errorCode = "UnknownError";
2931
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2983
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2932
2984
  switch (errorCode) {
2933
2985
  case "ConcurrentModificationException":
2934
2986
  case "com.amazonaws.appstream#ConcurrentModificationException":
@@ -2956,10 +3008,12 @@ const deserializeAws_json1_1StartFleetCommandError = async (output, context) =>
2956
3008
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
2957
3009
  default:
2958
3010
  const parsedBody = parsedOutput.body;
3011
+ const $metadata = deserializeMetadata(output);
3012
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2959
3013
  response = new AppStreamServiceException_1.AppStreamServiceException({
2960
- name: parsedBody.code || parsedBody.Code || errorCode,
3014
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2961
3015
  $fault: "client",
2962
- $metadata: deserializeMetadata(output),
3016
+ $metadata,
2963
3017
  });
2964
3018
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2965
3019
  }
@@ -2984,8 +3038,7 @@ const deserializeAws_json1_1StartImageBuilderCommandError = async (output, conte
2984
3038
  body: await parseBody(output.body, context),
2985
3039
  };
2986
3040
  let response;
2987
- let errorCode = "UnknownError";
2988
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3041
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2989
3042
  switch (errorCode) {
2990
3043
  case "ConcurrentModificationException":
2991
3044
  case "com.amazonaws.appstream#ConcurrentModificationException":
@@ -3004,10 +3057,12 @@ const deserializeAws_json1_1StartImageBuilderCommandError = async (output, conte
3004
3057
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
3005
3058
  default:
3006
3059
  const parsedBody = parsedOutput.body;
3060
+ const $metadata = deserializeMetadata(output);
3061
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3007
3062
  response = new AppStreamServiceException_1.AppStreamServiceException({
3008
- name: parsedBody.code || parsedBody.Code || errorCode,
3063
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3009
3064
  $fault: "client",
3010
- $metadata: deserializeMetadata(output),
3065
+ $metadata,
3011
3066
  });
3012
3067
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3013
3068
  }
@@ -3032,8 +3087,7 @@ const deserializeAws_json1_1StopFleetCommandError = async (output, context) => {
3032
3087
  body: await parseBody(output.body, context),
3033
3088
  };
3034
3089
  let response;
3035
- let errorCode = "UnknownError";
3036
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3090
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3037
3091
  switch (errorCode) {
3038
3092
  case "ConcurrentModificationException":
3039
3093
  case "com.amazonaws.appstream#ConcurrentModificationException":
@@ -3043,10 +3097,12 @@ const deserializeAws_json1_1StopFleetCommandError = async (output, context) => {
3043
3097
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
3044
3098
  default:
3045
3099
  const parsedBody = parsedOutput.body;
3100
+ const $metadata = deserializeMetadata(output);
3101
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3046
3102
  response = new AppStreamServiceException_1.AppStreamServiceException({
3047
- name: parsedBody.code || parsedBody.Code || errorCode,
3103
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3048
3104
  $fault: "client",
3049
- $metadata: deserializeMetadata(output),
3105
+ $metadata,
3050
3106
  });
3051
3107
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3052
3108
  }
@@ -3071,8 +3127,7 @@ const deserializeAws_json1_1StopImageBuilderCommandError = async (output, contex
3071
3127
  body: await parseBody(output.body, context),
3072
3128
  };
3073
3129
  let response;
3074
- let errorCode = "UnknownError";
3075
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3130
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3076
3131
  switch (errorCode) {
3077
3132
  case "ConcurrentModificationException":
3078
3133
  case "com.amazonaws.appstream#ConcurrentModificationException":
@@ -3085,10 +3140,12 @@ const deserializeAws_json1_1StopImageBuilderCommandError = async (output, contex
3085
3140
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
3086
3141
  default:
3087
3142
  const parsedBody = parsedOutput.body;
3143
+ const $metadata = deserializeMetadata(output);
3144
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3088
3145
  response = new AppStreamServiceException_1.AppStreamServiceException({
3089
- name: parsedBody.code || parsedBody.Code || errorCode,
3146
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3090
3147
  $fault: "client",
3091
- $metadata: deserializeMetadata(output),
3148
+ $metadata,
3092
3149
  });
3093
3150
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3094
3151
  }
@@ -3113,8 +3170,7 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
3113
3170
  body: await parseBody(output.body, context),
3114
3171
  };
3115
3172
  let response;
3116
- let errorCode = "UnknownError";
3117
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3173
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3118
3174
  switch (errorCode) {
3119
3175
  case "InvalidAccountStatusException":
3120
3176
  case "com.amazonaws.appstream#InvalidAccountStatusException":
@@ -3127,10 +3183,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
3127
3183
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
3128
3184
  default:
3129
3185
  const parsedBody = parsedOutput.body;
3186
+ const $metadata = deserializeMetadata(output);
3187
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3130
3188
  response = new AppStreamServiceException_1.AppStreamServiceException({
3131
- name: parsedBody.code || parsedBody.Code || errorCode,
3189
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3132
3190
  $fault: "client",
3133
- $metadata: deserializeMetadata(output),
3191
+ $metadata,
3134
3192
  });
3135
3193
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3136
3194
  }
@@ -3155,18 +3213,19 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
3155
3213
  body: await parseBody(output.body, context),
3156
3214
  };
3157
3215
  let response;
3158
- let errorCode = "UnknownError";
3159
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3216
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3160
3217
  switch (errorCode) {
3161
3218
  case "ResourceNotFoundException":
3162
3219
  case "com.amazonaws.appstream#ResourceNotFoundException":
3163
3220
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
3164
3221
  default:
3165
3222
  const parsedBody = parsedOutput.body;
3223
+ const $metadata = deserializeMetadata(output);
3224
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3166
3225
  response = new AppStreamServiceException_1.AppStreamServiceException({
3167
- name: parsedBody.code || parsedBody.Code || errorCode,
3226
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3168
3227
  $fault: "client",
3169
- $metadata: deserializeMetadata(output),
3228
+ $metadata,
3170
3229
  });
3171
3230
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3172
3231
  }
@@ -3191,8 +3250,7 @@ const deserializeAws_json1_1UpdateApplicationCommandError = async (output, conte
3191
3250
  body: await parseBody(output.body, context),
3192
3251
  };
3193
3252
  let response;
3194
- let errorCode = "UnknownError";
3195
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3253
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3196
3254
  switch (errorCode) {
3197
3255
  case "ConcurrentModificationException":
3198
3256
  case "com.amazonaws.appstream#ConcurrentModificationException":
@@ -3205,10 +3263,12 @@ const deserializeAws_json1_1UpdateApplicationCommandError = async (output, conte
3205
3263
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
3206
3264
  default:
3207
3265
  const parsedBody = parsedOutput.body;
3266
+ const $metadata = deserializeMetadata(output);
3267
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3208
3268
  response = new AppStreamServiceException_1.AppStreamServiceException({
3209
- name: parsedBody.code || parsedBody.Code || errorCode,
3269
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3210
3270
  $fault: "client",
3211
- $metadata: deserializeMetadata(output),
3271
+ $metadata,
3212
3272
  });
3213
3273
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3214
3274
  }
@@ -3233,8 +3293,7 @@ const deserializeAws_json1_1UpdateDirectoryConfigCommandError = async (output, c
3233
3293
  body: await parseBody(output.body, context),
3234
3294
  };
3235
3295
  let response;
3236
- let errorCode = "UnknownError";
3237
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3296
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3238
3297
  switch (errorCode) {
3239
3298
  case "ConcurrentModificationException":
3240
3299
  case "com.amazonaws.appstream#ConcurrentModificationException":
@@ -3253,10 +3312,12 @@ const deserializeAws_json1_1UpdateDirectoryConfigCommandError = async (output, c
3253
3312
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
3254
3313
  default:
3255
3314
  const parsedBody = parsedOutput.body;
3315
+ const $metadata = deserializeMetadata(output);
3316
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3256
3317
  response = new AppStreamServiceException_1.AppStreamServiceException({
3257
- name: parsedBody.code || parsedBody.Code || errorCode,
3318
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3258
3319
  $fault: "client",
3259
- $metadata: deserializeMetadata(output),
3320
+ $metadata,
3260
3321
  });
3261
3322
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3262
3323
  }
@@ -3281,8 +3342,7 @@ const deserializeAws_json1_1UpdateEntitlementCommandError = async (output, conte
3281
3342
  body: await parseBody(output.body, context),
3282
3343
  };
3283
3344
  let response;
3284
- let errorCode = "UnknownError";
3285
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3345
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3286
3346
  switch (errorCode) {
3287
3347
  case "ConcurrentModificationException":
3288
3348
  case "com.amazonaws.appstream#ConcurrentModificationException":
@@ -3298,10 +3358,12 @@ const deserializeAws_json1_1UpdateEntitlementCommandError = async (output, conte
3298
3358
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
3299
3359
  default:
3300
3360
  const parsedBody = parsedOutput.body;
3361
+ const $metadata = deserializeMetadata(output);
3362
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3301
3363
  response = new AppStreamServiceException_1.AppStreamServiceException({
3302
- name: parsedBody.code || parsedBody.Code || errorCode,
3364
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3303
3365
  $fault: "client",
3304
- $metadata: deserializeMetadata(output),
3366
+ $metadata,
3305
3367
  });
3306
3368
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3307
3369
  }
@@ -3326,8 +3388,7 @@ const deserializeAws_json1_1UpdateFleetCommandError = async (output, context) =>
3326
3388
  body: await parseBody(output.body, context),
3327
3389
  };
3328
3390
  let response;
3329
- let errorCode = "UnknownError";
3330
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3391
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3331
3392
  switch (errorCode) {
3332
3393
  case "ConcurrentModificationException":
3333
3394
  case "com.amazonaws.appstream#ConcurrentModificationException":
@@ -3364,10 +3425,12 @@ const deserializeAws_json1_1UpdateFleetCommandError = async (output, context) =>
3364
3425
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
3365
3426
  default:
3366
3427
  const parsedBody = parsedOutput.body;
3428
+ const $metadata = deserializeMetadata(output);
3429
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3367
3430
  response = new AppStreamServiceException_1.AppStreamServiceException({
3368
- name: parsedBody.code || parsedBody.Code || errorCode,
3431
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3369
3432
  $fault: "client",
3370
- $metadata: deserializeMetadata(output),
3433
+ $metadata,
3371
3434
  });
3372
3435
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3373
3436
  }
@@ -3392,8 +3455,7 @@ const deserializeAws_json1_1UpdateImagePermissionsCommandError = async (output,
3392
3455
  body: await parseBody(output.body, context),
3393
3456
  };
3394
3457
  let response;
3395
- let errorCode = "UnknownError";
3396
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3458
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3397
3459
  switch (errorCode) {
3398
3460
  case "LimitExceededException":
3399
3461
  case "com.amazonaws.appstream#LimitExceededException":
@@ -3406,10 +3468,12 @@ const deserializeAws_json1_1UpdateImagePermissionsCommandError = async (output,
3406
3468
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
3407
3469
  default:
3408
3470
  const parsedBody = parsedOutput.body;
3471
+ const $metadata = deserializeMetadata(output);
3472
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3409
3473
  response = new AppStreamServiceException_1.AppStreamServiceException({
3410
- name: parsedBody.code || parsedBody.Code || errorCode,
3474
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3411
3475
  $fault: "client",
3412
- $metadata: deserializeMetadata(output),
3476
+ $metadata,
3413
3477
  });
3414
3478
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3415
3479
  }
@@ -3434,8 +3498,7 @@ const deserializeAws_json1_1UpdateStackCommandError = async (output, context) =>
3434
3498
  body: await parseBody(output.body, context),
3435
3499
  };
3436
3500
  let response;
3437
- let errorCode = "UnknownError";
3438
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3501
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3439
3502
  switch (errorCode) {
3440
3503
  case "ConcurrentModificationException":
3441
3504
  case "com.amazonaws.appstream#ConcurrentModificationException":
@@ -3466,10 +3529,12 @@ const deserializeAws_json1_1UpdateStackCommandError = async (output, context) =>
3466
3529
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
3467
3530
  default:
3468
3531
  const parsedBody = parsedOutput.body;
3532
+ const $metadata = deserializeMetadata(output);
3533
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3469
3534
  response = new AppStreamServiceException_1.AppStreamServiceException({
3470
- name: parsedBody.code || parsedBody.Code || errorCode,
3535
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3471
3536
  $fault: "client",
3472
- $metadata: deserializeMetadata(output),
3537
+ $metadata,
3473
3538
  });
3474
3539
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3475
3540
  }
@@ -3602,8 +3667,8 @@ const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOut
3602
3667
  };
3603
3668
  const serializeAws_json1_1AccessEndpoint = (input, context) => {
3604
3669
  return {
3605
- ...(input.EndpointType !== undefined && input.EndpointType !== null && { EndpointType: input.EndpointType }),
3606
- ...(input.VpceId !== undefined && input.VpceId !== null && { VpceId: input.VpceId }),
3670
+ ...(input.EndpointType != null && { EndpointType: input.EndpointType }),
3671
+ ...(input.VpceId != null && { VpceId: input.VpceId }),
3607
3672
  };
3608
3673
  };
3609
3674
  const serializeAws_json1_1AccessEndpointList = (input, context) => {
@@ -3628,8 +3693,8 @@ const serializeAws_json1_1ApplicationAttributes = (input, context) => {
3628
3693
  };
3629
3694
  const serializeAws_json1_1ApplicationSettings = (input, context) => {
3630
3695
  return {
3631
- ...(input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }),
3632
- ...(input.SettingsGroup !== undefined && input.SettingsGroup !== null && { SettingsGroup: input.SettingsGroup }),
3696
+ ...(input.Enabled != null && { Enabled: input.Enabled }),
3697
+ ...(input.SettingsGroup != null && { SettingsGroup: input.SettingsGroup }),
3633
3698
  };
3634
3699
  };
3635
3700
  const serializeAws_json1_1ArnList = (input, context) => {
@@ -3644,24 +3709,21 @@ const serializeAws_json1_1ArnList = (input, context) => {
3644
3709
  };
3645
3710
  const serializeAws_json1_1AssociateApplicationFleetRequest = (input, context) => {
3646
3711
  return {
3647
- ...(input.ApplicationArn !== undefined &&
3648
- input.ApplicationArn !== null && { ApplicationArn: input.ApplicationArn }),
3649
- ...(input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName }),
3712
+ ...(input.ApplicationArn != null && { ApplicationArn: input.ApplicationArn }),
3713
+ ...(input.FleetName != null && { FleetName: input.FleetName }),
3650
3714
  };
3651
3715
  };
3652
3716
  const serializeAws_json1_1AssociateApplicationToEntitlementRequest = (input, context) => {
3653
3717
  return {
3654
- ...(input.ApplicationIdentifier !== undefined &&
3655
- input.ApplicationIdentifier !== null && { ApplicationIdentifier: input.ApplicationIdentifier }),
3656
- ...(input.EntitlementName !== undefined &&
3657
- input.EntitlementName !== null && { EntitlementName: input.EntitlementName }),
3658
- ...(input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }),
3718
+ ...(input.ApplicationIdentifier != null && { ApplicationIdentifier: input.ApplicationIdentifier }),
3719
+ ...(input.EntitlementName != null && { EntitlementName: input.EntitlementName }),
3720
+ ...(input.StackName != null && { StackName: input.StackName }),
3659
3721
  };
3660
3722
  };
3661
3723
  const serializeAws_json1_1AssociateFleetRequest = (input, context) => {
3662
3724
  return {
3663
- ...(input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName }),
3664
- ...(input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }),
3725
+ ...(input.FleetName != null && { FleetName: input.FleetName }),
3726
+ ...(input.StackName != null && { StackName: input.StackName }),
3665
3727
  };
3666
3728
  };
3667
3729
  const serializeAws_json1_1AwsAccountIdList = (input, context) => {
@@ -3676,233 +3738,200 @@ const serializeAws_json1_1AwsAccountIdList = (input, context) => {
3676
3738
  };
3677
3739
  const serializeAws_json1_1BatchAssociateUserStackRequest = (input, context) => {
3678
3740
  return {
3679
- ...(input.UserStackAssociations !== undefined &&
3680
- input.UserStackAssociations !== null && {
3741
+ ...(input.UserStackAssociations != null && {
3681
3742
  UserStackAssociations: serializeAws_json1_1UserStackAssociationList(input.UserStackAssociations, context),
3682
3743
  }),
3683
3744
  };
3684
3745
  };
3685
3746
  const serializeAws_json1_1BatchDisassociateUserStackRequest = (input, context) => {
3686
3747
  return {
3687
- ...(input.UserStackAssociations !== undefined &&
3688
- input.UserStackAssociations !== null && {
3748
+ ...(input.UserStackAssociations != null && {
3689
3749
  UserStackAssociations: serializeAws_json1_1UserStackAssociationList(input.UserStackAssociations, context),
3690
3750
  }),
3691
3751
  };
3692
3752
  };
3693
3753
  const serializeAws_json1_1ComputeCapacity = (input, context) => {
3694
3754
  return {
3695
- ...(input.DesiredInstances !== undefined &&
3696
- input.DesiredInstances !== null && { DesiredInstances: input.DesiredInstances }),
3755
+ ...(input.DesiredInstances != null && { DesiredInstances: input.DesiredInstances }),
3697
3756
  };
3698
3757
  };
3699
3758
  const serializeAws_json1_1CopyImageRequest = (input, context) => {
3700
3759
  return {
3701
- ...(input.DestinationImageDescription !== undefined &&
3702
- input.DestinationImageDescription !== null && { DestinationImageDescription: input.DestinationImageDescription }),
3703
- ...(input.DestinationImageName !== undefined &&
3704
- input.DestinationImageName !== null && { DestinationImageName: input.DestinationImageName }),
3705
- ...(input.DestinationRegion !== undefined &&
3706
- input.DestinationRegion !== null && { DestinationRegion: input.DestinationRegion }),
3707
- ...(input.SourceImageName !== undefined &&
3708
- input.SourceImageName !== null && { SourceImageName: input.SourceImageName }),
3760
+ ...(input.DestinationImageDescription != null && {
3761
+ DestinationImageDescription: input.DestinationImageDescription,
3762
+ }),
3763
+ ...(input.DestinationImageName != null && { DestinationImageName: input.DestinationImageName }),
3764
+ ...(input.DestinationRegion != null && { DestinationRegion: input.DestinationRegion }),
3765
+ ...(input.SourceImageName != null && { SourceImageName: input.SourceImageName }),
3709
3766
  };
3710
3767
  };
3711
3768
  const serializeAws_json1_1CreateAppBlockRequest = (input, context) => {
3712
3769
  return {
3713
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
3714
- ...(input.DisplayName !== undefined && input.DisplayName !== null && { DisplayName: input.DisplayName }),
3715
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3716
- ...(input.SetupScriptDetails !== undefined &&
3717
- input.SetupScriptDetails !== null && {
3770
+ ...(input.Description != null && { Description: input.Description }),
3771
+ ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
3772
+ ...(input.Name != null && { Name: input.Name }),
3773
+ ...(input.SetupScriptDetails != null && {
3718
3774
  SetupScriptDetails: serializeAws_json1_1ScriptDetails(input.SetupScriptDetails, context),
3719
3775
  }),
3720
- ...(input.SourceS3Location !== undefined &&
3721
- input.SourceS3Location !== null && {
3776
+ ...(input.SourceS3Location != null && {
3722
3777
  SourceS3Location: serializeAws_json1_1S3Location(input.SourceS3Location, context),
3723
3778
  }),
3724
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
3779
+ ...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
3725
3780
  };
3726
3781
  };
3727
3782
  const serializeAws_json1_1CreateApplicationRequest = (input, context) => {
3728
3783
  return {
3729
- ...(input.AppBlockArn !== undefined && input.AppBlockArn !== null && { AppBlockArn: input.AppBlockArn }),
3730
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
3731
- ...(input.DisplayName !== undefined && input.DisplayName !== null && { DisplayName: input.DisplayName }),
3732
- ...(input.IconS3Location !== undefined &&
3733
- input.IconS3Location !== null && {
3784
+ ...(input.AppBlockArn != null && { AppBlockArn: input.AppBlockArn }),
3785
+ ...(input.Description != null && { Description: input.Description }),
3786
+ ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
3787
+ ...(input.IconS3Location != null && {
3734
3788
  IconS3Location: serializeAws_json1_1S3Location(input.IconS3Location, context),
3735
3789
  }),
3736
- ...(input.InstanceFamilies !== undefined &&
3737
- input.InstanceFamilies !== null && {
3790
+ ...(input.InstanceFamilies != null && {
3738
3791
  InstanceFamilies: serializeAws_json1_1StringList(input.InstanceFamilies, context),
3739
3792
  }),
3740
- ...(input.LaunchParameters !== undefined &&
3741
- input.LaunchParameters !== null && { LaunchParameters: input.LaunchParameters }),
3742
- ...(input.LaunchPath !== undefined && input.LaunchPath !== null && { LaunchPath: input.LaunchPath }),
3743
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3744
- ...(input.Platforms !== undefined &&
3745
- input.Platforms !== null && { Platforms: serializeAws_json1_1Platforms(input.Platforms, context) }),
3746
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
3747
- ...(input.WorkingDirectory !== undefined &&
3748
- input.WorkingDirectory !== null && { WorkingDirectory: input.WorkingDirectory }),
3793
+ ...(input.LaunchParameters != null && { LaunchParameters: input.LaunchParameters }),
3794
+ ...(input.LaunchPath != null && { LaunchPath: input.LaunchPath }),
3795
+ ...(input.Name != null && { Name: input.Name }),
3796
+ ...(input.Platforms != null && { Platforms: serializeAws_json1_1Platforms(input.Platforms, context) }),
3797
+ ...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
3798
+ ...(input.WorkingDirectory != null && { WorkingDirectory: input.WorkingDirectory }),
3749
3799
  };
3750
3800
  };
3751
3801
  const serializeAws_json1_1CreateDirectoryConfigRequest = (input, context) => {
3752
3802
  return {
3753
- ...(input.DirectoryName !== undefined && input.DirectoryName !== null && { DirectoryName: input.DirectoryName }),
3754
- ...(input.OrganizationalUnitDistinguishedNames !== undefined &&
3755
- input.OrganizationalUnitDistinguishedNames !== null && {
3803
+ ...(input.DirectoryName != null && { DirectoryName: input.DirectoryName }),
3804
+ ...(input.OrganizationalUnitDistinguishedNames != null && {
3756
3805
  OrganizationalUnitDistinguishedNames: serializeAws_json1_1OrganizationalUnitDistinguishedNamesList(input.OrganizationalUnitDistinguishedNames, context),
3757
3806
  }),
3758
- ...(input.ServiceAccountCredentials !== undefined &&
3759
- input.ServiceAccountCredentials !== null && {
3807
+ ...(input.ServiceAccountCredentials != null && {
3760
3808
  ServiceAccountCredentials: serializeAws_json1_1ServiceAccountCredentials(input.ServiceAccountCredentials, context),
3761
3809
  }),
3762
3810
  };
3763
3811
  };
3764
3812
  const serializeAws_json1_1CreateEntitlementRequest = (input, context) => {
3765
3813
  return {
3766
- ...(input.AppVisibility !== undefined && input.AppVisibility !== null && { AppVisibility: input.AppVisibility }),
3767
- ...(input.Attributes !== undefined &&
3768
- input.Attributes !== null && {
3814
+ ...(input.AppVisibility != null && { AppVisibility: input.AppVisibility }),
3815
+ ...(input.Attributes != null && {
3769
3816
  Attributes: serializeAws_json1_1EntitlementAttributeList(input.Attributes, context),
3770
3817
  }),
3771
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
3772
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3773
- ...(input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }),
3818
+ ...(input.Description != null && { Description: input.Description }),
3819
+ ...(input.Name != null && { Name: input.Name }),
3820
+ ...(input.StackName != null && { StackName: input.StackName }),
3774
3821
  };
3775
3822
  };
3776
3823
  const serializeAws_json1_1CreateFleetRequest = (input, context) => {
3777
3824
  return {
3778
- ...(input.ComputeCapacity !== undefined &&
3779
- input.ComputeCapacity !== null && {
3825
+ ...(input.ComputeCapacity != null && {
3780
3826
  ComputeCapacity: serializeAws_json1_1ComputeCapacity(input.ComputeCapacity, context),
3781
3827
  }),
3782
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
3783
- ...(input.DisconnectTimeoutInSeconds !== undefined &&
3784
- input.DisconnectTimeoutInSeconds !== null && { DisconnectTimeoutInSeconds: input.DisconnectTimeoutInSeconds }),
3785
- ...(input.DisplayName !== undefined && input.DisplayName !== null && { DisplayName: input.DisplayName }),
3786
- ...(input.DomainJoinInfo !== undefined &&
3787
- input.DomainJoinInfo !== null && {
3828
+ ...(input.Description != null && { Description: input.Description }),
3829
+ ...(input.DisconnectTimeoutInSeconds != null && { DisconnectTimeoutInSeconds: input.DisconnectTimeoutInSeconds }),
3830
+ ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
3831
+ ...(input.DomainJoinInfo != null && {
3788
3832
  DomainJoinInfo: serializeAws_json1_1DomainJoinInfo(input.DomainJoinInfo, context),
3789
3833
  }),
3790
- ...(input.EnableDefaultInternetAccess !== undefined &&
3791
- input.EnableDefaultInternetAccess !== null && { EnableDefaultInternetAccess: input.EnableDefaultInternetAccess }),
3792
- ...(input.FleetType !== undefined && input.FleetType !== null && { FleetType: input.FleetType }),
3793
- ...(input.IamRoleArn !== undefined && input.IamRoleArn !== null && { IamRoleArn: input.IamRoleArn }),
3794
- ...(input.IdleDisconnectTimeoutInSeconds !== undefined &&
3795
- input.IdleDisconnectTimeoutInSeconds !== null && {
3834
+ ...(input.EnableDefaultInternetAccess != null && {
3835
+ EnableDefaultInternetAccess: input.EnableDefaultInternetAccess,
3836
+ }),
3837
+ ...(input.FleetType != null && { FleetType: input.FleetType }),
3838
+ ...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
3839
+ ...(input.IdleDisconnectTimeoutInSeconds != null && {
3796
3840
  IdleDisconnectTimeoutInSeconds: input.IdleDisconnectTimeoutInSeconds,
3797
3841
  }),
3798
- ...(input.ImageArn !== undefined && input.ImageArn !== null && { ImageArn: input.ImageArn }),
3799
- ...(input.ImageName !== undefined && input.ImageName !== null && { ImageName: input.ImageName }),
3800
- ...(input.InstanceType !== undefined && input.InstanceType !== null && { InstanceType: input.InstanceType }),
3801
- ...(input.MaxConcurrentSessions !== undefined &&
3802
- input.MaxConcurrentSessions !== null && { MaxConcurrentSessions: input.MaxConcurrentSessions }),
3803
- ...(input.MaxUserDurationInSeconds !== undefined &&
3804
- input.MaxUserDurationInSeconds !== null && { MaxUserDurationInSeconds: input.MaxUserDurationInSeconds }),
3805
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3806
- ...(input.Platform !== undefined && input.Platform !== null && { Platform: input.Platform }),
3807
- ...(input.SessionScriptS3Location !== undefined &&
3808
- input.SessionScriptS3Location !== null && {
3842
+ ...(input.ImageArn != null && { ImageArn: input.ImageArn }),
3843
+ ...(input.ImageName != null && { ImageName: input.ImageName }),
3844
+ ...(input.InstanceType != null && { InstanceType: input.InstanceType }),
3845
+ ...(input.MaxConcurrentSessions != null && { MaxConcurrentSessions: input.MaxConcurrentSessions }),
3846
+ ...(input.MaxUserDurationInSeconds != null && { MaxUserDurationInSeconds: input.MaxUserDurationInSeconds }),
3847
+ ...(input.Name != null && { Name: input.Name }),
3848
+ ...(input.Platform != null && { Platform: input.Platform }),
3849
+ ...(input.SessionScriptS3Location != null && {
3809
3850
  SessionScriptS3Location: serializeAws_json1_1S3Location(input.SessionScriptS3Location, context),
3810
3851
  }),
3811
- ...(input.StreamView !== undefined && input.StreamView !== null && { StreamView: input.StreamView }),
3812
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
3813
- ...(input.UsbDeviceFilterStrings !== undefined &&
3814
- input.UsbDeviceFilterStrings !== null && {
3852
+ ...(input.StreamView != null && { StreamView: input.StreamView }),
3853
+ ...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
3854
+ ...(input.UsbDeviceFilterStrings != null && {
3815
3855
  UsbDeviceFilterStrings: serializeAws_json1_1UsbDeviceFilterStrings(input.UsbDeviceFilterStrings, context),
3816
3856
  }),
3817
- ...(input.VpcConfig !== undefined &&
3818
- input.VpcConfig !== null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
3857
+ ...(input.VpcConfig != null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
3819
3858
  };
3820
3859
  };
3821
3860
  const serializeAws_json1_1CreateImageBuilderRequest = (input, context) => {
3822
3861
  return {
3823
- ...(input.AccessEndpoints !== undefined &&
3824
- input.AccessEndpoints !== null && {
3862
+ ...(input.AccessEndpoints != null && {
3825
3863
  AccessEndpoints: serializeAws_json1_1AccessEndpointList(input.AccessEndpoints, context),
3826
3864
  }),
3827
- ...(input.AppstreamAgentVersion !== undefined &&
3828
- input.AppstreamAgentVersion !== null && { AppstreamAgentVersion: input.AppstreamAgentVersion }),
3829
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
3830
- ...(input.DisplayName !== undefined && input.DisplayName !== null && { DisplayName: input.DisplayName }),
3831
- ...(input.DomainJoinInfo !== undefined &&
3832
- input.DomainJoinInfo !== null && {
3865
+ ...(input.AppstreamAgentVersion != null && { AppstreamAgentVersion: input.AppstreamAgentVersion }),
3866
+ ...(input.Description != null && { Description: input.Description }),
3867
+ ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
3868
+ ...(input.DomainJoinInfo != null && {
3833
3869
  DomainJoinInfo: serializeAws_json1_1DomainJoinInfo(input.DomainJoinInfo, context),
3834
3870
  }),
3835
- ...(input.EnableDefaultInternetAccess !== undefined &&
3836
- input.EnableDefaultInternetAccess !== null && { EnableDefaultInternetAccess: input.EnableDefaultInternetAccess }),
3837
- ...(input.IamRoleArn !== undefined && input.IamRoleArn !== null && { IamRoleArn: input.IamRoleArn }),
3838
- ...(input.ImageArn !== undefined && input.ImageArn !== null && { ImageArn: input.ImageArn }),
3839
- ...(input.ImageName !== undefined && input.ImageName !== null && { ImageName: input.ImageName }),
3840
- ...(input.InstanceType !== undefined && input.InstanceType !== null && { InstanceType: input.InstanceType }),
3841
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3842
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
3843
- ...(input.VpcConfig !== undefined &&
3844
- input.VpcConfig !== null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
3871
+ ...(input.EnableDefaultInternetAccess != null && {
3872
+ EnableDefaultInternetAccess: input.EnableDefaultInternetAccess,
3873
+ }),
3874
+ ...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
3875
+ ...(input.ImageArn != null && { ImageArn: input.ImageArn }),
3876
+ ...(input.ImageName != null && { ImageName: input.ImageName }),
3877
+ ...(input.InstanceType != null && { InstanceType: input.InstanceType }),
3878
+ ...(input.Name != null && { Name: input.Name }),
3879
+ ...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
3880
+ ...(input.VpcConfig != null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
3845
3881
  };
3846
3882
  };
3847
3883
  const serializeAws_json1_1CreateImageBuilderStreamingURLRequest = (input, context) => {
3848
3884
  return {
3849
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3850
- ...(input.Validity !== undefined && input.Validity !== null && { Validity: input.Validity }),
3885
+ ...(input.Name != null && { Name: input.Name }),
3886
+ ...(input.Validity != null && { Validity: input.Validity }),
3851
3887
  };
3852
3888
  };
3853
3889
  const serializeAws_json1_1CreateStackRequest = (input, context) => {
3854
3890
  return {
3855
- ...(input.AccessEndpoints !== undefined &&
3856
- input.AccessEndpoints !== null && {
3891
+ ...(input.AccessEndpoints != null && {
3857
3892
  AccessEndpoints: serializeAws_json1_1AccessEndpointList(input.AccessEndpoints, context),
3858
3893
  }),
3859
- ...(input.ApplicationSettings !== undefined &&
3860
- input.ApplicationSettings !== null && {
3894
+ ...(input.ApplicationSettings != null && {
3861
3895
  ApplicationSettings: serializeAws_json1_1ApplicationSettings(input.ApplicationSettings, context),
3862
3896
  }),
3863
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
3864
- ...(input.DisplayName !== undefined && input.DisplayName !== null && { DisplayName: input.DisplayName }),
3865
- ...(input.EmbedHostDomains !== undefined &&
3866
- input.EmbedHostDomains !== null && {
3897
+ ...(input.Description != null && { Description: input.Description }),
3898
+ ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
3899
+ ...(input.EmbedHostDomains != null && {
3867
3900
  EmbedHostDomains: serializeAws_json1_1EmbedHostDomains(input.EmbedHostDomains, context),
3868
3901
  }),
3869
- ...(input.FeedbackURL !== undefined && input.FeedbackURL !== null && { FeedbackURL: input.FeedbackURL }),
3870
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3871
- ...(input.RedirectURL !== undefined && input.RedirectURL !== null && { RedirectURL: input.RedirectURL }),
3872
- ...(input.StorageConnectors !== undefined &&
3873
- input.StorageConnectors !== null && {
3902
+ ...(input.FeedbackURL != null && { FeedbackURL: input.FeedbackURL }),
3903
+ ...(input.Name != null && { Name: input.Name }),
3904
+ ...(input.RedirectURL != null && { RedirectURL: input.RedirectURL }),
3905
+ ...(input.StorageConnectors != null && {
3874
3906
  StorageConnectors: serializeAws_json1_1StorageConnectorList(input.StorageConnectors, context),
3875
3907
  }),
3876
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
3877
- ...(input.UserSettings !== undefined &&
3878
- input.UserSettings !== null && {
3908
+ ...(input.StreamingExperienceSettings != null && {
3909
+ StreamingExperienceSettings: serializeAws_json1_1StreamingExperienceSettings(input.StreamingExperienceSettings, context),
3910
+ }),
3911
+ ...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
3912
+ ...(input.UserSettings != null && {
3879
3913
  UserSettings: serializeAws_json1_1UserSettingList(input.UserSettings, context),
3880
3914
  }),
3881
3915
  };
3882
3916
  };
3883
3917
  const serializeAws_json1_1CreateStreamingURLRequest = (input, context) => {
3884
3918
  return {
3885
- ...(input.ApplicationId !== undefined && input.ApplicationId !== null && { ApplicationId: input.ApplicationId }),
3886
- ...(input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName }),
3887
- ...(input.SessionContext !== undefined &&
3888
- input.SessionContext !== null && { SessionContext: input.SessionContext }),
3889
- ...(input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }),
3890
- ...(input.UserId !== undefined && input.UserId !== null && { UserId: input.UserId }),
3891
- ...(input.Validity !== undefined && input.Validity !== null && { Validity: input.Validity }),
3919
+ ...(input.ApplicationId != null && { ApplicationId: input.ApplicationId }),
3920
+ ...(input.FleetName != null && { FleetName: input.FleetName }),
3921
+ ...(input.SessionContext != null && { SessionContext: input.SessionContext }),
3922
+ ...(input.StackName != null && { StackName: input.StackName }),
3923
+ ...(input.UserId != null && { UserId: input.UserId }),
3924
+ ...(input.Validity != null && { Validity: input.Validity }),
3892
3925
  };
3893
3926
  };
3894
3927
  const serializeAws_json1_1CreateUpdatedImageRequest = (input, context) => {
3895
3928
  return {
3896
- ...(input.dryRun !== undefined && input.dryRun !== null && { dryRun: input.dryRun }),
3897
- ...(input.existingImageName !== undefined &&
3898
- input.existingImageName !== null && { existingImageName: input.existingImageName }),
3899
- ...(input.newImageDescription !== undefined &&
3900
- input.newImageDescription !== null && { newImageDescription: input.newImageDescription }),
3901
- ...(input.newImageDisplayName !== undefined &&
3902
- input.newImageDisplayName !== null && { newImageDisplayName: input.newImageDisplayName }),
3903
- ...(input.newImageName !== undefined && input.newImageName !== null && { newImageName: input.newImageName }),
3904
- ...(input.newImageTags !== undefined &&
3905
- input.newImageTags !== null && { newImageTags: serializeAws_json1_1Tags(input.newImageTags, context) }),
3929
+ ...(input.dryRun != null && { dryRun: input.dryRun }),
3930
+ ...(input.existingImageName != null && { existingImageName: input.existingImageName }),
3931
+ ...(input.newImageDescription != null && { newImageDescription: input.newImageDescription }),
3932
+ ...(input.newImageDisplayName != null && { newImageDisplayName: input.newImageDisplayName }),
3933
+ ...(input.newImageName != null && { newImageName: input.newImageName }),
3934
+ ...(input.newImageTags != null && { newImageTags: serializeAws_json1_1Tags(input.newImageTags, context) }),
3906
3935
  };
3907
3936
  };
3908
3937
  const serializeAws_json1_1CreateUsageReportSubscriptionRequest = (input, context) => {
@@ -3910,60 +3939,58 @@ const serializeAws_json1_1CreateUsageReportSubscriptionRequest = (input, context
3910
3939
  };
3911
3940
  const serializeAws_json1_1CreateUserRequest = (input, context) => {
3912
3941
  return {
3913
- ...(input.AuthenticationType !== undefined &&
3914
- input.AuthenticationType !== null && { AuthenticationType: input.AuthenticationType }),
3915
- ...(input.FirstName !== undefined && input.FirstName !== null && { FirstName: input.FirstName }),
3916
- ...(input.LastName !== undefined && input.LastName !== null && { LastName: input.LastName }),
3917
- ...(input.MessageAction !== undefined && input.MessageAction !== null && { MessageAction: input.MessageAction }),
3918
- ...(input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }),
3942
+ ...(input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType }),
3943
+ ...(input.FirstName != null && { FirstName: input.FirstName }),
3944
+ ...(input.LastName != null && { LastName: input.LastName }),
3945
+ ...(input.MessageAction != null && { MessageAction: input.MessageAction }),
3946
+ ...(input.UserName != null && { UserName: input.UserName }),
3919
3947
  };
3920
3948
  };
3921
3949
  const serializeAws_json1_1DeleteAppBlockRequest = (input, context) => {
3922
3950
  return {
3923
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3951
+ ...(input.Name != null && { Name: input.Name }),
3924
3952
  };
3925
3953
  };
3926
3954
  const serializeAws_json1_1DeleteApplicationRequest = (input, context) => {
3927
3955
  return {
3928
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3956
+ ...(input.Name != null && { Name: input.Name }),
3929
3957
  };
3930
3958
  };
3931
3959
  const serializeAws_json1_1DeleteDirectoryConfigRequest = (input, context) => {
3932
3960
  return {
3933
- ...(input.DirectoryName !== undefined && input.DirectoryName !== null && { DirectoryName: input.DirectoryName }),
3961
+ ...(input.DirectoryName != null && { DirectoryName: input.DirectoryName }),
3934
3962
  };
3935
3963
  };
3936
3964
  const serializeAws_json1_1DeleteEntitlementRequest = (input, context) => {
3937
3965
  return {
3938
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3939
- ...(input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }),
3966
+ ...(input.Name != null && { Name: input.Name }),
3967
+ ...(input.StackName != null && { StackName: input.StackName }),
3940
3968
  };
3941
3969
  };
3942
3970
  const serializeAws_json1_1DeleteFleetRequest = (input, context) => {
3943
3971
  return {
3944
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3972
+ ...(input.Name != null && { Name: input.Name }),
3945
3973
  };
3946
3974
  };
3947
3975
  const serializeAws_json1_1DeleteImageBuilderRequest = (input, context) => {
3948
3976
  return {
3949
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3977
+ ...(input.Name != null && { Name: input.Name }),
3950
3978
  };
3951
3979
  };
3952
3980
  const serializeAws_json1_1DeleteImagePermissionsRequest = (input, context) => {
3953
3981
  return {
3954
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3955
- ...(input.SharedAccountId !== undefined &&
3956
- input.SharedAccountId !== null && { SharedAccountId: input.SharedAccountId }),
3982
+ ...(input.Name != null && { Name: input.Name }),
3983
+ ...(input.SharedAccountId != null && { SharedAccountId: input.SharedAccountId }),
3957
3984
  };
3958
3985
  };
3959
3986
  const serializeAws_json1_1DeleteImageRequest = (input, context) => {
3960
3987
  return {
3961
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3988
+ ...(input.Name != null && { Name: input.Name }),
3962
3989
  };
3963
3990
  };
3964
3991
  const serializeAws_json1_1DeleteStackRequest = (input, context) => {
3965
3992
  return {
3966
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3993
+ ...(input.Name != null && { Name: input.Name }),
3967
3994
  };
3968
3995
  };
3969
3996
  const serializeAws_json1_1DeleteUsageReportSubscriptionRequest = (input, context) => {
@@ -3971,128 +3998,117 @@ const serializeAws_json1_1DeleteUsageReportSubscriptionRequest = (input, context
3971
3998
  };
3972
3999
  const serializeAws_json1_1DeleteUserRequest = (input, context) => {
3973
4000
  return {
3974
- ...(input.AuthenticationType !== undefined &&
3975
- input.AuthenticationType !== null && { AuthenticationType: input.AuthenticationType }),
3976
- ...(input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }),
4001
+ ...(input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType }),
4002
+ ...(input.UserName != null && { UserName: input.UserName }),
3977
4003
  };
3978
4004
  };
3979
4005
  const serializeAws_json1_1DescribeAppBlocksRequest = (input, context) => {
3980
4006
  return {
3981
- ...(input.Arns !== undefined && input.Arns !== null && { Arns: serializeAws_json1_1ArnList(input.Arns, context) }),
3982
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
3983
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
4007
+ ...(input.Arns != null && { Arns: serializeAws_json1_1ArnList(input.Arns, context) }),
4008
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
4009
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
3984
4010
  };
3985
4011
  };
3986
4012
  const serializeAws_json1_1DescribeApplicationFleetAssociationsRequest = (input, context) => {
3987
4013
  return {
3988
- ...(input.ApplicationArn !== undefined &&
3989
- input.ApplicationArn !== null && { ApplicationArn: input.ApplicationArn }),
3990
- ...(input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName }),
3991
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
3992
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
4014
+ ...(input.ApplicationArn != null && { ApplicationArn: input.ApplicationArn }),
4015
+ ...(input.FleetName != null && { FleetName: input.FleetName }),
4016
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
4017
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
3993
4018
  };
3994
4019
  };
3995
4020
  const serializeAws_json1_1DescribeApplicationsRequest = (input, context) => {
3996
4021
  return {
3997
- ...(input.Arns !== undefined && input.Arns !== null && { Arns: serializeAws_json1_1ArnList(input.Arns, context) }),
3998
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
3999
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
4022
+ ...(input.Arns != null && { Arns: serializeAws_json1_1ArnList(input.Arns, context) }),
4023
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
4024
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
4000
4025
  };
4001
4026
  };
4002
4027
  const serializeAws_json1_1DescribeDirectoryConfigsRequest = (input, context) => {
4003
4028
  return {
4004
- ...(input.DirectoryNames !== undefined &&
4005
- input.DirectoryNames !== null && {
4029
+ ...(input.DirectoryNames != null && {
4006
4030
  DirectoryNames: serializeAws_json1_1DirectoryNameList(input.DirectoryNames, context),
4007
4031
  }),
4008
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
4009
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
4032
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
4033
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
4010
4034
  };
4011
4035
  };
4012
4036
  const serializeAws_json1_1DescribeEntitlementsRequest = (input, context) => {
4013
4037
  return {
4014
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
4015
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4016
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
4017
- ...(input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }),
4038
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
4039
+ ...(input.Name != null && { Name: input.Name }),
4040
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
4041
+ ...(input.StackName != null && { StackName: input.StackName }),
4018
4042
  };
4019
4043
  };
4020
4044
  const serializeAws_json1_1DescribeFleetsRequest = (input, context) => {
4021
4045
  return {
4022
- ...(input.Names !== undefined &&
4023
- input.Names !== null && { Names: serializeAws_json1_1StringList(input.Names, context) }),
4024
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
4046
+ ...(input.Names != null && { Names: serializeAws_json1_1StringList(input.Names, context) }),
4047
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
4025
4048
  };
4026
4049
  };
4027
4050
  const serializeAws_json1_1DescribeImageBuildersRequest = (input, context) => {
4028
4051
  return {
4029
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
4030
- ...(input.Names !== undefined &&
4031
- input.Names !== null && { Names: serializeAws_json1_1StringList(input.Names, context) }),
4032
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
4052
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
4053
+ ...(input.Names != null && { Names: serializeAws_json1_1StringList(input.Names, context) }),
4054
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
4033
4055
  };
4034
4056
  };
4035
4057
  const serializeAws_json1_1DescribeImagePermissionsRequest = (input, context) => {
4036
4058
  return {
4037
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
4038
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4039
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
4040
- ...(input.SharedAwsAccountIds !== undefined &&
4041
- input.SharedAwsAccountIds !== null && {
4059
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
4060
+ ...(input.Name != null && { Name: input.Name }),
4061
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
4062
+ ...(input.SharedAwsAccountIds != null && {
4042
4063
  SharedAwsAccountIds: serializeAws_json1_1AwsAccountIdList(input.SharedAwsAccountIds, context),
4043
4064
  }),
4044
4065
  };
4045
4066
  };
4046
4067
  const serializeAws_json1_1DescribeImagesRequest = (input, context) => {
4047
4068
  return {
4048
- ...(input.Arns !== undefined && input.Arns !== null && { Arns: serializeAws_json1_1ArnList(input.Arns, context) }),
4049
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
4050
- ...(input.Names !== undefined &&
4051
- input.Names !== null && { Names: serializeAws_json1_1StringList(input.Names, context) }),
4052
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
4053
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
4069
+ ...(input.Arns != null && { Arns: serializeAws_json1_1ArnList(input.Arns, context) }),
4070
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
4071
+ ...(input.Names != null && { Names: serializeAws_json1_1StringList(input.Names, context) }),
4072
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
4073
+ ...(input.Type != null && { Type: input.Type }),
4054
4074
  };
4055
4075
  };
4056
4076
  const serializeAws_json1_1DescribeSessionsRequest = (input, context) => {
4057
4077
  return {
4058
- ...(input.AuthenticationType !== undefined &&
4059
- input.AuthenticationType !== null && { AuthenticationType: input.AuthenticationType }),
4060
- ...(input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName }),
4061
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
4062
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
4063
- ...(input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }),
4064
- ...(input.UserId !== undefined && input.UserId !== null && { UserId: input.UserId }),
4078
+ ...(input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType }),
4079
+ ...(input.FleetName != null && { FleetName: input.FleetName }),
4080
+ ...(input.Limit != null && { Limit: input.Limit }),
4081
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
4082
+ ...(input.StackName != null && { StackName: input.StackName }),
4083
+ ...(input.UserId != null && { UserId: input.UserId }),
4065
4084
  };
4066
4085
  };
4067
4086
  const serializeAws_json1_1DescribeStacksRequest = (input, context) => {
4068
4087
  return {
4069
- ...(input.Names !== undefined &&
4070
- input.Names !== null && { Names: serializeAws_json1_1StringList(input.Names, context) }),
4071
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
4088
+ ...(input.Names != null && { Names: serializeAws_json1_1StringList(input.Names, context) }),
4089
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
4072
4090
  };
4073
4091
  };
4074
4092
  const serializeAws_json1_1DescribeUsageReportSubscriptionsRequest = (input, context) => {
4075
4093
  return {
4076
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
4077
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
4094
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
4095
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
4078
4096
  };
4079
4097
  };
4080
4098
  const serializeAws_json1_1DescribeUsersRequest = (input, context) => {
4081
4099
  return {
4082
- ...(input.AuthenticationType !== undefined &&
4083
- input.AuthenticationType !== null && { AuthenticationType: input.AuthenticationType }),
4084
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
4085
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
4100
+ ...(input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType }),
4101
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
4102
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
4086
4103
  };
4087
4104
  };
4088
4105
  const serializeAws_json1_1DescribeUserStackAssociationsRequest = (input, context) => {
4089
4106
  return {
4090
- ...(input.AuthenticationType !== undefined &&
4091
- input.AuthenticationType !== null && { AuthenticationType: input.AuthenticationType }),
4092
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
4093
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
4094
- ...(input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }),
4095
- ...(input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }),
4107
+ ...(input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType }),
4108
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
4109
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
4110
+ ...(input.StackName != null && { StackName: input.StackName }),
4111
+ ...(input.UserName != null && { UserName: input.UserName }),
4096
4112
  };
4097
4113
  };
4098
4114
  const serializeAws_json1_1DirectoryNameList = (input, context) => {
@@ -4107,38 +4123,33 @@ const serializeAws_json1_1DirectoryNameList = (input, context) => {
4107
4123
  };
4108
4124
  const serializeAws_json1_1DisableUserRequest = (input, context) => {
4109
4125
  return {
4110
- ...(input.AuthenticationType !== undefined &&
4111
- input.AuthenticationType !== null && { AuthenticationType: input.AuthenticationType }),
4112
- ...(input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }),
4126
+ ...(input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType }),
4127
+ ...(input.UserName != null && { UserName: input.UserName }),
4113
4128
  };
4114
4129
  };
4115
4130
  const serializeAws_json1_1DisassociateApplicationFleetRequest = (input, context) => {
4116
4131
  return {
4117
- ...(input.ApplicationArn !== undefined &&
4118
- input.ApplicationArn !== null && { ApplicationArn: input.ApplicationArn }),
4119
- ...(input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName }),
4132
+ ...(input.ApplicationArn != null && { ApplicationArn: input.ApplicationArn }),
4133
+ ...(input.FleetName != null && { FleetName: input.FleetName }),
4120
4134
  };
4121
4135
  };
4122
4136
  const serializeAws_json1_1DisassociateApplicationFromEntitlementRequest = (input, context) => {
4123
4137
  return {
4124
- ...(input.ApplicationIdentifier !== undefined &&
4125
- input.ApplicationIdentifier !== null && { ApplicationIdentifier: input.ApplicationIdentifier }),
4126
- ...(input.EntitlementName !== undefined &&
4127
- input.EntitlementName !== null && { EntitlementName: input.EntitlementName }),
4128
- ...(input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }),
4138
+ ...(input.ApplicationIdentifier != null && { ApplicationIdentifier: input.ApplicationIdentifier }),
4139
+ ...(input.EntitlementName != null && { EntitlementName: input.EntitlementName }),
4140
+ ...(input.StackName != null && { StackName: input.StackName }),
4129
4141
  };
4130
4142
  };
4131
4143
  const serializeAws_json1_1DisassociateFleetRequest = (input, context) => {
4132
4144
  return {
4133
- ...(input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName }),
4134
- ...(input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }),
4145
+ ...(input.FleetName != null && { FleetName: input.FleetName }),
4146
+ ...(input.StackName != null && { StackName: input.StackName }),
4135
4147
  };
4136
4148
  };
4137
4149
  const serializeAws_json1_1DomainJoinInfo = (input, context) => {
4138
4150
  return {
4139
- ...(input.DirectoryName !== undefined && input.DirectoryName !== null && { DirectoryName: input.DirectoryName }),
4140
- ...(input.OrganizationalUnitDistinguishedName !== undefined &&
4141
- input.OrganizationalUnitDistinguishedName !== null && {
4151
+ ...(input.DirectoryName != null && { DirectoryName: input.DirectoryName }),
4152
+ ...(input.OrganizationalUnitDistinguishedName != null && {
4142
4153
  OrganizationalUnitDistinguishedName: input.OrganizationalUnitDistinguishedName,
4143
4154
  }),
4144
4155
  };
@@ -4165,15 +4176,14 @@ const serializeAws_json1_1EmbedHostDomains = (input, context) => {
4165
4176
  };
4166
4177
  const serializeAws_json1_1EnableUserRequest = (input, context) => {
4167
4178
  return {
4168
- ...(input.AuthenticationType !== undefined &&
4169
- input.AuthenticationType !== null && { AuthenticationType: input.AuthenticationType }),
4170
- ...(input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }),
4179
+ ...(input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType }),
4180
+ ...(input.UserName != null && { UserName: input.UserName }),
4171
4181
  };
4172
4182
  };
4173
4183
  const serializeAws_json1_1EntitlementAttribute = (input, context) => {
4174
4184
  return {
4175
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4176
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
4185
+ ...(input.Name != null && { Name: input.Name }),
4186
+ ...(input.Value != null && { Value: input.Value }),
4177
4187
  };
4178
4188
  };
4179
4189
  const serializeAws_json1_1EntitlementAttributeList = (input, context) => {
@@ -4188,7 +4198,7 @@ const serializeAws_json1_1EntitlementAttributeList = (input, context) => {
4188
4198
  };
4189
4199
  const serializeAws_json1_1ExpireSessionRequest = (input, context) => {
4190
4200
  return {
4191
- ...(input.SessionId !== undefined && input.SessionId !== null && { SessionId: input.SessionId }),
4201
+ ...(input.SessionId != null && { SessionId: input.SessionId }),
4192
4202
  };
4193
4203
  };
4194
4204
  const serializeAws_json1_1FleetAttributes = (input, context) => {
@@ -4203,35 +4213,33 @@ const serializeAws_json1_1FleetAttributes = (input, context) => {
4203
4213
  };
4204
4214
  const serializeAws_json1_1ImagePermissions = (input, context) => {
4205
4215
  return {
4206
- ...(input.allowFleet !== undefined && input.allowFleet !== null && { allowFleet: input.allowFleet }),
4207
- ...(input.allowImageBuilder !== undefined &&
4208
- input.allowImageBuilder !== null && { allowImageBuilder: input.allowImageBuilder }),
4216
+ ...(input.allowFleet != null && { allowFleet: input.allowFleet }),
4217
+ ...(input.allowImageBuilder != null && { allowImageBuilder: input.allowImageBuilder }),
4209
4218
  };
4210
4219
  };
4211
4220
  const serializeAws_json1_1ListAssociatedFleetsRequest = (input, context) => {
4212
4221
  return {
4213
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
4214
- ...(input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }),
4222
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
4223
+ ...(input.StackName != null && { StackName: input.StackName }),
4215
4224
  };
4216
4225
  };
4217
4226
  const serializeAws_json1_1ListAssociatedStacksRequest = (input, context) => {
4218
4227
  return {
4219
- ...(input.FleetName !== undefined && input.FleetName !== null && { FleetName: input.FleetName }),
4220
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
4228
+ ...(input.FleetName != null && { FleetName: input.FleetName }),
4229
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
4221
4230
  };
4222
4231
  };
4223
4232
  const serializeAws_json1_1ListEntitledApplicationsRequest = (input, context) => {
4224
4233
  return {
4225
- ...(input.EntitlementName !== undefined &&
4226
- input.EntitlementName !== null && { EntitlementName: input.EntitlementName }),
4227
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
4228
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
4229
- ...(input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }),
4234
+ ...(input.EntitlementName != null && { EntitlementName: input.EntitlementName }),
4235
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
4236
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
4237
+ ...(input.StackName != null && { StackName: input.StackName }),
4230
4238
  };
4231
4239
  };
4232
4240
  const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
4233
4241
  return {
4234
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
4242
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
4235
4243
  };
4236
4244
  };
4237
4245
  const serializeAws_json1_1OrganizationalUnitDistinguishedNamesList = (input, context) => {
@@ -4256,22 +4264,18 @@ const serializeAws_json1_1Platforms = (input, context) => {
4256
4264
  };
4257
4265
  const serializeAws_json1_1S3Location = (input, context) => {
4258
4266
  return {
4259
- ...(input.S3Bucket !== undefined && input.S3Bucket !== null && { S3Bucket: input.S3Bucket }),
4260
- ...(input.S3Key !== undefined && input.S3Key !== null && { S3Key: input.S3Key }),
4267
+ ...(input.S3Bucket != null && { S3Bucket: input.S3Bucket }),
4268
+ ...(input.S3Key != null && { S3Key: input.S3Key }),
4261
4269
  };
4262
4270
  };
4263
4271
  const serializeAws_json1_1ScriptDetails = (input, context) => {
4264
4272
  return {
4265
- ...(input.ExecutableParameters !== undefined &&
4266
- input.ExecutableParameters !== null && { ExecutableParameters: input.ExecutableParameters }),
4267
- ...(input.ExecutablePath !== undefined &&
4268
- input.ExecutablePath !== null && { ExecutablePath: input.ExecutablePath }),
4269
- ...(input.ScriptS3Location !== undefined &&
4270
- input.ScriptS3Location !== null && {
4273
+ ...(input.ExecutableParameters != null && { ExecutableParameters: input.ExecutableParameters }),
4274
+ ...(input.ExecutablePath != null && { ExecutablePath: input.ExecutablePath }),
4275
+ ...(input.ScriptS3Location != null && {
4271
4276
  ScriptS3Location: serializeAws_json1_1S3Location(input.ScriptS3Location, context),
4272
4277
  }),
4273
- ...(input.TimeoutInSeconds !== undefined &&
4274
- input.TimeoutInSeconds !== null && { TimeoutInSeconds: input.TimeoutInSeconds }),
4278
+ ...(input.TimeoutInSeconds != null && { TimeoutInSeconds: input.TimeoutInSeconds }),
4275
4279
  };
4276
4280
  };
4277
4281
  const serializeAws_json1_1SecurityGroupIdList = (input, context) => {
@@ -4286,9 +4290,8 @@ const serializeAws_json1_1SecurityGroupIdList = (input, context) => {
4286
4290
  };
4287
4291
  const serializeAws_json1_1ServiceAccountCredentials = (input, context) => {
4288
4292
  return {
4289
- ...(input.AccountName !== undefined && input.AccountName !== null && { AccountName: input.AccountName }),
4290
- ...(input.AccountPassword !== undefined &&
4291
- input.AccountPassword !== null && { AccountPassword: input.AccountPassword }),
4293
+ ...(input.AccountName != null && { AccountName: input.AccountName }),
4294
+ ...(input.AccountPassword != null && { AccountPassword: input.AccountPassword }),
4292
4295
  };
4293
4296
  };
4294
4297
  const serializeAws_json1_1StackAttributes = (input, context) => {
@@ -4303,33 +4306,30 @@ const serializeAws_json1_1StackAttributes = (input, context) => {
4303
4306
  };
4304
4307
  const serializeAws_json1_1StartFleetRequest = (input, context) => {
4305
4308
  return {
4306
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4309
+ ...(input.Name != null && { Name: input.Name }),
4307
4310
  };
4308
4311
  };
4309
4312
  const serializeAws_json1_1StartImageBuilderRequest = (input, context) => {
4310
4313
  return {
4311
- ...(input.AppstreamAgentVersion !== undefined &&
4312
- input.AppstreamAgentVersion !== null && { AppstreamAgentVersion: input.AppstreamAgentVersion }),
4313
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4314
+ ...(input.AppstreamAgentVersion != null && { AppstreamAgentVersion: input.AppstreamAgentVersion }),
4315
+ ...(input.Name != null && { Name: input.Name }),
4314
4316
  };
4315
4317
  };
4316
4318
  const serializeAws_json1_1StopFleetRequest = (input, context) => {
4317
4319
  return {
4318
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4320
+ ...(input.Name != null && { Name: input.Name }),
4319
4321
  };
4320
4322
  };
4321
4323
  const serializeAws_json1_1StopImageBuilderRequest = (input, context) => {
4322
4324
  return {
4323
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4325
+ ...(input.Name != null && { Name: input.Name }),
4324
4326
  };
4325
4327
  };
4326
4328
  const serializeAws_json1_1StorageConnector = (input, context) => {
4327
4329
  return {
4328
- ...(input.ConnectorType !== undefined && input.ConnectorType !== null && { ConnectorType: input.ConnectorType }),
4329
- ...(input.Domains !== undefined &&
4330
- input.Domains !== null && { Domains: serializeAws_json1_1DomainList(input.Domains, context) }),
4331
- ...(input.ResourceIdentifier !== undefined &&
4332
- input.ResourceIdentifier !== null && { ResourceIdentifier: input.ResourceIdentifier }),
4330
+ ...(input.ConnectorType != null && { ConnectorType: input.ConnectorType }),
4331
+ ...(input.Domains != null && { Domains: serializeAws_json1_1DomainList(input.Domains, context) }),
4332
+ ...(input.ResourceIdentifier != null && { ResourceIdentifier: input.ResourceIdentifier }),
4333
4333
  };
4334
4334
  };
4335
4335
  const serializeAws_json1_1StorageConnectorList = (input, context) => {
@@ -4342,6 +4342,11 @@ const serializeAws_json1_1StorageConnectorList = (input, context) => {
4342
4342
  return serializeAws_json1_1StorageConnector(entry, context);
4343
4343
  });
4344
4344
  };
4345
+ const serializeAws_json1_1StreamingExperienceSettings = (input, context) => {
4346
+ return {
4347
+ ...(input.PreferredProtocol != null && { PreferredProtocol: input.PreferredProtocol }),
4348
+ };
4349
+ };
4345
4350
  const serializeAws_json1_1StringList = (input, context) => {
4346
4351
  return input
4347
4352
  .filter((e) => e != null)
@@ -4374,8 +4379,8 @@ const serializeAws_json1_1TagKeyList = (input, context) => {
4374
4379
  };
4375
4380
  const serializeAws_json1_1TagResourceRequest = (input, context) => {
4376
4381
  return {
4377
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
4378
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
4382
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
4383
+ ...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
4379
4384
  };
4380
4385
  };
4381
4386
  const serializeAws_json1_1Tags = (input, context) => {
@@ -4391,148 +4396,124 @@ const serializeAws_json1_1Tags = (input, context) => {
4391
4396
  };
4392
4397
  const serializeAws_json1_1UntagResourceRequest = (input, context) => {
4393
4398
  return {
4394
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
4395
- ...(input.TagKeys !== undefined &&
4396
- input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
4399
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
4400
+ ...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
4397
4401
  };
4398
4402
  };
4399
4403
  const serializeAws_json1_1UpdateApplicationRequest = (input, context) => {
4400
4404
  return {
4401
- ...(input.AppBlockArn !== undefined && input.AppBlockArn !== null && { AppBlockArn: input.AppBlockArn }),
4402
- ...(input.AttributesToDelete !== undefined &&
4403
- input.AttributesToDelete !== null && {
4405
+ ...(input.AppBlockArn != null && { AppBlockArn: input.AppBlockArn }),
4406
+ ...(input.AttributesToDelete != null && {
4404
4407
  AttributesToDelete: serializeAws_json1_1ApplicationAttributes(input.AttributesToDelete, context),
4405
4408
  }),
4406
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
4407
- ...(input.DisplayName !== undefined && input.DisplayName !== null && { DisplayName: input.DisplayName }),
4408
- ...(input.IconS3Location !== undefined &&
4409
- input.IconS3Location !== null && {
4409
+ ...(input.Description != null && { Description: input.Description }),
4410
+ ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
4411
+ ...(input.IconS3Location != null && {
4410
4412
  IconS3Location: serializeAws_json1_1S3Location(input.IconS3Location, context),
4411
4413
  }),
4412
- ...(input.LaunchParameters !== undefined &&
4413
- input.LaunchParameters !== null && { LaunchParameters: input.LaunchParameters }),
4414
- ...(input.LaunchPath !== undefined && input.LaunchPath !== null && { LaunchPath: input.LaunchPath }),
4415
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4416
- ...(input.WorkingDirectory !== undefined &&
4417
- input.WorkingDirectory !== null && { WorkingDirectory: input.WorkingDirectory }),
4414
+ ...(input.LaunchParameters != null && { LaunchParameters: input.LaunchParameters }),
4415
+ ...(input.LaunchPath != null && { LaunchPath: input.LaunchPath }),
4416
+ ...(input.Name != null && { Name: input.Name }),
4417
+ ...(input.WorkingDirectory != null && { WorkingDirectory: input.WorkingDirectory }),
4418
4418
  };
4419
4419
  };
4420
4420
  const serializeAws_json1_1UpdateDirectoryConfigRequest = (input, context) => {
4421
4421
  return {
4422
- ...(input.DirectoryName !== undefined && input.DirectoryName !== null && { DirectoryName: input.DirectoryName }),
4423
- ...(input.OrganizationalUnitDistinguishedNames !== undefined &&
4424
- input.OrganizationalUnitDistinguishedNames !== null && {
4422
+ ...(input.DirectoryName != null && { DirectoryName: input.DirectoryName }),
4423
+ ...(input.OrganizationalUnitDistinguishedNames != null && {
4425
4424
  OrganizationalUnitDistinguishedNames: serializeAws_json1_1OrganizationalUnitDistinguishedNamesList(input.OrganizationalUnitDistinguishedNames, context),
4426
4425
  }),
4427
- ...(input.ServiceAccountCredentials !== undefined &&
4428
- input.ServiceAccountCredentials !== null && {
4426
+ ...(input.ServiceAccountCredentials != null && {
4429
4427
  ServiceAccountCredentials: serializeAws_json1_1ServiceAccountCredentials(input.ServiceAccountCredentials, context),
4430
4428
  }),
4431
4429
  };
4432
4430
  };
4433
4431
  const serializeAws_json1_1UpdateEntitlementRequest = (input, context) => {
4434
4432
  return {
4435
- ...(input.AppVisibility !== undefined && input.AppVisibility !== null && { AppVisibility: input.AppVisibility }),
4436
- ...(input.Attributes !== undefined &&
4437
- input.Attributes !== null && {
4433
+ ...(input.AppVisibility != null && { AppVisibility: input.AppVisibility }),
4434
+ ...(input.Attributes != null && {
4438
4435
  Attributes: serializeAws_json1_1EntitlementAttributeList(input.Attributes, context),
4439
4436
  }),
4440
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
4441
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4442
- ...(input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }),
4437
+ ...(input.Description != null && { Description: input.Description }),
4438
+ ...(input.Name != null && { Name: input.Name }),
4439
+ ...(input.StackName != null && { StackName: input.StackName }),
4443
4440
  };
4444
4441
  };
4445
4442
  const serializeAws_json1_1UpdateFleetRequest = (input, context) => {
4446
4443
  return {
4447
- ...(input.AttributesToDelete !== undefined &&
4448
- input.AttributesToDelete !== null && {
4444
+ ...(input.AttributesToDelete != null && {
4449
4445
  AttributesToDelete: serializeAws_json1_1FleetAttributes(input.AttributesToDelete, context),
4450
4446
  }),
4451
- ...(input.ComputeCapacity !== undefined &&
4452
- input.ComputeCapacity !== null && {
4447
+ ...(input.ComputeCapacity != null && {
4453
4448
  ComputeCapacity: serializeAws_json1_1ComputeCapacity(input.ComputeCapacity, context),
4454
4449
  }),
4455
- ...(input.DeleteVpcConfig !== undefined &&
4456
- input.DeleteVpcConfig !== null && { DeleteVpcConfig: input.DeleteVpcConfig }),
4457
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
4458
- ...(input.DisconnectTimeoutInSeconds !== undefined &&
4459
- input.DisconnectTimeoutInSeconds !== null && { DisconnectTimeoutInSeconds: input.DisconnectTimeoutInSeconds }),
4460
- ...(input.DisplayName !== undefined && input.DisplayName !== null && { DisplayName: input.DisplayName }),
4461
- ...(input.DomainJoinInfo !== undefined &&
4462
- input.DomainJoinInfo !== null && {
4450
+ ...(input.DeleteVpcConfig != null && { DeleteVpcConfig: input.DeleteVpcConfig }),
4451
+ ...(input.Description != null && { Description: input.Description }),
4452
+ ...(input.DisconnectTimeoutInSeconds != null && { DisconnectTimeoutInSeconds: input.DisconnectTimeoutInSeconds }),
4453
+ ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
4454
+ ...(input.DomainJoinInfo != null && {
4463
4455
  DomainJoinInfo: serializeAws_json1_1DomainJoinInfo(input.DomainJoinInfo, context),
4464
4456
  }),
4465
- ...(input.EnableDefaultInternetAccess !== undefined &&
4466
- input.EnableDefaultInternetAccess !== null && { EnableDefaultInternetAccess: input.EnableDefaultInternetAccess }),
4467
- ...(input.IamRoleArn !== undefined && input.IamRoleArn !== null && { IamRoleArn: input.IamRoleArn }),
4468
- ...(input.IdleDisconnectTimeoutInSeconds !== undefined &&
4469
- input.IdleDisconnectTimeoutInSeconds !== null && {
4457
+ ...(input.EnableDefaultInternetAccess != null && {
4458
+ EnableDefaultInternetAccess: input.EnableDefaultInternetAccess,
4459
+ }),
4460
+ ...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
4461
+ ...(input.IdleDisconnectTimeoutInSeconds != null && {
4470
4462
  IdleDisconnectTimeoutInSeconds: input.IdleDisconnectTimeoutInSeconds,
4471
4463
  }),
4472
- ...(input.ImageArn !== undefined && input.ImageArn !== null && { ImageArn: input.ImageArn }),
4473
- ...(input.ImageName !== undefined && input.ImageName !== null && { ImageName: input.ImageName }),
4474
- ...(input.InstanceType !== undefined && input.InstanceType !== null && { InstanceType: input.InstanceType }),
4475
- ...(input.MaxConcurrentSessions !== undefined &&
4476
- input.MaxConcurrentSessions !== null && { MaxConcurrentSessions: input.MaxConcurrentSessions }),
4477
- ...(input.MaxUserDurationInSeconds !== undefined &&
4478
- input.MaxUserDurationInSeconds !== null && { MaxUserDurationInSeconds: input.MaxUserDurationInSeconds }),
4479
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4480
- ...(input.Platform !== undefined && input.Platform !== null && { Platform: input.Platform }),
4481
- ...(input.SessionScriptS3Location !== undefined &&
4482
- input.SessionScriptS3Location !== null && {
4464
+ ...(input.ImageArn != null && { ImageArn: input.ImageArn }),
4465
+ ...(input.ImageName != null && { ImageName: input.ImageName }),
4466
+ ...(input.InstanceType != null && { InstanceType: input.InstanceType }),
4467
+ ...(input.MaxConcurrentSessions != null && { MaxConcurrentSessions: input.MaxConcurrentSessions }),
4468
+ ...(input.MaxUserDurationInSeconds != null && { MaxUserDurationInSeconds: input.MaxUserDurationInSeconds }),
4469
+ ...(input.Name != null && { Name: input.Name }),
4470
+ ...(input.Platform != null && { Platform: input.Platform }),
4471
+ ...(input.SessionScriptS3Location != null && {
4483
4472
  SessionScriptS3Location: serializeAws_json1_1S3Location(input.SessionScriptS3Location, context),
4484
4473
  }),
4485
- ...(input.StreamView !== undefined && input.StreamView !== null && { StreamView: input.StreamView }),
4486
- ...(input.UsbDeviceFilterStrings !== undefined &&
4487
- input.UsbDeviceFilterStrings !== null && {
4474
+ ...(input.StreamView != null && { StreamView: input.StreamView }),
4475
+ ...(input.UsbDeviceFilterStrings != null && {
4488
4476
  UsbDeviceFilterStrings: serializeAws_json1_1UsbDeviceFilterStrings(input.UsbDeviceFilterStrings, context),
4489
4477
  }),
4490
- ...(input.VpcConfig !== undefined &&
4491
- input.VpcConfig !== null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
4478
+ ...(input.VpcConfig != null && { VpcConfig: serializeAws_json1_1VpcConfig(input.VpcConfig, context) }),
4492
4479
  };
4493
4480
  };
4494
4481
  const serializeAws_json1_1UpdateImagePermissionsRequest = (input, context) => {
4495
4482
  return {
4496
- ...(input.ImagePermissions !== undefined &&
4497
- input.ImagePermissions !== null && {
4483
+ ...(input.ImagePermissions != null && {
4498
4484
  ImagePermissions: serializeAws_json1_1ImagePermissions(input.ImagePermissions, context),
4499
4485
  }),
4500
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4501
- ...(input.SharedAccountId !== undefined &&
4502
- input.SharedAccountId !== null && { SharedAccountId: input.SharedAccountId }),
4486
+ ...(input.Name != null && { Name: input.Name }),
4487
+ ...(input.SharedAccountId != null && { SharedAccountId: input.SharedAccountId }),
4503
4488
  };
4504
4489
  };
4505
4490
  const serializeAws_json1_1UpdateStackRequest = (input, context) => {
4506
4491
  return {
4507
- ...(input.AccessEndpoints !== undefined &&
4508
- input.AccessEndpoints !== null && {
4492
+ ...(input.AccessEndpoints != null && {
4509
4493
  AccessEndpoints: serializeAws_json1_1AccessEndpointList(input.AccessEndpoints, context),
4510
4494
  }),
4511
- ...(input.ApplicationSettings !== undefined &&
4512
- input.ApplicationSettings !== null && {
4495
+ ...(input.ApplicationSettings != null && {
4513
4496
  ApplicationSettings: serializeAws_json1_1ApplicationSettings(input.ApplicationSettings, context),
4514
4497
  }),
4515
- ...(input.AttributesToDelete !== undefined &&
4516
- input.AttributesToDelete !== null && {
4498
+ ...(input.AttributesToDelete != null && {
4517
4499
  AttributesToDelete: serializeAws_json1_1StackAttributes(input.AttributesToDelete, context),
4518
4500
  }),
4519
- ...(input.DeleteStorageConnectors !== undefined &&
4520
- input.DeleteStorageConnectors !== null && { DeleteStorageConnectors: input.DeleteStorageConnectors }),
4521
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
4522
- ...(input.DisplayName !== undefined && input.DisplayName !== null && { DisplayName: input.DisplayName }),
4523
- ...(input.EmbedHostDomains !== undefined &&
4524
- input.EmbedHostDomains !== null && {
4501
+ ...(input.DeleteStorageConnectors != null && { DeleteStorageConnectors: input.DeleteStorageConnectors }),
4502
+ ...(input.Description != null && { Description: input.Description }),
4503
+ ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
4504
+ ...(input.EmbedHostDomains != null && {
4525
4505
  EmbedHostDomains: serializeAws_json1_1EmbedHostDomains(input.EmbedHostDomains, context),
4526
4506
  }),
4527
- ...(input.FeedbackURL !== undefined && input.FeedbackURL !== null && { FeedbackURL: input.FeedbackURL }),
4528
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4529
- ...(input.RedirectURL !== undefined && input.RedirectURL !== null && { RedirectURL: input.RedirectURL }),
4530
- ...(input.StorageConnectors !== undefined &&
4531
- input.StorageConnectors !== null && {
4507
+ ...(input.FeedbackURL != null && { FeedbackURL: input.FeedbackURL }),
4508
+ ...(input.Name != null && { Name: input.Name }),
4509
+ ...(input.RedirectURL != null && { RedirectURL: input.RedirectURL }),
4510
+ ...(input.StorageConnectors != null && {
4532
4511
  StorageConnectors: serializeAws_json1_1StorageConnectorList(input.StorageConnectors, context),
4533
4512
  }),
4534
- ...(input.UserSettings !== undefined &&
4535
- input.UserSettings !== null && {
4513
+ ...(input.StreamingExperienceSettings != null && {
4514
+ StreamingExperienceSettings: serializeAws_json1_1StreamingExperienceSettings(input.StreamingExperienceSettings, context),
4515
+ }),
4516
+ ...(input.UserSettings != null && {
4536
4517
  UserSettings: serializeAws_json1_1UserSettingList(input.UserSettings, context),
4537
4518
  }),
4538
4519
  };
@@ -4549,8 +4530,8 @@ const serializeAws_json1_1UsbDeviceFilterStrings = (input, context) => {
4549
4530
  };
4550
4531
  const serializeAws_json1_1UserSetting = (input, context) => {
4551
4532
  return {
4552
- ...(input.Action !== undefined && input.Action !== null && { Action: input.Action }),
4553
- ...(input.Permission !== undefined && input.Permission !== null && { Permission: input.Permission }),
4533
+ ...(input.Action != null && { Action: input.Action }),
4534
+ ...(input.Permission != null && { Permission: input.Permission }),
4554
4535
  };
4555
4536
  };
4556
4537
  const serializeAws_json1_1UserSettingList = (input, context) => {
@@ -4565,12 +4546,10 @@ const serializeAws_json1_1UserSettingList = (input, context) => {
4565
4546
  };
4566
4547
  const serializeAws_json1_1UserStackAssociation = (input, context) => {
4567
4548
  return {
4568
- ...(input.AuthenticationType !== undefined &&
4569
- input.AuthenticationType !== null && { AuthenticationType: input.AuthenticationType }),
4570
- ...(input.SendEmailNotification !== undefined &&
4571
- input.SendEmailNotification !== null && { SendEmailNotification: input.SendEmailNotification }),
4572
- ...(input.StackName !== undefined && input.StackName !== null && { StackName: input.StackName }),
4573
- ...(input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }),
4549
+ ...(input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType }),
4550
+ ...(input.SendEmailNotification != null && { SendEmailNotification: input.SendEmailNotification }),
4551
+ ...(input.StackName != null && { StackName: input.StackName }),
4552
+ ...(input.UserName != null && { UserName: input.UserName }),
4574
4553
  };
4575
4554
  };
4576
4555
  const serializeAws_json1_1UserStackAssociationList = (input, context) => {
@@ -4585,12 +4564,10 @@ const serializeAws_json1_1UserStackAssociationList = (input, context) => {
4585
4564
  };
4586
4565
  const serializeAws_json1_1VpcConfig = (input, context) => {
4587
4566
  return {
4588
- ...(input.SecurityGroupIds !== undefined &&
4589
- input.SecurityGroupIds !== null && {
4567
+ ...(input.SecurityGroupIds != null && {
4590
4568
  SecurityGroupIds: serializeAws_json1_1SecurityGroupIdList(input.SecurityGroupIds, context),
4591
4569
  }),
4592
- ...(input.SubnetIds !== undefined &&
4593
- input.SubnetIds !== null && { SubnetIds: serializeAws_json1_1SubnetIdList(input.SubnetIds, context) }),
4570
+ ...(input.SubnetIds != null && { SubnetIds: serializeAws_json1_1SubnetIdList(input.SubnetIds, context) }),
4594
4571
  };
4595
4572
  };
4596
4573
  const deserializeAws_json1_1AccessEndpoint = (output, context) => {
@@ -4613,18 +4590,16 @@ const deserializeAws_json1_1AccessEndpointList = (output, context) => {
4613
4590
  const deserializeAws_json1_1AppBlock = (output, context) => {
4614
4591
  return {
4615
4592
  Arn: (0, smithy_client_1.expectString)(output.Arn),
4616
- CreatedTime: output.CreatedTime !== undefined && output.CreatedTime !== null
4593
+ CreatedTime: output.CreatedTime != null
4617
4594
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
4618
4595
  : undefined,
4619
4596
  Description: (0, smithy_client_1.expectString)(output.Description),
4620
4597
  DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
4621
4598
  Name: (0, smithy_client_1.expectString)(output.Name),
4622
- SetupScriptDetails: output.SetupScriptDetails !== undefined && output.SetupScriptDetails !== null
4599
+ SetupScriptDetails: output.SetupScriptDetails != null
4623
4600
  ? deserializeAws_json1_1ScriptDetails(output.SetupScriptDetails, context)
4624
4601
  : undefined,
4625
- SourceS3Location: output.SourceS3Location !== undefined && output.SourceS3Location !== null
4626
- ? deserializeAws_json1_1S3Location(output.SourceS3Location, context)
4627
- : undefined,
4602
+ SourceS3Location: output.SourceS3Location != null ? deserializeAws_json1_1S3Location(output.SourceS3Location, context) : undefined,
4628
4603
  };
4629
4604
  };
4630
4605
  const deserializeAws_json1_1AppBlocks = (output, context) => {
@@ -4642,28 +4617,20 @@ const deserializeAws_json1_1Application = (output, context) => {
4642
4617
  return {
4643
4618
  AppBlockArn: (0, smithy_client_1.expectString)(output.AppBlockArn),
4644
4619
  Arn: (0, smithy_client_1.expectString)(output.Arn),
4645
- CreatedTime: output.CreatedTime !== undefined && output.CreatedTime !== null
4620
+ CreatedTime: output.CreatedTime != null
4646
4621
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
4647
4622
  : undefined,
4648
4623
  Description: (0, smithy_client_1.expectString)(output.Description),
4649
4624
  DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
4650
4625
  Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
4651
- IconS3Location: output.IconS3Location !== undefined && output.IconS3Location !== null
4652
- ? deserializeAws_json1_1S3Location(output.IconS3Location, context)
4653
- : undefined,
4626
+ IconS3Location: output.IconS3Location != null ? deserializeAws_json1_1S3Location(output.IconS3Location, context) : undefined,
4654
4627
  IconURL: (0, smithy_client_1.expectString)(output.IconURL),
4655
- InstanceFamilies: output.InstanceFamilies !== undefined && output.InstanceFamilies !== null
4656
- ? deserializeAws_json1_1StringList(output.InstanceFamilies, context)
4657
- : undefined,
4628
+ InstanceFamilies: output.InstanceFamilies != null ? deserializeAws_json1_1StringList(output.InstanceFamilies, context) : undefined,
4658
4629
  LaunchParameters: (0, smithy_client_1.expectString)(output.LaunchParameters),
4659
4630
  LaunchPath: (0, smithy_client_1.expectString)(output.LaunchPath),
4660
- Metadata: output.Metadata !== undefined && output.Metadata !== null
4661
- ? deserializeAws_json1_1Metadata(output.Metadata, context)
4662
- : undefined,
4631
+ Metadata: output.Metadata != null ? deserializeAws_json1_1Metadata(output.Metadata, context) : undefined,
4663
4632
  Name: (0, smithy_client_1.expectString)(output.Name),
4664
- Platforms: output.Platforms !== undefined && output.Platforms !== null
4665
- ? deserializeAws_json1_1Platforms(output.Platforms, context)
4666
- : undefined,
4633
+ Platforms: output.Platforms != null ? deserializeAws_json1_1Platforms(output.Platforms, context) : undefined,
4667
4634
  WorkingDirectory: (0, smithy_client_1.expectString)(output.WorkingDirectory),
4668
4635
  };
4669
4636
  };
@@ -4704,7 +4671,7 @@ const deserializeAws_json1_1ApplicationSettingsResponse = (output, context) => {
4704
4671
  };
4705
4672
  const deserializeAws_json1_1AssociateApplicationFleetResult = (output, context) => {
4706
4673
  return {
4707
- ApplicationFleetAssociation: output.ApplicationFleetAssociation !== undefined && output.ApplicationFleetAssociation !== null
4674
+ ApplicationFleetAssociation: output.ApplicationFleetAssociation != null
4708
4675
  ? deserializeAws_json1_1ApplicationFleetAssociation(output.ApplicationFleetAssociation, context)
4709
4676
  : undefined,
4710
4677
  };
@@ -4717,16 +4684,12 @@ const deserializeAws_json1_1AssociateFleetResult = (output, context) => {
4717
4684
  };
4718
4685
  const deserializeAws_json1_1BatchAssociateUserStackResult = (output, context) => {
4719
4686
  return {
4720
- errors: output.errors !== undefined && output.errors !== null
4721
- ? deserializeAws_json1_1UserStackAssociationErrorList(output.errors, context)
4722
- : undefined,
4687
+ errors: output.errors != null ? deserializeAws_json1_1UserStackAssociationErrorList(output.errors, context) : undefined,
4723
4688
  };
4724
4689
  };
4725
4690
  const deserializeAws_json1_1BatchDisassociateUserStackResult = (output, context) => {
4726
4691
  return {
4727
- errors: output.errors !== undefined && output.errors !== null
4728
- ? deserializeAws_json1_1UserStackAssociationErrorList(output.errors, context)
4729
- : undefined,
4692
+ errors: output.errors != null ? deserializeAws_json1_1UserStackAssociationErrorList(output.errors, context) : undefined,
4730
4693
  };
4731
4694
  };
4732
4695
  const deserializeAws_json1_1ComputeCapacityStatus = (output, context) => {
@@ -4749,75 +4712,57 @@ const deserializeAws_json1_1CopyImageResponse = (output, context) => {
4749
4712
  };
4750
4713
  const deserializeAws_json1_1CreateAppBlockResult = (output, context) => {
4751
4714
  return {
4752
- AppBlock: output.AppBlock !== undefined && output.AppBlock !== null
4753
- ? deserializeAws_json1_1AppBlock(output.AppBlock, context)
4754
- : undefined,
4715
+ AppBlock: output.AppBlock != null ? deserializeAws_json1_1AppBlock(output.AppBlock, context) : undefined,
4755
4716
  };
4756
4717
  };
4757
4718
  const deserializeAws_json1_1CreateApplicationResult = (output, context) => {
4758
4719
  return {
4759
- Application: output.Application !== undefined && output.Application !== null
4760
- ? deserializeAws_json1_1Application(output.Application, context)
4761
- : undefined,
4720
+ Application: output.Application != null ? deserializeAws_json1_1Application(output.Application, context) : undefined,
4762
4721
  };
4763
4722
  };
4764
4723
  const deserializeAws_json1_1CreateDirectoryConfigResult = (output, context) => {
4765
4724
  return {
4766
- DirectoryConfig: output.DirectoryConfig !== undefined && output.DirectoryConfig !== null
4725
+ DirectoryConfig: output.DirectoryConfig != null
4767
4726
  ? deserializeAws_json1_1DirectoryConfig(output.DirectoryConfig, context)
4768
4727
  : undefined,
4769
4728
  };
4770
4729
  };
4771
4730
  const deserializeAws_json1_1CreateEntitlementResult = (output, context) => {
4772
4731
  return {
4773
- Entitlement: output.Entitlement !== undefined && output.Entitlement !== null
4774
- ? deserializeAws_json1_1Entitlement(output.Entitlement, context)
4775
- : undefined,
4732
+ Entitlement: output.Entitlement != null ? deserializeAws_json1_1Entitlement(output.Entitlement, context) : undefined,
4776
4733
  };
4777
4734
  };
4778
4735
  const deserializeAws_json1_1CreateFleetResult = (output, context) => {
4779
4736
  return {
4780
- Fleet: output.Fleet !== undefined && output.Fleet !== null
4781
- ? deserializeAws_json1_1Fleet(output.Fleet, context)
4782
- : undefined,
4737
+ Fleet: output.Fleet != null ? deserializeAws_json1_1Fleet(output.Fleet, context) : undefined,
4783
4738
  };
4784
4739
  };
4785
4740
  const deserializeAws_json1_1CreateImageBuilderResult = (output, context) => {
4786
4741
  return {
4787
- ImageBuilder: output.ImageBuilder !== undefined && output.ImageBuilder !== null
4788
- ? deserializeAws_json1_1ImageBuilder(output.ImageBuilder, context)
4789
- : undefined,
4742
+ ImageBuilder: output.ImageBuilder != null ? deserializeAws_json1_1ImageBuilder(output.ImageBuilder, context) : undefined,
4790
4743
  };
4791
4744
  };
4792
4745
  const deserializeAws_json1_1CreateImageBuilderStreamingURLResult = (output, context) => {
4793
4746
  return {
4794
- Expires: output.Expires !== undefined && output.Expires !== null
4795
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Expires)))
4796
- : undefined,
4747
+ Expires: output.Expires != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Expires))) : undefined,
4797
4748
  StreamingURL: (0, smithy_client_1.expectString)(output.StreamingURL),
4798
4749
  };
4799
4750
  };
4800
4751
  const deserializeAws_json1_1CreateStackResult = (output, context) => {
4801
4752
  return {
4802
- Stack: output.Stack !== undefined && output.Stack !== null
4803
- ? deserializeAws_json1_1Stack(output.Stack, context)
4804
- : undefined,
4753
+ Stack: output.Stack != null ? deserializeAws_json1_1Stack(output.Stack, context) : undefined,
4805
4754
  };
4806
4755
  };
4807
4756
  const deserializeAws_json1_1CreateStreamingURLResult = (output, context) => {
4808
4757
  return {
4809
- Expires: output.Expires !== undefined && output.Expires !== null
4810
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Expires)))
4811
- : undefined,
4758
+ Expires: output.Expires != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Expires))) : undefined,
4812
4759
  StreamingURL: (0, smithy_client_1.expectString)(output.StreamingURL),
4813
4760
  };
4814
4761
  };
4815
4762
  const deserializeAws_json1_1CreateUpdatedImageResult = (output, context) => {
4816
4763
  return {
4817
4764
  canUpdateImage: (0, smithy_client_1.expectBoolean)(output.canUpdateImage),
4818
- image: output.image !== undefined && output.image !== null
4819
- ? deserializeAws_json1_1Image(output.image, context)
4820
- : undefined,
4765
+ image: output.image != null ? deserializeAws_json1_1Image(output.image, context) : undefined,
4821
4766
  };
4822
4767
  };
4823
4768
  const deserializeAws_json1_1CreateUsageReportSubscriptionResult = (output, context) => {
@@ -4846,9 +4791,7 @@ const deserializeAws_json1_1DeleteFleetResult = (output, context) => {
4846
4791
  };
4847
4792
  const deserializeAws_json1_1DeleteImageBuilderResult = (output, context) => {
4848
4793
  return {
4849
- ImageBuilder: output.ImageBuilder !== undefined && output.ImageBuilder !== null
4850
- ? deserializeAws_json1_1ImageBuilder(output.ImageBuilder, context)
4851
- : undefined,
4794
+ ImageBuilder: output.ImageBuilder != null ? deserializeAws_json1_1ImageBuilder(output.ImageBuilder, context) : undefined,
4852
4795
  };
4853
4796
  };
4854
4797
  const deserializeAws_json1_1DeleteImagePermissionsResult = (output, context) => {
@@ -4856,9 +4799,7 @@ const deserializeAws_json1_1DeleteImagePermissionsResult = (output, context) =>
4856
4799
  };
4857
4800
  const deserializeAws_json1_1DeleteImageResult = (output, context) => {
4858
4801
  return {
4859
- Image: output.Image !== undefined && output.Image !== null
4860
- ? deserializeAws_json1_1Image(output.Image, context)
4861
- : undefined,
4802
+ Image: output.Image != null ? deserializeAws_json1_1Image(output.Image, context) : undefined,
4862
4803
  };
4863
4804
  };
4864
4805
  const deserializeAws_json1_1DeleteStackResult = (output, context) => {
@@ -4872,15 +4813,13 @@ const deserializeAws_json1_1DeleteUserResult = (output, context) => {
4872
4813
  };
4873
4814
  const deserializeAws_json1_1DescribeAppBlocksResult = (output, context) => {
4874
4815
  return {
4875
- AppBlocks: output.AppBlocks !== undefined && output.AppBlocks !== null
4876
- ? deserializeAws_json1_1AppBlocks(output.AppBlocks, context)
4877
- : undefined,
4816
+ AppBlocks: output.AppBlocks != null ? deserializeAws_json1_1AppBlocks(output.AppBlocks, context) : undefined,
4878
4817
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4879
4818
  };
4880
4819
  };
4881
4820
  const deserializeAws_json1_1DescribeApplicationFleetAssociationsResult = (output, context) => {
4882
4821
  return {
4883
- ApplicationFleetAssociations: output.ApplicationFleetAssociations !== undefined && output.ApplicationFleetAssociations !== null
4822
+ ApplicationFleetAssociations: output.ApplicationFleetAssociations != null
4884
4823
  ? deserializeAws_json1_1ApplicationFleetAssociationList(output.ApplicationFleetAssociations, context)
4885
4824
  : undefined,
4886
4825
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
@@ -4888,15 +4827,13 @@ const deserializeAws_json1_1DescribeApplicationFleetAssociationsResult = (output
4888
4827
  };
4889
4828
  const deserializeAws_json1_1DescribeApplicationsResult = (output, context) => {
4890
4829
  return {
4891
- Applications: output.Applications !== undefined && output.Applications !== null
4892
- ? deserializeAws_json1_1Applications(output.Applications, context)
4893
- : undefined,
4830
+ Applications: output.Applications != null ? deserializeAws_json1_1Applications(output.Applications, context) : undefined,
4894
4831
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4895
4832
  };
4896
4833
  };
4897
4834
  const deserializeAws_json1_1DescribeDirectoryConfigsResult = (output, context) => {
4898
4835
  return {
4899
- DirectoryConfigs: output.DirectoryConfigs !== undefined && output.DirectoryConfigs !== null
4836
+ DirectoryConfigs: output.DirectoryConfigs != null
4900
4837
  ? deserializeAws_json1_1DirectoryConfigList(output.DirectoryConfigs, context)
4901
4838
  : undefined,
4902
4839
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
@@ -4904,25 +4841,19 @@ const deserializeAws_json1_1DescribeDirectoryConfigsResult = (output, context) =
4904
4841
  };
4905
4842
  const deserializeAws_json1_1DescribeEntitlementsResult = (output, context) => {
4906
4843
  return {
4907
- Entitlements: output.Entitlements !== undefined && output.Entitlements !== null
4908
- ? deserializeAws_json1_1EntitlementList(output.Entitlements, context)
4909
- : undefined,
4844
+ Entitlements: output.Entitlements != null ? deserializeAws_json1_1EntitlementList(output.Entitlements, context) : undefined,
4910
4845
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4911
4846
  };
4912
4847
  };
4913
4848
  const deserializeAws_json1_1DescribeFleetsResult = (output, context) => {
4914
4849
  return {
4915
- Fleets: output.Fleets !== undefined && output.Fleets !== null
4916
- ? deserializeAws_json1_1FleetList(output.Fleets, context)
4917
- : undefined,
4850
+ Fleets: output.Fleets != null ? deserializeAws_json1_1FleetList(output.Fleets, context) : undefined,
4918
4851
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4919
4852
  };
4920
4853
  };
4921
4854
  const deserializeAws_json1_1DescribeImageBuildersResult = (output, context) => {
4922
4855
  return {
4923
- ImageBuilders: output.ImageBuilders !== undefined && output.ImageBuilders !== null
4924
- ? deserializeAws_json1_1ImageBuilderList(output.ImageBuilders, context)
4925
- : undefined,
4856
+ ImageBuilders: output.ImageBuilders != null ? deserializeAws_json1_1ImageBuilderList(output.ImageBuilders, context) : undefined,
4926
4857
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4927
4858
  };
4928
4859
  };
@@ -4930,39 +4861,33 @@ const deserializeAws_json1_1DescribeImagePermissionsResult = (output, context) =
4930
4861
  return {
4931
4862
  Name: (0, smithy_client_1.expectString)(output.Name),
4932
4863
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4933
- SharedImagePermissionsList: output.SharedImagePermissionsList !== undefined && output.SharedImagePermissionsList !== null
4864
+ SharedImagePermissionsList: output.SharedImagePermissionsList != null
4934
4865
  ? deserializeAws_json1_1SharedImagePermissionsList(output.SharedImagePermissionsList, context)
4935
4866
  : undefined,
4936
4867
  };
4937
4868
  };
4938
4869
  const deserializeAws_json1_1DescribeImagesResult = (output, context) => {
4939
4870
  return {
4940
- Images: output.Images !== undefined && output.Images !== null
4941
- ? deserializeAws_json1_1ImageList(output.Images, context)
4942
- : undefined,
4871
+ Images: output.Images != null ? deserializeAws_json1_1ImageList(output.Images, context) : undefined,
4943
4872
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4944
4873
  };
4945
4874
  };
4946
4875
  const deserializeAws_json1_1DescribeSessionsResult = (output, context) => {
4947
4876
  return {
4948
4877
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4949
- Sessions: output.Sessions !== undefined && output.Sessions !== null
4950
- ? deserializeAws_json1_1SessionList(output.Sessions, context)
4951
- : undefined,
4878
+ Sessions: output.Sessions != null ? deserializeAws_json1_1SessionList(output.Sessions, context) : undefined,
4952
4879
  };
4953
4880
  };
4954
4881
  const deserializeAws_json1_1DescribeStacksResult = (output, context) => {
4955
4882
  return {
4956
4883
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4957
- Stacks: output.Stacks !== undefined && output.Stacks !== null
4958
- ? deserializeAws_json1_1StackList(output.Stacks, context)
4959
- : undefined,
4884
+ Stacks: output.Stacks != null ? deserializeAws_json1_1StackList(output.Stacks, context) : undefined,
4960
4885
  };
4961
4886
  };
4962
4887
  const deserializeAws_json1_1DescribeUsageReportSubscriptionsResult = (output, context) => {
4963
4888
  return {
4964
4889
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4965
- UsageReportSubscriptions: output.UsageReportSubscriptions !== undefined && output.UsageReportSubscriptions !== null
4890
+ UsageReportSubscriptions: output.UsageReportSubscriptions != null
4966
4891
  ? deserializeAws_json1_1UsageReportSubscriptionList(output.UsageReportSubscriptions, context)
4967
4892
  : undefined,
4968
4893
  };
@@ -4970,29 +4895,27 @@ const deserializeAws_json1_1DescribeUsageReportSubscriptionsResult = (output, co
4970
4895
  const deserializeAws_json1_1DescribeUsersResult = (output, context) => {
4971
4896
  return {
4972
4897
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4973
- Users: output.Users !== undefined && output.Users !== null
4974
- ? deserializeAws_json1_1UserList(output.Users, context)
4975
- : undefined,
4898
+ Users: output.Users != null ? deserializeAws_json1_1UserList(output.Users, context) : undefined,
4976
4899
  };
4977
4900
  };
4978
4901
  const deserializeAws_json1_1DescribeUserStackAssociationsResult = (output, context) => {
4979
4902
  return {
4980
4903
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4981
- UserStackAssociations: output.UserStackAssociations !== undefined && output.UserStackAssociations !== null
4904
+ UserStackAssociations: output.UserStackAssociations != null
4982
4905
  ? deserializeAws_json1_1UserStackAssociationList(output.UserStackAssociations, context)
4983
4906
  : undefined,
4984
4907
  };
4985
4908
  };
4986
4909
  const deserializeAws_json1_1DirectoryConfig = (output, context) => {
4987
4910
  return {
4988
- CreatedTime: output.CreatedTime !== undefined && output.CreatedTime !== null
4911
+ CreatedTime: output.CreatedTime != null
4989
4912
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
4990
4913
  : undefined,
4991
4914
  DirectoryName: (0, smithy_client_1.expectString)(output.DirectoryName),
4992
- OrganizationalUnitDistinguishedNames: output.OrganizationalUnitDistinguishedNames !== undefined && output.OrganizationalUnitDistinguishedNames !== null
4915
+ OrganizationalUnitDistinguishedNames: output.OrganizationalUnitDistinguishedNames != null
4993
4916
  ? deserializeAws_json1_1OrganizationalUnitDistinguishedNamesList(output.OrganizationalUnitDistinguishedNames, context)
4994
4917
  : undefined,
4995
- ServiceAccountCredentials: output.ServiceAccountCredentials !== undefined && output.ServiceAccountCredentials !== null
4918
+ ServiceAccountCredentials: output.ServiceAccountCredentials != null
4996
4919
  ? deserializeAws_json1_1ServiceAccountCredentials(output.ServiceAccountCredentials, context)
4997
4920
  : undefined,
4998
4921
  };
@@ -5070,14 +4993,14 @@ const deserializeAws_json1_1EntitledApplicationList = (output, context) => {
5070
4993
  const deserializeAws_json1_1Entitlement = (output, context) => {
5071
4994
  return {
5072
4995
  AppVisibility: (0, smithy_client_1.expectString)(output.AppVisibility),
5073
- Attributes: output.Attributes !== undefined && output.Attributes !== null
4996
+ Attributes: output.Attributes != null
5074
4997
  ? deserializeAws_json1_1EntitlementAttributeList(output.Attributes, context)
5075
4998
  : undefined,
5076
- CreatedTime: output.CreatedTime !== undefined && output.CreatedTime !== null
4999
+ CreatedTime: output.CreatedTime != null
5077
5000
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
5078
5001
  : undefined,
5079
5002
  Description: (0, smithy_client_1.expectString)(output.Description),
5080
- LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
5003
+ LastModifiedTime: output.LastModifiedTime != null
5081
5004
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
5082
5005
  : undefined,
5083
5006
  Name: (0, smithy_client_1.expectString)(output.Name),
@@ -5128,22 +5051,18 @@ const deserializeAws_json1_1ExpireSessionResult = (output, context) => {
5128
5051
  const deserializeAws_json1_1Fleet = (output, context) => {
5129
5052
  return {
5130
5053
  Arn: (0, smithy_client_1.expectString)(output.Arn),
5131
- ComputeCapacityStatus: output.ComputeCapacityStatus !== undefined && output.ComputeCapacityStatus !== null
5054
+ ComputeCapacityStatus: output.ComputeCapacityStatus != null
5132
5055
  ? deserializeAws_json1_1ComputeCapacityStatus(output.ComputeCapacityStatus, context)
5133
5056
  : undefined,
5134
- CreatedTime: output.CreatedTime !== undefined && output.CreatedTime !== null
5057
+ CreatedTime: output.CreatedTime != null
5135
5058
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
5136
5059
  : undefined,
5137
5060
  Description: (0, smithy_client_1.expectString)(output.Description),
5138
5061
  DisconnectTimeoutInSeconds: (0, smithy_client_1.expectInt32)(output.DisconnectTimeoutInSeconds),
5139
5062
  DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
5140
- DomainJoinInfo: output.DomainJoinInfo !== undefined && output.DomainJoinInfo !== null
5141
- ? deserializeAws_json1_1DomainJoinInfo(output.DomainJoinInfo, context)
5142
- : undefined,
5063
+ DomainJoinInfo: output.DomainJoinInfo != null ? deserializeAws_json1_1DomainJoinInfo(output.DomainJoinInfo, context) : undefined,
5143
5064
  EnableDefaultInternetAccess: (0, smithy_client_1.expectBoolean)(output.EnableDefaultInternetAccess),
5144
- FleetErrors: output.FleetErrors !== undefined && output.FleetErrors !== null
5145
- ? deserializeAws_json1_1FleetErrors(output.FleetErrors, context)
5146
- : undefined,
5065
+ FleetErrors: output.FleetErrors != null ? deserializeAws_json1_1FleetErrors(output.FleetErrors, context) : undefined,
5147
5066
  FleetType: (0, smithy_client_1.expectString)(output.FleetType),
5148
5067
  IamRoleArn: (0, smithy_client_1.expectString)(output.IamRoleArn),
5149
5068
  IdleDisconnectTimeoutInSeconds: (0, smithy_client_1.expectInt32)(output.IdleDisconnectTimeoutInSeconds),
@@ -5154,17 +5073,15 @@ const deserializeAws_json1_1Fleet = (output, context) => {
5154
5073
  MaxUserDurationInSeconds: (0, smithy_client_1.expectInt32)(output.MaxUserDurationInSeconds),
5155
5074
  Name: (0, smithy_client_1.expectString)(output.Name),
5156
5075
  Platform: (0, smithy_client_1.expectString)(output.Platform),
5157
- SessionScriptS3Location: output.SessionScriptS3Location !== undefined && output.SessionScriptS3Location !== null
5076
+ SessionScriptS3Location: output.SessionScriptS3Location != null
5158
5077
  ? deserializeAws_json1_1S3Location(output.SessionScriptS3Location, context)
5159
5078
  : undefined,
5160
5079
  State: (0, smithy_client_1.expectString)(output.State),
5161
5080
  StreamView: (0, smithy_client_1.expectString)(output.StreamView),
5162
- UsbDeviceFilterStrings: output.UsbDeviceFilterStrings !== undefined && output.UsbDeviceFilterStrings !== null
5081
+ UsbDeviceFilterStrings: output.UsbDeviceFilterStrings != null
5163
5082
  ? deserializeAws_json1_1UsbDeviceFilterStrings(output.UsbDeviceFilterStrings, context)
5164
5083
  : undefined,
5165
- VpcConfig: output.VpcConfig !== undefined && output.VpcConfig !== null
5166
- ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context)
5167
- : undefined,
5084
+ VpcConfig: output.VpcConfig != null ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context) : undefined,
5168
5085
  };
5169
5086
  };
5170
5087
  const deserializeAws_json1_1FleetError = (output, context) => {
@@ -5197,32 +5114,28 @@ const deserializeAws_json1_1FleetList = (output, context) => {
5197
5114
  };
5198
5115
  const deserializeAws_json1_1Image = (output, context) => {
5199
5116
  return {
5200
- Applications: output.Applications !== undefined && output.Applications !== null
5201
- ? deserializeAws_json1_1Applications(output.Applications, context)
5202
- : undefined,
5117
+ Applications: output.Applications != null ? deserializeAws_json1_1Applications(output.Applications, context) : undefined,
5203
5118
  AppstreamAgentVersion: (0, smithy_client_1.expectString)(output.AppstreamAgentVersion),
5204
5119
  Arn: (0, smithy_client_1.expectString)(output.Arn),
5205
5120
  BaseImageArn: (0, smithy_client_1.expectString)(output.BaseImageArn),
5206
- CreatedTime: output.CreatedTime !== undefined && output.CreatedTime !== null
5121
+ CreatedTime: output.CreatedTime != null
5207
5122
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
5208
5123
  : undefined,
5209
5124
  Description: (0, smithy_client_1.expectString)(output.Description),
5210
5125
  DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
5211
5126
  ImageBuilderName: (0, smithy_client_1.expectString)(output.ImageBuilderName),
5212
5127
  ImageBuilderSupported: (0, smithy_client_1.expectBoolean)(output.ImageBuilderSupported),
5213
- ImageErrors: output.ImageErrors !== undefined && output.ImageErrors !== null
5214
- ? deserializeAws_json1_1ResourceErrors(output.ImageErrors, context)
5215
- : undefined,
5216
- ImagePermissions: output.ImagePermissions !== undefined && output.ImagePermissions !== null
5128
+ ImageErrors: output.ImageErrors != null ? deserializeAws_json1_1ResourceErrors(output.ImageErrors, context) : undefined,
5129
+ ImagePermissions: output.ImagePermissions != null
5217
5130
  ? deserializeAws_json1_1ImagePermissions(output.ImagePermissions, context)
5218
5131
  : undefined,
5219
5132
  Name: (0, smithy_client_1.expectString)(output.Name),
5220
5133
  Platform: (0, smithy_client_1.expectString)(output.Platform),
5221
- PublicBaseImageReleasedDate: output.PublicBaseImageReleasedDate !== undefined && output.PublicBaseImageReleasedDate !== null
5134
+ PublicBaseImageReleasedDate: output.PublicBaseImageReleasedDate != null
5222
5135
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.PublicBaseImageReleasedDate)))
5223
5136
  : undefined,
5224
5137
  State: (0, smithy_client_1.expectString)(output.State),
5225
- StateChangeReason: output.StateChangeReason !== undefined && output.StateChangeReason !== null
5138
+ StateChangeReason: output.StateChangeReason != null
5226
5139
  ? deserializeAws_json1_1ImageStateChangeReason(output.StateChangeReason, context)
5227
5140
  : undefined,
5228
5141
  Visibility: (0, smithy_client_1.expectString)(output.Visibility),
@@ -5230,38 +5143,34 @@ const deserializeAws_json1_1Image = (output, context) => {
5230
5143
  };
5231
5144
  const deserializeAws_json1_1ImageBuilder = (output, context) => {
5232
5145
  return {
5233
- AccessEndpoints: output.AccessEndpoints !== undefined && output.AccessEndpoints !== null
5146
+ AccessEndpoints: output.AccessEndpoints != null
5234
5147
  ? deserializeAws_json1_1AccessEndpointList(output.AccessEndpoints, context)
5235
5148
  : undefined,
5236
5149
  AppstreamAgentVersion: (0, smithy_client_1.expectString)(output.AppstreamAgentVersion),
5237
5150
  Arn: (0, smithy_client_1.expectString)(output.Arn),
5238
- CreatedTime: output.CreatedTime !== undefined && output.CreatedTime !== null
5151
+ CreatedTime: output.CreatedTime != null
5239
5152
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
5240
5153
  : undefined,
5241
5154
  Description: (0, smithy_client_1.expectString)(output.Description),
5242
5155
  DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
5243
- DomainJoinInfo: output.DomainJoinInfo !== undefined && output.DomainJoinInfo !== null
5244
- ? deserializeAws_json1_1DomainJoinInfo(output.DomainJoinInfo, context)
5245
- : undefined,
5156
+ DomainJoinInfo: output.DomainJoinInfo != null ? deserializeAws_json1_1DomainJoinInfo(output.DomainJoinInfo, context) : undefined,
5246
5157
  EnableDefaultInternetAccess: (0, smithy_client_1.expectBoolean)(output.EnableDefaultInternetAccess),
5247
5158
  IamRoleArn: (0, smithy_client_1.expectString)(output.IamRoleArn),
5248
5159
  ImageArn: (0, smithy_client_1.expectString)(output.ImageArn),
5249
- ImageBuilderErrors: output.ImageBuilderErrors !== undefined && output.ImageBuilderErrors !== null
5160
+ ImageBuilderErrors: output.ImageBuilderErrors != null
5250
5161
  ? deserializeAws_json1_1ResourceErrors(output.ImageBuilderErrors, context)
5251
5162
  : undefined,
5252
5163
  InstanceType: (0, smithy_client_1.expectString)(output.InstanceType),
5253
5164
  Name: (0, smithy_client_1.expectString)(output.Name),
5254
- NetworkAccessConfiguration: output.NetworkAccessConfiguration !== undefined && output.NetworkAccessConfiguration !== null
5165
+ NetworkAccessConfiguration: output.NetworkAccessConfiguration != null
5255
5166
  ? deserializeAws_json1_1NetworkAccessConfiguration(output.NetworkAccessConfiguration, context)
5256
5167
  : undefined,
5257
5168
  Platform: (0, smithy_client_1.expectString)(output.Platform),
5258
5169
  State: (0, smithy_client_1.expectString)(output.State),
5259
- StateChangeReason: output.StateChangeReason !== undefined && output.StateChangeReason !== null
5170
+ StateChangeReason: output.StateChangeReason != null
5260
5171
  ? deserializeAws_json1_1ImageBuilderStateChangeReason(output.StateChangeReason, context)
5261
5172
  : undefined,
5262
- VpcConfig: output.VpcConfig !== undefined && output.VpcConfig !== null
5263
- ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context)
5264
- : undefined,
5173
+ VpcConfig: output.VpcConfig != null ? deserializeAws_json1_1VpcConfig(output.VpcConfig, context) : undefined,
5265
5174
  };
5266
5175
  };
5267
5176
  const deserializeAws_json1_1ImageBuilderList = (output, context) => {
@@ -5348,23 +5257,19 @@ const deserializeAws_json1_1LimitExceededException = (output, context) => {
5348
5257
  };
5349
5258
  const deserializeAws_json1_1ListAssociatedFleetsResult = (output, context) => {
5350
5259
  return {
5351
- Names: output.Names !== undefined && output.Names !== null
5352
- ? deserializeAws_json1_1StringList(output.Names, context)
5353
- : undefined,
5260
+ Names: output.Names != null ? deserializeAws_json1_1StringList(output.Names, context) : undefined,
5354
5261
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
5355
5262
  };
5356
5263
  };
5357
5264
  const deserializeAws_json1_1ListAssociatedStacksResult = (output, context) => {
5358
5265
  return {
5359
- Names: output.Names !== undefined && output.Names !== null
5360
- ? deserializeAws_json1_1StringList(output.Names, context)
5361
- : undefined,
5266
+ Names: output.Names != null ? deserializeAws_json1_1StringList(output.Names, context) : undefined,
5362
5267
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
5363
5268
  };
5364
5269
  };
5365
5270
  const deserializeAws_json1_1ListEntitledApplicationsResult = (output, context) => {
5366
5271
  return {
5367
- EntitledApplications: output.EntitledApplications !== undefined && output.EntitledApplications !== null
5272
+ EntitledApplications: output.EntitledApplications != null
5368
5273
  ? deserializeAws_json1_1EntitledApplicationList(output.EntitledApplications, context)
5369
5274
  : undefined,
5370
5275
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
@@ -5372,7 +5277,7 @@ const deserializeAws_json1_1ListEntitledApplicationsResult = (output, context) =
5372
5277
  };
5373
5278
  const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
5374
5279
  return {
5375
- Tags: output.Tags !== undefined && output.Tags !== null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
5280
+ Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
5376
5281
  };
5377
5282
  };
5378
5283
  const deserializeAws_json1_1Metadata = (output, context) => {
@@ -5433,7 +5338,7 @@ const deserializeAws_json1_1ResourceError = (output, context) => {
5433
5338
  return {
5434
5339
  ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
5435
5340
  ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
5436
- ErrorTimestamp: output.ErrorTimestamp !== undefined && output.ErrorTimestamp !== null
5341
+ ErrorTimestamp: output.ErrorTimestamp != null
5437
5342
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ErrorTimestamp)))
5438
5343
  : undefined,
5439
5344
  };
@@ -5474,9 +5379,7 @@ const deserializeAws_json1_1ScriptDetails = (output, context) => {
5474
5379
  return {
5475
5380
  ExecutableParameters: (0, smithy_client_1.expectString)(output.ExecutableParameters),
5476
5381
  ExecutablePath: (0, smithy_client_1.expectString)(output.ExecutablePath),
5477
- ScriptS3Location: output.ScriptS3Location !== undefined && output.ScriptS3Location !== null
5478
- ? deserializeAws_json1_1S3Location(output.ScriptS3Location, context)
5479
- : undefined,
5382
+ ScriptS3Location: output.ScriptS3Location != null ? deserializeAws_json1_1S3Location(output.ScriptS3Location, context) : undefined,
5480
5383
  TimeoutInSeconds: (0, smithy_client_1.expectInt32)(output.TimeoutInSeconds),
5481
5384
  };
5482
5385
  };
@@ -5503,16 +5406,14 @@ const deserializeAws_json1_1Session = (output, context) => {
5503
5406
  ConnectionState: (0, smithy_client_1.expectString)(output.ConnectionState),
5504
5407
  FleetName: (0, smithy_client_1.expectString)(output.FleetName),
5505
5408
  Id: (0, smithy_client_1.expectString)(output.Id),
5506
- MaxExpirationTime: output.MaxExpirationTime !== undefined && output.MaxExpirationTime !== null
5409
+ MaxExpirationTime: output.MaxExpirationTime != null
5507
5410
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.MaxExpirationTime)))
5508
5411
  : undefined,
5509
- NetworkAccessConfiguration: output.NetworkAccessConfiguration !== undefined && output.NetworkAccessConfiguration !== null
5412
+ NetworkAccessConfiguration: output.NetworkAccessConfiguration != null
5510
5413
  ? deserializeAws_json1_1NetworkAccessConfiguration(output.NetworkAccessConfiguration, context)
5511
5414
  : undefined,
5512
5415
  StackName: (0, smithy_client_1.expectString)(output.StackName),
5513
- StartTime: output.StartTime !== undefined && output.StartTime !== null
5514
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
5515
- : undefined,
5416
+ StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
5516
5417
  State: (0, smithy_client_1.expectString)(output.State),
5517
5418
  UserId: (0, smithy_client_1.expectString)(output.UserId),
5518
5419
  };
@@ -5530,7 +5431,7 @@ const deserializeAws_json1_1SessionList = (output, context) => {
5530
5431
  };
5531
5432
  const deserializeAws_json1_1SharedImagePermissions = (output, context) => {
5532
5433
  return {
5533
- imagePermissions: output.imagePermissions !== undefined && output.imagePermissions !== null
5434
+ imagePermissions: output.imagePermissions != null
5534
5435
  ? deserializeAws_json1_1ImagePermissions(output.imagePermissions, context)
5535
5436
  : undefined,
5536
5437
  sharedAccountId: (0, smithy_client_1.expectString)(output.sharedAccountId),
@@ -5549,33 +5450,32 @@ const deserializeAws_json1_1SharedImagePermissionsList = (output, context) => {
5549
5450
  };
5550
5451
  const deserializeAws_json1_1Stack = (output, context) => {
5551
5452
  return {
5552
- AccessEndpoints: output.AccessEndpoints !== undefined && output.AccessEndpoints !== null
5453
+ AccessEndpoints: output.AccessEndpoints != null
5553
5454
  ? deserializeAws_json1_1AccessEndpointList(output.AccessEndpoints, context)
5554
5455
  : undefined,
5555
- ApplicationSettings: output.ApplicationSettings !== undefined && output.ApplicationSettings !== null
5456
+ ApplicationSettings: output.ApplicationSettings != null
5556
5457
  ? deserializeAws_json1_1ApplicationSettingsResponse(output.ApplicationSettings, context)
5557
5458
  : undefined,
5558
5459
  Arn: (0, smithy_client_1.expectString)(output.Arn),
5559
- CreatedTime: output.CreatedTime !== undefined && output.CreatedTime !== null
5460
+ CreatedTime: output.CreatedTime != null
5560
5461
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
5561
5462
  : undefined,
5562
5463
  Description: (0, smithy_client_1.expectString)(output.Description),
5563
5464
  DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
5564
- EmbedHostDomains: output.EmbedHostDomains !== undefined && output.EmbedHostDomains !== null
5465
+ EmbedHostDomains: output.EmbedHostDomains != null
5565
5466
  ? deserializeAws_json1_1EmbedHostDomains(output.EmbedHostDomains, context)
5566
5467
  : undefined,
5567
5468
  FeedbackURL: (0, smithy_client_1.expectString)(output.FeedbackURL),
5568
5469
  Name: (0, smithy_client_1.expectString)(output.Name),
5569
5470
  RedirectURL: (0, smithy_client_1.expectString)(output.RedirectURL),
5570
- StackErrors: output.StackErrors !== undefined && output.StackErrors !== null
5571
- ? deserializeAws_json1_1StackErrors(output.StackErrors, context)
5572
- : undefined,
5573
- StorageConnectors: output.StorageConnectors !== undefined && output.StorageConnectors !== null
5471
+ StackErrors: output.StackErrors != null ? deserializeAws_json1_1StackErrors(output.StackErrors, context) : undefined,
5472
+ StorageConnectors: output.StorageConnectors != null
5574
5473
  ? deserializeAws_json1_1StorageConnectorList(output.StorageConnectors, context)
5575
5474
  : undefined,
5576
- UserSettings: output.UserSettings !== undefined && output.UserSettings !== null
5577
- ? deserializeAws_json1_1UserSettingList(output.UserSettings, context)
5475
+ StreamingExperienceSettings: output.StreamingExperienceSettings != null
5476
+ ? deserializeAws_json1_1StreamingExperienceSettings(output.StreamingExperienceSettings, context)
5578
5477
  : undefined,
5478
+ UserSettings: output.UserSettings != null ? deserializeAws_json1_1UserSettingList(output.UserSettings, context) : undefined,
5579
5479
  };
5580
5480
  };
5581
5481
  const deserializeAws_json1_1StackError = (output, context) => {
@@ -5611,9 +5511,7 @@ const deserializeAws_json1_1StartFleetResult = (output, context) => {
5611
5511
  };
5612
5512
  const deserializeAws_json1_1StartImageBuilderResult = (output, context) => {
5613
5513
  return {
5614
- ImageBuilder: output.ImageBuilder !== undefined && output.ImageBuilder !== null
5615
- ? deserializeAws_json1_1ImageBuilder(output.ImageBuilder, context)
5616
- : undefined,
5514
+ ImageBuilder: output.ImageBuilder != null ? deserializeAws_json1_1ImageBuilder(output.ImageBuilder, context) : undefined,
5617
5515
  };
5618
5516
  };
5619
5517
  const deserializeAws_json1_1StopFleetResult = (output, context) => {
@@ -5621,17 +5519,13 @@ const deserializeAws_json1_1StopFleetResult = (output, context) => {
5621
5519
  };
5622
5520
  const deserializeAws_json1_1StopImageBuilderResult = (output, context) => {
5623
5521
  return {
5624
- ImageBuilder: output.ImageBuilder !== undefined && output.ImageBuilder !== null
5625
- ? deserializeAws_json1_1ImageBuilder(output.ImageBuilder, context)
5626
- : undefined,
5522
+ ImageBuilder: output.ImageBuilder != null ? deserializeAws_json1_1ImageBuilder(output.ImageBuilder, context) : undefined,
5627
5523
  };
5628
5524
  };
5629
5525
  const deserializeAws_json1_1StorageConnector = (output, context) => {
5630
5526
  return {
5631
5527
  ConnectorType: (0, smithy_client_1.expectString)(output.ConnectorType),
5632
- Domains: output.Domains !== undefined && output.Domains !== null
5633
- ? deserializeAws_json1_1DomainList(output.Domains, context)
5634
- : undefined,
5528
+ Domains: output.Domains != null ? deserializeAws_json1_1DomainList(output.Domains, context) : undefined,
5635
5529
  ResourceIdentifier: (0, smithy_client_1.expectString)(output.ResourceIdentifier),
5636
5530
  };
5637
5531
  };
@@ -5646,6 +5540,11 @@ const deserializeAws_json1_1StorageConnectorList = (output, context) => {
5646
5540
  });
5647
5541
  return retVal;
5648
5542
  };
5543
+ const deserializeAws_json1_1StreamingExperienceSettings = (output, context) => {
5544
+ return {
5545
+ PreferredProtocol: (0, smithy_client_1.expectString)(output.PreferredProtocol),
5546
+ };
5547
+ };
5649
5548
  const deserializeAws_json1_1StringList = (output, context) => {
5650
5549
  const retVal = (output || [])
5651
5550
  .filter((e) => e != null)
@@ -5687,30 +5586,24 @@ const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
5687
5586
  };
5688
5587
  const deserializeAws_json1_1UpdateApplicationResult = (output, context) => {
5689
5588
  return {
5690
- Application: output.Application !== undefined && output.Application !== null
5691
- ? deserializeAws_json1_1Application(output.Application, context)
5692
- : undefined,
5589
+ Application: output.Application != null ? deserializeAws_json1_1Application(output.Application, context) : undefined,
5693
5590
  };
5694
5591
  };
5695
5592
  const deserializeAws_json1_1UpdateDirectoryConfigResult = (output, context) => {
5696
5593
  return {
5697
- DirectoryConfig: output.DirectoryConfig !== undefined && output.DirectoryConfig !== null
5594
+ DirectoryConfig: output.DirectoryConfig != null
5698
5595
  ? deserializeAws_json1_1DirectoryConfig(output.DirectoryConfig, context)
5699
5596
  : undefined,
5700
5597
  };
5701
5598
  };
5702
5599
  const deserializeAws_json1_1UpdateEntitlementResult = (output, context) => {
5703
5600
  return {
5704
- Entitlement: output.Entitlement !== undefined && output.Entitlement !== null
5705
- ? deserializeAws_json1_1Entitlement(output.Entitlement, context)
5706
- : undefined,
5601
+ Entitlement: output.Entitlement != null ? deserializeAws_json1_1Entitlement(output.Entitlement, context) : undefined,
5707
5602
  };
5708
5603
  };
5709
5604
  const deserializeAws_json1_1UpdateFleetResult = (output, context) => {
5710
5605
  return {
5711
- Fleet: output.Fleet !== undefined && output.Fleet !== null
5712
- ? deserializeAws_json1_1Fleet(output.Fleet, context)
5713
- : undefined,
5606
+ Fleet: output.Fleet != null ? deserializeAws_json1_1Fleet(output.Fleet, context) : undefined,
5714
5607
  };
5715
5608
  };
5716
5609
  const deserializeAws_json1_1UpdateImagePermissionsResult = (output, context) => {
@@ -5718,19 +5611,17 @@ const deserializeAws_json1_1UpdateImagePermissionsResult = (output, context) =>
5718
5611
  };
5719
5612
  const deserializeAws_json1_1UpdateStackResult = (output, context) => {
5720
5613
  return {
5721
- Stack: output.Stack !== undefined && output.Stack !== null
5722
- ? deserializeAws_json1_1Stack(output.Stack, context)
5723
- : undefined,
5614
+ Stack: output.Stack != null ? deserializeAws_json1_1Stack(output.Stack, context) : undefined,
5724
5615
  };
5725
5616
  };
5726
5617
  const deserializeAws_json1_1UsageReportSubscription = (output, context) => {
5727
5618
  return {
5728
- LastGeneratedReportDate: output.LastGeneratedReportDate !== undefined && output.LastGeneratedReportDate !== null
5619
+ LastGeneratedReportDate: output.LastGeneratedReportDate != null
5729
5620
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastGeneratedReportDate)))
5730
5621
  : undefined,
5731
5622
  S3BucketName: (0, smithy_client_1.expectString)(output.S3BucketName),
5732
5623
  Schedule: (0, smithy_client_1.expectString)(output.Schedule),
5733
- SubscriptionErrors: output.SubscriptionErrors !== undefined && output.SubscriptionErrors !== null
5624
+ SubscriptionErrors: output.SubscriptionErrors != null
5734
5625
  ? deserializeAws_json1_1LastReportGenerationExecutionErrors(output.SubscriptionErrors, context)
5735
5626
  : undefined,
5736
5627
  };
@@ -5761,7 +5652,7 @@ const deserializeAws_json1_1User = (output, context) => {
5761
5652
  return {
5762
5653
  Arn: (0, smithy_client_1.expectString)(output.Arn),
5763
5654
  AuthenticationType: (0, smithy_client_1.expectString)(output.AuthenticationType),
5764
- CreatedTime: output.CreatedTime !== undefined && output.CreatedTime !== null
5655
+ CreatedTime: output.CreatedTime != null
5765
5656
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
5766
5657
  : undefined,
5767
5658
  Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
@@ -5811,7 +5702,7 @@ const deserializeAws_json1_1UserStackAssociationError = (output, context) => {
5811
5702
  return {
5812
5703
  ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
5813
5704
  ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
5814
- UserStackAssociation: output.UserStackAssociation !== undefined && output.UserStackAssociation !== null
5705
+ UserStackAssociation: output.UserStackAssociation != null
5815
5706
  ? deserializeAws_json1_1UserStackAssociation(output.UserStackAssociation, context)
5816
5707
  : undefined,
5817
5708
  };
@@ -5840,12 +5731,10 @@ const deserializeAws_json1_1UserStackAssociationList = (output, context) => {
5840
5731
  };
5841
5732
  const deserializeAws_json1_1VpcConfig = (output, context) => {
5842
5733
  return {
5843
- SecurityGroupIds: output.SecurityGroupIds !== undefined && output.SecurityGroupIds !== null
5734
+ SecurityGroupIds: output.SecurityGroupIds != null
5844
5735
  ? deserializeAws_json1_1SecurityGroupIdList(output.SecurityGroupIds, context)
5845
5736
  : undefined,
5846
- SubnetIds: output.SubnetIds !== undefined && output.SubnetIds !== null
5847
- ? deserializeAws_json1_1SubnetIdList(output.SubnetIds, context)
5848
- : undefined,
5737
+ SubnetIds: output.SubnetIds != null ? deserializeAws_json1_1SubnetIdList(output.SubnetIds, context) : undefined,
5849
5738
  };
5850
5739
  };
5851
5740
  const deserializeMetadata = (output) => {
@@ -5910,5 +5799,4 @@ const loadRestJsonErrorCode = (output, data) => {
5910
5799
  if (data["__type"] !== undefined) {
5911
5800
  return sanitizeErrorCode(data["__type"]);
5912
5801
  }
5913
- return "";
5914
5802
  };