@aws-sdk/client-dynamodb 3.180.0 → 3.183.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 +20 -0
- package/dist-cjs/protocols/Aws_json1_0.js +59 -53
- package/dist-es/DynamoDB.js +214 -221
- package/dist-es/DynamoDBClient.js +23 -29
- package/dist-es/commands/BatchExecuteStatementCommand.js +21 -28
- package/dist-es/commands/BatchGetItemCommand.js +21 -28
- package/dist-es/commands/BatchWriteItemCommand.js +21 -28
- package/dist-es/commands/CreateBackupCommand.js +21 -28
- package/dist-es/commands/CreateGlobalTableCommand.js +21 -28
- package/dist-es/commands/CreateTableCommand.js +21 -28
- package/dist-es/commands/DeleteBackupCommand.js +21 -28
- package/dist-es/commands/DeleteItemCommand.js +21 -28
- package/dist-es/commands/DeleteTableCommand.js +21 -28
- package/dist-es/commands/DescribeBackupCommand.js +21 -28
- package/dist-es/commands/DescribeContinuousBackupsCommand.js +21 -28
- package/dist-es/commands/DescribeContributorInsightsCommand.js +21 -28
- package/dist-es/commands/DescribeEndpointsCommand.js +21 -28
- package/dist-es/commands/DescribeExportCommand.js +21 -28
- package/dist-es/commands/DescribeGlobalTableCommand.js +21 -28
- package/dist-es/commands/DescribeGlobalTableSettingsCommand.js +21 -28
- package/dist-es/commands/DescribeImportCommand.js +21 -28
- package/dist-es/commands/DescribeKinesisStreamingDestinationCommand.js +21 -28
- package/dist-es/commands/DescribeLimitsCommand.js +21 -28
- package/dist-es/commands/DescribeTableCommand.js +21 -28
- package/dist-es/commands/DescribeTableReplicaAutoScalingCommand.js +21 -28
- package/dist-es/commands/DescribeTimeToLiveCommand.js +21 -28
- package/dist-es/commands/DisableKinesisStreamingDestinationCommand.js +21 -28
- package/dist-es/commands/EnableKinesisStreamingDestinationCommand.js +21 -28
- package/dist-es/commands/ExecuteStatementCommand.js +21 -28
- package/dist-es/commands/ExecuteTransactionCommand.js +21 -28
- package/dist-es/commands/ExportTableToPointInTimeCommand.js +21 -28
- package/dist-es/commands/GetItemCommand.js +21 -28
- package/dist-es/commands/ImportTableCommand.js +21 -28
- package/dist-es/commands/ListBackupsCommand.js +21 -28
- package/dist-es/commands/ListContributorInsightsCommand.js +21 -28
- package/dist-es/commands/ListExportsCommand.js +21 -28
- package/dist-es/commands/ListGlobalTablesCommand.js +21 -28
- package/dist-es/commands/ListImportsCommand.js +21 -28
- package/dist-es/commands/ListTablesCommand.js +21 -28
- package/dist-es/commands/ListTagsOfResourceCommand.js +21 -28
- package/dist-es/commands/PutItemCommand.js +21 -28
- package/dist-es/commands/QueryCommand.js +21 -28
- package/dist-es/commands/RestoreTableFromBackupCommand.js +21 -28
- package/dist-es/commands/RestoreTableToPointInTimeCommand.js +21 -28
- package/dist-es/commands/ScanCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +22 -29
- package/dist-es/commands/TransactGetItemsCommand.js +21 -28
- package/dist-es/commands/TransactWriteItemsCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +22 -29
- package/dist-es/commands/UpdateContinuousBackupsCommand.js +21 -28
- package/dist-es/commands/UpdateContributorInsightsCommand.js +21 -28
- package/dist-es/commands/UpdateGlobalTableCommand.js +21 -28
- package/dist-es/commands/UpdateGlobalTableSettingsCommand.js +21 -28
- package/dist-es/commands/UpdateItemCommand.js +21 -28
- package/dist-es/commands/UpdateTableCommand.js +21 -28
- package/dist-es/commands/UpdateTableReplicaAutoScalingCommand.js +21 -28
- package/dist-es/commands/UpdateTimeToLiveCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/DynamoDBServiceException.js +5 -10
- package/dist-es/models/models_0.js +1314 -900
- package/dist-es/pagination/ListContributorInsightsPaginator.js +25 -68
- package/dist-es/pagination/ListExportsPaginator.js +25 -68
- package/dist-es/pagination/ListImportsPaginator.js +25 -68
- package/dist-es/pagination/ListTablesPaginator.js +25 -68
- package/dist-es/pagination/QueryPaginator.js +25 -68
- package/dist-es/pagination/ScanPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_0.js +4593 -5355
- package/dist-es/runtimeConfig.browser.js +27 -12
- package/dist-es/runtimeConfig.js +31 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/dist-es/waiters/waitForTableExists.js +30 -50
- package/dist-es/waiters/waitForTableNotExists.js +22 -42
- package/package.json +35 -35
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-dynamodb
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-dynamodb
|
|
@@ -555,7 +555,7 @@ exports.deserializeAws_json1_0BatchExecuteStatementCommand = deserializeAws_json
|
|
|
555
555
|
const deserializeAws_json1_0BatchExecuteStatementCommandError = async (output, context) => {
|
|
556
556
|
const parsedOutput = {
|
|
557
557
|
...output,
|
|
558
|
-
body: await
|
|
558
|
+
body: await parseErrorBody(output.body, context),
|
|
559
559
|
};
|
|
560
560
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
561
561
|
switch (errorCode) {
|
|
@@ -592,7 +592,7 @@ exports.deserializeAws_json1_0BatchGetItemCommand = deserializeAws_json1_0BatchG
|
|
|
592
592
|
const deserializeAws_json1_0BatchGetItemCommandError = async (output, context) => {
|
|
593
593
|
const parsedOutput = {
|
|
594
594
|
...output,
|
|
595
|
-
body: await
|
|
595
|
+
body: await parseErrorBody(output.body, context),
|
|
596
596
|
};
|
|
597
597
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
598
598
|
switch (errorCode) {
|
|
@@ -638,7 +638,7 @@ exports.deserializeAws_json1_0BatchWriteItemCommand = deserializeAws_json1_0Batc
|
|
|
638
638
|
const deserializeAws_json1_0BatchWriteItemCommandError = async (output, context) => {
|
|
639
639
|
const parsedOutput = {
|
|
640
640
|
...output,
|
|
641
|
-
body: await
|
|
641
|
+
body: await parseErrorBody(output.body, context),
|
|
642
642
|
};
|
|
643
643
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
644
644
|
switch (errorCode) {
|
|
@@ -687,7 +687,7 @@ exports.deserializeAws_json1_0CreateBackupCommand = deserializeAws_json1_0Create
|
|
|
687
687
|
const deserializeAws_json1_0CreateBackupCommandError = async (output, context) => {
|
|
688
688
|
const parsedOutput = {
|
|
689
689
|
...output,
|
|
690
|
-
body: await
|
|
690
|
+
body: await parseErrorBody(output.body, context),
|
|
691
691
|
};
|
|
692
692
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
693
693
|
switch (errorCode) {
|
|
@@ -739,7 +739,7 @@ exports.deserializeAws_json1_0CreateGlobalTableCommand = deserializeAws_json1_0C
|
|
|
739
739
|
const deserializeAws_json1_0CreateGlobalTableCommandError = async (output, context) => {
|
|
740
740
|
const parsedOutput = {
|
|
741
741
|
...output,
|
|
742
|
-
body: await
|
|
742
|
+
body: await parseErrorBody(output.body, context),
|
|
743
743
|
};
|
|
744
744
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
745
745
|
switch (errorCode) {
|
|
@@ -785,7 +785,7 @@ exports.deserializeAws_json1_0CreateTableCommand = deserializeAws_json1_0CreateT
|
|
|
785
785
|
const deserializeAws_json1_0CreateTableCommandError = async (output, context) => {
|
|
786
786
|
const parsedOutput = {
|
|
787
787
|
...output,
|
|
788
|
-
body: await
|
|
788
|
+
body: await parseErrorBody(output.body, context),
|
|
789
789
|
};
|
|
790
790
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
791
791
|
switch (errorCode) {
|
|
@@ -828,7 +828,7 @@ exports.deserializeAws_json1_0DeleteBackupCommand = deserializeAws_json1_0Delete
|
|
|
828
828
|
const deserializeAws_json1_0DeleteBackupCommandError = async (output, context) => {
|
|
829
829
|
const parsedOutput = {
|
|
830
830
|
...output,
|
|
831
|
-
body: await
|
|
831
|
+
body: await parseErrorBody(output.body, context),
|
|
832
832
|
};
|
|
833
833
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
834
834
|
switch (errorCode) {
|
|
@@ -874,7 +874,7 @@ exports.deserializeAws_json1_0DeleteItemCommand = deserializeAws_json1_0DeleteIt
|
|
|
874
874
|
const deserializeAws_json1_0DeleteItemCommandError = async (output, context) => {
|
|
875
875
|
const parsedOutput = {
|
|
876
876
|
...output,
|
|
877
|
-
body: await
|
|
877
|
+
body: await parseErrorBody(output.body, context),
|
|
878
878
|
};
|
|
879
879
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
880
880
|
switch (errorCode) {
|
|
@@ -929,7 +929,7 @@ exports.deserializeAws_json1_0DeleteTableCommand = deserializeAws_json1_0DeleteT
|
|
|
929
929
|
const deserializeAws_json1_0DeleteTableCommandError = async (output, context) => {
|
|
930
930
|
const parsedOutput = {
|
|
931
931
|
...output,
|
|
932
|
-
body: await
|
|
932
|
+
body: await parseErrorBody(output.body, context),
|
|
933
933
|
};
|
|
934
934
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
935
935
|
switch (errorCode) {
|
|
@@ -975,7 +975,7 @@ exports.deserializeAws_json1_0DescribeBackupCommand = deserializeAws_json1_0Desc
|
|
|
975
975
|
const deserializeAws_json1_0DescribeBackupCommandError = async (output, context) => {
|
|
976
976
|
const parsedOutput = {
|
|
977
977
|
...output,
|
|
978
|
-
body: await
|
|
978
|
+
body: await parseErrorBody(output.body, context),
|
|
979
979
|
};
|
|
980
980
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
981
981
|
switch (errorCode) {
|
|
@@ -1015,7 +1015,7 @@ exports.deserializeAws_json1_0DescribeContinuousBackupsCommand = deserializeAws_
|
|
|
1015
1015
|
const deserializeAws_json1_0DescribeContinuousBackupsCommandError = async (output, context) => {
|
|
1016
1016
|
const parsedOutput = {
|
|
1017
1017
|
...output,
|
|
1018
|
-
body: await
|
|
1018
|
+
body: await parseErrorBody(output.body, context),
|
|
1019
1019
|
};
|
|
1020
1020
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1021
1021
|
switch (errorCode) {
|
|
@@ -1055,7 +1055,7 @@ exports.deserializeAws_json1_0DescribeContributorInsightsCommand = deserializeAw
|
|
|
1055
1055
|
const deserializeAws_json1_0DescribeContributorInsightsCommandError = async (output, context) => {
|
|
1056
1056
|
const parsedOutput = {
|
|
1057
1057
|
...output,
|
|
1058
|
-
body: await
|
|
1058
|
+
body: await parseErrorBody(output.body, context),
|
|
1059
1059
|
};
|
|
1060
1060
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1061
1061
|
switch (errorCode) {
|
|
@@ -1092,7 +1092,7 @@ exports.deserializeAws_json1_0DescribeEndpointsCommand = deserializeAws_json1_0D
|
|
|
1092
1092
|
const deserializeAws_json1_0DescribeEndpointsCommandError = async (output, context) => {
|
|
1093
1093
|
const parsedOutput = {
|
|
1094
1094
|
...output,
|
|
1095
|
-
body: await
|
|
1095
|
+
body: await parseErrorBody(output.body, context),
|
|
1096
1096
|
};
|
|
1097
1097
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1098
1098
|
const parsedBody = parsedOutput.body;
|
|
@@ -1120,7 +1120,7 @@ exports.deserializeAws_json1_0DescribeExportCommand = deserializeAws_json1_0Desc
|
|
|
1120
1120
|
const deserializeAws_json1_0DescribeExportCommandError = async (output, context) => {
|
|
1121
1121
|
const parsedOutput = {
|
|
1122
1122
|
...output,
|
|
1123
|
-
body: await
|
|
1123
|
+
body: await parseErrorBody(output.body, context),
|
|
1124
1124
|
};
|
|
1125
1125
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1126
1126
|
switch (errorCode) {
|
|
@@ -1160,7 +1160,7 @@ exports.deserializeAws_json1_0DescribeGlobalTableCommand = deserializeAws_json1_
|
|
|
1160
1160
|
const deserializeAws_json1_0DescribeGlobalTableCommandError = async (output, context) => {
|
|
1161
1161
|
const parsedOutput = {
|
|
1162
1162
|
...output,
|
|
1163
|
-
body: await
|
|
1163
|
+
body: await parseErrorBody(output.body, context),
|
|
1164
1164
|
};
|
|
1165
1165
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1166
1166
|
switch (errorCode) {
|
|
@@ -1200,7 +1200,7 @@ exports.deserializeAws_json1_0DescribeGlobalTableSettingsCommand = deserializeAw
|
|
|
1200
1200
|
const deserializeAws_json1_0DescribeGlobalTableSettingsCommandError = async (output, context) => {
|
|
1201
1201
|
const parsedOutput = {
|
|
1202
1202
|
...output,
|
|
1203
|
-
body: await
|
|
1203
|
+
body: await parseErrorBody(output.body, context),
|
|
1204
1204
|
};
|
|
1205
1205
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1206
1206
|
switch (errorCode) {
|
|
@@ -1240,7 +1240,7 @@ exports.deserializeAws_json1_0DescribeImportCommand = deserializeAws_json1_0Desc
|
|
|
1240
1240
|
const deserializeAws_json1_0DescribeImportCommandError = async (output, context) => {
|
|
1241
1241
|
const parsedOutput = {
|
|
1242
1242
|
...output,
|
|
1243
|
-
body: await
|
|
1243
|
+
body: await parseErrorBody(output.body, context),
|
|
1244
1244
|
};
|
|
1245
1245
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1246
1246
|
switch (errorCode) {
|
|
@@ -1274,7 +1274,7 @@ exports.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand = deser
|
|
|
1274
1274
|
const deserializeAws_json1_0DescribeKinesisStreamingDestinationCommandError = async (output, context) => {
|
|
1275
1275
|
const parsedOutput = {
|
|
1276
1276
|
...output,
|
|
1277
|
-
body: await
|
|
1277
|
+
body: await parseErrorBody(output.body, context),
|
|
1278
1278
|
};
|
|
1279
1279
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1280
1280
|
switch (errorCode) {
|
|
@@ -1314,7 +1314,7 @@ exports.deserializeAws_json1_0DescribeLimitsCommand = deserializeAws_json1_0Desc
|
|
|
1314
1314
|
const deserializeAws_json1_0DescribeLimitsCommandError = async (output, context) => {
|
|
1315
1315
|
const parsedOutput = {
|
|
1316
1316
|
...output,
|
|
1317
|
-
body: await
|
|
1317
|
+
body: await parseErrorBody(output.body, context),
|
|
1318
1318
|
};
|
|
1319
1319
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1320
1320
|
switch (errorCode) {
|
|
@@ -1351,7 +1351,7 @@ exports.deserializeAws_json1_0DescribeTableCommand = deserializeAws_json1_0Descr
|
|
|
1351
1351
|
const deserializeAws_json1_0DescribeTableCommandError = async (output, context) => {
|
|
1352
1352
|
const parsedOutput = {
|
|
1353
1353
|
...output,
|
|
1354
|
-
body: await
|
|
1354
|
+
body: await parseErrorBody(output.body, context),
|
|
1355
1355
|
};
|
|
1356
1356
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1357
1357
|
switch (errorCode) {
|
|
@@ -1391,7 +1391,7 @@ exports.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand = deseriali
|
|
|
1391
1391
|
const deserializeAws_json1_0DescribeTableReplicaAutoScalingCommandError = async (output, context) => {
|
|
1392
1392
|
const parsedOutput = {
|
|
1393
1393
|
...output,
|
|
1394
|
-
body: await
|
|
1394
|
+
body: await parseErrorBody(output.body, context),
|
|
1395
1395
|
};
|
|
1396
1396
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1397
1397
|
switch (errorCode) {
|
|
@@ -1428,7 +1428,7 @@ exports.deserializeAws_json1_0DescribeTimeToLiveCommand = deserializeAws_json1_0
|
|
|
1428
1428
|
const deserializeAws_json1_0DescribeTimeToLiveCommandError = async (output, context) => {
|
|
1429
1429
|
const parsedOutput = {
|
|
1430
1430
|
...output,
|
|
1431
|
-
body: await
|
|
1431
|
+
body: await parseErrorBody(output.body, context),
|
|
1432
1432
|
};
|
|
1433
1433
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1434
1434
|
switch (errorCode) {
|
|
@@ -1468,7 +1468,7 @@ exports.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand = deseri
|
|
|
1468
1468
|
const deserializeAws_json1_0DisableKinesisStreamingDestinationCommandError = async (output, context) => {
|
|
1469
1469
|
const parsedOutput = {
|
|
1470
1470
|
...output,
|
|
1471
|
-
body: await
|
|
1471
|
+
body: await parseErrorBody(output.body, context),
|
|
1472
1472
|
};
|
|
1473
1473
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1474
1474
|
switch (errorCode) {
|
|
@@ -1514,7 +1514,7 @@ exports.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand = deseria
|
|
|
1514
1514
|
const deserializeAws_json1_0EnableKinesisStreamingDestinationCommandError = async (output, context) => {
|
|
1515
1515
|
const parsedOutput = {
|
|
1516
1516
|
...output,
|
|
1517
|
-
body: await
|
|
1517
|
+
body: await parseErrorBody(output.body, context),
|
|
1518
1518
|
};
|
|
1519
1519
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1520
1520
|
switch (errorCode) {
|
|
@@ -1560,7 +1560,7 @@ exports.deserializeAws_json1_0ExecuteStatementCommand = deserializeAws_json1_0Ex
|
|
|
1560
1560
|
const deserializeAws_json1_0ExecuteStatementCommandError = async (output, context) => {
|
|
1561
1561
|
const parsedOutput = {
|
|
1562
1562
|
...output,
|
|
1563
|
-
body: await
|
|
1563
|
+
body: await parseErrorBody(output.body, context),
|
|
1564
1564
|
};
|
|
1565
1565
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1566
1566
|
switch (errorCode) {
|
|
@@ -1615,7 +1615,7 @@ exports.deserializeAws_json1_0ExecuteTransactionCommand = deserializeAws_json1_0
|
|
|
1615
1615
|
const deserializeAws_json1_0ExecuteTransactionCommandError = async (output, context) => {
|
|
1616
1616
|
const parsedOutput = {
|
|
1617
1617
|
...output,
|
|
1618
|
-
body: await
|
|
1618
|
+
body: await parseErrorBody(output.body, context),
|
|
1619
1619
|
};
|
|
1620
1620
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1621
1621
|
switch (errorCode) {
|
|
@@ -1667,7 +1667,7 @@ exports.deserializeAws_json1_0ExportTableToPointInTimeCommand = deserializeAws_j
|
|
|
1667
1667
|
const deserializeAws_json1_0ExportTableToPointInTimeCommandError = async (output, context) => {
|
|
1668
1668
|
const parsedOutput = {
|
|
1669
1669
|
...output,
|
|
1670
|
-
body: await
|
|
1670
|
+
body: await parseErrorBody(output.body, context),
|
|
1671
1671
|
};
|
|
1672
1672
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1673
1673
|
switch (errorCode) {
|
|
@@ -1716,7 +1716,7 @@ exports.deserializeAws_json1_0GetItemCommand = deserializeAws_json1_0GetItemComm
|
|
|
1716
1716
|
const deserializeAws_json1_0GetItemCommandError = async (output, context) => {
|
|
1717
1717
|
const parsedOutput = {
|
|
1718
1718
|
...output,
|
|
1719
|
-
body: await
|
|
1719
|
+
body: await parseErrorBody(output.body, context),
|
|
1720
1720
|
};
|
|
1721
1721
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1722
1722
|
switch (errorCode) {
|
|
@@ -1762,7 +1762,7 @@ exports.deserializeAws_json1_0ImportTableCommand = deserializeAws_json1_0ImportT
|
|
|
1762
1762
|
const deserializeAws_json1_0ImportTableCommandError = async (output, context) => {
|
|
1763
1763
|
const parsedOutput = {
|
|
1764
1764
|
...output,
|
|
1765
|
-
body: await
|
|
1765
|
+
body: await parseErrorBody(output.body, context),
|
|
1766
1766
|
};
|
|
1767
1767
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1768
1768
|
switch (errorCode) {
|
|
@@ -1802,7 +1802,7 @@ exports.deserializeAws_json1_0ListBackupsCommand = deserializeAws_json1_0ListBac
|
|
|
1802
1802
|
const deserializeAws_json1_0ListBackupsCommandError = async (output, context) => {
|
|
1803
1803
|
const parsedOutput = {
|
|
1804
1804
|
...output,
|
|
1805
|
-
body: await
|
|
1805
|
+
body: await parseErrorBody(output.body, context),
|
|
1806
1806
|
};
|
|
1807
1807
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1808
1808
|
switch (errorCode) {
|
|
@@ -1839,7 +1839,7 @@ exports.deserializeAws_json1_0ListContributorInsightsCommand = deserializeAws_js
|
|
|
1839
1839
|
const deserializeAws_json1_0ListContributorInsightsCommandError = async (output, context) => {
|
|
1840
1840
|
const parsedOutput = {
|
|
1841
1841
|
...output,
|
|
1842
|
-
body: await
|
|
1842
|
+
body: await parseErrorBody(output.body, context),
|
|
1843
1843
|
};
|
|
1844
1844
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1845
1845
|
switch (errorCode) {
|
|
@@ -1876,7 +1876,7 @@ exports.deserializeAws_json1_0ListExportsCommand = deserializeAws_json1_0ListExp
|
|
|
1876
1876
|
const deserializeAws_json1_0ListExportsCommandError = async (output, context) => {
|
|
1877
1877
|
const parsedOutput = {
|
|
1878
1878
|
...output,
|
|
1879
|
-
body: await
|
|
1879
|
+
body: await parseErrorBody(output.body, context),
|
|
1880
1880
|
};
|
|
1881
1881
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1882
1882
|
switch (errorCode) {
|
|
@@ -1913,7 +1913,7 @@ exports.deserializeAws_json1_0ListGlobalTablesCommand = deserializeAws_json1_0Li
|
|
|
1913
1913
|
const deserializeAws_json1_0ListGlobalTablesCommandError = async (output, context) => {
|
|
1914
1914
|
const parsedOutput = {
|
|
1915
1915
|
...output,
|
|
1916
|
-
body: await
|
|
1916
|
+
body: await parseErrorBody(output.body, context),
|
|
1917
1917
|
};
|
|
1918
1918
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1919
1919
|
switch (errorCode) {
|
|
@@ -1950,7 +1950,7 @@ exports.deserializeAws_json1_0ListImportsCommand = deserializeAws_json1_0ListImp
|
|
|
1950
1950
|
const deserializeAws_json1_0ListImportsCommandError = async (output, context) => {
|
|
1951
1951
|
const parsedOutput = {
|
|
1952
1952
|
...output,
|
|
1953
|
-
body: await
|
|
1953
|
+
body: await parseErrorBody(output.body, context),
|
|
1954
1954
|
};
|
|
1955
1955
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1956
1956
|
switch (errorCode) {
|
|
@@ -1984,7 +1984,7 @@ exports.deserializeAws_json1_0ListTablesCommand = deserializeAws_json1_0ListTabl
|
|
|
1984
1984
|
const deserializeAws_json1_0ListTablesCommandError = async (output, context) => {
|
|
1985
1985
|
const parsedOutput = {
|
|
1986
1986
|
...output,
|
|
1987
|
-
body: await
|
|
1987
|
+
body: await parseErrorBody(output.body, context),
|
|
1988
1988
|
};
|
|
1989
1989
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1990
1990
|
switch (errorCode) {
|
|
@@ -2021,7 +2021,7 @@ exports.deserializeAws_json1_0ListTagsOfResourceCommand = deserializeAws_json1_0
|
|
|
2021
2021
|
const deserializeAws_json1_0ListTagsOfResourceCommandError = async (output, context) => {
|
|
2022
2022
|
const parsedOutput = {
|
|
2023
2023
|
...output,
|
|
2024
|
-
body: await
|
|
2024
|
+
body: await parseErrorBody(output.body, context),
|
|
2025
2025
|
};
|
|
2026
2026
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2027
2027
|
switch (errorCode) {
|
|
@@ -2061,7 +2061,7 @@ exports.deserializeAws_json1_0PutItemCommand = deserializeAws_json1_0PutItemComm
|
|
|
2061
2061
|
const deserializeAws_json1_0PutItemCommandError = async (output, context) => {
|
|
2062
2062
|
const parsedOutput = {
|
|
2063
2063
|
...output,
|
|
2064
|
-
body: await
|
|
2064
|
+
body: await parseErrorBody(output.body, context),
|
|
2065
2065
|
};
|
|
2066
2066
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2067
2067
|
switch (errorCode) {
|
|
@@ -2116,7 +2116,7 @@ exports.deserializeAws_json1_0QueryCommand = deserializeAws_json1_0QueryCommand;
|
|
|
2116
2116
|
const deserializeAws_json1_0QueryCommandError = async (output, context) => {
|
|
2117
2117
|
const parsedOutput = {
|
|
2118
2118
|
...output,
|
|
2119
|
-
body: await
|
|
2119
|
+
body: await parseErrorBody(output.body, context),
|
|
2120
2120
|
};
|
|
2121
2121
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2122
2122
|
switch (errorCode) {
|
|
@@ -2162,7 +2162,7 @@ exports.deserializeAws_json1_0RestoreTableFromBackupCommand = deserializeAws_jso
|
|
|
2162
2162
|
const deserializeAws_json1_0RestoreTableFromBackupCommandError = async (output, context) => {
|
|
2163
2163
|
const parsedOutput = {
|
|
2164
2164
|
...output,
|
|
2165
|
-
body: await
|
|
2165
|
+
body: await parseErrorBody(output.body, context),
|
|
2166
2166
|
};
|
|
2167
2167
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2168
2168
|
switch (errorCode) {
|
|
@@ -2214,7 +2214,7 @@ exports.deserializeAws_json1_0RestoreTableToPointInTimeCommand = deserializeAws_
|
|
|
2214
2214
|
const deserializeAws_json1_0RestoreTableToPointInTimeCommandError = async (output, context) => {
|
|
2215
2215
|
const parsedOutput = {
|
|
2216
2216
|
...output,
|
|
2217
|
-
body: await
|
|
2217
|
+
body: await parseErrorBody(output.body, context),
|
|
2218
2218
|
};
|
|
2219
2219
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2220
2220
|
switch (errorCode) {
|
|
@@ -2269,7 +2269,7 @@ exports.deserializeAws_json1_0ScanCommand = deserializeAws_json1_0ScanCommand;
|
|
|
2269
2269
|
const deserializeAws_json1_0ScanCommandError = async (output, context) => {
|
|
2270
2270
|
const parsedOutput = {
|
|
2271
2271
|
...output,
|
|
2272
|
-
body: await
|
|
2272
|
+
body: await parseErrorBody(output.body, context),
|
|
2273
2273
|
};
|
|
2274
2274
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2275
2275
|
switch (errorCode) {
|
|
@@ -2312,7 +2312,7 @@ exports.deserializeAws_json1_0TagResourceCommand = deserializeAws_json1_0TagReso
|
|
|
2312
2312
|
const deserializeAws_json1_0TagResourceCommandError = async (output, context) => {
|
|
2313
2313
|
const parsedOutput = {
|
|
2314
2314
|
...output,
|
|
2315
|
-
body: await
|
|
2315
|
+
body: await parseErrorBody(output.body, context),
|
|
2316
2316
|
};
|
|
2317
2317
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2318
2318
|
switch (errorCode) {
|
|
@@ -2358,7 +2358,7 @@ exports.deserializeAws_json1_0TransactGetItemsCommand = deserializeAws_json1_0Tr
|
|
|
2358
2358
|
const deserializeAws_json1_0TransactGetItemsCommandError = async (output, context) => {
|
|
2359
2359
|
const parsedOutput = {
|
|
2360
2360
|
...output,
|
|
2361
|
-
body: await
|
|
2361
|
+
body: await parseErrorBody(output.body, context),
|
|
2362
2362
|
};
|
|
2363
2363
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2364
2364
|
switch (errorCode) {
|
|
@@ -2407,7 +2407,7 @@ exports.deserializeAws_json1_0TransactWriteItemsCommand = deserializeAws_json1_0
|
|
|
2407
2407
|
const deserializeAws_json1_0TransactWriteItemsCommandError = async (output, context) => {
|
|
2408
2408
|
const parsedOutput = {
|
|
2409
2409
|
...output,
|
|
2410
|
-
body: await
|
|
2410
|
+
body: await parseErrorBody(output.body, context),
|
|
2411
2411
|
};
|
|
2412
2412
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2413
2413
|
switch (errorCode) {
|
|
@@ -2459,7 +2459,7 @@ exports.deserializeAws_json1_0UntagResourceCommand = deserializeAws_json1_0Untag
|
|
|
2459
2459
|
const deserializeAws_json1_0UntagResourceCommandError = async (output, context) => {
|
|
2460
2460
|
const parsedOutput = {
|
|
2461
2461
|
...output,
|
|
2462
|
-
body: await
|
|
2462
|
+
body: await parseErrorBody(output.body, context),
|
|
2463
2463
|
};
|
|
2464
2464
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2465
2465
|
switch (errorCode) {
|
|
@@ -2505,7 +2505,7 @@ exports.deserializeAws_json1_0UpdateContinuousBackupsCommand = deserializeAws_js
|
|
|
2505
2505
|
const deserializeAws_json1_0UpdateContinuousBackupsCommandError = async (output, context) => {
|
|
2506
2506
|
const parsedOutput = {
|
|
2507
2507
|
...output,
|
|
2508
|
-
body: await
|
|
2508
|
+
body: await parseErrorBody(output.body, context),
|
|
2509
2509
|
};
|
|
2510
2510
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2511
2511
|
switch (errorCode) {
|
|
@@ -2548,7 +2548,7 @@ exports.deserializeAws_json1_0UpdateContributorInsightsCommand = deserializeAws_
|
|
|
2548
2548
|
const deserializeAws_json1_0UpdateContributorInsightsCommandError = async (output, context) => {
|
|
2549
2549
|
const parsedOutput = {
|
|
2550
2550
|
...output,
|
|
2551
|
-
body: await
|
|
2551
|
+
body: await parseErrorBody(output.body, context),
|
|
2552
2552
|
};
|
|
2553
2553
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2554
2554
|
switch (errorCode) {
|
|
@@ -2585,7 +2585,7 @@ exports.deserializeAws_json1_0UpdateGlobalTableCommand = deserializeAws_json1_0U
|
|
|
2585
2585
|
const deserializeAws_json1_0UpdateGlobalTableCommandError = async (output, context) => {
|
|
2586
2586
|
const parsedOutput = {
|
|
2587
2587
|
...output,
|
|
2588
|
-
body: await
|
|
2588
|
+
body: await parseErrorBody(output.body, context),
|
|
2589
2589
|
};
|
|
2590
2590
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2591
2591
|
switch (errorCode) {
|
|
@@ -2634,7 +2634,7 @@ exports.deserializeAws_json1_0UpdateGlobalTableSettingsCommand = deserializeAws_
|
|
|
2634
2634
|
const deserializeAws_json1_0UpdateGlobalTableSettingsCommandError = async (output, context) => {
|
|
2635
2635
|
const parsedOutput = {
|
|
2636
2636
|
...output,
|
|
2637
|
-
body: await
|
|
2637
|
+
body: await parseErrorBody(output.body, context),
|
|
2638
2638
|
};
|
|
2639
2639
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2640
2640
|
switch (errorCode) {
|
|
@@ -2686,7 +2686,7 @@ exports.deserializeAws_json1_0UpdateItemCommand = deserializeAws_json1_0UpdateIt
|
|
|
2686
2686
|
const deserializeAws_json1_0UpdateItemCommandError = async (output, context) => {
|
|
2687
2687
|
const parsedOutput = {
|
|
2688
2688
|
...output,
|
|
2689
|
-
body: await
|
|
2689
|
+
body: await parseErrorBody(output.body, context),
|
|
2690
2690
|
};
|
|
2691
2691
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2692
2692
|
switch (errorCode) {
|
|
@@ -2741,7 +2741,7 @@ exports.deserializeAws_json1_0UpdateTableCommand = deserializeAws_json1_0UpdateT
|
|
|
2741
2741
|
const deserializeAws_json1_0UpdateTableCommandError = async (output, context) => {
|
|
2742
2742
|
const parsedOutput = {
|
|
2743
2743
|
...output,
|
|
2744
|
-
body: await
|
|
2744
|
+
body: await parseErrorBody(output.body, context),
|
|
2745
2745
|
};
|
|
2746
2746
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2747
2747
|
switch (errorCode) {
|
|
@@ -2787,7 +2787,7 @@ exports.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand = deserialize
|
|
|
2787
2787
|
const deserializeAws_json1_0UpdateTableReplicaAutoScalingCommandError = async (output, context) => {
|
|
2788
2788
|
const parsedOutput = {
|
|
2789
2789
|
...output,
|
|
2790
|
-
body: await
|
|
2790
|
+
body: await parseErrorBody(output.body, context),
|
|
2791
2791
|
};
|
|
2792
2792
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2793
2793
|
switch (errorCode) {
|
|
@@ -2830,7 +2830,7 @@ exports.deserializeAws_json1_0UpdateTimeToLiveCommand = deserializeAws_json1_0Up
|
|
|
2830
2830
|
const deserializeAws_json1_0UpdateTimeToLiveCommandError = async (output, context) => {
|
|
2831
2831
|
const parsedOutput = {
|
|
2832
2832
|
...output,
|
|
2833
|
-
body: await
|
|
2833
|
+
body: await parseErrorBody(output.body, context),
|
|
2834
2834
|
};
|
|
2835
2835
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2836
2836
|
switch (errorCode) {
|
|
@@ -6440,6 +6440,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
6440
6440
|
}
|
|
6441
6441
|
return {};
|
|
6442
6442
|
});
|
|
6443
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
6444
|
+
var _a;
|
|
6445
|
+
const value = await parseBody(errorBody, context);
|
|
6446
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
6447
|
+
return value;
|
|
6448
|
+
};
|
|
6443
6449
|
const loadRestJsonErrorCode = (output, data) => {
|
|
6444
6450
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
6445
6451
|
const sanitizeErrorCode = (rawValue) => {
|