@aws-sdk/client-proton 3.118.1 → 3.128.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -778,8 +778,7 @@ const deserializeAws_json1_0AcceptEnvironmentAccountConnectionCommandError = asy
778
778
  body: await parseBody(output.body, context),
779
779
  };
780
780
  let response;
781
- let errorCode = "UnknownError";
782
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
781
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
783
782
  switch (errorCode) {
784
783
  case "AccessDeniedException":
785
784
  case "com.amazonaws.proton#AccessDeniedException":
@@ -801,10 +800,12 @@ const deserializeAws_json1_0AcceptEnvironmentAccountConnectionCommandError = asy
801
800
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
802
801
  default:
803
802
  const parsedBody = parsedOutput.body;
803
+ const $metadata = deserializeMetadata(output);
804
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
804
805
  response = new ProtonServiceException_1.ProtonServiceException({
805
- name: parsedBody.code || parsedBody.Code || errorCode,
806
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
806
807
  $fault: "client",
807
- $metadata: deserializeMetadata(output),
808
+ $metadata,
808
809
  });
809
810
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
810
811
  }
@@ -829,8 +830,7 @@ const deserializeAws_json1_0CancelComponentDeploymentCommandError = async (outpu
829
830
  body: await parseBody(output.body, context),
830
831
  };
831
832
  let response;
832
- let errorCode = "UnknownError";
833
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
833
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
834
834
  switch (errorCode) {
835
835
  case "AccessDeniedException":
836
836
  case "com.amazonaws.proton#AccessDeniedException":
@@ -852,10 +852,12 @@ const deserializeAws_json1_0CancelComponentDeploymentCommandError = async (outpu
852
852
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
853
853
  default:
854
854
  const parsedBody = parsedOutput.body;
855
+ const $metadata = deserializeMetadata(output);
856
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
855
857
  response = new ProtonServiceException_1.ProtonServiceException({
856
- name: parsedBody.code || parsedBody.Code || errorCode,
858
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
857
859
  $fault: "client",
858
- $metadata: deserializeMetadata(output),
860
+ $metadata,
859
861
  });
860
862
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
861
863
  }
@@ -880,8 +882,7 @@ const deserializeAws_json1_0CancelEnvironmentDeploymentCommandError = async (out
880
882
  body: await parseBody(output.body, context),
881
883
  };
882
884
  let response;
883
- let errorCode = "UnknownError";
884
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
885
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
885
886
  switch (errorCode) {
886
887
  case "AccessDeniedException":
887
888
  case "com.amazonaws.proton#AccessDeniedException":
@@ -903,10 +904,12 @@ const deserializeAws_json1_0CancelEnvironmentDeploymentCommandError = async (out
903
904
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
904
905
  default:
905
906
  const parsedBody = parsedOutput.body;
907
+ const $metadata = deserializeMetadata(output);
908
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
906
909
  response = new ProtonServiceException_1.ProtonServiceException({
907
- name: parsedBody.code || parsedBody.Code || errorCode,
910
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
908
911
  $fault: "client",
909
- $metadata: deserializeMetadata(output),
912
+ $metadata,
910
913
  });
911
914
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
912
915
  }
@@ -931,8 +934,7 @@ const deserializeAws_json1_0CancelServiceInstanceDeploymentCommandError = async
931
934
  body: await parseBody(output.body, context),
932
935
  };
933
936
  let response;
934
- let errorCode = "UnknownError";
935
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
937
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
936
938
  switch (errorCode) {
937
939
  case "AccessDeniedException":
938
940
  case "com.amazonaws.proton#AccessDeniedException":
@@ -954,10 +956,12 @@ const deserializeAws_json1_0CancelServiceInstanceDeploymentCommandError = async
954
956
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
955
957
  default:
956
958
  const parsedBody = parsedOutput.body;
959
+ const $metadata = deserializeMetadata(output);
960
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
957
961
  response = new ProtonServiceException_1.ProtonServiceException({
958
- name: parsedBody.code || parsedBody.Code || errorCode,
962
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
959
963
  $fault: "client",
960
- $metadata: deserializeMetadata(output),
964
+ $metadata,
961
965
  });
962
966
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
963
967
  }
@@ -982,8 +986,7 @@ const deserializeAws_json1_0CancelServicePipelineDeploymentCommandError = async
982
986
  body: await parseBody(output.body, context),
983
987
  };
984
988
  let response;
985
- let errorCode = "UnknownError";
986
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
989
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
987
990
  switch (errorCode) {
988
991
  case "AccessDeniedException":
989
992
  case "com.amazonaws.proton#AccessDeniedException":
@@ -1005,10 +1008,12 @@ const deserializeAws_json1_0CancelServicePipelineDeploymentCommandError = async
1005
1008
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1006
1009
  default:
1007
1010
  const parsedBody = parsedOutput.body;
1011
+ const $metadata = deserializeMetadata(output);
1012
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1008
1013
  response = new ProtonServiceException_1.ProtonServiceException({
1009
- name: parsedBody.code || parsedBody.Code || errorCode,
1014
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1010
1015
  $fault: "client",
1011
- $metadata: deserializeMetadata(output),
1016
+ $metadata,
1012
1017
  });
1013
1018
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1014
1019
  }
@@ -1033,8 +1038,7 @@ const deserializeAws_json1_0CreateComponentCommandError = async (output, context
1033
1038
  body: await parseBody(output.body, context),
1034
1039
  };
1035
1040
  let response;
1036
- let errorCode = "UnknownError";
1037
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1041
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1038
1042
  switch (errorCode) {
1039
1043
  case "AccessDeniedException":
1040
1044
  case "com.amazonaws.proton#AccessDeniedException":
@@ -1059,10 +1063,12 @@ const deserializeAws_json1_0CreateComponentCommandError = async (output, context
1059
1063
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1060
1064
  default:
1061
1065
  const parsedBody = parsedOutput.body;
1066
+ const $metadata = deserializeMetadata(output);
1067
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1062
1068
  response = new ProtonServiceException_1.ProtonServiceException({
1063
- name: parsedBody.code || parsedBody.Code || errorCode,
1069
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1064
1070
  $fault: "client",
1065
- $metadata: deserializeMetadata(output),
1071
+ $metadata,
1066
1072
  });
1067
1073
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1068
1074
  }
@@ -1087,8 +1093,7 @@ const deserializeAws_json1_0CreateEnvironmentCommandError = async (output, conte
1087
1093
  body: await parseBody(output.body, context),
1088
1094
  };
1089
1095
  let response;
1090
- let errorCode = "UnknownError";
1091
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1096
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1092
1097
  switch (errorCode) {
1093
1098
  case "AccessDeniedException":
1094
1099
  case "com.amazonaws.proton#AccessDeniedException":
@@ -1113,10 +1118,12 @@ const deserializeAws_json1_0CreateEnvironmentCommandError = async (output, conte
1113
1118
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1114
1119
  default:
1115
1120
  const parsedBody = parsedOutput.body;
1121
+ const $metadata = deserializeMetadata(output);
1122
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1116
1123
  response = new ProtonServiceException_1.ProtonServiceException({
1117
- name: parsedBody.code || parsedBody.Code || errorCode,
1124
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1118
1125
  $fault: "client",
1119
- $metadata: deserializeMetadata(output),
1126
+ $metadata,
1120
1127
  });
1121
1128
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1122
1129
  }
@@ -1141,8 +1148,7 @@ const deserializeAws_json1_0CreateEnvironmentAccountConnectionCommandError = asy
1141
1148
  body: await parseBody(output.body, context),
1142
1149
  };
1143
1150
  let response;
1144
- let errorCode = "UnknownError";
1145
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1151
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1146
1152
  switch (errorCode) {
1147
1153
  case "AccessDeniedException":
1148
1154
  case "com.amazonaws.proton#AccessDeniedException":
@@ -1164,10 +1170,12 @@ const deserializeAws_json1_0CreateEnvironmentAccountConnectionCommandError = asy
1164
1170
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1165
1171
  default:
1166
1172
  const parsedBody = parsedOutput.body;
1173
+ const $metadata = deserializeMetadata(output);
1174
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1167
1175
  response = new ProtonServiceException_1.ProtonServiceException({
1168
- name: parsedBody.code || parsedBody.Code || errorCode,
1176
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1169
1177
  $fault: "client",
1170
- $metadata: deserializeMetadata(output),
1178
+ $metadata,
1171
1179
  });
1172
1180
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1173
1181
  }
@@ -1192,8 +1200,7 @@ const deserializeAws_json1_0CreateEnvironmentTemplateCommandError = async (outpu
1192
1200
  body: await parseBody(output.body, context),
1193
1201
  };
1194
1202
  let response;
1195
- let errorCode = "UnknownError";
1196
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1203
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1197
1204
  switch (errorCode) {
1198
1205
  case "AccessDeniedException":
1199
1206
  case "com.amazonaws.proton#AccessDeniedException":
@@ -1215,10 +1222,12 @@ const deserializeAws_json1_0CreateEnvironmentTemplateCommandError = async (outpu
1215
1222
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1216
1223
  default:
1217
1224
  const parsedBody = parsedOutput.body;
1225
+ const $metadata = deserializeMetadata(output);
1226
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1218
1227
  response = new ProtonServiceException_1.ProtonServiceException({
1219
- name: parsedBody.code || parsedBody.Code || errorCode,
1228
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1220
1229
  $fault: "client",
1221
- $metadata: deserializeMetadata(output),
1230
+ $metadata,
1222
1231
  });
1223
1232
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1224
1233
  }
@@ -1243,8 +1252,7 @@ const deserializeAws_json1_0CreateEnvironmentTemplateVersionCommandError = async
1243
1252
  body: await parseBody(output.body, context),
1244
1253
  };
1245
1254
  let response;
1246
- let errorCode = "UnknownError";
1247
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1255
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1248
1256
  switch (errorCode) {
1249
1257
  case "AccessDeniedException":
1250
1258
  case "com.amazonaws.proton#AccessDeniedException":
@@ -1269,10 +1277,12 @@ const deserializeAws_json1_0CreateEnvironmentTemplateVersionCommandError = async
1269
1277
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1270
1278
  default:
1271
1279
  const parsedBody = parsedOutput.body;
1280
+ const $metadata = deserializeMetadata(output);
1281
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1272
1282
  response = new ProtonServiceException_1.ProtonServiceException({
1273
- name: parsedBody.code || parsedBody.Code || errorCode,
1283
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1274
1284
  $fault: "client",
1275
- $metadata: deserializeMetadata(output),
1285
+ $metadata,
1276
1286
  });
1277
1287
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1278
1288
  }
@@ -1297,8 +1307,7 @@ const deserializeAws_json1_0CreateRepositoryCommandError = async (output, contex
1297
1307
  body: await parseBody(output.body, context),
1298
1308
  };
1299
1309
  let response;
1300
- let errorCode = "UnknownError";
1301
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1310
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1302
1311
  switch (errorCode) {
1303
1312
  case "AccessDeniedException":
1304
1313
  case "com.amazonaws.proton#AccessDeniedException":
@@ -1320,10 +1329,12 @@ const deserializeAws_json1_0CreateRepositoryCommandError = async (output, contex
1320
1329
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1321
1330
  default:
1322
1331
  const parsedBody = parsedOutput.body;
1332
+ const $metadata = deserializeMetadata(output);
1333
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1323
1334
  response = new ProtonServiceException_1.ProtonServiceException({
1324
- name: parsedBody.code || parsedBody.Code || errorCode,
1335
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1325
1336
  $fault: "client",
1326
- $metadata: deserializeMetadata(output),
1337
+ $metadata,
1327
1338
  });
1328
1339
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1329
1340
  }
@@ -1348,8 +1359,7 @@ const deserializeAws_json1_0CreateServiceCommandError = async (output, context)
1348
1359
  body: await parseBody(output.body, context),
1349
1360
  };
1350
1361
  let response;
1351
- let errorCode = "UnknownError";
1352
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1362
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1353
1363
  switch (errorCode) {
1354
1364
  case "AccessDeniedException":
1355
1365
  case "com.amazonaws.proton#AccessDeniedException":
@@ -1374,10 +1384,12 @@ const deserializeAws_json1_0CreateServiceCommandError = async (output, context)
1374
1384
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1375
1385
  default:
1376
1386
  const parsedBody = parsedOutput.body;
1387
+ const $metadata = deserializeMetadata(output);
1388
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1377
1389
  response = new ProtonServiceException_1.ProtonServiceException({
1378
- name: parsedBody.code || parsedBody.Code || errorCode,
1390
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1379
1391
  $fault: "client",
1380
- $metadata: deserializeMetadata(output),
1392
+ $metadata,
1381
1393
  });
1382
1394
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1383
1395
  }
@@ -1402,8 +1414,7 @@ const deserializeAws_json1_0CreateServiceTemplateCommandError = async (output, c
1402
1414
  body: await parseBody(output.body, context),
1403
1415
  };
1404
1416
  let response;
1405
- let errorCode = "UnknownError";
1406
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1417
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1407
1418
  switch (errorCode) {
1408
1419
  case "AccessDeniedException":
1409
1420
  case "com.amazonaws.proton#AccessDeniedException":
@@ -1425,10 +1436,12 @@ const deserializeAws_json1_0CreateServiceTemplateCommandError = async (output, c
1425
1436
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1426
1437
  default:
1427
1438
  const parsedBody = parsedOutput.body;
1439
+ const $metadata = deserializeMetadata(output);
1440
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1428
1441
  response = new ProtonServiceException_1.ProtonServiceException({
1429
- name: parsedBody.code || parsedBody.Code || errorCode,
1442
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1430
1443
  $fault: "client",
1431
- $metadata: deserializeMetadata(output),
1444
+ $metadata,
1432
1445
  });
1433
1446
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1434
1447
  }
@@ -1453,8 +1466,7 @@ const deserializeAws_json1_0CreateServiceTemplateVersionCommandError = async (ou
1453
1466
  body: await parseBody(output.body, context),
1454
1467
  };
1455
1468
  let response;
1456
- let errorCode = "UnknownError";
1457
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1469
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1458
1470
  switch (errorCode) {
1459
1471
  case "AccessDeniedException":
1460
1472
  case "com.amazonaws.proton#AccessDeniedException":
@@ -1479,10 +1491,12 @@ const deserializeAws_json1_0CreateServiceTemplateVersionCommandError = async (ou
1479
1491
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1480
1492
  default:
1481
1493
  const parsedBody = parsedOutput.body;
1494
+ const $metadata = deserializeMetadata(output);
1495
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1482
1496
  response = new ProtonServiceException_1.ProtonServiceException({
1483
- name: parsedBody.code || parsedBody.Code || errorCode,
1497
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1484
1498
  $fault: "client",
1485
- $metadata: deserializeMetadata(output),
1499
+ $metadata,
1486
1500
  });
1487
1501
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1488
1502
  }
@@ -1507,8 +1521,7 @@ const deserializeAws_json1_0CreateTemplateSyncConfigCommandError = async (output
1507
1521
  body: await parseBody(output.body, context),
1508
1522
  };
1509
1523
  let response;
1510
- let errorCode = "UnknownError";
1511
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1524
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1512
1525
  switch (errorCode) {
1513
1526
  case "AccessDeniedException":
1514
1527
  case "com.amazonaws.proton#AccessDeniedException":
@@ -1530,10 +1543,12 @@ const deserializeAws_json1_0CreateTemplateSyncConfigCommandError = async (output
1530
1543
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1531
1544
  default:
1532
1545
  const parsedBody = parsedOutput.body;
1546
+ const $metadata = deserializeMetadata(output);
1547
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1533
1548
  response = new ProtonServiceException_1.ProtonServiceException({
1534
- name: parsedBody.code || parsedBody.Code || errorCode,
1549
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1535
1550
  $fault: "client",
1536
- $metadata: deserializeMetadata(output),
1551
+ $metadata,
1537
1552
  });
1538
1553
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1539
1554
  }
@@ -1558,8 +1573,7 @@ const deserializeAws_json1_0DeleteComponentCommandError = async (output, context
1558
1573
  body: await parseBody(output.body, context),
1559
1574
  };
1560
1575
  let response;
1561
- let errorCode = "UnknownError";
1562
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1576
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1563
1577
  switch (errorCode) {
1564
1578
  case "AccessDeniedException":
1565
1579
  case "com.amazonaws.proton#AccessDeniedException":
@@ -1581,10 +1595,12 @@ const deserializeAws_json1_0DeleteComponentCommandError = async (output, context
1581
1595
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1582
1596
  default:
1583
1597
  const parsedBody = parsedOutput.body;
1598
+ const $metadata = deserializeMetadata(output);
1599
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1584
1600
  response = new ProtonServiceException_1.ProtonServiceException({
1585
- name: parsedBody.code || parsedBody.Code || errorCode,
1601
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1586
1602
  $fault: "client",
1587
- $metadata: deserializeMetadata(output),
1603
+ $metadata,
1588
1604
  });
1589
1605
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1590
1606
  }
@@ -1609,8 +1625,7 @@ const deserializeAws_json1_0DeleteEnvironmentCommandError = async (output, conte
1609
1625
  body: await parseBody(output.body, context),
1610
1626
  };
1611
1627
  let response;
1612
- let errorCode = "UnknownError";
1613
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1628
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1614
1629
  switch (errorCode) {
1615
1630
  case "AccessDeniedException":
1616
1631
  case "com.amazonaws.proton#AccessDeniedException":
@@ -1632,10 +1647,12 @@ const deserializeAws_json1_0DeleteEnvironmentCommandError = async (output, conte
1632
1647
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1633
1648
  default:
1634
1649
  const parsedBody = parsedOutput.body;
1650
+ const $metadata = deserializeMetadata(output);
1651
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1635
1652
  response = new ProtonServiceException_1.ProtonServiceException({
1636
- name: parsedBody.code || parsedBody.Code || errorCode,
1653
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1637
1654
  $fault: "client",
1638
- $metadata: deserializeMetadata(output),
1655
+ $metadata,
1639
1656
  });
1640
1657
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1641
1658
  }
@@ -1660,8 +1677,7 @@ const deserializeAws_json1_0DeleteEnvironmentAccountConnectionCommandError = asy
1660
1677
  body: await parseBody(output.body, context),
1661
1678
  };
1662
1679
  let response;
1663
- let errorCode = "UnknownError";
1664
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1680
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1665
1681
  switch (errorCode) {
1666
1682
  case "AccessDeniedException":
1667
1683
  case "com.amazonaws.proton#AccessDeniedException":
@@ -1683,10 +1699,12 @@ const deserializeAws_json1_0DeleteEnvironmentAccountConnectionCommandError = asy
1683
1699
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1684
1700
  default:
1685
1701
  const parsedBody = parsedOutput.body;
1702
+ const $metadata = deserializeMetadata(output);
1703
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1686
1704
  response = new ProtonServiceException_1.ProtonServiceException({
1687
- name: parsedBody.code || parsedBody.Code || errorCode,
1705
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1688
1706
  $fault: "client",
1689
- $metadata: deserializeMetadata(output),
1707
+ $metadata,
1690
1708
  });
1691
1709
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1692
1710
  }
@@ -1711,8 +1729,7 @@ const deserializeAws_json1_0DeleteEnvironmentTemplateCommandError = async (outpu
1711
1729
  body: await parseBody(output.body, context),
1712
1730
  };
1713
1731
  let response;
1714
- let errorCode = "UnknownError";
1715
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1732
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1716
1733
  switch (errorCode) {
1717
1734
  case "AccessDeniedException":
1718
1735
  case "com.amazonaws.proton#AccessDeniedException":
@@ -1734,10 +1751,12 @@ const deserializeAws_json1_0DeleteEnvironmentTemplateCommandError = async (outpu
1734
1751
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1735
1752
  default:
1736
1753
  const parsedBody = parsedOutput.body;
1754
+ const $metadata = deserializeMetadata(output);
1755
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1737
1756
  response = new ProtonServiceException_1.ProtonServiceException({
1738
- name: parsedBody.code || parsedBody.Code || errorCode,
1757
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1739
1758
  $fault: "client",
1740
- $metadata: deserializeMetadata(output),
1759
+ $metadata,
1741
1760
  });
1742
1761
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1743
1762
  }
@@ -1762,8 +1781,7 @@ const deserializeAws_json1_0DeleteEnvironmentTemplateVersionCommandError = async
1762
1781
  body: await parseBody(output.body, context),
1763
1782
  };
1764
1783
  let response;
1765
- let errorCode = "UnknownError";
1766
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1784
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1767
1785
  switch (errorCode) {
1768
1786
  case "AccessDeniedException":
1769
1787
  case "com.amazonaws.proton#AccessDeniedException":
@@ -1785,10 +1803,12 @@ const deserializeAws_json1_0DeleteEnvironmentTemplateVersionCommandError = async
1785
1803
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1786
1804
  default:
1787
1805
  const parsedBody = parsedOutput.body;
1806
+ const $metadata = deserializeMetadata(output);
1807
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1788
1808
  response = new ProtonServiceException_1.ProtonServiceException({
1789
- name: parsedBody.code || parsedBody.Code || errorCode,
1809
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1790
1810
  $fault: "client",
1791
- $metadata: deserializeMetadata(output),
1811
+ $metadata,
1792
1812
  });
1793
1813
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1794
1814
  }
@@ -1813,8 +1833,7 @@ const deserializeAws_json1_0DeleteRepositoryCommandError = async (output, contex
1813
1833
  body: await parseBody(output.body, context),
1814
1834
  };
1815
1835
  let response;
1816
- let errorCode = "UnknownError";
1817
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1836
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1818
1837
  switch (errorCode) {
1819
1838
  case "AccessDeniedException":
1820
1839
  case "com.amazonaws.proton#AccessDeniedException":
@@ -1836,10 +1855,12 @@ const deserializeAws_json1_0DeleteRepositoryCommandError = async (output, contex
1836
1855
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1837
1856
  default:
1838
1857
  const parsedBody = parsedOutput.body;
1858
+ const $metadata = deserializeMetadata(output);
1859
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1839
1860
  response = new ProtonServiceException_1.ProtonServiceException({
1840
- name: parsedBody.code || parsedBody.Code || errorCode,
1861
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1841
1862
  $fault: "client",
1842
- $metadata: deserializeMetadata(output),
1863
+ $metadata,
1843
1864
  });
1844
1865
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1845
1866
  }
@@ -1864,8 +1885,7 @@ const deserializeAws_json1_0DeleteServiceCommandError = async (output, context)
1864
1885
  body: await parseBody(output.body, context),
1865
1886
  };
1866
1887
  let response;
1867
- let errorCode = "UnknownError";
1868
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1888
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1869
1889
  switch (errorCode) {
1870
1890
  case "AccessDeniedException":
1871
1891
  case "com.amazonaws.proton#AccessDeniedException":
@@ -1887,10 +1907,12 @@ const deserializeAws_json1_0DeleteServiceCommandError = async (output, context)
1887
1907
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1888
1908
  default:
1889
1909
  const parsedBody = parsedOutput.body;
1910
+ const $metadata = deserializeMetadata(output);
1911
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1890
1912
  response = new ProtonServiceException_1.ProtonServiceException({
1891
- name: parsedBody.code || parsedBody.Code || errorCode,
1913
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1892
1914
  $fault: "client",
1893
- $metadata: deserializeMetadata(output),
1915
+ $metadata,
1894
1916
  });
1895
1917
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1896
1918
  }
@@ -1915,8 +1937,7 @@ const deserializeAws_json1_0DeleteServiceTemplateCommandError = async (output, c
1915
1937
  body: await parseBody(output.body, context),
1916
1938
  };
1917
1939
  let response;
1918
- let errorCode = "UnknownError";
1919
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1940
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1920
1941
  switch (errorCode) {
1921
1942
  case "AccessDeniedException":
1922
1943
  case "com.amazonaws.proton#AccessDeniedException":
@@ -1938,10 +1959,12 @@ const deserializeAws_json1_0DeleteServiceTemplateCommandError = async (output, c
1938
1959
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1939
1960
  default:
1940
1961
  const parsedBody = parsedOutput.body;
1962
+ const $metadata = deserializeMetadata(output);
1963
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1941
1964
  response = new ProtonServiceException_1.ProtonServiceException({
1942
- name: parsedBody.code || parsedBody.Code || errorCode,
1965
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1943
1966
  $fault: "client",
1944
- $metadata: deserializeMetadata(output),
1967
+ $metadata,
1945
1968
  });
1946
1969
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1947
1970
  }
@@ -1966,8 +1989,7 @@ const deserializeAws_json1_0DeleteServiceTemplateVersionCommandError = async (ou
1966
1989
  body: await parseBody(output.body, context),
1967
1990
  };
1968
1991
  let response;
1969
- let errorCode = "UnknownError";
1970
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1992
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1971
1993
  switch (errorCode) {
1972
1994
  case "AccessDeniedException":
1973
1995
  case "com.amazonaws.proton#AccessDeniedException":
@@ -1989,10 +2011,12 @@ const deserializeAws_json1_0DeleteServiceTemplateVersionCommandError = async (ou
1989
2011
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1990
2012
  default:
1991
2013
  const parsedBody = parsedOutput.body;
2014
+ const $metadata = deserializeMetadata(output);
2015
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1992
2016
  response = new ProtonServiceException_1.ProtonServiceException({
1993
- name: parsedBody.code || parsedBody.Code || errorCode,
2017
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1994
2018
  $fault: "client",
1995
- $metadata: deserializeMetadata(output),
2019
+ $metadata,
1996
2020
  });
1997
2021
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1998
2022
  }
@@ -2017,8 +2041,7 @@ const deserializeAws_json1_0DeleteTemplateSyncConfigCommandError = async (output
2017
2041
  body: await parseBody(output.body, context),
2018
2042
  };
2019
2043
  let response;
2020
- let errorCode = "UnknownError";
2021
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2044
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2022
2045
  switch (errorCode) {
2023
2046
  case "AccessDeniedException":
2024
2047
  case "com.amazonaws.proton#AccessDeniedException":
@@ -2040,10 +2063,12 @@ const deserializeAws_json1_0DeleteTemplateSyncConfigCommandError = async (output
2040
2063
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2041
2064
  default:
2042
2065
  const parsedBody = parsedOutput.body;
2066
+ const $metadata = deserializeMetadata(output);
2067
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2043
2068
  response = new ProtonServiceException_1.ProtonServiceException({
2044
- name: parsedBody.code || parsedBody.Code || errorCode,
2069
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2045
2070
  $fault: "client",
2046
- $metadata: deserializeMetadata(output),
2071
+ $metadata,
2047
2072
  });
2048
2073
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2049
2074
  }
@@ -2068,8 +2093,7 @@ const deserializeAws_json1_0GetAccountSettingsCommandError = async (output, cont
2068
2093
  body: await parseBody(output.body, context),
2069
2094
  };
2070
2095
  let response;
2071
- let errorCode = "UnknownError";
2072
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2096
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2073
2097
  switch (errorCode) {
2074
2098
  case "AccessDeniedException":
2075
2099
  case "com.amazonaws.proton#AccessDeniedException":
@@ -2088,10 +2112,12 @@ const deserializeAws_json1_0GetAccountSettingsCommandError = async (output, cont
2088
2112
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2089
2113
  default:
2090
2114
  const parsedBody = parsedOutput.body;
2115
+ const $metadata = deserializeMetadata(output);
2116
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2091
2117
  response = new ProtonServiceException_1.ProtonServiceException({
2092
- name: parsedBody.code || parsedBody.Code || errorCode,
2118
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2093
2119
  $fault: "client",
2094
- $metadata: deserializeMetadata(output),
2120
+ $metadata,
2095
2121
  });
2096
2122
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2097
2123
  }
@@ -2116,8 +2142,7 @@ const deserializeAws_json1_0GetComponentCommandError = async (output, context) =
2116
2142
  body: await parseBody(output.body, context),
2117
2143
  };
2118
2144
  let response;
2119
- let errorCode = "UnknownError";
2120
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2145
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2121
2146
  switch (errorCode) {
2122
2147
  case "AccessDeniedException":
2123
2148
  case "com.amazonaws.proton#AccessDeniedException":
@@ -2136,10 +2161,12 @@ const deserializeAws_json1_0GetComponentCommandError = async (output, context) =
2136
2161
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2137
2162
  default:
2138
2163
  const parsedBody = parsedOutput.body;
2164
+ const $metadata = deserializeMetadata(output);
2165
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2139
2166
  response = new ProtonServiceException_1.ProtonServiceException({
2140
- name: parsedBody.code || parsedBody.Code || errorCode,
2167
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2141
2168
  $fault: "client",
2142
- $metadata: deserializeMetadata(output),
2169
+ $metadata,
2143
2170
  });
2144
2171
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2145
2172
  }
@@ -2164,8 +2191,7 @@ const deserializeAws_json1_0GetEnvironmentCommandError = async (output, context)
2164
2191
  body: await parseBody(output.body, context),
2165
2192
  };
2166
2193
  let response;
2167
- let errorCode = "UnknownError";
2168
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2194
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2169
2195
  switch (errorCode) {
2170
2196
  case "AccessDeniedException":
2171
2197
  case "com.amazonaws.proton#AccessDeniedException":
@@ -2184,10 +2210,12 @@ const deserializeAws_json1_0GetEnvironmentCommandError = async (output, context)
2184
2210
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2185
2211
  default:
2186
2212
  const parsedBody = parsedOutput.body;
2213
+ const $metadata = deserializeMetadata(output);
2214
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2187
2215
  response = new ProtonServiceException_1.ProtonServiceException({
2188
- name: parsedBody.code || parsedBody.Code || errorCode,
2216
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2189
2217
  $fault: "client",
2190
- $metadata: deserializeMetadata(output),
2218
+ $metadata,
2191
2219
  });
2192
2220
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2193
2221
  }
@@ -2212,8 +2240,7 @@ const deserializeAws_json1_0GetEnvironmentAccountConnectionCommandError = async
2212
2240
  body: await parseBody(output.body, context),
2213
2241
  };
2214
2242
  let response;
2215
- let errorCode = "UnknownError";
2216
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2243
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2217
2244
  switch (errorCode) {
2218
2245
  case "AccessDeniedException":
2219
2246
  case "com.amazonaws.proton#AccessDeniedException":
@@ -2232,10 +2259,12 @@ const deserializeAws_json1_0GetEnvironmentAccountConnectionCommandError = async
2232
2259
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2233
2260
  default:
2234
2261
  const parsedBody = parsedOutput.body;
2262
+ const $metadata = deserializeMetadata(output);
2263
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2235
2264
  response = new ProtonServiceException_1.ProtonServiceException({
2236
- name: parsedBody.code || parsedBody.Code || errorCode,
2265
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2237
2266
  $fault: "client",
2238
- $metadata: deserializeMetadata(output),
2267
+ $metadata,
2239
2268
  });
2240
2269
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2241
2270
  }
@@ -2260,8 +2289,7 @@ const deserializeAws_json1_0GetEnvironmentTemplateCommandError = async (output,
2260
2289
  body: await parseBody(output.body, context),
2261
2290
  };
2262
2291
  let response;
2263
- let errorCode = "UnknownError";
2264
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2292
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2265
2293
  switch (errorCode) {
2266
2294
  case "AccessDeniedException":
2267
2295
  case "com.amazonaws.proton#AccessDeniedException":
@@ -2280,10 +2308,12 @@ const deserializeAws_json1_0GetEnvironmentTemplateCommandError = async (output,
2280
2308
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2281
2309
  default:
2282
2310
  const parsedBody = parsedOutput.body;
2311
+ const $metadata = deserializeMetadata(output);
2312
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2283
2313
  response = new ProtonServiceException_1.ProtonServiceException({
2284
- name: parsedBody.code || parsedBody.Code || errorCode,
2314
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2285
2315
  $fault: "client",
2286
- $metadata: deserializeMetadata(output),
2316
+ $metadata,
2287
2317
  });
2288
2318
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2289
2319
  }
@@ -2308,8 +2338,7 @@ const deserializeAws_json1_0GetEnvironmentTemplateVersionCommandError = async (o
2308
2338
  body: await parseBody(output.body, context),
2309
2339
  };
2310
2340
  let response;
2311
- let errorCode = "UnknownError";
2312
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2341
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2313
2342
  switch (errorCode) {
2314
2343
  case "AccessDeniedException":
2315
2344
  case "com.amazonaws.proton#AccessDeniedException":
@@ -2328,10 +2357,12 @@ const deserializeAws_json1_0GetEnvironmentTemplateVersionCommandError = async (o
2328
2357
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2329
2358
  default:
2330
2359
  const parsedBody = parsedOutput.body;
2360
+ const $metadata = deserializeMetadata(output);
2361
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2331
2362
  response = new ProtonServiceException_1.ProtonServiceException({
2332
- name: parsedBody.code || parsedBody.Code || errorCode,
2363
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2333
2364
  $fault: "client",
2334
- $metadata: deserializeMetadata(output),
2365
+ $metadata,
2335
2366
  });
2336
2367
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2337
2368
  }
@@ -2356,8 +2387,7 @@ const deserializeAws_json1_0GetRepositoryCommandError = async (output, context)
2356
2387
  body: await parseBody(output.body, context),
2357
2388
  };
2358
2389
  let response;
2359
- let errorCode = "UnknownError";
2360
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2390
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2361
2391
  switch (errorCode) {
2362
2392
  case "AccessDeniedException":
2363
2393
  case "com.amazonaws.proton#AccessDeniedException":
@@ -2376,10 +2406,12 @@ const deserializeAws_json1_0GetRepositoryCommandError = async (output, context)
2376
2406
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2377
2407
  default:
2378
2408
  const parsedBody = parsedOutput.body;
2409
+ const $metadata = deserializeMetadata(output);
2410
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2379
2411
  response = new ProtonServiceException_1.ProtonServiceException({
2380
- name: parsedBody.code || parsedBody.Code || errorCode,
2412
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2381
2413
  $fault: "client",
2382
- $metadata: deserializeMetadata(output),
2414
+ $metadata,
2383
2415
  });
2384
2416
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2385
2417
  }
@@ -2404,8 +2436,7 @@ const deserializeAws_json1_0GetRepositorySyncStatusCommandError = async (output,
2404
2436
  body: await parseBody(output.body, context),
2405
2437
  };
2406
2438
  let response;
2407
- let errorCode = "UnknownError";
2408
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2439
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2409
2440
  switch (errorCode) {
2410
2441
  case "AccessDeniedException":
2411
2442
  case "com.amazonaws.proton#AccessDeniedException":
@@ -2424,10 +2455,12 @@ const deserializeAws_json1_0GetRepositorySyncStatusCommandError = async (output,
2424
2455
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2425
2456
  default:
2426
2457
  const parsedBody = parsedOutput.body;
2458
+ const $metadata = deserializeMetadata(output);
2459
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2427
2460
  response = new ProtonServiceException_1.ProtonServiceException({
2428
- name: parsedBody.code || parsedBody.Code || errorCode,
2461
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2429
2462
  $fault: "client",
2430
- $metadata: deserializeMetadata(output),
2463
+ $metadata,
2431
2464
  });
2432
2465
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2433
2466
  }
@@ -2452,8 +2485,7 @@ const deserializeAws_json1_0GetServiceCommandError = async (output, context) =>
2452
2485
  body: await parseBody(output.body, context),
2453
2486
  };
2454
2487
  let response;
2455
- let errorCode = "UnknownError";
2456
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2488
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2457
2489
  switch (errorCode) {
2458
2490
  case "AccessDeniedException":
2459
2491
  case "com.amazonaws.proton#AccessDeniedException":
@@ -2472,10 +2504,12 @@ const deserializeAws_json1_0GetServiceCommandError = async (output, context) =>
2472
2504
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2473
2505
  default:
2474
2506
  const parsedBody = parsedOutput.body;
2507
+ const $metadata = deserializeMetadata(output);
2508
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2475
2509
  response = new ProtonServiceException_1.ProtonServiceException({
2476
- name: parsedBody.code || parsedBody.Code || errorCode,
2510
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2477
2511
  $fault: "client",
2478
- $metadata: deserializeMetadata(output),
2512
+ $metadata,
2479
2513
  });
2480
2514
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2481
2515
  }
@@ -2500,8 +2534,7 @@ const deserializeAws_json1_0GetServiceInstanceCommandError = async (output, cont
2500
2534
  body: await parseBody(output.body, context),
2501
2535
  };
2502
2536
  let response;
2503
- let errorCode = "UnknownError";
2504
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2537
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2505
2538
  switch (errorCode) {
2506
2539
  case "AccessDeniedException":
2507
2540
  case "com.amazonaws.proton#AccessDeniedException":
@@ -2520,10 +2553,12 @@ const deserializeAws_json1_0GetServiceInstanceCommandError = async (output, cont
2520
2553
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2521
2554
  default:
2522
2555
  const parsedBody = parsedOutput.body;
2556
+ const $metadata = deserializeMetadata(output);
2557
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2523
2558
  response = new ProtonServiceException_1.ProtonServiceException({
2524
- name: parsedBody.code || parsedBody.Code || errorCode,
2559
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2525
2560
  $fault: "client",
2526
- $metadata: deserializeMetadata(output),
2561
+ $metadata,
2527
2562
  });
2528
2563
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2529
2564
  }
@@ -2548,8 +2583,7 @@ const deserializeAws_json1_0GetServiceTemplateCommandError = async (output, cont
2548
2583
  body: await parseBody(output.body, context),
2549
2584
  };
2550
2585
  let response;
2551
- let errorCode = "UnknownError";
2552
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2586
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2553
2587
  switch (errorCode) {
2554
2588
  case "AccessDeniedException":
2555
2589
  case "com.amazonaws.proton#AccessDeniedException":
@@ -2568,10 +2602,12 @@ const deserializeAws_json1_0GetServiceTemplateCommandError = async (output, cont
2568
2602
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2569
2603
  default:
2570
2604
  const parsedBody = parsedOutput.body;
2605
+ const $metadata = deserializeMetadata(output);
2606
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2571
2607
  response = new ProtonServiceException_1.ProtonServiceException({
2572
- name: parsedBody.code || parsedBody.Code || errorCode,
2608
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2573
2609
  $fault: "client",
2574
- $metadata: deserializeMetadata(output),
2610
+ $metadata,
2575
2611
  });
2576
2612
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2577
2613
  }
@@ -2596,8 +2632,7 @@ const deserializeAws_json1_0GetServiceTemplateVersionCommandError = async (outpu
2596
2632
  body: await parseBody(output.body, context),
2597
2633
  };
2598
2634
  let response;
2599
- let errorCode = "UnknownError";
2600
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2635
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2601
2636
  switch (errorCode) {
2602
2637
  case "AccessDeniedException":
2603
2638
  case "com.amazonaws.proton#AccessDeniedException":
@@ -2616,10 +2651,12 @@ const deserializeAws_json1_0GetServiceTemplateVersionCommandError = async (outpu
2616
2651
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2617
2652
  default:
2618
2653
  const parsedBody = parsedOutput.body;
2654
+ const $metadata = deserializeMetadata(output);
2655
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2619
2656
  response = new ProtonServiceException_1.ProtonServiceException({
2620
- name: parsedBody.code || parsedBody.Code || errorCode,
2657
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2621
2658
  $fault: "client",
2622
- $metadata: deserializeMetadata(output),
2659
+ $metadata,
2623
2660
  });
2624
2661
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2625
2662
  }
@@ -2644,8 +2681,7 @@ const deserializeAws_json1_0GetTemplateSyncConfigCommandError = async (output, c
2644
2681
  body: await parseBody(output.body, context),
2645
2682
  };
2646
2683
  let response;
2647
- let errorCode = "UnknownError";
2648
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2684
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2649
2685
  switch (errorCode) {
2650
2686
  case "AccessDeniedException":
2651
2687
  case "com.amazonaws.proton#AccessDeniedException":
@@ -2664,10 +2700,12 @@ const deserializeAws_json1_0GetTemplateSyncConfigCommandError = async (output, c
2664
2700
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2665
2701
  default:
2666
2702
  const parsedBody = parsedOutput.body;
2703
+ const $metadata = deserializeMetadata(output);
2704
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2667
2705
  response = new ProtonServiceException_1.ProtonServiceException({
2668
- name: parsedBody.code || parsedBody.Code || errorCode,
2706
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2669
2707
  $fault: "client",
2670
- $metadata: deserializeMetadata(output),
2708
+ $metadata,
2671
2709
  });
2672
2710
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2673
2711
  }
@@ -2692,8 +2730,7 @@ const deserializeAws_json1_0GetTemplateSyncStatusCommandError = async (output, c
2692
2730
  body: await parseBody(output.body, context),
2693
2731
  };
2694
2732
  let response;
2695
- let errorCode = "UnknownError";
2696
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2733
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2697
2734
  switch (errorCode) {
2698
2735
  case "AccessDeniedException":
2699
2736
  case "com.amazonaws.proton#AccessDeniedException":
@@ -2712,10 +2749,12 @@ const deserializeAws_json1_0GetTemplateSyncStatusCommandError = async (output, c
2712
2749
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2713
2750
  default:
2714
2751
  const parsedBody = parsedOutput.body;
2752
+ const $metadata = deserializeMetadata(output);
2753
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2715
2754
  response = new ProtonServiceException_1.ProtonServiceException({
2716
- name: parsedBody.code || parsedBody.Code || errorCode,
2755
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2717
2756
  $fault: "client",
2718
- $metadata: deserializeMetadata(output),
2757
+ $metadata,
2719
2758
  });
2720
2759
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2721
2760
  }
@@ -2740,8 +2779,7 @@ const deserializeAws_json1_0ListComponentOutputsCommandError = async (output, co
2740
2779
  body: await parseBody(output.body, context),
2741
2780
  };
2742
2781
  let response;
2743
- let errorCode = "UnknownError";
2744
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2782
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2745
2783
  switch (errorCode) {
2746
2784
  case "AccessDeniedException":
2747
2785
  case "com.amazonaws.proton#AccessDeniedException":
@@ -2760,10 +2798,12 @@ const deserializeAws_json1_0ListComponentOutputsCommandError = async (output, co
2760
2798
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2761
2799
  default:
2762
2800
  const parsedBody = parsedOutput.body;
2801
+ const $metadata = deserializeMetadata(output);
2802
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2763
2803
  response = new ProtonServiceException_1.ProtonServiceException({
2764
- name: parsedBody.code || parsedBody.Code || errorCode,
2804
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2765
2805
  $fault: "client",
2766
- $metadata: deserializeMetadata(output),
2806
+ $metadata,
2767
2807
  });
2768
2808
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2769
2809
  }
@@ -2788,8 +2828,7 @@ const deserializeAws_json1_0ListComponentProvisionedResourcesCommandError = asyn
2788
2828
  body: await parseBody(output.body, context),
2789
2829
  };
2790
2830
  let response;
2791
- let errorCode = "UnknownError";
2792
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2831
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2793
2832
  switch (errorCode) {
2794
2833
  case "AccessDeniedException":
2795
2834
  case "com.amazonaws.proton#AccessDeniedException":
@@ -2808,10 +2847,12 @@ const deserializeAws_json1_0ListComponentProvisionedResourcesCommandError = asyn
2808
2847
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2809
2848
  default:
2810
2849
  const parsedBody = parsedOutput.body;
2850
+ const $metadata = deserializeMetadata(output);
2851
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2811
2852
  response = new ProtonServiceException_1.ProtonServiceException({
2812
- name: parsedBody.code || parsedBody.Code || errorCode,
2853
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2813
2854
  $fault: "client",
2814
- $metadata: deserializeMetadata(output),
2855
+ $metadata,
2815
2856
  });
2816
2857
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2817
2858
  }
@@ -2836,8 +2877,7 @@ const deserializeAws_json1_0ListComponentsCommandError = async (output, context)
2836
2877
  body: await parseBody(output.body, context),
2837
2878
  };
2838
2879
  let response;
2839
- let errorCode = "UnknownError";
2840
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2880
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2841
2881
  switch (errorCode) {
2842
2882
  case "AccessDeniedException":
2843
2883
  case "com.amazonaws.proton#AccessDeniedException":
@@ -2853,10 +2893,12 @@ const deserializeAws_json1_0ListComponentsCommandError = async (output, context)
2853
2893
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2854
2894
  default:
2855
2895
  const parsedBody = parsedOutput.body;
2896
+ const $metadata = deserializeMetadata(output);
2897
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2856
2898
  response = new ProtonServiceException_1.ProtonServiceException({
2857
- name: parsedBody.code || parsedBody.Code || errorCode,
2899
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2858
2900
  $fault: "client",
2859
- $metadata: deserializeMetadata(output),
2901
+ $metadata,
2860
2902
  });
2861
2903
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2862
2904
  }
@@ -2881,8 +2923,7 @@ const deserializeAws_json1_0ListEnvironmentAccountConnectionsCommandError = asyn
2881
2923
  body: await parseBody(output.body, context),
2882
2924
  };
2883
2925
  let response;
2884
- let errorCode = "UnknownError";
2885
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2926
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2886
2927
  switch (errorCode) {
2887
2928
  case "AccessDeniedException":
2888
2929
  case "com.amazonaws.proton#AccessDeniedException":
@@ -2898,10 +2939,12 @@ const deserializeAws_json1_0ListEnvironmentAccountConnectionsCommandError = asyn
2898
2939
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2899
2940
  default:
2900
2941
  const parsedBody = parsedOutput.body;
2942
+ const $metadata = deserializeMetadata(output);
2943
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2901
2944
  response = new ProtonServiceException_1.ProtonServiceException({
2902
- name: parsedBody.code || parsedBody.Code || errorCode,
2945
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2903
2946
  $fault: "client",
2904
- $metadata: deserializeMetadata(output),
2947
+ $metadata,
2905
2948
  });
2906
2949
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2907
2950
  }
@@ -2926,8 +2969,7 @@ const deserializeAws_json1_0ListEnvironmentOutputsCommandError = async (output,
2926
2969
  body: await parseBody(output.body, context),
2927
2970
  };
2928
2971
  let response;
2929
- let errorCode = "UnknownError";
2930
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2972
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2931
2973
  switch (errorCode) {
2932
2974
  case "AccessDeniedException":
2933
2975
  case "com.amazonaws.proton#AccessDeniedException":
@@ -2946,10 +2988,12 @@ const deserializeAws_json1_0ListEnvironmentOutputsCommandError = async (output,
2946
2988
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2947
2989
  default:
2948
2990
  const parsedBody = parsedOutput.body;
2991
+ const $metadata = deserializeMetadata(output);
2992
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2949
2993
  response = new ProtonServiceException_1.ProtonServiceException({
2950
- name: parsedBody.code || parsedBody.Code || errorCode,
2994
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2951
2995
  $fault: "client",
2952
- $metadata: deserializeMetadata(output),
2996
+ $metadata,
2953
2997
  });
2954
2998
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2955
2999
  }
@@ -2974,8 +3018,7 @@ const deserializeAws_json1_0ListEnvironmentProvisionedResourcesCommandError = as
2974
3018
  body: await parseBody(output.body, context),
2975
3019
  };
2976
3020
  let response;
2977
- let errorCode = "UnknownError";
2978
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3021
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2979
3022
  switch (errorCode) {
2980
3023
  case "AccessDeniedException":
2981
3024
  case "com.amazonaws.proton#AccessDeniedException":
@@ -2994,10 +3037,12 @@ const deserializeAws_json1_0ListEnvironmentProvisionedResourcesCommandError = as
2994
3037
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2995
3038
  default:
2996
3039
  const parsedBody = parsedOutput.body;
3040
+ const $metadata = deserializeMetadata(output);
3041
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2997
3042
  response = new ProtonServiceException_1.ProtonServiceException({
2998
- name: parsedBody.code || parsedBody.Code || errorCode,
3043
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2999
3044
  $fault: "client",
3000
- $metadata: deserializeMetadata(output),
3045
+ $metadata,
3001
3046
  });
3002
3047
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3003
3048
  }
@@ -3022,8 +3067,7 @@ const deserializeAws_json1_0ListEnvironmentsCommandError = async (output, contex
3022
3067
  body: await parseBody(output.body, context),
3023
3068
  };
3024
3069
  let response;
3025
- let errorCode = "UnknownError";
3026
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3070
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3027
3071
  switch (errorCode) {
3028
3072
  case "AccessDeniedException":
3029
3073
  case "com.amazonaws.proton#AccessDeniedException":
@@ -3042,10 +3086,12 @@ const deserializeAws_json1_0ListEnvironmentsCommandError = async (output, contex
3042
3086
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
3043
3087
  default:
3044
3088
  const parsedBody = parsedOutput.body;
3089
+ const $metadata = deserializeMetadata(output);
3090
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3045
3091
  response = new ProtonServiceException_1.ProtonServiceException({
3046
- name: parsedBody.code || parsedBody.Code || errorCode,
3092
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3047
3093
  $fault: "client",
3048
- $metadata: deserializeMetadata(output),
3094
+ $metadata,
3049
3095
  });
3050
3096
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3051
3097
  }
@@ -3070,8 +3116,7 @@ const deserializeAws_json1_0ListEnvironmentTemplatesCommandError = async (output
3070
3116
  body: await parseBody(output.body, context),
3071
3117
  };
3072
3118
  let response;
3073
- let errorCode = "UnknownError";
3074
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3119
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3075
3120
  switch (errorCode) {
3076
3121
  case "AccessDeniedException":
3077
3122
  case "com.amazonaws.proton#AccessDeniedException":
@@ -3087,10 +3132,12 @@ const deserializeAws_json1_0ListEnvironmentTemplatesCommandError = async (output
3087
3132
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
3088
3133
  default:
3089
3134
  const parsedBody = parsedOutput.body;
3135
+ const $metadata = deserializeMetadata(output);
3136
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3090
3137
  response = new ProtonServiceException_1.ProtonServiceException({
3091
- name: parsedBody.code || parsedBody.Code || errorCode,
3138
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3092
3139
  $fault: "client",
3093
- $metadata: deserializeMetadata(output),
3140
+ $metadata,
3094
3141
  });
3095
3142
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3096
3143
  }
@@ -3115,8 +3162,7 @@ const deserializeAws_json1_0ListEnvironmentTemplateVersionsCommandError = async
3115
3162
  body: await parseBody(output.body, context),
3116
3163
  };
3117
3164
  let response;
3118
- let errorCode = "UnknownError";
3119
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3165
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3120
3166
  switch (errorCode) {
3121
3167
  case "AccessDeniedException":
3122
3168
  case "com.amazonaws.proton#AccessDeniedException":
@@ -3135,10 +3181,12 @@ const deserializeAws_json1_0ListEnvironmentTemplateVersionsCommandError = async
3135
3181
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
3136
3182
  default:
3137
3183
  const parsedBody = parsedOutput.body;
3184
+ const $metadata = deserializeMetadata(output);
3185
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3138
3186
  response = new ProtonServiceException_1.ProtonServiceException({
3139
- name: parsedBody.code || parsedBody.Code || errorCode,
3187
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3140
3188
  $fault: "client",
3141
- $metadata: deserializeMetadata(output),
3189
+ $metadata,
3142
3190
  });
3143
3191
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3144
3192
  }
@@ -3163,8 +3211,7 @@ const deserializeAws_json1_0ListRepositoriesCommandError = async (output, contex
3163
3211
  body: await parseBody(output.body, context),
3164
3212
  };
3165
3213
  let response;
3166
- let errorCode = "UnknownError";
3167
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3214
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3168
3215
  switch (errorCode) {
3169
3216
  case "AccessDeniedException":
3170
3217
  case "com.amazonaws.proton#AccessDeniedException":
@@ -3183,10 +3230,12 @@ const deserializeAws_json1_0ListRepositoriesCommandError = async (output, contex
3183
3230
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
3184
3231
  default:
3185
3232
  const parsedBody = parsedOutput.body;
3233
+ const $metadata = deserializeMetadata(output);
3234
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3186
3235
  response = new ProtonServiceException_1.ProtonServiceException({
3187
- name: parsedBody.code || parsedBody.Code || errorCode,
3236
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3188
3237
  $fault: "client",
3189
- $metadata: deserializeMetadata(output),
3238
+ $metadata,
3190
3239
  });
3191
3240
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3192
3241
  }
@@ -3211,8 +3260,7 @@ const deserializeAws_json1_0ListRepositorySyncDefinitionsCommandError = async (o
3211
3260
  body: await parseBody(output.body, context),
3212
3261
  };
3213
3262
  let response;
3214
- let errorCode = "UnknownError";
3215
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3263
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3216
3264
  switch (errorCode) {
3217
3265
  case "AccessDeniedException":
3218
3266
  case "com.amazonaws.proton#AccessDeniedException":
@@ -3228,10 +3276,12 @@ const deserializeAws_json1_0ListRepositorySyncDefinitionsCommandError = async (o
3228
3276
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
3229
3277
  default:
3230
3278
  const parsedBody = parsedOutput.body;
3279
+ const $metadata = deserializeMetadata(output);
3280
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3231
3281
  response = new ProtonServiceException_1.ProtonServiceException({
3232
- name: parsedBody.code || parsedBody.Code || errorCode,
3282
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3233
3283
  $fault: "client",
3234
- $metadata: deserializeMetadata(output),
3284
+ $metadata,
3235
3285
  });
3236
3286
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3237
3287
  }
@@ -3256,8 +3306,7 @@ const deserializeAws_json1_0ListServiceInstanceOutputsCommandError = async (outp
3256
3306
  body: await parseBody(output.body, context),
3257
3307
  };
3258
3308
  let response;
3259
- let errorCode = "UnknownError";
3260
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3309
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3261
3310
  switch (errorCode) {
3262
3311
  case "AccessDeniedException":
3263
3312
  case "com.amazonaws.proton#AccessDeniedException":
@@ -3276,10 +3325,12 @@ const deserializeAws_json1_0ListServiceInstanceOutputsCommandError = async (outp
3276
3325
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
3277
3326
  default:
3278
3327
  const parsedBody = parsedOutput.body;
3328
+ const $metadata = deserializeMetadata(output);
3329
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3279
3330
  response = new ProtonServiceException_1.ProtonServiceException({
3280
- name: parsedBody.code || parsedBody.Code || errorCode,
3331
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3281
3332
  $fault: "client",
3282
- $metadata: deserializeMetadata(output),
3333
+ $metadata,
3283
3334
  });
3284
3335
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3285
3336
  }
@@ -3304,8 +3355,7 @@ const deserializeAws_json1_0ListServiceInstanceProvisionedResourcesCommandError
3304
3355
  body: await parseBody(output.body, context),
3305
3356
  };
3306
3357
  let response;
3307
- let errorCode = "UnknownError";
3308
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3358
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3309
3359
  switch (errorCode) {
3310
3360
  case "AccessDeniedException":
3311
3361
  case "com.amazonaws.proton#AccessDeniedException":
@@ -3324,10 +3374,12 @@ const deserializeAws_json1_0ListServiceInstanceProvisionedResourcesCommandError
3324
3374
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
3325
3375
  default:
3326
3376
  const parsedBody = parsedOutput.body;
3377
+ const $metadata = deserializeMetadata(output);
3378
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3327
3379
  response = new ProtonServiceException_1.ProtonServiceException({
3328
- name: parsedBody.code || parsedBody.Code || errorCode,
3380
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3329
3381
  $fault: "client",
3330
- $metadata: deserializeMetadata(output),
3382
+ $metadata,
3331
3383
  });
3332
3384
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3333
3385
  }
@@ -3352,8 +3404,7 @@ const deserializeAws_json1_0ListServiceInstancesCommandError = async (output, co
3352
3404
  body: await parseBody(output.body, context),
3353
3405
  };
3354
3406
  let response;
3355
- let errorCode = "UnknownError";
3356
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3407
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3357
3408
  switch (errorCode) {
3358
3409
  case "AccessDeniedException":
3359
3410
  case "com.amazonaws.proton#AccessDeniedException":
@@ -3372,10 +3423,12 @@ const deserializeAws_json1_0ListServiceInstancesCommandError = async (output, co
3372
3423
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
3373
3424
  default:
3374
3425
  const parsedBody = parsedOutput.body;
3426
+ const $metadata = deserializeMetadata(output);
3427
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3375
3428
  response = new ProtonServiceException_1.ProtonServiceException({
3376
- name: parsedBody.code || parsedBody.Code || errorCode,
3429
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3377
3430
  $fault: "client",
3378
- $metadata: deserializeMetadata(output),
3431
+ $metadata,
3379
3432
  });
3380
3433
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3381
3434
  }
@@ -3400,8 +3453,7 @@ const deserializeAws_json1_0ListServicePipelineOutputsCommandError = async (outp
3400
3453
  body: await parseBody(output.body, context),
3401
3454
  };
3402
3455
  let response;
3403
- let errorCode = "UnknownError";
3404
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3456
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3405
3457
  switch (errorCode) {
3406
3458
  case "AccessDeniedException":
3407
3459
  case "com.amazonaws.proton#AccessDeniedException":
@@ -3420,10 +3472,12 @@ const deserializeAws_json1_0ListServicePipelineOutputsCommandError = async (outp
3420
3472
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
3421
3473
  default:
3422
3474
  const parsedBody = parsedOutput.body;
3475
+ const $metadata = deserializeMetadata(output);
3476
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3423
3477
  response = new ProtonServiceException_1.ProtonServiceException({
3424
- name: parsedBody.code || parsedBody.Code || errorCode,
3478
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3425
3479
  $fault: "client",
3426
- $metadata: deserializeMetadata(output),
3480
+ $metadata,
3427
3481
  });
3428
3482
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3429
3483
  }
@@ -3448,8 +3502,7 @@ const deserializeAws_json1_0ListServicePipelineProvisionedResourcesCommandError
3448
3502
  body: await parseBody(output.body, context),
3449
3503
  };
3450
3504
  let response;
3451
- let errorCode = "UnknownError";
3452
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3505
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3453
3506
  switch (errorCode) {
3454
3507
  case "AccessDeniedException":
3455
3508
  case "com.amazonaws.proton#AccessDeniedException":
@@ -3468,10 +3521,12 @@ const deserializeAws_json1_0ListServicePipelineProvisionedResourcesCommandError
3468
3521
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
3469
3522
  default:
3470
3523
  const parsedBody = parsedOutput.body;
3524
+ const $metadata = deserializeMetadata(output);
3525
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3471
3526
  response = new ProtonServiceException_1.ProtonServiceException({
3472
- name: parsedBody.code || parsedBody.Code || errorCode,
3527
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3473
3528
  $fault: "client",
3474
- $metadata: deserializeMetadata(output),
3529
+ $metadata,
3475
3530
  });
3476
3531
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3477
3532
  }
@@ -3496,8 +3551,7 @@ const deserializeAws_json1_0ListServicesCommandError = async (output, context) =
3496
3551
  body: await parseBody(output.body, context),
3497
3552
  };
3498
3553
  let response;
3499
- let errorCode = "UnknownError";
3500
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3554
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3501
3555
  switch (errorCode) {
3502
3556
  case "AccessDeniedException":
3503
3557
  case "com.amazonaws.proton#AccessDeniedException":
@@ -3513,10 +3567,12 @@ const deserializeAws_json1_0ListServicesCommandError = async (output, context) =
3513
3567
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
3514
3568
  default:
3515
3569
  const parsedBody = parsedOutput.body;
3570
+ const $metadata = deserializeMetadata(output);
3571
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3516
3572
  response = new ProtonServiceException_1.ProtonServiceException({
3517
- name: parsedBody.code || parsedBody.Code || errorCode,
3573
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3518
3574
  $fault: "client",
3519
- $metadata: deserializeMetadata(output),
3575
+ $metadata,
3520
3576
  });
3521
3577
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3522
3578
  }
@@ -3541,8 +3597,7 @@ const deserializeAws_json1_0ListServiceTemplatesCommandError = async (output, co
3541
3597
  body: await parseBody(output.body, context),
3542
3598
  };
3543
3599
  let response;
3544
- let errorCode = "UnknownError";
3545
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3600
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3546
3601
  switch (errorCode) {
3547
3602
  case "AccessDeniedException":
3548
3603
  case "com.amazonaws.proton#AccessDeniedException":
@@ -3558,10 +3613,12 @@ const deserializeAws_json1_0ListServiceTemplatesCommandError = async (output, co
3558
3613
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
3559
3614
  default:
3560
3615
  const parsedBody = parsedOutput.body;
3616
+ const $metadata = deserializeMetadata(output);
3617
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3561
3618
  response = new ProtonServiceException_1.ProtonServiceException({
3562
- name: parsedBody.code || parsedBody.Code || errorCode,
3619
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3563
3620
  $fault: "client",
3564
- $metadata: deserializeMetadata(output),
3621
+ $metadata,
3565
3622
  });
3566
3623
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3567
3624
  }
@@ -3586,8 +3643,7 @@ const deserializeAws_json1_0ListServiceTemplateVersionsCommandError = async (out
3586
3643
  body: await parseBody(output.body, context),
3587
3644
  };
3588
3645
  let response;
3589
- let errorCode = "UnknownError";
3590
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3646
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3591
3647
  switch (errorCode) {
3592
3648
  case "AccessDeniedException":
3593
3649
  case "com.amazonaws.proton#AccessDeniedException":
@@ -3606,10 +3662,12 @@ const deserializeAws_json1_0ListServiceTemplateVersionsCommandError = async (out
3606
3662
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
3607
3663
  default:
3608
3664
  const parsedBody = parsedOutput.body;
3665
+ const $metadata = deserializeMetadata(output);
3666
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3609
3667
  response = new ProtonServiceException_1.ProtonServiceException({
3610
- name: parsedBody.code || parsedBody.Code || errorCode,
3668
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3611
3669
  $fault: "client",
3612
- $metadata: deserializeMetadata(output),
3670
+ $metadata,
3613
3671
  });
3614
3672
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3615
3673
  }
@@ -3634,8 +3692,7 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
3634
3692
  body: await parseBody(output.body, context),
3635
3693
  };
3636
3694
  let response;
3637
- let errorCode = "UnknownError";
3638
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3695
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3639
3696
  switch (errorCode) {
3640
3697
  case "AccessDeniedException":
3641
3698
  case "com.amazonaws.proton#AccessDeniedException":
@@ -3654,10 +3711,12 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
3654
3711
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
3655
3712
  default:
3656
3713
  const parsedBody = parsedOutput.body;
3714
+ const $metadata = deserializeMetadata(output);
3715
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3657
3716
  response = new ProtonServiceException_1.ProtonServiceException({
3658
- name: parsedBody.code || parsedBody.Code || errorCode,
3717
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3659
3718
  $fault: "client",
3660
- $metadata: deserializeMetadata(output),
3719
+ $metadata,
3661
3720
  });
3662
3721
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3663
3722
  }
@@ -3682,8 +3741,7 @@ const deserializeAws_json1_0NotifyResourceDeploymentStatusChangeCommandError = a
3682
3741
  body: await parseBody(output.body, context),
3683
3742
  };
3684
3743
  let response;
3685
- let errorCode = "UnknownError";
3686
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3744
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3687
3745
  switch (errorCode) {
3688
3746
  case "AccessDeniedException":
3689
3747
  case "com.amazonaws.proton#AccessDeniedException":
@@ -3708,10 +3766,12 @@ const deserializeAws_json1_0NotifyResourceDeploymentStatusChangeCommandError = a
3708
3766
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
3709
3767
  default:
3710
3768
  const parsedBody = parsedOutput.body;
3769
+ const $metadata = deserializeMetadata(output);
3770
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3711
3771
  response = new ProtonServiceException_1.ProtonServiceException({
3712
- name: parsedBody.code || parsedBody.Code || errorCode,
3772
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3713
3773
  $fault: "client",
3714
- $metadata: deserializeMetadata(output),
3774
+ $metadata,
3715
3775
  });
3716
3776
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3717
3777
  }
@@ -3736,8 +3796,7 @@ const deserializeAws_json1_0RejectEnvironmentAccountConnectionCommandError = asy
3736
3796
  body: await parseBody(output.body, context),
3737
3797
  };
3738
3798
  let response;
3739
- let errorCode = "UnknownError";
3740
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3799
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3741
3800
  switch (errorCode) {
3742
3801
  case "AccessDeniedException":
3743
3802
  case "com.amazonaws.proton#AccessDeniedException":
@@ -3759,10 +3818,12 @@ const deserializeAws_json1_0RejectEnvironmentAccountConnectionCommandError = asy
3759
3818
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
3760
3819
  default:
3761
3820
  const parsedBody = parsedOutput.body;
3821
+ const $metadata = deserializeMetadata(output);
3822
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3762
3823
  response = new ProtonServiceException_1.ProtonServiceException({
3763
- name: parsedBody.code || parsedBody.Code || errorCode,
3824
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3764
3825
  $fault: "client",
3765
- $metadata: deserializeMetadata(output),
3826
+ $metadata,
3766
3827
  });
3767
3828
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3768
3829
  }
@@ -3787,8 +3848,7 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
3787
3848
  body: await parseBody(output.body, context),
3788
3849
  };
3789
3850
  let response;
3790
- let errorCode = "UnknownError";
3791
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3851
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3792
3852
  switch (errorCode) {
3793
3853
  case "AccessDeniedException":
3794
3854
  case "com.amazonaws.proton#AccessDeniedException":
@@ -3810,10 +3870,12 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
3810
3870
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
3811
3871
  default:
3812
3872
  const parsedBody = parsedOutput.body;
3873
+ const $metadata = deserializeMetadata(output);
3874
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3813
3875
  response = new ProtonServiceException_1.ProtonServiceException({
3814
- name: parsedBody.code || parsedBody.Code || errorCode,
3876
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3815
3877
  $fault: "client",
3816
- $metadata: deserializeMetadata(output),
3878
+ $metadata,
3817
3879
  });
3818
3880
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3819
3881
  }
@@ -3838,8 +3900,7 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
3838
3900
  body: await parseBody(output.body, context),
3839
3901
  };
3840
3902
  let response;
3841
- let errorCode = "UnknownError";
3842
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3903
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3843
3904
  switch (errorCode) {
3844
3905
  case "AccessDeniedException":
3845
3906
  case "com.amazonaws.proton#AccessDeniedException":
@@ -3861,10 +3922,12 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
3861
3922
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
3862
3923
  default:
3863
3924
  const parsedBody = parsedOutput.body;
3925
+ const $metadata = deserializeMetadata(output);
3926
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3864
3927
  response = new ProtonServiceException_1.ProtonServiceException({
3865
- name: parsedBody.code || parsedBody.Code || errorCode,
3928
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3866
3929
  $fault: "client",
3867
- $metadata: deserializeMetadata(output),
3930
+ $metadata,
3868
3931
  });
3869
3932
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3870
3933
  }
@@ -3889,8 +3952,7 @@ const deserializeAws_json1_0UpdateAccountSettingsCommandError = async (output, c
3889
3952
  body: await parseBody(output.body, context),
3890
3953
  };
3891
3954
  let response;
3892
- let errorCode = "UnknownError";
3893
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3955
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3894
3956
  switch (errorCode) {
3895
3957
  case "AccessDeniedException":
3896
3958
  case "com.amazonaws.proton#AccessDeniedException":
@@ -3909,10 +3971,12 @@ const deserializeAws_json1_0UpdateAccountSettingsCommandError = async (output, c
3909
3971
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
3910
3972
  default:
3911
3973
  const parsedBody = parsedOutput.body;
3974
+ const $metadata = deserializeMetadata(output);
3975
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3912
3976
  response = new ProtonServiceException_1.ProtonServiceException({
3913
- name: parsedBody.code || parsedBody.Code || errorCode,
3977
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3914
3978
  $fault: "client",
3915
- $metadata: deserializeMetadata(output),
3979
+ $metadata,
3916
3980
  });
3917
3981
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3918
3982
  }
@@ -3937,8 +4001,7 @@ const deserializeAws_json1_0UpdateComponentCommandError = async (output, context
3937
4001
  body: await parseBody(output.body, context),
3938
4002
  };
3939
4003
  let response;
3940
- let errorCode = "UnknownError";
3941
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4004
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3942
4005
  switch (errorCode) {
3943
4006
  case "AccessDeniedException":
3944
4007
  case "com.amazonaws.proton#AccessDeniedException":
@@ -3963,10 +4026,12 @@ const deserializeAws_json1_0UpdateComponentCommandError = async (output, context
3963
4026
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
3964
4027
  default:
3965
4028
  const parsedBody = parsedOutput.body;
4029
+ const $metadata = deserializeMetadata(output);
4030
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3966
4031
  response = new ProtonServiceException_1.ProtonServiceException({
3967
- name: parsedBody.code || parsedBody.Code || errorCode,
4032
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3968
4033
  $fault: "client",
3969
- $metadata: deserializeMetadata(output),
4034
+ $metadata,
3970
4035
  });
3971
4036
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3972
4037
  }
@@ -3991,8 +4056,7 @@ const deserializeAws_json1_0UpdateEnvironmentCommandError = async (output, conte
3991
4056
  body: await parseBody(output.body, context),
3992
4057
  };
3993
4058
  let response;
3994
- let errorCode = "UnknownError";
3995
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4059
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3996
4060
  switch (errorCode) {
3997
4061
  case "AccessDeniedException":
3998
4062
  case "com.amazonaws.proton#AccessDeniedException":
@@ -4014,10 +4078,12 @@ const deserializeAws_json1_0UpdateEnvironmentCommandError = async (output, conte
4014
4078
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
4015
4079
  default:
4016
4080
  const parsedBody = parsedOutput.body;
4081
+ const $metadata = deserializeMetadata(output);
4082
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4017
4083
  response = new ProtonServiceException_1.ProtonServiceException({
4018
- name: parsedBody.code || parsedBody.Code || errorCode,
4084
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
4019
4085
  $fault: "client",
4020
- $metadata: deserializeMetadata(output),
4086
+ $metadata,
4021
4087
  });
4022
4088
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4023
4089
  }
@@ -4042,8 +4108,7 @@ const deserializeAws_json1_0UpdateEnvironmentAccountConnectionCommandError = asy
4042
4108
  body: await parseBody(output.body, context),
4043
4109
  };
4044
4110
  let response;
4045
- let errorCode = "UnknownError";
4046
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4111
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4047
4112
  switch (errorCode) {
4048
4113
  case "AccessDeniedException":
4049
4114
  case "com.amazonaws.proton#AccessDeniedException":
@@ -4065,10 +4130,12 @@ const deserializeAws_json1_0UpdateEnvironmentAccountConnectionCommandError = asy
4065
4130
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
4066
4131
  default:
4067
4132
  const parsedBody = parsedOutput.body;
4133
+ const $metadata = deserializeMetadata(output);
4134
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4068
4135
  response = new ProtonServiceException_1.ProtonServiceException({
4069
- name: parsedBody.code || parsedBody.Code || errorCode,
4136
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
4070
4137
  $fault: "client",
4071
- $metadata: deserializeMetadata(output),
4138
+ $metadata,
4072
4139
  });
4073
4140
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4074
4141
  }
@@ -4093,8 +4160,7 @@ const deserializeAws_json1_0UpdateEnvironmentTemplateCommandError = async (outpu
4093
4160
  body: await parseBody(output.body, context),
4094
4161
  };
4095
4162
  let response;
4096
- let errorCode = "UnknownError";
4097
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4163
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4098
4164
  switch (errorCode) {
4099
4165
  case "AccessDeniedException":
4100
4166
  case "com.amazonaws.proton#AccessDeniedException":
@@ -4116,10 +4182,12 @@ const deserializeAws_json1_0UpdateEnvironmentTemplateCommandError = async (outpu
4116
4182
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
4117
4183
  default:
4118
4184
  const parsedBody = parsedOutput.body;
4185
+ const $metadata = deserializeMetadata(output);
4186
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4119
4187
  response = new ProtonServiceException_1.ProtonServiceException({
4120
- name: parsedBody.code || parsedBody.Code || errorCode,
4188
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
4121
4189
  $fault: "client",
4122
- $metadata: deserializeMetadata(output),
4190
+ $metadata,
4123
4191
  });
4124
4192
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4125
4193
  }
@@ -4144,8 +4212,7 @@ const deserializeAws_json1_0UpdateEnvironmentTemplateVersionCommandError = async
4144
4212
  body: await parseBody(output.body, context),
4145
4213
  };
4146
4214
  let response;
4147
- let errorCode = "UnknownError";
4148
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4215
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4149
4216
  switch (errorCode) {
4150
4217
  case "AccessDeniedException":
4151
4218
  case "com.amazonaws.proton#AccessDeniedException":
@@ -4167,10 +4234,12 @@ const deserializeAws_json1_0UpdateEnvironmentTemplateVersionCommandError = async
4167
4234
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
4168
4235
  default:
4169
4236
  const parsedBody = parsedOutput.body;
4237
+ const $metadata = deserializeMetadata(output);
4238
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4170
4239
  response = new ProtonServiceException_1.ProtonServiceException({
4171
- name: parsedBody.code || parsedBody.Code || errorCode,
4240
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
4172
4241
  $fault: "client",
4173
- $metadata: deserializeMetadata(output),
4242
+ $metadata,
4174
4243
  });
4175
4244
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4176
4245
  }
@@ -4195,8 +4264,7 @@ const deserializeAws_json1_0UpdateServiceCommandError = async (output, context)
4195
4264
  body: await parseBody(output.body, context),
4196
4265
  };
4197
4266
  let response;
4198
- let errorCode = "UnknownError";
4199
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4267
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4200
4268
  switch (errorCode) {
4201
4269
  case "AccessDeniedException":
4202
4270
  case "com.amazonaws.proton#AccessDeniedException":
@@ -4221,10 +4289,12 @@ const deserializeAws_json1_0UpdateServiceCommandError = async (output, context)
4221
4289
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
4222
4290
  default:
4223
4291
  const parsedBody = parsedOutput.body;
4292
+ const $metadata = deserializeMetadata(output);
4293
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4224
4294
  response = new ProtonServiceException_1.ProtonServiceException({
4225
- name: parsedBody.code || parsedBody.Code || errorCode,
4295
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
4226
4296
  $fault: "client",
4227
- $metadata: deserializeMetadata(output),
4297
+ $metadata,
4228
4298
  });
4229
4299
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4230
4300
  }
@@ -4249,8 +4319,7 @@ const deserializeAws_json1_0UpdateServiceInstanceCommandError = async (output, c
4249
4319
  body: await parseBody(output.body, context),
4250
4320
  };
4251
4321
  let response;
4252
- let errorCode = "UnknownError";
4253
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4322
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4254
4323
  switch (errorCode) {
4255
4324
  case "AccessDeniedException":
4256
4325
  case "com.amazonaws.proton#AccessDeniedException":
@@ -4272,10 +4341,12 @@ const deserializeAws_json1_0UpdateServiceInstanceCommandError = async (output, c
4272
4341
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
4273
4342
  default:
4274
4343
  const parsedBody = parsedOutput.body;
4344
+ const $metadata = deserializeMetadata(output);
4345
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4275
4346
  response = new ProtonServiceException_1.ProtonServiceException({
4276
- name: parsedBody.code || parsedBody.Code || errorCode,
4347
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
4277
4348
  $fault: "client",
4278
- $metadata: deserializeMetadata(output),
4349
+ $metadata,
4279
4350
  });
4280
4351
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4281
4352
  }
@@ -4300,8 +4371,7 @@ const deserializeAws_json1_0UpdateServicePipelineCommandError = async (output, c
4300
4371
  body: await parseBody(output.body, context),
4301
4372
  };
4302
4373
  let response;
4303
- let errorCode = "UnknownError";
4304
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4374
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4305
4375
  switch (errorCode) {
4306
4376
  case "AccessDeniedException":
4307
4377
  case "com.amazonaws.proton#AccessDeniedException":
@@ -4323,10 +4393,12 @@ const deserializeAws_json1_0UpdateServicePipelineCommandError = async (output, c
4323
4393
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
4324
4394
  default:
4325
4395
  const parsedBody = parsedOutput.body;
4396
+ const $metadata = deserializeMetadata(output);
4397
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4326
4398
  response = new ProtonServiceException_1.ProtonServiceException({
4327
- name: parsedBody.code || parsedBody.Code || errorCode,
4399
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
4328
4400
  $fault: "client",
4329
- $metadata: deserializeMetadata(output),
4401
+ $metadata,
4330
4402
  });
4331
4403
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4332
4404
  }
@@ -4351,8 +4423,7 @@ const deserializeAws_json1_0UpdateServiceTemplateCommandError = async (output, c
4351
4423
  body: await parseBody(output.body, context),
4352
4424
  };
4353
4425
  let response;
4354
- let errorCode = "UnknownError";
4355
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4426
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4356
4427
  switch (errorCode) {
4357
4428
  case "AccessDeniedException":
4358
4429
  case "com.amazonaws.proton#AccessDeniedException":
@@ -4374,10 +4445,12 @@ const deserializeAws_json1_0UpdateServiceTemplateCommandError = async (output, c
4374
4445
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
4375
4446
  default:
4376
4447
  const parsedBody = parsedOutput.body;
4448
+ const $metadata = deserializeMetadata(output);
4449
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4377
4450
  response = new ProtonServiceException_1.ProtonServiceException({
4378
- name: parsedBody.code || parsedBody.Code || errorCode,
4451
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
4379
4452
  $fault: "client",
4380
- $metadata: deserializeMetadata(output),
4453
+ $metadata,
4381
4454
  });
4382
4455
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4383
4456
  }
@@ -4402,8 +4475,7 @@ const deserializeAws_json1_0UpdateServiceTemplateVersionCommandError = async (ou
4402
4475
  body: await parseBody(output.body, context),
4403
4476
  };
4404
4477
  let response;
4405
- let errorCode = "UnknownError";
4406
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4478
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4407
4479
  switch (errorCode) {
4408
4480
  case "AccessDeniedException":
4409
4481
  case "com.amazonaws.proton#AccessDeniedException":
@@ -4425,10 +4497,12 @@ const deserializeAws_json1_0UpdateServiceTemplateVersionCommandError = async (ou
4425
4497
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
4426
4498
  default:
4427
4499
  const parsedBody = parsedOutput.body;
4500
+ const $metadata = deserializeMetadata(output);
4501
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4428
4502
  response = new ProtonServiceException_1.ProtonServiceException({
4429
- name: parsedBody.code || parsedBody.Code || errorCode,
4503
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
4430
4504
  $fault: "client",
4431
- $metadata: deserializeMetadata(output),
4505
+ $metadata,
4432
4506
  });
4433
4507
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4434
4508
  }
@@ -4453,8 +4527,7 @@ const deserializeAws_json1_0UpdateTemplateSyncConfigCommandError = async (output
4453
4527
  body: await parseBody(output.body, context),
4454
4528
  };
4455
4529
  let response;
4456
- let errorCode = "UnknownError";
4457
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4530
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4458
4531
  switch (errorCode) {
4459
4532
  case "AccessDeniedException":
4460
4533
  case "com.amazonaws.proton#AccessDeniedException":
@@ -4476,10 +4549,12 @@ const deserializeAws_json1_0UpdateTemplateSyncConfigCommandError = async (output
4476
4549
  throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
4477
4550
  default:
4478
4551
  const parsedBody = parsedOutput.body;
4552
+ const $metadata = deserializeMetadata(output);
4553
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4479
4554
  response = new ProtonServiceException_1.ProtonServiceException({
4480
- name: parsedBody.code || parsedBody.Code || errorCode,
4555
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
4481
4556
  $fault: "client",
4482
- $metadata: deserializeMetadata(output),
4557
+ $metadata,
4483
4558
  });
4484
4559
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4485
4560
  }
@@ -4549,36 +4624,34 @@ const deserializeAws_json1_0ValidationExceptionResponse = async (parsedOutput, c
4549
4624
  };
4550
4625
  const serializeAws_json1_0AcceptEnvironmentAccountConnectionInput = (input, context) => {
4551
4626
  return {
4552
- ...(input.id !== undefined && input.id !== null && { id: input.id }),
4627
+ ...(input.id != null && { id: input.id }),
4553
4628
  };
4554
4629
  };
4555
4630
  const serializeAws_json1_0CancelComponentDeploymentInput = (input, context) => {
4556
4631
  return {
4557
- ...(input.componentName !== undefined && input.componentName !== null && { componentName: input.componentName }),
4632
+ ...(input.componentName != null && { componentName: input.componentName }),
4558
4633
  };
4559
4634
  };
4560
4635
  const serializeAws_json1_0CancelEnvironmentDeploymentInput = (input, context) => {
4561
4636
  return {
4562
- ...(input.environmentName !== undefined &&
4563
- input.environmentName !== null && { environmentName: input.environmentName }),
4637
+ ...(input.environmentName != null && { environmentName: input.environmentName }),
4564
4638
  };
4565
4639
  };
4566
4640
  const serializeAws_json1_0CancelServiceInstanceDeploymentInput = (input, context) => {
4567
4641
  return {
4568
- ...(input.serviceInstanceName !== undefined &&
4569
- input.serviceInstanceName !== null && { serviceInstanceName: input.serviceInstanceName }),
4570
- ...(input.serviceName !== undefined && input.serviceName !== null && { serviceName: input.serviceName }),
4642
+ ...(input.serviceInstanceName != null && { serviceInstanceName: input.serviceInstanceName }),
4643
+ ...(input.serviceName != null && { serviceName: input.serviceName }),
4571
4644
  };
4572
4645
  };
4573
4646
  const serializeAws_json1_0CancelServicePipelineDeploymentInput = (input, context) => {
4574
4647
  return {
4575
- ...(input.serviceName !== undefined && input.serviceName !== null && { serviceName: input.serviceName }),
4648
+ ...(input.serviceName != null && { serviceName: input.serviceName }),
4576
4649
  };
4577
4650
  };
4578
4651
  const serializeAws_json1_0CompatibleEnvironmentTemplateInput = (input, context) => {
4579
4652
  return {
4580
- ...(input.majorVersion !== undefined && input.majorVersion !== null && { majorVersion: input.majorVersion }),
4581
- ...(input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }),
4653
+ ...(input.majorVersion != null && { majorVersion: input.majorVersion }),
4654
+ ...(input.templateName != null && { templateName: input.templateName }),
4582
4655
  };
4583
4656
  };
4584
4657
  const serializeAws_json1_0CompatibleEnvironmentTemplateInputList = (input, context) => {
@@ -4593,203 +4666,182 @@ const serializeAws_json1_0CompatibleEnvironmentTemplateInputList = (input, conte
4593
4666
  };
4594
4667
  const serializeAws_json1_0CreateComponentInput = (input, context) => {
4595
4668
  return {
4596
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
4597
- ...(input.environmentName !== undefined &&
4598
- input.environmentName !== null && { environmentName: input.environmentName }),
4599
- ...(input.manifest !== undefined && input.manifest !== null && { manifest: input.manifest }),
4600
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4601
- ...(input.serviceInstanceName !== undefined &&
4602
- input.serviceInstanceName !== null && { serviceInstanceName: input.serviceInstanceName }),
4603
- ...(input.serviceName !== undefined && input.serviceName !== null && { serviceName: input.serviceName }),
4604
- ...(input.serviceSpec !== undefined && input.serviceSpec !== null && { serviceSpec: input.serviceSpec }),
4605
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
4606
- ...(input.templateFile !== undefined && input.templateFile !== null && { templateFile: input.templateFile }),
4669
+ ...(input.description != null && { description: input.description }),
4670
+ ...(input.environmentName != null && { environmentName: input.environmentName }),
4671
+ ...(input.manifest != null && { manifest: input.manifest }),
4672
+ ...(input.name != null && { name: input.name }),
4673
+ ...(input.serviceInstanceName != null && { serviceInstanceName: input.serviceInstanceName }),
4674
+ ...(input.serviceName != null && { serviceName: input.serviceName }),
4675
+ ...(input.serviceSpec != null && { serviceSpec: input.serviceSpec }),
4676
+ ...(input.tags != null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
4677
+ ...(input.templateFile != null && { templateFile: input.templateFile }),
4607
4678
  };
4608
4679
  };
4609
4680
  const serializeAws_json1_0CreateEnvironmentAccountConnectionInput = (input, context) => {
4610
4681
  var _a;
4611
4682
  return {
4612
4683
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
4613
- ...(input.componentRoleArn !== undefined &&
4614
- input.componentRoleArn !== null && { componentRoleArn: input.componentRoleArn }),
4615
- ...(input.environmentName !== undefined &&
4616
- input.environmentName !== null && { environmentName: input.environmentName }),
4617
- ...(input.managementAccountId !== undefined &&
4618
- input.managementAccountId !== null && { managementAccountId: input.managementAccountId }),
4619
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
4620
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
4684
+ ...(input.componentRoleArn != null && { componentRoleArn: input.componentRoleArn }),
4685
+ ...(input.environmentName != null && { environmentName: input.environmentName }),
4686
+ ...(input.managementAccountId != null && { managementAccountId: input.managementAccountId }),
4687
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
4688
+ ...(input.tags != null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
4621
4689
  };
4622
4690
  };
4623
4691
  const serializeAws_json1_0CreateEnvironmentInput = (input, context) => {
4624
4692
  return {
4625
- ...(input.componentRoleArn !== undefined &&
4626
- input.componentRoleArn !== null && { componentRoleArn: input.componentRoleArn }),
4627
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
4628
- ...(input.environmentAccountConnectionId !== undefined &&
4629
- input.environmentAccountConnectionId !== null && {
4693
+ ...(input.componentRoleArn != null && { componentRoleArn: input.componentRoleArn }),
4694
+ ...(input.description != null && { description: input.description }),
4695
+ ...(input.environmentAccountConnectionId != null && {
4630
4696
  environmentAccountConnectionId: input.environmentAccountConnectionId,
4631
4697
  }),
4632
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4633
- ...(input.protonServiceRoleArn !== undefined &&
4634
- input.protonServiceRoleArn !== null && { protonServiceRoleArn: input.protonServiceRoleArn }),
4635
- ...(input.provisioningRepository !== undefined &&
4636
- input.provisioningRepository !== null && {
4698
+ ...(input.name != null && { name: input.name }),
4699
+ ...(input.protonServiceRoleArn != null && { protonServiceRoleArn: input.protonServiceRoleArn }),
4700
+ ...(input.provisioningRepository != null && {
4637
4701
  provisioningRepository: serializeAws_json1_0RepositoryBranchInput(input.provisioningRepository, context),
4638
4702
  }),
4639
- ...(input.spec !== undefined && input.spec !== null && { spec: input.spec }),
4640
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
4641
- ...(input.templateMajorVersion !== undefined &&
4642
- input.templateMajorVersion !== null && { templateMajorVersion: input.templateMajorVersion }),
4643
- ...(input.templateMinorVersion !== undefined &&
4644
- input.templateMinorVersion !== null && { templateMinorVersion: input.templateMinorVersion }),
4645
- ...(input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }),
4703
+ ...(input.spec != null && { spec: input.spec }),
4704
+ ...(input.tags != null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
4705
+ ...(input.templateMajorVersion != null && { templateMajorVersion: input.templateMajorVersion }),
4706
+ ...(input.templateMinorVersion != null && { templateMinorVersion: input.templateMinorVersion }),
4707
+ ...(input.templateName != null && { templateName: input.templateName }),
4646
4708
  };
4647
4709
  };
4648
4710
  const serializeAws_json1_0CreateEnvironmentTemplateInput = (input, context) => {
4649
4711
  return {
4650
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
4651
- ...(input.displayName !== undefined && input.displayName !== null && { displayName: input.displayName }),
4652
- ...(input.encryptionKey !== undefined && input.encryptionKey !== null && { encryptionKey: input.encryptionKey }),
4653
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4654
- ...(input.provisioning !== undefined && input.provisioning !== null && { provisioning: input.provisioning }),
4655
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
4712
+ ...(input.description != null && { description: input.description }),
4713
+ ...(input.displayName != null && { displayName: input.displayName }),
4714
+ ...(input.encryptionKey != null && { encryptionKey: input.encryptionKey }),
4715
+ ...(input.name != null && { name: input.name }),
4716
+ ...(input.provisioning != null && { provisioning: input.provisioning }),
4717
+ ...(input.tags != null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
4656
4718
  };
4657
4719
  };
4658
4720
  const serializeAws_json1_0CreateEnvironmentTemplateVersionInput = (input, context) => {
4659
4721
  var _a;
4660
4722
  return {
4661
4723
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
4662
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
4663
- ...(input.majorVersion !== undefined && input.majorVersion !== null && { majorVersion: input.majorVersion }),
4664
- ...(input.source !== undefined &&
4665
- input.source !== null && { source: serializeAws_json1_0TemplateVersionSourceInput(input.source, context) }),
4666
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
4667
- ...(input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }),
4724
+ ...(input.description != null && { description: input.description }),
4725
+ ...(input.majorVersion != null && { majorVersion: input.majorVersion }),
4726
+ ...(input.source != null && { source: serializeAws_json1_0TemplateVersionSourceInput(input.source, context) }),
4727
+ ...(input.tags != null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
4728
+ ...(input.templateName != null && { templateName: input.templateName }),
4668
4729
  };
4669
4730
  };
4670
4731
  const serializeAws_json1_0CreateRepositoryInput = (input, context) => {
4671
4732
  return {
4672
- ...(input.connectionArn !== undefined && input.connectionArn !== null && { connectionArn: input.connectionArn }),
4673
- ...(input.encryptionKey !== undefined && input.encryptionKey !== null && { encryptionKey: input.encryptionKey }),
4674
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4675
- ...(input.provider !== undefined && input.provider !== null && { provider: input.provider }),
4676
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
4733
+ ...(input.connectionArn != null && { connectionArn: input.connectionArn }),
4734
+ ...(input.encryptionKey != null && { encryptionKey: input.encryptionKey }),
4735
+ ...(input.name != null && { name: input.name }),
4736
+ ...(input.provider != null && { provider: input.provider }),
4737
+ ...(input.tags != null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
4677
4738
  };
4678
4739
  };
4679
4740
  const serializeAws_json1_0CreateServiceInput = (input, context) => {
4680
4741
  return {
4681
- ...(input.branchName !== undefined && input.branchName !== null && { branchName: input.branchName }),
4682
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
4683
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4684
- ...(input.repositoryConnectionArn !== undefined &&
4685
- input.repositoryConnectionArn !== null && { repositoryConnectionArn: input.repositoryConnectionArn }),
4686
- ...(input.repositoryId !== undefined && input.repositoryId !== null && { repositoryId: input.repositoryId }),
4687
- ...(input.spec !== undefined && input.spec !== null && { spec: input.spec }),
4688
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
4689
- ...(input.templateMajorVersion !== undefined &&
4690
- input.templateMajorVersion !== null && { templateMajorVersion: input.templateMajorVersion }),
4691
- ...(input.templateMinorVersion !== undefined &&
4692
- input.templateMinorVersion !== null && { templateMinorVersion: input.templateMinorVersion }),
4693
- ...(input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }),
4742
+ ...(input.branchName != null && { branchName: input.branchName }),
4743
+ ...(input.description != null && { description: input.description }),
4744
+ ...(input.name != null && { name: input.name }),
4745
+ ...(input.repositoryConnectionArn != null && { repositoryConnectionArn: input.repositoryConnectionArn }),
4746
+ ...(input.repositoryId != null && { repositoryId: input.repositoryId }),
4747
+ ...(input.spec != null && { spec: input.spec }),
4748
+ ...(input.tags != null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
4749
+ ...(input.templateMajorVersion != null && { templateMajorVersion: input.templateMajorVersion }),
4750
+ ...(input.templateMinorVersion != null && { templateMinorVersion: input.templateMinorVersion }),
4751
+ ...(input.templateName != null && { templateName: input.templateName }),
4694
4752
  };
4695
4753
  };
4696
4754
  const serializeAws_json1_0CreateServiceTemplateInput = (input, context) => {
4697
4755
  return {
4698
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
4699
- ...(input.displayName !== undefined && input.displayName !== null && { displayName: input.displayName }),
4700
- ...(input.encryptionKey !== undefined && input.encryptionKey !== null && { encryptionKey: input.encryptionKey }),
4701
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4702
- ...(input.pipelineProvisioning !== undefined &&
4703
- input.pipelineProvisioning !== null && { pipelineProvisioning: input.pipelineProvisioning }),
4704
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
4756
+ ...(input.description != null && { description: input.description }),
4757
+ ...(input.displayName != null && { displayName: input.displayName }),
4758
+ ...(input.encryptionKey != null && { encryptionKey: input.encryptionKey }),
4759
+ ...(input.name != null && { name: input.name }),
4760
+ ...(input.pipelineProvisioning != null && { pipelineProvisioning: input.pipelineProvisioning }),
4761
+ ...(input.tags != null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
4705
4762
  };
4706
4763
  };
4707
4764
  const serializeAws_json1_0CreateServiceTemplateVersionInput = (input, context) => {
4708
4765
  var _a;
4709
4766
  return {
4710
4767
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
4711
- ...(input.compatibleEnvironmentTemplates !== undefined &&
4712
- input.compatibleEnvironmentTemplates !== null && {
4768
+ ...(input.compatibleEnvironmentTemplates != null && {
4713
4769
  compatibleEnvironmentTemplates: serializeAws_json1_0CompatibleEnvironmentTemplateInputList(input.compatibleEnvironmentTemplates, context),
4714
4770
  }),
4715
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
4716
- ...(input.majorVersion !== undefined && input.majorVersion !== null && { majorVersion: input.majorVersion }),
4717
- ...(input.source !== undefined &&
4718
- input.source !== null && { source: serializeAws_json1_0TemplateVersionSourceInput(input.source, context) }),
4719
- ...(input.supportedComponentSources !== undefined &&
4720
- input.supportedComponentSources !== null && {
4771
+ ...(input.description != null && { description: input.description }),
4772
+ ...(input.majorVersion != null && { majorVersion: input.majorVersion }),
4773
+ ...(input.source != null && { source: serializeAws_json1_0TemplateVersionSourceInput(input.source, context) }),
4774
+ ...(input.supportedComponentSources != null && {
4721
4775
  supportedComponentSources: serializeAws_json1_0ServiceTemplateSupportedComponentSourceInputList(input.supportedComponentSources, context),
4722
4776
  }),
4723
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
4724
- ...(input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }),
4777
+ ...(input.tags != null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
4778
+ ...(input.templateName != null && { templateName: input.templateName }),
4725
4779
  };
4726
4780
  };
4727
4781
  const serializeAws_json1_0CreateTemplateSyncConfigInput = (input, context) => {
4728
4782
  return {
4729
- ...(input.branch !== undefined && input.branch !== null && { branch: input.branch }),
4730
- ...(input.repositoryName !== undefined &&
4731
- input.repositoryName !== null && { repositoryName: input.repositoryName }),
4732
- ...(input.repositoryProvider !== undefined &&
4733
- input.repositoryProvider !== null && { repositoryProvider: input.repositoryProvider }),
4734
- ...(input.subdirectory !== undefined && input.subdirectory !== null && { subdirectory: input.subdirectory }),
4735
- ...(input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }),
4736
- ...(input.templateType !== undefined && input.templateType !== null && { templateType: input.templateType }),
4783
+ ...(input.branch != null && { branch: input.branch }),
4784
+ ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
4785
+ ...(input.repositoryProvider != null && { repositoryProvider: input.repositoryProvider }),
4786
+ ...(input.subdirectory != null && { subdirectory: input.subdirectory }),
4787
+ ...(input.templateName != null && { templateName: input.templateName }),
4788
+ ...(input.templateType != null && { templateType: input.templateType }),
4737
4789
  };
4738
4790
  };
4739
4791
  const serializeAws_json1_0DeleteComponentInput = (input, context) => {
4740
4792
  return {
4741
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4793
+ ...(input.name != null && { name: input.name }),
4742
4794
  };
4743
4795
  };
4744
4796
  const serializeAws_json1_0DeleteEnvironmentAccountConnectionInput = (input, context) => {
4745
4797
  return {
4746
- ...(input.id !== undefined && input.id !== null && { id: input.id }),
4798
+ ...(input.id != null && { id: input.id }),
4747
4799
  };
4748
4800
  };
4749
4801
  const serializeAws_json1_0DeleteEnvironmentInput = (input, context) => {
4750
4802
  return {
4751
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4803
+ ...(input.name != null && { name: input.name }),
4752
4804
  };
4753
4805
  };
4754
4806
  const serializeAws_json1_0DeleteEnvironmentTemplateInput = (input, context) => {
4755
4807
  return {
4756
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4808
+ ...(input.name != null && { name: input.name }),
4757
4809
  };
4758
4810
  };
4759
4811
  const serializeAws_json1_0DeleteEnvironmentTemplateVersionInput = (input, context) => {
4760
4812
  return {
4761
- ...(input.majorVersion !== undefined && input.majorVersion !== null && { majorVersion: input.majorVersion }),
4762
- ...(input.minorVersion !== undefined && input.minorVersion !== null && { minorVersion: input.minorVersion }),
4763
- ...(input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }),
4813
+ ...(input.majorVersion != null && { majorVersion: input.majorVersion }),
4814
+ ...(input.minorVersion != null && { minorVersion: input.minorVersion }),
4815
+ ...(input.templateName != null && { templateName: input.templateName }),
4764
4816
  };
4765
4817
  };
4766
4818
  const serializeAws_json1_0DeleteRepositoryInput = (input, context) => {
4767
4819
  return {
4768
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4769
- ...(input.provider !== undefined && input.provider !== null && { provider: input.provider }),
4820
+ ...(input.name != null && { name: input.name }),
4821
+ ...(input.provider != null && { provider: input.provider }),
4770
4822
  };
4771
4823
  };
4772
4824
  const serializeAws_json1_0DeleteServiceInput = (input, context) => {
4773
4825
  return {
4774
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4826
+ ...(input.name != null && { name: input.name }),
4775
4827
  };
4776
4828
  };
4777
4829
  const serializeAws_json1_0DeleteServiceTemplateInput = (input, context) => {
4778
4830
  return {
4779
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4831
+ ...(input.name != null && { name: input.name }),
4780
4832
  };
4781
4833
  };
4782
4834
  const serializeAws_json1_0DeleteServiceTemplateVersionInput = (input, context) => {
4783
4835
  return {
4784
- ...(input.majorVersion !== undefined && input.majorVersion !== null && { majorVersion: input.majorVersion }),
4785
- ...(input.minorVersion !== undefined && input.minorVersion !== null && { minorVersion: input.minorVersion }),
4786
- ...(input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }),
4836
+ ...(input.majorVersion != null && { majorVersion: input.majorVersion }),
4837
+ ...(input.minorVersion != null && { minorVersion: input.minorVersion }),
4838
+ ...(input.templateName != null && { templateName: input.templateName }),
4787
4839
  };
4788
4840
  };
4789
4841
  const serializeAws_json1_0DeleteTemplateSyncConfigInput = (input, context) => {
4790
4842
  return {
4791
- ...(input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }),
4792
- ...(input.templateType !== undefined && input.templateType !== null && { templateType: input.templateType }),
4843
+ ...(input.templateName != null && { templateName: input.templateName }),
4844
+ ...(input.templateType != null && { templateType: input.templateType }),
4793
4845
  };
4794
4846
  };
4795
4847
  const serializeAws_json1_0EnvironmentAccountConnectionStatusList = (input, context) => {
@@ -4804,8 +4856,8 @@ const serializeAws_json1_0EnvironmentAccountConnectionStatusList = (input, conte
4804
4856
  };
4805
4857
  const serializeAws_json1_0EnvironmentTemplateFilter = (input, context) => {
4806
4858
  return {
4807
- ...(input.majorVersion !== undefined && input.majorVersion !== null && { majorVersion: input.majorVersion }),
4808
- ...(input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }),
4859
+ ...(input.majorVersion != null && { majorVersion: input.majorVersion }),
4860
+ ...(input.templateName != null && { templateName: input.templateName }),
4809
4861
  };
4810
4862
  };
4811
4863
  const serializeAws_json1_0EnvironmentTemplateFilterList = (input, context) => {
@@ -4823,250 +4875,235 @@ const serializeAws_json1_0GetAccountSettingsInput = (input, context) => {
4823
4875
  };
4824
4876
  const serializeAws_json1_0GetComponentInput = (input, context) => {
4825
4877
  return {
4826
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4878
+ ...(input.name != null && { name: input.name }),
4827
4879
  };
4828
4880
  };
4829
4881
  const serializeAws_json1_0GetEnvironmentAccountConnectionInput = (input, context) => {
4830
4882
  return {
4831
- ...(input.id !== undefined && input.id !== null && { id: input.id }),
4883
+ ...(input.id != null && { id: input.id }),
4832
4884
  };
4833
4885
  };
4834
4886
  const serializeAws_json1_0GetEnvironmentInput = (input, context) => {
4835
4887
  return {
4836
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4888
+ ...(input.name != null && { name: input.name }),
4837
4889
  };
4838
4890
  };
4839
4891
  const serializeAws_json1_0GetEnvironmentTemplateInput = (input, context) => {
4840
4892
  return {
4841
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4893
+ ...(input.name != null && { name: input.name }),
4842
4894
  };
4843
4895
  };
4844
4896
  const serializeAws_json1_0GetEnvironmentTemplateVersionInput = (input, context) => {
4845
4897
  return {
4846
- ...(input.majorVersion !== undefined && input.majorVersion !== null && { majorVersion: input.majorVersion }),
4847
- ...(input.minorVersion !== undefined && input.minorVersion !== null && { minorVersion: input.minorVersion }),
4848
- ...(input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }),
4898
+ ...(input.majorVersion != null && { majorVersion: input.majorVersion }),
4899
+ ...(input.minorVersion != null && { minorVersion: input.minorVersion }),
4900
+ ...(input.templateName != null && { templateName: input.templateName }),
4849
4901
  };
4850
4902
  };
4851
4903
  const serializeAws_json1_0GetRepositoryInput = (input, context) => {
4852
4904
  return {
4853
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4854
- ...(input.provider !== undefined && input.provider !== null && { provider: input.provider }),
4905
+ ...(input.name != null && { name: input.name }),
4906
+ ...(input.provider != null && { provider: input.provider }),
4855
4907
  };
4856
4908
  };
4857
4909
  const serializeAws_json1_0GetRepositorySyncStatusInput = (input, context) => {
4858
4910
  return {
4859
- ...(input.branch !== undefined && input.branch !== null && { branch: input.branch }),
4860
- ...(input.repositoryName !== undefined &&
4861
- input.repositoryName !== null && { repositoryName: input.repositoryName }),
4862
- ...(input.repositoryProvider !== undefined &&
4863
- input.repositoryProvider !== null && { repositoryProvider: input.repositoryProvider }),
4864
- ...(input.syncType !== undefined && input.syncType !== null && { syncType: input.syncType }),
4911
+ ...(input.branch != null && { branch: input.branch }),
4912
+ ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
4913
+ ...(input.repositoryProvider != null && { repositoryProvider: input.repositoryProvider }),
4914
+ ...(input.syncType != null && { syncType: input.syncType }),
4865
4915
  };
4866
4916
  };
4867
4917
  const serializeAws_json1_0GetServiceInput = (input, context) => {
4868
4918
  return {
4869
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4919
+ ...(input.name != null && { name: input.name }),
4870
4920
  };
4871
4921
  };
4872
4922
  const serializeAws_json1_0GetServiceInstanceInput = (input, context) => {
4873
4923
  return {
4874
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4875
- ...(input.serviceName !== undefined && input.serviceName !== null && { serviceName: input.serviceName }),
4924
+ ...(input.name != null && { name: input.name }),
4925
+ ...(input.serviceName != null && { serviceName: input.serviceName }),
4876
4926
  };
4877
4927
  };
4878
4928
  const serializeAws_json1_0GetServiceTemplateInput = (input, context) => {
4879
4929
  return {
4880
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4930
+ ...(input.name != null && { name: input.name }),
4881
4931
  };
4882
4932
  };
4883
4933
  const serializeAws_json1_0GetServiceTemplateVersionInput = (input, context) => {
4884
4934
  return {
4885
- ...(input.majorVersion !== undefined && input.majorVersion !== null && { majorVersion: input.majorVersion }),
4886
- ...(input.minorVersion !== undefined && input.minorVersion !== null && { minorVersion: input.minorVersion }),
4887
- ...(input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }),
4935
+ ...(input.majorVersion != null && { majorVersion: input.majorVersion }),
4936
+ ...(input.minorVersion != null && { minorVersion: input.minorVersion }),
4937
+ ...(input.templateName != null && { templateName: input.templateName }),
4888
4938
  };
4889
4939
  };
4890
4940
  const serializeAws_json1_0GetTemplateSyncConfigInput = (input, context) => {
4891
4941
  return {
4892
- ...(input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }),
4893
- ...(input.templateType !== undefined && input.templateType !== null && { templateType: input.templateType }),
4942
+ ...(input.templateName != null && { templateName: input.templateName }),
4943
+ ...(input.templateType != null && { templateType: input.templateType }),
4894
4944
  };
4895
4945
  };
4896
4946
  const serializeAws_json1_0GetTemplateSyncStatusInput = (input, context) => {
4897
4947
  return {
4898
- ...(input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }),
4899
- ...(input.templateType !== undefined && input.templateType !== null && { templateType: input.templateType }),
4900
- ...(input.templateVersion !== undefined &&
4901
- input.templateVersion !== null && { templateVersion: input.templateVersion }),
4948
+ ...(input.templateName != null && { templateName: input.templateName }),
4949
+ ...(input.templateType != null && { templateType: input.templateType }),
4950
+ ...(input.templateVersion != null && { templateVersion: input.templateVersion }),
4902
4951
  };
4903
4952
  };
4904
4953
  const serializeAws_json1_0ListComponentOutputsInput = (input, context) => {
4905
4954
  return {
4906
- ...(input.componentName !== undefined && input.componentName !== null && { componentName: input.componentName }),
4907
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4955
+ ...(input.componentName != null && { componentName: input.componentName }),
4956
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4908
4957
  };
4909
4958
  };
4910
4959
  const serializeAws_json1_0ListComponentProvisionedResourcesInput = (input, context) => {
4911
4960
  return {
4912
- ...(input.componentName !== undefined && input.componentName !== null && { componentName: input.componentName }),
4913
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4961
+ ...(input.componentName != null && { componentName: input.componentName }),
4962
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4914
4963
  };
4915
4964
  };
4916
4965
  const serializeAws_json1_0ListComponentsInput = (input, context) => {
4917
4966
  return {
4918
- ...(input.environmentName !== undefined &&
4919
- input.environmentName !== null && { environmentName: input.environmentName }),
4920
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
4921
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4922
- ...(input.serviceInstanceName !== undefined &&
4923
- input.serviceInstanceName !== null && { serviceInstanceName: input.serviceInstanceName }),
4924
- ...(input.serviceName !== undefined && input.serviceName !== null && { serviceName: input.serviceName }),
4967
+ ...(input.environmentName != null && { environmentName: input.environmentName }),
4968
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
4969
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4970
+ ...(input.serviceInstanceName != null && { serviceInstanceName: input.serviceInstanceName }),
4971
+ ...(input.serviceName != null && { serviceName: input.serviceName }),
4925
4972
  };
4926
4973
  };
4927
4974
  const serializeAws_json1_0ListEnvironmentAccountConnectionsInput = (input, context) => {
4928
4975
  return {
4929
- ...(input.environmentName !== undefined &&
4930
- input.environmentName !== null && { environmentName: input.environmentName }),
4931
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
4932
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4933
- ...(input.requestedBy !== undefined && input.requestedBy !== null && { requestedBy: input.requestedBy }),
4934
- ...(input.statuses !== undefined &&
4935
- input.statuses !== null && {
4976
+ ...(input.environmentName != null && { environmentName: input.environmentName }),
4977
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
4978
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4979
+ ...(input.requestedBy != null && { requestedBy: input.requestedBy }),
4980
+ ...(input.statuses != null && {
4936
4981
  statuses: serializeAws_json1_0EnvironmentAccountConnectionStatusList(input.statuses, context),
4937
4982
  }),
4938
4983
  };
4939
4984
  };
4940
4985
  const serializeAws_json1_0ListEnvironmentOutputsInput = (input, context) => {
4941
4986
  return {
4942
- ...(input.environmentName !== undefined &&
4943
- input.environmentName !== null && { environmentName: input.environmentName }),
4944
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4987
+ ...(input.environmentName != null && { environmentName: input.environmentName }),
4988
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4945
4989
  };
4946
4990
  };
4947
4991
  const serializeAws_json1_0ListEnvironmentProvisionedResourcesInput = (input, context) => {
4948
4992
  return {
4949
- ...(input.environmentName !== undefined &&
4950
- input.environmentName !== null && { environmentName: input.environmentName }),
4951
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4993
+ ...(input.environmentName != null && { environmentName: input.environmentName }),
4994
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4952
4995
  };
4953
4996
  };
4954
4997
  const serializeAws_json1_0ListEnvironmentsInput = (input, context) => {
4955
4998
  return {
4956
- ...(input.environmentTemplates !== undefined &&
4957
- input.environmentTemplates !== null && {
4999
+ ...(input.environmentTemplates != null && {
4958
5000
  environmentTemplates: serializeAws_json1_0EnvironmentTemplateFilterList(input.environmentTemplates, context),
4959
5001
  }),
4960
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
4961
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
5002
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
5003
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4962
5004
  };
4963
5005
  };
4964
5006
  const serializeAws_json1_0ListEnvironmentTemplatesInput = (input, context) => {
4965
5007
  return {
4966
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
4967
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
5008
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
5009
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4968
5010
  };
4969
5011
  };
4970
5012
  const serializeAws_json1_0ListEnvironmentTemplateVersionsInput = (input, context) => {
4971
5013
  return {
4972
- ...(input.majorVersion !== undefined && input.majorVersion !== null && { majorVersion: input.majorVersion }),
4973
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
4974
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4975
- ...(input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }),
5014
+ ...(input.majorVersion != null && { majorVersion: input.majorVersion }),
5015
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
5016
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
5017
+ ...(input.templateName != null && { templateName: input.templateName }),
4976
5018
  };
4977
5019
  };
4978
5020
  const serializeAws_json1_0ListRepositoriesInput = (input, context) => {
4979
5021
  return {
4980
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
4981
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
5022
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
5023
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
4982
5024
  };
4983
5025
  };
4984
5026
  const serializeAws_json1_0ListRepositorySyncDefinitionsInput = (input, context) => {
4985
5027
  return {
4986
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4987
- ...(input.repositoryName !== undefined &&
4988
- input.repositoryName !== null && { repositoryName: input.repositoryName }),
4989
- ...(input.repositoryProvider !== undefined &&
4990
- input.repositoryProvider !== null && { repositoryProvider: input.repositoryProvider }),
4991
- ...(input.syncType !== undefined && input.syncType !== null && { syncType: input.syncType }),
5028
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
5029
+ ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
5030
+ ...(input.repositoryProvider != null && { repositoryProvider: input.repositoryProvider }),
5031
+ ...(input.syncType != null && { syncType: input.syncType }),
4992
5032
  };
4993
5033
  };
4994
5034
  const serializeAws_json1_0ListServiceInstanceOutputsInput = (input, context) => {
4995
5035
  return {
4996
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4997
- ...(input.serviceInstanceName !== undefined &&
4998
- input.serviceInstanceName !== null && { serviceInstanceName: input.serviceInstanceName }),
4999
- ...(input.serviceName !== undefined && input.serviceName !== null && { serviceName: input.serviceName }),
5036
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
5037
+ ...(input.serviceInstanceName != null && { serviceInstanceName: input.serviceInstanceName }),
5038
+ ...(input.serviceName != null && { serviceName: input.serviceName }),
5000
5039
  };
5001
5040
  };
5002
5041
  const serializeAws_json1_0ListServiceInstanceProvisionedResourcesInput = (input, context) => {
5003
5042
  return {
5004
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
5005
- ...(input.serviceInstanceName !== undefined &&
5006
- input.serviceInstanceName !== null && { serviceInstanceName: input.serviceInstanceName }),
5007
- ...(input.serviceName !== undefined && input.serviceName !== null && { serviceName: input.serviceName }),
5043
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
5044
+ ...(input.serviceInstanceName != null && { serviceInstanceName: input.serviceInstanceName }),
5045
+ ...(input.serviceName != null && { serviceName: input.serviceName }),
5008
5046
  };
5009
5047
  };
5010
5048
  const serializeAws_json1_0ListServiceInstancesInput = (input, context) => {
5011
5049
  return {
5012
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
5013
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
5014
- ...(input.serviceName !== undefined && input.serviceName !== null && { serviceName: input.serviceName }),
5050
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
5051
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
5052
+ ...(input.serviceName != null && { serviceName: input.serviceName }),
5015
5053
  };
5016
5054
  };
5017
5055
  const serializeAws_json1_0ListServicePipelineOutputsInput = (input, context) => {
5018
5056
  return {
5019
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
5020
- ...(input.serviceName !== undefined && input.serviceName !== null && { serviceName: input.serviceName }),
5057
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
5058
+ ...(input.serviceName != null && { serviceName: input.serviceName }),
5021
5059
  };
5022
5060
  };
5023
5061
  const serializeAws_json1_0ListServicePipelineProvisionedResourcesInput = (input, context) => {
5024
5062
  return {
5025
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
5026
- ...(input.serviceName !== undefined && input.serviceName !== null && { serviceName: input.serviceName }),
5063
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
5064
+ ...(input.serviceName != null && { serviceName: input.serviceName }),
5027
5065
  };
5028
5066
  };
5029
5067
  const serializeAws_json1_0ListServicesInput = (input, context) => {
5030
5068
  return {
5031
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
5032
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
5069
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
5070
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
5033
5071
  };
5034
5072
  };
5035
5073
  const serializeAws_json1_0ListServiceTemplatesInput = (input, context) => {
5036
5074
  return {
5037
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
5038
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
5075
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
5076
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
5039
5077
  };
5040
5078
  };
5041
5079
  const serializeAws_json1_0ListServiceTemplateVersionsInput = (input, context) => {
5042
5080
  return {
5043
- ...(input.majorVersion !== undefined && input.majorVersion !== null && { majorVersion: input.majorVersion }),
5044
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
5045
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
5046
- ...(input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }),
5081
+ ...(input.majorVersion != null && { majorVersion: input.majorVersion }),
5082
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
5083
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
5084
+ ...(input.templateName != null && { templateName: input.templateName }),
5047
5085
  };
5048
5086
  };
5049
5087
  const serializeAws_json1_0ListTagsForResourceInput = (input, context) => {
5050
5088
  return {
5051
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
5052
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
5053
- ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
5089
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
5090
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
5091
+ ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
5054
5092
  };
5055
5093
  };
5056
5094
  const serializeAws_json1_0NotifyResourceDeploymentStatusChangeInput = (input, context) => {
5057
5095
  return {
5058
- ...(input.deploymentId !== undefined && input.deploymentId !== null && { deploymentId: input.deploymentId }),
5059
- ...(input.outputs !== undefined &&
5060
- input.outputs !== null && { outputs: serializeAws_json1_0OutputsList(input.outputs, context) }),
5061
- ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
5062
- ...(input.status !== undefined && input.status !== null && { status: input.status }),
5063
- ...(input.statusMessage !== undefined && input.statusMessage !== null && { statusMessage: input.statusMessage }),
5096
+ ...(input.deploymentId != null && { deploymentId: input.deploymentId }),
5097
+ ...(input.outputs != null && { outputs: serializeAws_json1_0OutputsList(input.outputs, context) }),
5098
+ ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
5099
+ ...(input.status != null && { status: input.status }),
5100
+ ...(input.statusMessage != null && { statusMessage: input.statusMessage }),
5064
5101
  };
5065
5102
  };
5066
5103
  const serializeAws_json1_0Output = (input, context) => {
5067
5104
  return {
5068
- ...(input.key !== undefined && input.key !== null && { key: input.key }),
5069
- ...(input.valueString !== undefined && input.valueString !== null && { valueString: input.valueString }),
5105
+ ...(input.key != null && { key: input.key }),
5106
+ ...(input.valueString != null && { valueString: input.valueString }),
5070
5107
  };
5071
5108
  };
5072
5109
  const serializeAws_json1_0OutputsList = (input, context) => {
@@ -5081,20 +5118,20 @@ const serializeAws_json1_0OutputsList = (input, context) => {
5081
5118
  };
5082
5119
  const serializeAws_json1_0RejectEnvironmentAccountConnectionInput = (input, context) => {
5083
5120
  return {
5084
- ...(input.id !== undefined && input.id !== null && { id: input.id }),
5121
+ ...(input.id != null && { id: input.id }),
5085
5122
  };
5086
5123
  };
5087
5124
  const serializeAws_json1_0RepositoryBranchInput = (input, context) => {
5088
5125
  return {
5089
- ...(input.branch !== undefined && input.branch !== null && { branch: input.branch }),
5090
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
5091
- ...(input.provider !== undefined && input.provider !== null && { provider: input.provider }),
5126
+ ...(input.branch != null && { branch: input.branch }),
5127
+ ...(input.name != null && { name: input.name }),
5128
+ ...(input.provider != null && { provider: input.provider }),
5092
5129
  };
5093
5130
  };
5094
5131
  const serializeAws_json1_0S3ObjectSource = (input, context) => {
5095
5132
  return {
5096
- ...(input.bucket !== undefined && input.bucket !== null && { bucket: input.bucket }),
5097
- ...(input.key !== undefined && input.key !== null && { key: input.key }),
5133
+ ...(input.bucket != null && { bucket: input.bucket }),
5134
+ ...(input.key != null && { key: input.key }),
5098
5135
  };
5099
5136
  };
5100
5137
  const serializeAws_json1_0ServiceTemplateSupportedComponentSourceInputList = (input, context) => {
@@ -5109,8 +5146,8 @@ const serializeAws_json1_0ServiceTemplateSupportedComponentSourceInputList = (in
5109
5146
  };
5110
5147
  const serializeAws_json1_0Tag = (input, context) => {
5111
5148
  return {
5112
- ...(input.key !== undefined && input.key !== null && { key: input.key }),
5113
- ...(input.value !== undefined && input.value !== null && { value: input.value }),
5149
+ ...(input.key != null && { key: input.key }),
5150
+ ...(input.value != null && { value: input.value }),
5114
5151
  };
5115
5152
  };
5116
5153
  const serializeAws_json1_0TagKeyList = (input, context) => {
@@ -5135,8 +5172,8 @@ const serializeAws_json1_0TagList = (input, context) => {
5135
5172
  };
5136
5173
  const serializeAws_json1_0TagResourceInput = (input, context) => {
5137
5174
  return {
5138
- ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
5139
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
5175
+ ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
5176
+ ...(input.tags != null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
5140
5177
  };
5141
5178
  };
5142
5179
  const serializeAws_json1_0TemplateVersionSourceInput = (input, context) => {
@@ -5147,154 +5184,131 @@ const serializeAws_json1_0TemplateVersionSourceInput = (input, context) => {
5147
5184
  };
5148
5185
  const serializeAws_json1_0UntagResourceInput = (input, context) => {
5149
5186
  return {
5150
- ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
5151
- ...(input.tagKeys !== undefined &&
5152
- input.tagKeys !== null && { tagKeys: serializeAws_json1_0TagKeyList(input.tagKeys, context) }),
5187
+ ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
5188
+ ...(input.tagKeys != null && { tagKeys: serializeAws_json1_0TagKeyList(input.tagKeys, context) }),
5153
5189
  };
5154
5190
  };
5155
5191
  const serializeAws_json1_0UpdateAccountSettingsInput = (input, context) => {
5156
5192
  return {
5157
- ...(input.pipelineProvisioningRepository !== undefined &&
5158
- input.pipelineProvisioningRepository !== null && {
5193
+ ...(input.pipelineProvisioningRepository != null && {
5159
5194
  pipelineProvisioningRepository: serializeAws_json1_0RepositoryBranchInput(input.pipelineProvisioningRepository, context),
5160
5195
  }),
5161
- ...(input.pipelineServiceRoleArn !== undefined &&
5162
- input.pipelineServiceRoleArn !== null && { pipelineServiceRoleArn: input.pipelineServiceRoleArn }),
5196
+ ...(input.pipelineServiceRoleArn != null && { pipelineServiceRoleArn: input.pipelineServiceRoleArn }),
5163
5197
  };
5164
5198
  };
5165
5199
  const serializeAws_json1_0UpdateComponentInput = (input, context) => {
5166
5200
  return {
5167
- ...(input.deploymentType !== undefined &&
5168
- input.deploymentType !== null && { deploymentType: input.deploymentType }),
5169
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
5170
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
5171
- ...(input.serviceInstanceName !== undefined &&
5172
- input.serviceInstanceName !== null && { serviceInstanceName: input.serviceInstanceName }),
5173
- ...(input.serviceName !== undefined && input.serviceName !== null && { serviceName: input.serviceName }),
5174
- ...(input.serviceSpec !== undefined && input.serviceSpec !== null && { serviceSpec: input.serviceSpec }),
5175
- ...(input.templateFile !== undefined && input.templateFile !== null && { templateFile: input.templateFile }),
5201
+ ...(input.deploymentType != null && { deploymentType: input.deploymentType }),
5202
+ ...(input.description != null && { description: input.description }),
5203
+ ...(input.name != null && { name: input.name }),
5204
+ ...(input.serviceInstanceName != null && { serviceInstanceName: input.serviceInstanceName }),
5205
+ ...(input.serviceName != null && { serviceName: input.serviceName }),
5206
+ ...(input.serviceSpec != null && { serviceSpec: input.serviceSpec }),
5207
+ ...(input.templateFile != null && { templateFile: input.templateFile }),
5176
5208
  };
5177
5209
  };
5178
5210
  const serializeAws_json1_0UpdateEnvironmentAccountConnectionInput = (input, context) => {
5179
5211
  return {
5180
- ...(input.componentRoleArn !== undefined &&
5181
- input.componentRoleArn !== null && { componentRoleArn: input.componentRoleArn }),
5182
- ...(input.id !== undefined && input.id !== null && { id: input.id }),
5183
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
5212
+ ...(input.componentRoleArn != null && { componentRoleArn: input.componentRoleArn }),
5213
+ ...(input.id != null && { id: input.id }),
5214
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
5184
5215
  };
5185
5216
  };
5186
5217
  const serializeAws_json1_0UpdateEnvironmentInput = (input, context) => {
5187
5218
  return {
5188
- ...(input.componentRoleArn !== undefined &&
5189
- input.componentRoleArn !== null && { componentRoleArn: input.componentRoleArn }),
5190
- ...(input.deploymentType !== undefined &&
5191
- input.deploymentType !== null && { deploymentType: input.deploymentType }),
5192
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
5193
- ...(input.environmentAccountConnectionId !== undefined &&
5194
- input.environmentAccountConnectionId !== null && {
5219
+ ...(input.componentRoleArn != null && { componentRoleArn: input.componentRoleArn }),
5220
+ ...(input.deploymentType != null && { deploymentType: input.deploymentType }),
5221
+ ...(input.description != null && { description: input.description }),
5222
+ ...(input.environmentAccountConnectionId != null && {
5195
5223
  environmentAccountConnectionId: input.environmentAccountConnectionId,
5196
5224
  }),
5197
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
5198
- ...(input.protonServiceRoleArn !== undefined &&
5199
- input.protonServiceRoleArn !== null && { protonServiceRoleArn: input.protonServiceRoleArn }),
5200
- ...(input.provisioningRepository !== undefined &&
5201
- input.provisioningRepository !== null && {
5225
+ ...(input.name != null && { name: input.name }),
5226
+ ...(input.protonServiceRoleArn != null && { protonServiceRoleArn: input.protonServiceRoleArn }),
5227
+ ...(input.provisioningRepository != null && {
5202
5228
  provisioningRepository: serializeAws_json1_0RepositoryBranchInput(input.provisioningRepository, context),
5203
5229
  }),
5204
- ...(input.spec !== undefined && input.spec !== null && { spec: input.spec }),
5205
- ...(input.templateMajorVersion !== undefined &&
5206
- input.templateMajorVersion !== null && { templateMajorVersion: input.templateMajorVersion }),
5207
- ...(input.templateMinorVersion !== undefined &&
5208
- input.templateMinorVersion !== null && { templateMinorVersion: input.templateMinorVersion }),
5230
+ ...(input.spec != null && { spec: input.spec }),
5231
+ ...(input.templateMajorVersion != null && { templateMajorVersion: input.templateMajorVersion }),
5232
+ ...(input.templateMinorVersion != null && { templateMinorVersion: input.templateMinorVersion }),
5209
5233
  };
5210
5234
  };
5211
5235
  const serializeAws_json1_0UpdateEnvironmentTemplateInput = (input, context) => {
5212
5236
  return {
5213
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
5214
- ...(input.displayName !== undefined && input.displayName !== null && { displayName: input.displayName }),
5215
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
5237
+ ...(input.description != null && { description: input.description }),
5238
+ ...(input.displayName != null && { displayName: input.displayName }),
5239
+ ...(input.name != null && { name: input.name }),
5216
5240
  };
5217
5241
  };
5218
5242
  const serializeAws_json1_0UpdateEnvironmentTemplateVersionInput = (input, context) => {
5219
5243
  return {
5220
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
5221
- ...(input.majorVersion !== undefined && input.majorVersion !== null && { majorVersion: input.majorVersion }),
5222
- ...(input.minorVersion !== undefined && input.minorVersion !== null && { minorVersion: input.minorVersion }),
5223
- ...(input.status !== undefined && input.status !== null && { status: input.status }),
5224
- ...(input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }),
5244
+ ...(input.description != null && { description: input.description }),
5245
+ ...(input.majorVersion != null && { majorVersion: input.majorVersion }),
5246
+ ...(input.minorVersion != null && { minorVersion: input.minorVersion }),
5247
+ ...(input.status != null && { status: input.status }),
5248
+ ...(input.templateName != null && { templateName: input.templateName }),
5225
5249
  };
5226
5250
  };
5227
5251
  const serializeAws_json1_0UpdateServiceInput = (input, context) => {
5228
5252
  return {
5229
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
5230
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
5231
- ...(input.spec !== undefined && input.spec !== null && { spec: input.spec }),
5253
+ ...(input.description != null && { description: input.description }),
5254
+ ...(input.name != null && { name: input.name }),
5255
+ ...(input.spec != null && { spec: input.spec }),
5232
5256
  };
5233
5257
  };
5234
5258
  const serializeAws_json1_0UpdateServiceInstanceInput = (input, context) => {
5235
5259
  return {
5236
- ...(input.deploymentType !== undefined &&
5237
- input.deploymentType !== null && { deploymentType: input.deploymentType }),
5238
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
5239
- ...(input.serviceName !== undefined && input.serviceName !== null && { serviceName: input.serviceName }),
5240
- ...(input.spec !== undefined && input.spec !== null && { spec: input.spec }),
5241
- ...(input.templateMajorVersion !== undefined &&
5242
- input.templateMajorVersion !== null && { templateMajorVersion: input.templateMajorVersion }),
5243
- ...(input.templateMinorVersion !== undefined &&
5244
- input.templateMinorVersion !== null && { templateMinorVersion: input.templateMinorVersion }),
5260
+ ...(input.deploymentType != null && { deploymentType: input.deploymentType }),
5261
+ ...(input.name != null && { name: input.name }),
5262
+ ...(input.serviceName != null && { serviceName: input.serviceName }),
5263
+ ...(input.spec != null && { spec: input.spec }),
5264
+ ...(input.templateMajorVersion != null && { templateMajorVersion: input.templateMajorVersion }),
5265
+ ...(input.templateMinorVersion != null && { templateMinorVersion: input.templateMinorVersion }),
5245
5266
  };
5246
5267
  };
5247
5268
  const serializeAws_json1_0UpdateServicePipelineInput = (input, context) => {
5248
5269
  return {
5249
- ...(input.deploymentType !== undefined &&
5250
- input.deploymentType !== null && { deploymentType: input.deploymentType }),
5251
- ...(input.serviceName !== undefined && input.serviceName !== null && { serviceName: input.serviceName }),
5252
- ...(input.spec !== undefined && input.spec !== null && { spec: input.spec }),
5253
- ...(input.templateMajorVersion !== undefined &&
5254
- input.templateMajorVersion !== null && { templateMajorVersion: input.templateMajorVersion }),
5255
- ...(input.templateMinorVersion !== undefined &&
5256
- input.templateMinorVersion !== null && { templateMinorVersion: input.templateMinorVersion }),
5270
+ ...(input.deploymentType != null && { deploymentType: input.deploymentType }),
5271
+ ...(input.serviceName != null && { serviceName: input.serviceName }),
5272
+ ...(input.spec != null && { spec: input.spec }),
5273
+ ...(input.templateMajorVersion != null && { templateMajorVersion: input.templateMajorVersion }),
5274
+ ...(input.templateMinorVersion != null && { templateMinorVersion: input.templateMinorVersion }),
5257
5275
  };
5258
5276
  };
5259
5277
  const serializeAws_json1_0UpdateServiceTemplateInput = (input, context) => {
5260
5278
  return {
5261
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
5262
- ...(input.displayName !== undefined && input.displayName !== null && { displayName: input.displayName }),
5263
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
5279
+ ...(input.description != null && { description: input.description }),
5280
+ ...(input.displayName != null && { displayName: input.displayName }),
5281
+ ...(input.name != null && { name: input.name }),
5264
5282
  };
5265
5283
  };
5266
5284
  const serializeAws_json1_0UpdateServiceTemplateVersionInput = (input, context) => {
5267
5285
  return {
5268
- ...(input.compatibleEnvironmentTemplates !== undefined &&
5269
- input.compatibleEnvironmentTemplates !== null && {
5286
+ ...(input.compatibleEnvironmentTemplates != null && {
5270
5287
  compatibleEnvironmentTemplates: serializeAws_json1_0CompatibleEnvironmentTemplateInputList(input.compatibleEnvironmentTemplates, context),
5271
5288
  }),
5272
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
5273
- ...(input.majorVersion !== undefined && input.majorVersion !== null && { majorVersion: input.majorVersion }),
5274
- ...(input.minorVersion !== undefined && input.minorVersion !== null && { minorVersion: input.minorVersion }),
5275
- ...(input.status !== undefined && input.status !== null && { status: input.status }),
5276
- ...(input.supportedComponentSources !== undefined &&
5277
- input.supportedComponentSources !== null && {
5289
+ ...(input.description != null && { description: input.description }),
5290
+ ...(input.majorVersion != null && { majorVersion: input.majorVersion }),
5291
+ ...(input.minorVersion != null && { minorVersion: input.minorVersion }),
5292
+ ...(input.status != null && { status: input.status }),
5293
+ ...(input.supportedComponentSources != null && {
5278
5294
  supportedComponentSources: serializeAws_json1_0ServiceTemplateSupportedComponentSourceInputList(input.supportedComponentSources, context),
5279
5295
  }),
5280
- ...(input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }),
5296
+ ...(input.templateName != null && { templateName: input.templateName }),
5281
5297
  };
5282
5298
  };
5283
5299
  const serializeAws_json1_0UpdateTemplateSyncConfigInput = (input, context) => {
5284
5300
  return {
5285
- ...(input.branch !== undefined && input.branch !== null && { branch: input.branch }),
5286
- ...(input.repositoryName !== undefined &&
5287
- input.repositoryName !== null && { repositoryName: input.repositoryName }),
5288
- ...(input.repositoryProvider !== undefined &&
5289
- input.repositoryProvider !== null && { repositoryProvider: input.repositoryProvider }),
5290
- ...(input.subdirectory !== undefined && input.subdirectory !== null && { subdirectory: input.subdirectory }),
5291
- ...(input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }),
5292
- ...(input.templateType !== undefined && input.templateType !== null && { templateType: input.templateType }),
5301
+ ...(input.branch != null && { branch: input.branch }),
5302
+ ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
5303
+ ...(input.repositoryProvider != null && { repositoryProvider: input.repositoryProvider }),
5304
+ ...(input.subdirectory != null && { subdirectory: input.subdirectory }),
5305
+ ...(input.templateName != null && { templateName: input.templateName }),
5306
+ ...(input.templateType != null && { templateType: input.templateType }),
5293
5307
  };
5294
5308
  };
5295
5309
  const deserializeAws_json1_0AcceptEnvironmentAccountConnectionOutput = (output, context) => {
5296
5310
  return {
5297
- environmentAccountConnection: output.environmentAccountConnection !== undefined && output.environmentAccountConnection !== null
5311
+ environmentAccountConnection: output.environmentAccountConnection != null
5298
5312
  ? deserializeAws_json1_0EnvironmentAccountConnection(output.environmentAccountConnection, context)
5299
5313
  : undefined,
5300
5314
  };
@@ -5306,7 +5320,7 @@ const deserializeAws_json1_0AccessDeniedException = (output, context) => {
5306
5320
  };
5307
5321
  const deserializeAws_json1_0AccountSettings = (output, context) => {
5308
5322
  return {
5309
- pipelineProvisioningRepository: output.pipelineProvisioningRepository !== undefined && output.pipelineProvisioningRepository !== null
5323
+ pipelineProvisioningRepository: output.pipelineProvisioningRepository != null
5310
5324
  ? deserializeAws_json1_0RepositoryBranch(output.pipelineProvisioningRepository, context)
5311
5325
  : undefined,
5312
5326
  pipelineServiceRoleArn: (0, smithy_client_1.expectString)(output.pipelineServiceRoleArn),
@@ -5314,30 +5328,24 @@ const deserializeAws_json1_0AccountSettings = (output, context) => {
5314
5328
  };
5315
5329
  const deserializeAws_json1_0CancelComponentDeploymentOutput = (output, context) => {
5316
5330
  return {
5317
- component: output.component !== undefined && output.component !== null
5318
- ? deserializeAws_json1_0Component(output.component, context)
5319
- : undefined,
5331
+ component: output.component != null ? deserializeAws_json1_0Component(output.component, context) : undefined,
5320
5332
  };
5321
5333
  };
5322
5334
  const deserializeAws_json1_0CancelEnvironmentDeploymentOutput = (output, context) => {
5323
5335
  return {
5324
- environment: output.environment !== undefined && output.environment !== null
5325
- ? deserializeAws_json1_0Environment(output.environment, context)
5326
- : undefined,
5336
+ environment: output.environment != null ? deserializeAws_json1_0Environment(output.environment, context) : undefined,
5327
5337
  };
5328
5338
  };
5329
5339
  const deserializeAws_json1_0CancelServiceInstanceDeploymentOutput = (output, context) => {
5330
5340
  return {
5331
- serviceInstance: output.serviceInstance !== undefined && output.serviceInstance !== null
5341
+ serviceInstance: output.serviceInstance != null
5332
5342
  ? deserializeAws_json1_0ServiceInstance(output.serviceInstance, context)
5333
5343
  : undefined,
5334
5344
  };
5335
5345
  };
5336
5346
  const deserializeAws_json1_0CancelServicePipelineDeploymentOutput = (output, context) => {
5337
5347
  return {
5338
- pipeline: output.pipeline !== undefined && output.pipeline !== null
5339
- ? deserializeAws_json1_0ServicePipeline(output.pipeline, context)
5340
- : undefined,
5348
+ pipeline: output.pipeline != null ? deserializeAws_json1_0ServicePipeline(output.pipeline, context) : undefined,
5341
5349
  };
5342
5350
  };
5343
5351
  const deserializeAws_json1_0CompatibleEnvironmentTemplate = (output, context) => {
@@ -5360,20 +5368,18 @@ const deserializeAws_json1_0CompatibleEnvironmentTemplateList = (output, context
5360
5368
  const deserializeAws_json1_0Component = (output, context) => {
5361
5369
  return {
5362
5370
  arn: (0, smithy_client_1.expectString)(output.arn),
5363
- createdAt: output.createdAt !== undefined && output.createdAt !== null
5364
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
5365
- : undefined,
5371
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
5366
5372
  deploymentStatus: (0, smithy_client_1.expectString)(output.deploymentStatus),
5367
5373
  deploymentStatusMessage: (0, smithy_client_1.expectString)(output.deploymentStatusMessage),
5368
5374
  description: (0, smithy_client_1.expectString)(output.description),
5369
5375
  environmentName: (0, smithy_client_1.expectString)(output.environmentName),
5370
- lastDeploymentAttemptedAt: output.lastDeploymentAttemptedAt !== undefined && output.lastDeploymentAttemptedAt !== null
5376
+ lastDeploymentAttemptedAt: output.lastDeploymentAttemptedAt != null
5371
5377
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastDeploymentAttemptedAt)))
5372
5378
  : undefined,
5373
- lastDeploymentSucceededAt: output.lastDeploymentSucceededAt !== undefined && output.lastDeploymentSucceededAt !== null
5379
+ lastDeploymentSucceededAt: output.lastDeploymentSucceededAt != null
5374
5380
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastDeploymentSucceededAt)))
5375
5381
  : undefined,
5376
- lastModifiedAt: output.lastModifiedAt !== undefined && output.lastModifiedAt !== null
5382
+ lastModifiedAt: output.lastModifiedAt != null
5377
5383
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedAt)))
5378
5384
  : undefined,
5379
5385
  name: (0, smithy_client_1.expectString)(output.name),
@@ -5385,19 +5391,17 @@ const deserializeAws_json1_0Component = (output, context) => {
5385
5391
  const deserializeAws_json1_0ComponentSummary = (output, context) => {
5386
5392
  return {
5387
5393
  arn: (0, smithy_client_1.expectString)(output.arn),
5388
- createdAt: output.createdAt !== undefined && output.createdAt !== null
5389
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
5390
- : undefined,
5394
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
5391
5395
  deploymentStatus: (0, smithy_client_1.expectString)(output.deploymentStatus),
5392
5396
  deploymentStatusMessage: (0, smithy_client_1.expectString)(output.deploymentStatusMessage),
5393
5397
  environmentName: (0, smithy_client_1.expectString)(output.environmentName),
5394
- lastDeploymentAttemptedAt: output.lastDeploymentAttemptedAt !== undefined && output.lastDeploymentAttemptedAt !== null
5398
+ lastDeploymentAttemptedAt: output.lastDeploymentAttemptedAt != null
5395
5399
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastDeploymentAttemptedAt)))
5396
5400
  : undefined,
5397
- lastDeploymentSucceededAt: output.lastDeploymentSucceededAt !== undefined && output.lastDeploymentSucceededAt !== null
5401
+ lastDeploymentSucceededAt: output.lastDeploymentSucceededAt != null
5398
5402
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastDeploymentSucceededAt)))
5399
5403
  : undefined,
5400
- lastModifiedAt: output.lastModifiedAt !== undefined && output.lastModifiedAt !== null
5404
+ lastModifiedAt: output.lastModifiedAt != null
5401
5405
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedAt)))
5402
5406
  : undefined,
5403
5407
  name: (0, smithy_client_1.expectString)(output.name),
@@ -5423,140 +5427,124 @@ const deserializeAws_json1_0ConflictException = (output, context) => {
5423
5427
  };
5424
5428
  const deserializeAws_json1_0CreateComponentOutput = (output, context) => {
5425
5429
  return {
5426
- component: output.component !== undefined && output.component !== null
5427
- ? deserializeAws_json1_0Component(output.component, context)
5428
- : undefined,
5430
+ component: output.component != null ? deserializeAws_json1_0Component(output.component, context) : undefined,
5429
5431
  };
5430
5432
  };
5431
5433
  const deserializeAws_json1_0CreateEnvironmentAccountConnectionOutput = (output, context) => {
5432
5434
  return {
5433
- environmentAccountConnection: output.environmentAccountConnection !== undefined && output.environmentAccountConnection !== null
5435
+ environmentAccountConnection: output.environmentAccountConnection != null
5434
5436
  ? deserializeAws_json1_0EnvironmentAccountConnection(output.environmentAccountConnection, context)
5435
5437
  : undefined,
5436
5438
  };
5437
5439
  };
5438
5440
  const deserializeAws_json1_0CreateEnvironmentOutput = (output, context) => {
5439
5441
  return {
5440
- environment: output.environment !== undefined && output.environment !== null
5441
- ? deserializeAws_json1_0Environment(output.environment, context)
5442
- : undefined,
5442
+ environment: output.environment != null ? deserializeAws_json1_0Environment(output.environment, context) : undefined,
5443
5443
  };
5444
5444
  };
5445
5445
  const deserializeAws_json1_0CreateEnvironmentTemplateOutput = (output, context) => {
5446
5446
  return {
5447
- environmentTemplate: output.environmentTemplate !== undefined && output.environmentTemplate !== null
5447
+ environmentTemplate: output.environmentTemplate != null
5448
5448
  ? deserializeAws_json1_0EnvironmentTemplate(output.environmentTemplate, context)
5449
5449
  : undefined,
5450
5450
  };
5451
5451
  };
5452
5452
  const deserializeAws_json1_0CreateEnvironmentTemplateVersionOutput = (output, context) => {
5453
5453
  return {
5454
- environmentTemplateVersion: output.environmentTemplateVersion !== undefined && output.environmentTemplateVersion !== null
5454
+ environmentTemplateVersion: output.environmentTemplateVersion != null
5455
5455
  ? deserializeAws_json1_0EnvironmentTemplateVersion(output.environmentTemplateVersion, context)
5456
5456
  : undefined,
5457
5457
  };
5458
5458
  };
5459
5459
  const deserializeAws_json1_0CreateRepositoryOutput = (output, context) => {
5460
5460
  return {
5461
- repository: output.repository !== undefined && output.repository !== null
5462
- ? deserializeAws_json1_0Repository(output.repository, context)
5463
- : undefined,
5461
+ repository: output.repository != null ? deserializeAws_json1_0Repository(output.repository, context) : undefined,
5464
5462
  };
5465
5463
  };
5466
5464
  const deserializeAws_json1_0CreateServiceOutput = (output, context) => {
5467
5465
  return {
5468
- service: output.service !== undefined && output.service !== null
5469
- ? deserializeAws_json1_0Service(output.service, context)
5470
- : undefined,
5466
+ service: output.service != null ? deserializeAws_json1_0Service(output.service, context) : undefined,
5471
5467
  };
5472
5468
  };
5473
5469
  const deserializeAws_json1_0CreateServiceTemplateOutput = (output, context) => {
5474
5470
  return {
5475
- serviceTemplate: output.serviceTemplate !== undefined && output.serviceTemplate !== null
5471
+ serviceTemplate: output.serviceTemplate != null
5476
5472
  ? deserializeAws_json1_0ServiceTemplate(output.serviceTemplate, context)
5477
5473
  : undefined,
5478
5474
  };
5479
5475
  };
5480
5476
  const deserializeAws_json1_0CreateServiceTemplateVersionOutput = (output, context) => {
5481
5477
  return {
5482
- serviceTemplateVersion: output.serviceTemplateVersion !== undefined && output.serviceTemplateVersion !== null
5478
+ serviceTemplateVersion: output.serviceTemplateVersion != null
5483
5479
  ? deserializeAws_json1_0ServiceTemplateVersion(output.serviceTemplateVersion, context)
5484
5480
  : undefined,
5485
5481
  };
5486
5482
  };
5487
5483
  const deserializeAws_json1_0CreateTemplateSyncConfigOutput = (output, context) => {
5488
5484
  return {
5489
- templateSyncConfig: output.templateSyncConfig !== undefined && output.templateSyncConfig !== null
5485
+ templateSyncConfig: output.templateSyncConfig != null
5490
5486
  ? deserializeAws_json1_0TemplateSyncConfig(output.templateSyncConfig, context)
5491
5487
  : undefined,
5492
5488
  };
5493
5489
  };
5494
5490
  const deserializeAws_json1_0DeleteComponentOutput = (output, context) => {
5495
5491
  return {
5496
- component: output.component !== undefined && output.component !== null
5497
- ? deserializeAws_json1_0Component(output.component, context)
5498
- : undefined,
5492
+ component: output.component != null ? deserializeAws_json1_0Component(output.component, context) : undefined,
5499
5493
  };
5500
5494
  };
5501
5495
  const deserializeAws_json1_0DeleteEnvironmentAccountConnectionOutput = (output, context) => {
5502
5496
  return {
5503
- environmentAccountConnection: output.environmentAccountConnection !== undefined && output.environmentAccountConnection !== null
5497
+ environmentAccountConnection: output.environmentAccountConnection != null
5504
5498
  ? deserializeAws_json1_0EnvironmentAccountConnection(output.environmentAccountConnection, context)
5505
5499
  : undefined,
5506
5500
  };
5507
5501
  };
5508
5502
  const deserializeAws_json1_0DeleteEnvironmentOutput = (output, context) => {
5509
5503
  return {
5510
- environment: output.environment !== undefined && output.environment !== null
5511
- ? deserializeAws_json1_0Environment(output.environment, context)
5512
- : undefined,
5504
+ environment: output.environment != null ? deserializeAws_json1_0Environment(output.environment, context) : undefined,
5513
5505
  };
5514
5506
  };
5515
5507
  const deserializeAws_json1_0DeleteEnvironmentTemplateOutput = (output, context) => {
5516
5508
  return {
5517
- environmentTemplate: output.environmentTemplate !== undefined && output.environmentTemplate !== null
5509
+ environmentTemplate: output.environmentTemplate != null
5518
5510
  ? deserializeAws_json1_0EnvironmentTemplate(output.environmentTemplate, context)
5519
5511
  : undefined,
5520
5512
  };
5521
5513
  };
5522
5514
  const deserializeAws_json1_0DeleteEnvironmentTemplateVersionOutput = (output, context) => {
5523
5515
  return {
5524
- environmentTemplateVersion: output.environmentTemplateVersion !== undefined && output.environmentTemplateVersion !== null
5516
+ environmentTemplateVersion: output.environmentTemplateVersion != null
5525
5517
  ? deserializeAws_json1_0EnvironmentTemplateVersion(output.environmentTemplateVersion, context)
5526
5518
  : undefined,
5527
5519
  };
5528
5520
  };
5529
5521
  const deserializeAws_json1_0DeleteRepositoryOutput = (output, context) => {
5530
5522
  return {
5531
- repository: output.repository !== undefined && output.repository !== null
5532
- ? deserializeAws_json1_0Repository(output.repository, context)
5533
- : undefined,
5523
+ repository: output.repository != null ? deserializeAws_json1_0Repository(output.repository, context) : undefined,
5534
5524
  };
5535
5525
  };
5536
5526
  const deserializeAws_json1_0DeleteServiceOutput = (output, context) => {
5537
5527
  return {
5538
- service: output.service !== undefined && output.service !== null
5539
- ? deserializeAws_json1_0Service(output.service, context)
5540
- : undefined,
5528
+ service: output.service != null ? deserializeAws_json1_0Service(output.service, context) : undefined,
5541
5529
  };
5542
5530
  };
5543
5531
  const deserializeAws_json1_0DeleteServiceTemplateOutput = (output, context) => {
5544
5532
  return {
5545
- serviceTemplate: output.serviceTemplate !== undefined && output.serviceTemplate !== null
5533
+ serviceTemplate: output.serviceTemplate != null
5546
5534
  ? deserializeAws_json1_0ServiceTemplate(output.serviceTemplate, context)
5547
5535
  : undefined,
5548
5536
  };
5549
5537
  };
5550
5538
  const deserializeAws_json1_0DeleteServiceTemplateVersionOutput = (output, context) => {
5551
5539
  return {
5552
- serviceTemplateVersion: output.serviceTemplateVersion !== undefined && output.serviceTemplateVersion !== null
5540
+ serviceTemplateVersion: output.serviceTemplateVersion != null
5553
5541
  ? deserializeAws_json1_0ServiceTemplateVersion(output.serviceTemplateVersion, context)
5554
5542
  : undefined,
5555
5543
  };
5556
5544
  };
5557
5545
  const deserializeAws_json1_0DeleteTemplateSyncConfigOutput = (output, context) => {
5558
5546
  return {
5559
- templateSyncConfig: output.templateSyncConfig !== undefined && output.templateSyncConfig !== null
5547
+ templateSyncConfig: output.templateSyncConfig != null
5560
5548
  ? deserializeAws_json1_0TemplateSyncConfig(output.templateSyncConfig, context)
5561
5549
  : undefined,
5562
5550
  };
@@ -5565,24 +5553,22 @@ const deserializeAws_json1_0Environment = (output, context) => {
5565
5553
  return {
5566
5554
  arn: (0, smithy_client_1.expectString)(output.arn),
5567
5555
  componentRoleArn: (0, smithy_client_1.expectString)(output.componentRoleArn),
5568
- createdAt: output.createdAt !== undefined && output.createdAt !== null
5569
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
5570
- : undefined,
5556
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
5571
5557
  deploymentStatus: (0, smithy_client_1.expectString)(output.deploymentStatus),
5572
5558
  deploymentStatusMessage: (0, smithy_client_1.expectString)(output.deploymentStatusMessage),
5573
5559
  description: (0, smithy_client_1.expectString)(output.description),
5574
5560
  environmentAccountConnectionId: (0, smithy_client_1.expectString)(output.environmentAccountConnectionId),
5575
5561
  environmentAccountId: (0, smithy_client_1.expectString)(output.environmentAccountId),
5576
- lastDeploymentAttemptedAt: output.lastDeploymentAttemptedAt !== undefined && output.lastDeploymentAttemptedAt !== null
5562
+ lastDeploymentAttemptedAt: output.lastDeploymentAttemptedAt != null
5577
5563
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastDeploymentAttemptedAt)))
5578
5564
  : undefined,
5579
- lastDeploymentSucceededAt: output.lastDeploymentSucceededAt !== undefined && output.lastDeploymentSucceededAt !== null
5565
+ lastDeploymentSucceededAt: output.lastDeploymentSucceededAt != null
5580
5566
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastDeploymentSucceededAt)))
5581
5567
  : undefined,
5582
5568
  name: (0, smithy_client_1.expectString)(output.name),
5583
5569
  protonServiceRoleArn: (0, smithy_client_1.expectString)(output.protonServiceRoleArn),
5584
5570
  provisioning: (0, smithy_client_1.expectString)(output.provisioning),
5585
- provisioningRepository: output.provisioningRepository !== undefined && output.provisioningRepository !== null
5571
+ provisioningRepository: output.provisioningRepository != null
5586
5572
  ? deserializeAws_json1_0RepositoryBranch(output.provisioningRepository, context)
5587
5573
  : undefined,
5588
5574
  spec: (0, smithy_client_1.expectString)(output.spec),
@@ -5598,11 +5584,11 @@ const deserializeAws_json1_0EnvironmentAccountConnection = (output, context) =>
5598
5584
  environmentAccountId: (0, smithy_client_1.expectString)(output.environmentAccountId),
5599
5585
  environmentName: (0, smithy_client_1.expectString)(output.environmentName),
5600
5586
  id: (0, smithy_client_1.expectString)(output.id),
5601
- lastModifiedAt: output.lastModifiedAt !== undefined && output.lastModifiedAt !== null
5587
+ lastModifiedAt: output.lastModifiedAt != null
5602
5588
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedAt)))
5603
5589
  : undefined,
5604
5590
  managementAccountId: (0, smithy_client_1.expectString)(output.managementAccountId),
5605
- requestedAt: output.requestedAt !== undefined && output.requestedAt !== null
5591
+ requestedAt: output.requestedAt != null
5606
5592
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.requestedAt)))
5607
5593
  : undefined,
5608
5594
  roleArn: (0, smithy_client_1.expectString)(output.roleArn),
@@ -5616,11 +5602,11 @@ const deserializeAws_json1_0EnvironmentAccountConnectionSummary = (output, conte
5616
5602
  environmentAccountId: (0, smithy_client_1.expectString)(output.environmentAccountId),
5617
5603
  environmentName: (0, smithy_client_1.expectString)(output.environmentName),
5618
5604
  id: (0, smithy_client_1.expectString)(output.id),
5619
- lastModifiedAt: output.lastModifiedAt !== undefined && output.lastModifiedAt !== null
5605
+ lastModifiedAt: output.lastModifiedAt != null
5620
5606
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedAt)))
5621
5607
  : undefined,
5622
5608
  managementAccountId: (0, smithy_client_1.expectString)(output.managementAccountId),
5623
- requestedAt: output.requestedAt !== undefined && output.requestedAt !== null
5609
+ requestedAt: output.requestedAt != null
5624
5610
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.requestedAt)))
5625
5611
  : undefined,
5626
5612
  roleArn: (0, smithy_client_1.expectString)(output.roleArn),
@@ -5642,18 +5628,16 @@ const deserializeAws_json1_0EnvironmentSummary = (output, context) => {
5642
5628
  return {
5643
5629
  arn: (0, smithy_client_1.expectString)(output.arn),
5644
5630
  componentRoleArn: (0, smithy_client_1.expectString)(output.componentRoleArn),
5645
- createdAt: output.createdAt !== undefined && output.createdAt !== null
5646
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
5647
- : undefined,
5631
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
5648
5632
  deploymentStatus: (0, smithy_client_1.expectString)(output.deploymentStatus),
5649
5633
  deploymentStatusMessage: (0, smithy_client_1.expectString)(output.deploymentStatusMessage),
5650
5634
  description: (0, smithy_client_1.expectString)(output.description),
5651
5635
  environmentAccountConnectionId: (0, smithy_client_1.expectString)(output.environmentAccountConnectionId),
5652
5636
  environmentAccountId: (0, smithy_client_1.expectString)(output.environmentAccountId),
5653
- lastDeploymentAttemptedAt: output.lastDeploymentAttemptedAt !== undefined && output.lastDeploymentAttemptedAt !== null
5637
+ lastDeploymentAttemptedAt: output.lastDeploymentAttemptedAt != null
5654
5638
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastDeploymentAttemptedAt)))
5655
5639
  : undefined,
5656
- lastDeploymentSucceededAt: output.lastDeploymentSucceededAt !== undefined && output.lastDeploymentSucceededAt !== null
5640
+ lastDeploymentSucceededAt: output.lastDeploymentSucceededAt != null
5657
5641
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastDeploymentSucceededAt)))
5658
5642
  : undefined,
5659
5643
  name: (0, smithy_client_1.expectString)(output.name),
@@ -5678,13 +5662,11 @@ const deserializeAws_json1_0EnvironmentSummaryList = (output, context) => {
5678
5662
  const deserializeAws_json1_0EnvironmentTemplate = (output, context) => {
5679
5663
  return {
5680
5664
  arn: (0, smithy_client_1.expectString)(output.arn),
5681
- createdAt: output.createdAt !== undefined && output.createdAt !== null
5682
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
5683
- : undefined,
5665
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
5684
5666
  description: (0, smithy_client_1.expectString)(output.description),
5685
5667
  displayName: (0, smithy_client_1.expectString)(output.displayName),
5686
5668
  encryptionKey: (0, smithy_client_1.expectString)(output.encryptionKey),
5687
- lastModifiedAt: output.lastModifiedAt !== undefined && output.lastModifiedAt !== null
5669
+ lastModifiedAt: output.lastModifiedAt != null
5688
5670
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedAt)))
5689
5671
  : undefined,
5690
5672
  name: (0, smithy_client_1.expectString)(output.name),
@@ -5695,12 +5677,10 @@ const deserializeAws_json1_0EnvironmentTemplate = (output, context) => {
5695
5677
  const deserializeAws_json1_0EnvironmentTemplateSummary = (output, context) => {
5696
5678
  return {
5697
5679
  arn: (0, smithy_client_1.expectString)(output.arn),
5698
- createdAt: output.createdAt !== undefined && output.createdAt !== null
5699
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
5700
- : undefined,
5680
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
5701
5681
  description: (0, smithy_client_1.expectString)(output.description),
5702
5682
  displayName: (0, smithy_client_1.expectString)(output.displayName),
5703
- lastModifiedAt: output.lastModifiedAt !== undefined && output.lastModifiedAt !== null
5683
+ lastModifiedAt: output.lastModifiedAt != null
5704
5684
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedAt)))
5705
5685
  : undefined,
5706
5686
  name: (0, smithy_client_1.expectString)(output.name),
@@ -5722,11 +5702,9 @@ const deserializeAws_json1_0EnvironmentTemplateSummaryList = (output, context) =
5722
5702
  const deserializeAws_json1_0EnvironmentTemplateVersion = (output, context) => {
5723
5703
  return {
5724
5704
  arn: (0, smithy_client_1.expectString)(output.arn),
5725
- createdAt: output.createdAt !== undefined && output.createdAt !== null
5726
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
5727
- : undefined,
5705
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
5728
5706
  description: (0, smithy_client_1.expectString)(output.description),
5729
- lastModifiedAt: output.lastModifiedAt !== undefined && output.lastModifiedAt !== null
5707
+ lastModifiedAt: output.lastModifiedAt != null
5730
5708
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedAt)))
5731
5709
  : undefined,
5732
5710
  majorVersion: (0, smithy_client_1.expectString)(output.majorVersion),
@@ -5741,11 +5719,9 @@ const deserializeAws_json1_0EnvironmentTemplateVersion = (output, context) => {
5741
5719
  const deserializeAws_json1_0EnvironmentTemplateVersionSummary = (output, context) => {
5742
5720
  return {
5743
5721
  arn: (0, smithy_client_1.expectString)(output.arn),
5744
- createdAt: output.createdAt !== undefined && output.createdAt !== null
5745
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
5746
- : undefined,
5722
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
5747
5723
  description: (0, smithy_client_1.expectString)(output.description),
5748
- lastModifiedAt: output.lastModifiedAt !== undefined && output.lastModifiedAt !== null
5724
+ lastModifiedAt: output.lastModifiedAt != null
5749
5725
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedAt)))
5750
5726
  : undefined,
5751
5727
  majorVersion: (0, smithy_client_1.expectString)(output.majorVersion),
@@ -5769,106 +5745,92 @@ const deserializeAws_json1_0EnvironmentTemplateVersionSummaryList = (output, con
5769
5745
  };
5770
5746
  const deserializeAws_json1_0GetAccountSettingsOutput = (output, context) => {
5771
5747
  return {
5772
- accountSettings: output.accountSettings !== undefined && output.accountSettings !== null
5748
+ accountSettings: output.accountSettings != null
5773
5749
  ? deserializeAws_json1_0AccountSettings(output.accountSettings, context)
5774
5750
  : undefined,
5775
5751
  };
5776
5752
  };
5777
5753
  const deserializeAws_json1_0GetComponentOutput = (output, context) => {
5778
5754
  return {
5779
- component: output.component !== undefined && output.component !== null
5780
- ? deserializeAws_json1_0Component(output.component, context)
5781
- : undefined,
5755
+ component: output.component != null ? deserializeAws_json1_0Component(output.component, context) : undefined,
5782
5756
  };
5783
5757
  };
5784
5758
  const deserializeAws_json1_0GetEnvironmentAccountConnectionOutput = (output, context) => {
5785
5759
  return {
5786
- environmentAccountConnection: output.environmentAccountConnection !== undefined && output.environmentAccountConnection !== null
5760
+ environmentAccountConnection: output.environmentAccountConnection != null
5787
5761
  ? deserializeAws_json1_0EnvironmentAccountConnection(output.environmentAccountConnection, context)
5788
5762
  : undefined,
5789
5763
  };
5790
5764
  };
5791
5765
  const deserializeAws_json1_0GetEnvironmentOutput = (output, context) => {
5792
5766
  return {
5793
- environment: output.environment !== undefined && output.environment !== null
5794
- ? deserializeAws_json1_0Environment(output.environment, context)
5795
- : undefined,
5767
+ environment: output.environment != null ? deserializeAws_json1_0Environment(output.environment, context) : undefined,
5796
5768
  };
5797
5769
  };
5798
5770
  const deserializeAws_json1_0GetEnvironmentTemplateOutput = (output, context) => {
5799
5771
  return {
5800
- environmentTemplate: output.environmentTemplate !== undefined && output.environmentTemplate !== null
5772
+ environmentTemplate: output.environmentTemplate != null
5801
5773
  ? deserializeAws_json1_0EnvironmentTemplate(output.environmentTemplate, context)
5802
5774
  : undefined,
5803
5775
  };
5804
5776
  };
5805
5777
  const deserializeAws_json1_0GetEnvironmentTemplateVersionOutput = (output, context) => {
5806
5778
  return {
5807
- environmentTemplateVersion: output.environmentTemplateVersion !== undefined && output.environmentTemplateVersion !== null
5779
+ environmentTemplateVersion: output.environmentTemplateVersion != null
5808
5780
  ? deserializeAws_json1_0EnvironmentTemplateVersion(output.environmentTemplateVersion, context)
5809
5781
  : undefined,
5810
5782
  };
5811
5783
  };
5812
5784
  const deserializeAws_json1_0GetRepositoryOutput = (output, context) => {
5813
5785
  return {
5814
- repository: output.repository !== undefined && output.repository !== null
5815
- ? deserializeAws_json1_0Repository(output.repository, context)
5816
- : undefined,
5786
+ repository: output.repository != null ? deserializeAws_json1_0Repository(output.repository, context) : undefined,
5817
5787
  };
5818
5788
  };
5819
5789
  const deserializeAws_json1_0GetRepositorySyncStatusOutput = (output, context) => {
5820
5790
  return {
5821
- latestSync: output.latestSync !== undefined && output.latestSync !== null
5822
- ? deserializeAws_json1_0RepositorySyncAttempt(output.latestSync, context)
5823
- : undefined,
5791
+ latestSync: output.latestSync != null ? deserializeAws_json1_0RepositorySyncAttempt(output.latestSync, context) : undefined,
5824
5792
  };
5825
5793
  };
5826
5794
  const deserializeAws_json1_0GetServiceInstanceOutput = (output, context) => {
5827
5795
  return {
5828
- serviceInstance: output.serviceInstance !== undefined && output.serviceInstance !== null
5796
+ serviceInstance: output.serviceInstance != null
5829
5797
  ? deserializeAws_json1_0ServiceInstance(output.serviceInstance, context)
5830
5798
  : undefined,
5831
5799
  };
5832
5800
  };
5833
5801
  const deserializeAws_json1_0GetServiceOutput = (output, context) => {
5834
5802
  return {
5835
- service: output.service !== undefined && output.service !== null
5836
- ? deserializeAws_json1_0Service(output.service, context)
5837
- : undefined,
5803
+ service: output.service != null ? deserializeAws_json1_0Service(output.service, context) : undefined,
5838
5804
  };
5839
5805
  };
5840
5806
  const deserializeAws_json1_0GetServiceTemplateOutput = (output, context) => {
5841
5807
  return {
5842
- serviceTemplate: output.serviceTemplate !== undefined && output.serviceTemplate !== null
5808
+ serviceTemplate: output.serviceTemplate != null
5843
5809
  ? deserializeAws_json1_0ServiceTemplate(output.serviceTemplate, context)
5844
5810
  : undefined,
5845
5811
  };
5846
5812
  };
5847
5813
  const deserializeAws_json1_0GetServiceTemplateVersionOutput = (output, context) => {
5848
5814
  return {
5849
- serviceTemplateVersion: output.serviceTemplateVersion !== undefined && output.serviceTemplateVersion !== null
5815
+ serviceTemplateVersion: output.serviceTemplateVersion != null
5850
5816
  ? deserializeAws_json1_0ServiceTemplateVersion(output.serviceTemplateVersion, context)
5851
5817
  : undefined,
5852
5818
  };
5853
5819
  };
5854
5820
  const deserializeAws_json1_0GetTemplateSyncConfigOutput = (output, context) => {
5855
5821
  return {
5856
- templateSyncConfig: output.templateSyncConfig !== undefined && output.templateSyncConfig !== null
5822
+ templateSyncConfig: output.templateSyncConfig != null
5857
5823
  ? deserializeAws_json1_0TemplateSyncConfig(output.templateSyncConfig, context)
5858
5824
  : undefined,
5859
5825
  };
5860
5826
  };
5861
5827
  const deserializeAws_json1_0GetTemplateSyncStatusOutput = (output, context) => {
5862
5828
  return {
5863
- desiredState: output.desiredState !== undefined && output.desiredState !== null
5864
- ? deserializeAws_json1_0Revision(output.desiredState, context)
5865
- : undefined,
5866
- latestSuccessfulSync: output.latestSuccessfulSync !== undefined && output.latestSuccessfulSync !== null
5829
+ desiredState: output.desiredState != null ? deserializeAws_json1_0Revision(output.desiredState, context) : undefined,
5830
+ latestSuccessfulSync: output.latestSuccessfulSync != null
5867
5831
  ? deserializeAws_json1_0ResourceSyncAttempt(output.latestSuccessfulSync, context)
5868
5832
  : undefined,
5869
- latestSync: output.latestSync !== undefined && output.latestSync !== null
5870
- ? deserializeAws_json1_0ResourceSyncAttempt(output.latestSync, context)
5871
- : undefined,
5833
+ latestSync: output.latestSync != null ? deserializeAws_json1_0ResourceSyncAttempt(output.latestSync, context) : undefined,
5872
5834
  };
5873
5835
  };
5874
5836
  const deserializeAws_json1_0InternalServerException = (output, context) => {
@@ -5879,30 +5841,26 @@ const deserializeAws_json1_0InternalServerException = (output, context) => {
5879
5841
  const deserializeAws_json1_0ListComponentOutputsOutput = (output, context) => {
5880
5842
  return {
5881
5843
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5882
- outputs: output.outputs !== undefined && output.outputs !== null
5883
- ? deserializeAws_json1_0OutputsList(output.outputs, context)
5884
- : undefined,
5844
+ outputs: output.outputs != null ? deserializeAws_json1_0OutputsList(output.outputs, context) : undefined,
5885
5845
  };
5886
5846
  };
5887
5847
  const deserializeAws_json1_0ListComponentProvisionedResourcesOutput = (output, context) => {
5888
5848
  return {
5889
5849
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5890
- provisionedResources: output.provisionedResources !== undefined && output.provisionedResources !== null
5850
+ provisionedResources: output.provisionedResources != null
5891
5851
  ? deserializeAws_json1_0ProvisionedResourceList(output.provisionedResources, context)
5892
5852
  : undefined,
5893
5853
  };
5894
5854
  };
5895
5855
  const deserializeAws_json1_0ListComponentsOutput = (output, context) => {
5896
5856
  return {
5897
- components: output.components !== undefined && output.components !== null
5898
- ? deserializeAws_json1_0ComponentSummaryList(output.components, context)
5899
- : undefined,
5857
+ components: output.components != null ? deserializeAws_json1_0ComponentSummaryList(output.components, context) : undefined,
5900
5858
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5901
5859
  };
5902
5860
  };
5903
5861
  const deserializeAws_json1_0ListEnvironmentAccountConnectionsOutput = (output, context) => {
5904
5862
  return {
5905
- environmentAccountConnections: output.environmentAccountConnections !== undefined && output.environmentAccountConnections !== null
5863
+ environmentAccountConnections: output.environmentAccountConnections != null
5906
5864
  ? deserializeAws_json1_0EnvironmentAccountConnectionSummaryList(output.environmentAccountConnections, context)
5907
5865
  : undefined,
5908
5866
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
@@ -5911,22 +5869,20 @@ const deserializeAws_json1_0ListEnvironmentAccountConnectionsOutput = (output, c
5911
5869
  const deserializeAws_json1_0ListEnvironmentOutputsOutput = (output, context) => {
5912
5870
  return {
5913
5871
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5914
- outputs: output.outputs !== undefined && output.outputs !== null
5915
- ? deserializeAws_json1_0OutputsList(output.outputs, context)
5916
- : undefined,
5872
+ outputs: output.outputs != null ? deserializeAws_json1_0OutputsList(output.outputs, context) : undefined,
5917
5873
  };
5918
5874
  };
5919
5875
  const deserializeAws_json1_0ListEnvironmentProvisionedResourcesOutput = (output, context) => {
5920
5876
  return {
5921
5877
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5922
- provisionedResources: output.provisionedResources !== undefined && output.provisionedResources !== null
5878
+ provisionedResources: output.provisionedResources != null
5923
5879
  ? deserializeAws_json1_0ProvisionedResourceList(output.provisionedResources, context)
5924
5880
  : undefined,
5925
5881
  };
5926
5882
  };
5927
5883
  const deserializeAws_json1_0ListEnvironmentsOutput = (output, context) => {
5928
5884
  return {
5929
- environments: output.environments !== undefined && output.environments !== null
5885
+ environments: output.environments != null
5930
5886
  ? deserializeAws_json1_0EnvironmentSummaryList(output.environments, context)
5931
5887
  : undefined,
5932
5888
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
@@ -5935,7 +5891,7 @@ const deserializeAws_json1_0ListEnvironmentsOutput = (output, context) => {
5935
5891
  const deserializeAws_json1_0ListEnvironmentTemplatesOutput = (output, context) => {
5936
5892
  return {
5937
5893
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5938
- templates: output.templates !== undefined && output.templates !== null
5894
+ templates: output.templates != null
5939
5895
  ? deserializeAws_json1_0EnvironmentTemplateSummaryList(output.templates, context)
5940
5896
  : undefined,
5941
5897
  };
@@ -5943,7 +5899,7 @@ const deserializeAws_json1_0ListEnvironmentTemplatesOutput = (output, context) =
5943
5899
  const deserializeAws_json1_0ListEnvironmentTemplateVersionsOutput = (output, context) => {
5944
5900
  return {
5945
5901
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5946
- templateVersions: output.templateVersions !== undefined && output.templateVersions !== null
5902
+ templateVersions: output.templateVersions != null
5947
5903
  ? deserializeAws_json1_0EnvironmentTemplateVersionSummaryList(output.templateVersions, context)
5948
5904
  : undefined,
5949
5905
  };
@@ -5951,7 +5907,7 @@ const deserializeAws_json1_0ListEnvironmentTemplateVersionsOutput = (output, con
5951
5907
  const deserializeAws_json1_0ListRepositoriesOutput = (output, context) => {
5952
5908
  return {
5953
5909
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5954
- repositories: output.repositories !== undefined && output.repositories !== null
5910
+ repositories: output.repositories != null
5955
5911
  ? deserializeAws_json1_0RepositorySummaryList(output.repositories, context)
5956
5912
  : undefined,
5957
5913
  };
@@ -5959,7 +5915,7 @@ const deserializeAws_json1_0ListRepositoriesOutput = (output, context) => {
5959
5915
  const deserializeAws_json1_0ListRepositorySyncDefinitionsOutput = (output, context) => {
5960
5916
  return {
5961
5917
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5962
- syncDefinitions: output.syncDefinitions !== undefined && output.syncDefinitions !== null
5918
+ syncDefinitions: output.syncDefinitions != null
5963
5919
  ? deserializeAws_json1_0RepositorySyncDefinitionList(output.syncDefinitions, context)
5964
5920
  : undefined,
5965
5921
  };
@@ -5967,15 +5923,13 @@ const deserializeAws_json1_0ListRepositorySyncDefinitionsOutput = (output, conte
5967
5923
  const deserializeAws_json1_0ListServiceInstanceOutputsOutput = (output, context) => {
5968
5924
  return {
5969
5925
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5970
- outputs: output.outputs !== undefined && output.outputs !== null
5971
- ? deserializeAws_json1_0OutputsList(output.outputs, context)
5972
- : undefined,
5926
+ outputs: output.outputs != null ? deserializeAws_json1_0OutputsList(output.outputs, context) : undefined,
5973
5927
  };
5974
5928
  };
5975
5929
  const deserializeAws_json1_0ListServiceInstanceProvisionedResourcesOutput = (output, context) => {
5976
5930
  return {
5977
5931
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5978
- provisionedResources: output.provisionedResources !== undefined && output.provisionedResources !== null
5932
+ provisionedResources: output.provisionedResources != null
5979
5933
  ? deserializeAws_json1_0ProvisionedResourceList(output.provisionedResources, context)
5980
5934
  : undefined,
5981
5935
  };
@@ -5983,7 +5937,7 @@ const deserializeAws_json1_0ListServiceInstanceProvisionedResourcesOutput = (out
5983
5937
  const deserializeAws_json1_0ListServiceInstancesOutput = (output, context) => {
5984
5938
  return {
5985
5939
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5986
- serviceInstances: output.serviceInstances !== undefined && output.serviceInstances !== null
5940
+ serviceInstances: output.serviceInstances != null
5987
5941
  ? deserializeAws_json1_0ServiceInstanceSummaryList(output.serviceInstances, context)
5988
5942
  : undefined,
5989
5943
  };
@@ -5991,15 +5945,13 @@ const deserializeAws_json1_0ListServiceInstancesOutput = (output, context) => {
5991
5945
  const deserializeAws_json1_0ListServicePipelineOutputsOutput = (output, context) => {
5992
5946
  return {
5993
5947
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
5994
- outputs: output.outputs !== undefined && output.outputs !== null
5995
- ? deserializeAws_json1_0OutputsList(output.outputs, context)
5996
- : undefined,
5948
+ outputs: output.outputs != null ? deserializeAws_json1_0OutputsList(output.outputs, context) : undefined,
5997
5949
  };
5998
5950
  };
5999
5951
  const deserializeAws_json1_0ListServicePipelineProvisionedResourcesOutput = (output, context) => {
6000
5952
  return {
6001
5953
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
6002
- provisionedResources: output.provisionedResources !== undefined && output.provisionedResources !== null
5954
+ provisionedResources: output.provisionedResources != null
6003
5955
  ? deserializeAws_json1_0ProvisionedResourceList(output.provisionedResources, context)
6004
5956
  : undefined,
6005
5957
  };
@@ -6007,15 +5959,13 @@ const deserializeAws_json1_0ListServicePipelineProvisionedResourcesOutput = (out
6007
5959
  const deserializeAws_json1_0ListServicesOutput = (output, context) => {
6008
5960
  return {
6009
5961
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
6010
- services: output.services !== undefined && output.services !== null
6011
- ? deserializeAws_json1_0ServiceSummaryList(output.services, context)
6012
- : undefined,
5962
+ services: output.services != null ? deserializeAws_json1_0ServiceSummaryList(output.services, context) : undefined,
6013
5963
  };
6014
5964
  };
6015
5965
  const deserializeAws_json1_0ListServiceTemplatesOutput = (output, context) => {
6016
5966
  return {
6017
5967
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
6018
- templates: output.templates !== undefined && output.templates !== null
5968
+ templates: output.templates != null
6019
5969
  ? deserializeAws_json1_0ServiceTemplateSummaryList(output.templates, context)
6020
5970
  : undefined,
6021
5971
  };
@@ -6023,7 +5973,7 @@ const deserializeAws_json1_0ListServiceTemplatesOutput = (output, context) => {
6023
5973
  const deserializeAws_json1_0ListServiceTemplateVersionsOutput = (output, context) => {
6024
5974
  return {
6025
5975
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
6026
- templateVersions: output.templateVersions !== undefined && output.templateVersions !== null
5976
+ templateVersions: output.templateVersions != null
6027
5977
  ? deserializeAws_json1_0ServiceTemplateVersionSummaryList(output.templateVersions, context)
6028
5978
  : undefined,
6029
5979
  };
@@ -6031,9 +5981,7 @@ const deserializeAws_json1_0ListServiceTemplateVersionsOutput = (output, context
6031
5981
  const deserializeAws_json1_0ListTagsForResourceOutput = (output, context) => {
6032
5982
  return {
6033
5983
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
6034
- tags: output.tags !== undefined && output.tags !== null
6035
- ? deserializeAws_json1_0TagList(output.tags, context)
6036
- : undefined,
5984
+ tags: output.tags != null ? deserializeAws_json1_0TagList(output.tags, context) : undefined,
6037
5985
  };
6038
5986
  };
6039
5987
  const deserializeAws_json1_0NotifyResourceDeploymentStatusChangeOutput = (output, context) => {
@@ -6076,7 +6024,7 @@ const deserializeAws_json1_0ProvisionedResourceList = (output, context) => {
6076
6024
  };
6077
6025
  const deserializeAws_json1_0RejectEnvironmentAccountConnectionOutput = (output, context) => {
6078
6026
  return {
6079
- environmentAccountConnection: output.environmentAccountConnection !== undefined && output.environmentAccountConnection !== null
6027
+ environmentAccountConnection: output.environmentAccountConnection != null
6080
6028
  ? deserializeAws_json1_0EnvironmentAccountConnection(output.environmentAccountConnection, context)
6081
6029
  : undefined,
6082
6030
  };
@@ -6118,12 +6066,8 @@ const deserializeAws_json1_0RepositorySummaryList = (output, context) => {
6118
6066
  };
6119
6067
  const deserializeAws_json1_0RepositorySyncAttempt = (output, context) => {
6120
6068
  return {
6121
- events: output.events !== undefined && output.events !== null
6122
- ? deserializeAws_json1_0RepositorySyncEvents(output.events, context)
6123
- : undefined,
6124
- startedAt: output.startedAt !== undefined && output.startedAt !== null
6125
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startedAt)))
6126
- : undefined,
6069
+ events: output.events != null ? deserializeAws_json1_0RepositorySyncEvents(output.events, context) : undefined,
6070
+ startedAt: output.startedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startedAt))) : undefined,
6127
6071
  status: (0, smithy_client_1.expectString)(output.status),
6128
6072
  };
6129
6073
  };
@@ -6150,9 +6094,7 @@ const deserializeAws_json1_0RepositorySyncEvent = (output, context) => {
6150
6094
  return {
6151
6095
  event: (0, smithy_client_1.expectString)(output.event),
6152
6096
  externalId: (0, smithy_client_1.expectString)(output.externalId),
6153
- time: output.time !== undefined && output.time !== null
6154
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.time)))
6155
- : undefined,
6097
+ time: output.time != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.time))) : undefined,
6156
6098
  type: (0, smithy_client_1.expectString)(output.type),
6157
6099
  };
6158
6100
  };
@@ -6174,29 +6116,19 @@ const deserializeAws_json1_0ResourceNotFoundException = (output, context) => {
6174
6116
  };
6175
6117
  const deserializeAws_json1_0ResourceSyncAttempt = (output, context) => {
6176
6118
  return {
6177
- events: output.events !== undefined && output.events !== null
6178
- ? deserializeAws_json1_0ResourceSyncEvents(output.events, context)
6179
- : undefined,
6180
- initialRevision: output.initialRevision !== undefined && output.initialRevision !== null
6181
- ? deserializeAws_json1_0Revision(output.initialRevision, context)
6182
- : undefined,
6183
- startedAt: output.startedAt !== undefined && output.startedAt !== null
6184
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startedAt)))
6185
- : undefined,
6119
+ events: output.events != null ? deserializeAws_json1_0ResourceSyncEvents(output.events, context) : undefined,
6120
+ initialRevision: output.initialRevision != null ? deserializeAws_json1_0Revision(output.initialRevision, context) : undefined,
6121
+ startedAt: output.startedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startedAt))) : undefined,
6186
6122
  status: (0, smithy_client_1.expectString)(output.status),
6187
6123
  target: (0, smithy_client_1.expectString)(output.target),
6188
- targetRevision: output.targetRevision !== undefined && output.targetRevision !== null
6189
- ? deserializeAws_json1_0Revision(output.targetRevision, context)
6190
- : undefined,
6124
+ targetRevision: output.targetRevision != null ? deserializeAws_json1_0Revision(output.targetRevision, context) : undefined,
6191
6125
  };
6192
6126
  };
6193
6127
  const deserializeAws_json1_0ResourceSyncEvent = (output, context) => {
6194
6128
  return {
6195
6129
  event: (0, smithy_client_1.expectString)(output.event),
6196
6130
  externalId: (0, smithy_client_1.expectString)(output.externalId),
6197
- time: output.time !== undefined && output.time !== null
6198
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.time)))
6199
- : undefined,
6131
+ time: output.time != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.time))) : undefined,
6200
6132
  type: (0, smithy_client_1.expectString)(output.type),
6201
6133
  };
6202
6134
  };
@@ -6224,17 +6156,13 @@ const deserializeAws_json1_0Service = (output, context) => {
6224
6156
  return {
6225
6157
  arn: (0, smithy_client_1.expectString)(output.arn),
6226
6158
  branchName: (0, smithy_client_1.expectString)(output.branchName),
6227
- createdAt: output.createdAt !== undefined && output.createdAt !== null
6228
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
6229
- : undefined,
6159
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
6230
6160
  description: (0, smithy_client_1.expectString)(output.description),
6231
- lastModifiedAt: output.lastModifiedAt !== undefined && output.lastModifiedAt !== null
6161
+ lastModifiedAt: output.lastModifiedAt != null
6232
6162
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedAt)))
6233
6163
  : undefined,
6234
6164
  name: (0, smithy_client_1.expectString)(output.name),
6235
- pipeline: output.pipeline !== undefined && output.pipeline !== null
6236
- ? deserializeAws_json1_0ServicePipeline(output.pipeline, context)
6237
- : undefined,
6165
+ pipeline: output.pipeline != null ? deserializeAws_json1_0ServicePipeline(output.pipeline, context) : undefined,
6238
6166
  repositoryConnectionArn: (0, smithy_client_1.expectString)(output.repositoryConnectionArn),
6239
6167
  repositoryId: (0, smithy_client_1.expectString)(output.repositoryId),
6240
6168
  spec: (0, smithy_client_1.expectString)(output.spec),
@@ -6246,16 +6174,14 @@ const deserializeAws_json1_0Service = (output, context) => {
6246
6174
  const deserializeAws_json1_0ServiceInstance = (output, context) => {
6247
6175
  return {
6248
6176
  arn: (0, smithy_client_1.expectString)(output.arn),
6249
- createdAt: output.createdAt !== undefined && output.createdAt !== null
6250
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
6251
- : undefined,
6177
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
6252
6178
  deploymentStatus: (0, smithy_client_1.expectString)(output.deploymentStatus),
6253
6179
  deploymentStatusMessage: (0, smithy_client_1.expectString)(output.deploymentStatusMessage),
6254
6180
  environmentName: (0, smithy_client_1.expectString)(output.environmentName),
6255
- lastDeploymentAttemptedAt: output.lastDeploymentAttemptedAt !== undefined && output.lastDeploymentAttemptedAt !== null
6181
+ lastDeploymentAttemptedAt: output.lastDeploymentAttemptedAt != null
6256
6182
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastDeploymentAttemptedAt)))
6257
6183
  : undefined,
6258
- lastDeploymentSucceededAt: output.lastDeploymentSucceededAt !== undefined && output.lastDeploymentSucceededAt !== null
6184
+ lastDeploymentSucceededAt: output.lastDeploymentSucceededAt != null
6259
6185
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastDeploymentSucceededAt)))
6260
6186
  : undefined,
6261
6187
  name: (0, smithy_client_1.expectString)(output.name),
@@ -6269,16 +6195,14 @@ const deserializeAws_json1_0ServiceInstance = (output, context) => {
6269
6195
  const deserializeAws_json1_0ServiceInstanceSummary = (output, context) => {
6270
6196
  return {
6271
6197
  arn: (0, smithy_client_1.expectString)(output.arn),
6272
- createdAt: output.createdAt !== undefined && output.createdAt !== null
6273
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
6274
- : undefined,
6198
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
6275
6199
  deploymentStatus: (0, smithy_client_1.expectString)(output.deploymentStatus),
6276
6200
  deploymentStatusMessage: (0, smithy_client_1.expectString)(output.deploymentStatusMessage),
6277
6201
  environmentName: (0, smithy_client_1.expectString)(output.environmentName),
6278
- lastDeploymentAttemptedAt: output.lastDeploymentAttemptedAt !== undefined && output.lastDeploymentAttemptedAt !== null
6202
+ lastDeploymentAttemptedAt: output.lastDeploymentAttemptedAt != null
6279
6203
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastDeploymentAttemptedAt)))
6280
6204
  : undefined,
6281
- lastDeploymentSucceededAt: output.lastDeploymentSucceededAt !== undefined && output.lastDeploymentSucceededAt !== null
6205
+ lastDeploymentSucceededAt: output.lastDeploymentSucceededAt != null
6282
6206
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastDeploymentSucceededAt)))
6283
6207
  : undefined,
6284
6208
  name: (0, smithy_client_1.expectString)(output.name),
@@ -6302,15 +6226,13 @@ const deserializeAws_json1_0ServiceInstanceSummaryList = (output, context) => {
6302
6226
  const deserializeAws_json1_0ServicePipeline = (output, context) => {
6303
6227
  return {
6304
6228
  arn: (0, smithy_client_1.expectString)(output.arn),
6305
- createdAt: output.createdAt !== undefined && output.createdAt !== null
6306
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
6307
- : undefined,
6229
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
6308
6230
  deploymentStatus: (0, smithy_client_1.expectString)(output.deploymentStatus),
6309
6231
  deploymentStatusMessage: (0, smithy_client_1.expectString)(output.deploymentStatusMessage),
6310
- lastDeploymentAttemptedAt: output.lastDeploymentAttemptedAt !== undefined && output.lastDeploymentAttemptedAt !== null
6232
+ lastDeploymentAttemptedAt: output.lastDeploymentAttemptedAt != null
6311
6233
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastDeploymentAttemptedAt)))
6312
6234
  : undefined,
6313
- lastDeploymentSucceededAt: output.lastDeploymentSucceededAt !== undefined && output.lastDeploymentSucceededAt !== null
6235
+ lastDeploymentSucceededAt: output.lastDeploymentSucceededAt != null
6314
6236
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastDeploymentSucceededAt)))
6315
6237
  : undefined,
6316
6238
  spec: (0, smithy_client_1.expectString)(output.spec),
@@ -6327,11 +6249,9 @@ const deserializeAws_json1_0ServiceQuotaExceededException = (output, context) =>
6327
6249
  const deserializeAws_json1_0ServiceSummary = (output, context) => {
6328
6250
  return {
6329
6251
  arn: (0, smithy_client_1.expectString)(output.arn),
6330
- createdAt: output.createdAt !== undefined && output.createdAt !== null
6331
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
6332
- : undefined,
6252
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
6333
6253
  description: (0, smithy_client_1.expectString)(output.description),
6334
- lastModifiedAt: output.lastModifiedAt !== undefined && output.lastModifiedAt !== null
6254
+ lastModifiedAt: output.lastModifiedAt != null
6335
6255
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedAt)))
6336
6256
  : undefined,
6337
6257
  name: (0, smithy_client_1.expectString)(output.name),
@@ -6354,13 +6274,11 @@ const deserializeAws_json1_0ServiceSummaryList = (output, context) => {
6354
6274
  const deserializeAws_json1_0ServiceTemplate = (output, context) => {
6355
6275
  return {
6356
6276
  arn: (0, smithy_client_1.expectString)(output.arn),
6357
- createdAt: output.createdAt !== undefined && output.createdAt !== null
6358
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
6359
- : undefined,
6277
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
6360
6278
  description: (0, smithy_client_1.expectString)(output.description),
6361
6279
  displayName: (0, smithy_client_1.expectString)(output.displayName),
6362
6280
  encryptionKey: (0, smithy_client_1.expectString)(output.encryptionKey),
6363
- lastModifiedAt: output.lastModifiedAt !== undefined && output.lastModifiedAt !== null
6281
+ lastModifiedAt: output.lastModifiedAt != null
6364
6282
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedAt)))
6365
6283
  : undefined,
6366
6284
  name: (0, smithy_client_1.expectString)(output.name),
@@ -6371,12 +6289,10 @@ const deserializeAws_json1_0ServiceTemplate = (output, context) => {
6371
6289
  const deserializeAws_json1_0ServiceTemplateSummary = (output, context) => {
6372
6290
  return {
6373
6291
  arn: (0, smithy_client_1.expectString)(output.arn),
6374
- createdAt: output.createdAt !== undefined && output.createdAt !== null
6375
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
6376
- : undefined,
6292
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
6377
6293
  description: (0, smithy_client_1.expectString)(output.description),
6378
6294
  displayName: (0, smithy_client_1.expectString)(output.displayName),
6379
- lastModifiedAt: output.lastModifiedAt !== undefined && output.lastModifiedAt !== null
6295
+ lastModifiedAt: output.lastModifiedAt != null
6380
6296
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedAt)))
6381
6297
  : undefined,
6382
6298
  name: (0, smithy_client_1.expectString)(output.name),
@@ -6409,14 +6325,12 @@ const deserializeAws_json1_0ServiceTemplateSupportedComponentSourceInputList = (
6409
6325
  const deserializeAws_json1_0ServiceTemplateVersion = (output, context) => {
6410
6326
  return {
6411
6327
  arn: (0, smithy_client_1.expectString)(output.arn),
6412
- compatibleEnvironmentTemplates: output.compatibleEnvironmentTemplates !== undefined && output.compatibleEnvironmentTemplates !== null
6328
+ compatibleEnvironmentTemplates: output.compatibleEnvironmentTemplates != null
6413
6329
  ? deserializeAws_json1_0CompatibleEnvironmentTemplateList(output.compatibleEnvironmentTemplates, context)
6414
6330
  : undefined,
6415
- createdAt: output.createdAt !== undefined && output.createdAt !== null
6416
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
6417
- : undefined,
6331
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
6418
6332
  description: (0, smithy_client_1.expectString)(output.description),
6419
- lastModifiedAt: output.lastModifiedAt !== undefined && output.lastModifiedAt !== null
6333
+ lastModifiedAt: output.lastModifiedAt != null
6420
6334
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedAt)))
6421
6335
  : undefined,
6422
6336
  majorVersion: (0, smithy_client_1.expectString)(output.majorVersion),
@@ -6425,7 +6339,7 @@ const deserializeAws_json1_0ServiceTemplateVersion = (output, context) => {
6425
6339
  schema: (0, smithy_client_1.expectString)(output.schema),
6426
6340
  status: (0, smithy_client_1.expectString)(output.status),
6427
6341
  statusMessage: (0, smithy_client_1.expectString)(output.statusMessage),
6428
- supportedComponentSources: output.supportedComponentSources !== undefined && output.supportedComponentSources !== null
6342
+ supportedComponentSources: output.supportedComponentSources != null
6429
6343
  ? deserializeAws_json1_0ServiceTemplateSupportedComponentSourceInputList(output.supportedComponentSources, context)
6430
6344
  : undefined,
6431
6345
  templateName: (0, smithy_client_1.expectString)(output.templateName),
@@ -6434,11 +6348,9 @@ const deserializeAws_json1_0ServiceTemplateVersion = (output, context) => {
6434
6348
  const deserializeAws_json1_0ServiceTemplateVersionSummary = (output, context) => {
6435
6349
  return {
6436
6350
  arn: (0, smithy_client_1.expectString)(output.arn),
6437
- createdAt: output.createdAt !== undefined && output.createdAt !== null
6438
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
6439
- : undefined,
6351
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
6440
6352
  description: (0, smithy_client_1.expectString)(output.description),
6441
- lastModifiedAt: output.lastModifiedAt !== undefined && output.lastModifiedAt !== null
6353
+ lastModifiedAt: output.lastModifiedAt != null
6442
6354
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedAt)))
6443
6355
  : undefined,
6444
6356
  majorVersion: (0, smithy_client_1.expectString)(output.majorVersion),
@@ -6500,84 +6412,76 @@ const deserializeAws_json1_0UntagResourceOutput = (output, context) => {
6500
6412
  };
6501
6413
  const deserializeAws_json1_0UpdateAccountSettingsOutput = (output, context) => {
6502
6414
  return {
6503
- accountSettings: output.accountSettings !== undefined && output.accountSettings !== null
6415
+ accountSettings: output.accountSettings != null
6504
6416
  ? deserializeAws_json1_0AccountSettings(output.accountSettings, context)
6505
6417
  : undefined,
6506
6418
  };
6507
6419
  };
6508
6420
  const deserializeAws_json1_0UpdateComponentOutput = (output, context) => {
6509
6421
  return {
6510
- component: output.component !== undefined && output.component !== null
6511
- ? deserializeAws_json1_0Component(output.component, context)
6512
- : undefined,
6422
+ component: output.component != null ? deserializeAws_json1_0Component(output.component, context) : undefined,
6513
6423
  };
6514
6424
  };
6515
6425
  const deserializeAws_json1_0UpdateEnvironmentAccountConnectionOutput = (output, context) => {
6516
6426
  return {
6517
- environmentAccountConnection: output.environmentAccountConnection !== undefined && output.environmentAccountConnection !== null
6427
+ environmentAccountConnection: output.environmentAccountConnection != null
6518
6428
  ? deserializeAws_json1_0EnvironmentAccountConnection(output.environmentAccountConnection, context)
6519
6429
  : undefined,
6520
6430
  };
6521
6431
  };
6522
6432
  const deserializeAws_json1_0UpdateEnvironmentOutput = (output, context) => {
6523
6433
  return {
6524
- environment: output.environment !== undefined && output.environment !== null
6525
- ? deserializeAws_json1_0Environment(output.environment, context)
6526
- : undefined,
6434
+ environment: output.environment != null ? deserializeAws_json1_0Environment(output.environment, context) : undefined,
6527
6435
  };
6528
6436
  };
6529
6437
  const deserializeAws_json1_0UpdateEnvironmentTemplateOutput = (output, context) => {
6530
6438
  return {
6531
- environmentTemplate: output.environmentTemplate !== undefined && output.environmentTemplate !== null
6439
+ environmentTemplate: output.environmentTemplate != null
6532
6440
  ? deserializeAws_json1_0EnvironmentTemplate(output.environmentTemplate, context)
6533
6441
  : undefined,
6534
6442
  };
6535
6443
  };
6536
6444
  const deserializeAws_json1_0UpdateEnvironmentTemplateVersionOutput = (output, context) => {
6537
6445
  return {
6538
- environmentTemplateVersion: output.environmentTemplateVersion !== undefined && output.environmentTemplateVersion !== null
6446
+ environmentTemplateVersion: output.environmentTemplateVersion != null
6539
6447
  ? deserializeAws_json1_0EnvironmentTemplateVersion(output.environmentTemplateVersion, context)
6540
6448
  : undefined,
6541
6449
  };
6542
6450
  };
6543
6451
  const deserializeAws_json1_0UpdateServiceInstanceOutput = (output, context) => {
6544
6452
  return {
6545
- serviceInstance: output.serviceInstance !== undefined && output.serviceInstance !== null
6453
+ serviceInstance: output.serviceInstance != null
6546
6454
  ? deserializeAws_json1_0ServiceInstance(output.serviceInstance, context)
6547
6455
  : undefined,
6548
6456
  };
6549
6457
  };
6550
6458
  const deserializeAws_json1_0UpdateServiceOutput = (output, context) => {
6551
6459
  return {
6552
- service: output.service !== undefined && output.service !== null
6553
- ? deserializeAws_json1_0Service(output.service, context)
6554
- : undefined,
6460
+ service: output.service != null ? deserializeAws_json1_0Service(output.service, context) : undefined,
6555
6461
  };
6556
6462
  };
6557
6463
  const deserializeAws_json1_0UpdateServicePipelineOutput = (output, context) => {
6558
6464
  return {
6559
- pipeline: output.pipeline !== undefined && output.pipeline !== null
6560
- ? deserializeAws_json1_0ServicePipeline(output.pipeline, context)
6561
- : undefined,
6465
+ pipeline: output.pipeline != null ? deserializeAws_json1_0ServicePipeline(output.pipeline, context) : undefined,
6562
6466
  };
6563
6467
  };
6564
6468
  const deserializeAws_json1_0UpdateServiceTemplateOutput = (output, context) => {
6565
6469
  return {
6566
- serviceTemplate: output.serviceTemplate !== undefined && output.serviceTemplate !== null
6470
+ serviceTemplate: output.serviceTemplate != null
6567
6471
  ? deserializeAws_json1_0ServiceTemplate(output.serviceTemplate, context)
6568
6472
  : undefined,
6569
6473
  };
6570
6474
  };
6571
6475
  const deserializeAws_json1_0UpdateServiceTemplateVersionOutput = (output, context) => {
6572
6476
  return {
6573
- serviceTemplateVersion: output.serviceTemplateVersion !== undefined && output.serviceTemplateVersion !== null
6477
+ serviceTemplateVersion: output.serviceTemplateVersion != null
6574
6478
  ? deserializeAws_json1_0ServiceTemplateVersion(output.serviceTemplateVersion, context)
6575
6479
  : undefined,
6576
6480
  };
6577
6481
  };
6578
6482
  const deserializeAws_json1_0UpdateTemplateSyncConfigOutput = (output, context) => {
6579
6483
  return {
6580
- templateSyncConfig: output.templateSyncConfig !== undefined && output.templateSyncConfig !== null
6484
+ templateSyncConfig: output.templateSyncConfig != null
6581
6485
  ? deserializeAws_json1_0TemplateSyncConfig(output.templateSyncConfig, context)
6582
6486
  : undefined,
6583
6487
  };
@@ -6649,5 +6553,4 @@ const loadRestJsonErrorCode = (output, data) => {
6649
6553
  if (data["__type"] !== undefined) {
6650
6554
  return sanitizeErrorCode(data["__type"]);
6651
6555
  }
6652
- return "";
6653
6556
  };