@aws-sdk/client-dynamodb 3.141.0 → 3.142.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.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_json1_0.js +258 -504
- package/dist-es/protocols/Aws_json1_0.js +407 -505
- package/package.json +6 -6
|
@@ -526,7 +526,6 @@ const deserializeAws_json1_0BatchExecuteStatementCommandError = async (output, c
|
|
|
526
526
|
...output,
|
|
527
527
|
body: await parseBody(output.body, context),
|
|
528
528
|
};
|
|
529
|
-
let response;
|
|
530
529
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
531
530
|
switch (errorCode) {
|
|
532
531
|
case "InternalServerError":
|
|
@@ -537,14 +536,12 @@ const deserializeAws_json1_0BatchExecuteStatementCommandError = async (output, c
|
|
|
537
536
|
throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context);
|
|
538
537
|
default:
|
|
539
538
|
const parsedBody = parsedOutput.body;
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
$metadata,
|
|
539
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
540
|
+
output,
|
|
541
|
+
parsedBody,
|
|
542
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
543
|
+
errorCode,
|
|
546
544
|
});
|
|
547
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
548
545
|
}
|
|
549
546
|
};
|
|
550
547
|
const deserializeAws_json1_0BatchGetItemCommand = async (output, context) => {
|
|
@@ -566,7 +563,6 @@ const deserializeAws_json1_0BatchGetItemCommandError = async (output, context) =
|
|
|
566
563
|
...output,
|
|
567
564
|
body: await parseBody(output.body, context),
|
|
568
565
|
};
|
|
569
|
-
let response;
|
|
570
566
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
571
567
|
switch (errorCode) {
|
|
572
568
|
case "InternalServerError":
|
|
@@ -586,14 +582,12 @@ const deserializeAws_json1_0BatchGetItemCommandError = async (output, context) =
|
|
|
586
582
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
587
583
|
default:
|
|
588
584
|
const parsedBody = parsedOutput.body;
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
$metadata,
|
|
585
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
586
|
+
output,
|
|
587
|
+
parsedBody,
|
|
588
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
589
|
+
errorCode,
|
|
595
590
|
});
|
|
596
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
597
591
|
}
|
|
598
592
|
};
|
|
599
593
|
const deserializeAws_json1_0BatchWriteItemCommand = async (output, context) => {
|
|
@@ -615,7 +609,6 @@ const deserializeAws_json1_0BatchWriteItemCommandError = async (output, context)
|
|
|
615
609
|
...output,
|
|
616
610
|
body: await parseBody(output.body, context),
|
|
617
611
|
};
|
|
618
|
-
let response;
|
|
619
612
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
620
613
|
switch (errorCode) {
|
|
621
614
|
case "InternalServerError":
|
|
@@ -638,14 +631,12 @@ const deserializeAws_json1_0BatchWriteItemCommandError = async (output, context)
|
|
|
638
631
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
639
632
|
default:
|
|
640
633
|
const parsedBody = parsedOutput.body;
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
$metadata,
|
|
634
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
635
|
+
output,
|
|
636
|
+
parsedBody,
|
|
637
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
638
|
+
errorCode,
|
|
647
639
|
});
|
|
648
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
649
640
|
}
|
|
650
641
|
};
|
|
651
642
|
const deserializeAws_json1_0CreateBackupCommand = async (output, context) => {
|
|
@@ -667,7 +658,6 @@ const deserializeAws_json1_0CreateBackupCommandError = async (output, context) =
|
|
|
667
658
|
...output,
|
|
668
659
|
body: await parseBody(output.body, context),
|
|
669
660
|
};
|
|
670
|
-
let response;
|
|
671
661
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
672
662
|
switch (errorCode) {
|
|
673
663
|
case "BackupInUseException":
|
|
@@ -693,14 +683,12 @@ const deserializeAws_json1_0CreateBackupCommandError = async (output, context) =
|
|
|
693
683
|
throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context);
|
|
694
684
|
default:
|
|
695
685
|
const parsedBody = parsedOutput.body;
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
$metadata,
|
|
686
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
687
|
+
output,
|
|
688
|
+
parsedBody,
|
|
689
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
690
|
+
errorCode,
|
|
702
691
|
});
|
|
703
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
704
692
|
}
|
|
705
693
|
};
|
|
706
694
|
const deserializeAws_json1_0CreateGlobalTableCommand = async (output, context) => {
|
|
@@ -722,7 +710,6 @@ const deserializeAws_json1_0CreateGlobalTableCommandError = async (output, conte
|
|
|
722
710
|
...output,
|
|
723
711
|
body: await parseBody(output.body, context),
|
|
724
712
|
};
|
|
725
|
-
let response;
|
|
726
713
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
727
714
|
switch (errorCode) {
|
|
728
715
|
case "GlobalTableAlreadyExistsException":
|
|
@@ -742,14 +729,12 @@ const deserializeAws_json1_0CreateGlobalTableCommandError = async (output, conte
|
|
|
742
729
|
throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context);
|
|
743
730
|
default:
|
|
744
731
|
const parsedBody = parsedOutput.body;
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
$metadata,
|
|
732
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
733
|
+
output,
|
|
734
|
+
parsedBody,
|
|
735
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
736
|
+
errorCode,
|
|
751
737
|
});
|
|
752
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
753
738
|
}
|
|
754
739
|
};
|
|
755
740
|
const deserializeAws_json1_0CreateTableCommand = async (output, context) => {
|
|
@@ -771,7 +756,6 @@ const deserializeAws_json1_0CreateTableCommandError = async (output, context) =>
|
|
|
771
756
|
...output,
|
|
772
757
|
body: await parseBody(output.body, context),
|
|
773
758
|
};
|
|
774
|
-
let response;
|
|
775
759
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
776
760
|
switch (errorCode) {
|
|
777
761
|
case "InternalServerError":
|
|
@@ -788,14 +772,12 @@ const deserializeAws_json1_0CreateTableCommandError = async (output, context) =>
|
|
|
788
772
|
throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context);
|
|
789
773
|
default:
|
|
790
774
|
const parsedBody = parsedOutput.body;
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
$metadata,
|
|
775
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
776
|
+
output,
|
|
777
|
+
parsedBody,
|
|
778
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
779
|
+
errorCode,
|
|
797
780
|
});
|
|
798
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
799
781
|
}
|
|
800
782
|
};
|
|
801
783
|
const deserializeAws_json1_0DeleteBackupCommand = async (output, context) => {
|
|
@@ -817,7 +799,6 @@ const deserializeAws_json1_0DeleteBackupCommandError = async (output, context) =
|
|
|
817
799
|
...output,
|
|
818
800
|
body: await parseBody(output.body, context),
|
|
819
801
|
};
|
|
820
|
-
let response;
|
|
821
802
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
822
803
|
switch (errorCode) {
|
|
823
804
|
case "BackupInUseException":
|
|
@@ -837,14 +818,12 @@ const deserializeAws_json1_0DeleteBackupCommandError = async (output, context) =
|
|
|
837
818
|
throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
|
|
838
819
|
default:
|
|
839
820
|
const parsedBody = parsedOutput.body;
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
$metadata,
|
|
821
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
822
|
+
output,
|
|
823
|
+
parsedBody,
|
|
824
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
825
|
+
errorCode,
|
|
846
826
|
});
|
|
847
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
848
827
|
}
|
|
849
828
|
};
|
|
850
829
|
const deserializeAws_json1_0DeleteItemCommand = async (output, context) => {
|
|
@@ -866,7 +845,6 @@ const deserializeAws_json1_0DeleteItemCommandError = async (output, context) =>
|
|
|
866
845
|
...output,
|
|
867
846
|
body: await parseBody(output.body, context),
|
|
868
847
|
};
|
|
869
|
-
let response;
|
|
870
848
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
871
849
|
switch (errorCode) {
|
|
872
850
|
case "ConditionalCheckFailedException":
|
|
@@ -895,14 +873,12 @@ const deserializeAws_json1_0DeleteItemCommandError = async (output, context) =>
|
|
|
895
873
|
throw await deserializeAws_json1_0TransactionConflictExceptionResponse(parsedOutput, context);
|
|
896
874
|
default:
|
|
897
875
|
const parsedBody = parsedOutput.body;
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
$metadata,
|
|
876
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
877
|
+
output,
|
|
878
|
+
parsedBody,
|
|
879
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
880
|
+
errorCode,
|
|
904
881
|
});
|
|
905
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
906
882
|
}
|
|
907
883
|
};
|
|
908
884
|
const deserializeAws_json1_0DeleteTableCommand = async (output, context) => {
|
|
@@ -924,7 +900,6 @@ const deserializeAws_json1_0DeleteTableCommandError = async (output, context) =>
|
|
|
924
900
|
...output,
|
|
925
901
|
body: await parseBody(output.body, context),
|
|
926
902
|
};
|
|
927
|
-
let response;
|
|
928
903
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
929
904
|
switch (errorCode) {
|
|
930
905
|
case "InternalServerError":
|
|
@@ -944,14 +919,12 @@ const deserializeAws_json1_0DeleteTableCommandError = async (output, context) =>
|
|
|
944
919
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
945
920
|
default:
|
|
946
921
|
const parsedBody = parsedOutput.body;
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
$metadata,
|
|
922
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
923
|
+
output,
|
|
924
|
+
parsedBody,
|
|
925
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
926
|
+
errorCode,
|
|
953
927
|
});
|
|
954
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
955
928
|
}
|
|
956
929
|
};
|
|
957
930
|
const deserializeAws_json1_0DescribeBackupCommand = async (output, context) => {
|
|
@@ -973,7 +946,6 @@ const deserializeAws_json1_0DescribeBackupCommandError = async (output, context)
|
|
|
973
946
|
...output,
|
|
974
947
|
body: await parseBody(output.body, context),
|
|
975
948
|
};
|
|
976
|
-
let response;
|
|
977
949
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
978
950
|
switch (errorCode) {
|
|
979
951
|
case "BackupNotFoundException":
|
|
@@ -987,14 +959,12 @@ const deserializeAws_json1_0DescribeBackupCommandError = async (output, context)
|
|
|
987
959
|
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
988
960
|
default:
|
|
989
961
|
const parsedBody = parsedOutput.body;
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
$metadata,
|
|
962
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
963
|
+
output,
|
|
964
|
+
parsedBody,
|
|
965
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
966
|
+
errorCode,
|
|
996
967
|
});
|
|
997
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
998
968
|
}
|
|
999
969
|
};
|
|
1000
970
|
const deserializeAws_json1_0DescribeContinuousBackupsCommand = async (output, context) => {
|
|
@@ -1016,7 +986,6 @@ const deserializeAws_json1_0DescribeContinuousBackupsCommandError = async (outpu
|
|
|
1016
986
|
...output,
|
|
1017
987
|
body: await parseBody(output.body, context),
|
|
1018
988
|
};
|
|
1019
|
-
let response;
|
|
1020
989
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1021
990
|
switch (errorCode) {
|
|
1022
991
|
case "InternalServerError":
|
|
@@ -1030,14 +999,12 @@ const deserializeAws_json1_0DescribeContinuousBackupsCommandError = async (outpu
|
|
|
1030
999
|
throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context);
|
|
1031
1000
|
default:
|
|
1032
1001
|
const parsedBody = parsedOutput.body;
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
$metadata,
|
|
1002
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1003
|
+
output,
|
|
1004
|
+
parsedBody,
|
|
1005
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
1006
|
+
errorCode,
|
|
1039
1007
|
});
|
|
1040
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1041
1008
|
}
|
|
1042
1009
|
};
|
|
1043
1010
|
const deserializeAws_json1_0DescribeContributorInsightsCommand = async (output, context) => {
|
|
@@ -1059,7 +1026,6 @@ const deserializeAws_json1_0DescribeContributorInsightsCommandError = async (out
|
|
|
1059
1026
|
...output,
|
|
1060
1027
|
body: await parseBody(output.body, context),
|
|
1061
1028
|
};
|
|
1062
|
-
let response;
|
|
1063
1029
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1064
1030
|
switch (errorCode) {
|
|
1065
1031
|
case "InternalServerError":
|
|
@@ -1070,14 +1036,12 @@ const deserializeAws_json1_0DescribeContributorInsightsCommandError = async (out
|
|
|
1070
1036
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1071
1037
|
default:
|
|
1072
1038
|
const parsedBody = parsedOutput.body;
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
$metadata,
|
|
1039
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1040
|
+
output,
|
|
1041
|
+
parsedBody,
|
|
1042
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
1043
|
+
errorCode,
|
|
1079
1044
|
});
|
|
1080
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1081
1045
|
}
|
|
1082
1046
|
};
|
|
1083
1047
|
const deserializeAws_json1_0DescribeEndpointsCommand = async (output, context) => {
|
|
@@ -1099,20 +1063,14 @@ const deserializeAws_json1_0DescribeEndpointsCommandError = async (output, conte
|
|
|
1099
1063
|
...output,
|
|
1100
1064
|
body: await parseBody(output.body, context),
|
|
1101
1065
|
};
|
|
1102
|
-
let response;
|
|
1103
1066
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
$fault: "client",
|
|
1112
|
-
$metadata,
|
|
1113
|
-
});
|
|
1114
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1115
|
-
}
|
|
1067
|
+
const parsedBody = parsedOutput.body;
|
|
1068
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1069
|
+
output,
|
|
1070
|
+
parsedBody,
|
|
1071
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
1072
|
+
errorCode,
|
|
1073
|
+
});
|
|
1116
1074
|
};
|
|
1117
1075
|
const deserializeAws_json1_0DescribeExportCommand = async (output, context) => {
|
|
1118
1076
|
if (output.statusCode >= 300) {
|
|
@@ -1133,7 +1091,6 @@ const deserializeAws_json1_0DescribeExportCommandError = async (output, context)
|
|
|
1133
1091
|
...output,
|
|
1134
1092
|
body: await parseBody(output.body, context),
|
|
1135
1093
|
};
|
|
1136
|
-
let response;
|
|
1137
1094
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1138
1095
|
switch (errorCode) {
|
|
1139
1096
|
case "ExportNotFoundException":
|
|
@@ -1147,14 +1104,12 @@ const deserializeAws_json1_0DescribeExportCommandError = async (output, context)
|
|
|
1147
1104
|
throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
|
|
1148
1105
|
default:
|
|
1149
1106
|
const parsedBody = parsedOutput.body;
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
$metadata,
|
|
1107
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1108
|
+
output,
|
|
1109
|
+
parsedBody,
|
|
1110
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
1111
|
+
errorCode,
|
|
1156
1112
|
});
|
|
1157
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1158
1113
|
}
|
|
1159
1114
|
};
|
|
1160
1115
|
const deserializeAws_json1_0DescribeGlobalTableCommand = async (output, context) => {
|
|
@@ -1176,7 +1131,6 @@ const deserializeAws_json1_0DescribeGlobalTableCommandError = async (output, con
|
|
|
1176
1131
|
...output,
|
|
1177
1132
|
body: await parseBody(output.body, context),
|
|
1178
1133
|
};
|
|
1179
|
-
let response;
|
|
1180
1134
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1181
1135
|
switch (errorCode) {
|
|
1182
1136
|
case "GlobalTableNotFoundException":
|
|
@@ -1190,14 +1144,12 @@ const deserializeAws_json1_0DescribeGlobalTableCommandError = async (output, con
|
|
|
1190
1144
|
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
1191
1145
|
default:
|
|
1192
1146
|
const parsedBody = parsedOutput.body;
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
$metadata,
|
|
1147
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1148
|
+
output,
|
|
1149
|
+
parsedBody,
|
|
1150
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
1151
|
+
errorCode,
|
|
1199
1152
|
});
|
|
1200
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1201
1153
|
}
|
|
1202
1154
|
};
|
|
1203
1155
|
const deserializeAws_json1_0DescribeGlobalTableSettingsCommand = async (output, context) => {
|
|
@@ -1219,7 +1171,6 @@ const deserializeAws_json1_0DescribeGlobalTableSettingsCommandError = async (out
|
|
|
1219
1171
|
...output,
|
|
1220
1172
|
body: await parseBody(output.body, context),
|
|
1221
1173
|
};
|
|
1222
|
-
let response;
|
|
1223
1174
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1224
1175
|
switch (errorCode) {
|
|
1225
1176
|
case "GlobalTableNotFoundException":
|
|
@@ -1233,14 +1184,12 @@ const deserializeAws_json1_0DescribeGlobalTableSettingsCommandError = async (out
|
|
|
1233
1184
|
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
1234
1185
|
default:
|
|
1235
1186
|
const parsedBody = parsedOutput.body;
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
$metadata,
|
|
1187
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1188
|
+
output,
|
|
1189
|
+
parsedBody,
|
|
1190
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
1191
|
+
errorCode,
|
|
1242
1192
|
});
|
|
1243
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1244
1193
|
}
|
|
1245
1194
|
};
|
|
1246
1195
|
const deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand = async (output, context) => {
|
|
@@ -1262,7 +1211,6 @@ const deserializeAws_json1_0DescribeKinesisStreamingDestinationCommandError = as
|
|
|
1262
1211
|
...output,
|
|
1263
1212
|
body: await parseBody(output.body, context),
|
|
1264
1213
|
};
|
|
1265
|
-
let response;
|
|
1266
1214
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1267
1215
|
switch (errorCode) {
|
|
1268
1216
|
case "InternalServerError":
|
|
@@ -1276,14 +1224,12 @@ const deserializeAws_json1_0DescribeKinesisStreamingDestinationCommandError = as
|
|
|
1276
1224
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1277
1225
|
default:
|
|
1278
1226
|
const parsedBody = parsedOutput.body;
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
$metadata,
|
|
1227
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1228
|
+
output,
|
|
1229
|
+
parsedBody,
|
|
1230
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
1231
|
+
errorCode,
|
|
1285
1232
|
});
|
|
1286
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1287
1233
|
}
|
|
1288
1234
|
};
|
|
1289
1235
|
const deserializeAws_json1_0DescribeLimitsCommand = async (output, context) => {
|
|
@@ -1305,7 +1251,6 @@ const deserializeAws_json1_0DescribeLimitsCommandError = async (output, context)
|
|
|
1305
1251
|
...output,
|
|
1306
1252
|
body: await parseBody(output.body, context),
|
|
1307
1253
|
};
|
|
1308
|
-
let response;
|
|
1309
1254
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1310
1255
|
switch (errorCode) {
|
|
1311
1256
|
case "InternalServerError":
|
|
@@ -1316,14 +1261,12 @@ const deserializeAws_json1_0DescribeLimitsCommandError = async (output, context)
|
|
|
1316
1261
|
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
1317
1262
|
default:
|
|
1318
1263
|
const parsedBody = parsedOutput.body;
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
$metadata,
|
|
1264
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1265
|
+
output,
|
|
1266
|
+
parsedBody,
|
|
1267
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
1268
|
+
errorCode,
|
|
1325
1269
|
});
|
|
1326
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1327
1270
|
}
|
|
1328
1271
|
};
|
|
1329
1272
|
const deserializeAws_json1_0DescribeTableCommand = async (output, context) => {
|
|
@@ -1345,7 +1288,6 @@ const deserializeAws_json1_0DescribeTableCommandError = async (output, context)
|
|
|
1345
1288
|
...output,
|
|
1346
1289
|
body: await parseBody(output.body, context),
|
|
1347
1290
|
};
|
|
1348
|
-
let response;
|
|
1349
1291
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1350
1292
|
switch (errorCode) {
|
|
1351
1293
|
case "InternalServerError":
|
|
@@ -1359,14 +1301,12 @@ const deserializeAws_json1_0DescribeTableCommandError = async (output, context)
|
|
|
1359
1301
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1360
1302
|
default:
|
|
1361
1303
|
const parsedBody = parsedOutput.body;
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
$metadata,
|
|
1304
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1305
|
+
output,
|
|
1306
|
+
parsedBody,
|
|
1307
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
1308
|
+
errorCode,
|
|
1368
1309
|
});
|
|
1369
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1370
1310
|
}
|
|
1371
1311
|
};
|
|
1372
1312
|
const deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand = async (output, context) => {
|
|
@@ -1388,7 +1328,6 @@ const deserializeAws_json1_0DescribeTableReplicaAutoScalingCommandError = async
|
|
|
1388
1328
|
...output,
|
|
1389
1329
|
body: await parseBody(output.body, context),
|
|
1390
1330
|
};
|
|
1391
|
-
let response;
|
|
1392
1331
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1393
1332
|
switch (errorCode) {
|
|
1394
1333
|
case "InternalServerError":
|
|
@@ -1399,14 +1338,12 @@ const deserializeAws_json1_0DescribeTableReplicaAutoScalingCommandError = async
|
|
|
1399
1338
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1400
1339
|
default:
|
|
1401
1340
|
const parsedBody = parsedOutput.body;
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
$metadata,
|
|
1341
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1342
|
+
output,
|
|
1343
|
+
parsedBody,
|
|
1344
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
1345
|
+
errorCode,
|
|
1408
1346
|
});
|
|
1409
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1410
1347
|
}
|
|
1411
1348
|
};
|
|
1412
1349
|
const deserializeAws_json1_0DescribeTimeToLiveCommand = async (output, context) => {
|
|
@@ -1428,7 +1365,6 @@ const deserializeAws_json1_0DescribeTimeToLiveCommandError = async (output, cont
|
|
|
1428
1365
|
...output,
|
|
1429
1366
|
body: await parseBody(output.body, context),
|
|
1430
1367
|
};
|
|
1431
|
-
let response;
|
|
1432
1368
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1433
1369
|
switch (errorCode) {
|
|
1434
1370
|
case "InternalServerError":
|
|
@@ -1442,14 +1378,12 @@ const deserializeAws_json1_0DescribeTimeToLiveCommandError = async (output, cont
|
|
|
1442
1378
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1443
1379
|
default:
|
|
1444
1380
|
const parsedBody = parsedOutput.body;
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
$metadata,
|
|
1381
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1382
|
+
output,
|
|
1383
|
+
parsedBody,
|
|
1384
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
1385
|
+
errorCode,
|
|
1451
1386
|
});
|
|
1452
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1453
1387
|
}
|
|
1454
1388
|
};
|
|
1455
1389
|
const deserializeAws_json1_0DisableKinesisStreamingDestinationCommand = async (output, context) => {
|
|
@@ -1471,7 +1405,6 @@ const deserializeAws_json1_0DisableKinesisStreamingDestinationCommandError = asy
|
|
|
1471
1405
|
...output,
|
|
1472
1406
|
body: await parseBody(output.body, context),
|
|
1473
1407
|
};
|
|
1474
|
-
let response;
|
|
1475
1408
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1476
1409
|
switch (errorCode) {
|
|
1477
1410
|
case "InternalServerError":
|
|
@@ -1491,14 +1424,12 @@ const deserializeAws_json1_0DisableKinesisStreamingDestinationCommandError = asy
|
|
|
1491
1424
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1492
1425
|
default:
|
|
1493
1426
|
const parsedBody = parsedOutput.body;
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
$metadata,
|
|
1427
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1428
|
+
output,
|
|
1429
|
+
parsedBody,
|
|
1430
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
1431
|
+
errorCode,
|
|
1500
1432
|
});
|
|
1501
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1502
1433
|
}
|
|
1503
1434
|
};
|
|
1504
1435
|
const deserializeAws_json1_0EnableKinesisStreamingDestinationCommand = async (output, context) => {
|
|
@@ -1520,7 +1451,6 @@ const deserializeAws_json1_0EnableKinesisStreamingDestinationCommandError = asyn
|
|
|
1520
1451
|
...output,
|
|
1521
1452
|
body: await parseBody(output.body, context),
|
|
1522
1453
|
};
|
|
1523
|
-
let response;
|
|
1524
1454
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1525
1455
|
switch (errorCode) {
|
|
1526
1456
|
case "InternalServerError":
|
|
@@ -1540,14 +1470,12 @@ const deserializeAws_json1_0EnableKinesisStreamingDestinationCommandError = asyn
|
|
|
1540
1470
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1541
1471
|
default:
|
|
1542
1472
|
const parsedBody = parsedOutput.body;
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
$metadata,
|
|
1473
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1474
|
+
output,
|
|
1475
|
+
parsedBody,
|
|
1476
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
1477
|
+
errorCode,
|
|
1549
1478
|
});
|
|
1550
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1551
1479
|
}
|
|
1552
1480
|
};
|
|
1553
1481
|
const deserializeAws_json1_0ExecuteStatementCommand = async (output, context) => {
|
|
@@ -1569,7 +1497,6 @@ const deserializeAws_json1_0ExecuteStatementCommandError = async (output, contex
|
|
|
1569
1497
|
...output,
|
|
1570
1498
|
body: await parseBody(output.body, context),
|
|
1571
1499
|
};
|
|
1572
|
-
let response;
|
|
1573
1500
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1574
1501
|
switch (errorCode) {
|
|
1575
1502
|
case "ConditionalCheckFailedException":
|
|
@@ -1598,14 +1525,12 @@ const deserializeAws_json1_0ExecuteStatementCommandError = async (output, contex
|
|
|
1598
1525
|
throw await deserializeAws_json1_0TransactionConflictExceptionResponse(parsedOutput, context);
|
|
1599
1526
|
default:
|
|
1600
1527
|
const parsedBody = parsedOutput.body;
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
$metadata,
|
|
1528
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1529
|
+
output,
|
|
1530
|
+
parsedBody,
|
|
1531
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
1532
|
+
errorCode,
|
|
1607
1533
|
});
|
|
1608
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1609
1534
|
}
|
|
1610
1535
|
};
|
|
1611
1536
|
const deserializeAws_json1_0ExecuteTransactionCommand = async (output, context) => {
|
|
@@ -1627,7 +1552,6 @@ const deserializeAws_json1_0ExecuteTransactionCommandError = async (output, cont
|
|
|
1627
1552
|
...output,
|
|
1628
1553
|
body: await parseBody(output.body, context),
|
|
1629
1554
|
};
|
|
1630
|
-
let response;
|
|
1631
1555
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1632
1556
|
switch (errorCode) {
|
|
1633
1557
|
case "IdempotentParameterMismatchException":
|
|
@@ -1653,14 +1577,12 @@ const deserializeAws_json1_0ExecuteTransactionCommandError = async (output, cont
|
|
|
1653
1577
|
throw await deserializeAws_json1_0TransactionInProgressExceptionResponse(parsedOutput, context);
|
|
1654
1578
|
default:
|
|
1655
1579
|
const parsedBody = parsedOutput.body;
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
$metadata,
|
|
1580
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1581
|
+
output,
|
|
1582
|
+
parsedBody,
|
|
1583
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
1584
|
+
errorCode,
|
|
1662
1585
|
});
|
|
1663
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1664
1586
|
}
|
|
1665
1587
|
};
|
|
1666
1588
|
const deserializeAws_json1_0ExportTableToPointInTimeCommand = async (output, context) => {
|
|
@@ -1682,7 +1604,6 @@ const deserializeAws_json1_0ExportTableToPointInTimeCommandError = async (output
|
|
|
1682
1604
|
...output,
|
|
1683
1605
|
body: await parseBody(output.body, context),
|
|
1684
1606
|
};
|
|
1685
|
-
let response;
|
|
1686
1607
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1687
1608
|
switch (errorCode) {
|
|
1688
1609
|
case "ExportConflictException":
|
|
@@ -1705,14 +1626,12 @@ const deserializeAws_json1_0ExportTableToPointInTimeCommandError = async (output
|
|
|
1705
1626
|
throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context);
|
|
1706
1627
|
default:
|
|
1707
1628
|
const parsedBody = parsedOutput.body;
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
$metadata,
|
|
1629
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1630
|
+
output,
|
|
1631
|
+
parsedBody,
|
|
1632
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
1633
|
+
errorCode,
|
|
1714
1634
|
});
|
|
1715
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1716
1635
|
}
|
|
1717
1636
|
};
|
|
1718
1637
|
const deserializeAws_json1_0GetItemCommand = async (output, context) => {
|
|
@@ -1734,7 +1653,6 @@ const deserializeAws_json1_0GetItemCommandError = async (output, context) => {
|
|
|
1734
1653
|
...output,
|
|
1735
1654
|
body: await parseBody(output.body, context),
|
|
1736
1655
|
};
|
|
1737
|
-
let response;
|
|
1738
1656
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1739
1657
|
switch (errorCode) {
|
|
1740
1658
|
case "InternalServerError":
|
|
@@ -1754,14 +1672,12 @@ const deserializeAws_json1_0GetItemCommandError = async (output, context) => {
|
|
|
1754
1672
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1755
1673
|
default:
|
|
1756
1674
|
const parsedBody = parsedOutput.body;
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
$metadata,
|
|
1675
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1676
|
+
output,
|
|
1677
|
+
parsedBody,
|
|
1678
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
1679
|
+
errorCode,
|
|
1763
1680
|
});
|
|
1764
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1765
1681
|
}
|
|
1766
1682
|
};
|
|
1767
1683
|
const deserializeAws_json1_0ListBackupsCommand = async (output, context) => {
|
|
@@ -1783,7 +1699,6 @@ const deserializeAws_json1_0ListBackupsCommandError = async (output, context) =>
|
|
|
1783
1699
|
...output,
|
|
1784
1700
|
body: await parseBody(output.body, context),
|
|
1785
1701
|
};
|
|
1786
|
-
let response;
|
|
1787
1702
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1788
1703
|
switch (errorCode) {
|
|
1789
1704
|
case "InternalServerError":
|
|
@@ -1794,14 +1709,12 @@ const deserializeAws_json1_0ListBackupsCommandError = async (output, context) =>
|
|
|
1794
1709
|
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
1795
1710
|
default:
|
|
1796
1711
|
const parsedBody = parsedOutput.body;
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
$metadata,
|
|
1712
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1713
|
+
output,
|
|
1714
|
+
parsedBody,
|
|
1715
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
1716
|
+
errorCode,
|
|
1803
1717
|
});
|
|
1804
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1805
1718
|
}
|
|
1806
1719
|
};
|
|
1807
1720
|
const deserializeAws_json1_0ListContributorInsightsCommand = async (output, context) => {
|
|
@@ -1823,7 +1736,6 @@ const deserializeAws_json1_0ListContributorInsightsCommandError = async (output,
|
|
|
1823
1736
|
...output,
|
|
1824
1737
|
body: await parseBody(output.body, context),
|
|
1825
1738
|
};
|
|
1826
|
-
let response;
|
|
1827
1739
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1828
1740
|
switch (errorCode) {
|
|
1829
1741
|
case "InternalServerError":
|
|
@@ -1834,14 +1746,12 @@ const deserializeAws_json1_0ListContributorInsightsCommandError = async (output,
|
|
|
1834
1746
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1835
1747
|
default:
|
|
1836
1748
|
const parsedBody = parsedOutput.body;
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
$metadata,
|
|
1749
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1750
|
+
output,
|
|
1751
|
+
parsedBody,
|
|
1752
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
1753
|
+
errorCode,
|
|
1843
1754
|
});
|
|
1844
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1845
1755
|
}
|
|
1846
1756
|
};
|
|
1847
1757
|
const deserializeAws_json1_0ListExportsCommand = async (output, context) => {
|
|
@@ -1863,7 +1773,6 @@ const deserializeAws_json1_0ListExportsCommandError = async (output, context) =>
|
|
|
1863
1773
|
...output,
|
|
1864
1774
|
body: await parseBody(output.body, context),
|
|
1865
1775
|
};
|
|
1866
|
-
let response;
|
|
1867
1776
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1868
1777
|
switch (errorCode) {
|
|
1869
1778
|
case "InternalServerError":
|
|
@@ -1874,14 +1783,12 @@ const deserializeAws_json1_0ListExportsCommandError = async (output, context) =>
|
|
|
1874
1783
|
throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
|
|
1875
1784
|
default:
|
|
1876
1785
|
const parsedBody = parsedOutput.body;
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
$metadata,
|
|
1786
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1787
|
+
output,
|
|
1788
|
+
parsedBody,
|
|
1789
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
1790
|
+
errorCode,
|
|
1883
1791
|
});
|
|
1884
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1885
1792
|
}
|
|
1886
1793
|
};
|
|
1887
1794
|
const deserializeAws_json1_0ListGlobalTablesCommand = async (output, context) => {
|
|
@@ -1903,7 +1810,6 @@ const deserializeAws_json1_0ListGlobalTablesCommandError = async (output, contex
|
|
|
1903
1810
|
...output,
|
|
1904
1811
|
body: await parseBody(output.body, context),
|
|
1905
1812
|
};
|
|
1906
|
-
let response;
|
|
1907
1813
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1908
1814
|
switch (errorCode) {
|
|
1909
1815
|
case "InternalServerError":
|
|
@@ -1914,14 +1820,12 @@ const deserializeAws_json1_0ListGlobalTablesCommandError = async (output, contex
|
|
|
1914
1820
|
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
1915
1821
|
default:
|
|
1916
1822
|
const parsedBody = parsedOutput.body;
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
$metadata,
|
|
1823
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1824
|
+
output,
|
|
1825
|
+
parsedBody,
|
|
1826
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
1827
|
+
errorCode,
|
|
1923
1828
|
});
|
|
1924
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1925
1829
|
}
|
|
1926
1830
|
};
|
|
1927
1831
|
const deserializeAws_json1_0ListTablesCommand = async (output, context) => {
|
|
@@ -1943,7 +1847,6 @@ const deserializeAws_json1_0ListTablesCommandError = async (output, context) =>
|
|
|
1943
1847
|
...output,
|
|
1944
1848
|
body: await parseBody(output.body, context),
|
|
1945
1849
|
};
|
|
1946
|
-
let response;
|
|
1947
1850
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1948
1851
|
switch (errorCode) {
|
|
1949
1852
|
case "InternalServerError":
|
|
@@ -1954,14 +1857,12 @@ const deserializeAws_json1_0ListTablesCommandError = async (output, context) =>
|
|
|
1954
1857
|
throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context);
|
|
1955
1858
|
default:
|
|
1956
1859
|
const parsedBody = parsedOutput.body;
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
$metadata,
|
|
1860
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1861
|
+
output,
|
|
1862
|
+
parsedBody,
|
|
1863
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
1864
|
+
errorCode,
|
|
1963
1865
|
});
|
|
1964
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1965
1866
|
}
|
|
1966
1867
|
};
|
|
1967
1868
|
const deserializeAws_json1_0ListTagsOfResourceCommand = async (output, context) => {
|
|
@@ -1983,7 +1884,6 @@ const deserializeAws_json1_0ListTagsOfResourceCommandError = async (output, cont
|
|
|
1983
1884
|
...output,
|
|
1984
1885
|
body: await parseBody(output.body, context),
|
|
1985
1886
|
};
|
|
1986
|
-
let response;
|
|
1987
1887
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1988
1888
|
switch (errorCode) {
|
|
1989
1889
|
case "InternalServerError":
|
|
@@ -1997,14 +1897,12 @@ const deserializeAws_json1_0ListTagsOfResourceCommandError = async (output, cont
|
|
|
1997
1897
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1998
1898
|
default:
|
|
1999
1899
|
const parsedBody = parsedOutput.body;
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
$metadata,
|
|
1900
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1901
|
+
output,
|
|
1902
|
+
parsedBody,
|
|
1903
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
1904
|
+
errorCode,
|
|
2006
1905
|
});
|
|
2007
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2008
1906
|
}
|
|
2009
1907
|
};
|
|
2010
1908
|
const deserializeAws_json1_0PutItemCommand = async (output, context) => {
|
|
@@ -2026,7 +1924,6 @@ const deserializeAws_json1_0PutItemCommandError = async (output, context) => {
|
|
|
2026
1924
|
...output,
|
|
2027
1925
|
body: await parseBody(output.body, context),
|
|
2028
1926
|
};
|
|
2029
|
-
let response;
|
|
2030
1927
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2031
1928
|
switch (errorCode) {
|
|
2032
1929
|
case "ConditionalCheckFailedException":
|
|
@@ -2055,14 +1952,12 @@ const deserializeAws_json1_0PutItemCommandError = async (output, context) => {
|
|
|
2055
1952
|
throw await deserializeAws_json1_0TransactionConflictExceptionResponse(parsedOutput, context);
|
|
2056
1953
|
default:
|
|
2057
1954
|
const parsedBody = parsedOutput.body;
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
$metadata,
|
|
1955
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1956
|
+
output,
|
|
1957
|
+
parsedBody,
|
|
1958
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
1959
|
+
errorCode,
|
|
2064
1960
|
});
|
|
2065
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2066
1961
|
}
|
|
2067
1962
|
};
|
|
2068
1963
|
const deserializeAws_json1_0QueryCommand = async (output, context) => {
|
|
@@ -2084,7 +1979,6 @@ const deserializeAws_json1_0QueryCommandError = async (output, context) => {
|
|
|
2084
1979
|
...output,
|
|
2085
1980
|
body: await parseBody(output.body, context),
|
|
2086
1981
|
};
|
|
2087
|
-
let response;
|
|
2088
1982
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2089
1983
|
switch (errorCode) {
|
|
2090
1984
|
case "InternalServerError":
|
|
@@ -2104,14 +1998,12 @@ const deserializeAws_json1_0QueryCommandError = async (output, context) => {
|
|
|
2104
1998
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2105
1999
|
default:
|
|
2106
2000
|
const parsedBody = parsedOutput.body;
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
$metadata,
|
|
2001
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2002
|
+
output,
|
|
2003
|
+
parsedBody,
|
|
2004
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
2005
|
+
errorCode,
|
|
2113
2006
|
});
|
|
2114
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2115
2007
|
}
|
|
2116
2008
|
};
|
|
2117
2009
|
const deserializeAws_json1_0RestoreTableFromBackupCommand = async (output, context) => {
|
|
@@ -2133,7 +2025,6 @@ const deserializeAws_json1_0RestoreTableFromBackupCommandError = async (output,
|
|
|
2133
2025
|
...output,
|
|
2134
2026
|
body: await parseBody(output.body, context),
|
|
2135
2027
|
};
|
|
2136
|
-
let response;
|
|
2137
2028
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2138
2029
|
switch (errorCode) {
|
|
2139
2030
|
case "BackupInUseException":
|
|
@@ -2159,14 +2050,12 @@ const deserializeAws_json1_0RestoreTableFromBackupCommandError = async (output,
|
|
|
2159
2050
|
throw await deserializeAws_json1_0TableInUseExceptionResponse(parsedOutput, context);
|
|
2160
2051
|
default:
|
|
2161
2052
|
const parsedBody = parsedOutput.body;
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
$metadata,
|
|
2053
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2054
|
+
output,
|
|
2055
|
+
parsedBody,
|
|
2056
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
2057
|
+
errorCode,
|
|
2168
2058
|
});
|
|
2169
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2170
2059
|
}
|
|
2171
2060
|
};
|
|
2172
2061
|
const deserializeAws_json1_0RestoreTableToPointInTimeCommand = async (output, context) => {
|
|
@@ -2188,7 +2077,6 @@ const deserializeAws_json1_0RestoreTableToPointInTimeCommandError = async (outpu
|
|
|
2188
2077
|
...output,
|
|
2189
2078
|
body: await parseBody(output.body, context),
|
|
2190
2079
|
};
|
|
2191
|
-
let response;
|
|
2192
2080
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2193
2081
|
switch (errorCode) {
|
|
2194
2082
|
case "InternalServerError":
|
|
@@ -2217,14 +2105,12 @@ const deserializeAws_json1_0RestoreTableToPointInTimeCommandError = async (outpu
|
|
|
2217
2105
|
throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context);
|
|
2218
2106
|
default:
|
|
2219
2107
|
const parsedBody = parsedOutput.body;
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
$metadata,
|
|
2108
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2109
|
+
output,
|
|
2110
|
+
parsedBody,
|
|
2111
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
2112
|
+
errorCode,
|
|
2226
2113
|
});
|
|
2227
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2228
2114
|
}
|
|
2229
2115
|
};
|
|
2230
2116
|
const deserializeAws_json1_0ScanCommand = async (output, context) => {
|
|
@@ -2246,7 +2132,6 @@ const deserializeAws_json1_0ScanCommandError = async (output, context) => {
|
|
|
2246
2132
|
...output,
|
|
2247
2133
|
body: await parseBody(output.body, context),
|
|
2248
2134
|
};
|
|
2249
|
-
let response;
|
|
2250
2135
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2251
2136
|
switch (errorCode) {
|
|
2252
2137
|
case "InternalServerError":
|
|
@@ -2266,14 +2151,12 @@ const deserializeAws_json1_0ScanCommandError = async (output, context) => {
|
|
|
2266
2151
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2267
2152
|
default:
|
|
2268
2153
|
const parsedBody = parsedOutput.body;
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
$metadata,
|
|
2154
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2155
|
+
output,
|
|
2156
|
+
parsedBody,
|
|
2157
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
2158
|
+
errorCode,
|
|
2275
2159
|
});
|
|
2276
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2277
2160
|
}
|
|
2278
2161
|
};
|
|
2279
2162
|
const deserializeAws_json1_0TagResourceCommand = async (output, context) => {
|
|
@@ -2292,7 +2175,6 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
2292
2175
|
...output,
|
|
2293
2176
|
body: await parseBody(output.body, context),
|
|
2294
2177
|
};
|
|
2295
|
-
let response;
|
|
2296
2178
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2297
2179
|
switch (errorCode) {
|
|
2298
2180
|
case "InternalServerError":
|
|
@@ -2312,14 +2194,12 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
2312
2194
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2313
2195
|
default:
|
|
2314
2196
|
const parsedBody = parsedOutput.body;
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
$metadata,
|
|
2197
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2198
|
+
output,
|
|
2199
|
+
parsedBody,
|
|
2200
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
2201
|
+
errorCode,
|
|
2321
2202
|
});
|
|
2322
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2323
2203
|
}
|
|
2324
2204
|
};
|
|
2325
2205
|
const deserializeAws_json1_0TransactGetItemsCommand = async (output, context) => {
|
|
@@ -2341,7 +2221,6 @@ const deserializeAws_json1_0TransactGetItemsCommandError = async (output, contex
|
|
|
2341
2221
|
...output,
|
|
2342
2222
|
body: await parseBody(output.body, context),
|
|
2343
2223
|
};
|
|
2344
|
-
let response;
|
|
2345
2224
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2346
2225
|
switch (errorCode) {
|
|
2347
2226
|
case "InternalServerError":
|
|
@@ -2364,14 +2243,12 @@ const deserializeAws_json1_0TransactGetItemsCommandError = async (output, contex
|
|
|
2364
2243
|
throw await deserializeAws_json1_0TransactionCanceledExceptionResponse(parsedOutput, context);
|
|
2365
2244
|
default:
|
|
2366
2245
|
const parsedBody = parsedOutput.body;
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
$metadata,
|
|
2246
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2247
|
+
output,
|
|
2248
|
+
parsedBody,
|
|
2249
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
2250
|
+
errorCode,
|
|
2373
2251
|
});
|
|
2374
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2375
2252
|
}
|
|
2376
2253
|
};
|
|
2377
2254
|
const deserializeAws_json1_0TransactWriteItemsCommand = async (output, context) => {
|
|
@@ -2393,7 +2270,6 @@ const deserializeAws_json1_0TransactWriteItemsCommandError = async (output, cont
|
|
|
2393
2270
|
...output,
|
|
2394
2271
|
body: await parseBody(output.body, context),
|
|
2395
2272
|
};
|
|
2396
|
-
let response;
|
|
2397
2273
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2398
2274
|
switch (errorCode) {
|
|
2399
2275
|
case "IdempotentParameterMismatchException":
|
|
@@ -2422,14 +2298,12 @@ const deserializeAws_json1_0TransactWriteItemsCommandError = async (output, cont
|
|
|
2422
2298
|
throw await deserializeAws_json1_0TransactionInProgressExceptionResponse(parsedOutput, context);
|
|
2423
2299
|
default:
|
|
2424
2300
|
const parsedBody = parsedOutput.body;
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
$metadata,
|
|
2301
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2302
|
+
output,
|
|
2303
|
+
parsedBody,
|
|
2304
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
2305
|
+
errorCode,
|
|
2431
2306
|
});
|
|
2432
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2433
2307
|
}
|
|
2434
2308
|
};
|
|
2435
2309
|
const deserializeAws_json1_0UntagResourceCommand = async (output, context) => {
|
|
@@ -2448,7 +2322,6 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
2448
2322
|
...output,
|
|
2449
2323
|
body: await parseBody(output.body, context),
|
|
2450
2324
|
};
|
|
2451
|
-
let response;
|
|
2452
2325
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2453
2326
|
switch (errorCode) {
|
|
2454
2327
|
case "InternalServerError":
|
|
@@ -2468,14 +2341,12 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
2468
2341
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2469
2342
|
default:
|
|
2470
2343
|
const parsedBody = parsedOutput.body;
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
$metadata,
|
|
2344
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2345
|
+
output,
|
|
2346
|
+
parsedBody,
|
|
2347
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
2348
|
+
errorCode,
|
|
2477
2349
|
});
|
|
2478
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2479
2350
|
}
|
|
2480
2351
|
};
|
|
2481
2352
|
const deserializeAws_json1_0UpdateContinuousBackupsCommand = async (output, context) => {
|
|
@@ -2497,7 +2368,6 @@ const deserializeAws_json1_0UpdateContinuousBackupsCommandError = async (output,
|
|
|
2497
2368
|
...output,
|
|
2498
2369
|
body: await parseBody(output.body, context),
|
|
2499
2370
|
};
|
|
2500
|
-
let response;
|
|
2501
2371
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2502
2372
|
switch (errorCode) {
|
|
2503
2373
|
case "ContinuousBackupsUnavailableException":
|
|
@@ -2514,14 +2384,12 @@ const deserializeAws_json1_0UpdateContinuousBackupsCommandError = async (output,
|
|
|
2514
2384
|
throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context);
|
|
2515
2385
|
default:
|
|
2516
2386
|
const parsedBody = parsedOutput.body;
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
$metadata,
|
|
2387
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2388
|
+
output,
|
|
2389
|
+
parsedBody,
|
|
2390
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
2391
|
+
errorCode,
|
|
2523
2392
|
});
|
|
2524
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2525
2393
|
}
|
|
2526
2394
|
};
|
|
2527
2395
|
const deserializeAws_json1_0UpdateContributorInsightsCommand = async (output, context) => {
|
|
@@ -2543,7 +2411,6 @@ const deserializeAws_json1_0UpdateContributorInsightsCommandError = async (outpu
|
|
|
2543
2411
|
...output,
|
|
2544
2412
|
body: await parseBody(output.body, context),
|
|
2545
2413
|
};
|
|
2546
|
-
let response;
|
|
2547
2414
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2548
2415
|
switch (errorCode) {
|
|
2549
2416
|
case "InternalServerError":
|
|
@@ -2554,14 +2421,12 @@ const deserializeAws_json1_0UpdateContributorInsightsCommandError = async (outpu
|
|
|
2554
2421
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2555
2422
|
default:
|
|
2556
2423
|
const parsedBody = parsedOutput.body;
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
$metadata,
|
|
2424
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2425
|
+
output,
|
|
2426
|
+
parsedBody,
|
|
2427
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
2428
|
+
errorCode,
|
|
2563
2429
|
});
|
|
2564
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2565
2430
|
}
|
|
2566
2431
|
};
|
|
2567
2432
|
const deserializeAws_json1_0UpdateGlobalTableCommand = async (output, context) => {
|
|
@@ -2583,7 +2448,6 @@ const deserializeAws_json1_0UpdateGlobalTableCommandError = async (output, conte
|
|
|
2583
2448
|
...output,
|
|
2584
2449
|
body: await parseBody(output.body, context),
|
|
2585
2450
|
};
|
|
2586
|
-
let response;
|
|
2587
2451
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2588
2452
|
switch (errorCode) {
|
|
2589
2453
|
case "GlobalTableNotFoundException":
|
|
@@ -2606,14 +2470,12 @@ const deserializeAws_json1_0UpdateGlobalTableCommandError = async (output, conte
|
|
|
2606
2470
|
throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context);
|
|
2607
2471
|
default:
|
|
2608
2472
|
const parsedBody = parsedOutput.body;
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
$metadata,
|
|
2473
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2474
|
+
output,
|
|
2475
|
+
parsedBody,
|
|
2476
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
2477
|
+
errorCode,
|
|
2615
2478
|
});
|
|
2616
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2617
2479
|
}
|
|
2618
2480
|
};
|
|
2619
2481
|
const deserializeAws_json1_0UpdateGlobalTableSettingsCommand = async (output, context) => {
|
|
@@ -2635,7 +2497,6 @@ const deserializeAws_json1_0UpdateGlobalTableSettingsCommandError = async (outpu
|
|
|
2635
2497
|
...output,
|
|
2636
2498
|
body: await parseBody(output.body, context),
|
|
2637
2499
|
};
|
|
2638
|
-
let response;
|
|
2639
2500
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2640
2501
|
switch (errorCode) {
|
|
2641
2502
|
case "GlobalTableNotFoundException":
|
|
@@ -2661,14 +2522,12 @@ const deserializeAws_json1_0UpdateGlobalTableSettingsCommandError = async (outpu
|
|
|
2661
2522
|
throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context);
|
|
2662
2523
|
default:
|
|
2663
2524
|
const parsedBody = parsedOutput.body;
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
$metadata,
|
|
2525
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2526
|
+
output,
|
|
2527
|
+
parsedBody,
|
|
2528
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
2529
|
+
errorCode,
|
|
2670
2530
|
});
|
|
2671
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2672
2531
|
}
|
|
2673
2532
|
};
|
|
2674
2533
|
const deserializeAws_json1_0UpdateItemCommand = async (output, context) => {
|
|
@@ -2690,7 +2549,6 @@ const deserializeAws_json1_0UpdateItemCommandError = async (output, context) =>
|
|
|
2690
2549
|
...output,
|
|
2691
2550
|
body: await parseBody(output.body, context),
|
|
2692
2551
|
};
|
|
2693
|
-
let response;
|
|
2694
2552
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2695
2553
|
switch (errorCode) {
|
|
2696
2554
|
case "ConditionalCheckFailedException":
|
|
@@ -2719,14 +2577,12 @@ const deserializeAws_json1_0UpdateItemCommandError = async (output, context) =>
|
|
|
2719
2577
|
throw await deserializeAws_json1_0TransactionConflictExceptionResponse(parsedOutput, context);
|
|
2720
2578
|
default:
|
|
2721
2579
|
const parsedBody = parsedOutput.body;
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
$metadata,
|
|
2580
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2581
|
+
output,
|
|
2582
|
+
parsedBody,
|
|
2583
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
2584
|
+
errorCode,
|
|
2728
2585
|
});
|
|
2729
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2730
2586
|
}
|
|
2731
2587
|
};
|
|
2732
2588
|
const deserializeAws_json1_0UpdateTableCommand = async (output, context) => {
|
|
@@ -2748,7 +2604,6 @@ const deserializeAws_json1_0UpdateTableCommandError = async (output, context) =>
|
|
|
2748
2604
|
...output,
|
|
2749
2605
|
body: await parseBody(output.body, context),
|
|
2750
2606
|
};
|
|
2751
|
-
let response;
|
|
2752
2607
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2753
2608
|
switch (errorCode) {
|
|
2754
2609
|
case "InternalServerError":
|
|
@@ -2768,14 +2623,12 @@ const deserializeAws_json1_0UpdateTableCommandError = async (output, context) =>
|
|
|
2768
2623
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2769
2624
|
default:
|
|
2770
2625
|
const parsedBody = parsedOutput.body;
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
$metadata,
|
|
2626
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2627
|
+
output,
|
|
2628
|
+
parsedBody,
|
|
2629
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
2630
|
+
errorCode,
|
|
2777
2631
|
});
|
|
2778
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2779
2632
|
}
|
|
2780
2633
|
};
|
|
2781
2634
|
const deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand = async (output, context) => {
|
|
@@ -2797,7 +2650,6 @@ const deserializeAws_json1_0UpdateTableReplicaAutoScalingCommandError = async (o
|
|
|
2797
2650
|
...output,
|
|
2798
2651
|
body: await parseBody(output.body, context),
|
|
2799
2652
|
};
|
|
2800
|
-
let response;
|
|
2801
2653
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2802
2654
|
switch (errorCode) {
|
|
2803
2655
|
case "InternalServerError":
|
|
@@ -2814,14 +2666,12 @@ const deserializeAws_json1_0UpdateTableReplicaAutoScalingCommandError = async (o
|
|
|
2814
2666
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2815
2667
|
default:
|
|
2816
2668
|
const parsedBody = parsedOutput.body;
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
$metadata,
|
|
2669
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2670
|
+
output,
|
|
2671
|
+
parsedBody,
|
|
2672
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
2673
|
+
errorCode,
|
|
2823
2674
|
});
|
|
2824
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2825
2675
|
}
|
|
2826
2676
|
};
|
|
2827
2677
|
const deserializeAws_json1_0UpdateTimeToLiveCommand = async (output, context) => {
|
|
@@ -2843,7 +2693,6 @@ const deserializeAws_json1_0UpdateTimeToLiveCommandError = async (output, contex
|
|
|
2843
2693
|
...output,
|
|
2844
2694
|
body: await parseBody(output.body, context),
|
|
2845
2695
|
};
|
|
2846
|
-
let response;
|
|
2847
2696
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2848
2697
|
switch (errorCode) {
|
|
2849
2698
|
case "InternalServerError":
|
|
@@ -2863,14 +2712,12 @@ const deserializeAws_json1_0UpdateTimeToLiveCommandError = async (output, contex
|
|
|
2863
2712
|
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2864
2713
|
default:
|
|
2865
2714
|
const parsedBody = parsedOutput.body;
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
$metadata,
|
|
2715
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2716
|
+
output,
|
|
2717
|
+
parsedBody,
|
|
2718
|
+
exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
|
|
2719
|
+
errorCode,
|
|
2872
2720
|
});
|
|
2873
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2874
2721
|
}
|
|
2875
2722
|
};
|
|
2876
2723
|
const deserializeAws_json1_0BackupInUseExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -3153,9 +3000,6 @@ const serializeAws_json1_0AttributeDefinitions = (input, context) => {
|
|
|
3153
3000
|
return input
|
|
3154
3001
|
.filter((e) => e != null)
|
|
3155
3002
|
.map((entry) => {
|
|
3156
|
-
if (entry === null) {
|
|
3157
|
-
return null;
|
|
3158
|
-
}
|
|
3159
3003
|
return serializeAws_json1_0AttributeDefinition(entry, context);
|
|
3160
3004
|
});
|
|
3161
3005
|
};
|
|
@@ -3163,9 +3007,6 @@ const serializeAws_json1_0AttributeNameList = (input, context) => {
|
|
|
3163
3007
|
return input
|
|
3164
3008
|
.filter((e) => e != null)
|
|
3165
3009
|
.map((entry) => {
|
|
3166
|
-
if (entry === null) {
|
|
3167
|
-
return null;
|
|
3168
|
-
}
|
|
3169
3010
|
return entry;
|
|
3170
3011
|
});
|
|
3171
3012
|
};
|
|
@@ -3199,9 +3040,6 @@ const serializeAws_json1_0AttributeValueList = (input, context) => {
|
|
|
3199
3040
|
return input
|
|
3200
3041
|
.filter((e) => e != null)
|
|
3201
3042
|
.map((entry) => {
|
|
3202
|
-
if (entry === null) {
|
|
3203
|
-
return null;
|
|
3204
|
-
}
|
|
3205
3043
|
return serializeAws_json1_0AttributeValue(entry, context);
|
|
3206
3044
|
});
|
|
3207
3045
|
};
|
|
@@ -3298,9 +3136,6 @@ const serializeAws_json1_0BinarySetAttributeValue = (input, context) => {
|
|
|
3298
3136
|
return input
|
|
3299
3137
|
.filter((e) => e != null)
|
|
3300
3138
|
.map((entry) => {
|
|
3301
|
-
if (entry === null) {
|
|
3302
|
-
return null;
|
|
3303
|
-
}
|
|
3304
3139
|
return context.base64Encoder(entry);
|
|
3305
3140
|
});
|
|
3306
3141
|
};
|
|
@@ -3657,9 +3492,6 @@ const serializeAws_json1_0GlobalSecondaryIndexAutoScalingUpdateList = (input, co
|
|
|
3657
3492
|
return input
|
|
3658
3493
|
.filter((e) => e != null)
|
|
3659
3494
|
.map((entry) => {
|
|
3660
|
-
if (entry === null) {
|
|
3661
|
-
return null;
|
|
3662
|
-
}
|
|
3663
3495
|
return serializeAws_json1_0GlobalSecondaryIndexAutoScalingUpdate(entry, context);
|
|
3664
3496
|
});
|
|
3665
3497
|
};
|
|
@@ -3667,9 +3499,6 @@ const serializeAws_json1_0GlobalSecondaryIndexList = (input, context) => {
|
|
|
3667
3499
|
return input
|
|
3668
3500
|
.filter((e) => e != null)
|
|
3669
3501
|
.map((entry) => {
|
|
3670
|
-
if (entry === null) {
|
|
3671
|
-
return null;
|
|
3672
|
-
}
|
|
3673
3502
|
return serializeAws_json1_0GlobalSecondaryIndex(entry, context);
|
|
3674
3503
|
});
|
|
3675
3504
|
};
|
|
@@ -3690,9 +3519,6 @@ const serializeAws_json1_0GlobalSecondaryIndexUpdateList = (input, context) => {
|
|
|
3690
3519
|
return input
|
|
3691
3520
|
.filter((e) => e != null)
|
|
3692
3521
|
.map((entry) => {
|
|
3693
|
-
if (entry === null) {
|
|
3694
|
-
return null;
|
|
3695
|
-
}
|
|
3696
3522
|
return serializeAws_json1_0GlobalSecondaryIndexUpdate(entry, context);
|
|
3697
3523
|
});
|
|
3698
3524
|
};
|
|
@@ -3711,9 +3537,6 @@ const serializeAws_json1_0GlobalTableGlobalSecondaryIndexSettingsUpdateList = (i
|
|
|
3711
3537
|
return input
|
|
3712
3538
|
.filter((e) => e != null)
|
|
3713
3539
|
.map((entry) => {
|
|
3714
|
-
if (entry === null) {
|
|
3715
|
-
return null;
|
|
3716
|
-
}
|
|
3717
3540
|
return serializeAws_json1_0GlobalTableGlobalSecondaryIndexSettingsUpdate(entry, context);
|
|
3718
3541
|
});
|
|
3719
3542
|
};
|
|
@@ -3743,9 +3566,6 @@ const serializeAws_json1_0KeyList = (input, context) => {
|
|
|
3743
3566
|
return input
|
|
3744
3567
|
.filter((e) => e != null)
|
|
3745
3568
|
.map((entry) => {
|
|
3746
|
-
if (entry === null) {
|
|
3747
|
-
return null;
|
|
3748
|
-
}
|
|
3749
3569
|
return serializeAws_json1_0Key(entry, context);
|
|
3750
3570
|
});
|
|
3751
3571
|
};
|
|
@@ -3766,9 +3586,6 @@ const serializeAws_json1_0KeySchema = (input, context) => {
|
|
|
3766
3586
|
return input
|
|
3767
3587
|
.filter((e) => e != null)
|
|
3768
3588
|
.map((entry) => {
|
|
3769
|
-
if (entry === null) {
|
|
3770
|
-
return null;
|
|
3771
|
-
}
|
|
3772
3589
|
return serializeAws_json1_0KeySchemaElement(entry, context);
|
|
3773
3590
|
});
|
|
3774
3591
|
};
|
|
@@ -3788,9 +3605,6 @@ const serializeAws_json1_0ListAttributeValue = (input, context) => {
|
|
|
3788
3605
|
return input
|
|
3789
3606
|
.filter((e) => e != null)
|
|
3790
3607
|
.map((entry) => {
|
|
3791
|
-
if (entry === null) {
|
|
3792
|
-
return null;
|
|
3793
|
-
}
|
|
3794
3608
|
return serializeAws_json1_0AttributeValue(entry, context);
|
|
3795
3609
|
});
|
|
3796
3610
|
};
|
|
@@ -3854,9 +3668,6 @@ const serializeAws_json1_0LocalSecondaryIndexList = (input, context) => {
|
|
|
3854
3668
|
return input
|
|
3855
3669
|
.filter((e) => e != null)
|
|
3856
3670
|
.map((entry) => {
|
|
3857
|
-
if (entry === null) {
|
|
3858
|
-
return null;
|
|
3859
|
-
}
|
|
3860
3671
|
return serializeAws_json1_0LocalSecondaryIndex(entry, context);
|
|
3861
3672
|
});
|
|
3862
3673
|
};
|
|
@@ -3875,9 +3686,6 @@ const serializeAws_json1_0NonKeyAttributeNameList = (input, context) => {
|
|
|
3875
3686
|
return input
|
|
3876
3687
|
.filter((e) => e != null)
|
|
3877
3688
|
.map((entry) => {
|
|
3878
|
-
if (entry === null) {
|
|
3879
|
-
return null;
|
|
3880
|
-
}
|
|
3881
3689
|
return entry;
|
|
3882
3690
|
});
|
|
3883
3691
|
};
|
|
@@ -3885,9 +3693,6 @@ const serializeAws_json1_0NumberSetAttributeValue = (input, context) => {
|
|
|
3885
3693
|
return input
|
|
3886
3694
|
.filter((e) => e != null)
|
|
3887
3695
|
.map((entry) => {
|
|
3888
|
-
if (entry === null) {
|
|
3889
|
-
return null;
|
|
3890
|
-
}
|
|
3891
3696
|
return entry;
|
|
3892
3697
|
});
|
|
3893
3698
|
};
|
|
@@ -3903,9 +3708,6 @@ const serializeAws_json1_0ParameterizedStatements = (input, context) => {
|
|
|
3903
3708
|
return input
|
|
3904
3709
|
.filter((e) => e != null)
|
|
3905
3710
|
.map((entry) => {
|
|
3906
|
-
if (entry === null) {
|
|
3907
|
-
return null;
|
|
3908
|
-
}
|
|
3909
3711
|
return serializeAws_json1_0ParameterizedStatement(entry, context);
|
|
3910
3712
|
});
|
|
3911
3713
|
};
|
|
@@ -3913,9 +3715,6 @@ const serializeAws_json1_0PartiQLBatchRequest = (input, context) => {
|
|
|
3913
3715
|
return input
|
|
3914
3716
|
.filter((e) => e != null)
|
|
3915
3717
|
.map((entry) => {
|
|
3916
|
-
if (entry === null) {
|
|
3917
|
-
return null;
|
|
3918
|
-
}
|
|
3919
3718
|
return serializeAws_json1_0BatchStatementRequest(entry, context);
|
|
3920
3719
|
});
|
|
3921
3720
|
};
|
|
@@ -3928,9 +3727,6 @@ const serializeAws_json1_0PreparedStatementParameters = (input, context) => {
|
|
|
3928
3727
|
return input
|
|
3929
3728
|
.filter((e) => e != null)
|
|
3930
3729
|
.map((entry) => {
|
|
3931
|
-
if (entry === null) {
|
|
3932
|
-
return null;
|
|
3933
|
-
}
|
|
3934
3730
|
return serializeAws_json1_0AttributeValue(entry, context);
|
|
3935
3731
|
});
|
|
3936
3732
|
};
|
|
@@ -4058,9 +3854,6 @@ const serializeAws_json1_0ReplicaAutoScalingUpdateList = (input, context) => {
|
|
|
4058
3854
|
return input
|
|
4059
3855
|
.filter((e) => e != null)
|
|
4060
3856
|
.map((entry) => {
|
|
4061
|
-
if (entry === null) {
|
|
4062
|
-
return null;
|
|
4063
|
-
}
|
|
4064
3857
|
return serializeAws_json1_0ReplicaAutoScalingUpdate(entry, context);
|
|
4065
3858
|
});
|
|
4066
3859
|
};
|
|
@@ -4084,9 +3877,6 @@ const serializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingUpdateList = (in
|
|
|
4084
3877
|
return input
|
|
4085
3878
|
.filter((e) => e != null)
|
|
4086
3879
|
.map((entry) => {
|
|
4087
|
-
if (entry === null) {
|
|
4088
|
-
return null;
|
|
4089
|
-
}
|
|
4090
3880
|
return serializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingUpdate(entry, context);
|
|
4091
3881
|
});
|
|
4092
3882
|
};
|
|
@@ -4094,9 +3884,6 @@ const serializeAws_json1_0ReplicaGlobalSecondaryIndexList = (input, context) =>
|
|
|
4094
3884
|
return input
|
|
4095
3885
|
.filter((e) => e != null)
|
|
4096
3886
|
.map((entry) => {
|
|
4097
|
-
if (entry === null) {
|
|
4098
|
-
return null;
|
|
4099
|
-
}
|
|
4100
3887
|
return serializeAws_json1_0ReplicaGlobalSecondaryIndex(entry, context);
|
|
4101
3888
|
});
|
|
4102
3889
|
};
|
|
@@ -4115,9 +3902,6 @@ const serializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsUpdateList = (input
|
|
|
4115
3902
|
return input
|
|
4116
3903
|
.filter((e) => e != null)
|
|
4117
3904
|
.map((entry) => {
|
|
4118
|
-
if (entry === null) {
|
|
4119
|
-
return null;
|
|
4120
|
-
}
|
|
4121
3905
|
return serializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsUpdate(entry, context);
|
|
4122
3906
|
});
|
|
4123
3907
|
};
|
|
@@ -4125,9 +3909,6 @@ const serializeAws_json1_0ReplicaList = (input, context) => {
|
|
|
4125
3909
|
return input
|
|
4126
3910
|
.filter((e) => e != null)
|
|
4127
3911
|
.map((entry) => {
|
|
4128
|
-
if (entry === null) {
|
|
4129
|
-
return null;
|
|
4130
|
-
}
|
|
4131
3912
|
return serializeAws_json1_0Replica(entry, context);
|
|
4132
3913
|
});
|
|
4133
3914
|
};
|
|
@@ -4150,9 +3931,6 @@ const serializeAws_json1_0ReplicaSettingsUpdateList = (input, context) => {
|
|
|
4150
3931
|
return input
|
|
4151
3932
|
.filter((e) => e != null)
|
|
4152
3933
|
.map((entry) => {
|
|
4153
|
-
if (entry === null) {
|
|
4154
|
-
return null;
|
|
4155
|
-
}
|
|
4156
3934
|
return serializeAws_json1_0ReplicaSettingsUpdate(entry, context);
|
|
4157
3935
|
});
|
|
4158
3936
|
};
|
|
@@ -4173,9 +3951,6 @@ const serializeAws_json1_0ReplicationGroupUpdateList = (input, context) => {
|
|
|
4173
3951
|
return input
|
|
4174
3952
|
.filter((e) => e != null)
|
|
4175
3953
|
.map((entry) => {
|
|
4176
|
-
if (entry === null) {
|
|
4177
|
-
return null;
|
|
4178
|
-
}
|
|
4179
3954
|
return serializeAws_json1_0ReplicationGroupUpdate(entry, context);
|
|
4180
3955
|
});
|
|
4181
3956
|
};
|
|
@@ -4189,9 +3964,6 @@ const serializeAws_json1_0ReplicaUpdateList = (input, context) => {
|
|
|
4189
3964
|
return input
|
|
4190
3965
|
.filter((e) => e != null)
|
|
4191
3966
|
.map((entry) => {
|
|
4192
|
-
if (entry === null) {
|
|
4193
|
-
return null;
|
|
4194
|
-
}
|
|
4195
3967
|
return serializeAws_json1_0ReplicaUpdate(entry, context);
|
|
4196
3968
|
});
|
|
4197
3969
|
};
|
|
@@ -4281,9 +4053,6 @@ const serializeAws_json1_0StringSetAttributeValue = (input, context) => {
|
|
|
4281
4053
|
return input
|
|
4282
4054
|
.filter((e) => e != null)
|
|
4283
4055
|
.map((entry) => {
|
|
4284
|
-
if (entry === null) {
|
|
4285
|
-
return null;
|
|
4286
|
-
}
|
|
4287
4056
|
return entry;
|
|
4288
4057
|
});
|
|
4289
4058
|
};
|
|
@@ -4297,9 +4066,6 @@ const serializeAws_json1_0TagKeyList = (input, context) => {
|
|
|
4297
4066
|
return input
|
|
4298
4067
|
.filter((e) => e != null)
|
|
4299
4068
|
.map((entry) => {
|
|
4300
|
-
if (entry === null) {
|
|
4301
|
-
return null;
|
|
4302
|
-
}
|
|
4303
4069
|
return entry;
|
|
4304
4070
|
});
|
|
4305
4071
|
};
|
|
@@ -4307,9 +4073,6 @@ const serializeAws_json1_0TagList = (input, context) => {
|
|
|
4307
4073
|
return input
|
|
4308
4074
|
.filter((e) => e != null)
|
|
4309
4075
|
.map((entry) => {
|
|
4310
|
-
if (entry === null) {
|
|
4311
|
-
return null;
|
|
4312
|
-
}
|
|
4313
4076
|
return serializeAws_json1_0Tag(entry, context);
|
|
4314
4077
|
});
|
|
4315
4078
|
};
|
|
@@ -4334,9 +4097,6 @@ const serializeAws_json1_0TransactGetItemList = (input, context) => {
|
|
|
4334
4097
|
return input
|
|
4335
4098
|
.filter((e) => e != null)
|
|
4336
4099
|
.map((entry) => {
|
|
4337
|
-
if (entry === null) {
|
|
4338
|
-
return null;
|
|
4339
|
-
}
|
|
4340
4100
|
return serializeAws_json1_0TransactGetItem(entry, context);
|
|
4341
4101
|
});
|
|
4342
4102
|
};
|
|
@@ -4362,9 +4122,6 @@ const serializeAws_json1_0TransactWriteItemList = (input, context) => {
|
|
|
4362
4122
|
return input
|
|
4363
4123
|
.filter((e) => e != null)
|
|
4364
4124
|
.map((entry) => {
|
|
4365
|
-
if (entry === null) {
|
|
4366
|
-
return null;
|
|
4367
|
-
}
|
|
4368
4125
|
return serializeAws_json1_0TransactWriteItem(entry, context);
|
|
4369
4126
|
});
|
|
4370
4127
|
};
|
|
@@ -4549,9 +4306,6 @@ const serializeAws_json1_0WriteRequests = (input, context) => {
|
|
|
4549
4306
|
return input
|
|
4550
4307
|
.filter((e) => e != null)
|
|
4551
4308
|
.map((entry) => {
|
|
4552
|
-
if (entry === null) {
|
|
4553
|
-
return null;
|
|
4554
|
-
}
|
|
4555
4309
|
return serializeAws_json1_0WriteRequest(entry, context);
|
|
4556
4310
|
});
|
|
4557
4311
|
};
|
|
@@ -4604,7 +4358,7 @@ const deserializeAws_json1_0AttributeNameList = (output, context) => {
|
|
|
4604
4358
|
return retVal;
|
|
4605
4359
|
};
|
|
4606
4360
|
const deserializeAws_json1_0AttributeValue = (output, context) => {
|
|
4607
|
-
if (output.B
|
|
4361
|
+
if (output.B != null) {
|
|
4608
4362
|
return {
|
|
4609
4363
|
B: context.base64Decoder(output.B),
|
|
4610
4364
|
};
|
|
@@ -4612,17 +4366,17 @@ const deserializeAws_json1_0AttributeValue = (output, context) => {
|
|
|
4612
4366
|
if ((0, smithy_client_1.expectBoolean)(output.BOOL) !== undefined) {
|
|
4613
4367
|
return { BOOL: (0, smithy_client_1.expectBoolean)(output.BOOL) };
|
|
4614
4368
|
}
|
|
4615
|
-
if (output.BS
|
|
4369
|
+
if (output.BS != null) {
|
|
4616
4370
|
return {
|
|
4617
4371
|
BS: deserializeAws_json1_0BinarySetAttributeValue(output.BS, context),
|
|
4618
4372
|
};
|
|
4619
4373
|
}
|
|
4620
|
-
if (output.L
|
|
4374
|
+
if (output.L != null) {
|
|
4621
4375
|
return {
|
|
4622
4376
|
L: deserializeAws_json1_0ListAttributeValue(output.L, context),
|
|
4623
4377
|
};
|
|
4624
4378
|
}
|
|
4625
|
-
if (output.M
|
|
4379
|
+
if (output.M != null) {
|
|
4626
4380
|
return {
|
|
4627
4381
|
M: deserializeAws_json1_0MapAttributeValue(output.M, context),
|
|
4628
4382
|
};
|
|
@@ -4630,7 +4384,7 @@ const deserializeAws_json1_0AttributeValue = (output, context) => {
|
|
|
4630
4384
|
if ((0, smithy_client_1.expectString)(output.N) !== undefined) {
|
|
4631
4385
|
return { N: (0, smithy_client_1.expectString)(output.N) };
|
|
4632
4386
|
}
|
|
4633
|
-
if (output.NS
|
|
4387
|
+
if (output.NS != null) {
|
|
4634
4388
|
return {
|
|
4635
4389
|
NS: deserializeAws_json1_0NumberSetAttributeValue(output.NS, context),
|
|
4636
4390
|
};
|
|
@@ -4641,7 +4395,7 @@ const deserializeAws_json1_0AttributeValue = (output, context) => {
|
|
|
4641
4395
|
if ((0, smithy_client_1.expectString)(output.S) !== undefined) {
|
|
4642
4396
|
return { S: (0, smithy_client_1.expectString)(output.S) };
|
|
4643
4397
|
}
|
|
4644
|
-
if (output.SS
|
|
4398
|
+
if (output.SS != null) {
|
|
4645
4399
|
return {
|
|
4646
4400
|
SS: deserializeAws_json1_0StringSetAttributeValue(output.SS, context),
|
|
4647
4401
|
};
|