@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.
@@ -527,8 +527,7 @@ const deserializeAws_json1_0BatchExecuteStatementCommandError = async (output, c
527
527
  body: await parseBody(output.body, context),
528
528
  };
529
529
  let response;
530
- let errorCode = "UnknownError";
531
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
530
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
532
531
  switch (errorCode) {
533
532
  case "InternalServerError":
534
533
  case "com.amazonaws.dynamodb#InternalServerError":
@@ -538,10 +537,12 @@ const deserializeAws_json1_0BatchExecuteStatementCommandError = async (output, c
538
537
  throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context);
539
538
  default:
540
539
  const parsedBody = parsedOutput.body;
540
+ const $metadata = deserializeMetadata(output);
541
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
541
542
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
542
- name: parsedBody.code || parsedBody.Code || errorCode,
543
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
543
544
  $fault: "client",
544
- $metadata: deserializeMetadata(output),
545
+ $metadata,
545
546
  });
546
547
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
547
548
  }
@@ -566,8 +567,7 @@ const deserializeAws_json1_0BatchGetItemCommandError = async (output, context) =
566
567
  body: await parseBody(output.body, context),
567
568
  };
568
569
  let response;
569
- let errorCode = "UnknownError";
570
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
570
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
571
571
  switch (errorCode) {
572
572
  case "InternalServerError":
573
573
  case "com.amazonaws.dynamodb#InternalServerError":
@@ -586,10 +586,12 @@ const deserializeAws_json1_0BatchGetItemCommandError = async (output, context) =
586
586
  throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
587
587
  default:
588
588
  const parsedBody = parsedOutput.body;
589
+ const $metadata = deserializeMetadata(output);
590
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
589
591
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
590
- name: parsedBody.code || parsedBody.Code || errorCode,
592
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
591
593
  $fault: "client",
592
- $metadata: deserializeMetadata(output),
594
+ $metadata,
593
595
  });
594
596
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
595
597
  }
@@ -614,8 +616,7 @@ const deserializeAws_json1_0BatchWriteItemCommandError = async (output, context)
614
616
  body: await parseBody(output.body, context),
615
617
  };
616
618
  let response;
617
- let errorCode = "UnknownError";
618
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
619
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
619
620
  switch (errorCode) {
620
621
  case "InternalServerError":
621
622
  case "com.amazonaws.dynamodb#InternalServerError":
@@ -637,10 +638,12 @@ const deserializeAws_json1_0BatchWriteItemCommandError = async (output, context)
637
638
  throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
638
639
  default:
639
640
  const parsedBody = parsedOutput.body;
641
+ const $metadata = deserializeMetadata(output);
642
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
640
643
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
641
- name: parsedBody.code || parsedBody.Code || errorCode,
644
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
642
645
  $fault: "client",
643
- $metadata: deserializeMetadata(output),
646
+ $metadata,
644
647
  });
645
648
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
646
649
  }
@@ -665,8 +668,7 @@ const deserializeAws_json1_0CreateBackupCommandError = async (output, context) =
665
668
  body: await parseBody(output.body, context),
666
669
  };
667
670
  let response;
668
- let errorCode = "UnknownError";
669
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
671
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
670
672
  switch (errorCode) {
671
673
  case "BackupInUseException":
672
674
  case "com.amazonaws.dynamodb#BackupInUseException":
@@ -691,10 +693,12 @@ const deserializeAws_json1_0CreateBackupCommandError = async (output, context) =
691
693
  throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context);
692
694
  default:
693
695
  const parsedBody = parsedOutput.body;
696
+ const $metadata = deserializeMetadata(output);
697
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
694
698
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
695
- name: parsedBody.code || parsedBody.Code || errorCode,
699
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
696
700
  $fault: "client",
697
- $metadata: deserializeMetadata(output),
701
+ $metadata,
698
702
  });
699
703
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
700
704
  }
@@ -719,8 +723,7 @@ const deserializeAws_json1_0CreateGlobalTableCommandError = async (output, conte
719
723
  body: await parseBody(output.body, context),
720
724
  };
721
725
  let response;
722
- let errorCode = "UnknownError";
723
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
726
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
724
727
  switch (errorCode) {
725
728
  case "GlobalTableAlreadyExistsException":
726
729
  case "com.amazonaws.dynamodb#GlobalTableAlreadyExistsException":
@@ -739,10 +742,12 @@ const deserializeAws_json1_0CreateGlobalTableCommandError = async (output, conte
739
742
  throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context);
740
743
  default:
741
744
  const parsedBody = parsedOutput.body;
745
+ const $metadata = deserializeMetadata(output);
746
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
742
747
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
743
- name: parsedBody.code || parsedBody.Code || errorCode,
748
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
744
749
  $fault: "client",
745
- $metadata: deserializeMetadata(output),
750
+ $metadata,
746
751
  });
747
752
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
748
753
  }
@@ -767,8 +772,7 @@ const deserializeAws_json1_0CreateTableCommandError = async (output, context) =>
767
772
  body: await parseBody(output.body, context),
768
773
  };
769
774
  let response;
770
- let errorCode = "UnknownError";
771
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
775
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
772
776
  switch (errorCode) {
773
777
  case "InternalServerError":
774
778
  case "com.amazonaws.dynamodb#InternalServerError":
@@ -784,10 +788,12 @@ const deserializeAws_json1_0CreateTableCommandError = async (output, context) =>
784
788
  throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context);
785
789
  default:
786
790
  const parsedBody = parsedOutput.body;
791
+ const $metadata = deserializeMetadata(output);
792
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
787
793
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
788
- name: parsedBody.code || parsedBody.Code || errorCode,
794
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
789
795
  $fault: "client",
790
- $metadata: deserializeMetadata(output),
796
+ $metadata,
791
797
  });
792
798
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
793
799
  }
@@ -812,8 +818,7 @@ const deserializeAws_json1_0DeleteBackupCommandError = async (output, context) =
812
818
  body: await parseBody(output.body, context),
813
819
  };
814
820
  let response;
815
- let errorCode = "UnknownError";
816
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
821
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
817
822
  switch (errorCode) {
818
823
  case "BackupInUseException":
819
824
  case "com.amazonaws.dynamodb#BackupInUseException":
@@ -832,10 +837,12 @@ const deserializeAws_json1_0DeleteBackupCommandError = async (output, context) =
832
837
  throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
833
838
  default:
834
839
  const parsedBody = parsedOutput.body;
840
+ const $metadata = deserializeMetadata(output);
841
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
835
842
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
836
- name: parsedBody.code || parsedBody.Code || errorCode,
843
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
837
844
  $fault: "client",
838
- $metadata: deserializeMetadata(output),
845
+ $metadata,
839
846
  });
840
847
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
841
848
  }
@@ -860,8 +867,7 @@ const deserializeAws_json1_0DeleteItemCommandError = async (output, context) =>
860
867
  body: await parseBody(output.body, context),
861
868
  };
862
869
  let response;
863
- let errorCode = "UnknownError";
864
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
870
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
865
871
  switch (errorCode) {
866
872
  case "ConditionalCheckFailedException":
867
873
  case "com.amazonaws.dynamodb#ConditionalCheckFailedException":
@@ -889,10 +895,12 @@ const deserializeAws_json1_0DeleteItemCommandError = async (output, context) =>
889
895
  throw await deserializeAws_json1_0TransactionConflictExceptionResponse(parsedOutput, context);
890
896
  default:
891
897
  const parsedBody = parsedOutput.body;
898
+ const $metadata = deserializeMetadata(output);
899
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
892
900
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
893
- name: parsedBody.code || parsedBody.Code || errorCode,
901
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
894
902
  $fault: "client",
895
- $metadata: deserializeMetadata(output),
903
+ $metadata,
896
904
  });
897
905
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
898
906
  }
@@ -917,8 +925,7 @@ const deserializeAws_json1_0DeleteTableCommandError = async (output, context) =>
917
925
  body: await parseBody(output.body, context),
918
926
  };
919
927
  let response;
920
- let errorCode = "UnknownError";
921
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
928
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
922
929
  switch (errorCode) {
923
930
  case "InternalServerError":
924
931
  case "com.amazonaws.dynamodb#InternalServerError":
@@ -937,10 +944,12 @@ const deserializeAws_json1_0DeleteTableCommandError = async (output, context) =>
937
944
  throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
938
945
  default:
939
946
  const parsedBody = parsedOutput.body;
947
+ const $metadata = deserializeMetadata(output);
948
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
940
949
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
941
- name: parsedBody.code || parsedBody.Code || errorCode,
950
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
942
951
  $fault: "client",
943
- $metadata: deserializeMetadata(output),
952
+ $metadata,
944
953
  });
945
954
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
946
955
  }
@@ -965,8 +974,7 @@ const deserializeAws_json1_0DescribeBackupCommandError = async (output, context)
965
974
  body: await parseBody(output.body, context),
966
975
  };
967
976
  let response;
968
- let errorCode = "UnknownError";
969
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
977
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
970
978
  switch (errorCode) {
971
979
  case "BackupNotFoundException":
972
980
  case "com.amazonaws.dynamodb#BackupNotFoundException":
@@ -979,10 +987,12 @@ const deserializeAws_json1_0DescribeBackupCommandError = async (output, context)
979
987
  throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
980
988
  default:
981
989
  const parsedBody = parsedOutput.body;
990
+ const $metadata = deserializeMetadata(output);
991
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
982
992
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
983
- name: parsedBody.code || parsedBody.Code || errorCode,
993
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
984
994
  $fault: "client",
985
- $metadata: deserializeMetadata(output),
995
+ $metadata,
986
996
  });
987
997
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
988
998
  }
@@ -1007,8 +1017,7 @@ const deserializeAws_json1_0DescribeContinuousBackupsCommandError = async (outpu
1007
1017
  body: await parseBody(output.body, context),
1008
1018
  };
1009
1019
  let response;
1010
- let errorCode = "UnknownError";
1011
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1020
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1012
1021
  switch (errorCode) {
1013
1022
  case "InternalServerError":
1014
1023
  case "com.amazonaws.dynamodb#InternalServerError":
@@ -1021,10 +1030,12 @@ const deserializeAws_json1_0DescribeContinuousBackupsCommandError = async (outpu
1021
1030
  throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context);
1022
1031
  default:
1023
1032
  const parsedBody = parsedOutput.body;
1033
+ const $metadata = deserializeMetadata(output);
1034
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1024
1035
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
1025
- name: parsedBody.code || parsedBody.Code || errorCode,
1036
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1026
1037
  $fault: "client",
1027
- $metadata: deserializeMetadata(output),
1038
+ $metadata,
1028
1039
  });
1029
1040
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1030
1041
  }
@@ -1049,8 +1060,7 @@ const deserializeAws_json1_0DescribeContributorInsightsCommandError = async (out
1049
1060
  body: await parseBody(output.body, context),
1050
1061
  };
1051
1062
  let response;
1052
- let errorCode = "UnknownError";
1053
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1063
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1054
1064
  switch (errorCode) {
1055
1065
  case "InternalServerError":
1056
1066
  case "com.amazonaws.dynamodb#InternalServerError":
@@ -1060,10 +1070,12 @@ const deserializeAws_json1_0DescribeContributorInsightsCommandError = async (out
1060
1070
  throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
1061
1071
  default:
1062
1072
  const parsedBody = parsedOutput.body;
1073
+ const $metadata = deserializeMetadata(output);
1074
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1063
1075
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
1064
- name: parsedBody.code || parsedBody.Code || errorCode,
1076
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1065
1077
  $fault: "client",
1066
- $metadata: deserializeMetadata(output),
1078
+ $metadata,
1067
1079
  });
1068
1080
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1069
1081
  }
@@ -1088,15 +1100,16 @@ const deserializeAws_json1_0DescribeEndpointsCommandError = async (output, conte
1088
1100
  body: await parseBody(output.body, context),
1089
1101
  };
1090
1102
  let response;
1091
- let errorCode = "UnknownError";
1092
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1103
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1093
1104
  switch (errorCode) {
1094
1105
  default:
1095
1106
  const parsedBody = parsedOutput.body;
1107
+ const $metadata = deserializeMetadata(output);
1108
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1096
1109
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
1097
- name: parsedBody.code || parsedBody.Code || errorCode,
1110
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1098
1111
  $fault: "client",
1099
- $metadata: deserializeMetadata(output),
1112
+ $metadata,
1100
1113
  });
1101
1114
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1102
1115
  }
@@ -1121,8 +1134,7 @@ const deserializeAws_json1_0DescribeExportCommandError = async (output, context)
1121
1134
  body: await parseBody(output.body, context),
1122
1135
  };
1123
1136
  let response;
1124
- let errorCode = "UnknownError";
1125
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1137
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1126
1138
  switch (errorCode) {
1127
1139
  case "ExportNotFoundException":
1128
1140
  case "com.amazonaws.dynamodb#ExportNotFoundException":
@@ -1135,10 +1147,12 @@ const deserializeAws_json1_0DescribeExportCommandError = async (output, context)
1135
1147
  throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
1136
1148
  default:
1137
1149
  const parsedBody = parsedOutput.body;
1150
+ const $metadata = deserializeMetadata(output);
1151
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1138
1152
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
1139
- name: parsedBody.code || parsedBody.Code || errorCode,
1153
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1140
1154
  $fault: "client",
1141
- $metadata: deserializeMetadata(output),
1155
+ $metadata,
1142
1156
  });
1143
1157
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1144
1158
  }
@@ -1163,8 +1177,7 @@ const deserializeAws_json1_0DescribeGlobalTableCommandError = async (output, con
1163
1177
  body: await parseBody(output.body, context),
1164
1178
  };
1165
1179
  let response;
1166
- let errorCode = "UnknownError";
1167
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1180
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1168
1181
  switch (errorCode) {
1169
1182
  case "GlobalTableNotFoundException":
1170
1183
  case "com.amazonaws.dynamodb#GlobalTableNotFoundException":
@@ -1177,10 +1190,12 @@ const deserializeAws_json1_0DescribeGlobalTableCommandError = async (output, con
1177
1190
  throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
1178
1191
  default:
1179
1192
  const parsedBody = parsedOutput.body;
1193
+ const $metadata = deserializeMetadata(output);
1194
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1180
1195
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
1181
- name: parsedBody.code || parsedBody.Code || errorCode,
1196
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1182
1197
  $fault: "client",
1183
- $metadata: deserializeMetadata(output),
1198
+ $metadata,
1184
1199
  });
1185
1200
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1186
1201
  }
@@ -1205,8 +1220,7 @@ const deserializeAws_json1_0DescribeGlobalTableSettingsCommandError = async (out
1205
1220
  body: await parseBody(output.body, context),
1206
1221
  };
1207
1222
  let response;
1208
- let errorCode = "UnknownError";
1209
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1223
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1210
1224
  switch (errorCode) {
1211
1225
  case "GlobalTableNotFoundException":
1212
1226
  case "com.amazonaws.dynamodb#GlobalTableNotFoundException":
@@ -1219,10 +1233,12 @@ const deserializeAws_json1_0DescribeGlobalTableSettingsCommandError = async (out
1219
1233
  throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
1220
1234
  default:
1221
1235
  const parsedBody = parsedOutput.body;
1236
+ const $metadata = deserializeMetadata(output);
1237
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1222
1238
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
1223
- name: parsedBody.code || parsedBody.Code || errorCode,
1239
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1224
1240
  $fault: "client",
1225
- $metadata: deserializeMetadata(output),
1241
+ $metadata,
1226
1242
  });
1227
1243
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1228
1244
  }
@@ -1247,8 +1263,7 @@ const deserializeAws_json1_0DescribeKinesisStreamingDestinationCommandError = as
1247
1263
  body: await parseBody(output.body, context),
1248
1264
  };
1249
1265
  let response;
1250
- let errorCode = "UnknownError";
1251
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1266
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1252
1267
  switch (errorCode) {
1253
1268
  case "InternalServerError":
1254
1269
  case "com.amazonaws.dynamodb#InternalServerError":
@@ -1261,10 +1276,12 @@ const deserializeAws_json1_0DescribeKinesisStreamingDestinationCommandError = as
1261
1276
  throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
1262
1277
  default:
1263
1278
  const parsedBody = parsedOutput.body;
1279
+ const $metadata = deserializeMetadata(output);
1280
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1264
1281
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
1265
- name: parsedBody.code || parsedBody.Code || errorCode,
1282
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1266
1283
  $fault: "client",
1267
- $metadata: deserializeMetadata(output),
1284
+ $metadata,
1268
1285
  });
1269
1286
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1270
1287
  }
@@ -1289,8 +1306,7 @@ const deserializeAws_json1_0DescribeLimitsCommandError = async (output, context)
1289
1306
  body: await parseBody(output.body, context),
1290
1307
  };
1291
1308
  let response;
1292
- let errorCode = "UnknownError";
1293
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1309
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1294
1310
  switch (errorCode) {
1295
1311
  case "InternalServerError":
1296
1312
  case "com.amazonaws.dynamodb#InternalServerError":
@@ -1300,10 +1316,12 @@ const deserializeAws_json1_0DescribeLimitsCommandError = async (output, context)
1300
1316
  throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
1301
1317
  default:
1302
1318
  const parsedBody = parsedOutput.body;
1319
+ const $metadata = deserializeMetadata(output);
1320
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1303
1321
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
1304
- name: parsedBody.code || parsedBody.Code || errorCode,
1322
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1305
1323
  $fault: "client",
1306
- $metadata: deserializeMetadata(output),
1324
+ $metadata,
1307
1325
  });
1308
1326
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1309
1327
  }
@@ -1328,8 +1346,7 @@ const deserializeAws_json1_0DescribeTableCommandError = async (output, context)
1328
1346
  body: await parseBody(output.body, context),
1329
1347
  };
1330
1348
  let response;
1331
- let errorCode = "UnknownError";
1332
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1349
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1333
1350
  switch (errorCode) {
1334
1351
  case "InternalServerError":
1335
1352
  case "com.amazonaws.dynamodb#InternalServerError":
@@ -1342,10 +1359,12 @@ const deserializeAws_json1_0DescribeTableCommandError = async (output, context)
1342
1359
  throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
1343
1360
  default:
1344
1361
  const parsedBody = parsedOutput.body;
1362
+ const $metadata = deserializeMetadata(output);
1363
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1345
1364
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
1346
- name: parsedBody.code || parsedBody.Code || errorCode,
1365
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1347
1366
  $fault: "client",
1348
- $metadata: deserializeMetadata(output),
1367
+ $metadata,
1349
1368
  });
1350
1369
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1351
1370
  }
@@ -1370,8 +1389,7 @@ const deserializeAws_json1_0DescribeTableReplicaAutoScalingCommandError = async
1370
1389
  body: await parseBody(output.body, context),
1371
1390
  };
1372
1391
  let response;
1373
- let errorCode = "UnknownError";
1374
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1392
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1375
1393
  switch (errorCode) {
1376
1394
  case "InternalServerError":
1377
1395
  case "com.amazonaws.dynamodb#InternalServerError":
@@ -1381,10 +1399,12 @@ const deserializeAws_json1_0DescribeTableReplicaAutoScalingCommandError = async
1381
1399
  throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
1382
1400
  default:
1383
1401
  const parsedBody = parsedOutput.body;
1402
+ const $metadata = deserializeMetadata(output);
1403
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1384
1404
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
1385
- name: parsedBody.code || parsedBody.Code || errorCode,
1405
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1386
1406
  $fault: "client",
1387
- $metadata: deserializeMetadata(output),
1407
+ $metadata,
1388
1408
  });
1389
1409
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1390
1410
  }
@@ -1409,8 +1429,7 @@ const deserializeAws_json1_0DescribeTimeToLiveCommandError = async (output, cont
1409
1429
  body: await parseBody(output.body, context),
1410
1430
  };
1411
1431
  let response;
1412
- let errorCode = "UnknownError";
1413
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1432
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1414
1433
  switch (errorCode) {
1415
1434
  case "InternalServerError":
1416
1435
  case "com.amazonaws.dynamodb#InternalServerError":
@@ -1423,10 +1442,12 @@ const deserializeAws_json1_0DescribeTimeToLiveCommandError = async (output, cont
1423
1442
  throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
1424
1443
  default:
1425
1444
  const parsedBody = parsedOutput.body;
1445
+ const $metadata = deserializeMetadata(output);
1446
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1426
1447
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
1427
- name: parsedBody.code || parsedBody.Code || errorCode,
1448
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1428
1449
  $fault: "client",
1429
- $metadata: deserializeMetadata(output),
1450
+ $metadata,
1430
1451
  });
1431
1452
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1432
1453
  }
@@ -1451,8 +1472,7 @@ const deserializeAws_json1_0DisableKinesisStreamingDestinationCommandError = asy
1451
1472
  body: await parseBody(output.body, context),
1452
1473
  };
1453
1474
  let response;
1454
- let errorCode = "UnknownError";
1455
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1475
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1456
1476
  switch (errorCode) {
1457
1477
  case "InternalServerError":
1458
1478
  case "com.amazonaws.dynamodb#InternalServerError":
@@ -1471,10 +1491,12 @@ const deserializeAws_json1_0DisableKinesisStreamingDestinationCommandError = asy
1471
1491
  throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
1472
1492
  default:
1473
1493
  const parsedBody = parsedOutput.body;
1494
+ const $metadata = deserializeMetadata(output);
1495
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1474
1496
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
1475
- name: parsedBody.code || parsedBody.Code || errorCode,
1497
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1476
1498
  $fault: "client",
1477
- $metadata: deserializeMetadata(output),
1499
+ $metadata,
1478
1500
  });
1479
1501
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1480
1502
  }
@@ -1499,8 +1521,7 @@ const deserializeAws_json1_0EnableKinesisStreamingDestinationCommandError = asyn
1499
1521
  body: await parseBody(output.body, context),
1500
1522
  };
1501
1523
  let response;
1502
- let errorCode = "UnknownError";
1503
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1524
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1504
1525
  switch (errorCode) {
1505
1526
  case "InternalServerError":
1506
1527
  case "com.amazonaws.dynamodb#InternalServerError":
@@ -1519,10 +1540,12 @@ const deserializeAws_json1_0EnableKinesisStreamingDestinationCommandError = asyn
1519
1540
  throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
1520
1541
  default:
1521
1542
  const parsedBody = parsedOutput.body;
1543
+ const $metadata = deserializeMetadata(output);
1544
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1522
1545
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
1523
- name: parsedBody.code || parsedBody.Code || errorCode,
1546
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1524
1547
  $fault: "client",
1525
- $metadata: deserializeMetadata(output),
1548
+ $metadata,
1526
1549
  });
1527
1550
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1528
1551
  }
@@ -1547,8 +1570,7 @@ const deserializeAws_json1_0ExecuteStatementCommandError = async (output, contex
1547
1570
  body: await parseBody(output.body, context),
1548
1571
  };
1549
1572
  let response;
1550
- let errorCode = "UnknownError";
1551
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1573
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1552
1574
  switch (errorCode) {
1553
1575
  case "ConditionalCheckFailedException":
1554
1576
  case "com.amazonaws.dynamodb#ConditionalCheckFailedException":
@@ -1576,10 +1598,12 @@ const deserializeAws_json1_0ExecuteStatementCommandError = async (output, contex
1576
1598
  throw await deserializeAws_json1_0TransactionConflictExceptionResponse(parsedOutput, context);
1577
1599
  default:
1578
1600
  const parsedBody = parsedOutput.body;
1601
+ const $metadata = deserializeMetadata(output);
1602
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1579
1603
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
1580
- name: parsedBody.code || parsedBody.Code || errorCode,
1604
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1581
1605
  $fault: "client",
1582
- $metadata: deserializeMetadata(output),
1606
+ $metadata,
1583
1607
  });
1584
1608
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1585
1609
  }
@@ -1604,8 +1628,7 @@ const deserializeAws_json1_0ExecuteTransactionCommandError = async (output, cont
1604
1628
  body: await parseBody(output.body, context),
1605
1629
  };
1606
1630
  let response;
1607
- let errorCode = "UnknownError";
1608
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1631
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1609
1632
  switch (errorCode) {
1610
1633
  case "IdempotentParameterMismatchException":
1611
1634
  case "com.amazonaws.dynamodb#IdempotentParameterMismatchException":
@@ -1630,10 +1653,12 @@ const deserializeAws_json1_0ExecuteTransactionCommandError = async (output, cont
1630
1653
  throw await deserializeAws_json1_0TransactionInProgressExceptionResponse(parsedOutput, context);
1631
1654
  default:
1632
1655
  const parsedBody = parsedOutput.body;
1656
+ const $metadata = deserializeMetadata(output);
1657
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1633
1658
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
1634
- name: parsedBody.code || parsedBody.Code || errorCode,
1659
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1635
1660
  $fault: "client",
1636
- $metadata: deserializeMetadata(output),
1661
+ $metadata,
1637
1662
  });
1638
1663
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1639
1664
  }
@@ -1658,8 +1683,7 @@ const deserializeAws_json1_0ExportTableToPointInTimeCommandError = async (output
1658
1683
  body: await parseBody(output.body, context),
1659
1684
  };
1660
1685
  let response;
1661
- let errorCode = "UnknownError";
1662
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1686
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1663
1687
  switch (errorCode) {
1664
1688
  case "ExportConflictException":
1665
1689
  case "com.amazonaws.dynamodb#ExportConflictException":
@@ -1681,10 +1705,12 @@ const deserializeAws_json1_0ExportTableToPointInTimeCommandError = async (output
1681
1705
  throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context);
1682
1706
  default:
1683
1707
  const parsedBody = parsedOutput.body;
1708
+ const $metadata = deserializeMetadata(output);
1709
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1684
1710
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
1685
- name: parsedBody.code || parsedBody.Code || errorCode,
1711
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1686
1712
  $fault: "client",
1687
- $metadata: deserializeMetadata(output),
1713
+ $metadata,
1688
1714
  });
1689
1715
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1690
1716
  }
@@ -1709,8 +1735,7 @@ const deserializeAws_json1_0GetItemCommandError = async (output, context) => {
1709
1735
  body: await parseBody(output.body, context),
1710
1736
  };
1711
1737
  let response;
1712
- let errorCode = "UnknownError";
1713
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1738
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1714
1739
  switch (errorCode) {
1715
1740
  case "InternalServerError":
1716
1741
  case "com.amazonaws.dynamodb#InternalServerError":
@@ -1729,10 +1754,12 @@ const deserializeAws_json1_0GetItemCommandError = async (output, context) => {
1729
1754
  throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
1730
1755
  default:
1731
1756
  const parsedBody = parsedOutput.body;
1757
+ const $metadata = deserializeMetadata(output);
1758
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1732
1759
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
1733
- name: parsedBody.code || parsedBody.Code || errorCode,
1760
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1734
1761
  $fault: "client",
1735
- $metadata: deserializeMetadata(output),
1762
+ $metadata,
1736
1763
  });
1737
1764
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1738
1765
  }
@@ -1757,8 +1784,7 @@ const deserializeAws_json1_0ListBackupsCommandError = async (output, context) =>
1757
1784
  body: await parseBody(output.body, context),
1758
1785
  };
1759
1786
  let response;
1760
- let errorCode = "UnknownError";
1761
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1787
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1762
1788
  switch (errorCode) {
1763
1789
  case "InternalServerError":
1764
1790
  case "com.amazonaws.dynamodb#InternalServerError":
@@ -1768,10 +1794,12 @@ const deserializeAws_json1_0ListBackupsCommandError = async (output, context) =>
1768
1794
  throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
1769
1795
  default:
1770
1796
  const parsedBody = parsedOutput.body;
1797
+ const $metadata = deserializeMetadata(output);
1798
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1771
1799
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
1772
- name: parsedBody.code || parsedBody.Code || errorCode,
1800
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1773
1801
  $fault: "client",
1774
- $metadata: deserializeMetadata(output),
1802
+ $metadata,
1775
1803
  });
1776
1804
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1777
1805
  }
@@ -1796,8 +1824,7 @@ const deserializeAws_json1_0ListContributorInsightsCommandError = async (output,
1796
1824
  body: await parseBody(output.body, context),
1797
1825
  };
1798
1826
  let response;
1799
- let errorCode = "UnknownError";
1800
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1827
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1801
1828
  switch (errorCode) {
1802
1829
  case "InternalServerError":
1803
1830
  case "com.amazonaws.dynamodb#InternalServerError":
@@ -1807,10 +1834,12 @@ const deserializeAws_json1_0ListContributorInsightsCommandError = async (output,
1807
1834
  throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
1808
1835
  default:
1809
1836
  const parsedBody = parsedOutput.body;
1837
+ const $metadata = deserializeMetadata(output);
1838
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1810
1839
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
1811
- name: parsedBody.code || parsedBody.Code || errorCode,
1840
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1812
1841
  $fault: "client",
1813
- $metadata: deserializeMetadata(output),
1842
+ $metadata,
1814
1843
  });
1815
1844
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1816
1845
  }
@@ -1835,8 +1864,7 @@ const deserializeAws_json1_0ListExportsCommandError = async (output, context) =>
1835
1864
  body: await parseBody(output.body, context),
1836
1865
  };
1837
1866
  let response;
1838
- let errorCode = "UnknownError";
1839
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1867
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1840
1868
  switch (errorCode) {
1841
1869
  case "InternalServerError":
1842
1870
  case "com.amazonaws.dynamodb#InternalServerError":
@@ -1846,10 +1874,12 @@ const deserializeAws_json1_0ListExportsCommandError = async (output, context) =>
1846
1874
  throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
1847
1875
  default:
1848
1876
  const parsedBody = parsedOutput.body;
1877
+ const $metadata = deserializeMetadata(output);
1878
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1849
1879
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
1850
- name: parsedBody.code || parsedBody.Code || errorCode,
1880
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1851
1881
  $fault: "client",
1852
- $metadata: deserializeMetadata(output),
1882
+ $metadata,
1853
1883
  });
1854
1884
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1855
1885
  }
@@ -1874,8 +1904,7 @@ const deserializeAws_json1_0ListGlobalTablesCommandError = async (output, contex
1874
1904
  body: await parseBody(output.body, context),
1875
1905
  };
1876
1906
  let response;
1877
- let errorCode = "UnknownError";
1878
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1907
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1879
1908
  switch (errorCode) {
1880
1909
  case "InternalServerError":
1881
1910
  case "com.amazonaws.dynamodb#InternalServerError":
@@ -1885,10 +1914,12 @@ const deserializeAws_json1_0ListGlobalTablesCommandError = async (output, contex
1885
1914
  throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
1886
1915
  default:
1887
1916
  const parsedBody = parsedOutput.body;
1917
+ const $metadata = deserializeMetadata(output);
1918
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1888
1919
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
1889
- name: parsedBody.code || parsedBody.Code || errorCode,
1920
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1890
1921
  $fault: "client",
1891
- $metadata: deserializeMetadata(output),
1922
+ $metadata,
1892
1923
  });
1893
1924
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1894
1925
  }
@@ -1913,8 +1944,7 @@ const deserializeAws_json1_0ListTablesCommandError = async (output, context) =>
1913
1944
  body: await parseBody(output.body, context),
1914
1945
  };
1915
1946
  let response;
1916
- let errorCode = "UnknownError";
1917
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1947
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1918
1948
  switch (errorCode) {
1919
1949
  case "InternalServerError":
1920
1950
  case "com.amazonaws.dynamodb#InternalServerError":
@@ -1924,10 +1954,12 @@ const deserializeAws_json1_0ListTablesCommandError = async (output, context) =>
1924
1954
  throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
1925
1955
  default:
1926
1956
  const parsedBody = parsedOutput.body;
1957
+ const $metadata = deserializeMetadata(output);
1958
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1927
1959
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
1928
- name: parsedBody.code || parsedBody.Code || errorCode,
1960
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1929
1961
  $fault: "client",
1930
- $metadata: deserializeMetadata(output),
1962
+ $metadata,
1931
1963
  });
1932
1964
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1933
1965
  }
@@ -1952,8 +1984,7 @@ const deserializeAws_json1_0ListTagsOfResourceCommandError = async (output, cont
1952
1984
  body: await parseBody(output.body, context),
1953
1985
  };
1954
1986
  let response;
1955
- let errorCode = "UnknownError";
1956
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1987
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1957
1988
  switch (errorCode) {
1958
1989
  case "InternalServerError":
1959
1990
  case "com.amazonaws.dynamodb#InternalServerError":
@@ -1966,10 +1997,12 @@ const deserializeAws_json1_0ListTagsOfResourceCommandError = async (output, cont
1966
1997
  throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
1967
1998
  default:
1968
1999
  const parsedBody = parsedOutput.body;
2000
+ const $metadata = deserializeMetadata(output);
2001
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1969
2002
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
1970
- name: parsedBody.code || parsedBody.Code || errorCode,
2003
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1971
2004
  $fault: "client",
1972
- $metadata: deserializeMetadata(output),
2005
+ $metadata,
1973
2006
  });
1974
2007
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1975
2008
  }
@@ -1994,8 +2027,7 @@ const deserializeAws_json1_0PutItemCommandError = async (output, context) => {
1994
2027
  body: await parseBody(output.body, context),
1995
2028
  };
1996
2029
  let response;
1997
- let errorCode = "UnknownError";
1998
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2030
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1999
2031
  switch (errorCode) {
2000
2032
  case "ConditionalCheckFailedException":
2001
2033
  case "com.amazonaws.dynamodb#ConditionalCheckFailedException":
@@ -2023,10 +2055,12 @@ const deserializeAws_json1_0PutItemCommandError = async (output, context) => {
2023
2055
  throw await deserializeAws_json1_0TransactionConflictExceptionResponse(parsedOutput, context);
2024
2056
  default:
2025
2057
  const parsedBody = parsedOutput.body;
2058
+ const $metadata = deserializeMetadata(output);
2059
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2026
2060
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
2027
- name: parsedBody.code || parsedBody.Code || errorCode,
2061
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2028
2062
  $fault: "client",
2029
- $metadata: deserializeMetadata(output),
2063
+ $metadata,
2030
2064
  });
2031
2065
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2032
2066
  }
@@ -2051,8 +2085,7 @@ const deserializeAws_json1_0QueryCommandError = async (output, context) => {
2051
2085
  body: await parseBody(output.body, context),
2052
2086
  };
2053
2087
  let response;
2054
- let errorCode = "UnknownError";
2055
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2088
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2056
2089
  switch (errorCode) {
2057
2090
  case "InternalServerError":
2058
2091
  case "com.amazonaws.dynamodb#InternalServerError":
@@ -2071,10 +2104,12 @@ const deserializeAws_json1_0QueryCommandError = async (output, context) => {
2071
2104
  throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
2072
2105
  default:
2073
2106
  const parsedBody = parsedOutput.body;
2107
+ const $metadata = deserializeMetadata(output);
2108
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2074
2109
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
2075
- name: parsedBody.code || parsedBody.Code || errorCode,
2110
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2076
2111
  $fault: "client",
2077
- $metadata: deserializeMetadata(output),
2112
+ $metadata,
2078
2113
  });
2079
2114
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2080
2115
  }
@@ -2099,8 +2134,7 @@ const deserializeAws_json1_0RestoreTableFromBackupCommandError = async (output,
2099
2134
  body: await parseBody(output.body, context),
2100
2135
  };
2101
2136
  let response;
2102
- let errorCode = "UnknownError";
2103
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2137
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2104
2138
  switch (errorCode) {
2105
2139
  case "BackupInUseException":
2106
2140
  case "com.amazonaws.dynamodb#BackupInUseException":
@@ -2125,10 +2159,12 @@ const deserializeAws_json1_0RestoreTableFromBackupCommandError = async (output,
2125
2159
  throw await deserializeAws_json1_0TableInUseExceptionResponse(parsedOutput, context);
2126
2160
  default:
2127
2161
  const parsedBody = parsedOutput.body;
2162
+ const $metadata = deserializeMetadata(output);
2163
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2128
2164
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
2129
- name: parsedBody.code || parsedBody.Code || errorCode,
2165
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2130
2166
  $fault: "client",
2131
- $metadata: deserializeMetadata(output),
2167
+ $metadata,
2132
2168
  });
2133
2169
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2134
2170
  }
@@ -2153,8 +2189,7 @@ const deserializeAws_json1_0RestoreTableToPointInTimeCommandError = async (outpu
2153
2189
  body: await parseBody(output.body, context),
2154
2190
  };
2155
2191
  let response;
2156
- let errorCode = "UnknownError";
2157
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2192
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2158
2193
  switch (errorCode) {
2159
2194
  case "InternalServerError":
2160
2195
  case "com.amazonaws.dynamodb#InternalServerError":
@@ -2182,10 +2217,12 @@ const deserializeAws_json1_0RestoreTableToPointInTimeCommandError = async (outpu
2182
2217
  throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context);
2183
2218
  default:
2184
2219
  const parsedBody = parsedOutput.body;
2220
+ const $metadata = deserializeMetadata(output);
2221
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2185
2222
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
2186
- name: parsedBody.code || parsedBody.Code || errorCode,
2223
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2187
2224
  $fault: "client",
2188
- $metadata: deserializeMetadata(output),
2225
+ $metadata,
2189
2226
  });
2190
2227
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2191
2228
  }
@@ -2210,8 +2247,7 @@ const deserializeAws_json1_0ScanCommandError = async (output, context) => {
2210
2247
  body: await parseBody(output.body, context),
2211
2248
  };
2212
2249
  let response;
2213
- let errorCode = "UnknownError";
2214
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2250
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2215
2251
  switch (errorCode) {
2216
2252
  case "InternalServerError":
2217
2253
  case "com.amazonaws.dynamodb#InternalServerError":
@@ -2230,10 +2266,12 @@ const deserializeAws_json1_0ScanCommandError = async (output, context) => {
2230
2266
  throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
2231
2267
  default:
2232
2268
  const parsedBody = parsedOutput.body;
2269
+ const $metadata = deserializeMetadata(output);
2270
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2233
2271
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
2234
- name: parsedBody.code || parsedBody.Code || errorCode,
2272
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2235
2273
  $fault: "client",
2236
- $metadata: deserializeMetadata(output),
2274
+ $metadata,
2237
2275
  });
2238
2276
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2239
2277
  }
@@ -2255,8 +2293,7 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
2255
2293
  body: await parseBody(output.body, context),
2256
2294
  };
2257
2295
  let response;
2258
- let errorCode = "UnknownError";
2259
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2296
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2260
2297
  switch (errorCode) {
2261
2298
  case "InternalServerError":
2262
2299
  case "com.amazonaws.dynamodb#InternalServerError":
@@ -2275,10 +2312,12 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
2275
2312
  throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
2276
2313
  default:
2277
2314
  const parsedBody = parsedOutput.body;
2315
+ const $metadata = deserializeMetadata(output);
2316
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2278
2317
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
2279
- name: parsedBody.code || parsedBody.Code || errorCode,
2318
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2280
2319
  $fault: "client",
2281
- $metadata: deserializeMetadata(output),
2320
+ $metadata,
2282
2321
  });
2283
2322
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2284
2323
  }
@@ -2303,8 +2342,7 @@ const deserializeAws_json1_0TransactGetItemsCommandError = async (output, contex
2303
2342
  body: await parseBody(output.body, context),
2304
2343
  };
2305
2344
  let response;
2306
- let errorCode = "UnknownError";
2307
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2345
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2308
2346
  switch (errorCode) {
2309
2347
  case "InternalServerError":
2310
2348
  case "com.amazonaws.dynamodb#InternalServerError":
@@ -2326,10 +2364,12 @@ const deserializeAws_json1_0TransactGetItemsCommandError = async (output, contex
2326
2364
  throw await deserializeAws_json1_0TransactionCanceledExceptionResponse(parsedOutput, context);
2327
2365
  default:
2328
2366
  const parsedBody = parsedOutput.body;
2367
+ const $metadata = deserializeMetadata(output);
2368
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2329
2369
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
2330
- name: parsedBody.code || parsedBody.Code || errorCode,
2370
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2331
2371
  $fault: "client",
2332
- $metadata: deserializeMetadata(output),
2372
+ $metadata,
2333
2373
  });
2334
2374
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2335
2375
  }
@@ -2354,8 +2394,7 @@ const deserializeAws_json1_0TransactWriteItemsCommandError = async (output, cont
2354
2394
  body: await parseBody(output.body, context),
2355
2395
  };
2356
2396
  let response;
2357
- let errorCode = "UnknownError";
2358
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2397
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2359
2398
  switch (errorCode) {
2360
2399
  case "IdempotentParameterMismatchException":
2361
2400
  case "com.amazonaws.dynamodb#IdempotentParameterMismatchException":
@@ -2383,10 +2422,12 @@ const deserializeAws_json1_0TransactWriteItemsCommandError = async (output, cont
2383
2422
  throw await deserializeAws_json1_0TransactionInProgressExceptionResponse(parsedOutput, context);
2384
2423
  default:
2385
2424
  const parsedBody = parsedOutput.body;
2425
+ const $metadata = deserializeMetadata(output);
2426
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2386
2427
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
2387
- name: parsedBody.code || parsedBody.Code || errorCode,
2428
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2388
2429
  $fault: "client",
2389
- $metadata: deserializeMetadata(output),
2430
+ $metadata,
2390
2431
  });
2391
2432
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2392
2433
  }
@@ -2408,8 +2449,7 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
2408
2449
  body: await parseBody(output.body, context),
2409
2450
  };
2410
2451
  let response;
2411
- let errorCode = "UnknownError";
2412
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2452
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2413
2453
  switch (errorCode) {
2414
2454
  case "InternalServerError":
2415
2455
  case "com.amazonaws.dynamodb#InternalServerError":
@@ -2428,10 +2468,12 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
2428
2468
  throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
2429
2469
  default:
2430
2470
  const parsedBody = parsedOutput.body;
2471
+ const $metadata = deserializeMetadata(output);
2472
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2431
2473
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
2432
- name: parsedBody.code || parsedBody.Code || errorCode,
2474
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2433
2475
  $fault: "client",
2434
- $metadata: deserializeMetadata(output),
2476
+ $metadata,
2435
2477
  });
2436
2478
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2437
2479
  }
@@ -2456,8 +2498,7 @@ const deserializeAws_json1_0UpdateContinuousBackupsCommandError = async (output,
2456
2498
  body: await parseBody(output.body, context),
2457
2499
  };
2458
2500
  let response;
2459
- let errorCode = "UnknownError";
2460
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2501
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2461
2502
  switch (errorCode) {
2462
2503
  case "ContinuousBackupsUnavailableException":
2463
2504
  case "com.amazonaws.dynamodb#ContinuousBackupsUnavailableException":
@@ -2473,10 +2514,12 @@ const deserializeAws_json1_0UpdateContinuousBackupsCommandError = async (output,
2473
2514
  throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context);
2474
2515
  default:
2475
2516
  const parsedBody = parsedOutput.body;
2517
+ const $metadata = deserializeMetadata(output);
2518
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2476
2519
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
2477
- name: parsedBody.code || parsedBody.Code || errorCode,
2520
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2478
2521
  $fault: "client",
2479
- $metadata: deserializeMetadata(output),
2522
+ $metadata,
2480
2523
  });
2481
2524
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2482
2525
  }
@@ -2501,8 +2544,7 @@ const deserializeAws_json1_0UpdateContributorInsightsCommandError = async (outpu
2501
2544
  body: await parseBody(output.body, context),
2502
2545
  };
2503
2546
  let response;
2504
- let errorCode = "UnknownError";
2505
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2547
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2506
2548
  switch (errorCode) {
2507
2549
  case "InternalServerError":
2508
2550
  case "com.amazonaws.dynamodb#InternalServerError":
@@ -2512,10 +2554,12 @@ const deserializeAws_json1_0UpdateContributorInsightsCommandError = async (outpu
2512
2554
  throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
2513
2555
  default:
2514
2556
  const parsedBody = parsedOutput.body;
2557
+ const $metadata = deserializeMetadata(output);
2558
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2515
2559
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
2516
- name: parsedBody.code || parsedBody.Code || errorCode,
2560
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2517
2561
  $fault: "client",
2518
- $metadata: deserializeMetadata(output),
2562
+ $metadata,
2519
2563
  });
2520
2564
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2521
2565
  }
@@ -2540,8 +2584,7 @@ const deserializeAws_json1_0UpdateGlobalTableCommandError = async (output, conte
2540
2584
  body: await parseBody(output.body, context),
2541
2585
  };
2542
2586
  let response;
2543
- let errorCode = "UnknownError";
2544
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2587
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2545
2588
  switch (errorCode) {
2546
2589
  case "GlobalTableNotFoundException":
2547
2590
  case "com.amazonaws.dynamodb#GlobalTableNotFoundException":
@@ -2563,10 +2606,12 @@ const deserializeAws_json1_0UpdateGlobalTableCommandError = async (output, conte
2563
2606
  throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context);
2564
2607
  default:
2565
2608
  const parsedBody = parsedOutput.body;
2609
+ const $metadata = deserializeMetadata(output);
2610
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2566
2611
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
2567
- name: parsedBody.code || parsedBody.Code || errorCode,
2612
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2568
2613
  $fault: "client",
2569
- $metadata: deserializeMetadata(output),
2614
+ $metadata,
2570
2615
  });
2571
2616
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2572
2617
  }
@@ -2591,8 +2636,7 @@ const deserializeAws_json1_0UpdateGlobalTableSettingsCommandError = async (outpu
2591
2636
  body: await parseBody(output.body, context),
2592
2637
  };
2593
2638
  let response;
2594
- let errorCode = "UnknownError";
2595
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2639
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2596
2640
  switch (errorCode) {
2597
2641
  case "GlobalTableNotFoundException":
2598
2642
  case "com.amazonaws.dynamodb#GlobalTableNotFoundException":
@@ -2617,10 +2661,12 @@ const deserializeAws_json1_0UpdateGlobalTableSettingsCommandError = async (outpu
2617
2661
  throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context);
2618
2662
  default:
2619
2663
  const parsedBody = parsedOutput.body;
2664
+ const $metadata = deserializeMetadata(output);
2665
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2620
2666
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
2621
- name: parsedBody.code || parsedBody.Code || errorCode,
2667
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2622
2668
  $fault: "client",
2623
- $metadata: deserializeMetadata(output),
2669
+ $metadata,
2624
2670
  });
2625
2671
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2626
2672
  }
@@ -2645,8 +2691,7 @@ const deserializeAws_json1_0UpdateItemCommandError = async (output, context) =>
2645
2691
  body: await parseBody(output.body, context),
2646
2692
  };
2647
2693
  let response;
2648
- let errorCode = "UnknownError";
2649
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2694
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2650
2695
  switch (errorCode) {
2651
2696
  case "ConditionalCheckFailedException":
2652
2697
  case "com.amazonaws.dynamodb#ConditionalCheckFailedException":
@@ -2674,10 +2719,12 @@ const deserializeAws_json1_0UpdateItemCommandError = async (output, context) =>
2674
2719
  throw await deserializeAws_json1_0TransactionConflictExceptionResponse(parsedOutput, context);
2675
2720
  default:
2676
2721
  const parsedBody = parsedOutput.body;
2722
+ const $metadata = deserializeMetadata(output);
2723
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2677
2724
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
2678
- name: parsedBody.code || parsedBody.Code || errorCode,
2725
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2679
2726
  $fault: "client",
2680
- $metadata: deserializeMetadata(output),
2727
+ $metadata,
2681
2728
  });
2682
2729
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2683
2730
  }
@@ -2702,8 +2749,7 @@ const deserializeAws_json1_0UpdateTableCommandError = async (output, context) =>
2702
2749
  body: await parseBody(output.body, context),
2703
2750
  };
2704
2751
  let response;
2705
- let errorCode = "UnknownError";
2706
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2752
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2707
2753
  switch (errorCode) {
2708
2754
  case "InternalServerError":
2709
2755
  case "com.amazonaws.dynamodb#InternalServerError":
@@ -2722,10 +2768,12 @@ const deserializeAws_json1_0UpdateTableCommandError = async (output, context) =>
2722
2768
  throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
2723
2769
  default:
2724
2770
  const parsedBody = parsedOutput.body;
2771
+ const $metadata = deserializeMetadata(output);
2772
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2725
2773
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
2726
- name: parsedBody.code || parsedBody.Code || errorCode,
2774
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2727
2775
  $fault: "client",
2728
- $metadata: deserializeMetadata(output),
2776
+ $metadata,
2729
2777
  });
2730
2778
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2731
2779
  }
@@ -2750,8 +2798,7 @@ const deserializeAws_json1_0UpdateTableReplicaAutoScalingCommandError = async (o
2750
2798
  body: await parseBody(output.body, context),
2751
2799
  };
2752
2800
  let response;
2753
- let errorCode = "UnknownError";
2754
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2801
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2755
2802
  switch (errorCode) {
2756
2803
  case "InternalServerError":
2757
2804
  case "com.amazonaws.dynamodb#InternalServerError":
@@ -2767,10 +2814,12 @@ const deserializeAws_json1_0UpdateTableReplicaAutoScalingCommandError = async (o
2767
2814
  throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
2768
2815
  default:
2769
2816
  const parsedBody = parsedOutput.body;
2817
+ const $metadata = deserializeMetadata(output);
2818
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2770
2819
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
2771
- name: parsedBody.code || parsedBody.Code || errorCode,
2820
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2772
2821
  $fault: "client",
2773
- $metadata: deserializeMetadata(output),
2822
+ $metadata,
2774
2823
  });
2775
2824
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2776
2825
  }
@@ -2795,8 +2844,7 @@ const deserializeAws_json1_0UpdateTimeToLiveCommandError = async (output, contex
2795
2844
  body: await parseBody(output.body, context),
2796
2845
  };
2797
2846
  let response;
2798
- let errorCode = "UnknownError";
2799
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2847
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2800
2848
  switch (errorCode) {
2801
2849
  case "InternalServerError":
2802
2850
  case "com.amazonaws.dynamodb#InternalServerError":
@@ -2815,10 +2863,12 @@ const deserializeAws_json1_0UpdateTimeToLiveCommandError = async (output, contex
2815
2863
  throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
2816
2864
  default:
2817
2865
  const parsedBody = parsedOutput.body;
2866
+ const $metadata = deserializeMetadata(output);
2867
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2818
2868
  response = new DynamoDBServiceException_1.DynamoDBServiceException({
2819
- name: parsedBody.code || parsedBody.Code || errorCode,
2869
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2820
2870
  $fault: "client",
2821
- $metadata: deserializeMetadata(output),
2871
+ $metadata,
2822
2872
  });
2823
2873
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2824
2874
  }
@@ -3095,8 +3145,8 @@ const deserializeAws_json1_0TransactionInProgressExceptionResponse = async (pars
3095
3145
  };
3096
3146
  const serializeAws_json1_0AttributeDefinition = (input, context) => {
3097
3147
  return {
3098
- ...(input.AttributeName !== undefined && input.AttributeName !== null && { AttributeName: input.AttributeName }),
3099
- ...(input.AttributeType !== undefined && input.AttributeType !== null && { AttributeType: input.AttributeType }),
3148
+ ...(input.AttributeName != null && { AttributeName: input.AttributeName }),
3149
+ ...(input.AttributeType != null && { AttributeType: input.AttributeType }),
3100
3150
  };
3101
3151
  };
3102
3152
  const serializeAws_json1_0AttributeDefinitions = (input, context) => {
@@ -3157,62 +3207,49 @@ const serializeAws_json1_0AttributeValueList = (input, context) => {
3157
3207
  };
3158
3208
  const serializeAws_json1_0AttributeValueUpdate = (input, context) => {
3159
3209
  return {
3160
- ...(input.Action !== undefined && input.Action !== null && { Action: input.Action }),
3161
- ...(input.Value !== undefined &&
3162
- input.Value !== null && { Value: serializeAws_json1_0AttributeValue(input.Value, context) }),
3210
+ ...(input.Action != null && { Action: input.Action }),
3211
+ ...(input.Value != null && { Value: serializeAws_json1_0AttributeValue(input.Value, context) }),
3163
3212
  };
3164
3213
  };
3165
3214
  const serializeAws_json1_0AutoScalingPolicyUpdate = (input, context) => {
3166
3215
  return {
3167
- ...(input.PolicyName !== undefined && input.PolicyName !== null && { PolicyName: input.PolicyName }),
3168
- ...(input.TargetTrackingScalingPolicyConfiguration !== undefined &&
3169
- input.TargetTrackingScalingPolicyConfiguration !== null && {
3216
+ ...(input.PolicyName != null && { PolicyName: input.PolicyName }),
3217
+ ...(input.TargetTrackingScalingPolicyConfiguration != null && {
3170
3218
  TargetTrackingScalingPolicyConfiguration: serializeAws_json1_0AutoScalingTargetTrackingScalingPolicyConfigurationUpdate(input.TargetTrackingScalingPolicyConfiguration, context),
3171
3219
  }),
3172
3220
  };
3173
3221
  };
3174
3222
  const serializeAws_json1_0AutoScalingSettingsUpdate = (input, context) => {
3175
3223
  return {
3176
- ...(input.AutoScalingDisabled !== undefined &&
3177
- input.AutoScalingDisabled !== null && { AutoScalingDisabled: input.AutoScalingDisabled }),
3178
- ...(input.AutoScalingRoleArn !== undefined &&
3179
- input.AutoScalingRoleArn !== null && { AutoScalingRoleArn: input.AutoScalingRoleArn }),
3180
- ...(input.MaximumUnits !== undefined && input.MaximumUnits !== null && { MaximumUnits: input.MaximumUnits }),
3181
- ...(input.MinimumUnits !== undefined && input.MinimumUnits !== null && { MinimumUnits: input.MinimumUnits }),
3182
- ...(input.ScalingPolicyUpdate !== undefined &&
3183
- input.ScalingPolicyUpdate !== null && {
3224
+ ...(input.AutoScalingDisabled != null && { AutoScalingDisabled: input.AutoScalingDisabled }),
3225
+ ...(input.AutoScalingRoleArn != null && { AutoScalingRoleArn: input.AutoScalingRoleArn }),
3226
+ ...(input.MaximumUnits != null && { MaximumUnits: input.MaximumUnits }),
3227
+ ...(input.MinimumUnits != null && { MinimumUnits: input.MinimumUnits }),
3228
+ ...(input.ScalingPolicyUpdate != null && {
3184
3229
  ScalingPolicyUpdate: serializeAws_json1_0AutoScalingPolicyUpdate(input.ScalingPolicyUpdate, context),
3185
3230
  }),
3186
3231
  };
3187
3232
  };
3188
3233
  const serializeAws_json1_0AutoScalingTargetTrackingScalingPolicyConfigurationUpdate = (input, context) => {
3189
3234
  return {
3190
- ...(input.DisableScaleIn !== undefined &&
3191
- input.DisableScaleIn !== null && { DisableScaleIn: input.DisableScaleIn }),
3192
- ...(input.ScaleInCooldown !== undefined &&
3193
- input.ScaleInCooldown !== null && { ScaleInCooldown: input.ScaleInCooldown }),
3194
- ...(input.ScaleOutCooldown !== undefined &&
3195
- input.ScaleOutCooldown !== null && { ScaleOutCooldown: input.ScaleOutCooldown }),
3196
- ...(input.TargetValue !== undefined &&
3197
- input.TargetValue !== null && { TargetValue: (0, smithy_client_1.serializeFloat)(input.TargetValue) }),
3235
+ ...(input.DisableScaleIn != null && { DisableScaleIn: input.DisableScaleIn }),
3236
+ ...(input.ScaleInCooldown != null && { ScaleInCooldown: input.ScaleInCooldown }),
3237
+ ...(input.ScaleOutCooldown != null && { ScaleOutCooldown: input.ScaleOutCooldown }),
3238
+ ...(input.TargetValue != null && { TargetValue: (0, smithy_client_1.serializeFloat)(input.TargetValue) }),
3198
3239
  };
3199
3240
  };
3200
3241
  const serializeAws_json1_0BatchExecuteStatementInput = (input, context) => {
3201
3242
  return {
3202
- ...(input.ReturnConsumedCapacity !== undefined &&
3203
- input.ReturnConsumedCapacity !== null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
3204
- ...(input.Statements !== undefined &&
3205
- input.Statements !== null && { Statements: serializeAws_json1_0PartiQLBatchRequest(input.Statements, context) }),
3243
+ ...(input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
3244
+ ...(input.Statements != null && { Statements: serializeAws_json1_0PartiQLBatchRequest(input.Statements, context) }),
3206
3245
  };
3207
3246
  };
3208
3247
  const serializeAws_json1_0BatchGetItemInput = (input, context) => {
3209
3248
  return {
3210
- ...(input.RequestItems !== undefined &&
3211
- input.RequestItems !== null && {
3249
+ ...(input.RequestItems != null && {
3212
3250
  RequestItems: serializeAws_json1_0BatchGetRequestMap(input.RequestItems, context),
3213
3251
  }),
3214
- ...(input.ReturnConsumedCapacity !== undefined &&
3215
- input.ReturnConsumedCapacity !== null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
3252
+ ...(input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
3216
3253
  };
3217
3254
  };
3218
3255
  const serializeAws_json1_0BatchGetRequestMap = (input, context) => {
@@ -3228,25 +3265,22 @@ const serializeAws_json1_0BatchGetRequestMap = (input, context) => {
3228
3265
  };
3229
3266
  const serializeAws_json1_0BatchStatementRequest = (input, context) => {
3230
3267
  return {
3231
- ...(input.ConsistentRead !== undefined &&
3232
- input.ConsistentRead !== null && { ConsistentRead: input.ConsistentRead }),
3233
- ...(input.Parameters !== undefined &&
3234
- input.Parameters !== null && {
3268
+ ...(input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead }),
3269
+ ...(input.Parameters != null && {
3235
3270
  Parameters: serializeAws_json1_0PreparedStatementParameters(input.Parameters, context),
3236
3271
  }),
3237
- ...(input.Statement !== undefined && input.Statement !== null && { Statement: input.Statement }),
3272
+ ...(input.Statement != null && { Statement: input.Statement }),
3238
3273
  };
3239
3274
  };
3240
3275
  const serializeAws_json1_0BatchWriteItemInput = (input, context) => {
3241
3276
  return {
3242
- ...(input.RequestItems !== undefined &&
3243
- input.RequestItems !== null && {
3277
+ ...(input.RequestItems != null && {
3244
3278
  RequestItems: serializeAws_json1_0BatchWriteItemRequestMap(input.RequestItems, context),
3245
3279
  }),
3246
- ...(input.ReturnConsumedCapacity !== undefined &&
3247
- input.ReturnConsumedCapacity !== null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
3248
- ...(input.ReturnItemCollectionMetrics !== undefined &&
3249
- input.ReturnItemCollectionMetrics !== null && { ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics }),
3280
+ ...(input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
3281
+ ...(input.ReturnItemCollectionMetrics != null && {
3282
+ ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics,
3283
+ }),
3250
3284
  };
3251
3285
  };
3252
3286
  const serializeAws_json1_0BatchWriteItemRequestMap = (input, context) => {
@@ -3272,208 +3306,177 @@ const serializeAws_json1_0BinarySetAttributeValue = (input, context) => {
3272
3306
  };
3273
3307
  const serializeAws_json1_0Condition = (input, context) => {
3274
3308
  return {
3275
- ...(input.AttributeValueList !== undefined &&
3276
- input.AttributeValueList !== null && {
3309
+ ...(input.AttributeValueList != null && {
3277
3310
  AttributeValueList: serializeAws_json1_0AttributeValueList(input.AttributeValueList, context),
3278
3311
  }),
3279
- ...(input.ComparisonOperator !== undefined &&
3280
- input.ComparisonOperator !== null && { ComparisonOperator: input.ComparisonOperator }),
3312
+ ...(input.ComparisonOperator != null && { ComparisonOperator: input.ComparisonOperator }),
3281
3313
  };
3282
3314
  };
3283
3315
  const serializeAws_json1_0ConditionCheck = (input, context) => {
3284
3316
  return {
3285
- ...(input.ConditionExpression !== undefined &&
3286
- input.ConditionExpression !== null && { ConditionExpression: input.ConditionExpression }),
3287
- ...(input.ExpressionAttributeNames !== undefined &&
3288
- input.ExpressionAttributeNames !== null && {
3317
+ ...(input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }),
3318
+ ...(input.ExpressionAttributeNames != null && {
3289
3319
  ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context),
3290
3320
  }),
3291
- ...(input.ExpressionAttributeValues !== undefined &&
3292
- input.ExpressionAttributeValues !== null && {
3321
+ ...(input.ExpressionAttributeValues != null && {
3293
3322
  ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context),
3294
3323
  }),
3295
- ...(input.Key !== undefined && input.Key !== null && { Key: serializeAws_json1_0Key(input.Key, context) }),
3296
- ...(input.ReturnValuesOnConditionCheckFailure !== undefined &&
3297
- input.ReturnValuesOnConditionCheckFailure !== null && {
3324
+ ...(input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }),
3325
+ ...(input.ReturnValuesOnConditionCheckFailure != null && {
3298
3326
  ReturnValuesOnConditionCheckFailure: input.ReturnValuesOnConditionCheckFailure,
3299
3327
  }),
3300
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3328
+ ...(input.TableName != null && { TableName: input.TableName }),
3301
3329
  };
3302
3330
  };
3303
3331
  const serializeAws_json1_0CreateBackupInput = (input, context) => {
3304
3332
  return {
3305
- ...(input.BackupName !== undefined && input.BackupName !== null && { BackupName: input.BackupName }),
3306
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3333
+ ...(input.BackupName != null && { BackupName: input.BackupName }),
3334
+ ...(input.TableName != null && { TableName: input.TableName }),
3307
3335
  };
3308
3336
  };
3309
3337
  const serializeAws_json1_0CreateGlobalSecondaryIndexAction = (input, context) => {
3310
3338
  return {
3311
- ...(input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName }),
3312
- ...(input.KeySchema !== undefined &&
3313
- input.KeySchema !== null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) }),
3314
- ...(input.Projection !== undefined &&
3315
- input.Projection !== null && { Projection: serializeAws_json1_0Projection(input.Projection, context) }),
3316
- ...(input.ProvisionedThroughput !== undefined &&
3317
- input.ProvisionedThroughput !== null && {
3339
+ ...(input.IndexName != null && { IndexName: input.IndexName }),
3340
+ ...(input.KeySchema != null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) }),
3341
+ ...(input.Projection != null && { Projection: serializeAws_json1_0Projection(input.Projection, context) }),
3342
+ ...(input.ProvisionedThroughput != null && {
3318
3343
  ProvisionedThroughput: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughput, context),
3319
3344
  }),
3320
3345
  };
3321
3346
  };
3322
3347
  const serializeAws_json1_0CreateGlobalTableInput = (input, context) => {
3323
3348
  return {
3324
- ...(input.GlobalTableName !== undefined &&
3325
- input.GlobalTableName !== null && { GlobalTableName: input.GlobalTableName }),
3326
- ...(input.ReplicationGroup !== undefined &&
3327
- input.ReplicationGroup !== null && {
3349
+ ...(input.GlobalTableName != null && { GlobalTableName: input.GlobalTableName }),
3350
+ ...(input.ReplicationGroup != null && {
3328
3351
  ReplicationGroup: serializeAws_json1_0ReplicaList(input.ReplicationGroup, context),
3329
3352
  }),
3330
3353
  };
3331
3354
  };
3332
3355
  const serializeAws_json1_0CreateReplicaAction = (input, context) => {
3333
3356
  return {
3334
- ...(input.RegionName !== undefined && input.RegionName !== null && { RegionName: input.RegionName }),
3357
+ ...(input.RegionName != null && { RegionName: input.RegionName }),
3335
3358
  };
3336
3359
  };
3337
3360
  const serializeAws_json1_0CreateReplicationGroupMemberAction = (input, context) => {
3338
3361
  return {
3339
- ...(input.GlobalSecondaryIndexes !== undefined &&
3340
- input.GlobalSecondaryIndexes !== null && {
3362
+ ...(input.GlobalSecondaryIndexes != null && {
3341
3363
  GlobalSecondaryIndexes: serializeAws_json1_0ReplicaGlobalSecondaryIndexList(input.GlobalSecondaryIndexes, context),
3342
3364
  }),
3343
- ...(input.KMSMasterKeyId !== undefined &&
3344
- input.KMSMasterKeyId !== null && { KMSMasterKeyId: input.KMSMasterKeyId }),
3345
- ...(input.ProvisionedThroughputOverride !== undefined &&
3346
- input.ProvisionedThroughputOverride !== null && {
3365
+ ...(input.KMSMasterKeyId != null && { KMSMasterKeyId: input.KMSMasterKeyId }),
3366
+ ...(input.ProvisionedThroughputOverride != null && {
3347
3367
  ProvisionedThroughputOverride: serializeAws_json1_0ProvisionedThroughputOverride(input.ProvisionedThroughputOverride, context),
3348
3368
  }),
3349
- ...(input.RegionName !== undefined && input.RegionName !== null && { RegionName: input.RegionName }),
3350
- ...(input.TableClassOverride !== undefined &&
3351
- input.TableClassOverride !== null && { TableClassOverride: input.TableClassOverride }),
3369
+ ...(input.RegionName != null && { RegionName: input.RegionName }),
3370
+ ...(input.TableClassOverride != null && { TableClassOverride: input.TableClassOverride }),
3352
3371
  };
3353
3372
  };
3354
3373
  const serializeAws_json1_0CreateTableInput = (input, context) => {
3355
3374
  return {
3356
- ...(input.AttributeDefinitions !== undefined &&
3357
- input.AttributeDefinitions !== null && {
3375
+ ...(input.AttributeDefinitions != null && {
3358
3376
  AttributeDefinitions: serializeAws_json1_0AttributeDefinitions(input.AttributeDefinitions, context),
3359
3377
  }),
3360
- ...(input.BillingMode !== undefined && input.BillingMode !== null && { BillingMode: input.BillingMode }),
3361
- ...(input.GlobalSecondaryIndexes !== undefined &&
3362
- input.GlobalSecondaryIndexes !== null && {
3378
+ ...(input.BillingMode != null && { BillingMode: input.BillingMode }),
3379
+ ...(input.GlobalSecondaryIndexes != null && {
3363
3380
  GlobalSecondaryIndexes: serializeAws_json1_0GlobalSecondaryIndexList(input.GlobalSecondaryIndexes, context),
3364
3381
  }),
3365
- ...(input.KeySchema !== undefined &&
3366
- input.KeySchema !== null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) }),
3367
- ...(input.LocalSecondaryIndexes !== undefined &&
3368
- input.LocalSecondaryIndexes !== null && {
3382
+ ...(input.KeySchema != null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) }),
3383
+ ...(input.LocalSecondaryIndexes != null && {
3369
3384
  LocalSecondaryIndexes: serializeAws_json1_0LocalSecondaryIndexList(input.LocalSecondaryIndexes, context),
3370
3385
  }),
3371
- ...(input.ProvisionedThroughput !== undefined &&
3372
- input.ProvisionedThroughput !== null && {
3386
+ ...(input.ProvisionedThroughput != null && {
3373
3387
  ProvisionedThroughput: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughput, context),
3374
3388
  }),
3375
- ...(input.SSESpecification !== undefined &&
3376
- input.SSESpecification !== null && {
3389
+ ...(input.SSESpecification != null && {
3377
3390
  SSESpecification: serializeAws_json1_0SSESpecification(input.SSESpecification, context),
3378
3391
  }),
3379
- ...(input.StreamSpecification !== undefined &&
3380
- input.StreamSpecification !== null && {
3392
+ ...(input.StreamSpecification != null && {
3381
3393
  StreamSpecification: serializeAws_json1_0StreamSpecification(input.StreamSpecification, context),
3382
3394
  }),
3383
- ...(input.TableClass !== undefined && input.TableClass !== null && { TableClass: input.TableClass }),
3384
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3385
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
3395
+ ...(input.TableClass != null && { TableClass: input.TableClass }),
3396
+ ...(input.TableName != null && { TableName: input.TableName }),
3397
+ ...(input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
3386
3398
  };
3387
3399
  };
3388
3400
  const serializeAws_json1_0Delete = (input, context) => {
3389
3401
  return {
3390
- ...(input.ConditionExpression !== undefined &&
3391
- input.ConditionExpression !== null && { ConditionExpression: input.ConditionExpression }),
3392
- ...(input.ExpressionAttributeNames !== undefined &&
3393
- input.ExpressionAttributeNames !== null && {
3402
+ ...(input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }),
3403
+ ...(input.ExpressionAttributeNames != null && {
3394
3404
  ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context),
3395
3405
  }),
3396
- ...(input.ExpressionAttributeValues !== undefined &&
3397
- input.ExpressionAttributeValues !== null && {
3406
+ ...(input.ExpressionAttributeValues != null && {
3398
3407
  ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context),
3399
3408
  }),
3400
- ...(input.Key !== undefined && input.Key !== null && { Key: serializeAws_json1_0Key(input.Key, context) }),
3401
- ...(input.ReturnValuesOnConditionCheckFailure !== undefined &&
3402
- input.ReturnValuesOnConditionCheckFailure !== null && {
3409
+ ...(input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }),
3410
+ ...(input.ReturnValuesOnConditionCheckFailure != null && {
3403
3411
  ReturnValuesOnConditionCheckFailure: input.ReturnValuesOnConditionCheckFailure,
3404
3412
  }),
3405
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3413
+ ...(input.TableName != null && { TableName: input.TableName }),
3406
3414
  };
3407
3415
  };
3408
3416
  const serializeAws_json1_0DeleteBackupInput = (input, context) => {
3409
3417
  return {
3410
- ...(input.BackupArn !== undefined && input.BackupArn !== null && { BackupArn: input.BackupArn }),
3418
+ ...(input.BackupArn != null && { BackupArn: input.BackupArn }),
3411
3419
  };
3412
3420
  };
3413
3421
  const serializeAws_json1_0DeleteGlobalSecondaryIndexAction = (input, context) => {
3414
3422
  return {
3415
- ...(input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName }),
3423
+ ...(input.IndexName != null && { IndexName: input.IndexName }),
3416
3424
  };
3417
3425
  };
3418
3426
  const serializeAws_json1_0DeleteItemInput = (input, context) => {
3419
3427
  return {
3420
- ...(input.ConditionExpression !== undefined &&
3421
- input.ConditionExpression !== null && { ConditionExpression: input.ConditionExpression }),
3422
- ...(input.ConditionalOperator !== undefined &&
3423
- input.ConditionalOperator !== null && { ConditionalOperator: input.ConditionalOperator }),
3424
- ...(input.Expected !== undefined &&
3425
- input.Expected !== null && { Expected: serializeAws_json1_0ExpectedAttributeMap(input.Expected, context) }),
3426
- ...(input.ExpressionAttributeNames !== undefined &&
3427
- input.ExpressionAttributeNames !== null && {
3428
+ ...(input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }),
3429
+ ...(input.ConditionalOperator != null && { ConditionalOperator: input.ConditionalOperator }),
3430
+ ...(input.Expected != null && { Expected: serializeAws_json1_0ExpectedAttributeMap(input.Expected, context) }),
3431
+ ...(input.ExpressionAttributeNames != null && {
3428
3432
  ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context),
3429
3433
  }),
3430
- ...(input.ExpressionAttributeValues !== undefined &&
3431
- input.ExpressionAttributeValues !== null && {
3434
+ ...(input.ExpressionAttributeValues != null && {
3432
3435
  ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context),
3433
3436
  }),
3434
- ...(input.Key !== undefined && input.Key !== null && { Key: serializeAws_json1_0Key(input.Key, context) }),
3435
- ...(input.ReturnConsumedCapacity !== undefined &&
3436
- input.ReturnConsumedCapacity !== null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
3437
- ...(input.ReturnItemCollectionMetrics !== undefined &&
3438
- input.ReturnItemCollectionMetrics !== null && { ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics }),
3439
- ...(input.ReturnValues !== undefined && input.ReturnValues !== null && { ReturnValues: input.ReturnValues }),
3440
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3437
+ ...(input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }),
3438
+ ...(input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
3439
+ ...(input.ReturnItemCollectionMetrics != null && {
3440
+ ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics,
3441
+ }),
3442
+ ...(input.ReturnValues != null && { ReturnValues: input.ReturnValues }),
3443
+ ...(input.TableName != null && { TableName: input.TableName }),
3441
3444
  };
3442
3445
  };
3443
3446
  const serializeAws_json1_0DeleteReplicaAction = (input, context) => {
3444
3447
  return {
3445
- ...(input.RegionName !== undefined && input.RegionName !== null && { RegionName: input.RegionName }),
3448
+ ...(input.RegionName != null && { RegionName: input.RegionName }),
3446
3449
  };
3447
3450
  };
3448
3451
  const serializeAws_json1_0DeleteReplicationGroupMemberAction = (input, context) => {
3449
3452
  return {
3450
- ...(input.RegionName !== undefined && input.RegionName !== null && { RegionName: input.RegionName }),
3453
+ ...(input.RegionName != null && { RegionName: input.RegionName }),
3451
3454
  };
3452
3455
  };
3453
3456
  const serializeAws_json1_0DeleteRequest = (input, context) => {
3454
3457
  return {
3455
- ...(input.Key !== undefined && input.Key !== null && { Key: serializeAws_json1_0Key(input.Key, context) }),
3458
+ ...(input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }),
3456
3459
  };
3457
3460
  };
3458
3461
  const serializeAws_json1_0DeleteTableInput = (input, context) => {
3459
3462
  return {
3460
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3463
+ ...(input.TableName != null && { TableName: input.TableName }),
3461
3464
  };
3462
3465
  };
3463
3466
  const serializeAws_json1_0DescribeBackupInput = (input, context) => {
3464
3467
  return {
3465
- ...(input.BackupArn !== undefined && input.BackupArn !== null && { BackupArn: input.BackupArn }),
3468
+ ...(input.BackupArn != null && { BackupArn: input.BackupArn }),
3466
3469
  };
3467
3470
  };
3468
3471
  const serializeAws_json1_0DescribeContinuousBackupsInput = (input, context) => {
3469
3472
  return {
3470
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3473
+ ...(input.TableName != null && { TableName: input.TableName }),
3471
3474
  };
3472
3475
  };
3473
3476
  const serializeAws_json1_0DescribeContributorInsightsInput = (input, context) => {
3474
3477
  return {
3475
- ...(input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName }),
3476
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3478
+ ...(input.IndexName != null && { IndexName: input.IndexName }),
3479
+ ...(input.TableName != null && { TableName: input.TableName }),
3477
3480
  };
3478
3481
  };
3479
3482
  const serializeAws_json1_0DescribeEndpointsRequest = (input, context) => {
@@ -3481,24 +3484,22 @@ const serializeAws_json1_0DescribeEndpointsRequest = (input, context) => {
3481
3484
  };
3482
3485
  const serializeAws_json1_0DescribeExportInput = (input, context) => {
3483
3486
  return {
3484
- ...(input.ExportArn !== undefined && input.ExportArn !== null && { ExportArn: input.ExportArn }),
3487
+ ...(input.ExportArn != null && { ExportArn: input.ExportArn }),
3485
3488
  };
3486
3489
  };
3487
3490
  const serializeAws_json1_0DescribeGlobalTableInput = (input, context) => {
3488
3491
  return {
3489
- ...(input.GlobalTableName !== undefined &&
3490
- input.GlobalTableName !== null && { GlobalTableName: input.GlobalTableName }),
3492
+ ...(input.GlobalTableName != null && { GlobalTableName: input.GlobalTableName }),
3491
3493
  };
3492
3494
  };
3493
3495
  const serializeAws_json1_0DescribeGlobalTableSettingsInput = (input, context) => {
3494
3496
  return {
3495
- ...(input.GlobalTableName !== undefined &&
3496
- input.GlobalTableName !== null && { GlobalTableName: input.GlobalTableName }),
3497
+ ...(input.GlobalTableName != null && { GlobalTableName: input.GlobalTableName }),
3497
3498
  };
3498
3499
  };
3499
3500
  const serializeAws_json1_0DescribeKinesisStreamingDestinationInput = (input, context) => {
3500
3501
  return {
3501
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3502
+ ...(input.TableName != null && { TableName: input.TableName }),
3502
3503
  };
3503
3504
  };
3504
3505
  const serializeAws_json1_0DescribeLimitsInput = (input, context) => {
@@ -3506,42 +3507,37 @@ const serializeAws_json1_0DescribeLimitsInput = (input, context) => {
3506
3507
  };
3507
3508
  const serializeAws_json1_0DescribeTableInput = (input, context) => {
3508
3509
  return {
3509
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3510
+ ...(input.TableName != null && { TableName: input.TableName }),
3510
3511
  };
3511
3512
  };
3512
3513
  const serializeAws_json1_0DescribeTableReplicaAutoScalingInput = (input, context) => {
3513
3514
  return {
3514
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3515
+ ...(input.TableName != null && { TableName: input.TableName }),
3515
3516
  };
3516
3517
  };
3517
3518
  const serializeAws_json1_0DescribeTimeToLiveInput = (input, context) => {
3518
3519
  return {
3519
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3520
+ ...(input.TableName != null && { TableName: input.TableName }),
3520
3521
  };
3521
3522
  };
3522
3523
  const serializeAws_json1_0ExecuteStatementInput = (input, context) => {
3523
3524
  return {
3524
- ...(input.ConsistentRead !== undefined &&
3525
- input.ConsistentRead !== null && { ConsistentRead: input.ConsistentRead }),
3526
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
3527
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
3528
- ...(input.Parameters !== undefined &&
3529
- input.Parameters !== null && {
3525
+ ...(input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead }),
3526
+ ...(input.Limit != null && { Limit: input.Limit }),
3527
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
3528
+ ...(input.Parameters != null && {
3530
3529
  Parameters: serializeAws_json1_0PreparedStatementParameters(input.Parameters, context),
3531
3530
  }),
3532
- ...(input.ReturnConsumedCapacity !== undefined &&
3533
- input.ReturnConsumedCapacity !== null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
3534
- ...(input.Statement !== undefined && input.Statement !== null && { Statement: input.Statement }),
3531
+ ...(input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
3532
+ ...(input.Statement != null && { Statement: input.Statement }),
3535
3533
  };
3536
3534
  };
3537
3535
  const serializeAws_json1_0ExecuteTransactionInput = (input, context) => {
3538
3536
  var _a;
3539
3537
  return {
3540
3538
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
3541
- ...(input.ReturnConsumedCapacity !== undefined &&
3542
- input.ReturnConsumedCapacity !== null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
3543
- ...(input.TransactStatements !== undefined &&
3544
- input.TransactStatements !== null && {
3539
+ ...(input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
3540
+ ...(input.TransactStatements != null && {
3545
3541
  TransactStatements: serializeAws_json1_0ParameterizedStatements(input.TransactStatements, context),
3546
3542
  }),
3547
3543
  };
@@ -3559,31 +3555,26 @@ const serializeAws_json1_0ExpectedAttributeMap = (input, context) => {
3559
3555
  };
3560
3556
  const serializeAws_json1_0ExpectedAttributeValue = (input, context) => {
3561
3557
  return {
3562
- ...(input.AttributeValueList !== undefined &&
3563
- input.AttributeValueList !== null && {
3558
+ ...(input.AttributeValueList != null && {
3564
3559
  AttributeValueList: serializeAws_json1_0AttributeValueList(input.AttributeValueList, context),
3565
3560
  }),
3566
- ...(input.ComparisonOperator !== undefined &&
3567
- input.ComparisonOperator !== null && { ComparisonOperator: input.ComparisonOperator }),
3568
- ...(input.Exists !== undefined && input.Exists !== null && { Exists: input.Exists }),
3569
- ...(input.Value !== undefined &&
3570
- input.Value !== null && { Value: serializeAws_json1_0AttributeValue(input.Value, context) }),
3561
+ ...(input.ComparisonOperator != null && { ComparisonOperator: input.ComparisonOperator }),
3562
+ ...(input.Exists != null && { Exists: input.Exists }),
3563
+ ...(input.Value != null && { Value: serializeAws_json1_0AttributeValue(input.Value, context) }),
3571
3564
  };
3572
3565
  };
3573
3566
  const serializeAws_json1_0ExportTableToPointInTimeInput = (input, context) => {
3574
3567
  var _a;
3575
3568
  return {
3576
3569
  ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
3577
- ...(input.ExportFormat !== undefined && input.ExportFormat !== null && { ExportFormat: input.ExportFormat }),
3578
- ...(input.ExportTime !== undefined &&
3579
- input.ExportTime !== null && { ExportTime: Math.round(input.ExportTime.getTime() / 1000) }),
3580
- ...(input.S3Bucket !== undefined && input.S3Bucket !== null && { S3Bucket: input.S3Bucket }),
3581
- ...(input.S3BucketOwner !== undefined && input.S3BucketOwner !== null && { S3BucketOwner: input.S3BucketOwner }),
3582
- ...(input.S3Prefix !== undefined && input.S3Prefix !== null && { S3Prefix: input.S3Prefix }),
3583
- ...(input.S3SseAlgorithm !== undefined &&
3584
- input.S3SseAlgorithm !== null && { S3SseAlgorithm: input.S3SseAlgorithm }),
3585
- ...(input.S3SseKmsKeyId !== undefined && input.S3SseKmsKeyId !== null && { S3SseKmsKeyId: input.S3SseKmsKeyId }),
3586
- ...(input.TableArn !== undefined && input.TableArn !== null && { TableArn: input.TableArn }),
3570
+ ...(input.ExportFormat != null && { ExportFormat: input.ExportFormat }),
3571
+ ...(input.ExportTime != null && { ExportTime: Math.round(input.ExportTime.getTime() / 1000) }),
3572
+ ...(input.S3Bucket != null && { S3Bucket: input.S3Bucket }),
3573
+ ...(input.S3BucketOwner != null && { S3BucketOwner: input.S3BucketOwner }),
3574
+ ...(input.S3Prefix != null && { S3Prefix: input.S3Prefix }),
3575
+ ...(input.S3SseAlgorithm != null && { S3SseAlgorithm: input.S3SseAlgorithm }),
3576
+ ...(input.S3SseKmsKeyId != null && { S3SseKmsKeyId: input.S3SseKmsKeyId }),
3577
+ ...(input.TableArn != null && { TableArn: input.TableArn }),
3587
3578
  };
3588
3579
  };
3589
3580
  const serializeAws_json1_0ExpressionAttributeNameMap = (input, context) => {
@@ -3621,54 +3612,43 @@ const serializeAws_json1_0FilterConditionMap = (input, context) => {
3621
3612
  };
3622
3613
  const serializeAws_json1_0Get = (input, context) => {
3623
3614
  return {
3624
- ...(input.ExpressionAttributeNames !== undefined &&
3625
- input.ExpressionAttributeNames !== null && {
3615
+ ...(input.ExpressionAttributeNames != null && {
3626
3616
  ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context),
3627
3617
  }),
3628
- ...(input.Key !== undefined && input.Key !== null && { Key: serializeAws_json1_0Key(input.Key, context) }),
3629
- ...(input.ProjectionExpression !== undefined &&
3630
- input.ProjectionExpression !== null && { ProjectionExpression: input.ProjectionExpression }),
3631
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3618
+ ...(input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }),
3619
+ ...(input.ProjectionExpression != null && { ProjectionExpression: input.ProjectionExpression }),
3620
+ ...(input.TableName != null && { TableName: input.TableName }),
3632
3621
  };
3633
3622
  };
3634
3623
  const serializeAws_json1_0GetItemInput = (input, context) => {
3635
3624
  return {
3636
- ...(input.AttributesToGet !== undefined &&
3637
- input.AttributesToGet !== null && {
3625
+ ...(input.AttributesToGet != null && {
3638
3626
  AttributesToGet: serializeAws_json1_0AttributeNameList(input.AttributesToGet, context),
3639
3627
  }),
3640
- ...(input.ConsistentRead !== undefined &&
3641
- input.ConsistentRead !== null && { ConsistentRead: input.ConsistentRead }),
3642
- ...(input.ExpressionAttributeNames !== undefined &&
3643
- input.ExpressionAttributeNames !== null && {
3628
+ ...(input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead }),
3629
+ ...(input.ExpressionAttributeNames != null && {
3644
3630
  ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context),
3645
3631
  }),
3646
- ...(input.Key !== undefined && input.Key !== null && { Key: serializeAws_json1_0Key(input.Key, context) }),
3647
- ...(input.ProjectionExpression !== undefined &&
3648
- input.ProjectionExpression !== null && { ProjectionExpression: input.ProjectionExpression }),
3649
- ...(input.ReturnConsumedCapacity !== undefined &&
3650
- input.ReturnConsumedCapacity !== null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
3651
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3632
+ ...(input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }),
3633
+ ...(input.ProjectionExpression != null && { ProjectionExpression: input.ProjectionExpression }),
3634
+ ...(input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
3635
+ ...(input.TableName != null && { TableName: input.TableName }),
3652
3636
  };
3653
3637
  };
3654
3638
  const serializeAws_json1_0GlobalSecondaryIndex = (input, context) => {
3655
3639
  return {
3656
- ...(input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName }),
3657
- ...(input.KeySchema !== undefined &&
3658
- input.KeySchema !== null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) }),
3659
- ...(input.Projection !== undefined &&
3660
- input.Projection !== null && { Projection: serializeAws_json1_0Projection(input.Projection, context) }),
3661
- ...(input.ProvisionedThroughput !== undefined &&
3662
- input.ProvisionedThroughput !== null && {
3640
+ ...(input.IndexName != null && { IndexName: input.IndexName }),
3641
+ ...(input.KeySchema != null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) }),
3642
+ ...(input.Projection != null && { Projection: serializeAws_json1_0Projection(input.Projection, context) }),
3643
+ ...(input.ProvisionedThroughput != null && {
3663
3644
  ProvisionedThroughput: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughput, context),
3664
3645
  }),
3665
3646
  };
3666
3647
  };
3667
3648
  const serializeAws_json1_0GlobalSecondaryIndexAutoScalingUpdate = (input, context) => {
3668
3649
  return {
3669
- ...(input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName }),
3670
- ...(input.ProvisionedWriteCapacityAutoScalingUpdate !== undefined &&
3671
- input.ProvisionedWriteCapacityAutoScalingUpdate !== null && {
3650
+ ...(input.IndexName != null && { IndexName: input.IndexName }),
3651
+ ...(input.ProvisionedWriteCapacityAutoScalingUpdate != null && {
3672
3652
  ProvisionedWriteCapacityAutoScalingUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ProvisionedWriteCapacityAutoScalingUpdate, context),
3673
3653
  }),
3674
3654
  };
@@ -3695,12 +3675,15 @@ const serializeAws_json1_0GlobalSecondaryIndexList = (input, context) => {
3695
3675
  };
3696
3676
  const serializeAws_json1_0GlobalSecondaryIndexUpdate = (input, context) => {
3697
3677
  return {
3698
- ...(input.Create !== undefined &&
3699
- input.Create !== null && { Create: serializeAws_json1_0CreateGlobalSecondaryIndexAction(input.Create, context) }),
3700
- ...(input.Delete !== undefined &&
3701
- input.Delete !== null && { Delete: serializeAws_json1_0DeleteGlobalSecondaryIndexAction(input.Delete, context) }),
3702
- ...(input.Update !== undefined &&
3703
- input.Update !== null && { Update: serializeAws_json1_0UpdateGlobalSecondaryIndexAction(input.Update, context) }),
3678
+ ...(input.Create != null && {
3679
+ Create: serializeAws_json1_0CreateGlobalSecondaryIndexAction(input.Create, context),
3680
+ }),
3681
+ ...(input.Delete != null && {
3682
+ Delete: serializeAws_json1_0DeleteGlobalSecondaryIndexAction(input.Delete, context),
3683
+ }),
3684
+ ...(input.Update != null && {
3685
+ Update: serializeAws_json1_0UpdateGlobalSecondaryIndexAction(input.Update, context),
3686
+ }),
3704
3687
  };
3705
3688
  };
3706
3689
  const serializeAws_json1_0GlobalSecondaryIndexUpdateList = (input, context) => {
@@ -3715,13 +3698,11 @@ const serializeAws_json1_0GlobalSecondaryIndexUpdateList = (input, context) => {
3715
3698
  };
3716
3699
  const serializeAws_json1_0GlobalTableGlobalSecondaryIndexSettingsUpdate = (input, context) => {
3717
3700
  return {
3718
- ...(input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName }),
3719
- ...(input.ProvisionedWriteCapacityAutoScalingSettingsUpdate !== undefined &&
3720
- input.ProvisionedWriteCapacityAutoScalingSettingsUpdate !== null && {
3701
+ ...(input.IndexName != null && { IndexName: input.IndexName }),
3702
+ ...(input.ProvisionedWriteCapacityAutoScalingSettingsUpdate != null && {
3721
3703
  ProvisionedWriteCapacityAutoScalingSettingsUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ProvisionedWriteCapacityAutoScalingSettingsUpdate, context),
3722
3704
  }),
3723
- ...(input.ProvisionedWriteCapacityUnits !== undefined &&
3724
- input.ProvisionedWriteCapacityUnits !== null && {
3705
+ ...(input.ProvisionedWriteCapacityUnits != null && {
3725
3706
  ProvisionedWriteCapacityUnits: input.ProvisionedWriteCapacityUnits,
3726
3707
  }),
3727
3708
  };
@@ -3770,19 +3751,15 @@ const serializeAws_json1_0KeyList = (input, context) => {
3770
3751
  };
3771
3752
  const serializeAws_json1_0KeysAndAttributes = (input, context) => {
3772
3753
  return {
3773
- ...(input.AttributesToGet !== undefined &&
3774
- input.AttributesToGet !== null && {
3754
+ ...(input.AttributesToGet != null && {
3775
3755
  AttributesToGet: serializeAws_json1_0AttributeNameList(input.AttributesToGet, context),
3776
3756
  }),
3777
- ...(input.ConsistentRead !== undefined &&
3778
- input.ConsistentRead !== null && { ConsistentRead: input.ConsistentRead }),
3779
- ...(input.ExpressionAttributeNames !== undefined &&
3780
- input.ExpressionAttributeNames !== null && {
3757
+ ...(input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead }),
3758
+ ...(input.ExpressionAttributeNames != null && {
3781
3759
  ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context),
3782
3760
  }),
3783
- ...(input.Keys !== undefined && input.Keys !== null && { Keys: serializeAws_json1_0KeyList(input.Keys, context) }),
3784
- ...(input.ProjectionExpression !== undefined &&
3785
- input.ProjectionExpression !== null && { ProjectionExpression: input.ProjectionExpression }),
3761
+ ...(input.Keys != null && { Keys: serializeAws_json1_0KeyList(input.Keys, context) }),
3762
+ ...(input.ProjectionExpression != null && { ProjectionExpression: input.ProjectionExpression }),
3786
3763
  };
3787
3764
  };
3788
3765
  const serializeAws_json1_0KeySchema = (input, context) => {
@@ -3797,14 +3774,14 @@ const serializeAws_json1_0KeySchema = (input, context) => {
3797
3774
  };
3798
3775
  const serializeAws_json1_0KeySchemaElement = (input, context) => {
3799
3776
  return {
3800
- ...(input.AttributeName !== undefined && input.AttributeName !== null && { AttributeName: input.AttributeName }),
3801
- ...(input.KeyType !== undefined && input.KeyType !== null && { KeyType: input.KeyType }),
3777
+ ...(input.AttributeName != null && { AttributeName: input.AttributeName }),
3778
+ ...(input.KeyType != null && { KeyType: input.KeyType }),
3802
3779
  };
3803
3780
  };
3804
3781
  const serializeAws_json1_0KinesisStreamingDestinationInput = (input, context) => {
3805
3782
  return {
3806
- ...(input.StreamArn !== undefined && input.StreamArn !== null && { StreamArn: input.StreamArn }),
3807
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3783
+ ...(input.StreamArn != null && { StreamArn: input.StreamArn }),
3784
+ ...(input.TableName != null && { TableName: input.TableName }),
3808
3785
  };
3809
3786
  };
3810
3787
  const serializeAws_json1_0ListAttributeValue = (input, context) => {
@@ -3819,65 +3796,58 @@ const serializeAws_json1_0ListAttributeValue = (input, context) => {
3819
3796
  };
3820
3797
  const serializeAws_json1_0ListBackupsInput = (input, context) => {
3821
3798
  return {
3822
- ...(input.BackupType !== undefined && input.BackupType !== null && { BackupType: input.BackupType }),
3823
- ...(input.ExclusiveStartBackupArn !== undefined &&
3824
- input.ExclusiveStartBackupArn !== null && { ExclusiveStartBackupArn: input.ExclusiveStartBackupArn }),
3825
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
3826
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3827
- ...(input.TimeRangeLowerBound !== undefined &&
3828
- input.TimeRangeLowerBound !== null && {
3799
+ ...(input.BackupType != null && { BackupType: input.BackupType }),
3800
+ ...(input.ExclusiveStartBackupArn != null && { ExclusiveStartBackupArn: input.ExclusiveStartBackupArn }),
3801
+ ...(input.Limit != null && { Limit: input.Limit }),
3802
+ ...(input.TableName != null && { TableName: input.TableName }),
3803
+ ...(input.TimeRangeLowerBound != null && {
3829
3804
  TimeRangeLowerBound: Math.round(input.TimeRangeLowerBound.getTime() / 1000),
3830
3805
  }),
3831
- ...(input.TimeRangeUpperBound !== undefined &&
3832
- input.TimeRangeUpperBound !== null && {
3806
+ ...(input.TimeRangeUpperBound != null && {
3833
3807
  TimeRangeUpperBound: Math.round(input.TimeRangeUpperBound.getTime() / 1000),
3834
3808
  }),
3835
3809
  };
3836
3810
  };
3837
3811
  const serializeAws_json1_0ListContributorInsightsInput = (input, context) => {
3838
3812
  return {
3839
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
3840
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
3841
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3813
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3814
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
3815
+ ...(input.TableName != null && { TableName: input.TableName }),
3842
3816
  };
3843
3817
  };
3844
3818
  const serializeAws_json1_0ListExportsInput = (input, context) => {
3845
3819
  return {
3846
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
3847
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
3848
- ...(input.TableArn !== undefined && input.TableArn !== null && { TableArn: input.TableArn }),
3820
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3821
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
3822
+ ...(input.TableArn != null && { TableArn: input.TableArn }),
3849
3823
  };
3850
3824
  };
3851
3825
  const serializeAws_json1_0ListGlobalTablesInput = (input, context) => {
3852
3826
  return {
3853
- ...(input.ExclusiveStartGlobalTableName !== undefined &&
3854
- input.ExclusiveStartGlobalTableName !== null && {
3827
+ ...(input.ExclusiveStartGlobalTableName != null && {
3855
3828
  ExclusiveStartGlobalTableName: input.ExclusiveStartGlobalTableName,
3856
3829
  }),
3857
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
3858
- ...(input.RegionName !== undefined && input.RegionName !== null && { RegionName: input.RegionName }),
3830
+ ...(input.Limit != null && { Limit: input.Limit }),
3831
+ ...(input.RegionName != null && { RegionName: input.RegionName }),
3859
3832
  };
3860
3833
  };
3861
3834
  const serializeAws_json1_0ListTablesInput = (input, context) => {
3862
3835
  return {
3863
- ...(input.ExclusiveStartTableName !== undefined &&
3864
- input.ExclusiveStartTableName !== null && { ExclusiveStartTableName: input.ExclusiveStartTableName }),
3865
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
3836
+ ...(input.ExclusiveStartTableName != null && { ExclusiveStartTableName: input.ExclusiveStartTableName }),
3837
+ ...(input.Limit != null && { Limit: input.Limit }),
3866
3838
  };
3867
3839
  };
3868
3840
  const serializeAws_json1_0ListTagsOfResourceInput = (input, context) => {
3869
3841
  return {
3870
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
3871
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
3842
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
3843
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3872
3844
  };
3873
3845
  };
3874
3846
  const serializeAws_json1_0LocalSecondaryIndex = (input, context) => {
3875
3847
  return {
3876
- ...(input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName }),
3877
- ...(input.KeySchema !== undefined &&
3878
- input.KeySchema !== null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) }),
3879
- ...(input.Projection !== undefined &&
3880
- input.Projection !== null && { Projection: serializeAws_json1_0Projection(input.Projection, context) }),
3848
+ ...(input.IndexName != null && { IndexName: input.IndexName }),
3849
+ ...(input.KeySchema != null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) }),
3850
+ ...(input.Projection != null && { Projection: serializeAws_json1_0Projection(input.Projection, context) }),
3881
3851
  };
3882
3852
  };
3883
3853
  const serializeAws_json1_0LocalSecondaryIndexList = (input, context) => {
@@ -3923,11 +3893,10 @@ const serializeAws_json1_0NumberSetAttributeValue = (input, context) => {
3923
3893
  };
3924
3894
  const serializeAws_json1_0ParameterizedStatement = (input, context) => {
3925
3895
  return {
3926
- ...(input.Parameters !== undefined &&
3927
- input.Parameters !== null && {
3896
+ ...(input.Parameters != null && {
3928
3897
  Parameters: serializeAws_json1_0PreparedStatementParameters(input.Parameters, context),
3929
3898
  }),
3930
- ...(input.Statement !== undefined && input.Statement !== null && { Statement: input.Statement }),
3899
+ ...(input.Statement != null && { Statement: input.Statement }),
3931
3900
  };
3932
3901
  };
3933
3902
  const serializeAws_json1_0ParameterizedStatements = (input, context) => {
@@ -3952,8 +3921,7 @@ const serializeAws_json1_0PartiQLBatchRequest = (input, context) => {
3952
3921
  };
3953
3922
  const serializeAws_json1_0PointInTimeRecoverySpecification = (input, context) => {
3954
3923
  return {
3955
- ...(input.PointInTimeRecoveryEnabled !== undefined &&
3956
- input.PointInTimeRecoveryEnabled !== null && { PointInTimeRecoveryEnabled: input.PointInTimeRecoveryEnabled }),
3924
+ ...(input.PointInTimeRecoveryEnabled != null && { PointInTimeRecoveryEnabled: input.PointInTimeRecoveryEnabled }),
3957
3925
  };
3958
3926
  };
3959
3927
  const serializeAws_json1_0PreparedStatementParameters = (input, context) => {
@@ -3968,73 +3936,57 @@ const serializeAws_json1_0PreparedStatementParameters = (input, context) => {
3968
3936
  };
3969
3937
  const serializeAws_json1_0Projection = (input, context) => {
3970
3938
  return {
3971
- ...(input.NonKeyAttributes !== undefined &&
3972
- input.NonKeyAttributes !== null && {
3939
+ ...(input.NonKeyAttributes != null && {
3973
3940
  NonKeyAttributes: serializeAws_json1_0NonKeyAttributeNameList(input.NonKeyAttributes, context),
3974
3941
  }),
3975
- ...(input.ProjectionType !== undefined &&
3976
- input.ProjectionType !== null && { ProjectionType: input.ProjectionType }),
3942
+ ...(input.ProjectionType != null && { ProjectionType: input.ProjectionType }),
3977
3943
  };
3978
3944
  };
3979
3945
  const serializeAws_json1_0ProvisionedThroughput = (input, context) => {
3980
3946
  return {
3981
- ...(input.ReadCapacityUnits !== undefined &&
3982
- input.ReadCapacityUnits !== null && { ReadCapacityUnits: input.ReadCapacityUnits }),
3983
- ...(input.WriteCapacityUnits !== undefined &&
3984
- input.WriteCapacityUnits !== null && { WriteCapacityUnits: input.WriteCapacityUnits }),
3947
+ ...(input.ReadCapacityUnits != null && { ReadCapacityUnits: input.ReadCapacityUnits }),
3948
+ ...(input.WriteCapacityUnits != null && { WriteCapacityUnits: input.WriteCapacityUnits }),
3985
3949
  };
3986
3950
  };
3987
3951
  const serializeAws_json1_0ProvisionedThroughputOverride = (input, context) => {
3988
3952
  return {
3989
- ...(input.ReadCapacityUnits !== undefined &&
3990
- input.ReadCapacityUnits !== null && { ReadCapacityUnits: input.ReadCapacityUnits }),
3953
+ ...(input.ReadCapacityUnits != null && { ReadCapacityUnits: input.ReadCapacityUnits }),
3991
3954
  };
3992
3955
  };
3993
3956
  const serializeAws_json1_0Put = (input, context) => {
3994
3957
  return {
3995
- ...(input.ConditionExpression !== undefined &&
3996
- input.ConditionExpression !== null && { ConditionExpression: input.ConditionExpression }),
3997
- ...(input.ExpressionAttributeNames !== undefined &&
3998
- input.ExpressionAttributeNames !== null && {
3958
+ ...(input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }),
3959
+ ...(input.ExpressionAttributeNames != null && {
3999
3960
  ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context),
4000
3961
  }),
4001
- ...(input.ExpressionAttributeValues !== undefined &&
4002
- input.ExpressionAttributeValues !== null && {
3962
+ ...(input.ExpressionAttributeValues != null && {
4003
3963
  ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context),
4004
3964
  }),
4005
- ...(input.Item !== undefined &&
4006
- input.Item !== null && { Item: serializeAws_json1_0PutItemInputAttributeMap(input.Item, context) }),
4007
- ...(input.ReturnValuesOnConditionCheckFailure !== undefined &&
4008
- input.ReturnValuesOnConditionCheckFailure !== null && {
3965
+ ...(input.Item != null && { Item: serializeAws_json1_0PutItemInputAttributeMap(input.Item, context) }),
3966
+ ...(input.ReturnValuesOnConditionCheckFailure != null && {
4009
3967
  ReturnValuesOnConditionCheckFailure: input.ReturnValuesOnConditionCheckFailure,
4010
3968
  }),
4011
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3969
+ ...(input.TableName != null && { TableName: input.TableName }),
4012
3970
  };
4013
3971
  };
4014
3972
  const serializeAws_json1_0PutItemInput = (input, context) => {
4015
3973
  return {
4016
- ...(input.ConditionExpression !== undefined &&
4017
- input.ConditionExpression !== null && { ConditionExpression: input.ConditionExpression }),
4018
- ...(input.ConditionalOperator !== undefined &&
4019
- input.ConditionalOperator !== null && { ConditionalOperator: input.ConditionalOperator }),
4020
- ...(input.Expected !== undefined &&
4021
- input.Expected !== null && { Expected: serializeAws_json1_0ExpectedAttributeMap(input.Expected, context) }),
4022
- ...(input.ExpressionAttributeNames !== undefined &&
4023
- input.ExpressionAttributeNames !== null && {
3974
+ ...(input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }),
3975
+ ...(input.ConditionalOperator != null && { ConditionalOperator: input.ConditionalOperator }),
3976
+ ...(input.Expected != null && { Expected: serializeAws_json1_0ExpectedAttributeMap(input.Expected, context) }),
3977
+ ...(input.ExpressionAttributeNames != null && {
4024
3978
  ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context),
4025
3979
  }),
4026
- ...(input.ExpressionAttributeValues !== undefined &&
4027
- input.ExpressionAttributeValues !== null && {
3980
+ ...(input.ExpressionAttributeValues != null && {
4028
3981
  ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context),
4029
3982
  }),
4030
- ...(input.Item !== undefined &&
4031
- input.Item !== null && { Item: serializeAws_json1_0PutItemInputAttributeMap(input.Item, context) }),
4032
- ...(input.ReturnConsumedCapacity !== undefined &&
4033
- input.ReturnConsumedCapacity !== null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
4034
- ...(input.ReturnItemCollectionMetrics !== undefined &&
4035
- input.ReturnItemCollectionMetrics !== null && { ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics }),
4036
- ...(input.ReturnValues !== undefined && input.ReturnValues !== null && { ReturnValues: input.ReturnValues }),
4037
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3983
+ ...(input.Item != null && { Item: serializeAws_json1_0PutItemInputAttributeMap(input.Item, context) }),
3984
+ ...(input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
3985
+ ...(input.ReturnItemCollectionMetrics != null && {
3986
+ ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics,
3987
+ }),
3988
+ ...(input.ReturnValues != null && { ReturnValues: input.ReturnValues }),
3989
+ ...(input.TableName != null && { TableName: input.TableName }),
4038
3990
  };
4039
3991
  };
4040
3992
  const serializeAws_json1_0PutItemInputAttributeMap = (input, context) => {
@@ -4050,70 +4002,54 @@ const serializeAws_json1_0PutItemInputAttributeMap = (input, context) => {
4050
4002
  };
4051
4003
  const serializeAws_json1_0PutRequest = (input, context) => {
4052
4004
  return {
4053
- ...(input.Item !== undefined &&
4054
- input.Item !== null && { Item: serializeAws_json1_0PutItemInputAttributeMap(input.Item, context) }),
4005
+ ...(input.Item != null && { Item: serializeAws_json1_0PutItemInputAttributeMap(input.Item, context) }),
4055
4006
  };
4056
4007
  };
4057
4008
  const serializeAws_json1_0QueryInput = (input, context) => {
4058
4009
  return {
4059
- ...(input.AttributesToGet !== undefined &&
4060
- input.AttributesToGet !== null && {
4010
+ ...(input.AttributesToGet != null && {
4061
4011
  AttributesToGet: serializeAws_json1_0AttributeNameList(input.AttributesToGet, context),
4062
4012
  }),
4063
- ...(input.ConditionalOperator !== undefined &&
4064
- input.ConditionalOperator !== null && { ConditionalOperator: input.ConditionalOperator }),
4065
- ...(input.ConsistentRead !== undefined &&
4066
- input.ConsistentRead !== null && { ConsistentRead: input.ConsistentRead }),
4067
- ...(input.ExclusiveStartKey !== undefined &&
4068
- input.ExclusiveStartKey !== null && {
4013
+ ...(input.ConditionalOperator != null && { ConditionalOperator: input.ConditionalOperator }),
4014
+ ...(input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead }),
4015
+ ...(input.ExclusiveStartKey != null && {
4069
4016
  ExclusiveStartKey: serializeAws_json1_0Key(input.ExclusiveStartKey, context),
4070
4017
  }),
4071
- ...(input.ExpressionAttributeNames !== undefined &&
4072
- input.ExpressionAttributeNames !== null && {
4018
+ ...(input.ExpressionAttributeNames != null && {
4073
4019
  ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context),
4074
4020
  }),
4075
- ...(input.ExpressionAttributeValues !== undefined &&
4076
- input.ExpressionAttributeValues !== null && {
4021
+ ...(input.ExpressionAttributeValues != null && {
4077
4022
  ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context),
4078
4023
  }),
4079
- ...(input.FilterExpression !== undefined &&
4080
- input.FilterExpression !== null && { FilterExpression: input.FilterExpression }),
4081
- ...(input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName }),
4082
- ...(input.KeyConditionExpression !== undefined &&
4083
- input.KeyConditionExpression !== null && { KeyConditionExpression: input.KeyConditionExpression }),
4084
- ...(input.KeyConditions !== undefined &&
4085
- input.KeyConditions !== null && {
4024
+ ...(input.FilterExpression != null && { FilterExpression: input.FilterExpression }),
4025
+ ...(input.IndexName != null && { IndexName: input.IndexName }),
4026
+ ...(input.KeyConditionExpression != null && { KeyConditionExpression: input.KeyConditionExpression }),
4027
+ ...(input.KeyConditions != null && {
4086
4028
  KeyConditions: serializeAws_json1_0KeyConditions(input.KeyConditions, context),
4087
4029
  }),
4088
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
4089
- ...(input.ProjectionExpression !== undefined &&
4090
- input.ProjectionExpression !== null && { ProjectionExpression: input.ProjectionExpression }),
4091
- ...(input.QueryFilter !== undefined &&
4092
- input.QueryFilter !== null && {
4030
+ ...(input.Limit != null && { Limit: input.Limit }),
4031
+ ...(input.ProjectionExpression != null && { ProjectionExpression: input.ProjectionExpression }),
4032
+ ...(input.QueryFilter != null && {
4093
4033
  QueryFilter: serializeAws_json1_0FilterConditionMap(input.QueryFilter, context),
4094
4034
  }),
4095
- ...(input.ReturnConsumedCapacity !== undefined &&
4096
- input.ReturnConsumedCapacity !== null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
4097
- ...(input.ScanIndexForward !== undefined &&
4098
- input.ScanIndexForward !== null && { ScanIndexForward: input.ScanIndexForward }),
4099
- ...(input.Select !== undefined && input.Select !== null && { Select: input.Select }),
4100
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
4035
+ ...(input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
4036
+ ...(input.ScanIndexForward != null && { ScanIndexForward: input.ScanIndexForward }),
4037
+ ...(input.Select != null && { Select: input.Select }),
4038
+ ...(input.TableName != null && { TableName: input.TableName }),
4101
4039
  };
4102
4040
  };
4103
4041
  const serializeAws_json1_0Replica = (input, context) => {
4104
4042
  return {
4105
- ...(input.RegionName !== undefined && input.RegionName !== null && { RegionName: input.RegionName }),
4043
+ ...(input.RegionName != null && { RegionName: input.RegionName }),
4106
4044
  };
4107
4045
  };
4108
4046
  const serializeAws_json1_0ReplicaAutoScalingUpdate = (input, context) => {
4109
4047
  return {
4110
- ...(input.RegionName !== undefined && input.RegionName !== null && { RegionName: input.RegionName }),
4111
- ...(input.ReplicaGlobalSecondaryIndexUpdates !== undefined &&
4112
- input.ReplicaGlobalSecondaryIndexUpdates !== null && {
4048
+ ...(input.RegionName != null && { RegionName: input.RegionName }),
4049
+ ...(input.ReplicaGlobalSecondaryIndexUpdates != null && {
4113
4050
  ReplicaGlobalSecondaryIndexUpdates: serializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingUpdateList(input.ReplicaGlobalSecondaryIndexUpdates, context),
4114
4051
  }),
4115
- ...(input.ReplicaProvisionedReadCapacityAutoScalingUpdate !== undefined &&
4116
- input.ReplicaProvisionedReadCapacityAutoScalingUpdate !== null && {
4052
+ ...(input.ReplicaProvisionedReadCapacityAutoScalingUpdate != null && {
4117
4053
  ReplicaProvisionedReadCapacityAutoScalingUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ReplicaProvisionedReadCapacityAutoScalingUpdate, context),
4118
4054
  }),
4119
4055
  };
@@ -4130,18 +4066,16 @@ const serializeAws_json1_0ReplicaAutoScalingUpdateList = (input, context) => {
4130
4066
  };
4131
4067
  const serializeAws_json1_0ReplicaGlobalSecondaryIndex = (input, context) => {
4132
4068
  return {
4133
- ...(input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName }),
4134
- ...(input.ProvisionedThroughputOverride !== undefined &&
4135
- input.ProvisionedThroughputOverride !== null && {
4069
+ ...(input.IndexName != null && { IndexName: input.IndexName }),
4070
+ ...(input.ProvisionedThroughputOverride != null && {
4136
4071
  ProvisionedThroughputOverride: serializeAws_json1_0ProvisionedThroughputOverride(input.ProvisionedThroughputOverride, context),
4137
4072
  }),
4138
4073
  };
4139
4074
  };
4140
4075
  const serializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingUpdate = (input, context) => {
4141
4076
  return {
4142
- ...(input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName }),
4143
- ...(input.ProvisionedReadCapacityAutoScalingUpdate !== undefined &&
4144
- input.ProvisionedReadCapacityAutoScalingUpdate !== null && {
4077
+ ...(input.IndexName != null && { IndexName: input.IndexName }),
4078
+ ...(input.ProvisionedReadCapacityAutoScalingUpdate != null && {
4145
4079
  ProvisionedReadCapacityAutoScalingUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ProvisionedReadCapacityAutoScalingUpdate, context),
4146
4080
  }),
4147
4081
  };
@@ -4168,13 +4102,11 @@ const serializeAws_json1_0ReplicaGlobalSecondaryIndexList = (input, context) =>
4168
4102
  };
4169
4103
  const serializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsUpdate = (input, context) => {
4170
4104
  return {
4171
- ...(input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName }),
4172
- ...(input.ProvisionedReadCapacityAutoScalingSettingsUpdate !== undefined &&
4173
- input.ProvisionedReadCapacityAutoScalingSettingsUpdate !== null && {
4105
+ ...(input.IndexName != null && { IndexName: input.IndexName }),
4106
+ ...(input.ProvisionedReadCapacityAutoScalingSettingsUpdate != null && {
4174
4107
  ProvisionedReadCapacityAutoScalingSettingsUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ProvisionedReadCapacityAutoScalingSettingsUpdate, context),
4175
4108
  }),
4176
- ...(input.ProvisionedReadCapacityUnits !== undefined &&
4177
- input.ProvisionedReadCapacityUnits !== null && {
4109
+ ...(input.ProvisionedReadCapacityUnits != null && {
4178
4110
  ProvisionedReadCapacityUnits: input.ProvisionedReadCapacityUnits,
4179
4111
  }),
4180
4112
  };
@@ -4201,21 +4133,17 @@ const serializeAws_json1_0ReplicaList = (input, context) => {
4201
4133
  };
4202
4134
  const serializeAws_json1_0ReplicaSettingsUpdate = (input, context) => {
4203
4135
  return {
4204
- ...(input.RegionName !== undefined && input.RegionName !== null && { RegionName: input.RegionName }),
4205
- ...(input.ReplicaGlobalSecondaryIndexSettingsUpdate !== undefined &&
4206
- input.ReplicaGlobalSecondaryIndexSettingsUpdate !== null && {
4136
+ ...(input.RegionName != null && { RegionName: input.RegionName }),
4137
+ ...(input.ReplicaGlobalSecondaryIndexSettingsUpdate != null && {
4207
4138
  ReplicaGlobalSecondaryIndexSettingsUpdate: serializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsUpdateList(input.ReplicaGlobalSecondaryIndexSettingsUpdate, context),
4208
4139
  }),
4209
- ...(input.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate !== undefined &&
4210
- input.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate !== null && {
4140
+ ...(input.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate != null && {
4211
4141
  ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate, context),
4212
4142
  }),
4213
- ...(input.ReplicaProvisionedReadCapacityUnits !== undefined &&
4214
- input.ReplicaProvisionedReadCapacityUnits !== null && {
4143
+ ...(input.ReplicaProvisionedReadCapacityUnits != null && {
4215
4144
  ReplicaProvisionedReadCapacityUnits: input.ReplicaProvisionedReadCapacityUnits,
4216
4145
  }),
4217
- ...(input.ReplicaTableClass !== undefined &&
4218
- input.ReplicaTableClass !== null && { ReplicaTableClass: input.ReplicaTableClass }),
4146
+ ...(input.ReplicaTableClass != null && { ReplicaTableClass: input.ReplicaTableClass }),
4219
4147
  };
4220
4148
  };
4221
4149
  const serializeAws_json1_0ReplicaSettingsUpdateList = (input, context) => {
@@ -4230,16 +4158,13 @@ const serializeAws_json1_0ReplicaSettingsUpdateList = (input, context) => {
4230
4158
  };
4231
4159
  const serializeAws_json1_0ReplicationGroupUpdate = (input, context) => {
4232
4160
  return {
4233
- ...(input.Create !== undefined &&
4234
- input.Create !== null && {
4161
+ ...(input.Create != null && {
4235
4162
  Create: serializeAws_json1_0CreateReplicationGroupMemberAction(input.Create, context),
4236
4163
  }),
4237
- ...(input.Delete !== undefined &&
4238
- input.Delete !== null && {
4164
+ ...(input.Delete != null && {
4239
4165
  Delete: serializeAws_json1_0DeleteReplicationGroupMemberAction(input.Delete, context),
4240
4166
  }),
4241
- ...(input.Update !== undefined &&
4242
- input.Update !== null && {
4167
+ ...(input.Update != null && {
4243
4168
  Update: serializeAws_json1_0UpdateReplicationGroupMemberAction(input.Update, context),
4244
4169
  }),
4245
4170
  };
@@ -4256,10 +4181,8 @@ const serializeAws_json1_0ReplicationGroupUpdateList = (input, context) => {
4256
4181
  };
4257
4182
  const serializeAws_json1_0ReplicaUpdate = (input, context) => {
4258
4183
  return {
4259
- ...(input.Create !== undefined &&
4260
- input.Create !== null && { Create: serializeAws_json1_0CreateReplicaAction(input.Create, context) }),
4261
- ...(input.Delete !== undefined &&
4262
- input.Delete !== null && { Delete: serializeAws_json1_0DeleteReplicaAction(input.Delete, context) }),
4184
+ ...(input.Create != null && { Create: serializeAws_json1_0CreateReplicaAction(input.Create, context) }),
4185
+ ...(input.Delete != null && { Delete: serializeAws_json1_0DeleteReplicaAction(input.Delete, context) }),
4263
4186
  };
4264
4187
  };
4265
4188
  const serializeAws_json1_0ReplicaUpdateList = (input, context) => {
@@ -4274,112 +4197,84 @@ const serializeAws_json1_0ReplicaUpdateList = (input, context) => {
4274
4197
  };
4275
4198
  const serializeAws_json1_0RestoreTableFromBackupInput = (input, context) => {
4276
4199
  return {
4277
- ...(input.BackupArn !== undefined && input.BackupArn !== null && { BackupArn: input.BackupArn }),
4278
- ...(input.BillingModeOverride !== undefined &&
4279
- input.BillingModeOverride !== null && { BillingModeOverride: input.BillingModeOverride }),
4280
- ...(input.GlobalSecondaryIndexOverride !== undefined &&
4281
- input.GlobalSecondaryIndexOverride !== null && {
4200
+ ...(input.BackupArn != null && { BackupArn: input.BackupArn }),
4201
+ ...(input.BillingModeOverride != null && { BillingModeOverride: input.BillingModeOverride }),
4202
+ ...(input.GlobalSecondaryIndexOverride != null && {
4282
4203
  GlobalSecondaryIndexOverride: serializeAws_json1_0GlobalSecondaryIndexList(input.GlobalSecondaryIndexOverride, context),
4283
4204
  }),
4284
- ...(input.LocalSecondaryIndexOverride !== undefined &&
4285
- input.LocalSecondaryIndexOverride !== null && {
4205
+ ...(input.LocalSecondaryIndexOverride != null && {
4286
4206
  LocalSecondaryIndexOverride: serializeAws_json1_0LocalSecondaryIndexList(input.LocalSecondaryIndexOverride, context),
4287
4207
  }),
4288
- ...(input.ProvisionedThroughputOverride !== undefined &&
4289
- input.ProvisionedThroughputOverride !== null && {
4208
+ ...(input.ProvisionedThroughputOverride != null && {
4290
4209
  ProvisionedThroughputOverride: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughputOverride, context),
4291
4210
  }),
4292
- ...(input.SSESpecificationOverride !== undefined &&
4293
- input.SSESpecificationOverride !== null && {
4211
+ ...(input.SSESpecificationOverride != null && {
4294
4212
  SSESpecificationOverride: serializeAws_json1_0SSESpecification(input.SSESpecificationOverride, context),
4295
4213
  }),
4296
- ...(input.TargetTableName !== undefined &&
4297
- input.TargetTableName !== null && { TargetTableName: input.TargetTableName }),
4214
+ ...(input.TargetTableName != null && { TargetTableName: input.TargetTableName }),
4298
4215
  };
4299
4216
  };
4300
4217
  const serializeAws_json1_0RestoreTableToPointInTimeInput = (input, context) => {
4301
4218
  return {
4302
- ...(input.BillingModeOverride !== undefined &&
4303
- input.BillingModeOverride !== null && { BillingModeOverride: input.BillingModeOverride }),
4304
- ...(input.GlobalSecondaryIndexOverride !== undefined &&
4305
- input.GlobalSecondaryIndexOverride !== null && {
4219
+ ...(input.BillingModeOverride != null && { BillingModeOverride: input.BillingModeOverride }),
4220
+ ...(input.GlobalSecondaryIndexOverride != null && {
4306
4221
  GlobalSecondaryIndexOverride: serializeAws_json1_0GlobalSecondaryIndexList(input.GlobalSecondaryIndexOverride, context),
4307
4222
  }),
4308
- ...(input.LocalSecondaryIndexOverride !== undefined &&
4309
- input.LocalSecondaryIndexOverride !== null && {
4223
+ ...(input.LocalSecondaryIndexOverride != null && {
4310
4224
  LocalSecondaryIndexOverride: serializeAws_json1_0LocalSecondaryIndexList(input.LocalSecondaryIndexOverride, context),
4311
4225
  }),
4312
- ...(input.ProvisionedThroughputOverride !== undefined &&
4313
- input.ProvisionedThroughputOverride !== null && {
4226
+ ...(input.ProvisionedThroughputOverride != null && {
4314
4227
  ProvisionedThroughputOverride: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughputOverride, context),
4315
4228
  }),
4316
- ...(input.RestoreDateTime !== undefined &&
4317
- input.RestoreDateTime !== null && { RestoreDateTime: Math.round(input.RestoreDateTime.getTime() / 1000) }),
4318
- ...(input.SSESpecificationOverride !== undefined &&
4319
- input.SSESpecificationOverride !== null && {
4229
+ ...(input.RestoreDateTime != null && { RestoreDateTime: Math.round(input.RestoreDateTime.getTime() / 1000) }),
4230
+ ...(input.SSESpecificationOverride != null && {
4320
4231
  SSESpecificationOverride: serializeAws_json1_0SSESpecification(input.SSESpecificationOverride, context),
4321
4232
  }),
4322
- ...(input.SourceTableArn !== undefined &&
4323
- input.SourceTableArn !== null && { SourceTableArn: input.SourceTableArn }),
4324
- ...(input.SourceTableName !== undefined &&
4325
- input.SourceTableName !== null && { SourceTableName: input.SourceTableName }),
4326
- ...(input.TargetTableName !== undefined &&
4327
- input.TargetTableName !== null && { TargetTableName: input.TargetTableName }),
4328
- ...(input.UseLatestRestorableTime !== undefined &&
4329
- input.UseLatestRestorableTime !== null && { UseLatestRestorableTime: input.UseLatestRestorableTime }),
4233
+ ...(input.SourceTableArn != null && { SourceTableArn: input.SourceTableArn }),
4234
+ ...(input.SourceTableName != null && { SourceTableName: input.SourceTableName }),
4235
+ ...(input.TargetTableName != null && { TargetTableName: input.TargetTableName }),
4236
+ ...(input.UseLatestRestorableTime != null && { UseLatestRestorableTime: input.UseLatestRestorableTime }),
4330
4237
  };
4331
4238
  };
4332
4239
  const serializeAws_json1_0ScanInput = (input, context) => {
4333
4240
  return {
4334
- ...(input.AttributesToGet !== undefined &&
4335
- input.AttributesToGet !== null && {
4241
+ ...(input.AttributesToGet != null && {
4336
4242
  AttributesToGet: serializeAws_json1_0AttributeNameList(input.AttributesToGet, context),
4337
4243
  }),
4338
- ...(input.ConditionalOperator !== undefined &&
4339
- input.ConditionalOperator !== null && { ConditionalOperator: input.ConditionalOperator }),
4340
- ...(input.ConsistentRead !== undefined &&
4341
- input.ConsistentRead !== null && { ConsistentRead: input.ConsistentRead }),
4342
- ...(input.ExclusiveStartKey !== undefined &&
4343
- input.ExclusiveStartKey !== null && {
4244
+ ...(input.ConditionalOperator != null && { ConditionalOperator: input.ConditionalOperator }),
4245
+ ...(input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead }),
4246
+ ...(input.ExclusiveStartKey != null && {
4344
4247
  ExclusiveStartKey: serializeAws_json1_0Key(input.ExclusiveStartKey, context),
4345
4248
  }),
4346
- ...(input.ExpressionAttributeNames !== undefined &&
4347
- input.ExpressionAttributeNames !== null && {
4249
+ ...(input.ExpressionAttributeNames != null && {
4348
4250
  ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context),
4349
4251
  }),
4350
- ...(input.ExpressionAttributeValues !== undefined &&
4351
- input.ExpressionAttributeValues !== null && {
4252
+ ...(input.ExpressionAttributeValues != null && {
4352
4253
  ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context),
4353
4254
  }),
4354
- ...(input.FilterExpression !== undefined &&
4355
- input.FilterExpression !== null && { FilterExpression: input.FilterExpression }),
4356
- ...(input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName }),
4357
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
4358
- ...(input.ProjectionExpression !== undefined &&
4359
- input.ProjectionExpression !== null && { ProjectionExpression: input.ProjectionExpression }),
4360
- ...(input.ReturnConsumedCapacity !== undefined &&
4361
- input.ReturnConsumedCapacity !== null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
4362
- ...(input.ScanFilter !== undefined &&
4363
- input.ScanFilter !== null && { ScanFilter: serializeAws_json1_0FilterConditionMap(input.ScanFilter, context) }),
4364
- ...(input.Segment !== undefined && input.Segment !== null && { Segment: input.Segment }),
4365
- ...(input.Select !== undefined && input.Select !== null && { Select: input.Select }),
4366
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
4367
- ...(input.TotalSegments !== undefined && input.TotalSegments !== null && { TotalSegments: input.TotalSegments }),
4255
+ ...(input.FilterExpression != null && { FilterExpression: input.FilterExpression }),
4256
+ ...(input.IndexName != null && { IndexName: input.IndexName }),
4257
+ ...(input.Limit != null && { Limit: input.Limit }),
4258
+ ...(input.ProjectionExpression != null && { ProjectionExpression: input.ProjectionExpression }),
4259
+ ...(input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
4260
+ ...(input.ScanFilter != null && { ScanFilter: serializeAws_json1_0FilterConditionMap(input.ScanFilter, context) }),
4261
+ ...(input.Segment != null && { Segment: input.Segment }),
4262
+ ...(input.Select != null && { Select: input.Select }),
4263
+ ...(input.TableName != null && { TableName: input.TableName }),
4264
+ ...(input.TotalSegments != null && { TotalSegments: input.TotalSegments }),
4368
4265
  };
4369
4266
  };
4370
4267
  const serializeAws_json1_0SSESpecification = (input, context) => {
4371
4268
  return {
4372
- ...(input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }),
4373
- ...(input.KMSMasterKeyId !== undefined &&
4374
- input.KMSMasterKeyId !== null && { KMSMasterKeyId: input.KMSMasterKeyId }),
4375
- ...(input.SSEType !== undefined && input.SSEType !== null && { SSEType: input.SSEType }),
4269
+ ...(input.Enabled != null && { Enabled: input.Enabled }),
4270
+ ...(input.KMSMasterKeyId != null && { KMSMasterKeyId: input.KMSMasterKeyId }),
4271
+ ...(input.SSEType != null && { SSEType: input.SSEType }),
4376
4272
  };
4377
4273
  };
4378
4274
  const serializeAws_json1_0StreamSpecification = (input, context) => {
4379
4275
  return {
4380
- ...(input.StreamEnabled !== undefined && input.StreamEnabled !== null && { StreamEnabled: input.StreamEnabled }),
4381
- ...(input.StreamViewType !== undefined &&
4382
- input.StreamViewType !== null && { StreamViewType: input.StreamViewType }),
4276
+ ...(input.StreamEnabled != null && { StreamEnabled: input.StreamEnabled }),
4277
+ ...(input.StreamViewType != null && { StreamViewType: input.StreamViewType }),
4383
4278
  };
4384
4279
  };
4385
4280
  const serializeAws_json1_0StringSetAttributeValue = (input, context) => {
@@ -4394,8 +4289,8 @@ const serializeAws_json1_0StringSetAttributeValue = (input, context) => {
4394
4289
  };
4395
4290
  const serializeAws_json1_0Tag = (input, context) => {
4396
4291
  return {
4397
- ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
4398
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
4292
+ ...(input.Key != null && { Key: input.Key }),
4293
+ ...(input.Value != null && { Value: input.Value }),
4399
4294
  };
4400
4295
  };
4401
4296
  const serializeAws_json1_0TagKeyList = (input, context) => {
@@ -4420,19 +4315,19 @@ const serializeAws_json1_0TagList = (input, context) => {
4420
4315
  };
4421
4316
  const serializeAws_json1_0TagResourceInput = (input, context) => {
4422
4317
  return {
4423
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
4424
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
4318
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
4319
+ ...(input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
4425
4320
  };
4426
4321
  };
4427
4322
  const serializeAws_json1_0TimeToLiveSpecification = (input, context) => {
4428
4323
  return {
4429
- ...(input.AttributeName !== undefined && input.AttributeName !== null && { AttributeName: input.AttributeName }),
4430
- ...(input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }),
4324
+ ...(input.AttributeName != null && { AttributeName: input.AttributeName }),
4325
+ ...(input.Enabled != null && { Enabled: input.Enabled }),
4431
4326
  };
4432
4327
  };
4433
4328
  const serializeAws_json1_0TransactGetItem = (input, context) => {
4434
4329
  return {
4435
- ...(input.Get !== undefined && input.Get !== null && { Get: serializeAws_json1_0Get(input.Get, context) }),
4330
+ ...(input.Get != null && { Get: serializeAws_json1_0Get(input.Get, context) }),
4436
4331
  };
4437
4332
  };
4438
4333
  const serializeAws_json1_0TransactGetItemList = (input, context) => {
@@ -4447,25 +4342,20 @@ const serializeAws_json1_0TransactGetItemList = (input, context) => {
4447
4342
  };
4448
4343
  const serializeAws_json1_0TransactGetItemsInput = (input, context) => {
4449
4344
  return {
4450
- ...(input.ReturnConsumedCapacity !== undefined &&
4451
- input.ReturnConsumedCapacity !== null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
4452
- ...(input.TransactItems !== undefined &&
4453
- input.TransactItems !== null && {
4345
+ ...(input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
4346
+ ...(input.TransactItems != null && {
4454
4347
  TransactItems: serializeAws_json1_0TransactGetItemList(input.TransactItems, context),
4455
4348
  }),
4456
4349
  };
4457
4350
  };
4458
4351
  const serializeAws_json1_0TransactWriteItem = (input, context) => {
4459
4352
  return {
4460
- ...(input.ConditionCheck !== undefined &&
4461
- input.ConditionCheck !== null && {
4353
+ ...(input.ConditionCheck != null && {
4462
4354
  ConditionCheck: serializeAws_json1_0ConditionCheck(input.ConditionCheck, context),
4463
4355
  }),
4464
- ...(input.Delete !== undefined &&
4465
- input.Delete !== null && { Delete: serializeAws_json1_0Delete(input.Delete, context) }),
4466
- ...(input.Put !== undefined && input.Put !== null && { Put: serializeAws_json1_0Put(input.Put, context) }),
4467
- ...(input.Update !== undefined &&
4468
- input.Update !== null && { Update: serializeAws_json1_0Update(input.Update, context) }),
4356
+ ...(input.Delete != null && { Delete: serializeAws_json1_0Delete(input.Delete, context) }),
4357
+ ...(input.Put != null && { Put: serializeAws_json1_0Put(input.Put, context) }),
4358
+ ...(input.Update != null && { Update: serializeAws_json1_0Update(input.Update, context) }),
4469
4359
  };
4470
4360
  };
4471
4361
  const serializeAws_json1_0TransactWriteItemList = (input, context) => {
@@ -4482,218 +4372,177 @@ const serializeAws_json1_0TransactWriteItemsInput = (input, context) => {
4482
4372
  var _a;
4483
4373
  return {
4484
4374
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
4485
- ...(input.ReturnConsumedCapacity !== undefined &&
4486
- input.ReturnConsumedCapacity !== null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
4487
- ...(input.ReturnItemCollectionMetrics !== undefined &&
4488
- input.ReturnItemCollectionMetrics !== null && { ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics }),
4489
- ...(input.TransactItems !== undefined &&
4490
- input.TransactItems !== null && {
4375
+ ...(input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
4376
+ ...(input.ReturnItemCollectionMetrics != null && {
4377
+ ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics,
4378
+ }),
4379
+ ...(input.TransactItems != null && {
4491
4380
  TransactItems: serializeAws_json1_0TransactWriteItemList(input.TransactItems, context),
4492
4381
  }),
4493
4382
  };
4494
4383
  };
4495
4384
  const serializeAws_json1_0UntagResourceInput = (input, context) => {
4496
4385
  return {
4497
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
4498
- ...(input.TagKeys !== undefined &&
4499
- input.TagKeys !== null && { TagKeys: serializeAws_json1_0TagKeyList(input.TagKeys, context) }),
4386
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
4387
+ ...(input.TagKeys != null && { TagKeys: serializeAws_json1_0TagKeyList(input.TagKeys, context) }),
4500
4388
  };
4501
4389
  };
4502
4390
  const serializeAws_json1_0Update = (input, context) => {
4503
4391
  return {
4504
- ...(input.ConditionExpression !== undefined &&
4505
- input.ConditionExpression !== null && { ConditionExpression: input.ConditionExpression }),
4506
- ...(input.ExpressionAttributeNames !== undefined &&
4507
- input.ExpressionAttributeNames !== null && {
4392
+ ...(input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }),
4393
+ ...(input.ExpressionAttributeNames != null && {
4508
4394
  ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context),
4509
4395
  }),
4510
- ...(input.ExpressionAttributeValues !== undefined &&
4511
- input.ExpressionAttributeValues !== null && {
4396
+ ...(input.ExpressionAttributeValues != null && {
4512
4397
  ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context),
4513
4398
  }),
4514
- ...(input.Key !== undefined && input.Key !== null && { Key: serializeAws_json1_0Key(input.Key, context) }),
4515
- ...(input.ReturnValuesOnConditionCheckFailure !== undefined &&
4516
- input.ReturnValuesOnConditionCheckFailure !== null && {
4399
+ ...(input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }),
4400
+ ...(input.ReturnValuesOnConditionCheckFailure != null && {
4517
4401
  ReturnValuesOnConditionCheckFailure: input.ReturnValuesOnConditionCheckFailure,
4518
4402
  }),
4519
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
4520
- ...(input.UpdateExpression !== undefined &&
4521
- input.UpdateExpression !== null && { UpdateExpression: input.UpdateExpression }),
4403
+ ...(input.TableName != null && { TableName: input.TableName }),
4404
+ ...(input.UpdateExpression != null && { UpdateExpression: input.UpdateExpression }),
4522
4405
  };
4523
4406
  };
4524
4407
  const serializeAws_json1_0UpdateContinuousBackupsInput = (input, context) => {
4525
4408
  return {
4526
- ...(input.PointInTimeRecoverySpecification !== undefined &&
4527
- input.PointInTimeRecoverySpecification !== null && {
4409
+ ...(input.PointInTimeRecoverySpecification != null && {
4528
4410
  PointInTimeRecoverySpecification: serializeAws_json1_0PointInTimeRecoverySpecification(input.PointInTimeRecoverySpecification, context),
4529
4411
  }),
4530
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
4412
+ ...(input.TableName != null && { TableName: input.TableName }),
4531
4413
  };
4532
4414
  };
4533
4415
  const serializeAws_json1_0UpdateContributorInsightsInput = (input, context) => {
4534
4416
  return {
4535
- ...(input.ContributorInsightsAction !== undefined &&
4536
- input.ContributorInsightsAction !== null && { ContributorInsightsAction: input.ContributorInsightsAction }),
4537
- ...(input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName }),
4538
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
4417
+ ...(input.ContributorInsightsAction != null && { ContributorInsightsAction: input.ContributorInsightsAction }),
4418
+ ...(input.IndexName != null && { IndexName: input.IndexName }),
4419
+ ...(input.TableName != null && { TableName: input.TableName }),
4539
4420
  };
4540
4421
  };
4541
4422
  const serializeAws_json1_0UpdateGlobalSecondaryIndexAction = (input, context) => {
4542
4423
  return {
4543
- ...(input.IndexName !== undefined && input.IndexName !== null && { IndexName: input.IndexName }),
4544
- ...(input.ProvisionedThroughput !== undefined &&
4545
- input.ProvisionedThroughput !== null && {
4424
+ ...(input.IndexName != null && { IndexName: input.IndexName }),
4425
+ ...(input.ProvisionedThroughput != null && {
4546
4426
  ProvisionedThroughput: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughput, context),
4547
4427
  }),
4548
4428
  };
4549
4429
  };
4550
4430
  const serializeAws_json1_0UpdateGlobalTableInput = (input, context) => {
4551
4431
  return {
4552
- ...(input.GlobalTableName !== undefined &&
4553
- input.GlobalTableName !== null && { GlobalTableName: input.GlobalTableName }),
4554
- ...(input.ReplicaUpdates !== undefined &&
4555
- input.ReplicaUpdates !== null && {
4432
+ ...(input.GlobalTableName != null && { GlobalTableName: input.GlobalTableName }),
4433
+ ...(input.ReplicaUpdates != null && {
4556
4434
  ReplicaUpdates: serializeAws_json1_0ReplicaUpdateList(input.ReplicaUpdates, context),
4557
4435
  }),
4558
4436
  };
4559
4437
  };
4560
4438
  const serializeAws_json1_0UpdateGlobalTableSettingsInput = (input, context) => {
4561
4439
  return {
4562
- ...(input.GlobalTableBillingMode !== undefined &&
4563
- input.GlobalTableBillingMode !== null && { GlobalTableBillingMode: input.GlobalTableBillingMode }),
4564
- ...(input.GlobalTableGlobalSecondaryIndexSettingsUpdate !== undefined &&
4565
- input.GlobalTableGlobalSecondaryIndexSettingsUpdate !== null && {
4440
+ ...(input.GlobalTableBillingMode != null && { GlobalTableBillingMode: input.GlobalTableBillingMode }),
4441
+ ...(input.GlobalTableGlobalSecondaryIndexSettingsUpdate != null && {
4566
4442
  GlobalTableGlobalSecondaryIndexSettingsUpdate: serializeAws_json1_0GlobalTableGlobalSecondaryIndexSettingsUpdateList(input.GlobalTableGlobalSecondaryIndexSettingsUpdate, context),
4567
4443
  }),
4568
- ...(input.GlobalTableName !== undefined &&
4569
- input.GlobalTableName !== null && { GlobalTableName: input.GlobalTableName }),
4570
- ...(input.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate !== undefined &&
4571
- input.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate !== null && {
4444
+ ...(input.GlobalTableName != null && { GlobalTableName: input.GlobalTableName }),
4445
+ ...(input.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate != null && {
4572
4446
  GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate, context),
4573
4447
  }),
4574
- ...(input.GlobalTableProvisionedWriteCapacityUnits !== undefined &&
4575
- input.GlobalTableProvisionedWriteCapacityUnits !== null && {
4448
+ ...(input.GlobalTableProvisionedWriteCapacityUnits != null && {
4576
4449
  GlobalTableProvisionedWriteCapacityUnits: input.GlobalTableProvisionedWriteCapacityUnits,
4577
4450
  }),
4578
- ...(input.ReplicaSettingsUpdate !== undefined &&
4579
- input.ReplicaSettingsUpdate !== null && {
4451
+ ...(input.ReplicaSettingsUpdate != null && {
4580
4452
  ReplicaSettingsUpdate: serializeAws_json1_0ReplicaSettingsUpdateList(input.ReplicaSettingsUpdate, context),
4581
4453
  }),
4582
4454
  };
4583
4455
  };
4584
4456
  const serializeAws_json1_0UpdateItemInput = (input, context) => {
4585
4457
  return {
4586
- ...(input.AttributeUpdates !== undefined &&
4587
- input.AttributeUpdates !== null && {
4458
+ ...(input.AttributeUpdates != null && {
4588
4459
  AttributeUpdates: serializeAws_json1_0AttributeUpdates(input.AttributeUpdates, context),
4589
4460
  }),
4590
- ...(input.ConditionExpression !== undefined &&
4591
- input.ConditionExpression !== null && { ConditionExpression: input.ConditionExpression }),
4592
- ...(input.ConditionalOperator !== undefined &&
4593
- input.ConditionalOperator !== null && { ConditionalOperator: input.ConditionalOperator }),
4594
- ...(input.Expected !== undefined &&
4595
- input.Expected !== null && { Expected: serializeAws_json1_0ExpectedAttributeMap(input.Expected, context) }),
4596
- ...(input.ExpressionAttributeNames !== undefined &&
4597
- input.ExpressionAttributeNames !== null && {
4461
+ ...(input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }),
4462
+ ...(input.ConditionalOperator != null && { ConditionalOperator: input.ConditionalOperator }),
4463
+ ...(input.Expected != null && { Expected: serializeAws_json1_0ExpectedAttributeMap(input.Expected, context) }),
4464
+ ...(input.ExpressionAttributeNames != null && {
4598
4465
  ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context),
4599
4466
  }),
4600
- ...(input.ExpressionAttributeValues !== undefined &&
4601
- input.ExpressionAttributeValues !== null && {
4467
+ ...(input.ExpressionAttributeValues != null && {
4602
4468
  ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context),
4603
4469
  }),
4604
- ...(input.Key !== undefined && input.Key !== null && { Key: serializeAws_json1_0Key(input.Key, context) }),
4605
- ...(input.ReturnConsumedCapacity !== undefined &&
4606
- input.ReturnConsumedCapacity !== null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
4607
- ...(input.ReturnItemCollectionMetrics !== undefined &&
4608
- input.ReturnItemCollectionMetrics !== null && { ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics }),
4609
- ...(input.ReturnValues !== undefined && input.ReturnValues !== null && { ReturnValues: input.ReturnValues }),
4610
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
4611
- ...(input.UpdateExpression !== undefined &&
4612
- input.UpdateExpression !== null && { UpdateExpression: input.UpdateExpression }),
4470
+ ...(input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }),
4471
+ ...(input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }),
4472
+ ...(input.ReturnItemCollectionMetrics != null && {
4473
+ ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics,
4474
+ }),
4475
+ ...(input.ReturnValues != null && { ReturnValues: input.ReturnValues }),
4476
+ ...(input.TableName != null && { TableName: input.TableName }),
4477
+ ...(input.UpdateExpression != null && { UpdateExpression: input.UpdateExpression }),
4613
4478
  };
4614
4479
  };
4615
4480
  const serializeAws_json1_0UpdateReplicationGroupMemberAction = (input, context) => {
4616
4481
  return {
4617
- ...(input.GlobalSecondaryIndexes !== undefined &&
4618
- input.GlobalSecondaryIndexes !== null && {
4482
+ ...(input.GlobalSecondaryIndexes != null && {
4619
4483
  GlobalSecondaryIndexes: serializeAws_json1_0ReplicaGlobalSecondaryIndexList(input.GlobalSecondaryIndexes, context),
4620
4484
  }),
4621
- ...(input.KMSMasterKeyId !== undefined &&
4622
- input.KMSMasterKeyId !== null && { KMSMasterKeyId: input.KMSMasterKeyId }),
4623
- ...(input.ProvisionedThroughputOverride !== undefined &&
4624
- input.ProvisionedThroughputOverride !== null && {
4485
+ ...(input.KMSMasterKeyId != null && { KMSMasterKeyId: input.KMSMasterKeyId }),
4486
+ ...(input.ProvisionedThroughputOverride != null && {
4625
4487
  ProvisionedThroughputOverride: serializeAws_json1_0ProvisionedThroughputOverride(input.ProvisionedThroughputOverride, context),
4626
4488
  }),
4627
- ...(input.RegionName !== undefined && input.RegionName !== null && { RegionName: input.RegionName }),
4628
- ...(input.TableClassOverride !== undefined &&
4629
- input.TableClassOverride !== null && { TableClassOverride: input.TableClassOverride }),
4489
+ ...(input.RegionName != null && { RegionName: input.RegionName }),
4490
+ ...(input.TableClassOverride != null && { TableClassOverride: input.TableClassOverride }),
4630
4491
  };
4631
4492
  };
4632
4493
  const serializeAws_json1_0UpdateTableInput = (input, context) => {
4633
4494
  return {
4634
- ...(input.AttributeDefinitions !== undefined &&
4635
- input.AttributeDefinitions !== null && {
4495
+ ...(input.AttributeDefinitions != null && {
4636
4496
  AttributeDefinitions: serializeAws_json1_0AttributeDefinitions(input.AttributeDefinitions, context),
4637
4497
  }),
4638
- ...(input.BillingMode !== undefined && input.BillingMode !== null && { BillingMode: input.BillingMode }),
4639
- ...(input.GlobalSecondaryIndexUpdates !== undefined &&
4640
- input.GlobalSecondaryIndexUpdates !== null && {
4498
+ ...(input.BillingMode != null && { BillingMode: input.BillingMode }),
4499
+ ...(input.GlobalSecondaryIndexUpdates != null && {
4641
4500
  GlobalSecondaryIndexUpdates: serializeAws_json1_0GlobalSecondaryIndexUpdateList(input.GlobalSecondaryIndexUpdates, context),
4642
4501
  }),
4643
- ...(input.ProvisionedThroughput !== undefined &&
4644
- input.ProvisionedThroughput !== null && {
4502
+ ...(input.ProvisionedThroughput != null && {
4645
4503
  ProvisionedThroughput: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughput, context),
4646
4504
  }),
4647
- ...(input.ReplicaUpdates !== undefined &&
4648
- input.ReplicaUpdates !== null && {
4505
+ ...(input.ReplicaUpdates != null && {
4649
4506
  ReplicaUpdates: serializeAws_json1_0ReplicationGroupUpdateList(input.ReplicaUpdates, context),
4650
4507
  }),
4651
- ...(input.SSESpecification !== undefined &&
4652
- input.SSESpecification !== null && {
4508
+ ...(input.SSESpecification != null && {
4653
4509
  SSESpecification: serializeAws_json1_0SSESpecification(input.SSESpecification, context),
4654
4510
  }),
4655
- ...(input.StreamSpecification !== undefined &&
4656
- input.StreamSpecification !== null && {
4511
+ ...(input.StreamSpecification != null && {
4657
4512
  StreamSpecification: serializeAws_json1_0StreamSpecification(input.StreamSpecification, context),
4658
4513
  }),
4659
- ...(input.TableClass !== undefined && input.TableClass !== null && { TableClass: input.TableClass }),
4660
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
4514
+ ...(input.TableClass != null && { TableClass: input.TableClass }),
4515
+ ...(input.TableName != null && { TableName: input.TableName }),
4661
4516
  };
4662
4517
  };
4663
4518
  const serializeAws_json1_0UpdateTableReplicaAutoScalingInput = (input, context) => {
4664
4519
  return {
4665
- ...(input.GlobalSecondaryIndexUpdates !== undefined &&
4666
- input.GlobalSecondaryIndexUpdates !== null && {
4520
+ ...(input.GlobalSecondaryIndexUpdates != null && {
4667
4521
  GlobalSecondaryIndexUpdates: serializeAws_json1_0GlobalSecondaryIndexAutoScalingUpdateList(input.GlobalSecondaryIndexUpdates, context),
4668
4522
  }),
4669
- ...(input.ProvisionedWriteCapacityAutoScalingUpdate !== undefined &&
4670
- input.ProvisionedWriteCapacityAutoScalingUpdate !== null && {
4523
+ ...(input.ProvisionedWriteCapacityAutoScalingUpdate != null && {
4671
4524
  ProvisionedWriteCapacityAutoScalingUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ProvisionedWriteCapacityAutoScalingUpdate, context),
4672
4525
  }),
4673
- ...(input.ReplicaUpdates !== undefined &&
4674
- input.ReplicaUpdates !== null && {
4526
+ ...(input.ReplicaUpdates != null && {
4675
4527
  ReplicaUpdates: serializeAws_json1_0ReplicaAutoScalingUpdateList(input.ReplicaUpdates, context),
4676
4528
  }),
4677
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
4529
+ ...(input.TableName != null && { TableName: input.TableName }),
4678
4530
  };
4679
4531
  };
4680
4532
  const serializeAws_json1_0UpdateTimeToLiveInput = (input, context) => {
4681
4533
  return {
4682
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
4683
- ...(input.TimeToLiveSpecification !== undefined &&
4684
- input.TimeToLiveSpecification !== null && {
4534
+ ...(input.TableName != null && { TableName: input.TableName }),
4535
+ ...(input.TimeToLiveSpecification != null && {
4685
4536
  TimeToLiveSpecification: serializeAws_json1_0TimeToLiveSpecification(input.TimeToLiveSpecification, context),
4686
4537
  }),
4687
4538
  };
4688
4539
  };
4689
4540
  const serializeAws_json1_0WriteRequest = (input, context) => {
4690
4541
  return {
4691
- ...(input.DeleteRequest !== undefined &&
4692
- input.DeleteRequest !== null && {
4542
+ ...(input.DeleteRequest != null && {
4693
4543
  DeleteRequest: serializeAws_json1_0DeleteRequest(input.DeleteRequest, context),
4694
4544
  }),
4695
- ...(input.PutRequest !== undefined &&
4696
- input.PutRequest !== null && { PutRequest: serializeAws_json1_0PutRequest(input.PutRequest, context) }),
4545
+ ...(input.PutRequest != null && { PutRequest: serializeAws_json1_0PutRequest(input.PutRequest, context) }),
4697
4546
  };
4698
4547
  };
4699
4548
  const serializeAws_json1_0WriteRequests = (input, context) => {
@@ -4709,7 +4558,7 @@ const serializeAws_json1_0WriteRequests = (input, context) => {
4709
4558
  const deserializeAws_json1_0ArchivalSummary = (output, context) => {
4710
4559
  return {
4711
4560
  ArchivalBackupArn: (0, smithy_client_1.expectString)(output.ArchivalBackupArn),
4712
- ArchivalDateTime: output.ArchivalDateTime !== undefined && output.ArchivalDateTime !== null
4561
+ ArchivalDateTime: output.ArchivalDateTime != null
4713
4562
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ArchivalDateTime)))
4714
4563
  : undefined,
4715
4564
  ArchivalReason: (0, smithy_client_1.expectString)(output.ArchivalReason),
@@ -4802,8 +4651,7 @@ const deserializeAws_json1_0AttributeValue = (output, context) => {
4802
4651
  const deserializeAws_json1_0AutoScalingPolicyDescription = (output, context) => {
4803
4652
  return {
4804
4653
  PolicyName: (0, smithy_client_1.expectString)(output.PolicyName),
4805
- TargetTrackingScalingPolicyConfiguration: output.TargetTrackingScalingPolicyConfiguration !== undefined &&
4806
- output.TargetTrackingScalingPolicyConfiguration !== null
4654
+ TargetTrackingScalingPolicyConfiguration: output.TargetTrackingScalingPolicyConfiguration != null
4807
4655
  ? deserializeAws_json1_0AutoScalingTargetTrackingScalingPolicyConfigurationDescription(output.TargetTrackingScalingPolicyConfiguration, context)
4808
4656
  : undefined,
4809
4657
  };
@@ -4825,7 +4673,7 @@ const deserializeAws_json1_0AutoScalingSettingsDescription = (output, context) =
4825
4673
  AutoScalingRoleArn: (0, smithy_client_1.expectString)(output.AutoScalingRoleArn),
4826
4674
  MaximumUnits: (0, smithy_client_1.expectLong)(output.MaximumUnits),
4827
4675
  MinimumUnits: (0, smithy_client_1.expectLong)(output.MinimumUnits),
4828
- ScalingPolicies: output.ScalingPolicies !== undefined && output.ScalingPolicies !== null
4676
+ ScalingPolicies: output.ScalingPolicies != null
4829
4677
  ? deserializeAws_json1_0AutoScalingPolicyDescriptionList(output.ScalingPolicies, context)
4830
4678
  : undefined,
4831
4679
  };
@@ -4840,13 +4688,11 @@ const deserializeAws_json1_0AutoScalingTargetTrackingScalingPolicyConfigurationD
4840
4688
  };
4841
4689
  const deserializeAws_json1_0BackupDescription = (output, context) => {
4842
4690
  return {
4843
- BackupDetails: output.BackupDetails !== undefined && output.BackupDetails !== null
4844
- ? deserializeAws_json1_0BackupDetails(output.BackupDetails, context)
4845
- : undefined,
4846
- SourceTableDetails: output.SourceTableDetails !== undefined && output.SourceTableDetails !== null
4691
+ BackupDetails: output.BackupDetails != null ? deserializeAws_json1_0BackupDetails(output.BackupDetails, context) : undefined,
4692
+ SourceTableDetails: output.SourceTableDetails != null
4847
4693
  ? deserializeAws_json1_0SourceTableDetails(output.SourceTableDetails, context)
4848
4694
  : undefined,
4849
- SourceTableFeatureDetails: output.SourceTableFeatureDetails !== undefined && output.SourceTableFeatureDetails !== null
4695
+ SourceTableFeatureDetails: output.SourceTableFeatureDetails != null
4850
4696
  ? deserializeAws_json1_0SourceTableFeatureDetails(output.SourceTableFeatureDetails, context)
4851
4697
  : undefined,
4852
4698
  };
@@ -4854,10 +4700,10 @@ const deserializeAws_json1_0BackupDescription = (output, context) => {
4854
4700
  const deserializeAws_json1_0BackupDetails = (output, context) => {
4855
4701
  return {
4856
4702
  BackupArn: (0, smithy_client_1.expectString)(output.BackupArn),
4857
- BackupCreationDateTime: output.BackupCreationDateTime !== undefined && output.BackupCreationDateTime !== null
4703
+ BackupCreationDateTime: output.BackupCreationDateTime != null
4858
4704
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.BackupCreationDateTime)))
4859
4705
  : undefined,
4860
- BackupExpiryDateTime: output.BackupExpiryDateTime !== undefined && output.BackupExpiryDateTime !== null
4706
+ BackupExpiryDateTime: output.BackupExpiryDateTime != null
4861
4707
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.BackupExpiryDateTime)))
4862
4708
  : undefined,
4863
4709
  BackupName: (0, smithy_client_1.expectString)(output.BackupName),
@@ -4890,10 +4736,10 @@ const deserializeAws_json1_0BackupSummaries = (output, context) => {
4890
4736
  const deserializeAws_json1_0BackupSummary = (output, context) => {
4891
4737
  return {
4892
4738
  BackupArn: (0, smithy_client_1.expectString)(output.BackupArn),
4893
- BackupCreationDateTime: output.BackupCreationDateTime !== undefined && output.BackupCreationDateTime !== null
4739
+ BackupCreationDateTime: output.BackupCreationDateTime != null
4894
4740
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.BackupCreationDateTime)))
4895
4741
  : undefined,
4896
- BackupExpiryDateTime: output.BackupExpiryDateTime !== undefined && output.BackupExpiryDateTime !== null
4742
+ BackupExpiryDateTime: output.BackupExpiryDateTime != null
4897
4743
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.BackupExpiryDateTime)))
4898
4744
  : undefined,
4899
4745
  BackupName: (0, smithy_client_1.expectString)(output.BackupName),
@@ -4907,23 +4753,19 @@ const deserializeAws_json1_0BackupSummary = (output, context) => {
4907
4753
  };
4908
4754
  const deserializeAws_json1_0BatchExecuteStatementOutput = (output, context) => {
4909
4755
  return {
4910
- ConsumedCapacity: output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null
4756
+ ConsumedCapacity: output.ConsumedCapacity != null
4911
4757
  ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context)
4912
4758
  : undefined,
4913
- Responses: output.Responses !== undefined && output.Responses !== null
4914
- ? deserializeAws_json1_0PartiQLBatchResponse(output.Responses, context)
4915
- : undefined,
4759
+ Responses: output.Responses != null ? deserializeAws_json1_0PartiQLBatchResponse(output.Responses, context) : undefined,
4916
4760
  };
4917
4761
  };
4918
4762
  const deserializeAws_json1_0BatchGetItemOutput = (output, context) => {
4919
4763
  return {
4920
- ConsumedCapacity: output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null
4764
+ ConsumedCapacity: output.ConsumedCapacity != null
4921
4765
  ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context)
4922
4766
  : undefined,
4923
- Responses: output.Responses !== undefined && output.Responses !== null
4924
- ? deserializeAws_json1_0BatchGetResponseMap(output.Responses, context)
4925
- : undefined,
4926
- UnprocessedKeys: output.UnprocessedKeys !== undefined && output.UnprocessedKeys !== null
4767
+ Responses: output.Responses != null ? deserializeAws_json1_0BatchGetResponseMap(output.Responses, context) : undefined,
4768
+ UnprocessedKeys: output.UnprocessedKeys != null
4927
4769
  ? deserializeAws_json1_0BatchGetRequestMap(output.UnprocessedKeys, context)
4928
4770
  : undefined,
4929
4771
  };
@@ -4958,24 +4800,20 @@ const deserializeAws_json1_0BatchStatementError = (output, context) => {
4958
4800
  };
4959
4801
  const deserializeAws_json1_0BatchStatementResponse = (output, context) => {
4960
4802
  return {
4961
- Error: output.Error !== undefined && output.Error !== null
4962
- ? deserializeAws_json1_0BatchStatementError(output.Error, context)
4963
- : undefined,
4964
- Item: output.Item !== undefined && output.Item !== null
4965
- ? deserializeAws_json1_0AttributeMap(output.Item, context)
4966
- : undefined,
4803
+ Error: output.Error != null ? deserializeAws_json1_0BatchStatementError(output.Error, context) : undefined,
4804
+ Item: output.Item != null ? deserializeAws_json1_0AttributeMap(output.Item, context) : undefined,
4967
4805
  TableName: (0, smithy_client_1.expectString)(output.TableName),
4968
4806
  };
4969
4807
  };
4970
4808
  const deserializeAws_json1_0BatchWriteItemOutput = (output, context) => {
4971
4809
  return {
4972
- ConsumedCapacity: output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null
4810
+ ConsumedCapacity: output.ConsumedCapacity != null
4973
4811
  ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context)
4974
4812
  : undefined,
4975
- ItemCollectionMetrics: output.ItemCollectionMetrics !== undefined && output.ItemCollectionMetrics !== null
4813
+ ItemCollectionMetrics: output.ItemCollectionMetrics != null
4976
4814
  ? deserializeAws_json1_0ItemCollectionMetricsPerTable(output.ItemCollectionMetrics, context)
4977
4815
  : undefined,
4978
- UnprocessedItems: output.UnprocessedItems !== undefined && output.UnprocessedItems !== null
4816
+ UnprocessedItems: output.UnprocessedItems != null
4979
4817
  ? deserializeAws_json1_0BatchWriteItemRequestMap(output.UnprocessedItems, context)
4980
4818
  : undefined,
4981
4819
  };
@@ -4994,7 +4832,7 @@ const deserializeAws_json1_0BatchWriteItemRequestMap = (output, context) => {
4994
4832
  const deserializeAws_json1_0BillingModeSummary = (output, context) => {
4995
4833
  return {
4996
4834
  BillingMode: (0, smithy_client_1.expectString)(output.BillingMode),
4997
- LastUpdateToPayPerRequestDateTime: output.LastUpdateToPayPerRequestDateTime !== undefined && output.LastUpdateToPayPerRequestDateTime !== null
4835
+ LastUpdateToPayPerRequestDateTime: output.LastUpdateToPayPerRequestDateTime != null
4998
4836
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateToPayPerRequestDateTime)))
4999
4837
  : undefined,
5000
4838
  };
@@ -5013,9 +4851,7 @@ const deserializeAws_json1_0BinarySetAttributeValue = (output, context) => {
5013
4851
  const deserializeAws_json1_0CancellationReason = (output, context) => {
5014
4852
  return {
5015
4853
  Code: (0, smithy_client_1.expectString)(output.Code),
5016
- Item: output.Item !== undefined && output.Item !== null
5017
- ? deserializeAws_json1_0AttributeMap(output.Item, context)
5018
- : undefined,
4854
+ Item: output.Item != null ? deserializeAws_json1_0AttributeMap(output.Item, context) : undefined,
5019
4855
  Message: (0, smithy_client_1.expectString)(output.Message),
5020
4856
  };
5021
4857
  };
@@ -5045,16 +4881,14 @@ const deserializeAws_json1_0ConditionalCheckFailedException = (output, context)
5045
4881
  const deserializeAws_json1_0ConsumedCapacity = (output, context) => {
5046
4882
  return {
5047
4883
  CapacityUnits: (0, smithy_client_1.limitedParseDouble)(output.CapacityUnits),
5048
- GlobalSecondaryIndexes: output.GlobalSecondaryIndexes !== undefined && output.GlobalSecondaryIndexes !== null
4884
+ GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null
5049
4885
  ? deserializeAws_json1_0SecondaryIndexesCapacityMap(output.GlobalSecondaryIndexes, context)
5050
4886
  : undefined,
5051
- LocalSecondaryIndexes: output.LocalSecondaryIndexes !== undefined && output.LocalSecondaryIndexes !== null
4887
+ LocalSecondaryIndexes: output.LocalSecondaryIndexes != null
5052
4888
  ? deserializeAws_json1_0SecondaryIndexesCapacityMap(output.LocalSecondaryIndexes, context)
5053
4889
  : undefined,
5054
4890
  ReadCapacityUnits: (0, smithy_client_1.limitedParseDouble)(output.ReadCapacityUnits),
5055
- Table: output.Table !== undefined && output.Table !== null
5056
- ? deserializeAws_json1_0Capacity(output.Table, context)
5057
- : undefined,
4891
+ Table: output.Table != null ? deserializeAws_json1_0Capacity(output.Table, context) : undefined,
5058
4892
  TableName: (0, smithy_client_1.expectString)(output.TableName),
5059
4893
  WriteCapacityUnits: (0, smithy_client_1.limitedParseDouble)(output.WriteCapacityUnits),
5060
4894
  };
@@ -5073,7 +4907,7 @@ const deserializeAws_json1_0ConsumedCapacityMultiple = (output, context) => {
5073
4907
  const deserializeAws_json1_0ContinuousBackupsDescription = (output, context) => {
5074
4908
  return {
5075
4909
  ContinuousBackupsStatus: (0, smithy_client_1.expectString)(output.ContinuousBackupsStatus),
5076
- PointInTimeRecoveryDescription: output.PointInTimeRecoveryDescription !== undefined && output.PointInTimeRecoveryDescription !== null
4910
+ PointInTimeRecoveryDescription: output.PointInTimeRecoveryDescription != null
5077
4911
  ? deserializeAws_json1_0PointInTimeRecoveryDescription(output.PointInTimeRecoveryDescription, context)
5078
4912
  : undefined,
5079
4913
  };
@@ -5114,82 +4948,78 @@ const deserializeAws_json1_0ContributorInsightsSummary = (output, context) => {
5114
4948
  };
5115
4949
  const deserializeAws_json1_0CreateBackupOutput = (output, context) => {
5116
4950
  return {
5117
- BackupDetails: output.BackupDetails !== undefined && output.BackupDetails !== null
5118
- ? deserializeAws_json1_0BackupDetails(output.BackupDetails, context)
5119
- : undefined,
4951
+ BackupDetails: output.BackupDetails != null ? deserializeAws_json1_0BackupDetails(output.BackupDetails, context) : undefined,
5120
4952
  };
5121
4953
  };
5122
4954
  const deserializeAws_json1_0CreateGlobalTableOutput = (output, context) => {
5123
4955
  return {
5124
- GlobalTableDescription: output.GlobalTableDescription !== undefined && output.GlobalTableDescription !== null
4956
+ GlobalTableDescription: output.GlobalTableDescription != null
5125
4957
  ? deserializeAws_json1_0GlobalTableDescription(output.GlobalTableDescription, context)
5126
4958
  : undefined,
5127
4959
  };
5128
4960
  };
5129
4961
  const deserializeAws_json1_0CreateTableOutput = (output, context) => {
5130
4962
  return {
5131
- TableDescription: output.TableDescription !== undefined && output.TableDescription !== null
4963
+ TableDescription: output.TableDescription != null
5132
4964
  ? deserializeAws_json1_0TableDescription(output.TableDescription, context)
5133
4965
  : undefined,
5134
4966
  };
5135
4967
  };
5136
4968
  const deserializeAws_json1_0DeleteBackupOutput = (output, context) => {
5137
4969
  return {
5138
- BackupDescription: output.BackupDescription !== undefined && output.BackupDescription !== null
4970
+ BackupDescription: output.BackupDescription != null
5139
4971
  ? deserializeAws_json1_0BackupDescription(output.BackupDescription, context)
5140
4972
  : undefined,
5141
4973
  };
5142
4974
  };
5143
4975
  const deserializeAws_json1_0DeleteItemOutput = (output, context) => {
5144
4976
  return {
5145
- Attributes: output.Attributes !== undefined && output.Attributes !== null
5146
- ? deserializeAws_json1_0AttributeMap(output.Attributes, context)
5147
- : undefined,
5148
- ConsumedCapacity: output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null
4977
+ Attributes: output.Attributes != null ? deserializeAws_json1_0AttributeMap(output.Attributes, context) : undefined,
4978
+ ConsumedCapacity: output.ConsumedCapacity != null
5149
4979
  ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context)
5150
4980
  : undefined,
5151
- ItemCollectionMetrics: output.ItemCollectionMetrics !== undefined && output.ItemCollectionMetrics !== null
4981
+ ItemCollectionMetrics: output.ItemCollectionMetrics != null
5152
4982
  ? deserializeAws_json1_0ItemCollectionMetrics(output.ItemCollectionMetrics, context)
5153
4983
  : undefined,
5154
4984
  };
5155
4985
  };
5156
4986
  const deserializeAws_json1_0DeleteRequest = (output, context) => {
5157
4987
  return {
5158
- Key: output.Key !== undefined && output.Key !== null ? deserializeAws_json1_0Key(output.Key, context) : undefined,
4988
+ Key: output.Key != null ? deserializeAws_json1_0Key(output.Key, context) : undefined,
5159
4989
  };
5160
4990
  };
5161
4991
  const deserializeAws_json1_0DeleteTableOutput = (output, context) => {
5162
4992
  return {
5163
- TableDescription: output.TableDescription !== undefined && output.TableDescription !== null
4993
+ TableDescription: output.TableDescription != null
5164
4994
  ? deserializeAws_json1_0TableDescription(output.TableDescription, context)
5165
4995
  : undefined,
5166
4996
  };
5167
4997
  };
5168
4998
  const deserializeAws_json1_0DescribeBackupOutput = (output, context) => {
5169
4999
  return {
5170
- BackupDescription: output.BackupDescription !== undefined && output.BackupDescription !== null
5000
+ BackupDescription: output.BackupDescription != null
5171
5001
  ? deserializeAws_json1_0BackupDescription(output.BackupDescription, context)
5172
5002
  : undefined,
5173
5003
  };
5174
5004
  };
5175
5005
  const deserializeAws_json1_0DescribeContinuousBackupsOutput = (output, context) => {
5176
5006
  return {
5177
- ContinuousBackupsDescription: output.ContinuousBackupsDescription !== undefined && output.ContinuousBackupsDescription !== null
5007
+ ContinuousBackupsDescription: output.ContinuousBackupsDescription != null
5178
5008
  ? deserializeAws_json1_0ContinuousBackupsDescription(output.ContinuousBackupsDescription, context)
5179
5009
  : undefined,
5180
5010
  };
5181
5011
  };
5182
5012
  const deserializeAws_json1_0DescribeContributorInsightsOutput = (output, context) => {
5183
5013
  return {
5184
- ContributorInsightsRuleList: output.ContributorInsightsRuleList !== undefined && output.ContributorInsightsRuleList !== null
5014
+ ContributorInsightsRuleList: output.ContributorInsightsRuleList != null
5185
5015
  ? deserializeAws_json1_0ContributorInsightsRuleList(output.ContributorInsightsRuleList, context)
5186
5016
  : undefined,
5187
5017
  ContributorInsightsStatus: (0, smithy_client_1.expectString)(output.ContributorInsightsStatus),
5188
- FailureException: output.FailureException !== undefined && output.FailureException !== null
5018
+ FailureException: output.FailureException != null
5189
5019
  ? deserializeAws_json1_0FailureException(output.FailureException, context)
5190
5020
  : undefined,
5191
5021
  IndexName: (0, smithy_client_1.expectString)(output.IndexName),
5192
- LastUpdateDateTime: output.LastUpdateDateTime !== undefined && output.LastUpdateDateTime !== null
5022
+ LastUpdateDateTime: output.LastUpdateDateTime != null
5193
5023
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateDateTime)))
5194
5024
  : undefined,
5195
5025
  TableName: (0, smithy_client_1.expectString)(output.TableName),
@@ -5197,21 +5027,19 @@ const deserializeAws_json1_0DescribeContributorInsightsOutput = (output, context
5197
5027
  };
5198
5028
  const deserializeAws_json1_0DescribeEndpointsResponse = (output, context) => {
5199
5029
  return {
5200
- Endpoints: output.Endpoints !== undefined && output.Endpoints !== null
5201
- ? deserializeAws_json1_0Endpoints(output.Endpoints, context)
5202
- : undefined,
5030
+ Endpoints: output.Endpoints != null ? deserializeAws_json1_0Endpoints(output.Endpoints, context) : undefined,
5203
5031
  };
5204
5032
  };
5205
5033
  const deserializeAws_json1_0DescribeExportOutput = (output, context) => {
5206
5034
  return {
5207
- ExportDescription: output.ExportDescription !== undefined && output.ExportDescription !== null
5035
+ ExportDescription: output.ExportDescription != null
5208
5036
  ? deserializeAws_json1_0ExportDescription(output.ExportDescription, context)
5209
5037
  : undefined,
5210
5038
  };
5211
5039
  };
5212
5040
  const deserializeAws_json1_0DescribeGlobalTableOutput = (output, context) => {
5213
5041
  return {
5214
- GlobalTableDescription: output.GlobalTableDescription !== undefined && output.GlobalTableDescription !== null
5042
+ GlobalTableDescription: output.GlobalTableDescription != null
5215
5043
  ? deserializeAws_json1_0GlobalTableDescription(output.GlobalTableDescription, context)
5216
5044
  : undefined,
5217
5045
  };
@@ -5219,14 +5047,14 @@ const deserializeAws_json1_0DescribeGlobalTableOutput = (output, context) => {
5219
5047
  const deserializeAws_json1_0DescribeGlobalTableSettingsOutput = (output, context) => {
5220
5048
  return {
5221
5049
  GlobalTableName: (0, smithy_client_1.expectString)(output.GlobalTableName),
5222
- ReplicaSettings: output.ReplicaSettings !== undefined && output.ReplicaSettings !== null
5050
+ ReplicaSettings: output.ReplicaSettings != null
5223
5051
  ? deserializeAws_json1_0ReplicaSettingsDescriptionList(output.ReplicaSettings, context)
5224
5052
  : undefined,
5225
5053
  };
5226
5054
  };
5227
5055
  const deserializeAws_json1_0DescribeKinesisStreamingDestinationOutput = (output, context) => {
5228
5056
  return {
5229
- KinesisDataStreamDestinations: output.KinesisDataStreamDestinations !== undefined && output.KinesisDataStreamDestinations !== null
5057
+ KinesisDataStreamDestinations: output.KinesisDataStreamDestinations != null
5230
5058
  ? deserializeAws_json1_0KinesisDataStreamDestinations(output.KinesisDataStreamDestinations, context)
5231
5059
  : undefined,
5232
5060
  TableName: (0, smithy_client_1.expectString)(output.TableName),
@@ -5242,21 +5070,19 @@ const deserializeAws_json1_0DescribeLimitsOutput = (output, context) => {
5242
5070
  };
5243
5071
  const deserializeAws_json1_0DescribeTableOutput = (output, context) => {
5244
5072
  return {
5245
- Table: output.Table !== undefined && output.Table !== null
5246
- ? deserializeAws_json1_0TableDescription(output.Table, context)
5247
- : undefined,
5073
+ Table: output.Table != null ? deserializeAws_json1_0TableDescription(output.Table, context) : undefined,
5248
5074
  };
5249
5075
  };
5250
5076
  const deserializeAws_json1_0DescribeTableReplicaAutoScalingOutput = (output, context) => {
5251
5077
  return {
5252
- TableAutoScalingDescription: output.TableAutoScalingDescription !== undefined && output.TableAutoScalingDescription !== null
5078
+ TableAutoScalingDescription: output.TableAutoScalingDescription != null
5253
5079
  ? deserializeAws_json1_0TableAutoScalingDescription(output.TableAutoScalingDescription, context)
5254
5080
  : undefined,
5255
5081
  };
5256
5082
  };
5257
5083
  const deserializeAws_json1_0DescribeTimeToLiveOutput = (output, context) => {
5258
5084
  return {
5259
- TimeToLiveDescription: output.TimeToLiveDescription !== undefined && output.TimeToLiveDescription !== null
5085
+ TimeToLiveDescription: output.TimeToLiveDescription != null
5260
5086
  ? deserializeAws_json1_0TimeToLiveDescription(output.TimeToLiveDescription, context)
5261
5087
  : undefined,
5262
5088
  };
@@ -5285,26 +5111,20 @@ const deserializeAws_json1_0Endpoints = (output, context) => {
5285
5111
  };
5286
5112
  const deserializeAws_json1_0ExecuteStatementOutput = (output, context) => {
5287
5113
  return {
5288
- ConsumedCapacity: output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null
5114
+ ConsumedCapacity: output.ConsumedCapacity != null
5289
5115
  ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context)
5290
5116
  : undefined,
5291
- Items: output.Items !== undefined && output.Items !== null
5292
- ? deserializeAws_json1_0ItemList(output.Items, context)
5293
- : undefined,
5294
- LastEvaluatedKey: output.LastEvaluatedKey !== undefined && output.LastEvaluatedKey !== null
5295
- ? deserializeAws_json1_0Key(output.LastEvaluatedKey, context)
5296
- : undefined,
5117
+ Items: output.Items != null ? deserializeAws_json1_0ItemList(output.Items, context) : undefined,
5118
+ LastEvaluatedKey: output.LastEvaluatedKey != null ? deserializeAws_json1_0Key(output.LastEvaluatedKey, context) : undefined,
5297
5119
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
5298
5120
  };
5299
5121
  };
5300
5122
  const deserializeAws_json1_0ExecuteTransactionOutput = (output, context) => {
5301
5123
  return {
5302
- ConsumedCapacity: output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null
5124
+ ConsumedCapacity: output.ConsumedCapacity != null
5303
5125
  ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context)
5304
5126
  : undefined,
5305
- Responses: output.Responses !== undefined && output.Responses !== null
5306
- ? deserializeAws_json1_0ItemResponseList(output.Responses, context)
5307
- : undefined,
5127
+ Responses: output.Responses != null ? deserializeAws_json1_0ItemResponseList(output.Responses, context) : undefined,
5308
5128
  };
5309
5129
  };
5310
5130
  const deserializeAws_json1_0ExportConflictException = (output, context) => {
@@ -5316,16 +5136,12 @@ const deserializeAws_json1_0ExportDescription = (output, context) => {
5316
5136
  return {
5317
5137
  BilledSizeBytes: (0, smithy_client_1.expectLong)(output.BilledSizeBytes),
5318
5138
  ClientToken: (0, smithy_client_1.expectString)(output.ClientToken),
5319
- EndTime: output.EndTime !== undefined && output.EndTime !== null
5320
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
5321
- : undefined,
5139
+ EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
5322
5140
  ExportArn: (0, smithy_client_1.expectString)(output.ExportArn),
5323
5141
  ExportFormat: (0, smithy_client_1.expectString)(output.ExportFormat),
5324
5142
  ExportManifest: (0, smithy_client_1.expectString)(output.ExportManifest),
5325
5143
  ExportStatus: (0, smithy_client_1.expectString)(output.ExportStatus),
5326
- ExportTime: output.ExportTime !== undefined && output.ExportTime !== null
5327
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExportTime)))
5328
- : undefined,
5144
+ ExportTime: output.ExportTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExportTime))) : undefined,
5329
5145
  FailureCode: (0, smithy_client_1.expectString)(output.FailureCode),
5330
5146
  FailureMessage: (0, smithy_client_1.expectString)(output.FailureMessage),
5331
5147
  ItemCount: (0, smithy_client_1.expectLong)(output.ItemCount),
@@ -5334,9 +5150,7 @@ const deserializeAws_json1_0ExportDescription = (output, context) => {
5334
5150
  S3Prefix: (0, smithy_client_1.expectString)(output.S3Prefix),
5335
5151
  S3SseAlgorithm: (0, smithy_client_1.expectString)(output.S3SseAlgorithm),
5336
5152
  S3SseKmsKeyId: (0, smithy_client_1.expectString)(output.S3SseKmsKeyId),
5337
- StartTime: output.StartTime !== undefined && output.StartTime !== null
5338
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
5339
- : undefined,
5153
+ StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
5340
5154
  TableArn: (0, smithy_client_1.expectString)(output.TableArn),
5341
5155
  TableId: (0, smithy_client_1.expectString)(output.TableId),
5342
5156
  };
@@ -5365,7 +5179,7 @@ const deserializeAws_json1_0ExportSummary = (output, context) => {
5365
5179
  };
5366
5180
  const deserializeAws_json1_0ExportTableToPointInTimeOutput = (output, context) => {
5367
5181
  return {
5368
- ExportDescription: output.ExportDescription !== undefined && output.ExportDescription !== null
5182
+ ExportDescription: output.ExportDescription != null
5369
5183
  ? deserializeAws_json1_0ExportDescription(output.ExportDescription, context)
5370
5184
  : undefined,
5371
5185
  };
@@ -5389,12 +5203,10 @@ const deserializeAws_json1_0FailureException = (output, context) => {
5389
5203
  };
5390
5204
  const deserializeAws_json1_0GetItemOutput = (output, context) => {
5391
5205
  return {
5392
- ConsumedCapacity: output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null
5206
+ ConsumedCapacity: output.ConsumedCapacity != null
5393
5207
  ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context)
5394
5208
  : undefined,
5395
- Item: output.Item !== undefined && output.Item !== null
5396
- ? deserializeAws_json1_0AttributeMap(output.Item, context)
5397
- : undefined,
5209
+ Item: output.Item != null ? deserializeAws_json1_0AttributeMap(output.Item, context) : undefined,
5398
5210
  };
5399
5211
  };
5400
5212
  const deserializeAws_json1_0GlobalSecondaryIndexDescription = (output, context) => {
@@ -5405,13 +5217,9 @@ const deserializeAws_json1_0GlobalSecondaryIndexDescription = (output, context)
5405
5217
  IndexSizeBytes: (0, smithy_client_1.expectLong)(output.IndexSizeBytes),
5406
5218
  IndexStatus: (0, smithy_client_1.expectString)(output.IndexStatus),
5407
5219
  ItemCount: (0, smithy_client_1.expectLong)(output.ItemCount),
5408
- KeySchema: output.KeySchema !== undefined && output.KeySchema !== null
5409
- ? deserializeAws_json1_0KeySchema(output.KeySchema, context)
5410
- : undefined,
5411
- Projection: output.Projection !== undefined && output.Projection !== null
5412
- ? deserializeAws_json1_0Projection(output.Projection, context)
5413
- : undefined,
5414
- ProvisionedThroughput: output.ProvisionedThroughput !== undefined && output.ProvisionedThroughput !== null
5220
+ KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : undefined,
5221
+ Projection: output.Projection != null ? deserializeAws_json1_0Projection(output.Projection, context) : undefined,
5222
+ ProvisionedThroughput: output.ProvisionedThroughput != null
5415
5223
  ? deserializeAws_json1_0ProvisionedThroughputDescription(output.ProvisionedThroughput, context)
5416
5224
  : undefined,
5417
5225
  };
@@ -5441,13 +5249,9 @@ const deserializeAws_json1_0GlobalSecondaryIndexes = (output, context) => {
5441
5249
  const deserializeAws_json1_0GlobalSecondaryIndexInfo = (output, context) => {
5442
5250
  return {
5443
5251
  IndexName: (0, smithy_client_1.expectString)(output.IndexName),
5444
- KeySchema: output.KeySchema !== undefined && output.KeySchema !== null
5445
- ? deserializeAws_json1_0KeySchema(output.KeySchema, context)
5446
- : undefined,
5447
- Projection: output.Projection !== undefined && output.Projection !== null
5448
- ? deserializeAws_json1_0Projection(output.Projection, context)
5449
- : undefined,
5450
- ProvisionedThroughput: output.ProvisionedThroughput !== undefined && output.ProvisionedThroughput !== null
5252
+ KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : undefined,
5253
+ Projection: output.Projection != null ? deserializeAws_json1_0Projection(output.Projection, context) : undefined,
5254
+ ProvisionedThroughput: output.ProvisionedThroughput != null
5451
5255
  ? deserializeAws_json1_0ProvisionedThroughput(output.ProvisionedThroughput, context)
5452
5256
  : undefined,
5453
5257
  };
@@ -5455,9 +5259,7 @@ const deserializeAws_json1_0GlobalSecondaryIndexInfo = (output, context) => {
5455
5259
  const deserializeAws_json1_0GlobalTable = (output, context) => {
5456
5260
  return {
5457
5261
  GlobalTableName: (0, smithy_client_1.expectString)(output.GlobalTableName),
5458
- ReplicationGroup: output.ReplicationGroup !== undefined && output.ReplicationGroup !== null
5459
- ? deserializeAws_json1_0ReplicaList(output.ReplicationGroup, context)
5460
- : undefined,
5262
+ ReplicationGroup: output.ReplicationGroup != null ? deserializeAws_json1_0ReplicaList(output.ReplicationGroup, context) : undefined,
5461
5263
  };
5462
5264
  };
5463
5265
  const deserializeAws_json1_0GlobalTableAlreadyExistsException = (output, context) => {
@@ -5467,13 +5269,13 @@ const deserializeAws_json1_0GlobalTableAlreadyExistsException = (output, context
5467
5269
  };
5468
5270
  const deserializeAws_json1_0GlobalTableDescription = (output, context) => {
5469
5271
  return {
5470
- CreationDateTime: output.CreationDateTime !== undefined && output.CreationDateTime !== null
5272
+ CreationDateTime: output.CreationDateTime != null
5471
5273
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDateTime)))
5472
5274
  : undefined,
5473
5275
  GlobalTableArn: (0, smithy_client_1.expectString)(output.GlobalTableArn),
5474
5276
  GlobalTableName: (0, smithy_client_1.expectString)(output.GlobalTableName),
5475
5277
  GlobalTableStatus: (0, smithy_client_1.expectString)(output.GlobalTableStatus),
5476
- ReplicationGroup: output.ReplicationGroup !== undefined && output.ReplicationGroup !== null
5278
+ ReplicationGroup: output.ReplicationGroup != null
5477
5279
  ? deserializeAws_json1_0ReplicaDescriptionList(output.ReplicationGroup, context)
5478
5280
  : undefined,
5479
5281
  };
@@ -5537,10 +5339,10 @@ const deserializeAws_json1_0ItemCollectionKeyAttributeMap = (output, context) =>
5537
5339
  };
5538
5340
  const deserializeAws_json1_0ItemCollectionMetrics = (output, context) => {
5539
5341
  return {
5540
- ItemCollectionKey: output.ItemCollectionKey !== undefined && output.ItemCollectionKey !== null
5342
+ ItemCollectionKey: output.ItemCollectionKey != null
5541
5343
  ? deserializeAws_json1_0ItemCollectionKeyAttributeMap(output.ItemCollectionKey, context)
5542
5344
  : undefined,
5543
- SizeEstimateRangeGB: output.SizeEstimateRangeGB !== undefined && output.SizeEstimateRangeGB !== null
5345
+ SizeEstimateRangeGB: output.SizeEstimateRangeGB != null
5544
5346
  ? deserializeAws_json1_0ItemCollectionSizeEstimateRange(output.SizeEstimateRangeGB, context)
5545
5347
  : undefined,
5546
5348
  };
@@ -5596,9 +5398,7 @@ const deserializeAws_json1_0ItemList = (output, context) => {
5596
5398
  };
5597
5399
  const deserializeAws_json1_0ItemResponse = (output, context) => {
5598
5400
  return {
5599
- Item: output.Item !== undefined && output.Item !== null
5600
- ? deserializeAws_json1_0AttributeMap(output.Item, context)
5601
- : undefined,
5401
+ Item: output.Item != null ? deserializeAws_json1_0AttributeMap(output.Item, context) : undefined,
5602
5402
  };
5603
5403
  };
5604
5404
  const deserializeAws_json1_0ItemResponseList = (output, context) => {
@@ -5636,16 +5436,14 @@ const deserializeAws_json1_0KeyList = (output, context) => {
5636
5436
  };
5637
5437
  const deserializeAws_json1_0KeysAndAttributes = (output, context) => {
5638
5438
  return {
5639
- AttributesToGet: output.AttributesToGet !== undefined && output.AttributesToGet !== null
5439
+ AttributesToGet: output.AttributesToGet != null
5640
5440
  ? deserializeAws_json1_0AttributeNameList(output.AttributesToGet, context)
5641
5441
  : undefined,
5642
5442
  ConsistentRead: (0, smithy_client_1.expectBoolean)(output.ConsistentRead),
5643
- ExpressionAttributeNames: output.ExpressionAttributeNames !== undefined && output.ExpressionAttributeNames !== null
5443
+ ExpressionAttributeNames: output.ExpressionAttributeNames != null
5644
5444
  ? deserializeAws_json1_0ExpressionAttributeNameMap(output.ExpressionAttributeNames, context)
5645
5445
  : undefined,
5646
- Keys: output.Keys !== undefined && output.Keys !== null
5647
- ? deserializeAws_json1_0KeyList(output.Keys, context)
5648
- : undefined,
5446
+ Keys: output.Keys != null ? deserializeAws_json1_0KeyList(output.Keys, context) : undefined,
5649
5447
  ProjectionExpression: (0, smithy_client_1.expectString)(output.ProjectionExpression),
5650
5448
  };
5651
5449
  };
@@ -5709,7 +5507,7 @@ const deserializeAws_json1_0ListAttributeValue = (output, context) => {
5709
5507
  };
5710
5508
  const deserializeAws_json1_0ListBackupsOutput = (output, context) => {
5711
5509
  return {
5712
- BackupSummaries: output.BackupSummaries !== undefined && output.BackupSummaries !== null
5510
+ BackupSummaries: output.BackupSummaries != null
5713
5511
  ? deserializeAws_json1_0BackupSummaries(output.BackupSummaries, context)
5714
5512
  : undefined,
5715
5513
  LastEvaluatedBackupArn: (0, smithy_client_1.expectString)(output.LastEvaluatedBackupArn),
@@ -5717,7 +5515,7 @@ const deserializeAws_json1_0ListBackupsOutput = (output, context) => {
5717
5515
  };
5718
5516
  const deserializeAws_json1_0ListContributorInsightsOutput = (output, context) => {
5719
5517
  return {
5720
- ContributorInsightsSummaries: output.ContributorInsightsSummaries !== undefined && output.ContributorInsightsSummaries !== null
5518
+ ContributorInsightsSummaries: output.ContributorInsightsSummaries != null
5721
5519
  ? deserializeAws_json1_0ContributorInsightsSummaries(output.ContributorInsightsSummaries, context)
5722
5520
  : undefined,
5723
5521
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
@@ -5725,7 +5523,7 @@ const deserializeAws_json1_0ListContributorInsightsOutput = (output, context) =>
5725
5523
  };
5726
5524
  const deserializeAws_json1_0ListExportsOutput = (output, context) => {
5727
5525
  return {
5728
- ExportSummaries: output.ExportSummaries !== undefined && output.ExportSummaries !== null
5526
+ ExportSummaries: output.ExportSummaries != null
5729
5527
  ? deserializeAws_json1_0ExportSummaries(output.ExportSummaries, context)
5730
5528
  : undefined,
5731
5529
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
@@ -5733,26 +5531,20 @@ const deserializeAws_json1_0ListExportsOutput = (output, context) => {
5733
5531
  };
5734
5532
  const deserializeAws_json1_0ListGlobalTablesOutput = (output, context) => {
5735
5533
  return {
5736
- GlobalTables: output.GlobalTables !== undefined && output.GlobalTables !== null
5737
- ? deserializeAws_json1_0GlobalTableList(output.GlobalTables, context)
5738
- : undefined,
5534
+ GlobalTables: output.GlobalTables != null ? deserializeAws_json1_0GlobalTableList(output.GlobalTables, context) : undefined,
5739
5535
  LastEvaluatedGlobalTableName: (0, smithy_client_1.expectString)(output.LastEvaluatedGlobalTableName),
5740
5536
  };
5741
5537
  };
5742
5538
  const deserializeAws_json1_0ListTablesOutput = (output, context) => {
5743
5539
  return {
5744
5540
  LastEvaluatedTableName: (0, smithy_client_1.expectString)(output.LastEvaluatedTableName),
5745
- TableNames: output.TableNames !== undefined && output.TableNames !== null
5746
- ? deserializeAws_json1_0TableNameList(output.TableNames, context)
5747
- : undefined,
5541
+ TableNames: output.TableNames != null ? deserializeAws_json1_0TableNameList(output.TableNames, context) : undefined,
5748
5542
  };
5749
5543
  };
5750
5544
  const deserializeAws_json1_0ListTagsOfResourceOutput = (output, context) => {
5751
5545
  return {
5752
5546
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
5753
- Tags: output.Tags !== undefined && output.Tags !== null
5754
- ? deserializeAws_json1_0TagList(output.Tags, context)
5755
- : undefined,
5547
+ Tags: output.Tags != null ? deserializeAws_json1_0TagList(output.Tags, context) : undefined,
5756
5548
  };
5757
5549
  };
5758
5550
  const deserializeAws_json1_0LocalSecondaryIndexDescription = (output, context) => {
@@ -5761,12 +5553,8 @@ const deserializeAws_json1_0LocalSecondaryIndexDescription = (output, context) =
5761
5553
  IndexName: (0, smithy_client_1.expectString)(output.IndexName),
5762
5554
  IndexSizeBytes: (0, smithy_client_1.expectLong)(output.IndexSizeBytes),
5763
5555
  ItemCount: (0, smithy_client_1.expectLong)(output.ItemCount),
5764
- KeySchema: output.KeySchema !== undefined && output.KeySchema !== null
5765
- ? deserializeAws_json1_0KeySchema(output.KeySchema, context)
5766
- : undefined,
5767
- Projection: output.Projection !== undefined && output.Projection !== null
5768
- ? deserializeAws_json1_0Projection(output.Projection, context)
5769
- : undefined,
5556
+ KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : undefined,
5557
+ Projection: output.Projection != null ? deserializeAws_json1_0Projection(output.Projection, context) : undefined,
5770
5558
  };
5771
5559
  };
5772
5560
  const deserializeAws_json1_0LocalSecondaryIndexDescriptionList = (output, context) => {
@@ -5794,12 +5582,8 @@ const deserializeAws_json1_0LocalSecondaryIndexes = (output, context) => {
5794
5582
  const deserializeAws_json1_0LocalSecondaryIndexInfo = (output, context) => {
5795
5583
  return {
5796
5584
  IndexName: (0, smithy_client_1.expectString)(output.IndexName),
5797
- KeySchema: output.KeySchema !== undefined && output.KeySchema !== null
5798
- ? deserializeAws_json1_0KeySchema(output.KeySchema, context)
5799
- : undefined,
5800
- Projection: output.Projection !== undefined && output.Projection !== null
5801
- ? deserializeAws_json1_0Projection(output.Projection, context)
5802
- : undefined,
5585
+ KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : undefined,
5586
+ Projection: output.Projection != null ? deserializeAws_json1_0Projection(output.Projection, context) : undefined,
5803
5587
  };
5804
5588
  };
5805
5589
  const deserializeAws_json1_0MapAttributeValue = (output, context) => {
@@ -5848,10 +5632,10 @@ const deserializeAws_json1_0PartiQLBatchResponse = (output, context) => {
5848
5632
  };
5849
5633
  const deserializeAws_json1_0PointInTimeRecoveryDescription = (output, context) => {
5850
5634
  return {
5851
- EarliestRestorableDateTime: output.EarliestRestorableDateTime !== undefined && output.EarliestRestorableDateTime !== null
5635
+ EarliestRestorableDateTime: output.EarliestRestorableDateTime != null
5852
5636
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EarliestRestorableDateTime)))
5853
5637
  : undefined,
5854
- LatestRestorableDateTime: output.LatestRestorableDateTime !== undefined && output.LatestRestorableDateTime !== null
5638
+ LatestRestorableDateTime: output.LatestRestorableDateTime != null
5855
5639
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LatestRestorableDateTime)))
5856
5640
  : undefined,
5857
5641
  PointInTimeRecoveryStatus: (0, smithy_client_1.expectString)(output.PointInTimeRecoveryStatus),
@@ -5864,7 +5648,7 @@ const deserializeAws_json1_0PointInTimeRecoveryUnavailableException = (output, c
5864
5648
  };
5865
5649
  const deserializeAws_json1_0Projection = (output, context) => {
5866
5650
  return {
5867
- NonKeyAttributes: output.NonKeyAttributes !== undefined && output.NonKeyAttributes !== null
5651
+ NonKeyAttributes: output.NonKeyAttributes != null
5868
5652
  ? deserializeAws_json1_0NonKeyAttributeNameList(output.NonKeyAttributes, context)
5869
5653
  : undefined,
5870
5654
  ProjectionType: (0, smithy_client_1.expectString)(output.ProjectionType),
@@ -5878,10 +5662,10 @@ const deserializeAws_json1_0ProvisionedThroughput = (output, context) => {
5878
5662
  };
5879
5663
  const deserializeAws_json1_0ProvisionedThroughputDescription = (output, context) => {
5880
5664
  return {
5881
- LastDecreaseDateTime: output.LastDecreaseDateTime !== undefined && output.LastDecreaseDateTime !== null
5665
+ LastDecreaseDateTime: output.LastDecreaseDateTime != null
5882
5666
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastDecreaseDateTime)))
5883
5667
  : undefined,
5884
- LastIncreaseDateTime: output.LastIncreaseDateTime !== undefined && output.LastIncreaseDateTime !== null
5668
+ LastIncreaseDateTime: output.LastIncreaseDateTime != null
5885
5669
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastIncreaseDateTime)))
5886
5670
  : undefined,
5887
5671
  NumberOfDecreasesToday: (0, smithy_client_1.expectLong)(output.NumberOfDecreasesToday),
@@ -5912,36 +5696,28 @@ const deserializeAws_json1_0PutItemInputAttributeMap = (output, context) => {
5912
5696
  };
5913
5697
  const deserializeAws_json1_0PutItemOutput = (output, context) => {
5914
5698
  return {
5915
- Attributes: output.Attributes !== undefined && output.Attributes !== null
5916
- ? deserializeAws_json1_0AttributeMap(output.Attributes, context)
5917
- : undefined,
5918
- ConsumedCapacity: output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null
5699
+ Attributes: output.Attributes != null ? deserializeAws_json1_0AttributeMap(output.Attributes, context) : undefined,
5700
+ ConsumedCapacity: output.ConsumedCapacity != null
5919
5701
  ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context)
5920
5702
  : undefined,
5921
- ItemCollectionMetrics: output.ItemCollectionMetrics !== undefined && output.ItemCollectionMetrics !== null
5703
+ ItemCollectionMetrics: output.ItemCollectionMetrics != null
5922
5704
  ? deserializeAws_json1_0ItemCollectionMetrics(output.ItemCollectionMetrics, context)
5923
5705
  : undefined,
5924
5706
  };
5925
5707
  };
5926
5708
  const deserializeAws_json1_0PutRequest = (output, context) => {
5927
5709
  return {
5928
- Item: output.Item !== undefined && output.Item !== null
5929
- ? deserializeAws_json1_0PutItemInputAttributeMap(output.Item, context)
5930
- : undefined,
5710
+ Item: output.Item != null ? deserializeAws_json1_0PutItemInputAttributeMap(output.Item, context) : undefined,
5931
5711
  };
5932
5712
  };
5933
5713
  const deserializeAws_json1_0QueryOutput = (output, context) => {
5934
5714
  return {
5935
- ConsumedCapacity: output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null
5715
+ ConsumedCapacity: output.ConsumedCapacity != null
5936
5716
  ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context)
5937
5717
  : undefined,
5938
5718
  Count: (0, smithy_client_1.expectInt32)(output.Count),
5939
- Items: output.Items !== undefined && output.Items !== null
5940
- ? deserializeAws_json1_0ItemList(output.Items, context)
5941
- : undefined,
5942
- LastEvaluatedKey: output.LastEvaluatedKey !== undefined && output.LastEvaluatedKey !== null
5943
- ? deserializeAws_json1_0Key(output.LastEvaluatedKey, context)
5944
- : undefined,
5719
+ Items: output.Items != null ? deserializeAws_json1_0ItemList(output.Items, context) : undefined,
5720
+ LastEvaluatedKey: output.LastEvaluatedKey != null ? deserializeAws_json1_0Key(output.LastEvaluatedKey, context) : undefined,
5945
5721
  ScannedCount: (0, smithy_client_1.expectInt32)(output.ScannedCount),
5946
5722
  };
5947
5723
  };
@@ -5957,16 +5733,14 @@ const deserializeAws_json1_0ReplicaAlreadyExistsException = (output, context) =>
5957
5733
  };
5958
5734
  const deserializeAws_json1_0ReplicaAutoScalingDescription = (output, context) => {
5959
5735
  return {
5960
- GlobalSecondaryIndexes: output.GlobalSecondaryIndexes !== undefined && output.GlobalSecondaryIndexes !== null
5736
+ GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null
5961
5737
  ? deserializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingDescriptionList(output.GlobalSecondaryIndexes, context)
5962
5738
  : undefined,
5963
5739
  RegionName: (0, smithy_client_1.expectString)(output.RegionName),
5964
- ReplicaProvisionedReadCapacityAutoScalingSettings: output.ReplicaProvisionedReadCapacityAutoScalingSettings !== undefined &&
5965
- output.ReplicaProvisionedReadCapacityAutoScalingSettings !== null
5740
+ ReplicaProvisionedReadCapacityAutoScalingSettings: output.ReplicaProvisionedReadCapacityAutoScalingSettings != null
5966
5741
  ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ReplicaProvisionedReadCapacityAutoScalingSettings, context)
5967
5742
  : undefined,
5968
- ReplicaProvisionedWriteCapacityAutoScalingSettings: output.ReplicaProvisionedWriteCapacityAutoScalingSettings !== undefined &&
5969
- output.ReplicaProvisionedWriteCapacityAutoScalingSettings !== null
5743
+ ReplicaProvisionedWriteCapacityAutoScalingSettings: output.ReplicaProvisionedWriteCapacityAutoScalingSettings != null
5970
5744
  ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ReplicaProvisionedWriteCapacityAutoScalingSettings, context)
5971
5745
  : undefined,
5972
5746
  ReplicaStatus: (0, smithy_client_1.expectString)(output.ReplicaStatus),
@@ -5985,21 +5759,21 @@ const deserializeAws_json1_0ReplicaAutoScalingDescriptionList = (output, context
5985
5759
  };
5986
5760
  const deserializeAws_json1_0ReplicaDescription = (output, context) => {
5987
5761
  return {
5988
- GlobalSecondaryIndexes: output.GlobalSecondaryIndexes !== undefined && output.GlobalSecondaryIndexes !== null
5762
+ GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null
5989
5763
  ? deserializeAws_json1_0ReplicaGlobalSecondaryIndexDescriptionList(output.GlobalSecondaryIndexes, context)
5990
5764
  : undefined,
5991
5765
  KMSMasterKeyId: (0, smithy_client_1.expectString)(output.KMSMasterKeyId),
5992
- ProvisionedThroughputOverride: output.ProvisionedThroughputOverride !== undefined && output.ProvisionedThroughputOverride !== null
5766
+ ProvisionedThroughputOverride: output.ProvisionedThroughputOverride != null
5993
5767
  ? deserializeAws_json1_0ProvisionedThroughputOverride(output.ProvisionedThroughputOverride, context)
5994
5768
  : undefined,
5995
5769
  RegionName: (0, smithy_client_1.expectString)(output.RegionName),
5996
- ReplicaInaccessibleDateTime: output.ReplicaInaccessibleDateTime !== undefined && output.ReplicaInaccessibleDateTime !== null
5770
+ ReplicaInaccessibleDateTime: output.ReplicaInaccessibleDateTime != null
5997
5771
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReplicaInaccessibleDateTime)))
5998
5772
  : undefined,
5999
5773
  ReplicaStatus: (0, smithy_client_1.expectString)(output.ReplicaStatus),
6000
5774
  ReplicaStatusDescription: (0, smithy_client_1.expectString)(output.ReplicaStatusDescription),
6001
5775
  ReplicaStatusPercentProgress: (0, smithy_client_1.expectString)(output.ReplicaStatusPercentProgress),
6002
- ReplicaTableClassSummary: output.ReplicaTableClassSummary !== undefined && output.ReplicaTableClassSummary !== null
5776
+ ReplicaTableClassSummary: output.ReplicaTableClassSummary != null
6003
5777
  ? deserializeAws_json1_0TableClassSummary(output.ReplicaTableClassSummary, context)
6004
5778
  : undefined,
6005
5779
  };
@@ -6019,12 +5793,10 @@ const deserializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingDescription =
6019
5793
  return {
6020
5794
  IndexName: (0, smithy_client_1.expectString)(output.IndexName),
6021
5795
  IndexStatus: (0, smithy_client_1.expectString)(output.IndexStatus),
6022
- ProvisionedReadCapacityAutoScalingSettings: output.ProvisionedReadCapacityAutoScalingSettings !== undefined &&
6023
- output.ProvisionedReadCapacityAutoScalingSettings !== null
5796
+ ProvisionedReadCapacityAutoScalingSettings: output.ProvisionedReadCapacityAutoScalingSettings != null
6024
5797
  ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ProvisionedReadCapacityAutoScalingSettings, context)
6025
5798
  : undefined,
6026
- ProvisionedWriteCapacityAutoScalingSettings: output.ProvisionedWriteCapacityAutoScalingSettings !== undefined &&
6027
- output.ProvisionedWriteCapacityAutoScalingSettings !== null
5799
+ ProvisionedWriteCapacityAutoScalingSettings: output.ProvisionedWriteCapacityAutoScalingSettings != null
6028
5800
  ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ProvisionedWriteCapacityAutoScalingSettings, context)
6029
5801
  : undefined,
6030
5802
  };
@@ -6043,7 +5815,7 @@ const deserializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingDescriptionLis
6043
5815
  const deserializeAws_json1_0ReplicaGlobalSecondaryIndexDescription = (output, context) => {
6044
5816
  return {
6045
5817
  IndexName: (0, smithy_client_1.expectString)(output.IndexName),
6046
- ProvisionedThroughputOverride: output.ProvisionedThroughputOverride !== undefined && output.ProvisionedThroughputOverride !== null
5818
+ ProvisionedThroughputOverride: output.ProvisionedThroughputOverride != null
6047
5819
  ? deserializeAws_json1_0ProvisionedThroughputOverride(output.ProvisionedThroughputOverride, context)
6048
5820
  : undefined,
6049
5821
  };
@@ -6063,13 +5835,11 @@ const deserializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsDescription = (ou
6063
5835
  return {
6064
5836
  IndexName: (0, smithy_client_1.expectString)(output.IndexName),
6065
5837
  IndexStatus: (0, smithy_client_1.expectString)(output.IndexStatus),
6066
- ProvisionedReadCapacityAutoScalingSettings: output.ProvisionedReadCapacityAutoScalingSettings !== undefined &&
6067
- output.ProvisionedReadCapacityAutoScalingSettings !== null
5838
+ ProvisionedReadCapacityAutoScalingSettings: output.ProvisionedReadCapacityAutoScalingSettings != null
6068
5839
  ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ProvisionedReadCapacityAutoScalingSettings, context)
6069
5840
  : undefined,
6070
5841
  ProvisionedReadCapacityUnits: (0, smithy_client_1.expectLong)(output.ProvisionedReadCapacityUnits),
6071
- ProvisionedWriteCapacityAutoScalingSettings: output.ProvisionedWriteCapacityAutoScalingSettings !== undefined &&
6072
- output.ProvisionedWriteCapacityAutoScalingSettings !== null
5842
+ ProvisionedWriteCapacityAutoScalingSettings: output.ProvisionedWriteCapacityAutoScalingSettings != null
6073
5843
  ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ProvisionedWriteCapacityAutoScalingSettings, context)
6074
5844
  : undefined,
6075
5845
  ProvisionedWriteCapacityUnits: (0, smithy_client_1.expectLong)(output.ProvisionedWriteCapacityUnits),
@@ -6105,24 +5875,22 @@ const deserializeAws_json1_0ReplicaNotFoundException = (output, context) => {
6105
5875
  const deserializeAws_json1_0ReplicaSettingsDescription = (output, context) => {
6106
5876
  return {
6107
5877
  RegionName: (0, smithy_client_1.expectString)(output.RegionName),
6108
- ReplicaBillingModeSummary: output.ReplicaBillingModeSummary !== undefined && output.ReplicaBillingModeSummary !== null
5878
+ ReplicaBillingModeSummary: output.ReplicaBillingModeSummary != null
6109
5879
  ? deserializeAws_json1_0BillingModeSummary(output.ReplicaBillingModeSummary, context)
6110
5880
  : undefined,
6111
- ReplicaGlobalSecondaryIndexSettings: output.ReplicaGlobalSecondaryIndexSettings !== undefined && output.ReplicaGlobalSecondaryIndexSettings !== null
5881
+ ReplicaGlobalSecondaryIndexSettings: output.ReplicaGlobalSecondaryIndexSettings != null
6112
5882
  ? deserializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsDescriptionList(output.ReplicaGlobalSecondaryIndexSettings, context)
6113
5883
  : undefined,
6114
- ReplicaProvisionedReadCapacityAutoScalingSettings: output.ReplicaProvisionedReadCapacityAutoScalingSettings !== undefined &&
6115
- output.ReplicaProvisionedReadCapacityAutoScalingSettings !== null
5884
+ ReplicaProvisionedReadCapacityAutoScalingSettings: output.ReplicaProvisionedReadCapacityAutoScalingSettings != null
6116
5885
  ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ReplicaProvisionedReadCapacityAutoScalingSettings, context)
6117
5886
  : undefined,
6118
5887
  ReplicaProvisionedReadCapacityUnits: (0, smithy_client_1.expectLong)(output.ReplicaProvisionedReadCapacityUnits),
6119
- ReplicaProvisionedWriteCapacityAutoScalingSettings: output.ReplicaProvisionedWriteCapacityAutoScalingSettings !== undefined &&
6120
- output.ReplicaProvisionedWriteCapacityAutoScalingSettings !== null
5888
+ ReplicaProvisionedWriteCapacityAutoScalingSettings: output.ReplicaProvisionedWriteCapacityAutoScalingSettings != null
6121
5889
  ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ReplicaProvisionedWriteCapacityAutoScalingSettings, context)
6122
5890
  : undefined,
6123
5891
  ReplicaProvisionedWriteCapacityUnits: (0, smithy_client_1.expectLong)(output.ReplicaProvisionedWriteCapacityUnits),
6124
5892
  ReplicaStatus: (0, smithy_client_1.expectString)(output.ReplicaStatus),
6125
- ReplicaTableClassSummary: output.ReplicaTableClassSummary !== undefined && output.ReplicaTableClassSummary !== null
5893
+ ReplicaTableClassSummary: output.ReplicaTableClassSummary != null
6126
5894
  ? deserializeAws_json1_0TableClassSummary(output.ReplicaTableClassSummary, context)
6127
5895
  : undefined,
6128
5896
  };
@@ -6155,7 +5923,7 @@ const deserializeAws_json1_0ResourceNotFoundException = (output, context) => {
6155
5923
  };
6156
5924
  const deserializeAws_json1_0RestoreSummary = (output, context) => {
6157
5925
  return {
6158
- RestoreDateTime: output.RestoreDateTime !== undefined && output.RestoreDateTime !== null
5926
+ RestoreDateTime: output.RestoreDateTime != null
6159
5927
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.RestoreDateTime)))
6160
5928
  : undefined,
6161
5929
  RestoreInProgress: (0, smithy_client_1.expectBoolean)(output.RestoreInProgress),
@@ -6165,30 +5933,26 @@ const deserializeAws_json1_0RestoreSummary = (output, context) => {
6165
5933
  };
6166
5934
  const deserializeAws_json1_0RestoreTableFromBackupOutput = (output, context) => {
6167
5935
  return {
6168
- TableDescription: output.TableDescription !== undefined && output.TableDescription !== null
5936
+ TableDescription: output.TableDescription != null
6169
5937
  ? deserializeAws_json1_0TableDescription(output.TableDescription, context)
6170
5938
  : undefined,
6171
5939
  };
6172
5940
  };
6173
5941
  const deserializeAws_json1_0RestoreTableToPointInTimeOutput = (output, context) => {
6174
5942
  return {
6175
- TableDescription: output.TableDescription !== undefined && output.TableDescription !== null
5943
+ TableDescription: output.TableDescription != null
6176
5944
  ? deserializeAws_json1_0TableDescription(output.TableDescription, context)
6177
5945
  : undefined,
6178
5946
  };
6179
5947
  };
6180
5948
  const deserializeAws_json1_0ScanOutput = (output, context) => {
6181
5949
  return {
6182
- ConsumedCapacity: output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null
5950
+ ConsumedCapacity: output.ConsumedCapacity != null
6183
5951
  ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context)
6184
5952
  : undefined,
6185
5953
  Count: (0, smithy_client_1.expectInt32)(output.Count),
6186
- Items: output.Items !== undefined && output.Items !== null
6187
- ? deserializeAws_json1_0ItemList(output.Items, context)
6188
- : undefined,
6189
- LastEvaluatedKey: output.LastEvaluatedKey !== undefined && output.LastEvaluatedKey !== null
6190
- ? deserializeAws_json1_0Key(output.LastEvaluatedKey, context)
6191
- : undefined,
5954
+ Items: output.Items != null ? deserializeAws_json1_0ItemList(output.Items, context) : undefined,
5955
+ LastEvaluatedKey: output.LastEvaluatedKey != null ? deserializeAws_json1_0Key(output.LastEvaluatedKey, context) : undefined,
6192
5956
  ScannedCount: (0, smithy_client_1.expectInt32)(output.ScannedCount),
6193
5957
  };
6194
5958
  };
@@ -6207,14 +5971,12 @@ const deserializeAws_json1_0SourceTableDetails = (output, context) => {
6207
5971
  return {
6208
5972
  BillingMode: (0, smithy_client_1.expectString)(output.BillingMode),
6209
5973
  ItemCount: (0, smithy_client_1.expectLong)(output.ItemCount),
6210
- KeySchema: output.KeySchema !== undefined && output.KeySchema !== null
6211
- ? deserializeAws_json1_0KeySchema(output.KeySchema, context)
6212
- : undefined,
6213
- ProvisionedThroughput: output.ProvisionedThroughput !== undefined && output.ProvisionedThroughput !== null
5974
+ KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : undefined,
5975
+ ProvisionedThroughput: output.ProvisionedThroughput != null
6214
5976
  ? deserializeAws_json1_0ProvisionedThroughput(output.ProvisionedThroughput, context)
6215
5977
  : undefined,
6216
5978
  TableArn: (0, smithy_client_1.expectString)(output.TableArn),
6217
- TableCreationDateTime: output.TableCreationDateTime !== undefined && output.TableCreationDateTime !== null
5979
+ TableCreationDateTime: output.TableCreationDateTime != null
6218
5980
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.TableCreationDateTime)))
6219
5981
  : undefined,
6220
5982
  TableId: (0, smithy_client_1.expectString)(output.TableId),
@@ -6224,26 +5986,24 @@ const deserializeAws_json1_0SourceTableDetails = (output, context) => {
6224
5986
  };
6225
5987
  const deserializeAws_json1_0SourceTableFeatureDetails = (output, context) => {
6226
5988
  return {
6227
- GlobalSecondaryIndexes: output.GlobalSecondaryIndexes !== undefined && output.GlobalSecondaryIndexes !== null
5989
+ GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null
6228
5990
  ? deserializeAws_json1_0GlobalSecondaryIndexes(output.GlobalSecondaryIndexes, context)
6229
5991
  : undefined,
6230
- LocalSecondaryIndexes: output.LocalSecondaryIndexes !== undefined && output.LocalSecondaryIndexes !== null
5992
+ LocalSecondaryIndexes: output.LocalSecondaryIndexes != null
6231
5993
  ? deserializeAws_json1_0LocalSecondaryIndexes(output.LocalSecondaryIndexes, context)
6232
5994
  : undefined,
6233
- SSEDescription: output.SSEDescription !== undefined && output.SSEDescription !== null
6234
- ? deserializeAws_json1_0SSEDescription(output.SSEDescription, context)
6235
- : undefined,
6236
- StreamDescription: output.StreamDescription !== undefined && output.StreamDescription !== null
5995
+ SSEDescription: output.SSEDescription != null ? deserializeAws_json1_0SSEDescription(output.SSEDescription, context) : undefined,
5996
+ StreamDescription: output.StreamDescription != null
6237
5997
  ? deserializeAws_json1_0StreamSpecification(output.StreamDescription, context)
6238
5998
  : undefined,
6239
- TimeToLiveDescription: output.TimeToLiveDescription !== undefined && output.TimeToLiveDescription !== null
5999
+ TimeToLiveDescription: output.TimeToLiveDescription != null
6240
6000
  ? deserializeAws_json1_0TimeToLiveDescription(output.TimeToLiveDescription, context)
6241
6001
  : undefined,
6242
6002
  };
6243
6003
  };
6244
6004
  const deserializeAws_json1_0SSEDescription = (output, context) => {
6245
6005
  return {
6246
- InaccessibleEncryptionDateTime: output.InaccessibleEncryptionDateTime !== undefined && output.InaccessibleEncryptionDateTime !== null
6006
+ InaccessibleEncryptionDateTime: output.InaccessibleEncryptionDateTime != null
6247
6007
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.InaccessibleEncryptionDateTime)))
6248
6008
  : undefined,
6249
6009
  KMSMasterKeyArn: (0, smithy_client_1.expectString)(output.KMSMasterKeyArn),
@@ -6275,7 +6035,7 @@ const deserializeAws_json1_0TableAlreadyExistsException = (output, context) => {
6275
6035
  };
6276
6036
  const deserializeAws_json1_0TableAutoScalingDescription = (output, context) => {
6277
6037
  return {
6278
- Replicas: output.Replicas !== undefined && output.Replicas !== null
6038
+ Replicas: output.Replicas != null
6279
6039
  ? deserializeAws_json1_0ReplicaAutoScalingDescriptionList(output.Replicas, context)
6280
6040
  : undefined,
6281
6041
  TableName: (0, smithy_client_1.expectString)(output.TableName),
@@ -6284,7 +6044,7 @@ const deserializeAws_json1_0TableAutoScalingDescription = (output, context) => {
6284
6044
  };
6285
6045
  const deserializeAws_json1_0TableClassSummary = (output, context) => {
6286
6046
  return {
6287
- LastUpdateDateTime: output.LastUpdateDateTime !== undefined && output.LastUpdateDateTime !== null
6047
+ LastUpdateDateTime: output.LastUpdateDateTime != null
6288
6048
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateDateTime)))
6289
6049
  : undefined,
6290
6050
  TableClass: (0, smithy_client_1.expectString)(output.TableClass),
@@ -6292,48 +6052,40 @@ const deserializeAws_json1_0TableClassSummary = (output, context) => {
6292
6052
  };
6293
6053
  const deserializeAws_json1_0TableDescription = (output, context) => {
6294
6054
  return {
6295
- ArchivalSummary: output.ArchivalSummary !== undefined && output.ArchivalSummary !== null
6055
+ ArchivalSummary: output.ArchivalSummary != null
6296
6056
  ? deserializeAws_json1_0ArchivalSummary(output.ArchivalSummary, context)
6297
6057
  : undefined,
6298
- AttributeDefinitions: output.AttributeDefinitions !== undefined && output.AttributeDefinitions !== null
6058
+ AttributeDefinitions: output.AttributeDefinitions != null
6299
6059
  ? deserializeAws_json1_0AttributeDefinitions(output.AttributeDefinitions, context)
6300
6060
  : undefined,
6301
- BillingModeSummary: output.BillingModeSummary !== undefined && output.BillingModeSummary !== null
6061
+ BillingModeSummary: output.BillingModeSummary != null
6302
6062
  ? deserializeAws_json1_0BillingModeSummary(output.BillingModeSummary, context)
6303
6063
  : undefined,
6304
- CreationDateTime: output.CreationDateTime !== undefined && output.CreationDateTime !== null
6064
+ CreationDateTime: output.CreationDateTime != null
6305
6065
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDateTime)))
6306
6066
  : undefined,
6307
- GlobalSecondaryIndexes: output.GlobalSecondaryIndexes !== undefined && output.GlobalSecondaryIndexes !== null
6067
+ GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null
6308
6068
  ? deserializeAws_json1_0GlobalSecondaryIndexDescriptionList(output.GlobalSecondaryIndexes, context)
6309
6069
  : undefined,
6310
6070
  GlobalTableVersion: (0, smithy_client_1.expectString)(output.GlobalTableVersion),
6311
6071
  ItemCount: (0, smithy_client_1.expectLong)(output.ItemCount),
6312
- KeySchema: output.KeySchema !== undefined && output.KeySchema !== null
6313
- ? deserializeAws_json1_0KeySchema(output.KeySchema, context)
6314
- : undefined,
6072
+ KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : undefined,
6315
6073
  LatestStreamArn: (0, smithy_client_1.expectString)(output.LatestStreamArn),
6316
6074
  LatestStreamLabel: (0, smithy_client_1.expectString)(output.LatestStreamLabel),
6317
- LocalSecondaryIndexes: output.LocalSecondaryIndexes !== undefined && output.LocalSecondaryIndexes !== null
6075
+ LocalSecondaryIndexes: output.LocalSecondaryIndexes != null
6318
6076
  ? deserializeAws_json1_0LocalSecondaryIndexDescriptionList(output.LocalSecondaryIndexes, context)
6319
6077
  : undefined,
6320
- ProvisionedThroughput: output.ProvisionedThroughput !== undefined && output.ProvisionedThroughput !== null
6078
+ ProvisionedThroughput: output.ProvisionedThroughput != null
6321
6079
  ? deserializeAws_json1_0ProvisionedThroughputDescription(output.ProvisionedThroughput, context)
6322
6080
  : undefined,
6323
- Replicas: output.Replicas !== undefined && output.Replicas !== null
6324
- ? deserializeAws_json1_0ReplicaDescriptionList(output.Replicas, context)
6325
- : undefined,
6326
- RestoreSummary: output.RestoreSummary !== undefined && output.RestoreSummary !== null
6327
- ? deserializeAws_json1_0RestoreSummary(output.RestoreSummary, context)
6328
- : undefined,
6329
- SSEDescription: output.SSEDescription !== undefined && output.SSEDescription !== null
6330
- ? deserializeAws_json1_0SSEDescription(output.SSEDescription, context)
6331
- : undefined,
6332
- StreamSpecification: output.StreamSpecification !== undefined && output.StreamSpecification !== null
6081
+ Replicas: output.Replicas != null ? deserializeAws_json1_0ReplicaDescriptionList(output.Replicas, context) : undefined,
6082
+ RestoreSummary: output.RestoreSummary != null ? deserializeAws_json1_0RestoreSummary(output.RestoreSummary, context) : undefined,
6083
+ SSEDescription: output.SSEDescription != null ? deserializeAws_json1_0SSEDescription(output.SSEDescription, context) : undefined,
6084
+ StreamSpecification: output.StreamSpecification != null
6333
6085
  ? deserializeAws_json1_0StreamSpecification(output.StreamSpecification, context)
6334
6086
  : undefined,
6335
6087
  TableArn: (0, smithy_client_1.expectString)(output.TableArn),
6336
- TableClassSummary: output.TableClassSummary !== undefined && output.TableClassSummary !== null
6088
+ TableClassSummary: output.TableClassSummary != null
6337
6089
  ? deserializeAws_json1_0TableClassSummary(output.TableClassSummary, context)
6338
6090
  : undefined,
6339
6091
  TableId: (0, smithy_client_1.expectString)(output.TableId),
@@ -6394,17 +6146,15 @@ const deserializeAws_json1_0TimeToLiveSpecification = (output, context) => {
6394
6146
  };
6395
6147
  const deserializeAws_json1_0TransactGetItemsOutput = (output, context) => {
6396
6148
  return {
6397
- ConsumedCapacity: output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null
6149
+ ConsumedCapacity: output.ConsumedCapacity != null
6398
6150
  ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context)
6399
6151
  : undefined,
6400
- Responses: output.Responses !== undefined && output.Responses !== null
6401
- ? deserializeAws_json1_0ItemResponseList(output.Responses, context)
6402
- : undefined,
6152
+ Responses: output.Responses != null ? deserializeAws_json1_0ItemResponseList(output.Responses, context) : undefined,
6403
6153
  };
6404
6154
  };
6405
6155
  const deserializeAws_json1_0TransactionCanceledException = (output, context) => {
6406
6156
  return {
6407
- CancellationReasons: output.CancellationReasons !== undefined && output.CancellationReasons !== null
6157
+ CancellationReasons: output.CancellationReasons != null
6408
6158
  ? deserializeAws_json1_0CancellationReasonList(output.CancellationReasons, context)
6409
6159
  : undefined,
6410
6160
  Message: (0, smithy_client_1.expectString)(output.Message),
@@ -6422,17 +6172,17 @@ const deserializeAws_json1_0TransactionInProgressException = (output, context) =
6422
6172
  };
6423
6173
  const deserializeAws_json1_0TransactWriteItemsOutput = (output, context) => {
6424
6174
  return {
6425
- ConsumedCapacity: output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null
6175
+ ConsumedCapacity: output.ConsumedCapacity != null
6426
6176
  ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context)
6427
6177
  : undefined,
6428
- ItemCollectionMetrics: output.ItemCollectionMetrics !== undefined && output.ItemCollectionMetrics !== null
6178
+ ItemCollectionMetrics: output.ItemCollectionMetrics != null
6429
6179
  ? deserializeAws_json1_0ItemCollectionMetricsPerTable(output.ItemCollectionMetrics, context)
6430
6180
  : undefined,
6431
6181
  };
6432
6182
  };
6433
6183
  const deserializeAws_json1_0UpdateContinuousBackupsOutput = (output, context) => {
6434
6184
  return {
6435
- ContinuousBackupsDescription: output.ContinuousBackupsDescription !== undefined && output.ContinuousBackupsDescription !== null
6185
+ ContinuousBackupsDescription: output.ContinuousBackupsDescription != null
6436
6186
  ? deserializeAws_json1_0ContinuousBackupsDescription(output.ContinuousBackupsDescription, context)
6437
6187
  : undefined,
6438
6188
  };
@@ -6446,7 +6196,7 @@ const deserializeAws_json1_0UpdateContributorInsightsOutput = (output, context)
6446
6196
  };
6447
6197
  const deserializeAws_json1_0UpdateGlobalTableOutput = (output, context) => {
6448
6198
  return {
6449
- GlobalTableDescription: output.GlobalTableDescription !== undefined && output.GlobalTableDescription !== null
6199
+ GlobalTableDescription: output.GlobalTableDescription != null
6450
6200
  ? deserializeAws_json1_0GlobalTableDescription(output.GlobalTableDescription, context)
6451
6201
  : undefined,
6452
6202
  };
@@ -6454,53 +6204,47 @@ const deserializeAws_json1_0UpdateGlobalTableOutput = (output, context) => {
6454
6204
  const deserializeAws_json1_0UpdateGlobalTableSettingsOutput = (output, context) => {
6455
6205
  return {
6456
6206
  GlobalTableName: (0, smithy_client_1.expectString)(output.GlobalTableName),
6457
- ReplicaSettings: output.ReplicaSettings !== undefined && output.ReplicaSettings !== null
6207
+ ReplicaSettings: output.ReplicaSettings != null
6458
6208
  ? deserializeAws_json1_0ReplicaSettingsDescriptionList(output.ReplicaSettings, context)
6459
6209
  : undefined,
6460
6210
  };
6461
6211
  };
6462
6212
  const deserializeAws_json1_0UpdateItemOutput = (output, context) => {
6463
6213
  return {
6464
- Attributes: output.Attributes !== undefined && output.Attributes !== null
6465
- ? deserializeAws_json1_0AttributeMap(output.Attributes, context)
6466
- : undefined,
6467
- ConsumedCapacity: output.ConsumedCapacity !== undefined && output.ConsumedCapacity !== null
6214
+ Attributes: output.Attributes != null ? deserializeAws_json1_0AttributeMap(output.Attributes, context) : undefined,
6215
+ ConsumedCapacity: output.ConsumedCapacity != null
6468
6216
  ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context)
6469
6217
  : undefined,
6470
- ItemCollectionMetrics: output.ItemCollectionMetrics !== undefined && output.ItemCollectionMetrics !== null
6218
+ ItemCollectionMetrics: output.ItemCollectionMetrics != null
6471
6219
  ? deserializeAws_json1_0ItemCollectionMetrics(output.ItemCollectionMetrics, context)
6472
6220
  : undefined,
6473
6221
  };
6474
6222
  };
6475
6223
  const deserializeAws_json1_0UpdateTableOutput = (output, context) => {
6476
6224
  return {
6477
- TableDescription: output.TableDescription !== undefined && output.TableDescription !== null
6225
+ TableDescription: output.TableDescription != null
6478
6226
  ? deserializeAws_json1_0TableDescription(output.TableDescription, context)
6479
6227
  : undefined,
6480
6228
  };
6481
6229
  };
6482
6230
  const deserializeAws_json1_0UpdateTableReplicaAutoScalingOutput = (output, context) => {
6483
6231
  return {
6484
- TableAutoScalingDescription: output.TableAutoScalingDescription !== undefined && output.TableAutoScalingDescription !== null
6232
+ TableAutoScalingDescription: output.TableAutoScalingDescription != null
6485
6233
  ? deserializeAws_json1_0TableAutoScalingDescription(output.TableAutoScalingDescription, context)
6486
6234
  : undefined,
6487
6235
  };
6488
6236
  };
6489
6237
  const deserializeAws_json1_0UpdateTimeToLiveOutput = (output, context) => {
6490
6238
  return {
6491
- TimeToLiveSpecification: output.TimeToLiveSpecification !== undefined && output.TimeToLiveSpecification !== null
6239
+ TimeToLiveSpecification: output.TimeToLiveSpecification != null
6492
6240
  ? deserializeAws_json1_0TimeToLiveSpecification(output.TimeToLiveSpecification, context)
6493
6241
  : undefined,
6494
6242
  };
6495
6243
  };
6496
6244
  const deserializeAws_json1_0WriteRequest = (output, context) => {
6497
6245
  return {
6498
- DeleteRequest: output.DeleteRequest !== undefined && output.DeleteRequest !== null
6499
- ? deserializeAws_json1_0DeleteRequest(output.DeleteRequest, context)
6500
- : undefined,
6501
- PutRequest: output.PutRequest !== undefined && output.PutRequest !== null
6502
- ? deserializeAws_json1_0PutRequest(output.PutRequest, context)
6503
- : undefined,
6246
+ DeleteRequest: output.DeleteRequest != null ? deserializeAws_json1_0DeleteRequest(output.DeleteRequest, context) : undefined,
6247
+ PutRequest: output.PutRequest != null ? deserializeAws_json1_0PutRequest(output.PutRequest, context) : undefined,
6504
6248
  };
6505
6249
  };
6506
6250
  const deserializeAws_json1_0WriteRequests = (output, context) => {
@@ -6576,5 +6320,4 @@ const loadRestJsonErrorCode = (output, data) => {
6576
6320
  if (data["__type"] !== undefined) {
6577
6321
  return sanitizeErrorCode(data["__type"]);
6578
6322
  }
6579
- return "";
6580
6323
  };