@aws-sdk/client-dynamodb 3.181.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 +8 -0
- 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 -5368
- 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
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { UpdateItemInputFilterSensitiveLog, UpdateItemOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_json1_0UpdateItemCommand, serializeAws_json1_0UpdateItemCommand, } from "../protocols/Aws_json1_0";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class UpdateItemCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "DynamoDBClient";
|
|
15
|
+
const commandName = "UpdateItemCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: UpdateItemInputFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: UpdateItemOutputFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
UpdateItemCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_json1_0UpdateItemCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_json1_0UpdateItemCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { UpdateItemCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { UpdateTableInputFilterSensitiveLog, UpdateTableOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_json1_0UpdateTableCommand, serializeAws_json1_0UpdateTableCommand, } from "../protocols/Aws_json1_0";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class UpdateTableCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "DynamoDBClient";
|
|
15
|
+
const commandName = "UpdateTableCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: UpdateTableInputFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: UpdateTableOutputFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
UpdateTableCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_json1_0UpdateTableCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_json1_0UpdateTableCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { UpdateTableCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { UpdateTableReplicaAutoScalingInputFilterSensitiveLog, UpdateTableReplicaAutoScalingOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand, serializeAws_json1_0UpdateTableReplicaAutoScalingCommand, } from "../protocols/Aws_json1_0";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class UpdateTableReplicaAutoScalingCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "DynamoDBClient";
|
|
15
|
+
const commandName = "UpdateTableReplicaAutoScalingCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: UpdateTableReplicaAutoScalingInputFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: UpdateTableReplicaAutoScalingOutputFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
UpdateTableReplicaAutoScalingCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_json1_0UpdateTableReplicaAutoScalingCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { UpdateTableReplicaAutoScalingCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { UpdateTimeToLiveInputFilterSensitiveLog, UpdateTimeToLiveOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_json1_0UpdateTimeToLiveCommand, serializeAws_json1_0UpdateTimeToLiveCommand, } from "../protocols/Aws_json1_0";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class UpdateTimeToLiveCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "DynamoDBClient";
|
|
15
|
+
const commandName = "UpdateTimeToLiveCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: UpdateTimeToLiveInputFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: UpdateTimeToLiveOutputFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
UpdateTimeToLiveCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_json1_0UpdateTimeToLiveCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_json1_0UpdateTimeToLiveCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { UpdateTimeToLiveCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
package/dist-es/endpoints.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
3
|
-
|
|
2
|
+
const regionHash = {
|
|
4
3
|
"ca-central-1": {
|
|
5
4
|
variants: [
|
|
6
5
|
{
|
|
@@ -67,7 +66,7 @@ var regionHash = {
|
|
|
67
66
|
],
|
|
68
67
|
},
|
|
69
68
|
};
|
|
70
|
-
|
|
69
|
+
const partitionHash = {
|
|
71
70
|
aws: {
|
|
72
71
|
regions: [
|
|
73
72
|
"af-south-1",
|
|
@@ -193,8 +192,9 @@ var partitionHash = {
|
|
|
193
192
|
],
|
|
194
193
|
},
|
|
195
194
|
};
|
|
196
|
-
export
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
195
|
+
export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
|
|
196
|
+
...options,
|
|
197
|
+
signingService: "dynamodb",
|
|
198
|
+
regionHash,
|
|
199
|
+
partitionHash,
|
|
200
|
+
});
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.setPrototypeOf(_this, DynamoDBServiceException.prototype);
|
|
8
|
-
return _this;
|
|
2
|
+
export class DynamoDBServiceException extends __ServiceException {
|
|
3
|
+
constructor(options) {
|
|
4
|
+
super(options);
|
|
5
|
+
Object.setPrototypeOf(this, DynamoDBServiceException.prototype);
|
|
9
6
|
}
|
|
10
|
-
|
|
11
|
-
}(__ServiceException));
|
|
12
|
-
export { DynamoDBServiceException };
|
|
7
|
+
}
|