@aws-sdk/client-dynamodb 3.37.0 → 3.41.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 +42 -0
- package/README.md +18 -16
- package/dist-cjs/commands/index.js +53 -0
- package/dist-cjs/endpoints.js +154 -27
- package/dist-cjs/index.js +5 -60
- package/dist-cjs/pagination/index.js +9 -0
- package/dist-cjs/runtimeConfig.browser.js +6 -3
- package/dist-cjs/runtimeConfig.js +5 -3
- package/dist-cjs/waiters/index.js +5 -0
- package/dist-es/commands/index.js +50 -0
- package/dist-es/endpoints.js +154 -27
- package/dist-es/index.js +5 -60
- package/dist-es/pagination/index.js +6 -0
- package/dist-es/runtimeConfig.browser.js +3 -2
- package/dist-es/runtimeConfig.js +3 -3
- package/dist-es/waiters/index.js +2 -0
- package/dist-types/DynamoDB.d.ts +606 -567
- package/dist-types/DynamoDBClient.d.ts +24 -15
- package/dist-types/commands/BatchExecuteStatementCommand.d.ts +7 -4
- package/dist-types/commands/BatchGetItemCommand.d.ts +27 -26
- package/dist-types/commands/BatchWriteItemCommand.d.ts +51 -47
- package/dist-types/commands/CreateBackupCommand.d.ts +19 -19
- package/dist-types/commands/CreateGlobalTableCommand.d.ts +32 -43
- package/dist-types/commands/CreateTableCommand.d.ts +14 -14
- package/dist-types/commands/DeleteBackupCommand.d.ts +3 -2
- package/dist-types/commands/DeleteItemCommand.d.ts +12 -7
- package/dist-types/commands/DeleteTableCommand.d.ts +18 -16
- package/dist-types/commands/DescribeBackupCommand.d.ts +3 -2
- package/dist-types/commands/DescribeContinuousBackupsCommand.d.ts +12 -11
- package/dist-types/commands/DescribeContributorInsightsCommand.d.ts +3 -2
- package/dist-types/commands/DescribeEndpointsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeExportCommand.d.ts +1 -1
- package/dist-types/commands/DescribeGlobalTableCommand.d.ts +6 -5
- package/dist-types/commands/DescribeGlobalTableSettingsCommand.d.ts +5 -4
- package/dist-types/commands/DescribeKinesisStreamingDestinationCommand.d.ts +1 -1
- package/dist-types/commands/DescribeLimitsCommand.d.ts +51 -41
- package/dist-types/commands/DescribeTableCommand.d.ts +11 -8
- package/dist-types/commands/DescribeTableReplicaAutoScalingCommand.d.ts +5 -4
- package/dist-types/commands/DescribeTimeToLiveCommand.d.ts +1 -1
- package/dist-types/commands/DisableKinesisStreamingDestinationCommand.d.ts +1 -1
- package/dist-types/commands/EnableKinesisStreamingDestinationCommand.d.ts +5 -5
- package/dist-types/commands/ExecuteStatementCommand.d.ts +3 -4
- package/dist-types/commands/ExecuteTransactionCommand.d.ts +9 -4
- package/dist-types/commands/ExportTableToPointInTimeCommand.d.ts +1 -1
- package/dist-types/commands/GetItemCommand.d.ts +9 -8
- package/dist-types/commands/ListBackupsCommand.d.ts +7 -7
- package/dist-types/commands/ListContributorInsightsCommand.d.ts +3 -2
- package/dist-types/commands/ListExportsCommand.d.ts +1 -1
- package/dist-types/commands/ListGlobalTablesCommand.d.ts +5 -4
- package/dist-types/commands/ListTablesCommand.d.ts +4 -4
- package/dist-types/commands/ListTagsOfResourceCommand.d.ts +5 -5
- package/dist-types/commands/PutItemCommand.d.ts +52 -45
- package/dist-types/commands/QueryCommand.d.ts +40 -44
- package/dist-types/commands/RestoreTableFromBackupCommand.d.ts +19 -19
- package/dist-types/commands/RestoreTableToPointInTimeCommand.d.ts +36 -41
- package/dist-types/commands/ScanCommand.d.ts +17 -16
- package/dist-types/commands/TagResourceCommand.d.ts +3 -4
- package/dist-types/commands/TransactGetItemsCommand.d.ts +12 -11
- package/dist-types/commands/TransactWriteItemsCommand.d.ts +49 -47
- package/dist-types/commands/UntagResourceCommand.d.ts +3 -4
- package/dist-types/commands/UpdateContinuousBackupsCommand.d.ts +10 -10
- package/dist-types/commands/UpdateContributorInsightsCommand.d.ts +7 -2
- package/dist-types/commands/UpdateGlobalTableCommand.d.ts +12 -17
- package/dist-types/commands/UpdateGlobalTableSettingsCommand.d.ts +1 -1
- package/dist-types/commands/UpdateItemCommand.d.ts +8 -4
- package/dist-types/commands/UpdateTableCommand.d.ts +15 -13
- package/dist-types/commands/UpdateTableReplicaAutoScalingCommand.d.ts +5 -4
- package/dist-types/commands/UpdateTimeToLiveCommand.d.ts +15 -15
- package/dist-types/commands/index.d.ts +50 -0
- package/dist-types/index.d.ts +5 -60
- package/dist-types/models/models_0.d.ts +3413 -2779
- package/dist-types/pagination/index.d.ts +6 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/DynamoDBClient.d.ts +4 -0
- package/dist-types/ts3.4/commands/index.d.ts +50 -0
- package/dist-types/ts3.4/index.d.ts +5 -60
- package/dist-types/ts3.4/pagination/index.d.ts +6 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/waiters/index.d.ts +2 -0
- package/dist-types/waiters/index.d.ts +2 -0
- package/package.json +28 -28
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,48 @@
|
|
|
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.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients as of 2021/11/11 ([#3015](https://github.com/aws/aws-sdk-js-v3/issues/3015)) ([3d82c4e](https://github.com/aws/aws-sdk-js-v3/commit/3d82c4e3c4d174533f46ce35495cf5cffabdb35a))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **clients:** populate variants in endpoints hashes ([#2974](https://github.com/aws/aws-sdk-js-v3/issues/2974)) ([0dd68ef](https://github.com/aws/aws-sdk-js-v3/commit/0dd68ef8b04ea0e96e43b05a9a10221e433fdf86))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# [3.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
|
|
29
|
+
|
|
30
|
+
**Note:** Version bump only for package @aws-sdk/client-dynamodb
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
# [3.38.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.37.0...v3.38.0) (2021-10-22)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Features
|
|
40
|
+
|
|
41
|
+
* **client-documentation-generator:** rename package ([#2916](https://github.com/aws/aws-sdk-js-v3/issues/2916)) ([1a80bfd](https://github.com/aws/aws-sdk-js-v3/commit/1a80bfd2dfc583001ddb4a21b6432eaaad699aa7))
|
|
42
|
+
* **clients:** export folder from index.ts ([#2912](https://github.com/aws/aws-sdk-js-v3/issues/2912)) ([183b46d](https://github.com/aws/aws-sdk-js-v3/commit/183b46dde7f5613128038bf1c076f3c0b693203b))
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
6
48
|
# [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
|
|
7
49
|
|
|
8
50
|
|
package/README.md
CHANGED
|
@@ -9,22 +9,24 @@ AWS SDK for JavaScript DynamoDB Client for Node.js, Browser and React Native.
|
|
|
9
9
|
|
|
10
10
|
<fullname>Amazon DynamoDB</fullname>
|
|
11
11
|
|
|
12
|
-
<p>Amazon DynamoDB is a fully managed NoSQL database service that provides fast
|
|
13
|
-
predictable performance with seamless scalability. DynamoDB lets you
|
|
14
|
-
administrative burdens of operating and scaling a distributed database, so
|
|
15
|
-
to worry about hardware provisioning, setup and configuration,
|
|
16
|
-
or cluster scaling.</p>
|
|
17
|
-
|
|
18
|
-
<p>With DynamoDB, you can create database tables that can store and retrieve
|
|
19
|
-
data, and serve any level of request traffic. You can scale up or scale
|
|
20
|
-
throughput capacity without downtime or performance degradation, and
|
|
21
|
-
Console to monitor resource utilization and performance
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
12
|
+
<p>Amazon DynamoDB is a fully managed NoSQL database service that provides fast
|
|
13
|
+
and predictable performance with seamless scalability. DynamoDB lets you
|
|
14
|
+
offload the administrative burdens of operating and scaling a distributed database, so
|
|
15
|
+
that you don't have to worry about hardware provisioning, setup and configuration,
|
|
16
|
+
replication, software patching, or cluster scaling.</p>
|
|
17
|
+
|
|
18
|
+
<p>With DynamoDB, you can create database tables that can store and retrieve
|
|
19
|
+
any amount of data, and serve any level of request traffic. You can scale up or scale
|
|
20
|
+
down your tables' throughput capacity without downtime or performance degradation, and
|
|
21
|
+
use the Amazon Web Services Management Console to monitor resource utilization and performance
|
|
22
|
+
metrics.</p>
|
|
23
|
+
|
|
24
|
+
<p>DynamoDB automatically spreads the data and traffic for your tables over
|
|
25
|
+
a sufficient number of servers to handle your throughput and storage requirements, while
|
|
26
|
+
maintaining consistent and fast performance. All of your data is stored on solid state
|
|
27
|
+
disks (SSDs) and automatically replicated across multiple Availability Zones in an
|
|
28
|
+
Amazon Web Services Region, providing built-in high availability and data
|
|
29
|
+
durability.</p>
|
|
28
30
|
|
|
29
31
|
## Installing
|
|
30
32
|
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./BatchExecuteStatementCommand"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./BatchGetItemCommand"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./BatchWriteItemCommand"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./CreateBackupCommand"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./CreateGlobalTableCommand"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./CreateTableCommand"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./DeleteBackupCommand"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./DeleteItemCommand"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./DeleteTableCommand"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./DescribeBackupCommand"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./DescribeContinuousBackupsCommand"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./DescribeContributorInsightsCommand"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./DescribeEndpointsCommand"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./DescribeExportCommand"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./DescribeGlobalTableCommand"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./DescribeGlobalTableSettingsCommand"), exports);
|
|
20
|
+
tslib_1.__exportStar(require("./DescribeKinesisStreamingDestinationCommand"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./DescribeLimitsCommand"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("./DescribeTableCommand"), exports);
|
|
23
|
+
tslib_1.__exportStar(require("./DescribeTableReplicaAutoScalingCommand"), exports);
|
|
24
|
+
tslib_1.__exportStar(require("./DescribeTimeToLiveCommand"), exports);
|
|
25
|
+
tslib_1.__exportStar(require("./DisableKinesisStreamingDestinationCommand"), exports);
|
|
26
|
+
tslib_1.__exportStar(require("./EnableKinesisStreamingDestinationCommand"), exports);
|
|
27
|
+
tslib_1.__exportStar(require("./ExecuteStatementCommand"), exports);
|
|
28
|
+
tslib_1.__exportStar(require("./ExecuteTransactionCommand"), exports);
|
|
29
|
+
tslib_1.__exportStar(require("./ExportTableToPointInTimeCommand"), exports);
|
|
30
|
+
tslib_1.__exportStar(require("./GetItemCommand"), exports);
|
|
31
|
+
tslib_1.__exportStar(require("./ListBackupsCommand"), exports);
|
|
32
|
+
tslib_1.__exportStar(require("./ListContributorInsightsCommand"), exports);
|
|
33
|
+
tslib_1.__exportStar(require("./ListExportsCommand"), exports);
|
|
34
|
+
tslib_1.__exportStar(require("./ListGlobalTablesCommand"), exports);
|
|
35
|
+
tslib_1.__exportStar(require("./ListTablesCommand"), exports);
|
|
36
|
+
tslib_1.__exportStar(require("./ListTagsOfResourceCommand"), exports);
|
|
37
|
+
tslib_1.__exportStar(require("./PutItemCommand"), exports);
|
|
38
|
+
tslib_1.__exportStar(require("./QueryCommand"), exports);
|
|
39
|
+
tslib_1.__exportStar(require("./RestoreTableFromBackupCommand"), exports);
|
|
40
|
+
tslib_1.__exportStar(require("./RestoreTableToPointInTimeCommand"), exports);
|
|
41
|
+
tslib_1.__exportStar(require("./ScanCommand"), exports);
|
|
42
|
+
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
43
|
+
tslib_1.__exportStar(require("./TransactGetItemsCommand"), exports);
|
|
44
|
+
tslib_1.__exportStar(require("./TransactWriteItemsCommand"), exports);
|
|
45
|
+
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
|
46
|
+
tslib_1.__exportStar(require("./UpdateContinuousBackupsCommand"), exports);
|
|
47
|
+
tslib_1.__exportStar(require("./UpdateContributorInsightsCommand"), exports);
|
|
48
|
+
tslib_1.__exportStar(require("./UpdateGlobalTableCommand"), exports);
|
|
49
|
+
tslib_1.__exportStar(require("./UpdateGlobalTableSettingsCommand"), exports);
|
|
50
|
+
tslib_1.__exportStar(require("./UpdateItemCommand"), exports);
|
|
51
|
+
tslib_1.__exportStar(require("./UpdateTableCommand"), exports);
|
|
52
|
+
tslib_1.__exportStar(require("./UpdateTableReplicaAutoScalingCommand"), exports);
|
|
53
|
+
tslib_1.__exportStar(require("./UpdateTimeToLiveCommand"), exports);
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -3,37 +3,98 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.defaultRegionInfoProvider = void 0;
|
|
4
4
|
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
5
5
|
const regionHash = {
|
|
6
|
-
"ca-central-1
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
"ca-central-1": {
|
|
7
|
+
variants: [
|
|
8
|
+
{
|
|
9
|
+
hostname: "dynamodb.ca-central-1.amazonaws.com",
|
|
10
|
+
tags: [],
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
hostname: "dynamodb-fips.ca-central-1.amazonaws.com",
|
|
14
|
+
tags: ["fips"],
|
|
15
|
+
},
|
|
16
|
+
],
|
|
9
17
|
},
|
|
10
18
|
local: {
|
|
11
|
-
|
|
19
|
+
variants: [
|
|
20
|
+
{
|
|
21
|
+
hostname: "localhost:8000",
|
|
22
|
+
tags: [],
|
|
23
|
+
},
|
|
24
|
+
],
|
|
12
25
|
signingRegion: "us-east-1",
|
|
13
26
|
},
|
|
14
|
-
"us-east-1
|
|
15
|
-
|
|
16
|
-
|
|
27
|
+
"us-east-1": {
|
|
28
|
+
variants: [
|
|
29
|
+
{
|
|
30
|
+
hostname: "dynamodb.us-east-1.amazonaws.com",
|
|
31
|
+
tags: [],
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
hostname: "dynamodb-fips.us-east-1.amazonaws.com",
|
|
35
|
+
tags: ["fips"],
|
|
36
|
+
},
|
|
37
|
+
],
|
|
17
38
|
},
|
|
18
|
-
"us-east-2
|
|
19
|
-
|
|
20
|
-
|
|
39
|
+
"us-east-2": {
|
|
40
|
+
variants: [
|
|
41
|
+
{
|
|
42
|
+
hostname: "dynamodb.us-east-2.amazonaws.com",
|
|
43
|
+
tags: [],
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
hostname: "dynamodb-fips.us-east-2.amazonaws.com",
|
|
47
|
+
tags: ["fips"],
|
|
48
|
+
},
|
|
49
|
+
],
|
|
21
50
|
},
|
|
22
|
-
"us-gov-east-1
|
|
23
|
-
|
|
24
|
-
|
|
51
|
+
"us-gov-east-1": {
|
|
52
|
+
variants: [
|
|
53
|
+
{
|
|
54
|
+
hostname: "dynamodb.us-gov-east-1.amazonaws.com",
|
|
55
|
+
tags: [],
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
hostname: "dynamodb.us-gov-east-1.amazonaws.com",
|
|
59
|
+
tags: ["fips"],
|
|
60
|
+
},
|
|
61
|
+
],
|
|
25
62
|
},
|
|
26
|
-
"us-gov-west-1
|
|
27
|
-
|
|
28
|
-
|
|
63
|
+
"us-gov-west-1": {
|
|
64
|
+
variants: [
|
|
65
|
+
{
|
|
66
|
+
hostname: "dynamodb.us-gov-west-1.amazonaws.com",
|
|
67
|
+
tags: [],
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
hostname: "dynamodb.us-gov-west-1.amazonaws.com",
|
|
71
|
+
tags: ["fips"],
|
|
72
|
+
},
|
|
73
|
+
],
|
|
29
74
|
},
|
|
30
|
-
"us-west-1
|
|
31
|
-
|
|
32
|
-
|
|
75
|
+
"us-west-1": {
|
|
76
|
+
variants: [
|
|
77
|
+
{
|
|
78
|
+
hostname: "dynamodb.us-west-1.amazonaws.com",
|
|
79
|
+
tags: [],
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
hostname: "dynamodb-fips.us-west-1.amazonaws.com",
|
|
83
|
+
tags: ["fips"],
|
|
84
|
+
},
|
|
85
|
+
],
|
|
33
86
|
},
|
|
34
|
-
"us-west-2
|
|
35
|
-
|
|
36
|
-
|
|
87
|
+
"us-west-2": {
|
|
88
|
+
variants: [
|
|
89
|
+
{
|
|
90
|
+
hostname: "dynamodb.us-west-2.amazonaws.com",
|
|
91
|
+
tags: [],
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
hostname: "dynamodb-fips.us-west-2.amazonaws.com",
|
|
95
|
+
tags: ["fips"],
|
|
96
|
+
},
|
|
97
|
+
],
|
|
37
98
|
},
|
|
38
99
|
};
|
|
39
100
|
const partitionHash = {
|
|
@@ -67,23 +128,89 @@ const partitionHash = {
|
|
|
67
128
|
"us-west-2",
|
|
68
129
|
"us-west-2-fips",
|
|
69
130
|
],
|
|
70
|
-
|
|
131
|
+
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
|
|
132
|
+
variants: [
|
|
133
|
+
{
|
|
134
|
+
hostname: "dynamodb.{region}.amazonaws.com",
|
|
135
|
+
tags: [],
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
hostname: "dynamodb-fips.{region}.amazonaws.com",
|
|
139
|
+
tags: ["fips"],
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
hostname: "dynamodb-fips.{region}.api.aws",
|
|
143
|
+
tags: ["dualstack", "fips"],
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
hostname: "dynamodb.{region}.api.aws",
|
|
147
|
+
tags: ["dualstack"],
|
|
148
|
+
},
|
|
149
|
+
],
|
|
71
150
|
},
|
|
72
151
|
"aws-cn": {
|
|
73
152
|
regions: ["cn-north-1", "cn-northwest-1"],
|
|
74
|
-
|
|
153
|
+
regionRegex: "^cn\\-\\w+\\-\\d+$",
|
|
154
|
+
variants: [
|
|
155
|
+
{
|
|
156
|
+
hostname: "dynamodb.{region}.amazonaws.com.cn",
|
|
157
|
+
tags: [],
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
hostname: "dynamodb-fips.{region}.amazonaws.com.cn",
|
|
161
|
+
tags: ["fips"],
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
hostname: "dynamodb-fips.{region}.api.amazonwebservices.com.cn",
|
|
165
|
+
tags: ["dualstack", "fips"],
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
hostname: "dynamodb.{region}.api.amazonwebservices.com.cn",
|
|
169
|
+
tags: ["dualstack"],
|
|
170
|
+
},
|
|
171
|
+
],
|
|
75
172
|
},
|
|
76
173
|
"aws-iso": {
|
|
77
174
|
regions: ["us-iso-east-1", "us-iso-west-1"],
|
|
78
|
-
|
|
175
|
+
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
|
|
176
|
+
variants: [
|
|
177
|
+
{
|
|
178
|
+
hostname: "dynamodb.{region}.c2s.ic.gov",
|
|
179
|
+
tags: [],
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
hostname: "dynamodb-fips.{region}.c2s.ic.gov",
|
|
183
|
+
tags: ["fips"],
|
|
184
|
+
},
|
|
185
|
+
],
|
|
79
186
|
},
|
|
80
187
|
"aws-iso-b": {
|
|
81
188
|
regions: ["us-isob-east-1"],
|
|
82
|
-
|
|
189
|
+
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
|
|
190
|
+
variants: [
|
|
191
|
+
{
|
|
192
|
+
hostname: "dynamodb.{region}.sc2s.sgov.gov",
|
|
193
|
+
tags: [],
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
hostname: "dynamodb-fips.{region}.sc2s.sgov.gov",
|
|
197
|
+
tags: ["fips"],
|
|
198
|
+
},
|
|
199
|
+
],
|
|
83
200
|
},
|
|
84
201
|
"aws-us-gov": {
|
|
85
202
|
regions: ["us-gov-east-1", "us-gov-east-1-fips", "us-gov-west-1", "us-gov-west-1-fips"],
|
|
86
|
-
|
|
203
|
+
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
|
204
|
+
variants: [
|
|
205
|
+
{
|
|
206
|
+
hostname: "dynamodb.{region}.amazonaws.com",
|
|
207
|
+
tags: [],
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
hostname: "dynamodb.{region}.amazonaws.com",
|
|
211
|
+
tags: ["fips"],
|
|
212
|
+
},
|
|
213
|
+
],
|
|
87
214
|
},
|
|
88
215
|
};
|
|
89
216
|
const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,64 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./DynamoDBClient"), exports);
|
|
5
4
|
tslib_1.__exportStar(require("./DynamoDB"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./
|
|
7
|
-
tslib_1.__exportStar(require("./commands
|
|
8
|
-
tslib_1.__exportStar(require("./
|
|
9
|
-
tslib_1.__exportStar(require("./
|
|
10
|
-
tslib_1.__exportStar(require("./
|
|
11
|
-
tslib_1.__exportStar(require("./commands/CreateTableCommand"), exports);
|
|
12
|
-
tslib_1.__exportStar(require("./commands/DeleteBackupCommand"), exports);
|
|
13
|
-
tslib_1.__exportStar(require("./commands/DeleteItemCommand"), exports);
|
|
14
|
-
tslib_1.__exportStar(require("./commands/DeleteTableCommand"), exports);
|
|
15
|
-
tslib_1.__exportStar(require("./commands/DescribeBackupCommand"), exports);
|
|
16
|
-
tslib_1.__exportStar(require("./commands/DescribeContinuousBackupsCommand"), exports);
|
|
17
|
-
tslib_1.__exportStar(require("./commands/DescribeContributorInsightsCommand"), exports);
|
|
18
|
-
tslib_1.__exportStar(require("./commands/DescribeEndpointsCommand"), exports);
|
|
19
|
-
tslib_1.__exportStar(require("./commands/DescribeExportCommand"), exports);
|
|
20
|
-
tslib_1.__exportStar(require("./commands/DescribeGlobalTableCommand"), exports);
|
|
21
|
-
tslib_1.__exportStar(require("./commands/DescribeGlobalTableSettingsCommand"), exports);
|
|
22
|
-
tslib_1.__exportStar(require("./commands/DescribeKinesisStreamingDestinationCommand"), exports);
|
|
23
|
-
tslib_1.__exportStar(require("./commands/DescribeLimitsCommand"), exports);
|
|
24
|
-
tslib_1.__exportStar(require("./commands/DescribeTableCommand"), exports);
|
|
25
|
-
tslib_1.__exportStar(require("./waiters/waitForTableExists"), exports);
|
|
26
|
-
tslib_1.__exportStar(require("./waiters/waitForTableNotExists"), exports);
|
|
27
|
-
tslib_1.__exportStar(require("./commands/DescribeTableReplicaAutoScalingCommand"), exports);
|
|
28
|
-
tslib_1.__exportStar(require("./commands/DescribeTimeToLiveCommand"), exports);
|
|
29
|
-
tslib_1.__exportStar(require("./commands/DisableKinesisStreamingDestinationCommand"), exports);
|
|
30
|
-
tslib_1.__exportStar(require("./commands/EnableKinesisStreamingDestinationCommand"), exports);
|
|
31
|
-
tslib_1.__exportStar(require("./commands/ExecuteStatementCommand"), exports);
|
|
32
|
-
tslib_1.__exportStar(require("./commands/ExecuteTransactionCommand"), exports);
|
|
33
|
-
tslib_1.__exportStar(require("./commands/ExportTableToPointInTimeCommand"), exports);
|
|
34
|
-
tslib_1.__exportStar(require("./commands/GetItemCommand"), exports);
|
|
35
|
-
tslib_1.__exportStar(require("./commands/ListBackupsCommand"), exports);
|
|
36
|
-
tslib_1.__exportStar(require("./commands/ListContributorInsightsCommand"), exports);
|
|
37
|
-
tslib_1.__exportStar(require("./pagination/ListContributorInsightsPaginator"), exports);
|
|
38
|
-
tslib_1.__exportStar(require("./commands/ListExportsCommand"), exports);
|
|
39
|
-
tslib_1.__exportStar(require("./pagination/ListExportsPaginator"), exports);
|
|
40
|
-
tslib_1.__exportStar(require("./commands/ListGlobalTablesCommand"), exports);
|
|
41
|
-
tslib_1.__exportStar(require("./commands/ListTablesCommand"), exports);
|
|
42
|
-
tslib_1.__exportStar(require("./pagination/ListTablesPaginator"), exports);
|
|
43
|
-
tslib_1.__exportStar(require("./commands/ListTagsOfResourceCommand"), exports);
|
|
44
|
-
tslib_1.__exportStar(require("./commands/PutItemCommand"), exports);
|
|
45
|
-
tslib_1.__exportStar(require("./commands/QueryCommand"), exports);
|
|
46
|
-
tslib_1.__exportStar(require("./pagination/QueryPaginator"), exports);
|
|
47
|
-
tslib_1.__exportStar(require("./commands/RestoreTableFromBackupCommand"), exports);
|
|
48
|
-
tslib_1.__exportStar(require("./commands/RestoreTableToPointInTimeCommand"), exports);
|
|
49
|
-
tslib_1.__exportStar(require("./commands/ScanCommand"), exports);
|
|
50
|
-
tslib_1.__exportStar(require("./pagination/ScanPaginator"), exports);
|
|
51
|
-
tslib_1.__exportStar(require("./commands/TagResourceCommand"), exports);
|
|
52
|
-
tslib_1.__exportStar(require("./commands/TransactGetItemsCommand"), exports);
|
|
53
|
-
tslib_1.__exportStar(require("./commands/TransactWriteItemsCommand"), exports);
|
|
54
|
-
tslib_1.__exportStar(require("./commands/UntagResourceCommand"), exports);
|
|
55
|
-
tslib_1.__exportStar(require("./commands/UpdateContinuousBackupsCommand"), exports);
|
|
56
|
-
tslib_1.__exportStar(require("./commands/UpdateContributorInsightsCommand"), exports);
|
|
57
|
-
tslib_1.__exportStar(require("./commands/UpdateGlobalTableCommand"), exports);
|
|
58
|
-
tslib_1.__exportStar(require("./commands/UpdateGlobalTableSettingsCommand"), exports);
|
|
59
|
-
tslib_1.__exportStar(require("./commands/UpdateItemCommand"), exports);
|
|
60
|
-
tslib_1.__exportStar(require("./commands/UpdateTableCommand"), exports);
|
|
61
|
-
tslib_1.__exportStar(require("./commands/UpdateTableReplicaAutoScalingCommand"), exports);
|
|
62
|
-
tslib_1.__exportStar(require("./commands/UpdateTimeToLiveCommand"), exports);
|
|
63
|
-
tslib_1.__exportStar(require("./pagination/Interfaces"), exports);
|
|
64
|
-
tslib_1.__exportStar(require("./models/index"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./DynamoDBClient"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./commands"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./models"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./pagination"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./waiters"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./ListContributorInsightsPaginator"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./ListExportsPaginator"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./ListTablesPaginator"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./QueryPaginator"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./ScanPaginator"), exports);
|
|
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
6
|
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
7
|
+
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
7
8
|
const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
|
|
8
9
|
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
|
|
9
10
|
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
@@ -13,7 +14,7 @@ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
|
13
14
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
14
15
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
15
16
|
const getRuntimeConfig = (config) => {
|
|
16
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
17
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
17
18
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
18
19
|
return {
|
|
19
20
|
...clientSharedValues,
|
|
@@ -31,8 +32,10 @@ const getRuntimeConfig = (config) => {
|
|
|
31
32
|
retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
|
|
32
33
|
sha256: (_l = config === null || config === void 0 ? void 0 : config.sha256) !== null && _l !== void 0 ? _l : sha256_browser_1.Sha256,
|
|
33
34
|
streamCollector: (_m = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _m !== void 0 ? _m : fetch_http_handler_1.streamCollector,
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
useDualstackEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
36
|
+
useFipsEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _p !== void 0 ? _p : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
37
|
+
utf8Decoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.fromUtf8,
|
|
38
|
+
utf8Encoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _r !== void 0 ? _r : util_utf8_browser_1.toUtf8,
|
|
36
39
|
};
|
|
37
40
|
};
|
|
38
41
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -18,7 +18,7 @@ const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
|
18
18
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
19
19
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
20
20
|
const getRuntimeConfig = (config) => {
|
|
21
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
21
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
22
22
|
smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
|
|
23
23
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
24
24
|
return {
|
|
@@ -37,8 +37,10 @@ const getRuntimeConfig = (config) => {
|
|
|
37
37
|
retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
|
|
38
38
|
sha256: (_l = config === null || config === void 0 ? void 0 : config.sha256) !== null && _l !== void 0 ? _l : hash_node_1.Hash.bind(null, "sha256"),
|
|
39
39
|
streamCollector: (_m = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _m !== void 0 ? _m : node_http_handler_1.streamCollector,
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
useDualstackEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
41
|
+
useFipsEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _p !== void 0 ? _p : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
42
|
+
utf8Decoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.fromUtf8,
|
|
43
|
+
utf8Encoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _r !== void 0 ? _r : util_utf8_node_1.toUtf8,
|
|
42
44
|
};
|
|
43
45
|
};
|
|
44
46
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export * from "./BatchExecuteStatementCommand";
|
|
2
|
+
export * from "./BatchGetItemCommand";
|
|
3
|
+
export * from "./BatchWriteItemCommand";
|
|
4
|
+
export * from "./CreateBackupCommand";
|
|
5
|
+
export * from "./CreateGlobalTableCommand";
|
|
6
|
+
export * from "./CreateTableCommand";
|
|
7
|
+
export * from "./DeleteBackupCommand";
|
|
8
|
+
export * from "./DeleteItemCommand";
|
|
9
|
+
export * from "./DeleteTableCommand";
|
|
10
|
+
export * from "./DescribeBackupCommand";
|
|
11
|
+
export * from "./DescribeContinuousBackupsCommand";
|
|
12
|
+
export * from "./DescribeContributorInsightsCommand";
|
|
13
|
+
export * from "./DescribeEndpointsCommand";
|
|
14
|
+
export * from "./DescribeExportCommand";
|
|
15
|
+
export * from "./DescribeGlobalTableCommand";
|
|
16
|
+
export * from "./DescribeGlobalTableSettingsCommand";
|
|
17
|
+
export * from "./DescribeKinesisStreamingDestinationCommand";
|
|
18
|
+
export * from "./DescribeLimitsCommand";
|
|
19
|
+
export * from "./DescribeTableCommand";
|
|
20
|
+
export * from "./DescribeTableReplicaAutoScalingCommand";
|
|
21
|
+
export * from "./DescribeTimeToLiveCommand";
|
|
22
|
+
export * from "./DisableKinesisStreamingDestinationCommand";
|
|
23
|
+
export * from "./EnableKinesisStreamingDestinationCommand";
|
|
24
|
+
export * from "./ExecuteStatementCommand";
|
|
25
|
+
export * from "./ExecuteTransactionCommand";
|
|
26
|
+
export * from "./ExportTableToPointInTimeCommand";
|
|
27
|
+
export * from "./GetItemCommand";
|
|
28
|
+
export * from "./ListBackupsCommand";
|
|
29
|
+
export * from "./ListContributorInsightsCommand";
|
|
30
|
+
export * from "./ListExportsCommand";
|
|
31
|
+
export * from "./ListGlobalTablesCommand";
|
|
32
|
+
export * from "./ListTablesCommand";
|
|
33
|
+
export * from "./ListTagsOfResourceCommand";
|
|
34
|
+
export * from "./PutItemCommand";
|
|
35
|
+
export * from "./QueryCommand";
|
|
36
|
+
export * from "./RestoreTableFromBackupCommand";
|
|
37
|
+
export * from "./RestoreTableToPointInTimeCommand";
|
|
38
|
+
export * from "./ScanCommand";
|
|
39
|
+
export * from "./TagResourceCommand";
|
|
40
|
+
export * from "./TransactGetItemsCommand";
|
|
41
|
+
export * from "./TransactWriteItemsCommand";
|
|
42
|
+
export * from "./UntagResourceCommand";
|
|
43
|
+
export * from "./UpdateContinuousBackupsCommand";
|
|
44
|
+
export * from "./UpdateContributorInsightsCommand";
|
|
45
|
+
export * from "./UpdateGlobalTableCommand";
|
|
46
|
+
export * from "./UpdateGlobalTableSettingsCommand";
|
|
47
|
+
export * from "./UpdateItemCommand";
|
|
48
|
+
export * from "./UpdateTableCommand";
|
|
49
|
+
export * from "./UpdateTableReplicaAutoScalingCommand";
|
|
50
|
+
export * from "./UpdateTimeToLiveCommand";
|