@aws-sdk/client-dynamodb 3.118.0 → 3.127.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -573,7 +573,7 @@ export var deserializeAws_json1_0BatchExecuteStatementCommand = function (output
573
573
  });
574
574
  }); };
575
575
  var deserializeAws_json1_0BatchExecuteStatementCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
576
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
576
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
577
577
  var _c;
578
578
  return __generator(this, function (_d) {
579
579
  switch (_d.label) {
@@ -583,7 +583,6 @@ var deserializeAws_json1_0BatchExecuteStatementCommandError = function (output,
583
583
  return [4, parseBody(output.body, context)];
584
584
  case 1:
585
585
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
586
- errorCode = "UnknownError";
587
586
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
588
587
  _b = errorCode;
589
588
  switch (_b) {
@@ -599,10 +598,12 @@ var deserializeAws_json1_0BatchExecuteStatementCommandError = function (output,
599
598
  case 5: throw _d.sent();
600
599
  case 6:
601
600
  parsedBody = parsedOutput.body;
601
+ $metadata = deserializeMetadata(output);
602
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
602
603
  response = new __BaseException({
603
- name: parsedBody.code || parsedBody.Code || errorCode,
604
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
604
605
  $fault: "client",
605
- $metadata: deserializeMetadata(output),
606
+ $metadata: $metadata,
606
607
  });
607
608
  throw __decorateServiceException(response, parsedBody);
608
609
  }
@@ -627,7 +628,7 @@ export var deserializeAws_json1_0BatchGetItemCommand = function (output, context
627
628
  });
628
629
  }); };
629
630
  var deserializeAws_json1_0BatchGetItemCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
630
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
631
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
631
632
  var _c;
632
633
  return __generator(this, function (_d) {
633
634
  switch (_d.label) {
@@ -637,7 +638,6 @@ var deserializeAws_json1_0BatchGetItemCommandError = function (output, context)
637
638
  return [4, parseBody(output.body, context)];
638
639
  case 1:
639
640
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
640
- errorCode = "UnknownError";
641
641
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
642
642
  _b = errorCode;
643
643
  switch (_b) {
@@ -665,10 +665,12 @@ var deserializeAws_json1_0BatchGetItemCommandError = function (output, context)
665
665
  case 11: throw _d.sent();
666
666
  case 12:
667
667
  parsedBody = parsedOutput.body;
668
+ $metadata = deserializeMetadata(output);
669
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
668
670
  response = new __BaseException({
669
- name: parsedBody.code || parsedBody.Code || errorCode,
671
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
670
672
  $fault: "client",
671
- $metadata: deserializeMetadata(output),
673
+ $metadata: $metadata,
672
674
  });
673
675
  throw __decorateServiceException(response, parsedBody);
674
676
  }
@@ -693,7 +695,7 @@ export var deserializeAws_json1_0BatchWriteItemCommand = function (output, conte
693
695
  });
694
696
  }); };
695
697
  var deserializeAws_json1_0BatchWriteItemCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
696
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
698
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
697
699
  var _c;
698
700
  return __generator(this, function (_d) {
699
701
  switch (_d.label) {
@@ -703,7 +705,6 @@ var deserializeAws_json1_0BatchWriteItemCommandError = function (output, context
703
705
  return [4, parseBody(output.body, context)];
704
706
  case 1:
705
707
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
706
- errorCode = "UnknownError";
707
708
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
708
709
  _b = errorCode;
709
710
  switch (_b) {
@@ -735,10 +736,12 @@ var deserializeAws_json1_0BatchWriteItemCommandError = function (output, context
735
736
  case 13: throw _d.sent();
736
737
  case 14:
737
738
  parsedBody = parsedOutput.body;
739
+ $metadata = deserializeMetadata(output);
740
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
738
741
  response = new __BaseException({
739
- name: parsedBody.code || parsedBody.Code || errorCode,
742
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
740
743
  $fault: "client",
741
- $metadata: deserializeMetadata(output),
744
+ $metadata: $metadata,
742
745
  });
743
746
  throw __decorateServiceException(response, parsedBody);
744
747
  }
@@ -763,7 +766,7 @@ export var deserializeAws_json1_0CreateBackupCommand = function (output, context
763
766
  });
764
767
  }); };
765
768
  var deserializeAws_json1_0CreateBackupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
766
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
769
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
767
770
  var _c;
768
771
  return __generator(this, function (_d) {
769
772
  switch (_d.label) {
@@ -773,7 +776,6 @@ var deserializeAws_json1_0CreateBackupCommandError = function (output, context)
773
776
  return [4, parseBody(output.body, context)];
774
777
  case 1:
775
778
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
776
- errorCode = "UnknownError";
777
779
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
778
780
  _b = errorCode;
779
781
  switch (_b) {
@@ -809,10 +811,12 @@ var deserializeAws_json1_0CreateBackupCommandError = function (output, context)
809
811
  case 15: throw _d.sent();
810
812
  case 16:
811
813
  parsedBody = parsedOutput.body;
814
+ $metadata = deserializeMetadata(output);
815
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
812
816
  response = new __BaseException({
813
- name: parsedBody.code || parsedBody.Code || errorCode,
817
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
814
818
  $fault: "client",
815
- $metadata: deserializeMetadata(output),
819
+ $metadata: $metadata,
816
820
  });
817
821
  throw __decorateServiceException(response, parsedBody);
818
822
  }
@@ -837,7 +841,7 @@ export var deserializeAws_json1_0CreateGlobalTableCommand = function (output, co
837
841
  });
838
842
  }); };
839
843
  var deserializeAws_json1_0CreateGlobalTableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
840
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
844
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
841
845
  var _c;
842
846
  return __generator(this, function (_d) {
843
847
  switch (_d.label) {
@@ -847,7 +851,6 @@ var deserializeAws_json1_0CreateGlobalTableCommandError = function (output, cont
847
851
  return [4, parseBody(output.body, context)];
848
852
  case 1:
849
853
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
850
- errorCode = "UnknownError";
851
854
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
852
855
  _b = errorCode;
853
856
  switch (_b) {
@@ -875,10 +878,12 @@ var deserializeAws_json1_0CreateGlobalTableCommandError = function (output, cont
875
878
  case 11: throw _d.sent();
876
879
  case 12:
877
880
  parsedBody = parsedOutput.body;
881
+ $metadata = deserializeMetadata(output);
882
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
878
883
  response = new __BaseException({
879
- name: parsedBody.code || parsedBody.Code || errorCode,
884
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
880
885
  $fault: "client",
881
- $metadata: deserializeMetadata(output),
886
+ $metadata: $metadata,
882
887
  });
883
888
  throw __decorateServiceException(response, parsedBody);
884
889
  }
@@ -903,7 +908,7 @@ export var deserializeAws_json1_0CreateTableCommand = function (output, context)
903
908
  });
904
909
  }); };
905
910
  var deserializeAws_json1_0CreateTableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
906
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
911
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
907
912
  var _c;
908
913
  return __generator(this, function (_d) {
909
914
  switch (_d.label) {
@@ -913,7 +918,6 @@ var deserializeAws_json1_0CreateTableCommandError = function (output, context) {
913
918
  return [4, parseBody(output.body, context)];
914
919
  case 1:
915
920
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
916
- errorCode = "UnknownError";
917
921
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
918
922
  _b = errorCode;
919
923
  switch (_b) {
@@ -937,10 +941,12 @@ var deserializeAws_json1_0CreateTableCommandError = function (output, context) {
937
941
  case 9: throw _d.sent();
938
942
  case 10:
939
943
  parsedBody = parsedOutput.body;
944
+ $metadata = deserializeMetadata(output);
945
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
940
946
  response = new __BaseException({
941
- name: parsedBody.code || parsedBody.Code || errorCode,
947
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
942
948
  $fault: "client",
943
- $metadata: deserializeMetadata(output),
949
+ $metadata: $metadata,
944
950
  });
945
951
  throw __decorateServiceException(response, parsedBody);
946
952
  }
@@ -965,7 +971,7 @@ export var deserializeAws_json1_0DeleteBackupCommand = function (output, context
965
971
  });
966
972
  }); };
967
973
  var deserializeAws_json1_0DeleteBackupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
968
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
974
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
969
975
  var _c;
970
976
  return __generator(this, function (_d) {
971
977
  switch (_d.label) {
@@ -975,7 +981,6 @@ var deserializeAws_json1_0DeleteBackupCommandError = function (output, context)
975
981
  return [4, parseBody(output.body, context)];
976
982
  case 1:
977
983
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
978
- errorCode = "UnknownError";
979
984
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
980
985
  _b = errorCode;
981
986
  switch (_b) {
@@ -1003,10 +1008,12 @@ var deserializeAws_json1_0DeleteBackupCommandError = function (output, context)
1003
1008
  case 11: throw _d.sent();
1004
1009
  case 12:
1005
1010
  parsedBody = parsedOutput.body;
1011
+ $metadata = deserializeMetadata(output);
1012
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1006
1013
  response = new __BaseException({
1007
- name: parsedBody.code || parsedBody.Code || errorCode,
1014
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1008
1015
  $fault: "client",
1009
- $metadata: deserializeMetadata(output),
1016
+ $metadata: $metadata,
1010
1017
  });
1011
1018
  throw __decorateServiceException(response, parsedBody);
1012
1019
  }
@@ -1031,7 +1038,7 @@ export var deserializeAws_json1_0DeleteItemCommand = function (output, context)
1031
1038
  });
1032
1039
  }); };
1033
1040
  var deserializeAws_json1_0DeleteItemCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1034
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1041
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1035
1042
  var _c;
1036
1043
  return __generator(this, function (_d) {
1037
1044
  switch (_d.label) {
@@ -1041,7 +1048,6 @@ var deserializeAws_json1_0DeleteItemCommandError = function (output, context) {
1041
1048
  return [4, parseBody(output.body, context)];
1042
1049
  case 1:
1043
1050
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1044
- errorCode = "UnknownError";
1045
1051
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1046
1052
  _b = errorCode;
1047
1053
  switch (_b) {
@@ -1081,10 +1087,12 @@ var deserializeAws_json1_0DeleteItemCommandError = function (output, context) {
1081
1087
  case 17: throw _d.sent();
1082
1088
  case 18:
1083
1089
  parsedBody = parsedOutput.body;
1090
+ $metadata = deserializeMetadata(output);
1091
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1084
1092
  response = new __BaseException({
1085
- name: parsedBody.code || parsedBody.Code || errorCode,
1093
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1086
1094
  $fault: "client",
1087
- $metadata: deserializeMetadata(output),
1095
+ $metadata: $metadata,
1088
1096
  });
1089
1097
  throw __decorateServiceException(response, parsedBody);
1090
1098
  }
@@ -1109,7 +1117,7 @@ export var deserializeAws_json1_0DeleteTableCommand = function (output, context)
1109
1117
  });
1110
1118
  }); };
1111
1119
  var deserializeAws_json1_0DeleteTableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1112
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1120
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1113
1121
  var _c;
1114
1122
  return __generator(this, function (_d) {
1115
1123
  switch (_d.label) {
@@ -1119,7 +1127,6 @@ var deserializeAws_json1_0DeleteTableCommandError = function (output, context) {
1119
1127
  return [4, parseBody(output.body, context)];
1120
1128
  case 1:
1121
1129
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1122
- errorCode = "UnknownError";
1123
1130
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1124
1131
  _b = errorCode;
1125
1132
  switch (_b) {
@@ -1147,10 +1154,12 @@ var deserializeAws_json1_0DeleteTableCommandError = function (output, context) {
1147
1154
  case 11: throw _d.sent();
1148
1155
  case 12:
1149
1156
  parsedBody = parsedOutput.body;
1157
+ $metadata = deserializeMetadata(output);
1158
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1150
1159
  response = new __BaseException({
1151
- name: parsedBody.code || parsedBody.Code || errorCode,
1160
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1152
1161
  $fault: "client",
1153
- $metadata: deserializeMetadata(output),
1162
+ $metadata: $metadata,
1154
1163
  });
1155
1164
  throw __decorateServiceException(response, parsedBody);
1156
1165
  }
@@ -1175,7 +1184,7 @@ export var deserializeAws_json1_0DescribeBackupCommand = function (output, conte
1175
1184
  });
1176
1185
  }); };
1177
1186
  var deserializeAws_json1_0DescribeBackupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1178
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1187
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1179
1188
  var _c;
1180
1189
  return __generator(this, function (_d) {
1181
1190
  switch (_d.label) {
@@ -1185,7 +1194,6 @@ var deserializeAws_json1_0DescribeBackupCommandError = function (output, context
1185
1194
  return [4, parseBody(output.body, context)];
1186
1195
  case 1:
1187
1196
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1188
- errorCode = "UnknownError";
1189
1197
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1190
1198
  _b = errorCode;
1191
1199
  switch (_b) {
@@ -1205,10 +1213,12 @@ var deserializeAws_json1_0DescribeBackupCommandError = function (output, context
1205
1213
  case 7: throw _d.sent();
1206
1214
  case 8:
1207
1215
  parsedBody = parsedOutput.body;
1216
+ $metadata = deserializeMetadata(output);
1217
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1208
1218
  response = new __BaseException({
1209
- name: parsedBody.code || parsedBody.Code || errorCode,
1219
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1210
1220
  $fault: "client",
1211
- $metadata: deserializeMetadata(output),
1221
+ $metadata: $metadata,
1212
1222
  });
1213
1223
  throw __decorateServiceException(response, parsedBody);
1214
1224
  }
@@ -1233,7 +1243,7 @@ export var deserializeAws_json1_0DescribeContinuousBackupsCommand = function (ou
1233
1243
  });
1234
1244
  }); };
1235
1245
  var deserializeAws_json1_0DescribeContinuousBackupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1236
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1246
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1237
1247
  var _c;
1238
1248
  return __generator(this, function (_d) {
1239
1249
  switch (_d.label) {
@@ -1243,7 +1253,6 @@ var deserializeAws_json1_0DescribeContinuousBackupsCommandError = function (outp
1243
1253
  return [4, parseBody(output.body, context)];
1244
1254
  case 1:
1245
1255
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1246
- errorCode = "UnknownError";
1247
1256
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1248
1257
  _b = errorCode;
1249
1258
  switch (_b) {
@@ -1263,10 +1272,12 @@ var deserializeAws_json1_0DescribeContinuousBackupsCommandError = function (outp
1263
1272
  case 7: throw _d.sent();
1264
1273
  case 8:
1265
1274
  parsedBody = parsedOutput.body;
1275
+ $metadata = deserializeMetadata(output);
1276
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1266
1277
  response = new __BaseException({
1267
- name: parsedBody.code || parsedBody.Code || errorCode,
1278
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1268
1279
  $fault: "client",
1269
- $metadata: deserializeMetadata(output),
1280
+ $metadata: $metadata,
1270
1281
  });
1271
1282
  throw __decorateServiceException(response, parsedBody);
1272
1283
  }
@@ -1291,7 +1302,7 @@ export var deserializeAws_json1_0DescribeContributorInsightsCommand = function (
1291
1302
  });
1292
1303
  }); };
1293
1304
  var deserializeAws_json1_0DescribeContributorInsightsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1294
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1305
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1295
1306
  var _c;
1296
1307
  return __generator(this, function (_d) {
1297
1308
  switch (_d.label) {
@@ -1301,7 +1312,6 @@ var deserializeAws_json1_0DescribeContributorInsightsCommandError = function (ou
1301
1312
  return [4, parseBody(output.body, context)];
1302
1313
  case 1:
1303
1314
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1304
- errorCode = "UnknownError";
1305
1315
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1306
1316
  _b = errorCode;
1307
1317
  switch (_b) {
@@ -1317,10 +1327,12 @@ var deserializeAws_json1_0DescribeContributorInsightsCommandError = function (ou
1317
1327
  case 5: throw _d.sent();
1318
1328
  case 6:
1319
1329
  parsedBody = parsedOutput.body;
1330
+ $metadata = deserializeMetadata(output);
1331
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1320
1332
  response = new __BaseException({
1321
- name: parsedBody.code || parsedBody.Code || errorCode,
1333
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1322
1334
  $fault: "client",
1323
- $metadata: deserializeMetadata(output),
1335
+ $metadata: $metadata,
1324
1336
  });
1325
1337
  throw __decorateServiceException(response, parsedBody);
1326
1338
  }
@@ -1345,7 +1357,7 @@ export var deserializeAws_json1_0DescribeEndpointsCommand = function (output, co
1345
1357
  });
1346
1358
  }); };
1347
1359
  var deserializeAws_json1_0DescribeEndpointsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1348
- var parsedOutput, _a, response, errorCode, parsedBody;
1360
+ var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
1349
1361
  var _b;
1350
1362
  return __generator(this, function (_c) {
1351
1363
  switch (_c.label) {
@@ -1355,15 +1367,16 @@ var deserializeAws_json1_0DescribeEndpointsCommandError = function (output, cont
1355
1367
  return [4, parseBody(output.body, context)];
1356
1368
  case 1:
1357
1369
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
1358
- errorCode = "UnknownError";
1359
1370
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1360
1371
  switch (errorCode) {
1361
1372
  default:
1362
1373
  parsedBody = parsedOutput.body;
1374
+ $metadata = deserializeMetadata(output);
1375
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1363
1376
  response = new __BaseException({
1364
- name: parsedBody.code || parsedBody.Code || errorCode,
1377
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1365
1378
  $fault: "client",
1366
- $metadata: deserializeMetadata(output),
1379
+ $metadata: $metadata,
1367
1380
  });
1368
1381
  throw __decorateServiceException(response, parsedBody);
1369
1382
  }
@@ -1390,7 +1403,7 @@ export var deserializeAws_json1_0DescribeExportCommand = function (output, conte
1390
1403
  });
1391
1404
  }); };
1392
1405
  var deserializeAws_json1_0DescribeExportCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1393
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1406
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1394
1407
  var _c;
1395
1408
  return __generator(this, function (_d) {
1396
1409
  switch (_d.label) {
@@ -1400,7 +1413,6 @@ var deserializeAws_json1_0DescribeExportCommandError = function (output, context
1400
1413
  return [4, parseBody(output.body, context)];
1401
1414
  case 1:
1402
1415
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1403
- errorCode = "UnknownError";
1404
1416
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1405
1417
  _b = errorCode;
1406
1418
  switch (_b) {
@@ -1420,10 +1432,12 @@ var deserializeAws_json1_0DescribeExportCommandError = function (output, context
1420
1432
  case 7: throw _d.sent();
1421
1433
  case 8:
1422
1434
  parsedBody = parsedOutput.body;
1435
+ $metadata = deserializeMetadata(output);
1436
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1423
1437
  response = new __BaseException({
1424
- name: parsedBody.code || parsedBody.Code || errorCode,
1438
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1425
1439
  $fault: "client",
1426
- $metadata: deserializeMetadata(output),
1440
+ $metadata: $metadata,
1427
1441
  });
1428
1442
  throw __decorateServiceException(response, parsedBody);
1429
1443
  }
@@ -1448,7 +1462,7 @@ export var deserializeAws_json1_0DescribeGlobalTableCommand = function (output,
1448
1462
  });
1449
1463
  }); };
1450
1464
  var deserializeAws_json1_0DescribeGlobalTableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1451
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1465
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1452
1466
  var _c;
1453
1467
  return __generator(this, function (_d) {
1454
1468
  switch (_d.label) {
@@ -1458,7 +1472,6 @@ var deserializeAws_json1_0DescribeGlobalTableCommandError = function (output, co
1458
1472
  return [4, parseBody(output.body, context)];
1459
1473
  case 1:
1460
1474
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1461
- errorCode = "UnknownError";
1462
1475
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1463
1476
  _b = errorCode;
1464
1477
  switch (_b) {
@@ -1478,10 +1491,12 @@ var deserializeAws_json1_0DescribeGlobalTableCommandError = function (output, co
1478
1491
  case 7: throw _d.sent();
1479
1492
  case 8:
1480
1493
  parsedBody = parsedOutput.body;
1494
+ $metadata = deserializeMetadata(output);
1495
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1481
1496
  response = new __BaseException({
1482
- name: parsedBody.code || parsedBody.Code || errorCode,
1497
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1483
1498
  $fault: "client",
1484
- $metadata: deserializeMetadata(output),
1499
+ $metadata: $metadata,
1485
1500
  });
1486
1501
  throw __decorateServiceException(response, parsedBody);
1487
1502
  }
@@ -1506,7 +1521,7 @@ export var deserializeAws_json1_0DescribeGlobalTableSettingsCommand = function (
1506
1521
  });
1507
1522
  }); };
1508
1523
  var deserializeAws_json1_0DescribeGlobalTableSettingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1509
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1524
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1510
1525
  var _c;
1511
1526
  return __generator(this, function (_d) {
1512
1527
  switch (_d.label) {
@@ -1516,7 +1531,6 @@ var deserializeAws_json1_0DescribeGlobalTableSettingsCommandError = function (ou
1516
1531
  return [4, parseBody(output.body, context)];
1517
1532
  case 1:
1518
1533
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1519
- errorCode = "UnknownError";
1520
1534
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1521
1535
  _b = errorCode;
1522
1536
  switch (_b) {
@@ -1536,10 +1550,12 @@ var deserializeAws_json1_0DescribeGlobalTableSettingsCommandError = function (ou
1536
1550
  case 7: throw _d.sent();
1537
1551
  case 8:
1538
1552
  parsedBody = parsedOutput.body;
1553
+ $metadata = deserializeMetadata(output);
1554
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1539
1555
  response = new __BaseException({
1540
- name: parsedBody.code || parsedBody.Code || errorCode,
1556
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1541
1557
  $fault: "client",
1542
- $metadata: deserializeMetadata(output),
1558
+ $metadata: $metadata,
1543
1559
  });
1544
1560
  throw __decorateServiceException(response, parsedBody);
1545
1561
  }
@@ -1564,7 +1580,7 @@ export var deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand = fu
1564
1580
  });
1565
1581
  }); };
1566
1582
  var deserializeAws_json1_0DescribeKinesisStreamingDestinationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1567
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1583
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1568
1584
  var _c;
1569
1585
  return __generator(this, function (_d) {
1570
1586
  switch (_d.label) {
@@ -1574,7 +1590,6 @@ var deserializeAws_json1_0DescribeKinesisStreamingDestinationCommandError = func
1574
1590
  return [4, parseBody(output.body, context)];
1575
1591
  case 1:
1576
1592
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1577
- errorCode = "UnknownError";
1578
1593
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1579
1594
  _b = errorCode;
1580
1595
  switch (_b) {
@@ -1594,10 +1609,12 @@ var deserializeAws_json1_0DescribeKinesisStreamingDestinationCommandError = func
1594
1609
  case 7: throw _d.sent();
1595
1610
  case 8:
1596
1611
  parsedBody = parsedOutput.body;
1612
+ $metadata = deserializeMetadata(output);
1613
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1597
1614
  response = new __BaseException({
1598
- name: parsedBody.code || parsedBody.Code || errorCode,
1615
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1599
1616
  $fault: "client",
1600
- $metadata: deserializeMetadata(output),
1617
+ $metadata: $metadata,
1601
1618
  });
1602
1619
  throw __decorateServiceException(response, parsedBody);
1603
1620
  }
@@ -1622,7 +1639,7 @@ export var deserializeAws_json1_0DescribeLimitsCommand = function (output, conte
1622
1639
  });
1623
1640
  }); };
1624
1641
  var deserializeAws_json1_0DescribeLimitsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1625
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1642
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1626
1643
  var _c;
1627
1644
  return __generator(this, function (_d) {
1628
1645
  switch (_d.label) {
@@ -1632,7 +1649,6 @@ var deserializeAws_json1_0DescribeLimitsCommandError = function (output, context
1632
1649
  return [4, parseBody(output.body, context)];
1633
1650
  case 1:
1634
1651
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1635
- errorCode = "UnknownError";
1636
1652
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1637
1653
  _b = errorCode;
1638
1654
  switch (_b) {
@@ -1648,10 +1664,12 @@ var deserializeAws_json1_0DescribeLimitsCommandError = function (output, context
1648
1664
  case 5: throw _d.sent();
1649
1665
  case 6:
1650
1666
  parsedBody = parsedOutput.body;
1667
+ $metadata = deserializeMetadata(output);
1668
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1651
1669
  response = new __BaseException({
1652
- name: parsedBody.code || parsedBody.Code || errorCode,
1670
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1653
1671
  $fault: "client",
1654
- $metadata: deserializeMetadata(output),
1672
+ $metadata: $metadata,
1655
1673
  });
1656
1674
  throw __decorateServiceException(response, parsedBody);
1657
1675
  }
@@ -1676,7 +1694,7 @@ export var deserializeAws_json1_0DescribeTableCommand = function (output, contex
1676
1694
  });
1677
1695
  }); };
1678
1696
  var deserializeAws_json1_0DescribeTableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1679
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1697
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1680
1698
  var _c;
1681
1699
  return __generator(this, function (_d) {
1682
1700
  switch (_d.label) {
@@ -1686,7 +1704,6 @@ var deserializeAws_json1_0DescribeTableCommandError = function (output, context)
1686
1704
  return [4, parseBody(output.body, context)];
1687
1705
  case 1:
1688
1706
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1689
- errorCode = "UnknownError";
1690
1707
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1691
1708
  _b = errorCode;
1692
1709
  switch (_b) {
@@ -1706,10 +1723,12 @@ var deserializeAws_json1_0DescribeTableCommandError = function (output, context)
1706
1723
  case 7: throw _d.sent();
1707
1724
  case 8:
1708
1725
  parsedBody = parsedOutput.body;
1726
+ $metadata = deserializeMetadata(output);
1727
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1709
1728
  response = new __BaseException({
1710
- name: parsedBody.code || parsedBody.Code || errorCode,
1729
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1711
1730
  $fault: "client",
1712
- $metadata: deserializeMetadata(output),
1731
+ $metadata: $metadata,
1713
1732
  });
1714
1733
  throw __decorateServiceException(response, parsedBody);
1715
1734
  }
@@ -1734,7 +1753,7 @@ export var deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand = functi
1734
1753
  });
1735
1754
  }); };
1736
1755
  var deserializeAws_json1_0DescribeTableReplicaAutoScalingCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1737
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1756
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1738
1757
  var _c;
1739
1758
  return __generator(this, function (_d) {
1740
1759
  switch (_d.label) {
@@ -1744,7 +1763,6 @@ var deserializeAws_json1_0DescribeTableReplicaAutoScalingCommandError = function
1744
1763
  return [4, parseBody(output.body, context)];
1745
1764
  case 1:
1746
1765
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1747
- errorCode = "UnknownError";
1748
1766
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1749
1767
  _b = errorCode;
1750
1768
  switch (_b) {
@@ -1760,10 +1778,12 @@ var deserializeAws_json1_0DescribeTableReplicaAutoScalingCommandError = function
1760
1778
  case 5: throw _d.sent();
1761
1779
  case 6:
1762
1780
  parsedBody = parsedOutput.body;
1781
+ $metadata = deserializeMetadata(output);
1782
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1763
1783
  response = new __BaseException({
1764
- name: parsedBody.code || parsedBody.Code || errorCode,
1784
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1765
1785
  $fault: "client",
1766
- $metadata: deserializeMetadata(output),
1786
+ $metadata: $metadata,
1767
1787
  });
1768
1788
  throw __decorateServiceException(response, parsedBody);
1769
1789
  }
@@ -1788,7 +1808,7 @@ export var deserializeAws_json1_0DescribeTimeToLiveCommand = function (output, c
1788
1808
  });
1789
1809
  }); };
1790
1810
  var deserializeAws_json1_0DescribeTimeToLiveCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1791
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1811
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1792
1812
  var _c;
1793
1813
  return __generator(this, function (_d) {
1794
1814
  switch (_d.label) {
@@ -1798,7 +1818,6 @@ var deserializeAws_json1_0DescribeTimeToLiveCommandError = function (output, con
1798
1818
  return [4, parseBody(output.body, context)];
1799
1819
  case 1:
1800
1820
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1801
- errorCode = "UnknownError";
1802
1821
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1803
1822
  _b = errorCode;
1804
1823
  switch (_b) {
@@ -1818,10 +1837,12 @@ var deserializeAws_json1_0DescribeTimeToLiveCommandError = function (output, con
1818
1837
  case 7: throw _d.sent();
1819
1838
  case 8:
1820
1839
  parsedBody = parsedOutput.body;
1840
+ $metadata = deserializeMetadata(output);
1841
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1821
1842
  response = new __BaseException({
1822
- name: parsedBody.code || parsedBody.Code || errorCode,
1843
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1823
1844
  $fault: "client",
1824
- $metadata: deserializeMetadata(output),
1845
+ $metadata: $metadata,
1825
1846
  });
1826
1847
  throw __decorateServiceException(response, parsedBody);
1827
1848
  }
@@ -1846,7 +1867,7 @@ export var deserializeAws_json1_0DisableKinesisStreamingDestinationCommand = fun
1846
1867
  });
1847
1868
  }); };
1848
1869
  var deserializeAws_json1_0DisableKinesisStreamingDestinationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1849
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1870
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1850
1871
  var _c;
1851
1872
  return __generator(this, function (_d) {
1852
1873
  switch (_d.label) {
@@ -1856,7 +1877,6 @@ var deserializeAws_json1_0DisableKinesisStreamingDestinationCommandError = funct
1856
1877
  return [4, parseBody(output.body, context)];
1857
1878
  case 1:
1858
1879
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1859
- errorCode = "UnknownError";
1860
1880
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1861
1881
  _b = errorCode;
1862
1882
  switch (_b) {
@@ -1884,10 +1904,12 @@ var deserializeAws_json1_0DisableKinesisStreamingDestinationCommandError = funct
1884
1904
  case 11: throw _d.sent();
1885
1905
  case 12:
1886
1906
  parsedBody = parsedOutput.body;
1907
+ $metadata = deserializeMetadata(output);
1908
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1887
1909
  response = new __BaseException({
1888
- name: parsedBody.code || parsedBody.Code || errorCode,
1910
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1889
1911
  $fault: "client",
1890
- $metadata: deserializeMetadata(output),
1912
+ $metadata: $metadata,
1891
1913
  });
1892
1914
  throw __decorateServiceException(response, parsedBody);
1893
1915
  }
@@ -1912,7 +1934,7 @@ export var deserializeAws_json1_0EnableKinesisStreamingDestinationCommand = func
1912
1934
  });
1913
1935
  }); };
1914
1936
  var deserializeAws_json1_0EnableKinesisStreamingDestinationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1915
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1937
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1916
1938
  var _c;
1917
1939
  return __generator(this, function (_d) {
1918
1940
  switch (_d.label) {
@@ -1922,7 +1944,6 @@ var deserializeAws_json1_0EnableKinesisStreamingDestinationCommandError = functi
1922
1944
  return [4, parseBody(output.body, context)];
1923
1945
  case 1:
1924
1946
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1925
- errorCode = "UnknownError";
1926
1947
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1927
1948
  _b = errorCode;
1928
1949
  switch (_b) {
@@ -1950,10 +1971,12 @@ var deserializeAws_json1_0EnableKinesisStreamingDestinationCommandError = functi
1950
1971
  case 11: throw _d.sent();
1951
1972
  case 12:
1952
1973
  parsedBody = parsedOutput.body;
1974
+ $metadata = deserializeMetadata(output);
1975
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1953
1976
  response = new __BaseException({
1954
- name: parsedBody.code || parsedBody.Code || errorCode,
1977
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1955
1978
  $fault: "client",
1956
- $metadata: deserializeMetadata(output),
1979
+ $metadata: $metadata,
1957
1980
  });
1958
1981
  throw __decorateServiceException(response, parsedBody);
1959
1982
  }
@@ -1978,7 +2001,7 @@ export var deserializeAws_json1_0ExecuteStatementCommand = function (output, con
1978
2001
  });
1979
2002
  }); };
1980
2003
  var deserializeAws_json1_0ExecuteStatementCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1981
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2004
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1982
2005
  var _c;
1983
2006
  return __generator(this, function (_d) {
1984
2007
  switch (_d.label) {
@@ -1988,7 +2011,6 @@ var deserializeAws_json1_0ExecuteStatementCommandError = function (output, conte
1988
2011
  return [4, parseBody(output.body, context)];
1989
2012
  case 1:
1990
2013
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1991
- errorCode = "UnknownError";
1992
2014
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1993
2015
  _b = errorCode;
1994
2016
  switch (_b) {
@@ -2028,10 +2050,12 @@ var deserializeAws_json1_0ExecuteStatementCommandError = function (output, conte
2028
2050
  case 17: throw _d.sent();
2029
2051
  case 18:
2030
2052
  parsedBody = parsedOutput.body;
2053
+ $metadata = deserializeMetadata(output);
2054
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2031
2055
  response = new __BaseException({
2032
- name: parsedBody.code || parsedBody.Code || errorCode,
2056
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2033
2057
  $fault: "client",
2034
- $metadata: deserializeMetadata(output),
2058
+ $metadata: $metadata,
2035
2059
  });
2036
2060
  throw __decorateServiceException(response, parsedBody);
2037
2061
  }
@@ -2056,7 +2080,7 @@ export var deserializeAws_json1_0ExecuteTransactionCommand = function (output, c
2056
2080
  });
2057
2081
  }); };
2058
2082
  var deserializeAws_json1_0ExecuteTransactionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2059
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2083
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2060
2084
  var _c;
2061
2085
  return __generator(this, function (_d) {
2062
2086
  switch (_d.label) {
@@ -2066,7 +2090,6 @@ var deserializeAws_json1_0ExecuteTransactionCommandError = function (output, con
2066
2090
  return [4, parseBody(output.body, context)];
2067
2091
  case 1:
2068
2092
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2069
- errorCode = "UnknownError";
2070
2093
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2071
2094
  _b = errorCode;
2072
2095
  switch (_b) {
@@ -2102,10 +2125,12 @@ var deserializeAws_json1_0ExecuteTransactionCommandError = function (output, con
2102
2125
  case 15: throw _d.sent();
2103
2126
  case 16:
2104
2127
  parsedBody = parsedOutput.body;
2128
+ $metadata = deserializeMetadata(output);
2129
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2105
2130
  response = new __BaseException({
2106
- name: parsedBody.code || parsedBody.Code || errorCode,
2131
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2107
2132
  $fault: "client",
2108
- $metadata: deserializeMetadata(output),
2133
+ $metadata: $metadata,
2109
2134
  });
2110
2135
  throw __decorateServiceException(response, parsedBody);
2111
2136
  }
@@ -2130,7 +2155,7 @@ export var deserializeAws_json1_0ExportTableToPointInTimeCommand = function (out
2130
2155
  });
2131
2156
  }); };
2132
2157
  var deserializeAws_json1_0ExportTableToPointInTimeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2133
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2158
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2134
2159
  var _c;
2135
2160
  return __generator(this, function (_d) {
2136
2161
  switch (_d.label) {
@@ -2140,7 +2165,6 @@ var deserializeAws_json1_0ExportTableToPointInTimeCommandError = function (outpu
2140
2165
  return [4, parseBody(output.body, context)];
2141
2166
  case 1:
2142
2167
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2143
- errorCode = "UnknownError";
2144
2168
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2145
2169
  _b = errorCode;
2146
2170
  switch (_b) {
@@ -2172,10 +2196,12 @@ var deserializeAws_json1_0ExportTableToPointInTimeCommandError = function (outpu
2172
2196
  case 13: throw _d.sent();
2173
2197
  case 14:
2174
2198
  parsedBody = parsedOutput.body;
2199
+ $metadata = deserializeMetadata(output);
2200
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2175
2201
  response = new __BaseException({
2176
- name: parsedBody.code || parsedBody.Code || errorCode,
2202
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2177
2203
  $fault: "client",
2178
- $metadata: deserializeMetadata(output),
2204
+ $metadata: $metadata,
2179
2205
  });
2180
2206
  throw __decorateServiceException(response, parsedBody);
2181
2207
  }
@@ -2200,7 +2226,7 @@ export var deserializeAws_json1_0GetItemCommand = function (output, context) { r
2200
2226
  });
2201
2227
  }); };
2202
2228
  var deserializeAws_json1_0GetItemCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2203
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2229
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2204
2230
  var _c;
2205
2231
  return __generator(this, function (_d) {
2206
2232
  switch (_d.label) {
@@ -2210,7 +2236,6 @@ var deserializeAws_json1_0GetItemCommandError = function (output, context) { ret
2210
2236
  return [4, parseBody(output.body, context)];
2211
2237
  case 1:
2212
2238
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2213
- errorCode = "UnknownError";
2214
2239
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2215
2240
  _b = errorCode;
2216
2241
  switch (_b) {
@@ -2238,10 +2263,12 @@ var deserializeAws_json1_0GetItemCommandError = function (output, context) { ret
2238
2263
  case 11: throw _d.sent();
2239
2264
  case 12:
2240
2265
  parsedBody = parsedOutput.body;
2266
+ $metadata = deserializeMetadata(output);
2267
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2241
2268
  response = new __BaseException({
2242
- name: parsedBody.code || parsedBody.Code || errorCode,
2269
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2243
2270
  $fault: "client",
2244
- $metadata: deserializeMetadata(output),
2271
+ $metadata: $metadata,
2245
2272
  });
2246
2273
  throw __decorateServiceException(response, parsedBody);
2247
2274
  }
@@ -2266,7 +2293,7 @@ export var deserializeAws_json1_0ListBackupsCommand = function (output, context)
2266
2293
  });
2267
2294
  }); };
2268
2295
  var deserializeAws_json1_0ListBackupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2269
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2296
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2270
2297
  var _c;
2271
2298
  return __generator(this, function (_d) {
2272
2299
  switch (_d.label) {
@@ -2276,7 +2303,6 @@ var deserializeAws_json1_0ListBackupsCommandError = function (output, context) {
2276
2303
  return [4, parseBody(output.body, context)];
2277
2304
  case 1:
2278
2305
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2279
- errorCode = "UnknownError";
2280
2306
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2281
2307
  _b = errorCode;
2282
2308
  switch (_b) {
@@ -2292,10 +2318,12 @@ var deserializeAws_json1_0ListBackupsCommandError = function (output, context) {
2292
2318
  case 5: throw _d.sent();
2293
2319
  case 6:
2294
2320
  parsedBody = parsedOutput.body;
2321
+ $metadata = deserializeMetadata(output);
2322
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2295
2323
  response = new __BaseException({
2296
- name: parsedBody.code || parsedBody.Code || errorCode,
2324
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2297
2325
  $fault: "client",
2298
- $metadata: deserializeMetadata(output),
2326
+ $metadata: $metadata,
2299
2327
  });
2300
2328
  throw __decorateServiceException(response, parsedBody);
2301
2329
  }
@@ -2320,7 +2348,7 @@ export var deserializeAws_json1_0ListContributorInsightsCommand = function (outp
2320
2348
  });
2321
2349
  }); };
2322
2350
  var deserializeAws_json1_0ListContributorInsightsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2323
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2351
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2324
2352
  var _c;
2325
2353
  return __generator(this, function (_d) {
2326
2354
  switch (_d.label) {
@@ -2330,7 +2358,6 @@ var deserializeAws_json1_0ListContributorInsightsCommandError = function (output
2330
2358
  return [4, parseBody(output.body, context)];
2331
2359
  case 1:
2332
2360
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2333
- errorCode = "UnknownError";
2334
2361
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2335
2362
  _b = errorCode;
2336
2363
  switch (_b) {
@@ -2346,10 +2373,12 @@ var deserializeAws_json1_0ListContributorInsightsCommandError = function (output
2346
2373
  case 5: throw _d.sent();
2347
2374
  case 6:
2348
2375
  parsedBody = parsedOutput.body;
2376
+ $metadata = deserializeMetadata(output);
2377
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2349
2378
  response = new __BaseException({
2350
- name: parsedBody.code || parsedBody.Code || errorCode,
2379
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2351
2380
  $fault: "client",
2352
- $metadata: deserializeMetadata(output),
2381
+ $metadata: $metadata,
2353
2382
  });
2354
2383
  throw __decorateServiceException(response, parsedBody);
2355
2384
  }
@@ -2374,7 +2403,7 @@ export var deserializeAws_json1_0ListExportsCommand = function (output, context)
2374
2403
  });
2375
2404
  }); };
2376
2405
  var deserializeAws_json1_0ListExportsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2377
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2406
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2378
2407
  var _c;
2379
2408
  return __generator(this, function (_d) {
2380
2409
  switch (_d.label) {
@@ -2384,7 +2413,6 @@ var deserializeAws_json1_0ListExportsCommandError = function (output, context) {
2384
2413
  return [4, parseBody(output.body, context)];
2385
2414
  case 1:
2386
2415
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2387
- errorCode = "UnknownError";
2388
2416
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2389
2417
  _b = errorCode;
2390
2418
  switch (_b) {
@@ -2400,10 +2428,12 @@ var deserializeAws_json1_0ListExportsCommandError = function (output, context) {
2400
2428
  case 5: throw _d.sent();
2401
2429
  case 6:
2402
2430
  parsedBody = parsedOutput.body;
2431
+ $metadata = deserializeMetadata(output);
2432
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2403
2433
  response = new __BaseException({
2404
- name: parsedBody.code || parsedBody.Code || errorCode,
2434
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2405
2435
  $fault: "client",
2406
- $metadata: deserializeMetadata(output),
2436
+ $metadata: $metadata,
2407
2437
  });
2408
2438
  throw __decorateServiceException(response, parsedBody);
2409
2439
  }
@@ -2428,7 +2458,7 @@ export var deserializeAws_json1_0ListGlobalTablesCommand = function (output, con
2428
2458
  });
2429
2459
  }); };
2430
2460
  var deserializeAws_json1_0ListGlobalTablesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2431
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2461
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2432
2462
  var _c;
2433
2463
  return __generator(this, function (_d) {
2434
2464
  switch (_d.label) {
@@ -2438,7 +2468,6 @@ var deserializeAws_json1_0ListGlobalTablesCommandError = function (output, conte
2438
2468
  return [4, parseBody(output.body, context)];
2439
2469
  case 1:
2440
2470
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2441
- errorCode = "UnknownError";
2442
2471
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2443
2472
  _b = errorCode;
2444
2473
  switch (_b) {
@@ -2454,10 +2483,12 @@ var deserializeAws_json1_0ListGlobalTablesCommandError = function (output, conte
2454
2483
  case 5: throw _d.sent();
2455
2484
  case 6:
2456
2485
  parsedBody = parsedOutput.body;
2486
+ $metadata = deserializeMetadata(output);
2487
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2457
2488
  response = new __BaseException({
2458
- name: parsedBody.code || parsedBody.Code || errorCode,
2489
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2459
2490
  $fault: "client",
2460
- $metadata: deserializeMetadata(output),
2491
+ $metadata: $metadata,
2461
2492
  });
2462
2493
  throw __decorateServiceException(response, parsedBody);
2463
2494
  }
@@ -2482,7 +2513,7 @@ export var deserializeAws_json1_0ListTablesCommand = function (output, context)
2482
2513
  });
2483
2514
  }); };
2484
2515
  var deserializeAws_json1_0ListTablesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2485
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2516
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2486
2517
  var _c;
2487
2518
  return __generator(this, function (_d) {
2488
2519
  switch (_d.label) {
@@ -2492,7 +2523,6 @@ var deserializeAws_json1_0ListTablesCommandError = function (output, context) {
2492
2523
  return [4, parseBody(output.body, context)];
2493
2524
  case 1:
2494
2525
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2495
- errorCode = "UnknownError";
2496
2526
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2497
2527
  _b = errorCode;
2498
2528
  switch (_b) {
@@ -2508,10 +2538,12 @@ var deserializeAws_json1_0ListTablesCommandError = function (output, context) {
2508
2538
  case 5: throw _d.sent();
2509
2539
  case 6:
2510
2540
  parsedBody = parsedOutput.body;
2541
+ $metadata = deserializeMetadata(output);
2542
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2511
2543
  response = new __BaseException({
2512
- name: parsedBody.code || parsedBody.Code || errorCode,
2544
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2513
2545
  $fault: "client",
2514
- $metadata: deserializeMetadata(output),
2546
+ $metadata: $metadata,
2515
2547
  });
2516
2548
  throw __decorateServiceException(response, parsedBody);
2517
2549
  }
@@ -2536,7 +2568,7 @@ export var deserializeAws_json1_0ListTagsOfResourceCommand = function (output, c
2536
2568
  });
2537
2569
  }); };
2538
2570
  var deserializeAws_json1_0ListTagsOfResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2539
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2571
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2540
2572
  var _c;
2541
2573
  return __generator(this, function (_d) {
2542
2574
  switch (_d.label) {
@@ -2546,7 +2578,6 @@ var deserializeAws_json1_0ListTagsOfResourceCommandError = function (output, con
2546
2578
  return [4, parseBody(output.body, context)];
2547
2579
  case 1:
2548
2580
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2549
- errorCode = "UnknownError";
2550
2581
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2551
2582
  _b = errorCode;
2552
2583
  switch (_b) {
@@ -2566,10 +2597,12 @@ var deserializeAws_json1_0ListTagsOfResourceCommandError = function (output, con
2566
2597
  case 7: throw _d.sent();
2567
2598
  case 8:
2568
2599
  parsedBody = parsedOutput.body;
2600
+ $metadata = deserializeMetadata(output);
2601
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2569
2602
  response = new __BaseException({
2570
- name: parsedBody.code || parsedBody.Code || errorCode,
2603
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2571
2604
  $fault: "client",
2572
- $metadata: deserializeMetadata(output),
2605
+ $metadata: $metadata,
2573
2606
  });
2574
2607
  throw __decorateServiceException(response, parsedBody);
2575
2608
  }
@@ -2594,7 +2627,7 @@ export var deserializeAws_json1_0PutItemCommand = function (output, context) { r
2594
2627
  });
2595
2628
  }); };
2596
2629
  var deserializeAws_json1_0PutItemCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2597
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2630
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2598
2631
  var _c;
2599
2632
  return __generator(this, function (_d) {
2600
2633
  switch (_d.label) {
@@ -2604,7 +2637,6 @@ var deserializeAws_json1_0PutItemCommandError = function (output, context) { ret
2604
2637
  return [4, parseBody(output.body, context)];
2605
2638
  case 1:
2606
2639
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2607
- errorCode = "UnknownError";
2608
2640
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2609
2641
  _b = errorCode;
2610
2642
  switch (_b) {
@@ -2644,10 +2676,12 @@ var deserializeAws_json1_0PutItemCommandError = function (output, context) { ret
2644
2676
  case 17: throw _d.sent();
2645
2677
  case 18:
2646
2678
  parsedBody = parsedOutput.body;
2679
+ $metadata = deserializeMetadata(output);
2680
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2647
2681
  response = new __BaseException({
2648
- name: parsedBody.code || parsedBody.Code || errorCode,
2682
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2649
2683
  $fault: "client",
2650
- $metadata: deserializeMetadata(output),
2684
+ $metadata: $metadata,
2651
2685
  });
2652
2686
  throw __decorateServiceException(response, parsedBody);
2653
2687
  }
@@ -2672,7 +2706,7 @@ export var deserializeAws_json1_0QueryCommand = function (output, context) { ret
2672
2706
  });
2673
2707
  }); };
2674
2708
  var deserializeAws_json1_0QueryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2675
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2709
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2676
2710
  var _c;
2677
2711
  return __generator(this, function (_d) {
2678
2712
  switch (_d.label) {
@@ -2682,7 +2716,6 @@ var deserializeAws_json1_0QueryCommandError = function (output, context) { retur
2682
2716
  return [4, parseBody(output.body, context)];
2683
2717
  case 1:
2684
2718
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2685
- errorCode = "UnknownError";
2686
2719
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2687
2720
  _b = errorCode;
2688
2721
  switch (_b) {
@@ -2710,10 +2743,12 @@ var deserializeAws_json1_0QueryCommandError = function (output, context) { retur
2710
2743
  case 11: throw _d.sent();
2711
2744
  case 12:
2712
2745
  parsedBody = parsedOutput.body;
2746
+ $metadata = deserializeMetadata(output);
2747
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2713
2748
  response = new __BaseException({
2714
- name: parsedBody.code || parsedBody.Code || errorCode,
2749
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2715
2750
  $fault: "client",
2716
- $metadata: deserializeMetadata(output),
2751
+ $metadata: $metadata,
2717
2752
  });
2718
2753
  throw __decorateServiceException(response, parsedBody);
2719
2754
  }
@@ -2738,7 +2773,7 @@ export var deserializeAws_json1_0RestoreTableFromBackupCommand = function (outpu
2738
2773
  });
2739
2774
  }); };
2740
2775
  var deserializeAws_json1_0RestoreTableFromBackupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2741
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2776
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2742
2777
  var _c;
2743
2778
  return __generator(this, function (_d) {
2744
2779
  switch (_d.label) {
@@ -2748,7 +2783,6 @@ var deserializeAws_json1_0RestoreTableFromBackupCommandError = function (output,
2748
2783
  return [4, parseBody(output.body, context)];
2749
2784
  case 1:
2750
2785
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2751
- errorCode = "UnknownError";
2752
2786
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2753
2787
  _b = errorCode;
2754
2788
  switch (_b) {
@@ -2784,10 +2818,12 @@ var deserializeAws_json1_0RestoreTableFromBackupCommandError = function (output,
2784
2818
  case 15: throw _d.sent();
2785
2819
  case 16:
2786
2820
  parsedBody = parsedOutput.body;
2821
+ $metadata = deserializeMetadata(output);
2822
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2787
2823
  response = new __BaseException({
2788
- name: parsedBody.code || parsedBody.Code || errorCode,
2824
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2789
2825
  $fault: "client",
2790
- $metadata: deserializeMetadata(output),
2826
+ $metadata: $metadata,
2791
2827
  });
2792
2828
  throw __decorateServiceException(response, parsedBody);
2793
2829
  }
@@ -2812,7 +2848,7 @@ export var deserializeAws_json1_0RestoreTableToPointInTimeCommand = function (ou
2812
2848
  });
2813
2849
  }); };
2814
2850
  var deserializeAws_json1_0RestoreTableToPointInTimeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2815
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2851
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2816
2852
  var _c;
2817
2853
  return __generator(this, function (_d) {
2818
2854
  switch (_d.label) {
@@ -2822,7 +2858,6 @@ var deserializeAws_json1_0RestoreTableToPointInTimeCommandError = function (outp
2822
2858
  return [4, parseBody(output.body, context)];
2823
2859
  case 1:
2824
2860
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2825
- errorCode = "UnknownError";
2826
2861
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2827
2862
  _b = errorCode;
2828
2863
  switch (_b) {
@@ -2862,10 +2897,12 @@ var deserializeAws_json1_0RestoreTableToPointInTimeCommandError = function (outp
2862
2897
  case 17: throw _d.sent();
2863
2898
  case 18:
2864
2899
  parsedBody = parsedOutput.body;
2900
+ $metadata = deserializeMetadata(output);
2901
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2865
2902
  response = new __BaseException({
2866
- name: parsedBody.code || parsedBody.Code || errorCode,
2903
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2867
2904
  $fault: "client",
2868
- $metadata: deserializeMetadata(output),
2905
+ $metadata: $metadata,
2869
2906
  });
2870
2907
  throw __decorateServiceException(response, parsedBody);
2871
2908
  }
@@ -2890,7 +2927,7 @@ export var deserializeAws_json1_0ScanCommand = function (output, context) { retu
2890
2927
  });
2891
2928
  }); };
2892
2929
  var deserializeAws_json1_0ScanCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2893
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2930
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2894
2931
  var _c;
2895
2932
  return __generator(this, function (_d) {
2896
2933
  switch (_d.label) {
@@ -2900,7 +2937,6 @@ var deserializeAws_json1_0ScanCommandError = function (output, context) { return
2900
2937
  return [4, parseBody(output.body, context)];
2901
2938
  case 1:
2902
2939
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2903
- errorCode = "UnknownError";
2904
2940
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2905
2941
  _b = errorCode;
2906
2942
  switch (_b) {
@@ -2928,10 +2964,12 @@ var deserializeAws_json1_0ScanCommandError = function (output, context) { return
2928
2964
  case 11: throw _d.sent();
2929
2965
  case 12:
2930
2966
  parsedBody = parsedOutput.body;
2967
+ $metadata = deserializeMetadata(output);
2968
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2931
2969
  response = new __BaseException({
2932
- name: parsedBody.code || parsedBody.Code || errorCode,
2970
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2933
2971
  $fault: "client",
2934
- $metadata: deserializeMetadata(output),
2972
+ $metadata: $metadata,
2935
2973
  });
2936
2974
  throw __decorateServiceException(response, parsedBody);
2937
2975
  }
@@ -2956,7 +2994,7 @@ export var deserializeAws_json1_0TagResourceCommand = function (output, context)
2956
2994
  });
2957
2995
  }); };
2958
2996
  var deserializeAws_json1_0TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2959
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2997
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2960
2998
  var _c;
2961
2999
  return __generator(this, function (_d) {
2962
3000
  switch (_d.label) {
@@ -2966,7 +3004,6 @@ var deserializeAws_json1_0TagResourceCommandError = function (output, context) {
2966
3004
  return [4, parseBody(output.body, context)];
2967
3005
  case 1:
2968
3006
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2969
- errorCode = "UnknownError";
2970
3007
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2971
3008
  _b = errorCode;
2972
3009
  switch (_b) {
@@ -2994,10 +3031,12 @@ var deserializeAws_json1_0TagResourceCommandError = function (output, context) {
2994
3031
  case 11: throw _d.sent();
2995
3032
  case 12:
2996
3033
  parsedBody = parsedOutput.body;
3034
+ $metadata = deserializeMetadata(output);
3035
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2997
3036
  response = new __BaseException({
2998
- name: parsedBody.code || parsedBody.Code || errorCode,
3037
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2999
3038
  $fault: "client",
3000
- $metadata: deserializeMetadata(output),
3039
+ $metadata: $metadata,
3001
3040
  });
3002
3041
  throw __decorateServiceException(response, parsedBody);
3003
3042
  }
@@ -3022,7 +3061,7 @@ export var deserializeAws_json1_0TransactGetItemsCommand = function (output, con
3022
3061
  });
3023
3062
  }); };
3024
3063
  var deserializeAws_json1_0TransactGetItemsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3025
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
3064
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3026
3065
  var _c;
3027
3066
  return __generator(this, function (_d) {
3028
3067
  switch (_d.label) {
@@ -3032,7 +3071,6 @@ var deserializeAws_json1_0TransactGetItemsCommandError = function (output, conte
3032
3071
  return [4, parseBody(output.body, context)];
3033
3072
  case 1:
3034
3073
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3035
- errorCode = "UnknownError";
3036
3074
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3037
3075
  _b = errorCode;
3038
3076
  switch (_b) {
@@ -3064,10 +3102,12 @@ var deserializeAws_json1_0TransactGetItemsCommandError = function (output, conte
3064
3102
  case 13: throw _d.sent();
3065
3103
  case 14:
3066
3104
  parsedBody = parsedOutput.body;
3105
+ $metadata = deserializeMetadata(output);
3106
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3067
3107
  response = new __BaseException({
3068
- name: parsedBody.code || parsedBody.Code || errorCode,
3108
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3069
3109
  $fault: "client",
3070
- $metadata: deserializeMetadata(output),
3110
+ $metadata: $metadata,
3071
3111
  });
3072
3112
  throw __decorateServiceException(response, parsedBody);
3073
3113
  }
@@ -3092,7 +3132,7 @@ export var deserializeAws_json1_0TransactWriteItemsCommand = function (output, c
3092
3132
  });
3093
3133
  }); };
3094
3134
  var deserializeAws_json1_0TransactWriteItemsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3095
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
3135
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3096
3136
  var _c;
3097
3137
  return __generator(this, function (_d) {
3098
3138
  switch (_d.label) {
@@ -3102,7 +3142,6 @@ var deserializeAws_json1_0TransactWriteItemsCommandError = function (output, con
3102
3142
  return [4, parseBody(output.body, context)];
3103
3143
  case 1:
3104
3144
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3105
- errorCode = "UnknownError";
3106
3145
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3107
3146
  _b = errorCode;
3108
3147
  switch (_b) {
@@ -3142,10 +3181,12 @@ var deserializeAws_json1_0TransactWriteItemsCommandError = function (output, con
3142
3181
  case 17: throw _d.sent();
3143
3182
  case 18:
3144
3183
  parsedBody = parsedOutput.body;
3184
+ $metadata = deserializeMetadata(output);
3185
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3145
3186
  response = new __BaseException({
3146
- name: parsedBody.code || parsedBody.Code || errorCode,
3187
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3147
3188
  $fault: "client",
3148
- $metadata: deserializeMetadata(output),
3189
+ $metadata: $metadata,
3149
3190
  });
3150
3191
  throw __decorateServiceException(response, parsedBody);
3151
3192
  }
@@ -3170,7 +3211,7 @@ export var deserializeAws_json1_0UntagResourceCommand = function (output, contex
3170
3211
  });
3171
3212
  }); };
3172
3213
  var deserializeAws_json1_0UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3173
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
3214
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3174
3215
  var _c;
3175
3216
  return __generator(this, function (_d) {
3176
3217
  switch (_d.label) {
@@ -3180,7 +3221,6 @@ var deserializeAws_json1_0UntagResourceCommandError = function (output, context)
3180
3221
  return [4, parseBody(output.body, context)];
3181
3222
  case 1:
3182
3223
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3183
- errorCode = "UnknownError";
3184
3224
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3185
3225
  _b = errorCode;
3186
3226
  switch (_b) {
@@ -3208,10 +3248,12 @@ var deserializeAws_json1_0UntagResourceCommandError = function (output, context)
3208
3248
  case 11: throw _d.sent();
3209
3249
  case 12:
3210
3250
  parsedBody = parsedOutput.body;
3251
+ $metadata = deserializeMetadata(output);
3252
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3211
3253
  response = new __BaseException({
3212
- name: parsedBody.code || parsedBody.Code || errorCode,
3254
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3213
3255
  $fault: "client",
3214
- $metadata: deserializeMetadata(output),
3256
+ $metadata: $metadata,
3215
3257
  });
3216
3258
  throw __decorateServiceException(response, parsedBody);
3217
3259
  }
@@ -3236,7 +3278,7 @@ export var deserializeAws_json1_0UpdateContinuousBackupsCommand = function (outp
3236
3278
  });
3237
3279
  }); };
3238
3280
  var deserializeAws_json1_0UpdateContinuousBackupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3239
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
3281
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3240
3282
  var _c;
3241
3283
  return __generator(this, function (_d) {
3242
3284
  switch (_d.label) {
@@ -3246,7 +3288,6 @@ var deserializeAws_json1_0UpdateContinuousBackupsCommandError = function (output
3246
3288
  return [4, parseBody(output.body, context)];
3247
3289
  case 1:
3248
3290
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3249
- errorCode = "UnknownError";
3250
3291
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3251
3292
  _b = errorCode;
3252
3293
  switch (_b) {
@@ -3270,10 +3311,12 @@ var deserializeAws_json1_0UpdateContinuousBackupsCommandError = function (output
3270
3311
  case 9: throw _d.sent();
3271
3312
  case 10:
3272
3313
  parsedBody = parsedOutput.body;
3314
+ $metadata = deserializeMetadata(output);
3315
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3273
3316
  response = new __BaseException({
3274
- name: parsedBody.code || parsedBody.Code || errorCode,
3317
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3275
3318
  $fault: "client",
3276
- $metadata: deserializeMetadata(output),
3319
+ $metadata: $metadata,
3277
3320
  });
3278
3321
  throw __decorateServiceException(response, parsedBody);
3279
3322
  }
@@ -3298,7 +3341,7 @@ export var deserializeAws_json1_0UpdateContributorInsightsCommand = function (ou
3298
3341
  });
3299
3342
  }); };
3300
3343
  var deserializeAws_json1_0UpdateContributorInsightsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3301
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
3344
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3302
3345
  var _c;
3303
3346
  return __generator(this, function (_d) {
3304
3347
  switch (_d.label) {
@@ -3308,7 +3351,6 @@ var deserializeAws_json1_0UpdateContributorInsightsCommandError = function (outp
3308
3351
  return [4, parseBody(output.body, context)];
3309
3352
  case 1:
3310
3353
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3311
- errorCode = "UnknownError";
3312
3354
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3313
3355
  _b = errorCode;
3314
3356
  switch (_b) {
@@ -3324,10 +3366,12 @@ var deserializeAws_json1_0UpdateContributorInsightsCommandError = function (outp
3324
3366
  case 5: throw _d.sent();
3325
3367
  case 6:
3326
3368
  parsedBody = parsedOutput.body;
3369
+ $metadata = deserializeMetadata(output);
3370
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3327
3371
  response = new __BaseException({
3328
- name: parsedBody.code || parsedBody.Code || errorCode,
3372
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3329
3373
  $fault: "client",
3330
- $metadata: deserializeMetadata(output),
3374
+ $metadata: $metadata,
3331
3375
  });
3332
3376
  throw __decorateServiceException(response, parsedBody);
3333
3377
  }
@@ -3352,7 +3396,7 @@ export var deserializeAws_json1_0UpdateGlobalTableCommand = function (output, co
3352
3396
  });
3353
3397
  }); };
3354
3398
  var deserializeAws_json1_0UpdateGlobalTableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3355
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
3399
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3356
3400
  var _c;
3357
3401
  return __generator(this, function (_d) {
3358
3402
  switch (_d.label) {
@@ -3362,7 +3406,6 @@ var deserializeAws_json1_0UpdateGlobalTableCommandError = function (output, cont
3362
3406
  return [4, parseBody(output.body, context)];
3363
3407
  case 1:
3364
3408
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3365
- errorCode = "UnknownError";
3366
3409
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3367
3410
  _b = errorCode;
3368
3411
  switch (_b) {
@@ -3394,10 +3437,12 @@ var deserializeAws_json1_0UpdateGlobalTableCommandError = function (output, cont
3394
3437
  case 13: throw _d.sent();
3395
3438
  case 14:
3396
3439
  parsedBody = parsedOutput.body;
3440
+ $metadata = deserializeMetadata(output);
3441
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3397
3442
  response = new __BaseException({
3398
- name: parsedBody.code || parsedBody.Code || errorCode,
3443
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3399
3444
  $fault: "client",
3400
- $metadata: deserializeMetadata(output),
3445
+ $metadata: $metadata,
3401
3446
  });
3402
3447
  throw __decorateServiceException(response, parsedBody);
3403
3448
  }
@@ -3422,7 +3467,7 @@ export var deserializeAws_json1_0UpdateGlobalTableSettingsCommand = function (ou
3422
3467
  });
3423
3468
  }); };
3424
3469
  var deserializeAws_json1_0UpdateGlobalTableSettingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3425
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
3470
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3426
3471
  var _c;
3427
3472
  return __generator(this, function (_d) {
3428
3473
  switch (_d.label) {
@@ -3432,7 +3477,6 @@ var deserializeAws_json1_0UpdateGlobalTableSettingsCommandError = function (outp
3432
3477
  return [4, parseBody(output.body, context)];
3433
3478
  case 1:
3434
3479
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3435
- errorCode = "UnknownError";
3436
3480
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3437
3481
  _b = errorCode;
3438
3482
  switch (_b) {
@@ -3468,10 +3512,12 @@ var deserializeAws_json1_0UpdateGlobalTableSettingsCommandError = function (outp
3468
3512
  case 15: throw _d.sent();
3469
3513
  case 16:
3470
3514
  parsedBody = parsedOutput.body;
3515
+ $metadata = deserializeMetadata(output);
3516
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3471
3517
  response = new __BaseException({
3472
- name: parsedBody.code || parsedBody.Code || errorCode,
3518
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3473
3519
  $fault: "client",
3474
- $metadata: deserializeMetadata(output),
3520
+ $metadata: $metadata,
3475
3521
  });
3476
3522
  throw __decorateServiceException(response, parsedBody);
3477
3523
  }
@@ -3496,7 +3542,7 @@ export var deserializeAws_json1_0UpdateItemCommand = function (output, context)
3496
3542
  });
3497
3543
  }); };
3498
3544
  var deserializeAws_json1_0UpdateItemCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3499
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
3545
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3500
3546
  var _c;
3501
3547
  return __generator(this, function (_d) {
3502
3548
  switch (_d.label) {
@@ -3506,7 +3552,6 @@ var deserializeAws_json1_0UpdateItemCommandError = function (output, context) {
3506
3552
  return [4, parseBody(output.body, context)];
3507
3553
  case 1:
3508
3554
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3509
- errorCode = "UnknownError";
3510
3555
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3511
3556
  _b = errorCode;
3512
3557
  switch (_b) {
@@ -3546,10 +3591,12 @@ var deserializeAws_json1_0UpdateItemCommandError = function (output, context) {
3546
3591
  case 17: throw _d.sent();
3547
3592
  case 18:
3548
3593
  parsedBody = parsedOutput.body;
3594
+ $metadata = deserializeMetadata(output);
3595
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3549
3596
  response = new __BaseException({
3550
- name: parsedBody.code || parsedBody.Code || errorCode,
3597
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3551
3598
  $fault: "client",
3552
- $metadata: deserializeMetadata(output),
3599
+ $metadata: $metadata,
3553
3600
  });
3554
3601
  throw __decorateServiceException(response, parsedBody);
3555
3602
  }
@@ -3574,7 +3621,7 @@ export var deserializeAws_json1_0UpdateTableCommand = function (output, context)
3574
3621
  });
3575
3622
  }); };
3576
3623
  var deserializeAws_json1_0UpdateTableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3577
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
3624
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3578
3625
  var _c;
3579
3626
  return __generator(this, function (_d) {
3580
3627
  switch (_d.label) {
@@ -3584,7 +3631,6 @@ var deserializeAws_json1_0UpdateTableCommandError = function (output, context) {
3584
3631
  return [4, parseBody(output.body, context)];
3585
3632
  case 1:
3586
3633
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3587
- errorCode = "UnknownError";
3588
3634
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3589
3635
  _b = errorCode;
3590
3636
  switch (_b) {
@@ -3612,10 +3658,12 @@ var deserializeAws_json1_0UpdateTableCommandError = function (output, context) {
3612
3658
  case 11: throw _d.sent();
3613
3659
  case 12:
3614
3660
  parsedBody = parsedOutput.body;
3661
+ $metadata = deserializeMetadata(output);
3662
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3615
3663
  response = new __BaseException({
3616
- name: parsedBody.code || parsedBody.Code || errorCode,
3664
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3617
3665
  $fault: "client",
3618
- $metadata: deserializeMetadata(output),
3666
+ $metadata: $metadata,
3619
3667
  });
3620
3668
  throw __decorateServiceException(response, parsedBody);
3621
3669
  }
@@ -3640,7 +3688,7 @@ export var deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand = function
3640
3688
  });
3641
3689
  }); };
3642
3690
  var deserializeAws_json1_0UpdateTableReplicaAutoScalingCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3643
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
3691
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3644
3692
  var _c;
3645
3693
  return __generator(this, function (_d) {
3646
3694
  switch (_d.label) {
@@ -3650,7 +3698,6 @@ var deserializeAws_json1_0UpdateTableReplicaAutoScalingCommandError = function (
3650
3698
  return [4, parseBody(output.body, context)];
3651
3699
  case 1:
3652
3700
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3653
- errorCode = "UnknownError";
3654
3701
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3655
3702
  _b = errorCode;
3656
3703
  switch (_b) {
@@ -3674,10 +3721,12 @@ var deserializeAws_json1_0UpdateTableReplicaAutoScalingCommandError = function (
3674
3721
  case 9: throw _d.sent();
3675
3722
  case 10:
3676
3723
  parsedBody = parsedOutput.body;
3724
+ $metadata = deserializeMetadata(output);
3725
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3677
3726
  response = new __BaseException({
3678
- name: parsedBody.code || parsedBody.Code || errorCode,
3727
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3679
3728
  $fault: "client",
3680
- $metadata: deserializeMetadata(output),
3729
+ $metadata: $metadata,
3681
3730
  });
3682
3731
  throw __decorateServiceException(response, parsedBody);
3683
3732
  }
@@ -3702,7 +3751,7 @@ export var deserializeAws_json1_0UpdateTimeToLiveCommand = function (output, con
3702
3751
  });
3703
3752
  }); };
3704
3753
  var deserializeAws_json1_0UpdateTimeToLiveCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3705
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
3754
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3706
3755
  var _c;
3707
3756
  return __generator(this, function (_d) {
3708
3757
  switch (_d.label) {
@@ -3712,7 +3761,6 @@ var deserializeAws_json1_0UpdateTimeToLiveCommandError = function (output, conte
3712
3761
  return [4, parseBody(output.body, context)];
3713
3762
  case 1:
3714
3763
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3715
- errorCode = "UnknownError";
3716
3764
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3717
3765
  _b = errorCode;
3718
3766
  switch (_b) {
@@ -3740,10 +3788,12 @@ var deserializeAws_json1_0UpdateTimeToLiveCommandError = function (output, conte
3740
3788
  case 11: throw _d.sent();
3741
3789
  case 12:
3742
3790
  parsedBody = parsedOutput.body;
3791
+ $metadata = deserializeMetadata(output);
3792
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3743
3793
  response = new __BaseException({
3744
- name: parsedBody.code || parsedBody.Code || errorCode,
3794
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3745
3795
  $fault: "client",
3746
- $metadata: deserializeMetadata(output),
3796
+ $metadata: $metadata,
3747
3797
  });
3748
3798
  throw __decorateServiceException(response, parsedBody);
3749
3799
  }
@@ -4020,7 +4070,7 @@ var deserializeAws_json1_0TransactionInProgressExceptionResponse = function (par
4020
4070
  });
4021
4071
  }); };
4022
4072
  var serializeAws_json1_0AttributeDefinition = function (input, context) {
4023
- return __assign(__assign({}, (input.AttributeName !== undefined && input.AttributeName !== null && { AttributeName: input.AttributeName })), (input.AttributeType !== undefined && input.AttributeType !== null && { AttributeType: input.AttributeType }));
4073
+ return __assign(__assign({}, (input.AttributeName != null && { AttributeName: input.AttributeName })), (input.AttributeType != null && { AttributeType: input.AttributeType }));
4024
4074
  };
4025
4075
  var serializeAws_json1_0AttributeDefinitions = function (input, context) {
4026
4076
  return input
@@ -4078,41 +4128,28 @@ var serializeAws_json1_0AttributeValueList = function (input, context) {
4078
4128
  });
4079
4129
  };
4080
4130
  var serializeAws_json1_0AttributeValueUpdate = function (input, context) {
4081
- return __assign(__assign({}, (input.Action !== undefined && input.Action !== null && { Action: input.Action })), (input.Value !== undefined &&
4082
- input.Value !== null && { Value: serializeAws_json1_0AttributeValue(input.Value, context) }));
4131
+ return __assign(__assign({}, (input.Action != null && { Action: input.Action })), (input.Value != null && { Value: serializeAws_json1_0AttributeValue(input.Value, context) }));
4083
4132
  };
4084
4133
  var serializeAws_json1_0AutoScalingPolicyUpdate = function (input, context) {
4085
- return __assign(__assign({}, (input.PolicyName !== undefined && input.PolicyName !== null && { PolicyName: input.PolicyName })), (input.TargetTrackingScalingPolicyConfiguration !== undefined &&
4086
- input.TargetTrackingScalingPolicyConfiguration !== null && {
4134
+ return __assign(__assign({}, (input.PolicyName != null && { PolicyName: input.PolicyName })), (input.TargetTrackingScalingPolicyConfiguration != null && {
4087
4135
  TargetTrackingScalingPolicyConfiguration: serializeAws_json1_0AutoScalingTargetTrackingScalingPolicyConfigurationUpdate(input.TargetTrackingScalingPolicyConfiguration, context),
4088
4136
  }));
4089
4137
  };
4090
4138
  var serializeAws_json1_0AutoScalingSettingsUpdate = function (input, context) {
4091
- return __assign(__assign(__assign(__assign(__assign({}, (input.AutoScalingDisabled !== undefined &&
4092
- input.AutoScalingDisabled !== null && { AutoScalingDisabled: input.AutoScalingDisabled })), (input.AutoScalingRoleArn !== undefined &&
4093
- input.AutoScalingRoleArn !== null && { AutoScalingRoleArn: input.AutoScalingRoleArn })), (input.MaximumUnits !== undefined && input.MaximumUnits !== null && { MaximumUnits: input.MaximumUnits })), (input.MinimumUnits !== undefined && input.MinimumUnits !== null && { MinimumUnits: input.MinimumUnits })), (input.ScalingPolicyUpdate !== undefined &&
4094
- input.ScalingPolicyUpdate !== null && {
4139
+ return __assign(__assign(__assign(__assign(__assign({}, (input.AutoScalingDisabled != null && { AutoScalingDisabled: input.AutoScalingDisabled })), (input.AutoScalingRoleArn != null && { AutoScalingRoleArn: input.AutoScalingRoleArn })), (input.MaximumUnits != null && { MaximumUnits: input.MaximumUnits })), (input.MinimumUnits != null && { MinimumUnits: input.MinimumUnits })), (input.ScalingPolicyUpdate != null && {
4095
4140
  ScalingPolicyUpdate: serializeAws_json1_0AutoScalingPolicyUpdate(input.ScalingPolicyUpdate, context),
4096
4141
  }));
4097
4142
  };
4098
4143
  var serializeAws_json1_0AutoScalingTargetTrackingScalingPolicyConfigurationUpdate = function (input, context) {
4099
- return __assign(__assign(__assign(__assign({}, (input.DisableScaleIn !== undefined &&
4100
- input.DisableScaleIn !== null && { DisableScaleIn: input.DisableScaleIn })), (input.ScaleInCooldown !== undefined &&
4101
- input.ScaleInCooldown !== null && { ScaleInCooldown: input.ScaleInCooldown })), (input.ScaleOutCooldown !== undefined &&
4102
- input.ScaleOutCooldown !== null && { ScaleOutCooldown: input.ScaleOutCooldown })), (input.TargetValue !== undefined &&
4103
- input.TargetValue !== null && { TargetValue: __serializeFloat(input.TargetValue) }));
4144
+ return __assign(__assign(__assign(__assign({}, (input.DisableScaleIn != null && { DisableScaleIn: input.DisableScaleIn })), (input.ScaleInCooldown != null && { ScaleInCooldown: input.ScaleInCooldown })), (input.ScaleOutCooldown != null && { ScaleOutCooldown: input.ScaleOutCooldown })), (input.TargetValue != null && { TargetValue: __serializeFloat(input.TargetValue) }));
4104
4145
  };
4105
4146
  var serializeAws_json1_0BatchExecuteStatementInput = function (input, context) {
4106
- return __assign(__assign({}, (input.ReturnConsumedCapacity !== undefined &&
4107
- input.ReturnConsumedCapacity !== null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity })), (input.Statements !== undefined &&
4108
- input.Statements !== null && { Statements: serializeAws_json1_0PartiQLBatchRequest(input.Statements, context) }));
4147
+ return __assign(__assign({}, (input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity })), (input.Statements != null && { Statements: serializeAws_json1_0PartiQLBatchRequest(input.Statements, context) }));
4109
4148
  };
4110
4149
  var serializeAws_json1_0BatchGetItemInput = function (input, context) {
4111
- return __assign(__assign({}, (input.RequestItems !== undefined &&
4112
- input.RequestItems !== null && {
4150
+ return __assign(__assign({}, (input.RequestItems != null && {
4113
4151
  RequestItems: serializeAws_json1_0BatchGetRequestMap(input.RequestItems, context),
4114
- })), (input.ReturnConsumedCapacity !== undefined &&
4115
- input.ReturnConsumedCapacity !== null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }));
4152
+ })), (input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }));
4116
4153
  };
4117
4154
  var serializeAws_json1_0BatchGetRequestMap = function (input, context) {
4118
4155
  return Object.entries(input).reduce(function (acc, _a) {
@@ -4125,19 +4162,16 @@ var serializeAws_json1_0BatchGetRequestMap = function (input, context) {
4125
4162
  }, {});
4126
4163
  };
4127
4164
  var serializeAws_json1_0BatchStatementRequest = function (input, context) {
4128
- return __assign(__assign(__assign({}, (input.ConsistentRead !== undefined &&
4129
- input.ConsistentRead !== null && { ConsistentRead: input.ConsistentRead })), (input.Parameters !== undefined &&
4130
- input.Parameters !== null && {
4165
+ return __assign(__assign(__assign({}, (input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead })), (input.Parameters != null && {
4131
4166
  Parameters: serializeAws_json1_0PreparedStatementParameters(input.Parameters, context),
4132
- })), (input.Statement !== undefined && input.Statement !== null && { Statement: input.Statement }));
4167
+ })), (input.Statement != null && { Statement: input.Statement }));
4133
4168
  };
4134
4169
  var serializeAws_json1_0BatchWriteItemInput = function (input, context) {
4135
- return __assign(__assign(__assign({}, (input.RequestItems !== undefined &&
4136
- input.RequestItems !== null && {
4170
+ return __assign(__assign(__assign({}, (input.RequestItems != null && {
4137
4171
  RequestItems: serializeAws_json1_0BatchWriteItemRequestMap(input.RequestItems, context),
4138
- })), (input.ReturnConsumedCapacity !== undefined &&
4139
- input.ReturnConsumedCapacity !== null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity })), (input.ReturnItemCollectionMetrics !== undefined &&
4140
- input.ReturnItemCollectionMetrics !== null && { ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics }));
4172
+ })), (input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity })), (input.ReturnItemCollectionMetrics != null && {
4173
+ ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics,
4174
+ }));
4141
4175
  };
4142
4176
  var serializeAws_json1_0BatchWriteItemRequestMap = function (input, context) {
4143
4177
  return Object.entries(input).reduce(function (acc, _a) {
@@ -4160,175 +4194,137 @@ var serializeAws_json1_0BinarySetAttributeValue = function (input, context) {
4160
4194
  });
4161
4195
  };
4162
4196
  var serializeAws_json1_0Condition = function (input, context) {
4163
- return __assign(__assign({}, (input.AttributeValueList !== undefined &&
4164
- input.AttributeValueList !== null && {
4197
+ return __assign(__assign({}, (input.AttributeValueList != null && {
4165
4198
  AttributeValueList: serializeAws_json1_0AttributeValueList(input.AttributeValueList, context),
4166
- })), (input.ComparisonOperator !== undefined &&
4167
- input.ComparisonOperator !== null && { ComparisonOperator: input.ComparisonOperator }));
4199
+ })), (input.ComparisonOperator != null && { ComparisonOperator: input.ComparisonOperator }));
4168
4200
  };
4169
4201
  var serializeAws_json1_0ConditionCheck = function (input, context) {
4170
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ConditionExpression !== undefined &&
4171
- input.ConditionExpression !== null && { ConditionExpression: input.ConditionExpression })), (input.ExpressionAttributeNames !== undefined &&
4172
- input.ExpressionAttributeNames !== null && {
4202
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression })), (input.ExpressionAttributeNames != null && {
4173
4203
  ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context),
4174
- })), (input.ExpressionAttributeValues !== undefined &&
4175
- input.ExpressionAttributeValues !== null && {
4204
+ })), (input.ExpressionAttributeValues != null && {
4176
4205
  ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context),
4177
- })), (input.Key !== undefined && input.Key !== null && { Key: serializeAws_json1_0Key(input.Key, context) })), (input.ReturnValuesOnConditionCheckFailure !== undefined &&
4178
- input.ReturnValuesOnConditionCheckFailure !== null && {
4206
+ })), (input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) })), (input.ReturnValuesOnConditionCheckFailure != null && {
4179
4207
  ReturnValuesOnConditionCheckFailure: input.ReturnValuesOnConditionCheckFailure,
4180
- })), (input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }));
4208
+ })), (input.TableName != null && { TableName: input.TableName }));
4181
4209
  };
4182
4210
  var serializeAws_json1_0CreateBackupInput = function (input, context) {
4183
- return __assign(__assign({}, (input.BackupName !== undefined && input.BackupName !== null && { BackupName: input.BackupName })), (input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }));
4211
+ return __assign(__assign({}, (input.BackupName != null && { BackupName: input.BackupName })), (input.TableName != null && { TableName: input.TableName }));
4184
4212
  };
4185
4213
  var serializeAws_json1_0CreateGlobalSecondaryIndexAction = function (input, context) {
4186
- return __assign(__assign(__assign(__assign({}, (input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName })), (input.KeySchema !== undefined &&
4187
- input.KeySchema !== null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) })), (input.Projection !== undefined &&
4188
- input.Projection !== null && { Projection: serializeAws_json1_0Projection(input.Projection, context) })), (input.ProvisionedThroughput !== undefined &&
4189
- input.ProvisionedThroughput !== null && {
4214
+ return __assign(__assign(__assign(__assign({}, (input.IndexName != null && { IndexName: input.IndexName })), (input.KeySchema != null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) })), (input.Projection != null && { Projection: serializeAws_json1_0Projection(input.Projection, context) })), (input.ProvisionedThroughput != null && {
4190
4215
  ProvisionedThroughput: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughput, context),
4191
4216
  }));
4192
4217
  };
4193
4218
  var serializeAws_json1_0CreateGlobalTableInput = function (input, context) {
4194
- return __assign(__assign({}, (input.GlobalTableName !== undefined &&
4195
- input.GlobalTableName !== null && { GlobalTableName: input.GlobalTableName })), (input.ReplicationGroup !== undefined &&
4196
- input.ReplicationGroup !== null && {
4219
+ return __assign(__assign({}, (input.GlobalTableName != null && { GlobalTableName: input.GlobalTableName })), (input.ReplicationGroup != null && {
4197
4220
  ReplicationGroup: serializeAws_json1_0ReplicaList(input.ReplicationGroup, context),
4198
4221
  }));
4199
4222
  };
4200
4223
  var serializeAws_json1_0CreateReplicaAction = function (input, context) {
4201
- return __assign({}, (input.RegionName !== undefined && input.RegionName !== null && { RegionName: input.RegionName }));
4224
+ return __assign({}, (input.RegionName != null && { RegionName: input.RegionName }));
4202
4225
  };
4203
4226
  var serializeAws_json1_0CreateReplicationGroupMemberAction = function (input, context) {
4204
- return __assign(__assign(__assign(__assign(__assign({}, (input.GlobalSecondaryIndexes !== undefined &&
4205
- input.GlobalSecondaryIndexes !== null && {
4227
+ return __assign(__assign(__assign(__assign(__assign({}, (input.GlobalSecondaryIndexes != null && {
4206
4228
  GlobalSecondaryIndexes: serializeAws_json1_0ReplicaGlobalSecondaryIndexList(input.GlobalSecondaryIndexes, context),
4207
- })), (input.KMSMasterKeyId !== undefined &&
4208
- input.KMSMasterKeyId !== null && { KMSMasterKeyId: input.KMSMasterKeyId })), (input.ProvisionedThroughputOverride !== undefined &&
4209
- input.ProvisionedThroughputOverride !== null && {
4229
+ })), (input.KMSMasterKeyId != null && { KMSMasterKeyId: input.KMSMasterKeyId })), (input.ProvisionedThroughputOverride != null && {
4210
4230
  ProvisionedThroughputOverride: serializeAws_json1_0ProvisionedThroughputOverride(input.ProvisionedThroughputOverride, context),
4211
- })), (input.RegionName !== undefined && input.RegionName !== null && { RegionName: input.RegionName })), (input.TableClassOverride !== undefined &&
4212
- input.TableClassOverride !== null && { TableClassOverride: input.TableClassOverride }));
4231
+ })), (input.RegionName != null && { RegionName: input.RegionName })), (input.TableClassOverride != null && { TableClassOverride: input.TableClassOverride }));
4213
4232
  };
4214
4233
  var serializeAws_json1_0CreateTableInput = function (input, context) {
4215
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AttributeDefinitions !== undefined &&
4216
- input.AttributeDefinitions !== null && {
4234
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AttributeDefinitions != null && {
4217
4235
  AttributeDefinitions: serializeAws_json1_0AttributeDefinitions(input.AttributeDefinitions, context),
4218
- })), (input.BillingMode !== undefined && input.BillingMode !== null && { BillingMode: input.BillingMode })), (input.GlobalSecondaryIndexes !== undefined &&
4219
- input.GlobalSecondaryIndexes !== null && {
4236
+ })), (input.BillingMode != null && { BillingMode: input.BillingMode })), (input.GlobalSecondaryIndexes != null && {
4220
4237
  GlobalSecondaryIndexes: serializeAws_json1_0GlobalSecondaryIndexList(input.GlobalSecondaryIndexes, context),
4221
- })), (input.KeySchema !== undefined &&
4222
- input.KeySchema !== null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) })), (input.LocalSecondaryIndexes !== undefined &&
4223
- input.LocalSecondaryIndexes !== null && {
4238
+ })), (input.KeySchema != null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) })), (input.LocalSecondaryIndexes != null && {
4224
4239
  LocalSecondaryIndexes: serializeAws_json1_0LocalSecondaryIndexList(input.LocalSecondaryIndexes, context),
4225
- })), (input.ProvisionedThroughput !== undefined &&
4226
- input.ProvisionedThroughput !== null && {
4240
+ })), (input.ProvisionedThroughput != null && {
4227
4241
  ProvisionedThroughput: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughput, context),
4228
- })), (input.SSESpecification !== undefined &&
4229
- input.SSESpecification !== null && {
4242
+ })), (input.SSESpecification != null && {
4230
4243
  SSESpecification: serializeAws_json1_0SSESpecification(input.SSESpecification, context),
4231
- })), (input.StreamSpecification !== undefined &&
4232
- input.StreamSpecification !== null && {
4244
+ })), (input.StreamSpecification != null && {
4233
4245
  StreamSpecification: serializeAws_json1_0StreamSpecification(input.StreamSpecification, context),
4234
- })), (input.TableClass !== undefined && input.TableClass !== null && { TableClass: input.TableClass })), (input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }));
4246
+ })), (input.TableClass != null && { TableClass: input.TableClass })), (input.TableName != null && { TableName: input.TableName })), (input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }));
4235
4247
  };
4236
4248
  var serializeAws_json1_0Delete = function (input, context) {
4237
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ConditionExpression !== undefined &&
4238
- input.ConditionExpression !== null && { ConditionExpression: input.ConditionExpression })), (input.ExpressionAttributeNames !== undefined &&
4239
- input.ExpressionAttributeNames !== null && {
4249
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression })), (input.ExpressionAttributeNames != null && {
4240
4250
  ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context),
4241
- })), (input.ExpressionAttributeValues !== undefined &&
4242
- input.ExpressionAttributeValues !== null && {
4251
+ })), (input.ExpressionAttributeValues != null && {
4243
4252
  ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context),
4244
- })), (input.Key !== undefined && input.Key !== null && { Key: serializeAws_json1_0Key(input.Key, context) })), (input.ReturnValuesOnConditionCheckFailure !== undefined &&
4245
- input.ReturnValuesOnConditionCheckFailure !== null && {
4253
+ })), (input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) })), (input.ReturnValuesOnConditionCheckFailure != null && {
4246
4254
  ReturnValuesOnConditionCheckFailure: input.ReturnValuesOnConditionCheckFailure,
4247
- })), (input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }));
4255
+ })), (input.TableName != null && { TableName: input.TableName }));
4248
4256
  };
4249
4257
  var serializeAws_json1_0DeleteBackupInput = function (input, context) {
4250
- return __assign({}, (input.BackupArn !== undefined && input.BackupArn !== null && { BackupArn: input.BackupArn }));
4258
+ return __assign({}, (input.BackupArn != null && { BackupArn: input.BackupArn }));
4251
4259
  };
4252
4260
  var serializeAws_json1_0DeleteGlobalSecondaryIndexAction = function (input, context) {
4253
- return __assign({}, (input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName }));
4261
+ return __assign({}, (input.IndexName != null && { IndexName: input.IndexName }));
4254
4262
  };
4255
4263
  var serializeAws_json1_0DeleteItemInput = function (input, context) {
4256
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ConditionExpression !== undefined &&
4257
- input.ConditionExpression !== null && { ConditionExpression: input.ConditionExpression })), (input.ConditionalOperator !== undefined &&
4258
- input.ConditionalOperator !== null && { ConditionalOperator: input.ConditionalOperator })), (input.Expected !== undefined &&
4259
- input.Expected !== null && { Expected: serializeAws_json1_0ExpectedAttributeMap(input.Expected, context) })), (input.ExpressionAttributeNames !== undefined &&
4260
- input.ExpressionAttributeNames !== null && {
4264
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression })), (input.ConditionalOperator != null && { ConditionalOperator: input.ConditionalOperator })), (input.Expected != null && { Expected: serializeAws_json1_0ExpectedAttributeMap(input.Expected, context) })), (input.ExpressionAttributeNames != null && {
4261
4265
  ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context),
4262
- })), (input.ExpressionAttributeValues !== undefined &&
4263
- input.ExpressionAttributeValues !== null && {
4266
+ })), (input.ExpressionAttributeValues != null && {
4264
4267
  ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context),
4265
- })), (input.Key !== undefined && input.Key !== null && { Key: serializeAws_json1_0Key(input.Key, context) })), (input.ReturnConsumedCapacity !== undefined &&
4266
- input.ReturnConsumedCapacity !== null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity })), (input.ReturnItemCollectionMetrics !== undefined &&
4267
- input.ReturnItemCollectionMetrics !== null && { ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics })), (input.ReturnValues !== undefined && input.ReturnValues !== null && { ReturnValues: input.ReturnValues })), (input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }));
4268
+ })), (input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) })), (input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity })), (input.ReturnItemCollectionMetrics != null && {
4269
+ ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics,
4270
+ })), (input.ReturnValues != null && { ReturnValues: input.ReturnValues })), (input.TableName != null && { TableName: input.TableName }));
4268
4271
  };
4269
4272
  var serializeAws_json1_0DeleteReplicaAction = function (input, context) {
4270
- return __assign({}, (input.RegionName !== undefined && input.RegionName !== null && { RegionName: input.RegionName }));
4273
+ return __assign({}, (input.RegionName != null && { RegionName: input.RegionName }));
4271
4274
  };
4272
4275
  var serializeAws_json1_0DeleteReplicationGroupMemberAction = function (input, context) {
4273
- return __assign({}, (input.RegionName !== undefined && input.RegionName !== null && { RegionName: input.RegionName }));
4276
+ return __assign({}, (input.RegionName != null && { RegionName: input.RegionName }));
4274
4277
  };
4275
4278
  var serializeAws_json1_0DeleteRequest = function (input, context) {
4276
- return __assign({}, (input.Key !== undefined && input.Key !== null && { Key: serializeAws_json1_0Key(input.Key, context) }));
4279
+ return __assign({}, (input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }));
4277
4280
  };
4278
4281
  var serializeAws_json1_0DeleteTableInput = function (input, context) {
4279
- return __assign({}, (input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }));
4282
+ return __assign({}, (input.TableName != null && { TableName: input.TableName }));
4280
4283
  };
4281
4284
  var serializeAws_json1_0DescribeBackupInput = function (input, context) {
4282
- return __assign({}, (input.BackupArn !== undefined && input.BackupArn !== null && { BackupArn: input.BackupArn }));
4285
+ return __assign({}, (input.BackupArn != null && { BackupArn: input.BackupArn }));
4283
4286
  };
4284
4287
  var serializeAws_json1_0DescribeContinuousBackupsInput = function (input, context) {
4285
- return __assign({}, (input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }));
4288
+ return __assign({}, (input.TableName != null && { TableName: input.TableName }));
4286
4289
  };
4287
4290
  var serializeAws_json1_0DescribeContributorInsightsInput = function (input, context) {
4288
- return __assign(__assign({}, (input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName })), (input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }));
4291
+ return __assign(__assign({}, (input.IndexName != null && { IndexName: input.IndexName })), (input.TableName != null && { TableName: input.TableName }));
4289
4292
  };
4290
4293
  var serializeAws_json1_0DescribeEndpointsRequest = function (input, context) {
4291
4294
  return {};
4292
4295
  };
4293
4296
  var serializeAws_json1_0DescribeExportInput = function (input, context) {
4294
- return __assign({}, (input.ExportArn !== undefined && input.ExportArn !== null && { ExportArn: input.ExportArn }));
4297
+ return __assign({}, (input.ExportArn != null && { ExportArn: input.ExportArn }));
4295
4298
  };
4296
4299
  var serializeAws_json1_0DescribeGlobalTableInput = function (input, context) {
4297
- return __assign({}, (input.GlobalTableName !== undefined &&
4298
- input.GlobalTableName !== null && { GlobalTableName: input.GlobalTableName }));
4300
+ return __assign({}, (input.GlobalTableName != null && { GlobalTableName: input.GlobalTableName }));
4299
4301
  };
4300
4302
  var serializeAws_json1_0DescribeGlobalTableSettingsInput = function (input, context) {
4301
- return __assign({}, (input.GlobalTableName !== undefined &&
4302
- input.GlobalTableName !== null && { GlobalTableName: input.GlobalTableName }));
4303
+ return __assign({}, (input.GlobalTableName != null && { GlobalTableName: input.GlobalTableName }));
4303
4304
  };
4304
4305
  var serializeAws_json1_0DescribeKinesisStreamingDestinationInput = function (input, context) {
4305
- return __assign({}, (input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }));
4306
+ return __assign({}, (input.TableName != null && { TableName: input.TableName }));
4306
4307
  };
4307
4308
  var serializeAws_json1_0DescribeLimitsInput = function (input, context) {
4308
4309
  return {};
4309
4310
  };
4310
4311
  var serializeAws_json1_0DescribeTableInput = function (input, context) {
4311
- return __assign({}, (input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }));
4312
+ return __assign({}, (input.TableName != null && { TableName: input.TableName }));
4312
4313
  };
4313
4314
  var serializeAws_json1_0DescribeTableReplicaAutoScalingInput = function (input, context) {
4314
- return __assign({}, (input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }));
4315
+ return __assign({}, (input.TableName != null && { TableName: input.TableName }));
4315
4316
  };
4316
4317
  var serializeAws_json1_0DescribeTimeToLiveInput = function (input, context) {
4317
- return __assign({}, (input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }));
4318
+ return __assign({}, (input.TableName != null && { TableName: input.TableName }));
4318
4319
  };
4319
4320
  var serializeAws_json1_0ExecuteStatementInput = function (input, context) {
4320
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ConsistentRead !== undefined &&
4321
- input.ConsistentRead !== null && { ConsistentRead: input.ConsistentRead })), (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.Parameters !== undefined &&
4322
- input.Parameters !== null && {
4321
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead })), (input.Limit != null && { Limit: input.Limit })), (input.NextToken != null && { NextToken: input.NextToken })), (input.Parameters != null && {
4323
4322
  Parameters: serializeAws_json1_0PreparedStatementParameters(input.Parameters, context),
4324
- })), (input.ReturnConsumedCapacity !== undefined &&
4325
- input.ReturnConsumedCapacity !== null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity })), (input.Statement !== undefined && input.Statement !== null && { Statement: input.Statement }));
4323
+ })), (input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity })), (input.Statement != null && { Statement: input.Statement }));
4326
4324
  };
4327
4325
  var serializeAws_json1_0ExecuteTransactionInput = function (input, context) {
4328
4326
  var _a;
4329
- return __assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.ReturnConsumedCapacity !== undefined &&
4330
- input.ReturnConsumedCapacity !== null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity })), (input.TransactStatements !== undefined &&
4331
- input.TransactStatements !== null && {
4327
+ return __assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity })), (input.TransactStatements != null && {
4332
4328
  TransactStatements: serializeAws_json1_0ParameterizedStatements(input.TransactStatements, context),
4333
4329
  }));
4334
4330
  };
@@ -4343,18 +4339,13 @@ var serializeAws_json1_0ExpectedAttributeMap = function (input, context) {
4343
4339
  }, {});
4344
4340
  };
4345
4341
  var serializeAws_json1_0ExpectedAttributeValue = function (input, context) {
4346
- return __assign(__assign(__assign(__assign({}, (input.AttributeValueList !== undefined &&
4347
- input.AttributeValueList !== null && {
4342
+ return __assign(__assign(__assign(__assign({}, (input.AttributeValueList != null && {
4348
4343
  AttributeValueList: serializeAws_json1_0AttributeValueList(input.AttributeValueList, context),
4349
- })), (input.ComparisonOperator !== undefined &&
4350
- input.ComparisonOperator !== null && { ComparisonOperator: input.ComparisonOperator })), (input.Exists !== undefined && input.Exists !== null && { Exists: input.Exists })), (input.Value !== undefined &&
4351
- input.Value !== null && { Value: serializeAws_json1_0AttributeValue(input.Value, context) }));
4344
+ })), (input.ComparisonOperator != null && { ComparisonOperator: input.ComparisonOperator })), (input.Exists != null && { Exists: input.Exists })), (input.Value != null && { Value: serializeAws_json1_0AttributeValue(input.Value, context) }));
4352
4345
  };
4353
4346
  var serializeAws_json1_0ExportTableToPointInTimeInput = function (input, context) {
4354
4347
  var _a;
4355
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.ExportFormat !== undefined && input.ExportFormat !== null && { ExportFormat: input.ExportFormat })), (input.ExportTime !== undefined &&
4356
- input.ExportTime !== null && { ExportTime: Math.round(input.ExportTime.getTime() / 1000) })), (input.S3Bucket !== undefined && input.S3Bucket !== null && { S3Bucket: input.S3Bucket })), (input.S3BucketOwner !== undefined && input.S3BucketOwner !== null && { S3BucketOwner: input.S3BucketOwner })), (input.S3Prefix !== undefined && input.S3Prefix !== null && { S3Prefix: input.S3Prefix })), (input.S3SseAlgorithm !== undefined &&
4357
- input.S3SseAlgorithm !== null && { S3SseAlgorithm: input.S3SseAlgorithm })), (input.S3SseKmsKeyId !== undefined && input.S3SseKmsKeyId !== null && { S3SseKmsKeyId: input.S3SseKmsKeyId })), (input.TableArn !== undefined && input.TableArn !== null && { TableArn: input.TableArn }));
4348
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.ExportFormat != null && { ExportFormat: input.ExportFormat })), (input.ExportTime != null && { ExportTime: Math.round(input.ExportTime.getTime() / 1000) })), (input.S3Bucket != null && { S3Bucket: input.S3Bucket })), (input.S3BucketOwner != null && { S3BucketOwner: input.S3BucketOwner })), (input.S3Prefix != null && { S3Prefix: input.S3Prefix })), (input.S3SseAlgorithm != null && { S3SseAlgorithm: input.S3SseAlgorithm })), (input.S3SseKmsKeyId != null && { S3SseKmsKeyId: input.S3SseKmsKeyId })), (input.TableArn != null && { TableArn: input.TableArn }));
4358
4349
  };
4359
4350
  var serializeAws_json1_0ExpressionAttributeNameMap = function (input, context) {
4360
4351
  return Object.entries(input).reduce(function (acc, _a) {
@@ -4387,35 +4378,24 @@ var serializeAws_json1_0FilterConditionMap = function (input, context) {
4387
4378
  }, {});
4388
4379
  };
4389
4380
  var serializeAws_json1_0Get = function (input, context) {
4390
- return __assign(__assign(__assign(__assign({}, (input.ExpressionAttributeNames !== undefined &&
4391
- input.ExpressionAttributeNames !== null && {
4381
+ return __assign(__assign(__assign(__assign({}, (input.ExpressionAttributeNames != null && {
4392
4382
  ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context),
4393
- })), (input.Key !== undefined && input.Key !== null && { Key: serializeAws_json1_0Key(input.Key, context) })), (input.ProjectionExpression !== undefined &&
4394
- input.ProjectionExpression !== null && { ProjectionExpression: input.ProjectionExpression })), (input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }));
4383
+ })), (input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) })), (input.ProjectionExpression != null && { ProjectionExpression: input.ProjectionExpression })), (input.TableName != null && { TableName: input.TableName }));
4395
4384
  };
4396
4385
  var serializeAws_json1_0GetItemInput = function (input, context) {
4397
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AttributesToGet !== undefined &&
4398
- input.AttributesToGet !== null && {
4386
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AttributesToGet != null && {
4399
4387
  AttributesToGet: serializeAws_json1_0AttributeNameList(input.AttributesToGet, context),
4400
- })), (input.ConsistentRead !== undefined &&
4401
- input.ConsistentRead !== null && { ConsistentRead: input.ConsistentRead })), (input.ExpressionAttributeNames !== undefined &&
4402
- input.ExpressionAttributeNames !== null && {
4388
+ })), (input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead })), (input.ExpressionAttributeNames != null && {
4403
4389
  ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context),
4404
- })), (input.Key !== undefined && input.Key !== null && { Key: serializeAws_json1_0Key(input.Key, context) })), (input.ProjectionExpression !== undefined &&
4405
- input.ProjectionExpression !== null && { ProjectionExpression: input.ProjectionExpression })), (input.ReturnConsumedCapacity !== undefined &&
4406
- input.ReturnConsumedCapacity !== null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity })), (input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }));
4390
+ })), (input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) })), (input.ProjectionExpression != null && { ProjectionExpression: input.ProjectionExpression })), (input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity })), (input.TableName != null && { TableName: input.TableName }));
4407
4391
  };
4408
4392
  var serializeAws_json1_0GlobalSecondaryIndex = function (input, context) {
4409
- return __assign(__assign(__assign(__assign({}, (input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName })), (input.KeySchema !== undefined &&
4410
- input.KeySchema !== null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) })), (input.Projection !== undefined &&
4411
- input.Projection !== null && { Projection: serializeAws_json1_0Projection(input.Projection, context) })), (input.ProvisionedThroughput !== undefined &&
4412
- input.ProvisionedThroughput !== null && {
4393
+ return __assign(__assign(__assign(__assign({}, (input.IndexName != null && { IndexName: input.IndexName })), (input.KeySchema != null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) })), (input.Projection != null && { Projection: serializeAws_json1_0Projection(input.Projection, context) })), (input.ProvisionedThroughput != null && {
4413
4394
  ProvisionedThroughput: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughput, context),
4414
4395
  }));
4415
4396
  };
4416
4397
  var serializeAws_json1_0GlobalSecondaryIndexAutoScalingUpdate = function (input, context) {
4417
- return __assign(__assign({}, (input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName })), (input.ProvisionedWriteCapacityAutoScalingUpdate !== undefined &&
4418
- input.ProvisionedWriteCapacityAutoScalingUpdate !== null && {
4398
+ return __assign(__assign({}, (input.IndexName != null && { IndexName: input.IndexName })), (input.ProvisionedWriteCapacityAutoScalingUpdate != null && {
4419
4399
  ProvisionedWriteCapacityAutoScalingUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ProvisionedWriteCapacityAutoScalingUpdate, context),
4420
4400
  }));
4421
4401
  };
@@ -4440,10 +4420,13 @@ var serializeAws_json1_0GlobalSecondaryIndexList = function (input, context) {
4440
4420
  });
4441
4421
  };
4442
4422
  var serializeAws_json1_0GlobalSecondaryIndexUpdate = function (input, context) {
4443
- return __assign(__assign(__assign({}, (input.Create !== undefined &&
4444
- input.Create !== null && { Create: serializeAws_json1_0CreateGlobalSecondaryIndexAction(input.Create, context) })), (input.Delete !== undefined &&
4445
- input.Delete !== null && { Delete: serializeAws_json1_0DeleteGlobalSecondaryIndexAction(input.Delete, context) })), (input.Update !== undefined &&
4446
- input.Update !== null && { Update: serializeAws_json1_0UpdateGlobalSecondaryIndexAction(input.Update, context) }));
4423
+ return __assign(__assign(__assign({}, (input.Create != null && {
4424
+ Create: serializeAws_json1_0CreateGlobalSecondaryIndexAction(input.Create, context),
4425
+ })), (input.Delete != null && {
4426
+ Delete: serializeAws_json1_0DeleteGlobalSecondaryIndexAction(input.Delete, context),
4427
+ })), (input.Update != null && {
4428
+ Update: serializeAws_json1_0UpdateGlobalSecondaryIndexAction(input.Update, context),
4429
+ }));
4447
4430
  };
4448
4431
  var serializeAws_json1_0GlobalSecondaryIndexUpdateList = function (input, context) {
4449
4432
  return input
@@ -4456,11 +4439,9 @@ var serializeAws_json1_0GlobalSecondaryIndexUpdateList = function (input, contex
4456
4439
  });
4457
4440
  };
4458
4441
  var serializeAws_json1_0GlobalTableGlobalSecondaryIndexSettingsUpdate = function (input, context) {
4459
- return __assign(__assign(__assign({}, (input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName })), (input.ProvisionedWriteCapacityAutoScalingSettingsUpdate !== undefined &&
4460
- input.ProvisionedWriteCapacityAutoScalingSettingsUpdate !== null && {
4442
+ return __assign(__assign(__assign({}, (input.IndexName != null && { IndexName: input.IndexName })), (input.ProvisionedWriteCapacityAutoScalingSettingsUpdate != null && {
4461
4443
  ProvisionedWriteCapacityAutoScalingSettingsUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ProvisionedWriteCapacityAutoScalingSettingsUpdate, context),
4462
- })), (input.ProvisionedWriteCapacityUnits !== undefined &&
4463
- input.ProvisionedWriteCapacityUnits !== null && {
4444
+ })), (input.ProvisionedWriteCapacityUnits != null && {
4464
4445
  ProvisionedWriteCapacityUnits: input.ProvisionedWriteCapacityUnits,
4465
4446
  }));
4466
4447
  };
@@ -4505,15 +4486,11 @@ var serializeAws_json1_0KeyList = function (input, context) {
4505
4486
  });
4506
4487
  };
4507
4488
  var serializeAws_json1_0KeysAndAttributes = function (input, context) {
4508
- return __assign(__assign(__assign(__assign(__assign({}, (input.AttributesToGet !== undefined &&
4509
- input.AttributesToGet !== null && {
4489
+ return __assign(__assign(__assign(__assign(__assign({}, (input.AttributesToGet != null && {
4510
4490
  AttributesToGet: serializeAws_json1_0AttributeNameList(input.AttributesToGet, context),
4511
- })), (input.ConsistentRead !== undefined &&
4512
- input.ConsistentRead !== null && { ConsistentRead: input.ConsistentRead })), (input.ExpressionAttributeNames !== undefined &&
4513
- input.ExpressionAttributeNames !== null && {
4491
+ })), (input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead })), (input.ExpressionAttributeNames != null && {
4514
4492
  ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context),
4515
- })), (input.Keys !== undefined && input.Keys !== null && { Keys: serializeAws_json1_0KeyList(input.Keys, context) })), (input.ProjectionExpression !== undefined &&
4516
- input.ProjectionExpression !== null && { ProjectionExpression: input.ProjectionExpression }));
4493
+ })), (input.Keys != null && { Keys: serializeAws_json1_0KeyList(input.Keys, context) })), (input.ProjectionExpression != null && { ProjectionExpression: input.ProjectionExpression }));
4517
4494
  };
4518
4495
  var serializeAws_json1_0KeySchema = function (input, context) {
4519
4496
  return input
@@ -4526,10 +4503,10 @@ var serializeAws_json1_0KeySchema = function (input, context) {
4526
4503
  });
4527
4504
  };
4528
4505
  var serializeAws_json1_0KeySchemaElement = function (input, context) {
4529
- return __assign(__assign({}, (input.AttributeName !== undefined && input.AttributeName !== null && { AttributeName: input.AttributeName })), (input.KeyType !== undefined && input.KeyType !== null && { KeyType: input.KeyType }));
4506
+ return __assign(__assign({}, (input.AttributeName != null && { AttributeName: input.AttributeName })), (input.KeyType != null && { KeyType: input.KeyType }));
4530
4507
  };
4531
4508
  var serializeAws_json1_0KinesisStreamingDestinationInput = function (input, context) {
4532
- return __assign(__assign({}, (input.StreamArn !== undefined && input.StreamArn !== null && { StreamArn: input.StreamArn })), (input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }));
4509
+ return __assign(__assign({}, (input.StreamArn != null && { StreamArn: input.StreamArn })), (input.TableName != null && { TableName: input.TableName }));
4533
4510
  };
4534
4511
  var serializeAws_json1_0ListAttributeValue = function (input, context) {
4535
4512
  return input
@@ -4542,38 +4519,31 @@ var serializeAws_json1_0ListAttributeValue = function (input, context) {
4542
4519
  });
4543
4520
  };
4544
4521
  var serializeAws_json1_0ListBackupsInput = function (input, context) {
4545
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.BackupType !== undefined && input.BackupType !== null && { BackupType: input.BackupType })), (input.ExclusiveStartBackupArn !== undefined &&
4546
- input.ExclusiveStartBackupArn !== null && { ExclusiveStartBackupArn: input.ExclusiveStartBackupArn })), (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit })), (input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName })), (input.TimeRangeLowerBound !== undefined &&
4547
- input.TimeRangeLowerBound !== null && {
4522
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.BackupType != null && { BackupType: input.BackupType })), (input.ExclusiveStartBackupArn != null && { ExclusiveStartBackupArn: input.ExclusiveStartBackupArn })), (input.Limit != null && { Limit: input.Limit })), (input.TableName != null && { TableName: input.TableName })), (input.TimeRangeLowerBound != null && {
4548
4523
  TimeRangeLowerBound: Math.round(input.TimeRangeLowerBound.getTime() / 1000),
4549
- })), (input.TimeRangeUpperBound !== undefined &&
4550
- input.TimeRangeUpperBound !== null && {
4524
+ })), (input.TimeRangeUpperBound != null && {
4551
4525
  TimeRangeUpperBound: Math.round(input.TimeRangeUpperBound.getTime() / 1000),
4552
4526
  }));
4553
4527
  };
4554
4528
  var serializeAws_json1_0ListContributorInsightsInput = function (input, context) {
4555
- return __assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }));
4529
+ return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.TableName != null && { TableName: input.TableName }));
4556
4530
  };
4557
4531
  var serializeAws_json1_0ListExportsInput = function (input, context) {
4558
- return __assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.TableArn !== undefined && input.TableArn !== null && { TableArn: input.TableArn }));
4532
+ return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.TableArn != null && { TableArn: input.TableArn }));
4559
4533
  };
4560
4534
  var serializeAws_json1_0ListGlobalTablesInput = function (input, context) {
4561
- return __assign(__assign(__assign({}, (input.ExclusiveStartGlobalTableName !== undefined &&
4562
- input.ExclusiveStartGlobalTableName !== null && {
4535
+ return __assign(__assign(__assign({}, (input.ExclusiveStartGlobalTableName != null && {
4563
4536
  ExclusiveStartGlobalTableName: input.ExclusiveStartGlobalTableName,
4564
- })), (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit })), (input.RegionName !== undefined && input.RegionName !== null && { RegionName: input.RegionName }));
4537
+ })), (input.Limit != null && { Limit: input.Limit })), (input.RegionName != null && { RegionName: input.RegionName }));
4565
4538
  };
4566
4539
  var serializeAws_json1_0ListTablesInput = function (input, context) {
4567
- return __assign(__assign({}, (input.ExclusiveStartTableName !== undefined &&
4568
- input.ExclusiveStartTableName !== null && { ExclusiveStartTableName: input.ExclusiveStartTableName })), (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }));
4540
+ return __assign(__assign({}, (input.ExclusiveStartTableName != null && { ExclusiveStartTableName: input.ExclusiveStartTableName })), (input.Limit != null && { Limit: input.Limit }));
4569
4541
  };
4570
4542
  var serializeAws_json1_0ListTagsOfResourceInput = function (input, context) {
4571
- return __assign(__assign({}, (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }));
4543
+ return __assign(__assign({}, (input.NextToken != null && { NextToken: input.NextToken })), (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
4572
4544
  };
4573
4545
  var serializeAws_json1_0LocalSecondaryIndex = function (input, context) {
4574
- return __assign(__assign(__assign({}, (input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName })), (input.KeySchema !== undefined &&
4575
- input.KeySchema !== null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) })), (input.Projection !== undefined &&
4576
- input.Projection !== null && { Projection: serializeAws_json1_0Projection(input.Projection, context) }));
4546
+ return __assign(__assign(__assign({}, (input.IndexName != null && { IndexName: input.IndexName })), (input.KeySchema != null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) })), (input.Projection != null && { Projection: serializeAws_json1_0Projection(input.Projection, context) }));
4577
4547
  };
4578
4548
  var serializeAws_json1_0LocalSecondaryIndexList = function (input, context) {
4579
4549
  return input
@@ -4616,10 +4586,9 @@ var serializeAws_json1_0NumberSetAttributeValue = function (input, context) {
4616
4586
  });
4617
4587
  };
4618
4588
  var serializeAws_json1_0ParameterizedStatement = function (input, context) {
4619
- return __assign(__assign({}, (input.Parameters !== undefined &&
4620
- input.Parameters !== null && {
4589
+ return __assign(__assign({}, (input.Parameters != null && {
4621
4590
  Parameters: serializeAws_json1_0PreparedStatementParameters(input.Parameters, context),
4622
- })), (input.Statement !== undefined && input.Statement !== null && { Statement: input.Statement }));
4591
+ })), (input.Statement != null && { Statement: input.Statement }));
4623
4592
  };
4624
4593
  var serializeAws_json1_0ParameterizedStatements = function (input, context) {
4625
4594
  return input
@@ -4642,8 +4611,7 @@ var serializeAws_json1_0PartiQLBatchRequest = function (input, context) {
4642
4611
  });
4643
4612
  };
4644
4613
  var serializeAws_json1_0PointInTimeRecoverySpecification = function (input, context) {
4645
- return __assign({}, (input.PointInTimeRecoveryEnabled !== undefined &&
4646
- input.PointInTimeRecoveryEnabled !== null && { PointInTimeRecoveryEnabled: input.PointInTimeRecoveryEnabled }));
4614
+ return __assign({}, (input.PointInTimeRecoveryEnabled != null && { PointInTimeRecoveryEnabled: input.PointInTimeRecoveryEnabled }));
4647
4615
  };
4648
4616
  var serializeAws_json1_0PreparedStatementParameters = function (input, context) {
4649
4617
  return input
@@ -4656,49 +4624,33 @@ var serializeAws_json1_0PreparedStatementParameters = function (input, context)
4656
4624
  });
4657
4625
  };
4658
4626
  var serializeAws_json1_0Projection = function (input, context) {
4659
- return __assign(__assign({}, (input.NonKeyAttributes !== undefined &&
4660
- input.NonKeyAttributes !== null && {
4627
+ return __assign(__assign({}, (input.NonKeyAttributes != null && {
4661
4628
  NonKeyAttributes: serializeAws_json1_0NonKeyAttributeNameList(input.NonKeyAttributes, context),
4662
- })), (input.ProjectionType !== undefined &&
4663
- input.ProjectionType !== null && { ProjectionType: input.ProjectionType }));
4629
+ })), (input.ProjectionType != null && { ProjectionType: input.ProjectionType }));
4664
4630
  };
4665
4631
  var serializeAws_json1_0ProvisionedThroughput = function (input, context) {
4666
- return __assign(__assign({}, (input.ReadCapacityUnits !== undefined &&
4667
- input.ReadCapacityUnits !== null && { ReadCapacityUnits: input.ReadCapacityUnits })), (input.WriteCapacityUnits !== undefined &&
4668
- input.WriteCapacityUnits !== null && { WriteCapacityUnits: input.WriteCapacityUnits }));
4632
+ return __assign(__assign({}, (input.ReadCapacityUnits != null && { ReadCapacityUnits: input.ReadCapacityUnits })), (input.WriteCapacityUnits != null && { WriteCapacityUnits: input.WriteCapacityUnits }));
4669
4633
  };
4670
4634
  var serializeAws_json1_0ProvisionedThroughputOverride = function (input, context) {
4671
- return __assign({}, (input.ReadCapacityUnits !== undefined &&
4672
- input.ReadCapacityUnits !== null && { ReadCapacityUnits: input.ReadCapacityUnits }));
4635
+ return __assign({}, (input.ReadCapacityUnits != null && { ReadCapacityUnits: input.ReadCapacityUnits }));
4673
4636
  };
4674
4637
  var serializeAws_json1_0Put = function (input, context) {
4675
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ConditionExpression !== undefined &&
4676
- input.ConditionExpression !== null && { ConditionExpression: input.ConditionExpression })), (input.ExpressionAttributeNames !== undefined &&
4677
- input.ExpressionAttributeNames !== null && {
4638
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression })), (input.ExpressionAttributeNames != null && {
4678
4639
  ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context),
4679
- })), (input.ExpressionAttributeValues !== undefined &&
4680
- input.ExpressionAttributeValues !== null && {
4640
+ })), (input.ExpressionAttributeValues != null && {
4681
4641
  ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context),
4682
- })), (input.Item !== undefined &&
4683
- input.Item !== null && { Item: serializeAws_json1_0PutItemInputAttributeMap(input.Item, context) })), (input.ReturnValuesOnConditionCheckFailure !== undefined &&
4684
- input.ReturnValuesOnConditionCheckFailure !== null && {
4642
+ })), (input.Item != null && { Item: serializeAws_json1_0PutItemInputAttributeMap(input.Item, context) })), (input.ReturnValuesOnConditionCheckFailure != null && {
4685
4643
  ReturnValuesOnConditionCheckFailure: input.ReturnValuesOnConditionCheckFailure,
4686
- })), (input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }));
4644
+ })), (input.TableName != null && { TableName: input.TableName }));
4687
4645
  };
4688
4646
  var serializeAws_json1_0PutItemInput = function (input, context) {
4689
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ConditionExpression !== undefined &&
4690
- input.ConditionExpression !== null && { ConditionExpression: input.ConditionExpression })), (input.ConditionalOperator !== undefined &&
4691
- input.ConditionalOperator !== null && { ConditionalOperator: input.ConditionalOperator })), (input.Expected !== undefined &&
4692
- input.Expected !== null && { Expected: serializeAws_json1_0ExpectedAttributeMap(input.Expected, context) })), (input.ExpressionAttributeNames !== undefined &&
4693
- input.ExpressionAttributeNames !== null && {
4647
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression })), (input.ConditionalOperator != null && { ConditionalOperator: input.ConditionalOperator })), (input.Expected != null && { Expected: serializeAws_json1_0ExpectedAttributeMap(input.Expected, context) })), (input.ExpressionAttributeNames != null && {
4694
4648
  ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context),
4695
- })), (input.ExpressionAttributeValues !== undefined &&
4696
- input.ExpressionAttributeValues !== null && {
4649
+ })), (input.ExpressionAttributeValues != null && {
4697
4650
  ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context),
4698
- })), (input.Item !== undefined &&
4699
- input.Item !== null && { Item: serializeAws_json1_0PutItemInputAttributeMap(input.Item, context) })), (input.ReturnConsumedCapacity !== undefined &&
4700
- input.ReturnConsumedCapacity !== null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity })), (input.ReturnItemCollectionMetrics !== undefined &&
4701
- input.ReturnItemCollectionMetrics !== null && { ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics })), (input.ReturnValues !== undefined && input.ReturnValues !== null && { ReturnValues: input.ReturnValues })), (input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }));
4651
+ })), (input.Item != null && { Item: serializeAws_json1_0PutItemInputAttributeMap(input.Item, context) })), (input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity })), (input.ReturnItemCollectionMetrics != null && {
4652
+ ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics,
4653
+ })), (input.ReturnValues != null && { ReturnValues: input.ReturnValues })), (input.TableName != null && { TableName: input.TableName }));
4702
4654
  };
4703
4655
  var serializeAws_json1_0PutItemInputAttributeMap = function (input, context) {
4704
4656
  return Object.entries(input).reduce(function (acc, _a) {
@@ -4711,46 +4663,30 @@ var serializeAws_json1_0PutItemInputAttributeMap = function (input, context) {
4711
4663
  }, {});
4712
4664
  };
4713
4665
  var serializeAws_json1_0PutRequest = function (input, context) {
4714
- return __assign({}, (input.Item !== undefined &&
4715
- input.Item !== null && { Item: serializeAws_json1_0PutItemInputAttributeMap(input.Item, context) }));
4666
+ return __assign({}, (input.Item != null && { Item: serializeAws_json1_0PutItemInputAttributeMap(input.Item, context) }));
4716
4667
  };
4717
4668
  var serializeAws_json1_0QueryInput = function (input, context) {
4718
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AttributesToGet !== undefined &&
4719
- input.AttributesToGet !== null && {
4669
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AttributesToGet != null && {
4720
4670
  AttributesToGet: serializeAws_json1_0AttributeNameList(input.AttributesToGet, context),
4721
- })), (input.ConditionalOperator !== undefined &&
4722
- input.ConditionalOperator !== null && { ConditionalOperator: input.ConditionalOperator })), (input.ConsistentRead !== undefined &&
4723
- input.ConsistentRead !== null && { ConsistentRead: input.ConsistentRead })), (input.ExclusiveStartKey !== undefined &&
4724
- input.ExclusiveStartKey !== null && {
4671
+ })), (input.ConditionalOperator != null && { ConditionalOperator: input.ConditionalOperator })), (input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead })), (input.ExclusiveStartKey != null && {
4725
4672
  ExclusiveStartKey: serializeAws_json1_0Key(input.ExclusiveStartKey, context),
4726
- })), (input.ExpressionAttributeNames !== undefined &&
4727
- input.ExpressionAttributeNames !== null && {
4673
+ })), (input.ExpressionAttributeNames != null && {
4728
4674
  ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context),
4729
- })), (input.ExpressionAttributeValues !== undefined &&
4730
- input.ExpressionAttributeValues !== null && {
4675
+ })), (input.ExpressionAttributeValues != null && {
4731
4676
  ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context),
4732
- })), (input.FilterExpression !== undefined &&
4733
- input.FilterExpression !== null && { FilterExpression: input.FilterExpression })), (input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName })), (input.KeyConditionExpression !== undefined &&
4734
- input.KeyConditionExpression !== null && { KeyConditionExpression: input.KeyConditionExpression })), (input.KeyConditions !== undefined &&
4735
- input.KeyConditions !== null && {
4677
+ })), (input.FilterExpression != null && { FilterExpression: input.FilterExpression })), (input.IndexName != null && { IndexName: input.IndexName })), (input.KeyConditionExpression != null && { KeyConditionExpression: input.KeyConditionExpression })), (input.KeyConditions != null && {
4736
4678
  KeyConditions: serializeAws_json1_0KeyConditions(input.KeyConditions, context),
4737
- })), (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit })), (input.ProjectionExpression !== undefined &&
4738
- input.ProjectionExpression !== null && { ProjectionExpression: input.ProjectionExpression })), (input.QueryFilter !== undefined &&
4739
- input.QueryFilter !== null && {
4679
+ })), (input.Limit != null && { Limit: input.Limit })), (input.ProjectionExpression != null && { ProjectionExpression: input.ProjectionExpression })), (input.QueryFilter != null && {
4740
4680
  QueryFilter: serializeAws_json1_0FilterConditionMap(input.QueryFilter, context),
4741
- })), (input.ReturnConsumedCapacity !== undefined &&
4742
- input.ReturnConsumedCapacity !== null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity })), (input.ScanIndexForward !== undefined &&
4743
- input.ScanIndexForward !== null && { ScanIndexForward: input.ScanIndexForward })), (input.Select !== undefined && input.Select !== null && { Select: input.Select })), (input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }));
4681
+ })), (input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity })), (input.ScanIndexForward != null && { ScanIndexForward: input.ScanIndexForward })), (input.Select != null && { Select: input.Select })), (input.TableName != null && { TableName: input.TableName }));
4744
4682
  };
4745
4683
  var serializeAws_json1_0Replica = function (input, context) {
4746
- return __assign({}, (input.RegionName !== undefined && input.RegionName !== null && { RegionName: input.RegionName }));
4684
+ return __assign({}, (input.RegionName != null && { RegionName: input.RegionName }));
4747
4685
  };
4748
4686
  var serializeAws_json1_0ReplicaAutoScalingUpdate = function (input, context) {
4749
- return __assign(__assign(__assign({}, (input.RegionName !== undefined && input.RegionName !== null && { RegionName: input.RegionName })), (input.ReplicaGlobalSecondaryIndexUpdates !== undefined &&
4750
- input.ReplicaGlobalSecondaryIndexUpdates !== null && {
4687
+ return __assign(__assign(__assign({}, (input.RegionName != null && { RegionName: input.RegionName })), (input.ReplicaGlobalSecondaryIndexUpdates != null && {
4751
4688
  ReplicaGlobalSecondaryIndexUpdates: serializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingUpdateList(input.ReplicaGlobalSecondaryIndexUpdates, context),
4752
- })), (input.ReplicaProvisionedReadCapacityAutoScalingUpdate !== undefined &&
4753
- input.ReplicaProvisionedReadCapacityAutoScalingUpdate !== null && {
4689
+ })), (input.ReplicaProvisionedReadCapacityAutoScalingUpdate != null && {
4754
4690
  ReplicaProvisionedReadCapacityAutoScalingUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ReplicaProvisionedReadCapacityAutoScalingUpdate, context),
4755
4691
  }));
4756
4692
  };
@@ -4765,14 +4701,12 @@ var serializeAws_json1_0ReplicaAutoScalingUpdateList = function (input, context)
4765
4701
  });
4766
4702
  };
4767
4703
  var serializeAws_json1_0ReplicaGlobalSecondaryIndex = function (input, context) {
4768
- return __assign(__assign({}, (input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName })), (input.ProvisionedThroughputOverride !== undefined &&
4769
- input.ProvisionedThroughputOverride !== null && {
4704
+ return __assign(__assign({}, (input.IndexName != null && { IndexName: input.IndexName })), (input.ProvisionedThroughputOverride != null && {
4770
4705
  ProvisionedThroughputOverride: serializeAws_json1_0ProvisionedThroughputOverride(input.ProvisionedThroughputOverride, context),
4771
4706
  }));
4772
4707
  };
4773
4708
  var serializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingUpdate = function (input, context) {
4774
- return __assign(__assign({}, (input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName })), (input.ProvisionedReadCapacityAutoScalingUpdate !== undefined &&
4775
- input.ProvisionedReadCapacityAutoScalingUpdate !== null && {
4709
+ return __assign(__assign({}, (input.IndexName != null && { IndexName: input.IndexName })), (input.ProvisionedReadCapacityAutoScalingUpdate != null && {
4776
4710
  ProvisionedReadCapacityAutoScalingUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ProvisionedReadCapacityAutoScalingUpdate, context),
4777
4711
  }));
4778
4712
  };
@@ -4797,11 +4731,9 @@ var serializeAws_json1_0ReplicaGlobalSecondaryIndexList = function (input, conte
4797
4731
  });
4798
4732
  };
4799
4733
  var serializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsUpdate = function (input, context) {
4800
- return __assign(__assign(__assign({}, (input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName })), (input.ProvisionedReadCapacityAutoScalingSettingsUpdate !== undefined &&
4801
- input.ProvisionedReadCapacityAutoScalingSettingsUpdate !== null && {
4734
+ return __assign(__assign(__assign({}, (input.IndexName != null && { IndexName: input.IndexName })), (input.ProvisionedReadCapacityAutoScalingSettingsUpdate != null && {
4802
4735
  ProvisionedReadCapacityAutoScalingSettingsUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ProvisionedReadCapacityAutoScalingSettingsUpdate, context),
4803
- })), (input.ProvisionedReadCapacityUnits !== undefined &&
4804
- input.ProvisionedReadCapacityUnits !== null && {
4736
+ })), (input.ProvisionedReadCapacityUnits != null && {
4805
4737
  ProvisionedReadCapacityUnits: input.ProvisionedReadCapacityUnits,
4806
4738
  }));
4807
4739
  };
@@ -4826,17 +4758,13 @@ var serializeAws_json1_0ReplicaList = function (input, context) {
4826
4758
  });
4827
4759
  };
4828
4760
  var serializeAws_json1_0ReplicaSettingsUpdate = function (input, context) {
4829
- return __assign(__assign(__assign(__assign(__assign({}, (input.RegionName !== undefined && input.RegionName !== null && { RegionName: input.RegionName })), (input.ReplicaGlobalSecondaryIndexSettingsUpdate !== undefined &&
4830
- input.ReplicaGlobalSecondaryIndexSettingsUpdate !== null && {
4761
+ return __assign(__assign(__assign(__assign(__assign({}, (input.RegionName != null && { RegionName: input.RegionName })), (input.ReplicaGlobalSecondaryIndexSettingsUpdate != null && {
4831
4762
  ReplicaGlobalSecondaryIndexSettingsUpdate: serializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsUpdateList(input.ReplicaGlobalSecondaryIndexSettingsUpdate, context),
4832
- })), (input.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate !== undefined &&
4833
- input.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate !== null && {
4763
+ })), (input.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate != null && {
4834
4764
  ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate, context),
4835
- })), (input.ReplicaProvisionedReadCapacityUnits !== undefined &&
4836
- input.ReplicaProvisionedReadCapacityUnits !== null && {
4765
+ })), (input.ReplicaProvisionedReadCapacityUnits != null && {
4837
4766
  ReplicaProvisionedReadCapacityUnits: input.ReplicaProvisionedReadCapacityUnits,
4838
- })), (input.ReplicaTableClass !== undefined &&
4839
- input.ReplicaTableClass !== null && { ReplicaTableClass: input.ReplicaTableClass }));
4767
+ })), (input.ReplicaTableClass != null && { ReplicaTableClass: input.ReplicaTableClass }));
4840
4768
  };
4841
4769
  var serializeAws_json1_0ReplicaSettingsUpdateList = function (input, context) {
4842
4770
  return input
@@ -4849,14 +4777,11 @@ var serializeAws_json1_0ReplicaSettingsUpdateList = function (input, context) {
4849
4777
  });
4850
4778
  };
4851
4779
  var serializeAws_json1_0ReplicationGroupUpdate = function (input, context) {
4852
- return __assign(__assign(__assign({}, (input.Create !== undefined &&
4853
- input.Create !== null && {
4780
+ return __assign(__assign(__assign({}, (input.Create != null && {
4854
4781
  Create: serializeAws_json1_0CreateReplicationGroupMemberAction(input.Create, context),
4855
- })), (input.Delete !== undefined &&
4856
- input.Delete !== null && {
4782
+ })), (input.Delete != null && {
4857
4783
  Delete: serializeAws_json1_0DeleteReplicationGroupMemberAction(input.Delete, context),
4858
- })), (input.Update !== undefined &&
4859
- input.Update !== null && {
4784
+ })), (input.Update != null && {
4860
4785
  Update: serializeAws_json1_0UpdateReplicationGroupMemberAction(input.Update, context),
4861
4786
  }));
4862
4787
  };
@@ -4871,9 +4796,7 @@ var serializeAws_json1_0ReplicationGroupUpdateList = function (input, context) {
4871
4796
  });
4872
4797
  };
4873
4798
  var serializeAws_json1_0ReplicaUpdate = function (input, context) {
4874
- return __assign(__assign({}, (input.Create !== undefined &&
4875
- input.Create !== null && { Create: serializeAws_json1_0CreateReplicaAction(input.Create, context) })), (input.Delete !== undefined &&
4876
- input.Delete !== null && { Delete: serializeAws_json1_0DeleteReplicaAction(input.Delete, context) }));
4799
+ return __assign(__assign({}, (input.Create != null && { Create: serializeAws_json1_0CreateReplicaAction(input.Create, context) })), (input.Delete != null && { Delete: serializeAws_json1_0DeleteReplicaAction(input.Delete, context) }));
4877
4800
  };
4878
4801
  var serializeAws_json1_0ReplicaUpdateList = function (input, context) {
4879
4802
  return input
@@ -4886,71 +4809,43 @@ var serializeAws_json1_0ReplicaUpdateList = function (input, context) {
4886
4809
  });
4887
4810
  };
4888
4811
  var serializeAws_json1_0RestoreTableFromBackupInput = function (input, context) {
4889
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BackupArn !== undefined && input.BackupArn !== null && { BackupArn: input.BackupArn })), (input.BillingModeOverride !== undefined &&
4890
- input.BillingModeOverride !== null && { BillingModeOverride: input.BillingModeOverride })), (input.GlobalSecondaryIndexOverride !== undefined &&
4891
- input.GlobalSecondaryIndexOverride !== null && {
4812
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BackupArn != null && { BackupArn: input.BackupArn })), (input.BillingModeOverride != null && { BillingModeOverride: input.BillingModeOverride })), (input.GlobalSecondaryIndexOverride != null && {
4892
4813
  GlobalSecondaryIndexOverride: serializeAws_json1_0GlobalSecondaryIndexList(input.GlobalSecondaryIndexOverride, context),
4893
- })), (input.LocalSecondaryIndexOverride !== undefined &&
4894
- input.LocalSecondaryIndexOverride !== null && {
4814
+ })), (input.LocalSecondaryIndexOverride != null && {
4895
4815
  LocalSecondaryIndexOverride: serializeAws_json1_0LocalSecondaryIndexList(input.LocalSecondaryIndexOverride, context),
4896
- })), (input.ProvisionedThroughputOverride !== undefined &&
4897
- input.ProvisionedThroughputOverride !== null && {
4816
+ })), (input.ProvisionedThroughputOverride != null && {
4898
4817
  ProvisionedThroughputOverride: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughputOverride, context),
4899
- })), (input.SSESpecificationOverride !== undefined &&
4900
- input.SSESpecificationOverride !== null && {
4818
+ })), (input.SSESpecificationOverride != null && {
4901
4819
  SSESpecificationOverride: serializeAws_json1_0SSESpecification(input.SSESpecificationOverride, context),
4902
- })), (input.TargetTableName !== undefined &&
4903
- input.TargetTableName !== null && { TargetTableName: input.TargetTableName }));
4820
+ })), (input.TargetTableName != null && { TargetTableName: input.TargetTableName }));
4904
4821
  };
4905
4822
  var serializeAws_json1_0RestoreTableToPointInTimeInput = function (input, context) {
4906
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BillingModeOverride !== undefined &&
4907
- input.BillingModeOverride !== null && { BillingModeOverride: input.BillingModeOverride })), (input.GlobalSecondaryIndexOverride !== undefined &&
4908
- input.GlobalSecondaryIndexOverride !== null && {
4823
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BillingModeOverride != null && { BillingModeOverride: input.BillingModeOverride })), (input.GlobalSecondaryIndexOverride != null && {
4909
4824
  GlobalSecondaryIndexOverride: serializeAws_json1_0GlobalSecondaryIndexList(input.GlobalSecondaryIndexOverride, context),
4910
- })), (input.LocalSecondaryIndexOverride !== undefined &&
4911
- input.LocalSecondaryIndexOverride !== null && {
4825
+ })), (input.LocalSecondaryIndexOverride != null && {
4912
4826
  LocalSecondaryIndexOverride: serializeAws_json1_0LocalSecondaryIndexList(input.LocalSecondaryIndexOverride, context),
4913
- })), (input.ProvisionedThroughputOverride !== undefined &&
4914
- input.ProvisionedThroughputOverride !== null && {
4827
+ })), (input.ProvisionedThroughputOverride != null && {
4915
4828
  ProvisionedThroughputOverride: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughputOverride, context),
4916
- })), (input.RestoreDateTime !== undefined &&
4917
- input.RestoreDateTime !== null && { RestoreDateTime: Math.round(input.RestoreDateTime.getTime() / 1000) })), (input.SSESpecificationOverride !== undefined &&
4918
- input.SSESpecificationOverride !== null && {
4829
+ })), (input.RestoreDateTime != null && { RestoreDateTime: Math.round(input.RestoreDateTime.getTime() / 1000) })), (input.SSESpecificationOverride != null && {
4919
4830
  SSESpecificationOverride: serializeAws_json1_0SSESpecification(input.SSESpecificationOverride, context),
4920
- })), (input.SourceTableArn !== undefined &&
4921
- input.SourceTableArn !== null && { SourceTableArn: input.SourceTableArn })), (input.SourceTableName !== undefined &&
4922
- input.SourceTableName !== null && { SourceTableName: input.SourceTableName })), (input.TargetTableName !== undefined &&
4923
- input.TargetTableName !== null && { TargetTableName: input.TargetTableName })), (input.UseLatestRestorableTime !== undefined &&
4924
- input.UseLatestRestorableTime !== null && { UseLatestRestorableTime: input.UseLatestRestorableTime }));
4831
+ })), (input.SourceTableArn != null && { SourceTableArn: input.SourceTableArn })), (input.SourceTableName != null && { SourceTableName: input.SourceTableName })), (input.TargetTableName != null && { TargetTableName: input.TargetTableName })), (input.UseLatestRestorableTime != null && { UseLatestRestorableTime: input.UseLatestRestorableTime }));
4925
4832
  };
4926
4833
  var serializeAws_json1_0ScanInput = function (input, context) {
4927
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AttributesToGet !== undefined &&
4928
- input.AttributesToGet !== null && {
4834
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AttributesToGet != null && {
4929
4835
  AttributesToGet: serializeAws_json1_0AttributeNameList(input.AttributesToGet, context),
4930
- })), (input.ConditionalOperator !== undefined &&
4931
- input.ConditionalOperator !== null && { ConditionalOperator: input.ConditionalOperator })), (input.ConsistentRead !== undefined &&
4932
- input.ConsistentRead !== null && { ConsistentRead: input.ConsistentRead })), (input.ExclusiveStartKey !== undefined &&
4933
- input.ExclusiveStartKey !== null && {
4836
+ })), (input.ConditionalOperator != null && { ConditionalOperator: input.ConditionalOperator })), (input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead })), (input.ExclusiveStartKey != null && {
4934
4837
  ExclusiveStartKey: serializeAws_json1_0Key(input.ExclusiveStartKey, context),
4935
- })), (input.ExpressionAttributeNames !== undefined &&
4936
- input.ExpressionAttributeNames !== null && {
4838
+ })), (input.ExpressionAttributeNames != null && {
4937
4839
  ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context),
4938
- })), (input.ExpressionAttributeValues !== undefined &&
4939
- input.ExpressionAttributeValues !== null && {
4840
+ })), (input.ExpressionAttributeValues != null && {
4940
4841
  ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context),
4941
- })), (input.FilterExpression !== undefined &&
4942
- input.FilterExpression !== null && { FilterExpression: input.FilterExpression })), (input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName })), (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit })), (input.ProjectionExpression !== undefined &&
4943
- input.ProjectionExpression !== null && { ProjectionExpression: input.ProjectionExpression })), (input.ReturnConsumedCapacity !== undefined &&
4944
- input.ReturnConsumedCapacity !== null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity })), (input.ScanFilter !== undefined &&
4945
- input.ScanFilter !== null && { ScanFilter: serializeAws_json1_0FilterConditionMap(input.ScanFilter, context) })), (input.Segment !== undefined && input.Segment !== null && { Segment: input.Segment })), (input.Select !== undefined && input.Select !== null && { Select: input.Select })), (input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName })), (input.TotalSegments !== undefined && input.TotalSegments !== null && { TotalSegments: input.TotalSegments }));
4842
+ })), (input.FilterExpression != null && { FilterExpression: input.FilterExpression })), (input.IndexName != null && { IndexName: input.IndexName })), (input.Limit != null && { Limit: input.Limit })), (input.ProjectionExpression != null && { ProjectionExpression: input.ProjectionExpression })), (input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity })), (input.ScanFilter != null && { ScanFilter: serializeAws_json1_0FilterConditionMap(input.ScanFilter, context) })), (input.Segment != null && { Segment: input.Segment })), (input.Select != null && { Select: input.Select })), (input.TableName != null && { TableName: input.TableName })), (input.TotalSegments != null && { TotalSegments: input.TotalSegments }));
4946
4843
  };
4947
4844
  var serializeAws_json1_0SSESpecification = function (input, context) {
4948
- return __assign(__assign(__assign({}, (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled })), (input.KMSMasterKeyId !== undefined &&
4949
- input.KMSMasterKeyId !== null && { KMSMasterKeyId: input.KMSMasterKeyId })), (input.SSEType !== undefined && input.SSEType !== null && { SSEType: input.SSEType }));
4845
+ return __assign(__assign(__assign({}, (input.Enabled != null && { Enabled: input.Enabled })), (input.KMSMasterKeyId != null && { KMSMasterKeyId: input.KMSMasterKeyId })), (input.SSEType != null && { SSEType: input.SSEType }));
4950
4846
  };
4951
4847
  var serializeAws_json1_0StreamSpecification = function (input, context) {
4952
- return __assign(__assign({}, (input.StreamEnabled !== undefined && input.StreamEnabled !== null && { StreamEnabled: input.StreamEnabled })), (input.StreamViewType !== undefined &&
4953
- input.StreamViewType !== null && { StreamViewType: input.StreamViewType }));
4848
+ return __assign(__assign({}, (input.StreamEnabled != null && { StreamEnabled: input.StreamEnabled })), (input.StreamViewType != null && { StreamViewType: input.StreamViewType }));
4954
4849
  };
4955
4850
  var serializeAws_json1_0StringSetAttributeValue = function (input, context) {
4956
4851
  return input
@@ -4963,7 +4858,7 @@ var serializeAws_json1_0StringSetAttributeValue = function (input, context) {
4963
4858
  });
4964
4859
  };
4965
4860
  var serializeAws_json1_0Tag = function (input, context) {
4966
- return __assign(__assign({}, (input.Key !== undefined && input.Key !== null && { Key: input.Key })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
4861
+ return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
4967
4862
  };
4968
4863
  var serializeAws_json1_0TagKeyList = function (input, context) {
4969
4864
  return input
@@ -4986,13 +4881,13 @@ var serializeAws_json1_0TagList = function (input, context) {
4986
4881
  });
4987
4882
  };
4988
4883
  var serializeAws_json1_0TagResourceInput = function (input, context) {
4989
- return __assign(__assign({}, (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }));
4884
+ return __assign(__assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn })), (input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }));
4990
4885
  };
4991
4886
  var serializeAws_json1_0TimeToLiveSpecification = function (input, context) {
4992
- return __assign(__assign({}, (input.AttributeName !== undefined && input.AttributeName !== null && { AttributeName: input.AttributeName })), (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }));
4887
+ return __assign(__assign({}, (input.AttributeName != null && { AttributeName: input.AttributeName })), (input.Enabled != null && { Enabled: input.Enabled }));
4993
4888
  };
4994
4889
  var serializeAws_json1_0TransactGetItem = function (input, context) {
4995
- return __assign({}, (input.Get !== undefined && input.Get !== null && { Get: serializeAws_json1_0Get(input.Get, context) }));
4890
+ return __assign({}, (input.Get != null && { Get: serializeAws_json1_0Get(input.Get, context) }));
4996
4891
  };
4997
4892
  var serializeAws_json1_0TransactGetItemList = function (input, context) {
4998
4893
  return input
@@ -5005,19 +4900,14 @@ var serializeAws_json1_0TransactGetItemList = function (input, context) {
5005
4900
  });
5006
4901
  };
5007
4902
  var serializeAws_json1_0TransactGetItemsInput = function (input, context) {
5008
- return __assign(__assign({}, (input.ReturnConsumedCapacity !== undefined &&
5009
- input.ReturnConsumedCapacity !== null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity })), (input.TransactItems !== undefined &&
5010
- input.TransactItems !== null && {
4903
+ return __assign(__assign({}, (input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity })), (input.TransactItems != null && {
5011
4904
  TransactItems: serializeAws_json1_0TransactGetItemList(input.TransactItems, context),
5012
4905
  }));
5013
4906
  };
5014
4907
  var serializeAws_json1_0TransactWriteItem = function (input, context) {
5015
- return __assign(__assign(__assign(__assign({}, (input.ConditionCheck !== undefined &&
5016
- input.ConditionCheck !== null && {
4908
+ return __assign(__assign(__assign(__assign({}, (input.ConditionCheck != null && {
5017
4909
  ConditionCheck: serializeAws_json1_0ConditionCheck(input.ConditionCheck, context),
5018
- })), (input.Delete !== undefined &&
5019
- input.Delete !== null && { Delete: serializeAws_json1_0Delete(input.Delete, context) })), (input.Put !== undefined && input.Put !== null && { Put: serializeAws_json1_0Put(input.Put, context) })), (input.Update !== undefined &&
5020
- input.Update !== null && { Update: serializeAws_json1_0Update(input.Update, context) }));
4910
+ })), (input.Delete != null && { Delete: serializeAws_json1_0Delete(input.Delete, context) })), (input.Put != null && { Put: serializeAws_json1_0Put(input.Put, context) })), (input.Update != null && { Update: serializeAws_json1_0Update(input.Update, context) }));
5021
4911
  };
5022
4912
  var serializeAws_json1_0TransactWriteItemList = function (input, context) {
5023
4913
  return input
@@ -5031,145 +4921,104 @@ var serializeAws_json1_0TransactWriteItemList = function (input, context) {
5031
4921
  };
5032
4922
  var serializeAws_json1_0TransactWriteItemsInput = function (input, context) {
5033
4923
  var _a;
5034
- return __assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.ReturnConsumedCapacity !== undefined &&
5035
- input.ReturnConsumedCapacity !== null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity })), (input.ReturnItemCollectionMetrics !== undefined &&
5036
- input.ReturnItemCollectionMetrics !== null && { ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics })), (input.TransactItems !== undefined &&
5037
- input.TransactItems !== null && {
4924
+ return __assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity })), (input.ReturnItemCollectionMetrics != null && {
4925
+ ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics,
4926
+ })), (input.TransactItems != null && {
5038
4927
  TransactItems: serializeAws_json1_0TransactWriteItemList(input.TransactItems, context),
5039
4928
  }));
5040
4929
  };
5041
4930
  var serializeAws_json1_0UntagResourceInput = function (input, context) {
5042
- return __assign(__assign({}, (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn })), (input.TagKeys !== undefined &&
5043
- input.TagKeys !== null && { TagKeys: serializeAws_json1_0TagKeyList(input.TagKeys, context) }));
4931
+ return __assign(__assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn })), (input.TagKeys != null && { TagKeys: serializeAws_json1_0TagKeyList(input.TagKeys, context) }));
5044
4932
  };
5045
4933
  var serializeAws_json1_0Update = function (input, context) {
5046
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ConditionExpression !== undefined &&
5047
- input.ConditionExpression !== null && { ConditionExpression: input.ConditionExpression })), (input.ExpressionAttributeNames !== undefined &&
5048
- input.ExpressionAttributeNames !== null && {
4934
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression })), (input.ExpressionAttributeNames != null && {
5049
4935
  ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context),
5050
- })), (input.ExpressionAttributeValues !== undefined &&
5051
- input.ExpressionAttributeValues !== null && {
4936
+ })), (input.ExpressionAttributeValues != null && {
5052
4937
  ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context),
5053
- })), (input.Key !== undefined && input.Key !== null && { Key: serializeAws_json1_0Key(input.Key, context) })), (input.ReturnValuesOnConditionCheckFailure !== undefined &&
5054
- input.ReturnValuesOnConditionCheckFailure !== null && {
4938
+ })), (input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) })), (input.ReturnValuesOnConditionCheckFailure != null && {
5055
4939
  ReturnValuesOnConditionCheckFailure: input.ReturnValuesOnConditionCheckFailure,
5056
- })), (input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName })), (input.UpdateExpression !== undefined &&
5057
- input.UpdateExpression !== null && { UpdateExpression: input.UpdateExpression }));
4940
+ })), (input.TableName != null && { TableName: input.TableName })), (input.UpdateExpression != null && { UpdateExpression: input.UpdateExpression }));
5058
4941
  };
5059
4942
  var serializeAws_json1_0UpdateContinuousBackupsInput = function (input, context) {
5060
- return __assign(__assign({}, (input.PointInTimeRecoverySpecification !== undefined &&
5061
- input.PointInTimeRecoverySpecification !== null && {
4943
+ return __assign(__assign({}, (input.PointInTimeRecoverySpecification != null && {
5062
4944
  PointInTimeRecoverySpecification: serializeAws_json1_0PointInTimeRecoverySpecification(input.PointInTimeRecoverySpecification, context),
5063
- })), (input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }));
4945
+ })), (input.TableName != null && { TableName: input.TableName }));
5064
4946
  };
5065
4947
  var serializeAws_json1_0UpdateContributorInsightsInput = function (input, context) {
5066
- return __assign(__assign(__assign({}, (input.ContributorInsightsAction !== undefined &&
5067
- input.ContributorInsightsAction !== null && { ContributorInsightsAction: input.ContributorInsightsAction })), (input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName })), (input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }));
4948
+ return __assign(__assign(__assign({}, (input.ContributorInsightsAction != null && { ContributorInsightsAction: input.ContributorInsightsAction })), (input.IndexName != null && { IndexName: input.IndexName })), (input.TableName != null && { TableName: input.TableName }));
5068
4949
  };
5069
4950
  var serializeAws_json1_0UpdateGlobalSecondaryIndexAction = function (input, context) {
5070
- return __assign(__assign({}, (input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName })), (input.ProvisionedThroughput !== undefined &&
5071
- input.ProvisionedThroughput !== null && {
4951
+ return __assign(__assign({}, (input.IndexName != null && { IndexName: input.IndexName })), (input.ProvisionedThroughput != null && {
5072
4952
  ProvisionedThroughput: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughput, context),
5073
4953
  }));
5074
4954
  };
5075
4955
  var serializeAws_json1_0UpdateGlobalTableInput = function (input, context) {
5076
- return __assign(__assign({}, (input.GlobalTableName !== undefined &&
5077
- input.GlobalTableName !== null && { GlobalTableName: input.GlobalTableName })), (input.ReplicaUpdates !== undefined &&
5078
- input.ReplicaUpdates !== null && {
4956
+ return __assign(__assign({}, (input.GlobalTableName != null && { GlobalTableName: input.GlobalTableName })), (input.ReplicaUpdates != null && {
5079
4957
  ReplicaUpdates: serializeAws_json1_0ReplicaUpdateList(input.ReplicaUpdates, context),
5080
4958
  }));
5081
4959
  };
5082
4960
  var serializeAws_json1_0UpdateGlobalTableSettingsInput = function (input, context) {
5083
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.GlobalTableBillingMode !== undefined &&
5084
- input.GlobalTableBillingMode !== null && { GlobalTableBillingMode: input.GlobalTableBillingMode })), (input.GlobalTableGlobalSecondaryIndexSettingsUpdate !== undefined &&
5085
- input.GlobalTableGlobalSecondaryIndexSettingsUpdate !== null && {
4961
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.GlobalTableBillingMode != null && { GlobalTableBillingMode: input.GlobalTableBillingMode })), (input.GlobalTableGlobalSecondaryIndexSettingsUpdate != null && {
5086
4962
  GlobalTableGlobalSecondaryIndexSettingsUpdate: serializeAws_json1_0GlobalTableGlobalSecondaryIndexSettingsUpdateList(input.GlobalTableGlobalSecondaryIndexSettingsUpdate, context),
5087
- })), (input.GlobalTableName !== undefined &&
5088
- input.GlobalTableName !== null && { GlobalTableName: input.GlobalTableName })), (input.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate !== undefined &&
5089
- input.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate !== null && {
4963
+ })), (input.GlobalTableName != null && { GlobalTableName: input.GlobalTableName })), (input.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate != null && {
5090
4964
  GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate, context),
5091
- })), (input.GlobalTableProvisionedWriteCapacityUnits !== undefined &&
5092
- input.GlobalTableProvisionedWriteCapacityUnits !== null && {
4965
+ })), (input.GlobalTableProvisionedWriteCapacityUnits != null && {
5093
4966
  GlobalTableProvisionedWriteCapacityUnits: input.GlobalTableProvisionedWriteCapacityUnits,
5094
- })), (input.ReplicaSettingsUpdate !== undefined &&
5095
- input.ReplicaSettingsUpdate !== null && {
4967
+ })), (input.ReplicaSettingsUpdate != null && {
5096
4968
  ReplicaSettingsUpdate: serializeAws_json1_0ReplicaSettingsUpdateList(input.ReplicaSettingsUpdate, context),
5097
4969
  }));
5098
4970
  };
5099
4971
  var serializeAws_json1_0UpdateItemInput = function (input, context) {
5100
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AttributeUpdates !== undefined &&
5101
- input.AttributeUpdates !== null && {
4972
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AttributeUpdates != null && {
5102
4973
  AttributeUpdates: serializeAws_json1_0AttributeUpdates(input.AttributeUpdates, context),
5103
- })), (input.ConditionExpression !== undefined &&
5104
- input.ConditionExpression !== null && { ConditionExpression: input.ConditionExpression })), (input.ConditionalOperator !== undefined &&
5105
- input.ConditionalOperator !== null && { ConditionalOperator: input.ConditionalOperator })), (input.Expected !== undefined &&
5106
- input.Expected !== null && { Expected: serializeAws_json1_0ExpectedAttributeMap(input.Expected, context) })), (input.ExpressionAttributeNames !== undefined &&
5107
- input.ExpressionAttributeNames !== null && {
4974
+ })), (input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression })), (input.ConditionalOperator != null && { ConditionalOperator: input.ConditionalOperator })), (input.Expected != null && { Expected: serializeAws_json1_0ExpectedAttributeMap(input.Expected, context) })), (input.ExpressionAttributeNames != null && {
5108
4975
  ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context),
5109
- })), (input.ExpressionAttributeValues !== undefined &&
5110
- input.ExpressionAttributeValues !== null && {
4976
+ })), (input.ExpressionAttributeValues != null && {
5111
4977
  ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context),
5112
- })), (input.Key !== undefined && input.Key !== null && { Key: serializeAws_json1_0Key(input.Key, context) })), (input.ReturnConsumedCapacity !== undefined &&
5113
- input.ReturnConsumedCapacity !== null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity })), (input.ReturnItemCollectionMetrics !== undefined &&
5114
- input.ReturnItemCollectionMetrics !== null && { ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics })), (input.ReturnValues !== undefined && input.ReturnValues !== null && { ReturnValues: input.ReturnValues })), (input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName })), (input.UpdateExpression !== undefined &&
5115
- input.UpdateExpression !== null && { UpdateExpression: input.UpdateExpression }));
4978
+ })), (input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) })), (input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity })), (input.ReturnItemCollectionMetrics != null && {
4979
+ ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics,
4980
+ })), (input.ReturnValues != null && { ReturnValues: input.ReturnValues })), (input.TableName != null && { TableName: input.TableName })), (input.UpdateExpression != null && { UpdateExpression: input.UpdateExpression }));
5116
4981
  };
5117
4982
  var serializeAws_json1_0UpdateReplicationGroupMemberAction = function (input, context) {
5118
- return __assign(__assign(__assign(__assign(__assign({}, (input.GlobalSecondaryIndexes !== undefined &&
5119
- input.GlobalSecondaryIndexes !== null && {
4983
+ return __assign(__assign(__assign(__assign(__assign({}, (input.GlobalSecondaryIndexes != null && {
5120
4984
  GlobalSecondaryIndexes: serializeAws_json1_0ReplicaGlobalSecondaryIndexList(input.GlobalSecondaryIndexes, context),
5121
- })), (input.KMSMasterKeyId !== undefined &&
5122
- input.KMSMasterKeyId !== null && { KMSMasterKeyId: input.KMSMasterKeyId })), (input.ProvisionedThroughputOverride !== undefined &&
5123
- input.ProvisionedThroughputOverride !== null && {
4985
+ })), (input.KMSMasterKeyId != null && { KMSMasterKeyId: input.KMSMasterKeyId })), (input.ProvisionedThroughputOverride != null && {
5124
4986
  ProvisionedThroughputOverride: serializeAws_json1_0ProvisionedThroughputOverride(input.ProvisionedThroughputOverride, context),
5125
- })), (input.RegionName !== undefined && input.RegionName !== null && { RegionName: input.RegionName })), (input.TableClassOverride !== undefined &&
5126
- input.TableClassOverride !== null && { TableClassOverride: input.TableClassOverride }));
4987
+ })), (input.RegionName != null && { RegionName: input.RegionName })), (input.TableClassOverride != null && { TableClassOverride: input.TableClassOverride }));
5127
4988
  };
5128
4989
  var serializeAws_json1_0UpdateTableInput = function (input, context) {
5129
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AttributeDefinitions !== undefined &&
5130
- input.AttributeDefinitions !== null && {
4990
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AttributeDefinitions != null && {
5131
4991
  AttributeDefinitions: serializeAws_json1_0AttributeDefinitions(input.AttributeDefinitions, context),
5132
- })), (input.BillingMode !== undefined && input.BillingMode !== null && { BillingMode: input.BillingMode })), (input.GlobalSecondaryIndexUpdates !== undefined &&
5133
- input.GlobalSecondaryIndexUpdates !== null && {
4992
+ })), (input.BillingMode != null && { BillingMode: input.BillingMode })), (input.GlobalSecondaryIndexUpdates != null && {
5134
4993
  GlobalSecondaryIndexUpdates: serializeAws_json1_0GlobalSecondaryIndexUpdateList(input.GlobalSecondaryIndexUpdates, context),
5135
- })), (input.ProvisionedThroughput !== undefined &&
5136
- input.ProvisionedThroughput !== null && {
4994
+ })), (input.ProvisionedThroughput != null && {
5137
4995
  ProvisionedThroughput: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughput, context),
5138
- })), (input.ReplicaUpdates !== undefined &&
5139
- input.ReplicaUpdates !== null && {
4996
+ })), (input.ReplicaUpdates != null && {
5140
4997
  ReplicaUpdates: serializeAws_json1_0ReplicationGroupUpdateList(input.ReplicaUpdates, context),
5141
- })), (input.SSESpecification !== undefined &&
5142
- input.SSESpecification !== null && {
4998
+ })), (input.SSESpecification != null && {
5143
4999
  SSESpecification: serializeAws_json1_0SSESpecification(input.SSESpecification, context),
5144
- })), (input.StreamSpecification !== undefined &&
5145
- input.StreamSpecification !== null && {
5000
+ })), (input.StreamSpecification != null && {
5146
5001
  StreamSpecification: serializeAws_json1_0StreamSpecification(input.StreamSpecification, context),
5147
- })), (input.TableClass !== undefined && input.TableClass !== null && { TableClass: input.TableClass })), (input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }));
5002
+ })), (input.TableClass != null && { TableClass: input.TableClass })), (input.TableName != null && { TableName: input.TableName }));
5148
5003
  };
5149
5004
  var serializeAws_json1_0UpdateTableReplicaAutoScalingInput = function (input, context) {
5150
- return __assign(__assign(__assign(__assign({}, (input.GlobalSecondaryIndexUpdates !== undefined &&
5151
- input.GlobalSecondaryIndexUpdates !== null && {
5005
+ return __assign(__assign(__assign(__assign({}, (input.GlobalSecondaryIndexUpdates != null && {
5152
5006
  GlobalSecondaryIndexUpdates: serializeAws_json1_0GlobalSecondaryIndexAutoScalingUpdateList(input.GlobalSecondaryIndexUpdates, context),
5153
- })), (input.ProvisionedWriteCapacityAutoScalingUpdate !== undefined &&
5154
- input.ProvisionedWriteCapacityAutoScalingUpdate !== null && {
5007
+ })), (input.ProvisionedWriteCapacityAutoScalingUpdate != null && {
5155
5008
  ProvisionedWriteCapacityAutoScalingUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ProvisionedWriteCapacityAutoScalingUpdate, context),
5156
- })), (input.ReplicaUpdates !== undefined &&
5157
- input.ReplicaUpdates !== null && {
5009
+ })), (input.ReplicaUpdates != null && {
5158
5010
  ReplicaUpdates: serializeAws_json1_0ReplicaAutoScalingUpdateList(input.ReplicaUpdates, context),
5159
- })), (input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }));
5011
+ })), (input.TableName != null && { TableName: input.TableName }));
5160
5012
  };
5161
5013
  var serializeAws_json1_0UpdateTimeToLiveInput = function (input, context) {
5162
- return __assign(__assign({}, (input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName })), (input.TimeToLiveSpecification !== undefined &&
5163
- input.TimeToLiveSpecification !== null && {
5014
+ return __assign(__assign({}, (input.TableName != null && { TableName: input.TableName })), (input.TimeToLiveSpecification != null && {
5164
5015
  TimeToLiveSpecification: serializeAws_json1_0TimeToLiveSpecification(input.TimeToLiveSpecification, context),
5165
5016
  }));
5166
5017
  };
5167
5018
  var serializeAws_json1_0WriteRequest = function (input, context) {
5168
- return __assign(__assign({}, (input.DeleteRequest !== undefined &&
5169
- input.DeleteRequest !== null && {
5019
+ return __assign(__assign({}, (input.DeleteRequest != null && {
5170
5020
  DeleteRequest: serializeAws_json1_0DeleteRequest(input.DeleteRequest, context),
5171
- })), (input.PutRequest !== undefined &&
5172
- input.PutRequest !== null && { PutRequest: serializeAws_json1_0PutRequest(input.PutRequest, context) }));
5021
+ })), (input.PutRequest != null && { PutRequest: serializeAws_json1_0PutRequest(input.PutRequest, context) }));
5173
5022
  };
5174
5023
  var serializeAws_json1_0WriteRequests = function (input, context) {
5175
5024
  return input
@@ -5184,7 +5033,7 @@ var serializeAws_json1_0WriteRequests = function (input, context) {
5184
5033
  var deserializeAws_json1_0ArchivalSummary = function (output, context) {
5185
5034
  return {
5186
5035
  ArchivalBackupArn: __expectString(output.ArchivalBackupArn),
5187
- ArchivalDateTime: output.ArchivalDateTime !== undefined && output.ArchivalDateTime !== null
5036
+ ArchivalDateTime: output.ArchivalDateTime != null
5188
5037
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ArchivalDateTime)))
5189
5038
  : undefined,
5190
5039
  ArchivalReason: __expectString(output.ArchivalReason),
@@ -5276,8 +5125,7 @@ var deserializeAws_json1_0AttributeValue = function (output, context) {
5276
5125
  var deserializeAws_json1_0AutoScalingPolicyDescription = function (output, context) {
5277
5126
  return {
5278
5127
  PolicyName: __expectString(output.PolicyName),
5279
- TargetTrackingScalingPolicyConfiguration: output.TargetTrackingScalingPolicyConfiguration !== undefined &&
5280
- output.TargetTrackingScalingPolicyConfiguration !== null
5128
+ TargetTrackingScalingPolicyConfiguration: output.TargetTrackingScalingPolicyConfiguration != null
5281
5129
  ? deserializeAws_json1_0AutoScalingTargetTrackingScalingPolicyConfigurationDescription(output.TargetTrackingScalingPolicyConfiguration, context)
5282
5130
  : undefined,
5283
5131
  };
@@ -5299,7 +5147,7 @@ var deserializeAws_json1_0AutoScalingSettingsDescription = function (output, con
5299
5147
  AutoScalingRoleArn: __expectString(output.AutoScalingRoleArn),
5300
5148
  MaximumUnits: __expectLong(output.MaximumUnits),
5301
5149
  MinimumUnits: __expectLong(output.MinimumUnits),
5302
- ScalingPolicies: output.ScalingPolicies !== undefined && output.ScalingPolicies !== null
5150
+ ScalingPolicies: output.ScalingPolicies != null
5303
5151
  ? deserializeAws_json1_0AutoScalingPolicyDescriptionList(output.ScalingPolicies, context)
5304
5152
  : undefined,
5305
5153
  };
@@ -5314,13 +5162,11 @@ var deserializeAws_json1_0AutoScalingTargetTrackingScalingPolicyConfigurationDes
5314
5162
  };
5315
5163
  var deserializeAws_json1_0BackupDescription = function (output, context) {
5316
5164
  return {
5317
- BackupDetails: output.BackupDetails !== undefined && output.BackupDetails !== null
5318
- ? deserializeAws_json1_0BackupDetails(output.BackupDetails, context)
5319
- : undefined,
5320
- SourceTableDetails: output.SourceTableDetails !== undefined && output.SourceTableDetails !== null
5165
+ BackupDetails: output.BackupDetails != null ? deserializeAws_json1_0BackupDetails(output.BackupDetails, context) : undefined,
5166
+ SourceTableDetails: output.SourceTableDetails != null
5321
5167
  ? deserializeAws_json1_0SourceTableDetails(output.SourceTableDetails, context)
5322
5168
  : undefined,
5323
- SourceTableFeatureDetails: output.SourceTableFeatureDetails !== undefined && output.SourceTableFeatureDetails !== null
5169
+ SourceTableFeatureDetails: output.SourceTableFeatureDetails != null
5324
5170
  ? deserializeAws_json1_0SourceTableFeatureDetails(output.SourceTableFeatureDetails, context)
5325
5171
  : undefined,
5326
5172
  };
@@ -5328,10 +5174,10 @@ var deserializeAws_json1_0BackupDescription = function (output, context) {
5328
5174
  var deserializeAws_json1_0BackupDetails = function (output, context) {
5329
5175
  return {
5330
5176
  BackupArn: __expectString(output.BackupArn),
5331
- BackupCreationDateTime: output.BackupCreationDateTime !== undefined && output.BackupCreationDateTime !== null
5177
+ BackupCreationDateTime: output.BackupCreationDateTime != null
5332
5178
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.BackupCreationDateTime)))
5333
5179
  : undefined,
5334
- BackupExpiryDateTime: output.BackupExpiryDateTime !== undefined && output.BackupExpiryDateTime !== null
5180
+ BackupExpiryDateTime: output.BackupExpiryDateTime != null
5335
5181
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.BackupExpiryDateTime)))
5336
5182
  : undefined,
5337
5183
  BackupName: __expectString(output.BackupName),
@@ -5364,10 +5210,10 @@ var deserializeAws_json1_0BackupSummaries = function (output, context) {
5364
5210
  var deserializeAws_json1_0BackupSummary = function (output, context) {
5365
5211
  return {
5366
5212
  BackupArn: __expectString(output.BackupArn),
5367
- BackupCreationDateTime: output.BackupCreationDateTime !== undefined && output.BackupCreationDateTime !== null
5213
+ BackupCreationDateTime: output.BackupCreationDateTime != null
5368
5214
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.BackupCreationDateTime)))
5369
5215
  : undefined,
5370
- BackupExpiryDateTime: output.BackupExpiryDateTime !== undefined && output.BackupExpiryDateTime !== null
5216
+ BackupExpiryDateTime: output.BackupExpiryDateTime != null
5371
5217
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.BackupExpiryDateTime)))
5372
5218
  : undefined,
5373
5219
  BackupName: __expectString(output.BackupName),
@@ -5381,23 +5227,19 @@ var deserializeAws_json1_0BackupSummary = function (output, context) {
5381
5227
  };
5382
5228
  var deserializeAws_json1_0BatchExecuteStatementOutput = function (output, context) {
5383
5229
  return {
5384
- ConsumedCapacity: output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null
5230
+ ConsumedCapacity: output.ConsumedCapacity != null
5385
5231
  ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context)
5386
5232
  : undefined,
5387
- Responses: output.Responses !== undefined && output.Responses !== null
5388
- ? deserializeAws_json1_0PartiQLBatchResponse(output.Responses, context)
5389
- : undefined,
5233
+ Responses: output.Responses != null ? deserializeAws_json1_0PartiQLBatchResponse(output.Responses, context) : undefined,
5390
5234
  };
5391
5235
  };
5392
5236
  var deserializeAws_json1_0BatchGetItemOutput = function (output, context) {
5393
5237
  return {
5394
- ConsumedCapacity: output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null
5238
+ ConsumedCapacity: output.ConsumedCapacity != null
5395
5239
  ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context)
5396
5240
  : undefined,
5397
- Responses: output.Responses !== undefined && output.Responses !== null
5398
- ? deserializeAws_json1_0BatchGetResponseMap(output.Responses, context)
5399
- : undefined,
5400
- UnprocessedKeys: output.UnprocessedKeys !== undefined && output.UnprocessedKeys !== null
5241
+ Responses: output.Responses != null ? deserializeAws_json1_0BatchGetResponseMap(output.Responses, context) : undefined,
5242
+ UnprocessedKeys: output.UnprocessedKeys != null
5401
5243
  ? deserializeAws_json1_0BatchGetRequestMap(output.UnprocessedKeys, context)
5402
5244
  : undefined,
5403
5245
  };
@@ -5430,24 +5272,20 @@ var deserializeAws_json1_0BatchStatementError = function (output, context) {
5430
5272
  };
5431
5273
  var deserializeAws_json1_0BatchStatementResponse = function (output, context) {
5432
5274
  return {
5433
- Error: output.Error !== undefined && output.Error !== null
5434
- ? deserializeAws_json1_0BatchStatementError(output.Error, context)
5435
- : undefined,
5436
- Item: output.Item !== undefined && output.Item !== null
5437
- ? deserializeAws_json1_0AttributeMap(output.Item, context)
5438
- : undefined,
5275
+ Error: output.Error != null ? deserializeAws_json1_0BatchStatementError(output.Error, context) : undefined,
5276
+ Item: output.Item != null ? deserializeAws_json1_0AttributeMap(output.Item, context) : undefined,
5439
5277
  TableName: __expectString(output.TableName),
5440
5278
  };
5441
5279
  };
5442
5280
  var deserializeAws_json1_0BatchWriteItemOutput = function (output, context) {
5443
5281
  return {
5444
- ConsumedCapacity: output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null
5282
+ ConsumedCapacity: output.ConsumedCapacity != null
5445
5283
  ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context)
5446
5284
  : undefined,
5447
- ItemCollectionMetrics: output.ItemCollectionMetrics !== undefined && output.ItemCollectionMetrics !== null
5285
+ ItemCollectionMetrics: output.ItemCollectionMetrics != null
5448
5286
  ? deserializeAws_json1_0ItemCollectionMetricsPerTable(output.ItemCollectionMetrics, context)
5449
5287
  : undefined,
5450
- UnprocessedItems: output.UnprocessedItems !== undefined && output.UnprocessedItems !== null
5288
+ UnprocessedItems: output.UnprocessedItems != null
5451
5289
  ? deserializeAws_json1_0BatchWriteItemRequestMap(output.UnprocessedItems, context)
5452
5290
  : undefined,
5453
5291
  };
@@ -5465,7 +5303,7 @@ var deserializeAws_json1_0BatchWriteItemRequestMap = function (output, context)
5465
5303
  var deserializeAws_json1_0BillingModeSummary = function (output, context) {
5466
5304
  return {
5467
5305
  BillingMode: __expectString(output.BillingMode),
5468
- LastUpdateToPayPerRequestDateTime: output.LastUpdateToPayPerRequestDateTime !== undefined && output.LastUpdateToPayPerRequestDateTime !== null
5306
+ LastUpdateToPayPerRequestDateTime: output.LastUpdateToPayPerRequestDateTime != null
5469
5307
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdateToPayPerRequestDateTime)))
5470
5308
  : undefined,
5471
5309
  };
@@ -5484,9 +5322,7 @@ var deserializeAws_json1_0BinarySetAttributeValue = function (output, context) {
5484
5322
  var deserializeAws_json1_0CancellationReason = function (output, context) {
5485
5323
  return {
5486
5324
  Code: __expectString(output.Code),
5487
- Item: output.Item !== undefined && output.Item !== null
5488
- ? deserializeAws_json1_0AttributeMap(output.Item, context)
5489
- : undefined,
5325
+ Item: output.Item != null ? deserializeAws_json1_0AttributeMap(output.Item, context) : undefined,
5490
5326
  Message: __expectString(output.Message),
5491
5327
  };
5492
5328
  };
@@ -5516,16 +5352,14 @@ var deserializeAws_json1_0ConditionalCheckFailedException = function (output, co
5516
5352
  var deserializeAws_json1_0ConsumedCapacity = function (output, context) {
5517
5353
  return {
5518
5354
  CapacityUnits: __limitedParseDouble(output.CapacityUnits),
5519
- GlobalSecondaryIndexes: output.GlobalSecondaryIndexes !== undefined && output.GlobalSecondaryIndexes !== null
5355
+ GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null
5520
5356
  ? deserializeAws_json1_0SecondaryIndexesCapacityMap(output.GlobalSecondaryIndexes, context)
5521
5357
  : undefined,
5522
- LocalSecondaryIndexes: output.LocalSecondaryIndexes !== undefined && output.LocalSecondaryIndexes !== null
5358
+ LocalSecondaryIndexes: output.LocalSecondaryIndexes != null
5523
5359
  ? deserializeAws_json1_0SecondaryIndexesCapacityMap(output.LocalSecondaryIndexes, context)
5524
5360
  : undefined,
5525
5361
  ReadCapacityUnits: __limitedParseDouble(output.ReadCapacityUnits),
5526
- Table: output.Table !== undefined && output.Table !== null
5527
- ? deserializeAws_json1_0Capacity(output.Table, context)
5528
- : undefined,
5362
+ Table: output.Table != null ? deserializeAws_json1_0Capacity(output.Table, context) : undefined,
5529
5363
  TableName: __expectString(output.TableName),
5530
5364
  WriteCapacityUnits: __limitedParseDouble(output.WriteCapacityUnits),
5531
5365
  };
@@ -5544,7 +5378,7 @@ var deserializeAws_json1_0ConsumedCapacityMultiple = function (output, context)
5544
5378
  var deserializeAws_json1_0ContinuousBackupsDescription = function (output, context) {
5545
5379
  return {
5546
5380
  ContinuousBackupsStatus: __expectString(output.ContinuousBackupsStatus),
5547
- PointInTimeRecoveryDescription: output.PointInTimeRecoveryDescription !== undefined && output.PointInTimeRecoveryDescription !== null
5381
+ PointInTimeRecoveryDescription: output.PointInTimeRecoveryDescription != null
5548
5382
  ? deserializeAws_json1_0PointInTimeRecoveryDescription(output.PointInTimeRecoveryDescription, context)
5549
5383
  : undefined,
5550
5384
  };
@@ -5585,82 +5419,78 @@ var deserializeAws_json1_0ContributorInsightsSummary = function (output, context
5585
5419
  };
5586
5420
  var deserializeAws_json1_0CreateBackupOutput = function (output, context) {
5587
5421
  return {
5588
- BackupDetails: output.BackupDetails !== undefined && output.BackupDetails !== null
5589
- ? deserializeAws_json1_0BackupDetails(output.BackupDetails, context)
5590
- : undefined,
5422
+ BackupDetails: output.BackupDetails != null ? deserializeAws_json1_0BackupDetails(output.BackupDetails, context) : undefined,
5591
5423
  };
5592
5424
  };
5593
5425
  var deserializeAws_json1_0CreateGlobalTableOutput = function (output, context) {
5594
5426
  return {
5595
- GlobalTableDescription: output.GlobalTableDescription !== undefined && output.GlobalTableDescription !== null
5427
+ GlobalTableDescription: output.GlobalTableDescription != null
5596
5428
  ? deserializeAws_json1_0GlobalTableDescription(output.GlobalTableDescription, context)
5597
5429
  : undefined,
5598
5430
  };
5599
5431
  };
5600
5432
  var deserializeAws_json1_0CreateTableOutput = function (output, context) {
5601
5433
  return {
5602
- TableDescription: output.TableDescription !== undefined && output.TableDescription !== null
5434
+ TableDescription: output.TableDescription != null
5603
5435
  ? deserializeAws_json1_0TableDescription(output.TableDescription, context)
5604
5436
  : undefined,
5605
5437
  };
5606
5438
  };
5607
5439
  var deserializeAws_json1_0DeleteBackupOutput = function (output, context) {
5608
5440
  return {
5609
- BackupDescription: output.BackupDescription !== undefined && output.BackupDescription !== null
5441
+ BackupDescription: output.BackupDescription != null
5610
5442
  ? deserializeAws_json1_0BackupDescription(output.BackupDescription, context)
5611
5443
  : undefined,
5612
5444
  };
5613
5445
  };
5614
5446
  var deserializeAws_json1_0DeleteItemOutput = function (output, context) {
5615
5447
  return {
5616
- Attributes: output.Attributes !== undefined && output.Attributes !== null
5617
- ? deserializeAws_json1_0AttributeMap(output.Attributes, context)
5618
- : undefined,
5619
- ConsumedCapacity: output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null
5448
+ Attributes: output.Attributes != null ? deserializeAws_json1_0AttributeMap(output.Attributes, context) : undefined,
5449
+ ConsumedCapacity: output.ConsumedCapacity != null
5620
5450
  ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context)
5621
5451
  : undefined,
5622
- ItemCollectionMetrics: output.ItemCollectionMetrics !== undefined && output.ItemCollectionMetrics !== null
5452
+ ItemCollectionMetrics: output.ItemCollectionMetrics != null
5623
5453
  ? deserializeAws_json1_0ItemCollectionMetrics(output.ItemCollectionMetrics, context)
5624
5454
  : undefined,
5625
5455
  };
5626
5456
  };
5627
5457
  var deserializeAws_json1_0DeleteRequest = function (output, context) {
5628
5458
  return {
5629
- Key: output.Key !== undefined && output.Key !== null ? deserializeAws_json1_0Key(output.Key, context) : undefined,
5459
+ Key: output.Key != null ? deserializeAws_json1_0Key(output.Key, context) : undefined,
5630
5460
  };
5631
5461
  };
5632
5462
  var deserializeAws_json1_0DeleteTableOutput = function (output, context) {
5633
5463
  return {
5634
- TableDescription: output.TableDescription !== undefined && output.TableDescription !== null
5464
+ TableDescription: output.TableDescription != null
5635
5465
  ? deserializeAws_json1_0TableDescription(output.TableDescription, context)
5636
5466
  : undefined,
5637
5467
  };
5638
5468
  };
5639
5469
  var deserializeAws_json1_0DescribeBackupOutput = function (output, context) {
5640
5470
  return {
5641
- BackupDescription: output.BackupDescription !== undefined && output.BackupDescription !== null
5471
+ BackupDescription: output.BackupDescription != null
5642
5472
  ? deserializeAws_json1_0BackupDescription(output.BackupDescription, context)
5643
5473
  : undefined,
5644
5474
  };
5645
5475
  };
5646
5476
  var deserializeAws_json1_0DescribeContinuousBackupsOutput = function (output, context) {
5647
5477
  return {
5648
- ContinuousBackupsDescription: output.ContinuousBackupsDescription !== undefined && output.ContinuousBackupsDescription !== null
5478
+ ContinuousBackupsDescription: output.ContinuousBackupsDescription != null
5649
5479
  ? deserializeAws_json1_0ContinuousBackupsDescription(output.ContinuousBackupsDescription, context)
5650
5480
  : undefined,
5651
5481
  };
5652
5482
  };
5653
5483
  var deserializeAws_json1_0DescribeContributorInsightsOutput = function (output, context) {
5654
5484
  return {
5655
- ContributorInsightsRuleList: output.ContributorInsightsRuleList !== undefined && output.ContributorInsightsRuleList !== null
5485
+ ContributorInsightsRuleList: output.ContributorInsightsRuleList != null
5656
5486
  ? deserializeAws_json1_0ContributorInsightsRuleList(output.ContributorInsightsRuleList, context)
5657
5487
  : undefined,
5658
5488
  ContributorInsightsStatus: __expectString(output.ContributorInsightsStatus),
5659
- FailureException: output.FailureException !== undefined && output.FailureException !== null
5489
+ FailureException: output.FailureException != null
5660
5490
  ? deserializeAws_json1_0FailureException(output.FailureException, context)
5661
5491
  : undefined,
5662
5492
  IndexName: __expectString(output.IndexName),
5663
- LastUpdateDateTime: output.LastUpdateDateTime !== undefined && output.LastUpdateDateTime !== null
5493
+ LastUpdateDateTime: output.LastUpdateDateTime != null
5664
5494
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdateDateTime)))
5665
5495
  : undefined,
5666
5496
  TableName: __expectString(output.TableName),
@@ -5668,21 +5498,19 @@ var deserializeAws_json1_0DescribeContributorInsightsOutput = function (output,
5668
5498
  };
5669
5499
  var deserializeAws_json1_0DescribeEndpointsResponse = function (output, context) {
5670
5500
  return {
5671
- Endpoints: output.Endpoints !== undefined && output.Endpoints !== null
5672
- ? deserializeAws_json1_0Endpoints(output.Endpoints, context)
5673
- : undefined,
5501
+ Endpoints: output.Endpoints != null ? deserializeAws_json1_0Endpoints(output.Endpoints, context) : undefined,
5674
5502
  };
5675
5503
  };
5676
5504
  var deserializeAws_json1_0DescribeExportOutput = function (output, context) {
5677
5505
  return {
5678
- ExportDescription: output.ExportDescription !== undefined && output.ExportDescription !== null
5506
+ ExportDescription: output.ExportDescription != null
5679
5507
  ? deserializeAws_json1_0ExportDescription(output.ExportDescription, context)
5680
5508
  : undefined,
5681
5509
  };
5682
5510
  };
5683
5511
  var deserializeAws_json1_0DescribeGlobalTableOutput = function (output, context) {
5684
5512
  return {
5685
- GlobalTableDescription: output.GlobalTableDescription !== undefined && output.GlobalTableDescription !== null
5513
+ GlobalTableDescription: output.GlobalTableDescription != null
5686
5514
  ? deserializeAws_json1_0GlobalTableDescription(output.GlobalTableDescription, context)
5687
5515
  : undefined,
5688
5516
  };
@@ -5690,14 +5518,14 @@ var deserializeAws_json1_0DescribeGlobalTableOutput = function (output, context)
5690
5518
  var deserializeAws_json1_0DescribeGlobalTableSettingsOutput = function (output, context) {
5691
5519
  return {
5692
5520
  GlobalTableName: __expectString(output.GlobalTableName),
5693
- ReplicaSettings: output.ReplicaSettings !== undefined && output.ReplicaSettings !== null
5521
+ ReplicaSettings: output.ReplicaSettings != null
5694
5522
  ? deserializeAws_json1_0ReplicaSettingsDescriptionList(output.ReplicaSettings, context)
5695
5523
  : undefined,
5696
5524
  };
5697
5525
  };
5698
5526
  var deserializeAws_json1_0DescribeKinesisStreamingDestinationOutput = function (output, context) {
5699
5527
  return {
5700
- KinesisDataStreamDestinations: output.KinesisDataStreamDestinations !== undefined && output.KinesisDataStreamDestinations !== null
5528
+ KinesisDataStreamDestinations: output.KinesisDataStreamDestinations != null
5701
5529
  ? deserializeAws_json1_0KinesisDataStreamDestinations(output.KinesisDataStreamDestinations, context)
5702
5530
  : undefined,
5703
5531
  TableName: __expectString(output.TableName),
@@ -5713,21 +5541,19 @@ var deserializeAws_json1_0DescribeLimitsOutput = function (output, context) {
5713
5541
  };
5714
5542
  var deserializeAws_json1_0DescribeTableOutput = function (output, context) {
5715
5543
  return {
5716
- Table: output.Table !== undefined && output.Table !== null
5717
- ? deserializeAws_json1_0TableDescription(output.Table, context)
5718
- : undefined,
5544
+ Table: output.Table != null ? deserializeAws_json1_0TableDescription(output.Table, context) : undefined,
5719
5545
  };
5720
5546
  };
5721
5547
  var deserializeAws_json1_0DescribeTableReplicaAutoScalingOutput = function (output, context) {
5722
5548
  return {
5723
- TableAutoScalingDescription: output.TableAutoScalingDescription !== undefined && output.TableAutoScalingDescription !== null
5549
+ TableAutoScalingDescription: output.TableAutoScalingDescription != null
5724
5550
  ? deserializeAws_json1_0TableAutoScalingDescription(output.TableAutoScalingDescription, context)
5725
5551
  : undefined,
5726
5552
  };
5727
5553
  };
5728
5554
  var deserializeAws_json1_0DescribeTimeToLiveOutput = function (output, context) {
5729
5555
  return {
5730
- TimeToLiveDescription: output.TimeToLiveDescription !== undefined && output.TimeToLiveDescription !== null
5556
+ TimeToLiveDescription: output.TimeToLiveDescription != null
5731
5557
  ? deserializeAws_json1_0TimeToLiveDescription(output.TimeToLiveDescription, context)
5732
5558
  : undefined,
5733
5559
  };
@@ -5756,26 +5582,20 @@ var deserializeAws_json1_0Endpoints = function (output, context) {
5756
5582
  };
5757
5583
  var deserializeAws_json1_0ExecuteStatementOutput = function (output, context) {
5758
5584
  return {
5759
- ConsumedCapacity: output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null
5585
+ ConsumedCapacity: output.ConsumedCapacity != null
5760
5586
  ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context)
5761
5587
  : undefined,
5762
- Items: output.Items !== undefined && output.Items !== null
5763
- ? deserializeAws_json1_0ItemList(output.Items, context)
5764
- : undefined,
5765
- LastEvaluatedKey: output.LastEvaluatedKey !== undefined && output.LastEvaluatedKey !== null
5766
- ? deserializeAws_json1_0Key(output.LastEvaluatedKey, context)
5767
- : undefined,
5588
+ Items: output.Items != null ? deserializeAws_json1_0ItemList(output.Items, context) : undefined,
5589
+ LastEvaluatedKey: output.LastEvaluatedKey != null ? deserializeAws_json1_0Key(output.LastEvaluatedKey, context) : undefined,
5768
5590
  NextToken: __expectString(output.NextToken),
5769
5591
  };
5770
5592
  };
5771
5593
  var deserializeAws_json1_0ExecuteTransactionOutput = function (output, context) {
5772
5594
  return {
5773
- ConsumedCapacity: output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null
5595
+ ConsumedCapacity: output.ConsumedCapacity != null
5774
5596
  ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context)
5775
5597
  : undefined,
5776
- Responses: output.Responses !== undefined && output.Responses !== null
5777
- ? deserializeAws_json1_0ItemResponseList(output.Responses, context)
5778
- : undefined,
5598
+ Responses: output.Responses != null ? deserializeAws_json1_0ItemResponseList(output.Responses, context) : undefined,
5779
5599
  };
5780
5600
  };
5781
5601
  var deserializeAws_json1_0ExportConflictException = function (output, context) {
@@ -5787,16 +5607,12 @@ var deserializeAws_json1_0ExportDescription = function (output, context) {
5787
5607
  return {
5788
5608
  BilledSizeBytes: __expectLong(output.BilledSizeBytes),
5789
5609
  ClientToken: __expectString(output.ClientToken),
5790
- EndTime: output.EndTime !== undefined && output.EndTime !== null
5791
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
5792
- : undefined,
5610
+ EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
5793
5611
  ExportArn: __expectString(output.ExportArn),
5794
5612
  ExportFormat: __expectString(output.ExportFormat),
5795
5613
  ExportManifest: __expectString(output.ExportManifest),
5796
5614
  ExportStatus: __expectString(output.ExportStatus),
5797
- ExportTime: output.ExportTime !== undefined && output.ExportTime !== null
5798
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ExportTime)))
5799
- : undefined,
5615
+ ExportTime: output.ExportTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ExportTime))) : undefined,
5800
5616
  FailureCode: __expectString(output.FailureCode),
5801
5617
  FailureMessage: __expectString(output.FailureMessage),
5802
5618
  ItemCount: __expectLong(output.ItemCount),
@@ -5805,9 +5621,7 @@ var deserializeAws_json1_0ExportDescription = function (output, context) {
5805
5621
  S3Prefix: __expectString(output.S3Prefix),
5806
5622
  S3SseAlgorithm: __expectString(output.S3SseAlgorithm),
5807
5623
  S3SseKmsKeyId: __expectString(output.S3SseKmsKeyId),
5808
- StartTime: output.StartTime !== undefined && output.StartTime !== null
5809
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
5810
- : undefined,
5624
+ StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
5811
5625
  TableArn: __expectString(output.TableArn),
5812
5626
  TableId: __expectString(output.TableId),
5813
5627
  };
@@ -5836,7 +5650,7 @@ var deserializeAws_json1_0ExportSummary = function (output, context) {
5836
5650
  };
5837
5651
  var deserializeAws_json1_0ExportTableToPointInTimeOutput = function (output, context) {
5838
5652
  return {
5839
- ExportDescription: output.ExportDescription !== undefined && output.ExportDescription !== null
5653
+ ExportDescription: output.ExportDescription != null
5840
5654
  ? deserializeAws_json1_0ExportDescription(output.ExportDescription, context)
5841
5655
  : undefined,
5842
5656
  };
@@ -5859,12 +5673,10 @@ var deserializeAws_json1_0FailureException = function (output, context) {
5859
5673
  };
5860
5674
  var deserializeAws_json1_0GetItemOutput = function (output, context) {
5861
5675
  return {
5862
- ConsumedCapacity: output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null
5676
+ ConsumedCapacity: output.ConsumedCapacity != null
5863
5677
  ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context)
5864
5678
  : undefined,
5865
- Item: output.Item !== undefined && output.Item !== null
5866
- ? deserializeAws_json1_0AttributeMap(output.Item, context)
5867
- : undefined,
5679
+ Item: output.Item != null ? deserializeAws_json1_0AttributeMap(output.Item, context) : undefined,
5868
5680
  };
5869
5681
  };
5870
5682
  var deserializeAws_json1_0GlobalSecondaryIndexDescription = function (output, context) {
@@ -5875,13 +5687,9 @@ var deserializeAws_json1_0GlobalSecondaryIndexDescription = function (output, co
5875
5687
  IndexSizeBytes: __expectLong(output.IndexSizeBytes),
5876
5688
  IndexStatus: __expectString(output.IndexStatus),
5877
5689
  ItemCount: __expectLong(output.ItemCount),
5878
- KeySchema: output.KeySchema !== undefined && output.KeySchema !== null
5879
- ? deserializeAws_json1_0KeySchema(output.KeySchema, context)
5880
- : undefined,
5881
- Projection: output.Projection !== undefined && output.Projection !== null
5882
- ? deserializeAws_json1_0Projection(output.Projection, context)
5883
- : undefined,
5884
- ProvisionedThroughput: output.ProvisionedThroughput !== undefined && output.ProvisionedThroughput !== null
5690
+ KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : undefined,
5691
+ Projection: output.Projection != null ? deserializeAws_json1_0Projection(output.Projection, context) : undefined,
5692
+ ProvisionedThroughput: output.ProvisionedThroughput != null
5885
5693
  ? deserializeAws_json1_0ProvisionedThroughputDescription(output.ProvisionedThroughput, context)
5886
5694
  : undefined,
5887
5695
  };
@@ -5911,13 +5719,9 @@ var deserializeAws_json1_0GlobalSecondaryIndexes = function (output, context) {
5911
5719
  var deserializeAws_json1_0GlobalSecondaryIndexInfo = function (output, context) {
5912
5720
  return {
5913
5721
  IndexName: __expectString(output.IndexName),
5914
- KeySchema: output.KeySchema !== undefined && output.KeySchema !== null
5915
- ? deserializeAws_json1_0KeySchema(output.KeySchema, context)
5916
- : undefined,
5917
- Projection: output.Projection !== undefined && output.Projection !== null
5918
- ? deserializeAws_json1_0Projection(output.Projection, context)
5919
- : undefined,
5920
- ProvisionedThroughput: output.ProvisionedThroughput !== undefined && output.ProvisionedThroughput !== null
5722
+ KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : undefined,
5723
+ Projection: output.Projection != null ? deserializeAws_json1_0Projection(output.Projection, context) : undefined,
5724
+ ProvisionedThroughput: output.ProvisionedThroughput != null
5921
5725
  ? deserializeAws_json1_0ProvisionedThroughput(output.ProvisionedThroughput, context)
5922
5726
  : undefined,
5923
5727
  };
@@ -5925,9 +5729,7 @@ var deserializeAws_json1_0GlobalSecondaryIndexInfo = function (output, context)
5925
5729
  var deserializeAws_json1_0GlobalTable = function (output, context) {
5926
5730
  return {
5927
5731
  GlobalTableName: __expectString(output.GlobalTableName),
5928
- ReplicationGroup: output.ReplicationGroup !== undefined && output.ReplicationGroup !== null
5929
- ? deserializeAws_json1_0ReplicaList(output.ReplicationGroup, context)
5930
- : undefined,
5732
+ ReplicationGroup: output.ReplicationGroup != null ? deserializeAws_json1_0ReplicaList(output.ReplicationGroup, context) : undefined,
5931
5733
  };
5932
5734
  };
5933
5735
  var deserializeAws_json1_0GlobalTableAlreadyExistsException = function (output, context) {
@@ -5937,13 +5739,13 @@ var deserializeAws_json1_0GlobalTableAlreadyExistsException = function (output,
5937
5739
  };
5938
5740
  var deserializeAws_json1_0GlobalTableDescription = function (output, context) {
5939
5741
  return {
5940
- CreationDateTime: output.CreationDateTime !== undefined && output.CreationDateTime !== null
5742
+ CreationDateTime: output.CreationDateTime != null
5941
5743
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDateTime)))
5942
5744
  : undefined,
5943
5745
  GlobalTableArn: __expectString(output.GlobalTableArn),
5944
5746
  GlobalTableName: __expectString(output.GlobalTableName),
5945
5747
  GlobalTableStatus: __expectString(output.GlobalTableStatus),
5946
- ReplicationGroup: output.ReplicationGroup !== undefined && output.ReplicationGroup !== null
5748
+ ReplicationGroup: output.ReplicationGroup != null
5947
5749
  ? deserializeAws_json1_0ReplicaDescriptionList(output.ReplicationGroup, context)
5948
5750
  : undefined,
5949
5751
  };
@@ -6006,10 +5808,10 @@ var deserializeAws_json1_0ItemCollectionKeyAttributeMap = function (output, cont
6006
5808
  };
6007
5809
  var deserializeAws_json1_0ItemCollectionMetrics = function (output, context) {
6008
5810
  return {
6009
- ItemCollectionKey: output.ItemCollectionKey !== undefined && output.ItemCollectionKey !== null
5811
+ ItemCollectionKey: output.ItemCollectionKey != null
6010
5812
  ? deserializeAws_json1_0ItemCollectionKeyAttributeMap(output.ItemCollectionKey, context)
6011
5813
  : undefined,
6012
- SizeEstimateRangeGB: output.SizeEstimateRangeGB !== undefined && output.SizeEstimateRangeGB !== null
5814
+ SizeEstimateRangeGB: output.SizeEstimateRangeGB != null
6013
5815
  ? deserializeAws_json1_0ItemCollectionSizeEstimateRange(output.SizeEstimateRangeGB, context)
6014
5816
  : undefined,
6015
5817
  };
@@ -6064,9 +5866,7 @@ var deserializeAws_json1_0ItemList = function (output, context) {
6064
5866
  };
6065
5867
  var deserializeAws_json1_0ItemResponse = function (output, context) {
6066
5868
  return {
6067
- Item: output.Item !== undefined && output.Item !== null
6068
- ? deserializeAws_json1_0AttributeMap(output.Item, context)
6069
- : undefined,
5869
+ Item: output.Item != null ? deserializeAws_json1_0AttributeMap(output.Item, context) : undefined,
6070
5870
  };
6071
5871
  };
6072
5872
  var deserializeAws_json1_0ItemResponseList = function (output, context) {
@@ -6103,16 +5903,14 @@ var deserializeAws_json1_0KeyList = function (output, context) {
6103
5903
  };
6104
5904
  var deserializeAws_json1_0KeysAndAttributes = function (output, context) {
6105
5905
  return {
6106
- AttributesToGet: output.AttributesToGet !== undefined && output.AttributesToGet !== null
5906
+ AttributesToGet: output.AttributesToGet != null
6107
5907
  ? deserializeAws_json1_0AttributeNameList(output.AttributesToGet, context)
6108
5908
  : undefined,
6109
5909
  ConsistentRead: __expectBoolean(output.ConsistentRead),
6110
- ExpressionAttributeNames: output.ExpressionAttributeNames !== undefined && output.ExpressionAttributeNames !== null
5910
+ ExpressionAttributeNames: output.ExpressionAttributeNames != null
6111
5911
  ? deserializeAws_json1_0ExpressionAttributeNameMap(output.ExpressionAttributeNames, context)
6112
5912
  : undefined,
6113
- Keys: output.Keys !== undefined && output.Keys !== null
6114
- ? deserializeAws_json1_0KeyList(output.Keys, context)
6115
- : undefined,
5913
+ Keys: output.Keys != null ? deserializeAws_json1_0KeyList(output.Keys, context) : undefined,
6116
5914
  ProjectionExpression: __expectString(output.ProjectionExpression),
6117
5915
  };
6118
5916
  };
@@ -6176,7 +5974,7 @@ var deserializeAws_json1_0ListAttributeValue = function (output, context) {
6176
5974
  };
6177
5975
  var deserializeAws_json1_0ListBackupsOutput = function (output, context) {
6178
5976
  return {
6179
- BackupSummaries: output.BackupSummaries !== undefined && output.BackupSummaries !== null
5977
+ BackupSummaries: output.BackupSummaries != null
6180
5978
  ? deserializeAws_json1_0BackupSummaries(output.BackupSummaries, context)
6181
5979
  : undefined,
6182
5980
  LastEvaluatedBackupArn: __expectString(output.LastEvaluatedBackupArn),
@@ -6184,7 +5982,7 @@ var deserializeAws_json1_0ListBackupsOutput = function (output, context) {
6184
5982
  };
6185
5983
  var deserializeAws_json1_0ListContributorInsightsOutput = function (output, context) {
6186
5984
  return {
6187
- ContributorInsightsSummaries: output.ContributorInsightsSummaries !== undefined && output.ContributorInsightsSummaries !== null
5985
+ ContributorInsightsSummaries: output.ContributorInsightsSummaries != null
6188
5986
  ? deserializeAws_json1_0ContributorInsightsSummaries(output.ContributorInsightsSummaries, context)
6189
5987
  : undefined,
6190
5988
  NextToken: __expectString(output.NextToken),
@@ -6192,7 +5990,7 @@ var deserializeAws_json1_0ListContributorInsightsOutput = function (output, cont
6192
5990
  };
6193
5991
  var deserializeAws_json1_0ListExportsOutput = function (output, context) {
6194
5992
  return {
6195
- ExportSummaries: output.ExportSummaries !== undefined && output.ExportSummaries !== null
5993
+ ExportSummaries: output.ExportSummaries != null
6196
5994
  ? deserializeAws_json1_0ExportSummaries(output.ExportSummaries, context)
6197
5995
  : undefined,
6198
5996
  NextToken: __expectString(output.NextToken),
@@ -6200,26 +5998,20 @@ var deserializeAws_json1_0ListExportsOutput = function (output, context) {
6200
5998
  };
6201
5999
  var deserializeAws_json1_0ListGlobalTablesOutput = function (output, context) {
6202
6000
  return {
6203
- GlobalTables: output.GlobalTables !== undefined && output.GlobalTables !== null
6204
- ? deserializeAws_json1_0GlobalTableList(output.GlobalTables, context)
6205
- : undefined,
6001
+ GlobalTables: output.GlobalTables != null ? deserializeAws_json1_0GlobalTableList(output.GlobalTables, context) : undefined,
6206
6002
  LastEvaluatedGlobalTableName: __expectString(output.LastEvaluatedGlobalTableName),
6207
6003
  };
6208
6004
  };
6209
6005
  var deserializeAws_json1_0ListTablesOutput = function (output, context) {
6210
6006
  return {
6211
6007
  LastEvaluatedTableName: __expectString(output.LastEvaluatedTableName),
6212
- TableNames: output.TableNames !== undefined && output.TableNames !== null
6213
- ? deserializeAws_json1_0TableNameList(output.TableNames, context)
6214
- : undefined,
6008
+ TableNames: output.TableNames != null ? deserializeAws_json1_0TableNameList(output.TableNames, context) : undefined,
6215
6009
  };
6216
6010
  };
6217
6011
  var deserializeAws_json1_0ListTagsOfResourceOutput = function (output, context) {
6218
6012
  return {
6219
6013
  NextToken: __expectString(output.NextToken),
6220
- Tags: output.Tags !== undefined && output.Tags !== null
6221
- ? deserializeAws_json1_0TagList(output.Tags, context)
6222
- : undefined,
6014
+ Tags: output.Tags != null ? deserializeAws_json1_0TagList(output.Tags, context) : undefined,
6223
6015
  };
6224
6016
  };
6225
6017
  var deserializeAws_json1_0LocalSecondaryIndexDescription = function (output, context) {
@@ -6228,12 +6020,8 @@ var deserializeAws_json1_0LocalSecondaryIndexDescription = function (output, con
6228
6020
  IndexName: __expectString(output.IndexName),
6229
6021
  IndexSizeBytes: __expectLong(output.IndexSizeBytes),
6230
6022
  ItemCount: __expectLong(output.ItemCount),
6231
- KeySchema: output.KeySchema !== undefined && output.KeySchema !== null
6232
- ? deserializeAws_json1_0KeySchema(output.KeySchema, context)
6233
- : undefined,
6234
- Projection: output.Projection !== undefined && output.Projection !== null
6235
- ? deserializeAws_json1_0Projection(output.Projection, context)
6236
- : undefined,
6023
+ KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : undefined,
6024
+ Projection: output.Projection != null ? deserializeAws_json1_0Projection(output.Projection, context) : undefined,
6237
6025
  };
6238
6026
  };
6239
6027
  var deserializeAws_json1_0LocalSecondaryIndexDescriptionList = function (output, context) {
@@ -6261,12 +6049,8 @@ var deserializeAws_json1_0LocalSecondaryIndexes = function (output, context) {
6261
6049
  var deserializeAws_json1_0LocalSecondaryIndexInfo = function (output, context) {
6262
6050
  return {
6263
6051
  IndexName: __expectString(output.IndexName),
6264
- KeySchema: output.KeySchema !== undefined && output.KeySchema !== null
6265
- ? deserializeAws_json1_0KeySchema(output.KeySchema, context)
6266
- : undefined,
6267
- Projection: output.Projection !== undefined && output.Projection !== null
6268
- ? deserializeAws_json1_0Projection(output.Projection, context)
6269
- : undefined,
6052
+ KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : undefined,
6053
+ Projection: output.Projection != null ? deserializeAws_json1_0Projection(output.Projection, context) : undefined,
6270
6054
  };
6271
6055
  };
6272
6056
  var deserializeAws_json1_0MapAttributeValue = function (output, context) {
@@ -6314,10 +6098,10 @@ var deserializeAws_json1_0PartiQLBatchResponse = function (output, context) {
6314
6098
  };
6315
6099
  var deserializeAws_json1_0PointInTimeRecoveryDescription = function (output, context) {
6316
6100
  return {
6317
- EarliestRestorableDateTime: output.EarliestRestorableDateTime !== undefined && output.EarliestRestorableDateTime !== null
6101
+ EarliestRestorableDateTime: output.EarliestRestorableDateTime != null
6318
6102
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EarliestRestorableDateTime)))
6319
6103
  : undefined,
6320
- LatestRestorableDateTime: output.LatestRestorableDateTime !== undefined && output.LatestRestorableDateTime !== null
6104
+ LatestRestorableDateTime: output.LatestRestorableDateTime != null
6321
6105
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LatestRestorableDateTime)))
6322
6106
  : undefined,
6323
6107
  PointInTimeRecoveryStatus: __expectString(output.PointInTimeRecoveryStatus),
@@ -6330,7 +6114,7 @@ var deserializeAws_json1_0PointInTimeRecoveryUnavailableException = function (ou
6330
6114
  };
6331
6115
  var deserializeAws_json1_0Projection = function (output, context) {
6332
6116
  return {
6333
- NonKeyAttributes: output.NonKeyAttributes !== undefined && output.NonKeyAttributes !== null
6117
+ NonKeyAttributes: output.NonKeyAttributes != null
6334
6118
  ? deserializeAws_json1_0NonKeyAttributeNameList(output.NonKeyAttributes, context)
6335
6119
  : undefined,
6336
6120
  ProjectionType: __expectString(output.ProjectionType),
@@ -6344,10 +6128,10 @@ var deserializeAws_json1_0ProvisionedThroughput = function (output, context) {
6344
6128
  };
6345
6129
  var deserializeAws_json1_0ProvisionedThroughputDescription = function (output, context) {
6346
6130
  return {
6347
- LastDecreaseDateTime: output.LastDecreaseDateTime !== undefined && output.LastDecreaseDateTime !== null
6131
+ LastDecreaseDateTime: output.LastDecreaseDateTime != null
6348
6132
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastDecreaseDateTime)))
6349
6133
  : undefined,
6350
- LastIncreaseDateTime: output.LastIncreaseDateTime !== undefined && output.LastIncreaseDateTime !== null
6134
+ LastIncreaseDateTime: output.LastIncreaseDateTime != null
6351
6135
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastIncreaseDateTime)))
6352
6136
  : undefined,
6353
6137
  NumberOfDecreasesToday: __expectLong(output.NumberOfDecreasesToday),
@@ -6377,36 +6161,28 @@ var deserializeAws_json1_0PutItemInputAttributeMap = function (output, context)
6377
6161
  };
6378
6162
  var deserializeAws_json1_0PutItemOutput = function (output, context) {
6379
6163
  return {
6380
- Attributes: output.Attributes !== undefined && output.Attributes !== null
6381
- ? deserializeAws_json1_0AttributeMap(output.Attributes, context)
6382
- : undefined,
6383
- ConsumedCapacity: output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null
6164
+ Attributes: output.Attributes != null ? deserializeAws_json1_0AttributeMap(output.Attributes, context) : undefined,
6165
+ ConsumedCapacity: output.ConsumedCapacity != null
6384
6166
  ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context)
6385
6167
  : undefined,
6386
- ItemCollectionMetrics: output.ItemCollectionMetrics !== undefined && output.ItemCollectionMetrics !== null
6168
+ ItemCollectionMetrics: output.ItemCollectionMetrics != null
6387
6169
  ? deserializeAws_json1_0ItemCollectionMetrics(output.ItemCollectionMetrics, context)
6388
6170
  : undefined,
6389
6171
  };
6390
6172
  };
6391
6173
  var deserializeAws_json1_0PutRequest = function (output, context) {
6392
6174
  return {
6393
- Item: output.Item !== undefined && output.Item !== null
6394
- ? deserializeAws_json1_0PutItemInputAttributeMap(output.Item, context)
6395
- : undefined,
6175
+ Item: output.Item != null ? deserializeAws_json1_0PutItemInputAttributeMap(output.Item, context) : undefined,
6396
6176
  };
6397
6177
  };
6398
6178
  var deserializeAws_json1_0QueryOutput = function (output, context) {
6399
6179
  return {
6400
- ConsumedCapacity: output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null
6180
+ ConsumedCapacity: output.ConsumedCapacity != null
6401
6181
  ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context)
6402
6182
  : undefined,
6403
6183
  Count: __expectInt32(output.Count),
6404
- Items: output.Items !== undefined && output.Items !== null
6405
- ? deserializeAws_json1_0ItemList(output.Items, context)
6406
- : undefined,
6407
- LastEvaluatedKey: output.LastEvaluatedKey !== undefined && output.LastEvaluatedKey !== null
6408
- ? deserializeAws_json1_0Key(output.LastEvaluatedKey, context)
6409
- : undefined,
6184
+ Items: output.Items != null ? deserializeAws_json1_0ItemList(output.Items, context) : undefined,
6185
+ LastEvaluatedKey: output.LastEvaluatedKey != null ? deserializeAws_json1_0Key(output.LastEvaluatedKey, context) : undefined,
6410
6186
  ScannedCount: __expectInt32(output.ScannedCount),
6411
6187
  };
6412
6188
  };
@@ -6422,16 +6198,14 @@ var deserializeAws_json1_0ReplicaAlreadyExistsException = function (output, cont
6422
6198
  };
6423
6199
  var deserializeAws_json1_0ReplicaAutoScalingDescription = function (output, context) {
6424
6200
  return {
6425
- GlobalSecondaryIndexes: output.GlobalSecondaryIndexes !== undefined && output.GlobalSecondaryIndexes !== null
6201
+ GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null
6426
6202
  ? deserializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingDescriptionList(output.GlobalSecondaryIndexes, context)
6427
6203
  : undefined,
6428
6204
  RegionName: __expectString(output.RegionName),
6429
- ReplicaProvisionedReadCapacityAutoScalingSettings: output.ReplicaProvisionedReadCapacityAutoScalingSettings !== undefined &&
6430
- output.ReplicaProvisionedReadCapacityAutoScalingSettings !== null
6205
+ ReplicaProvisionedReadCapacityAutoScalingSettings: output.ReplicaProvisionedReadCapacityAutoScalingSettings != null
6431
6206
  ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ReplicaProvisionedReadCapacityAutoScalingSettings, context)
6432
6207
  : undefined,
6433
- ReplicaProvisionedWriteCapacityAutoScalingSettings: output.ReplicaProvisionedWriteCapacityAutoScalingSettings !== undefined &&
6434
- output.ReplicaProvisionedWriteCapacityAutoScalingSettings !== null
6208
+ ReplicaProvisionedWriteCapacityAutoScalingSettings: output.ReplicaProvisionedWriteCapacityAutoScalingSettings != null
6435
6209
  ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ReplicaProvisionedWriteCapacityAutoScalingSettings, context)
6436
6210
  : undefined,
6437
6211
  ReplicaStatus: __expectString(output.ReplicaStatus),
@@ -6450,21 +6224,21 @@ var deserializeAws_json1_0ReplicaAutoScalingDescriptionList = function (output,
6450
6224
  };
6451
6225
  var deserializeAws_json1_0ReplicaDescription = function (output, context) {
6452
6226
  return {
6453
- GlobalSecondaryIndexes: output.GlobalSecondaryIndexes !== undefined && output.GlobalSecondaryIndexes !== null
6227
+ GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null
6454
6228
  ? deserializeAws_json1_0ReplicaGlobalSecondaryIndexDescriptionList(output.GlobalSecondaryIndexes, context)
6455
6229
  : undefined,
6456
6230
  KMSMasterKeyId: __expectString(output.KMSMasterKeyId),
6457
- ProvisionedThroughputOverride: output.ProvisionedThroughputOverride !== undefined && output.ProvisionedThroughputOverride !== null
6231
+ ProvisionedThroughputOverride: output.ProvisionedThroughputOverride != null
6458
6232
  ? deserializeAws_json1_0ProvisionedThroughputOverride(output.ProvisionedThroughputOverride, context)
6459
6233
  : undefined,
6460
6234
  RegionName: __expectString(output.RegionName),
6461
- ReplicaInaccessibleDateTime: output.ReplicaInaccessibleDateTime !== undefined && output.ReplicaInaccessibleDateTime !== null
6235
+ ReplicaInaccessibleDateTime: output.ReplicaInaccessibleDateTime != null
6462
6236
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ReplicaInaccessibleDateTime)))
6463
6237
  : undefined,
6464
6238
  ReplicaStatus: __expectString(output.ReplicaStatus),
6465
6239
  ReplicaStatusDescription: __expectString(output.ReplicaStatusDescription),
6466
6240
  ReplicaStatusPercentProgress: __expectString(output.ReplicaStatusPercentProgress),
6467
- ReplicaTableClassSummary: output.ReplicaTableClassSummary !== undefined && output.ReplicaTableClassSummary !== null
6241
+ ReplicaTableClassSummary: output.ReplicaTableClassSummary != null
6468
6242
  ? deserializeAws_json1_0TableClassSummary(output.ReplicaTableClassSummary, context)
6469
6243
  : undefined,
6470
6244
  };
@@ -6484,12 +6258,10 @@ var deserializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingDescription = fu
6484
6258
  return {
6485
6259
  IndexName: __expectString(output.IndexName),
6486
6260
  IndexStatus: __expectString(output.IndexStatus),
6487
- ProvisionedReadCapacityAutoScalingSettings: output.ProvisionedReadCapacityAutoScalingSettings !== undefined &&
6488
- output.ProvisionedReadCapacityAutoScalingSettings !== null
6261
+ ProvisionedReadCapacityAutoScalingSettings: output.ProvisionedReadCapacityAutoScalingSettings != null
6489
6262
  ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ProvisionedReadCapacityAutoScalingSettings, context)
6490
6263
  : undefined,
6491
- ProvisionedWriteCapacityAutoScalingSettings: output.ProvisionedWriteCapacityAutoScalingSettings !== undefined &&
6492
- output.ProvisionedWriteCapacityAutoScalingSettings !== null
6264
+ ProvisionedWriteCapacityAutoScalingSettings: output.ProvisionedWriteCapacityAutoScalingSettings != null
6493
6265
  ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ProvisionedWriteCapacityAutoScalingSettings, context)
6494
6266
  : undefined,
6495
6267
  };
@@ -6508,7 +6280,7 @@ var deserializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingDescriptionList
6508
6280
  var deserializeAws_json1_0ReplicaGlobalSecondaryIndexDescription = function (output, context) {
6509
6281
  return {
6510
6282
  IndexName: __expectString(output.IndexName),
6511
- ProvisionedThroughputOverride: output.ProvisionedThroughputOverride !== undefined && output.ProvisionedThroughputOverride !== null
6283
+ ProvisionedThroughputOverride: output.ProvisionedThroughputOverride != null
6512
6284
  ? deserializeAws_json1_0ProvisionedThroughputOverride(output.ProvisionedThroughputOverride, context)
6513
6285
  : undefined,
6514
6286
  };
@@ -6528,13 +6300,11 @@ var deserializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsDescription = funct
6528
6300
  return {
6529
6301
  IndexName: __expectString(output.IndexName),
6530
6302
  IndexStatus: __expectString(output.IndexStatus),
6531
- ProvisionedReadCapacityAutoScalingSettings: output.ProvisionedReadCapacityAutoScalingSettings !== undefined &&
6532
- output.ProvisionedReadCapacityAutoScalingSettings !== null
6303
+ ProvisionedReadCapacityAutoScalingSettings: output.ProvisionedReadCapacityAutoScalingSettings != null
6533
6304
  ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ProvisionedReadCapacityAutoScalingSettings, context)
6534
6305
  : undefined,
6535
6306
  ProvisionedReadCapacityUnits: __expectLong(output.ProvisionedReadCapacityUnits),
6536
- ProvisionedWriteCapacityAutoScalingSettings: output.ProvisionedWriteCapacityAutoScalingSettings !== undefined &&
6537
- output.ProvisionedWriteCapacityAutoScalingSettings !== null
6307
+ ProvisionedWriteCapacityAutoScalingSettings: output.ProvisionedWriteCapacityAutoScalingSettings != null
6538
6308
  ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ProvisionedWriteCapacityAutoScalingSettings, context)
6539
6309
  : undefined,
6540
6310
  ProvisionedWriteCapacityUnits: __expectLong(output.ProvisionedWriteCapacityUnits),
@@ -6570,24 +6340,22 @@ var deserializeAws_json1_0ReplicaNotFoundException = function (output, context)
6570
6340
  var deserializeAws_json1_0ReplicaSettingsDescription = function (output, context) {
6571
6341
  return {
6572
6342
  RegionName: __expectString(output.RegionName),
6573
- ReplicaBillingModeSummary: output.ReplicaBillingModeSummary !== undefined && output.ReplicaBillingModeSummary !== null
6343
+ ReplicaBillingModeSummary: output.ReplicaBillingModeSummary != null
6574
6344
  ? deserializeAws_json1_0BillingModeSummary(output.ReplicaBillingModeSummary, context)
6575
6345
  : undefined,
6576
- ReplicaGlobalSecondaryIndexSettings: output.ReplicaGlobalSecondaryIndexSettings !== undefined && output.ReplicaGlobalSecondaryIndexSettings !== null
6346
+ ReplicaGlobalSecondaryIndexSettings: output.ReplicaGlobalSecondaryIndexSettings != null
6577
6347
  ? deserializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsDescriptionList(output.ReplicaGlobalSecondaryIndexSettings, context)
6578
6348
  : undefined,
6579
- ReplicaProvisionedReadCapacityAutoScalingSettings: output.ReplicaProvisionedReadCapacityAutoScalingSettings !== undefined &&
6580
- output.ReplicaProvisionedReadCapacityAutoScalingSettings !== null
6349
+ ReplicaProvisionedReadCapacityAutoScalingSettings: output.ReplicaProvisionedReadCapacityAutoScalingSettings != null
6581
6350
  ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ReplicaProvisionedReadCapacityAutoScalingSettings, context)
6582
6351
  : undefined,
6583
6352
  ReplicaProvisionedReadCapacityUnits: __expectLong(output.ReplicaProvisionedReadCapacityUnits),
6584
- ReplicaProvisionedWriteCapacityAutoScalingSettings: output.ReplicaProvisionedWriteCapacityAutoScalingSettings !== undefined &&
6585
- output.ReplicaProvisionedWriteCapacityAutoScalingSettings !== null
6353
+ ReplicaProvisionedWriteCapacityAutoScalingSettings: output.ReplicaProvisionedWriteCapacityAutoScalingSettings != null
6586
6354
  ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ReplicaProvisionedWriteCapacityAutoScalingSettings, context)
6587
6355
  : undefined,
6588
6356
  ReplicaProvisionedWriteCapacityUnits: __expectLong(output.ReplicaProvisionedWriteCapacityUnits),
6589
6357
  ReplicaStatus: __expectString(output.ReplicaStatus),
6590
- ReplicaTableClassSummary: output.ReplicaTableClassSummary !== undefined && output.ReplicaTableClassSummary !== null
6358
+ ReplicaTableClassSummary: output.ReplicaTableClassSummary != null
6591
6359
  ? deserializeAws_json1_0TableClassSummary(output.ReplicaTableClassSummary, context)
6592
6360
  : undefined,
6593
6361
  };
@@ -6620,7 +6388,7 @@ var deserializeAws_json1_0ResourceNotFoundException = function (output, context)
6620
6388
  };
6621
6389
  var deserializeAws_json1_0RestoreSummary = function (output, context) {
6622
6390
  return {
6623
- RestoreDateTime: output.RestoreDateTime !== undefined && output.RestoreDateTime !== null
6391
+ RestoreDateTime: output.RestoreDateTime != null
6624
6392
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.RestoreDateTime)))
6625
6393
  : undefined,
6626
6394
  RestoreInProgress: __expectBoolean(output.RestoreInProgress),
@@ -6630,30 +6398,26 @@ var deserializeAws_json1_0RestoreSummary = function (output, context) {
6630
6398
  };
6631
6399
  var deserializeAws_json1_0RestoreTableFromBackupOutput = function (output, context) {
6632
6400
  return {
6633
- TableDescription: output.TableDescription !== undefined && output.TableDescription !== null
6401
+ TableDescription: output.TableDescription != null
6634
6402
  ? deserializeAws_json1_0TableDescription(output.TableDescription, context)
6635
6403
  : undefined,
6636
6404
  };
6637
6405
  };
6638
6406
  var deserializeAws_json1_0RestoreTableToPointInTimeOutput = function (output, context) {
6639
6407
  return {
6640
- TableDescription: output.TableDescription !== undefined && output.TableDescription !== null
6408
+ TableDescription: output.TableDescription != null
6641
6409
  ? deserializeAws_json1_0TableDescription(output.TableDescription, context)
6642
6410
  : undefined,
6643
6411
  };
6644
6412
  };
6645
6413
  var deserializeAws_json1_0ScanOutput = function (output, context) {
6646
6414
  return {
6647
- ConsumedCapacity: output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null
6415
+ ConsumedCapacity: output.ConsumedCapacity != null
6648
6416
  ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context)
6649
6417
  : undefined,
6650
6418
  Count: __expectInt32(output.Count),
6651
- Items: output.Items !== undefined && output.Items !== null
6652
- ? deserializeAws_json1_0ItemList(output.Items, context)
6653
- : undefined,
6654
- LastEvaluatedKey: output.LastEvaluatedKey !== undefined && output.LastEvaluatedKey !== null
6655
- ? deserializeAws_json1_0Key(output.LastEvaluatedKey, context)
6656
- : undefined,
6419
+ Items: output.Items != null ? deserializeAws_json1_0ItemList(output.Items, context) : undefined,
6420
+ LastEvaluatedKey: output.LastEvaluatedKey != null ? deserializeAws_json1_0Key(output.LastEvaluatedKey, context) : undefined,
6657
6421
  ScannedCount: __expectInt32(output.ScannedCount),
6658
6422
  };
6659
6423
  };
@@ -6671,14 +6435,12 @@ var deserializeAws_json1_0SourceTableDetails = function (output, context) {
6671
6435
  return {
6672
6436
  BillingMode: __expectString(output.BillingMode),
6673
6437
  ItemCount: __expectLong(output.ItemCount),
6674
- KeySchema: output.KeySchema !== undefined && output.KeySchema !== null
6675
- ? deserializeAws_json1_0KeySchema(output.KeySchema, context)
6676
- : undefined,
6677
- ProvisionedThroughput: output.ProvisionedThroughput !== undefined && output.ProvisionedThroughput !== null
6438
+ KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : undefined,
6439
+ ProvisionedThroughput: output.ProvisionedThroughput != null
6678
6440
  ? deserializeAws_json1_0ProvisionedThroughput(output.ProvisionedThroughput, context)
6679
6441
  : undefined,
6680
6442
  TableArn: __expectString(output.TableArn),
6681
- TableCreationDateTime: output.TableCreationDateTime !== undefined && output.TableCreationDateTime !== null
6443
+ TableCreationDateTime: output.TableCreationDateTime != null
6682
6444
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.TableCreationDateTime)))
6683
6445
  : undefined,
6684
6446
  TableId: __expectString(output.TableId),
@@ -6688,26 +6450,24 @@ var deserializeAws_json1_0SourceTableDetails = function (output, context) {
6688
6450
  };
6689
6451
  var deserializeAws_json1_0SourceTableFeatureDetails = function (output, context) {
6690
6452
  return {
6691
- GlobalSecondaryIndexes: output.GlobalSecondaryIndexes !== undefined && output.GlobalSecondaryIndexes !== null
6453
+ GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null
6692
6454
  ? deserializeAws_json1_0GlobalSecondaryIndexes(output.GlobalSecondaryIndexes, context)
6693
6455
  : undefined,
6694
- LocalSecondaryIndexes: output.LocalSecondaryIndexes !== undefined && output.LocalSecondaryIndexes !== null
6456
+ LocalSecondaryIndexes: output.LocalSecondaryIndexes != null
6695
6457
  ? deserializeAws_json1_0LocalSecondaryIndexes(output.LocalSecondaryIndexes, context)
6696
6458
  : undefined,
6697
- SSEDescription: output.SSEDescription !== undefined && output.SSEDescription !== null
6698
- ? deserializeAws_json1_0SSEDescription(output.SSEDescription, context)
6699
- : undefined,
6700
- StreamDescription: output.StreamDescription !== undefined && output.StreamDescription !== null
6459
+ SSEDescription: output.SSEDescription != null ? deserializeAws_json1_0SSEDescription(output.SSEDescription, context) : undefined,
6460
+ StreamDescription: output.StreamDescription != null
6701
6461
  ? deserializeAws_json1_0StreamSpecification(output.StreamDescription, context)
6702
6462
  : undefined,
6703
- TimeToLiveDescription: output.TimeToLiveDescription !== undefined && output.TimeToLiveDescription !== null
6463
+ TimeToLiveDescription: output.TimeToLiveDescription != null
6704
6464
  ? deserializeAws_json1_0TimeToLiveDescription(output.TimeToLiveDescription, context)
6705
6465
  : undefined,
6706
6466
  };
6707
6467
  };
6708
6468
  var deserializeAws_json1_0SSEDescription = function (output, context) {
6709
6469
  return {
6710
- InaccessibleEncryptionDateTime: output.InaccessibleEncryptionDateTime !== undefined && output.InaccessibleEncryptionDateTime !== null
6470
+ InaccessibleEncryptionDateTime: output.InaccessibleEncryptionDateTime != null
6711
6471
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.InaccessibleEncryptionDateTime)))
6712
6472
  : undefined,
6713
6473
  KMSMasterKeyArn: __expectString(output.KMSMasterKeyArn),
@@ -6739,7 +6499,7 @@ var deserializeAws_json1_0TableAlreadyExistsException = function (output, contex
6739
6499
  };
6740
6500
  var deserializeAws_json1_0TableAutoScalingDescription = function (output, context) {
6741
6501
  return {
6742
- Replicas: output.Replicas !== undefined && output.Replicas !== null
6502
+ Replicas: output.Replicas != null
6743
6503
  ? deserializeAws_json1_0ReplicaAutoScalingDescriptionList(output.Replicas, context)
6744
6504
  : undefined,
6745
6505
  TableName: __expectString(output.TableName),
@@ -6748,7 +6508,7 @@ var deserializeAws_json1_0TableAutoScalingDescription = function (output, contex
6748
6508
  };
6749
6509
  var deserializeAws_json1_0TableClassSummary = function (output, context) {
6750
6510
  return {
6751
- LastUpdateDateTime: output.LastUpdateDateTime !== undefined && output.LastUpdateDateTime !== null
6511
+ LastUpdateDateTime: output.LastUpdateDateTime != null
6752
6512
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdateDateTime)))
6753
6513
  : undefined,
6754
6514
  TableClass: __expectString(output.TableClass),
@@ -6756,48 +6516,40 @@ var deserializeAws_json1_0TableClassSummary = function (output, context) {
6756
6516
  };
6757
6517
  var deserializeAws_json1_0TableDescription = function (output, context) {
6758
6518
  return {
6759
- ArchivalSummary: output.ArchivalSummary !== undefined && output.ArchivalSummary !== null
6519
+ ArchivalSummary: output.ArchivalSummary != null
6760
6520
  ? deserializeAws_json1_0ArchivalSummary(output.ArchivalSummary, context)
6761
6521
  : undefined,
6762
- AttributeDefinitions: output.AttributeDefinitions !== undefined && output.AttributeDefinitions !== null
6522
+ AttributeDefinitions: output.AttributeDefinitions != null
6763
6523
  ? deserializeAws_json1_0AttributeDefinitions(output.AttributeDefinitions, context)
6764
6524
  : undefined,
6765
- BillingModeSummary: output.BillingModeSummary !== undefined && output.BillingModeSummary !== null
6525
+ BillingModeSummary: output.BillingModeSummary != null
6766
6526
  ? deserializeAws_json1_0BillingModeSummary(output.BillingModeSummary, context)
6767
6527
  : undefined,
6768
- CreationDateTime: output.CreationDateTime !== undefined && output.CreationDateTime !== null
6528
+ CreationDateTime: output.CreationDateTime != null
6769
6529
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDateTime)))
6770
6530
  : undefined,
6771
- GlobalSecondaryIndexes: output.GlobalSecondaryIndexes !== undefined && output.GlobalSecondaryIndexes !== null
6531
+ GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null
6772
6532
  ? deserializeAws_json1_0GlobalSecondaryIndexDescriptionList(output.GlobalSecondaryIndexes, context)
6773
6533
  : undefined,
6774
6534
  GlobalTableVersion: __expectString(output.GlobalTableVersion),
6775
6535
  ItemCount: __expectLong(output.ItemCount),
6776
- KeySchema: output.KeySchema !== undefined && output.KeySchema !== null
6777
- ? deserializeAws_json1_0KeySchema(output.KeySchema, context)
6778
- : undefined,
6536
+ KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : undefined,
6779
6537
  LatestStreamArn: __expectString(output.LatestStreamArn),
6780
6538
  LatestStreamLabel: __expectString(output.LatestStreamLabel),
6781
- LocalSecondaryIndexes: output.LocalSecondaryIndexes !== undefined && output.LocalSecondaryIndexes !== null
6539
+ LocalSecondaryIndexes: output.LocalSecondaryIndexes != null
6782
6540
  ? deserializeAws_json1_0LocalSecondaryIndexDescriptionList(output.LocalSecondaryIndexes, context)
6783
6541
  : undefined,
6784
- ProvisionedThroughput: output.ProvisionedThroughput !== undefined && output.ProvisionedThroughput !== null
6542
+ ProvisionedThroughput: output.ProvisionedThroughput != null
6785
6543
  ? deserializeAws_json1_0ProvisionedThroughputDescription(output.ProvisionedThroughput, context)
6786
6544
  : undefined,
6787
- Replicas: output.Replicas !== undefined && output.Replicas !== null
6788
- ? deserializeAws_json1_0ReplicaDescriptionList(output.Replicas, context)
6789
- : undefined,
6790
- RestoreSummary: output.RestoreSummary !== undefined && output.RestoreSummary !== null
6791
- ? deserializeAws_json1_0RestoreSummary(output.RestoreSummary, context)
6792
- : undefined,
6793
- SSEDescription: output.SSEDescription !== undefined && output.SSEDescription !== null
6794
- ? deserializeAws_json1_0SSEDescription(output.SSEDescription, context)
6795
- : undefined,
6796
- StreamSpecification: output.StreamSpecification !== undefined && output.StreamSpecification !== null
6545
+ Replicas: output.Replicas != null ? deserializeAws_json1_0ReplicaDescriptionList(output.Replicas, context) : undefined,
6546
+ RestoreSummary: output.RestoreSummary != null ? deserializeAws_json1_0RestoreSummary(output.RestoreSummary, context) : undefined,
6547
+ SSEDescription: output.SSEDescription != null ? deserializeAws_json1_0SSEDescription(output.SSEDescription, context) : undefined,
6548
+ StreamSpecification: output.StreamSpecification != null
6797
6549
  ? deserializeAws_json1_0StreamSpecification(output.StreamSpecification, context)
6798
6550
  : undefined,
6799
6551
  TableArn: __expectString(output.TableArn),
6800
- TableClassSummary: output.TableClassSummary !== undefined && output.TableClassSummary !== null
6552
+ TableClassSummary: output.TableClassSummary != null
6801
6553
  ? deserializeAws_json1_0TableClassSummary(output.TableClassSummary, context)
6802
6554
  : undefined,
6803
6555
  TableId: __expectString(output.TableId),
@@ -6858,17 +6610,15 @@ var deserializeAws_json1_0TimeToLiveSpecification = function (output, context) {
6858
6610
  };
6859
6611
  var deserializeAws_json1_0TransactGetItemsOutput = function (output, context) {
6860
6612
  return {
6861
- ConsumedCapacity: output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null
6613
+ ConsumedCapacity: output.ConsumedCapacity != null
6862
6614
  ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context)
6863
6615
  : undefined,
6864
- Responses: output.Responses !== undefined && output.Responses !== null
6865
- ? deserializeAws_json1_0ItemResponseList(output.Responses, context)
6866
- : undefined,
6616
+ Responses: output.Responses != null ? deserializeAws_json1_0ItemResponseList(output.Responses, context) : undefined,
6867
6617
  };
6868
6618
  };
6869
6619
  var deserializeAws_json1_0TransactionCanceledException = function (output, context) {
6870
6620
  return {
6871
- CancellationReasons: output.CancellationReasons !== undefined && output.CancellationReasons !== null
6621
+ CancellationReasons: output.CancellationReasons != null
6872
6622
  ? deserializeAws_json1_0CancellationReasonList(output.CancellationReasons, context)
6873
6623
  : undefined,
6874
6624
  Message: __expectString(output.Message),
@@ -6886,17 +6636,17 @@ var deserializeAws_json1_0TransactionInProgressException = function (output, con
6886
6636
  };
6887
6637
  var deserializeAws_json1_0TransactWriteItemsOutput = function (output, context) {
6888
6638
  return {
6889
- ConsumedCapacity: output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null
6639
+ ConsumedCapacity: output.ConsumedCapacity != null
6890
6640
  ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context)
6891
6641
  : undefined,
6892
- ItemCollectionMetrics: output.ItemCollectionMetrics !== undefined && output.ItemCollectionMetrics !== null
6642
+ ItemCollectionMetrics: output.ItemCollectionMetrics != null
6893
6643
  ? deserializeAws_json1_0ItemCollectionMetricsPerTable(output.ItemCollectionMetrics, context)
6894
6644
  : undefined,
6895
6645
  };
6896
6646
  };
6897
6647
  var deserializeAws_json1_0UpdateContinuousBackupsOutput = function (output, context) {
6898
6648
  return {
6899
- ContinuousBackupsDescription: output.ContinuousBackupsDescription !== undefined && output.ContinuousBackupsDescription !== null
6649
+ ContinuousBackupsDescription: output.ContinuousBackupsDescription != null
6900
6650
  ? deserializeAws_json1_0ContinuousBackupsDescription(output.ContinuousBackupsDescription, context)
6901
6651
  : undefined,
6902
6652
  };
@@ -6910,7 +6660,7 @@ var deserializeAws_json1_0UpdateContributorInsightsOutput = function (output, co
6910
6660
  };
6911
6661
  var deserializeAws_json1_0UpdateGlobalTableOutput = function (output, context) {
6912
6662
  return {
6913
- GlobalTableDescription: output.GlobalTableDescription !== undefined && output.GlobalTableDescription !== null
6663
+ GlobalTableDescription: output.GlobalTableDescription != null
6914
6664
  ? deserializeAws_json1_0GlobalTableDescription(output.GlobalTableDescription, context)
6915
6665
  : undefined,
6916
6666
  };
@@ -6918,53 +6668,47 @@ var deserializeAws_json1_0UpdateGlobalTableOutput = function (output, context) {
6918
6668
  var deserializeAws_json1_0UpdateGlobalTableSettingsOutput = function (output, context) {
6919
6669
  return {
6920
6670
  GlobalTableName: __expectString(output.GlobalTableName),
6921
- ReplicaSettings: output.ReplicaSettings !== undefined && output.ReplicaSettings !== null
6671
+ ReplicaSettings: output.ReplicaSettings != null
6922
6672
  ? deserializeAws_json1_0ReplicaSettingsDescriptionList(output.ReplicaSettings, context)
6923
6673
  : undefined,
6924
6674
  };
6925
6675
  };
6926
6676
  var deserializeAws_json1_0UpdateItemOutput = function (output, context) {
6927
6677
  return {
6928
- Attributes: output.Attributes !== undefined && output.Attributes !== null
6929
- ? deserializeAws_json1_0AttributeMap(output.Attributes, context)
6930
- : undefined,
6931
- ConsumedCapacity: output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null
6678
+ Attributes: output.Attributes != null ? deserializeAws_json1_0AttributeMap(output.Attributes, context) : undefined,
6679
+ ConsumedCapacity: output.ConsumedCapacity != null
6932
6680
  ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context)
6933
6681
  : undefined,
6934
- ItemCollectionMetrics: output.ItemCollectionMetrics !== undefined && output.ItemCollectionMetrics !== null
6682
+ ItemCollectionMetrics: output.ItemCollectionMetrics != null
6935
6683
  ? deserializeAws_json1_0ItemCollectionMetrics(output.ItemCollectionMetrics, context)
6936
6684
  : undefined,
6937
6685
  };
6938
6686
  };
6939
6687
  var deserializeAws_json1_0UpdateTableOutput = function (output, context) {
6940
6688
  return {
6941
- TableDescription: output.TableDescription !== undefined && output.TableDescription !== null
6689
+ TableDescription: output.TableDescription != null
6942
6690
  ? deserializeAws_json1_0TableDescription(output.TableDescription, context)
6943
6691
  : undefined,
6944
6692
  };
6945
6693
  };
6946
6694
  var deserializeAws_json1_0UpdateTableReplicaAutoScalingOutput = function (output, context) {
6947
6695
  return {
6948
- TableAutoScalingDescription: output.TableAutoScalingDescription !== undefined && output.TableAutoScalingDescription !== null
6696
+ TableAutoScalingDescription: output.TableAutoScalingDescription != null
6949
6697
  ? deserializeAws_json1_0TableAutoScalingDescription(output.TableAutoScalingDescription, context)
6950
6698
  : undefined,
6951
6699
  };
6952
6700
  };
6953
6701
  var deserializeAws_json1_0UpdateTimeToLiveOutput = function (output, context) {
6954
6702
  return {
6955
- TimeToLiveSpecification: output.TimeToLiveSpecification !== undefined && output.TimeToLiveSpecification !== null
6703
+ TimeToLiveSpecification: output.TimeToLiveSpecification != null
6956
6704
  ? deserializeAws_json1_0TimeToLiveSpecification(output.TimeToLiveSpecification, context)
6957
6705
  : undefined,
6958
6706
  };
6959
6707
  };
6960
6708
  var deserializeAws_json1_0WriteRequest = function (output, context) {
6961
6709
  return {
6962
- DeleteRequest: output.DeleteRequest !== undefined && output.DeleteRequest !== null
6963
- ? deserializeAws_json1_0DeleteRequest(output.DeleteRequest, context)
6964
- : undefined,
6965
- PutRequest: output.PutRequest !== undefined && output.PutRequest !== null
6966
- ? deserializeAws_json1_0PutRequest(output.PutRequest, context)
6967
- : undefined,
6710
+ DeleteRequest: output.DeleteRequest != null ? deserializeAws_json1_0DeleteRequest(output.DeleteRequest, context) : undefined,
6711
+ PutRequest: output.PutRequest != null ? deserializeAws_json1_0PutRequest(output.PutRequest, context) : undefined,
6968
6712
  };
6969
6713
  };
6970
6714
  var deserializeAws_json1_0WriteRequests = function (output, context) {
@@ -7052,5 +6796,4 @@ var loadRestJsonErrorCode = function (output, data) {
7052
6796
  if (data["__type"] !== undefined) {
7053
6797
  return sanitizeErrorCode(data["__type"]);
7054
6798
  }
7055
- return "";
7056
6799
  };