@aws-sdk/lib-dynamodb 3.36.0 → 3.39.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 +32 -0
- package/dist-cjs/commands/index.js +16 -0
- package/dist-cjs/index.js +2 -14
- package/dist-es/commands/index.js +13 -0
- package/dist-es/index.js +2 -14
- package/dist-types/commands/index.d.ts +13 -0
- package/dist-types/index.d.ts +2 -14
- package/dist-types/ts3.4/DynamoDBDocument.d.ts +14 -137
- package/dist-types/ts3.4/DynamoDBDocumentClient.d.ts +1 -46
- package/dist-types/ts3.4/commands/BatchExecuteStatementCommand.d.ts +2 -10
- package/dist-types/ts3.4/commands/BatchGetCommand.d.ts +2 -10
- package/dist-types/ts3.4/commands/BatchWriteCommand.d.ts +2 -10
- package/dist-types/ts3.4/commands/DeleteCommand.d.ts +2 -10
- package/dist-types/ts3.4/commands/ExecuteStatementCommand.d.ts +2 -10
- package/dist-types/ts3.4/commands/ExecuteTransactionCommand.d.ts +2 -10
- package/dist-types/ts3.4/commands/GetCommand.d.ts +2 -10
- package/dist-types/ts3.4/commands/PutCommand.d.ts +2 -10
- package/dist-types/ts3.4/commands/QueryCommand.d.ts +2 -10
- package/dist-types/ts3.4/commands/ScanCommand.d.ts +2 -10
- package/dist-types/ts3.4/commands/TransactGetCommand.d.ts +2 -10
- package/dist-types/ts3.4/commands/TransactWriteCommand.d.ts +2 -10
- package/dist-types/ts3.4/commands/UpdateCommand.d.ts +2 -10
- package/dist-types/ts3.4/commands/index.d.ts +13 -0
- package/dist-types/ts3.4/index.d.ts +2 -14
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,38 @@
|
|
|
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.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/lib-dynamodb
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.38.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.37.0...v3.38.0) (2021-10-22)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/lib-dynamodb
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @aws-sdk/lib-dynamodb
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## [3.36.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.0...v3.36.1) (2021-10-12)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @aws-sdk/lib-dynamodb
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
6
38
|
# [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
|
|
7
39
|
|
|
8
40
|
|
|
@@ -0,0 +1,16 @@
|
|
|
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("./BatchGetCommand"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./BatchWriteCommand"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./DeleteCommand"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./ExecuteStatementCommand"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./ExecuteTransactionCommand"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./GetCommand"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./PutCommand"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./QueryCommand"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./ScanCommand"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./TransactGetCommand"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./TransactWriteCommand"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./UpdateCommand"), exports);
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,18 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./commands/BatchExecuteStatementCommand"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./commands/BatchGetCommand"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./commands/BatchWriteCommand"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./commands/DeleteCommand"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("./commands/ExecuteStatementCommand"), exports);
|
|
9
|
-
tslib_1.__exportStar(require("./commands/ExecuteTransactionCommand"), exports);
|
|
10
|
-
tslib_1.__exportStar(require("./commands/GetCommand"), exports);
|
|
11
|
-
tslib_1.__exportStar(require("./commands/PutCommand"), exports);
|
|
12
|
-
tslib_1.__exportStar(require("./commands/QueryCommand"), exports);
|
|
13
|
-
tslib_1.__exportStar(require("./commands/ScanCommand"), exports);
|
|
14
|
-
tslib_1.__exportStar(require("./commands/TransactGetCommand"), exports);
|
|
15
|
-
tslib_1.__exportStar(require("./commands/TransactWriteCommand"), exports);
|
|
16
|
-
tslib_1.__exportStar(require("./commands/UpdateCommand"), exports);
|
|
17
|
-
tslib_1.__exportStar(require("./DynamoDBDocumentClient"), exports);
|
|
18
4
|
tslib_1.__exportStar(require("./DynamoDBDocument"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./DynamoDBDocumentClient"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./commands"), exports);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from "./BatchExecuteStatementCommand";
|
|
2
|
+
export * from "./BatchGetCommand";
|
|
3
|
+
export * from "./BatchWriteCommand";
|
|
4
|
+
export * from "./DeleteCommand";
|
|
5
|
+
export * from "./ExecuteStatementCommand";
|
|
6
|
+
export * from "./ExecuteTransactionCommand";
|
|
7
|
+
export * from "./GetCommand";
|
|
8
|
+
export * from "./PutCommand";
|
|
9
|
+
export * from "./QueryCommand";
|
|
10
|
+
export * from "./ScanCommand";
|
|
11
|
+
export * from "./TransactGetCommand";
|
|
12
|
+
export * from "./TransactWriteCommand";
|
|
13
|
+
export * from "./UpdateCommand";
|
package/dist-es/index.js
CHANGED
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
export * from "./commands/BatchExecuteStatementCommand";
|
|
2
|
-
export * from "./commands/BatchGetCommand";
|
|
3
|
-
export * from "./commands/BatchWriteCommand";
|
|
4
|
-
export * from "./commands/DeleteCommand";
|
|
5
|
-
export * from "./commands/ExecuteStatementCommand";
|
|
6
|
-
export * from "./commands/ExecuteTransactionCommand";
|
|
7
|
-
export * from "./commands/GetCommand";
|
|
8
|
-
export * from "./commands/PutCommand";
|
|
9
|
-
export * from "./commands/QueryCommand";
|
|
10
|
-
export * from "./commands/ScanCommand";
|
|
11
|
-
export * from "./commands/TransactGetCommand";
|
|
12
|
-
export * from "./commands/TransactWriteCommand";
|
|
13
|
-
export * from "./commands/UpdateCommand";
|
|
14
|
-
export * from "./DynamoDBDocumentClient";
|
|
15
1
|
export * from "./DynamoDBDocument";
|
|
2
|
+
export * from "./DynamoDBDocumentClient";
|
|
3
|
+
export * from "./commands";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from "./BatchExecuteStatementCommand";
|
|
2
|
+
export * from "./BatchGetCommand";
|
|
3
|
+
export * from "./BatchWriteCommand";
|
|
4
|
+
export * from "./DeleteCommand";
|
|
5
|
+
export * from "./ExecuteStatementCommand";
|
|
6
|
+
export * from "./ExecuteTransactionCommand";
|
|
7
|
+
export * from "./GetCommand";
|
|
8
|
+
export * from "./PutCommand";
|
|
9
|
+
export * from "./QueryCommand";
|
|
10
|
+
export * from "./ScanCommand";
|
|
11
|
+
export * from "./TransactGetCommand";
|
|
12
|
+
export * from "./TransactWriteCommand";
|
|
13
|
+
export * from "./UpdateCommand";
|
package/dist-types/index.d.ts
CHANGED
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
export * from "./commands/BatchExecuteStatementCommand";
|
|
2
|
-
export * from "./commands/BatchGetCommand";
|
|
3
|
-
export * from "./commands/BatchWriteCommand";
|
|
4
|
-
export * from "./commands/DeleteCommand";
|
|
5
|
-
export * from "./commands/ExecuteStatementCommand";
|
|
6
|
-
export * from "./commands/ExecuteTransactionCommand";
|
|
7
|
-
export * from "./commands/GetCommand";
|
|
8
|
-
export * from "./commands/PutCommand";
|
|
9
|
-
export * from "./commands/QueryCommand";
|
|
10
|
-
export * from "./commands/ScanCommand";
|
|
11
|
-
export * from "./commands/TransactGetCommand";
|
|
12
|
-
export * from "./commands/TransactWriteCommand";
|
|
13
|
-
export * from "./commands/UpdateCommand";
|
|
14
|
-
export * from "./DynamoDBDocumentClient";
|
|
15
1
|
export * from "./DynamoDBDocument";
|
|
2
|
+
export * from "./DynamoDBDocumentClient";
|
|
3
|
+
export * from "./commands";
|
|
@@ -14,181 +14,58 @@ import { TransactGetCommandInput, TransactGetCommandOutput } from "./commands/Tr
|
|
|
14
14
|
import { TransactWriteCommandInput, TransactWriteCommandOutput } from "./commands/TransactWriteCommand";
|
|
15
15
|
import { UpdateCommandInput, UpdateCommandOutput } from "./commands/UpdateCommand";
|
|
16
16
|
import { DynamoDBDocumentClient, TranslateConfig } from "./DynamoDBDocumentClient";
|
|
17
|
-
|
|
18
|
-
* The document client simplifies working with items in Amazon DynamoDB by
|
|
19
|
-
* abstracting away the notion of attribute values. This abstraction annotates native
|
|
20
|
-
* JavaScript types supplied as input parameters, as well as converts annotated
|
|
21
|
-
* response data to native JavaScript types.
|
|
22
|
-
*
|
|
23
|
-
* ## Marshalling Input and Unmarshalling Response Data
|
|
24
|
-
*
|
|
25
|
-
* The document client affords developers the use of native JavaScript types
|
|
26
|
-
* instead of `AttributeValue`s to simplify the JavaScript development
|
|
27
|
-
* experience with Amazon DynamoDB. JavaScript objects passed in as parameters
|
|
28
|
-
* are marshalled into `AttributeValue` shapes required by Amazon DynamoDB.
|
|
29
|
-
* Responses from DynamoDB are unmarshalled into plain JavaScript objects
|
|
30
|
-
* by the `DocumentClient`. The `DocumentClient` does not accept
|
|
31
|
-
* `AttributeValue`s in favor of native JavaScript types.
|
|
32
|
-
*
|
|
33
|
-
* | JavaScript Type | DynamoDB AttributeValue |
|
|
34
|
-
* | :-------------------------------: | ----------------------- |
|
|
35
|
-
* | String | S |
|
|
36
|
-
* | Number / BigInt | N |
|
|
37
|
-
* | Boolean | BOOL |
|
|
38
|
-
* | null | NULL |
|
|
39
|
-
* | Array | L |
|
|
40
|
-
* | Object | M |
|
|
41
|
-
* | Set\<Uint8Array, Blob, ...\> | BS |
|
|
42
|
-
* | Set\<Number, BigInt\> | NS |
|
|
43
|
-
* | Set\<String\> | SS |
|
|
44
|
-
* | Uint8Array, Buffer, File, Blob... | B |
|
|
45
|
-
*
|
|
46
|
-
* ### Example
|
|
47
|
-
*
|
|
48
|
-
* Here is an example list which is sent to DynamoDB client in an operation:
|
|
49
|
-
*
|
|
50
|
-
* ```json
|
|
51
|
-
* { "L": [{ "NULL": true }, { "BOOL": false }, { "N": 1 }, { "S": "two" }] }
|
|
52
|
-
* ```
|
|
53
|
-
*
|
|
54
|
-
* The DynamoDB document client abstracts the attribute values as follows in
|
|
55
|
-
* both input and output:
|
|
56
|
-
*
|
|
57
|
-
* ```json
|
|
58
|
-
* [null, false, 1, "two"]
|
|
59
|
-
* ```
|
|
60
|
-
*
|
|
61
|
-
* @see {@link https://www.npmjs.com/package/@aws-sdk/client-dynamodb @aws-sdk/client-dynamodb}
|
|
62
|
-
*/
|
|
17
|
+
|
|
63
18
|
export declare class DynamoDBDocument extends DynamoDBDocumentClient {
|
|
64
19
|
static from(client: DynamoDBClient, translateConfig?: TranslateConfig): DynamoDBDocument;
|
|
65
|
-
|
|
66
|
-
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
67
|
-
* BatchExecuteStatementCommand operation from {@link https://www.npmjs.com/package/@aws-sdk/client-dynamodb @aws-sdk/client-dynamodb}.
|
|
68
|
-
*
|
|
69
|
-
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
70
|
-
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
71
|
-
*/
|
|
20
|
+
|
|
72
21
|
batchExecuteStatement(args: BatchExecuteStatementCommandInput, options?: __HttpHandlerOptions): Promise<BatchExecuteStatementCommandOutput>;
|
|
73
22
|
batchExecuteStatement(args: BatchExecuteStatementCommandInput, cb: (err: any, data?: BatchExecuteStatementCommandOutput) => void): void;
|
|
74
23
|
batchExecuteStatement(args: BatchExecuteStatementCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchExecuteStatementCommandOutput) => void): void;
|
|
75
|
-
|
|
76
|
-
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
77
|
-
* BatchGetItemCommand operation from {@link https://www.npmjs.com/package/@aws-sdk/client-dynamodb @aws-sdk/client-dynamodb}.
|
|
78
|
-
*
|
|
79
|
-
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
80
|
-
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
81
|
-
*/
|
|
24
|
+
|
|
82
25
|
batchGet(args: BatchGetCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetCommandOutput>;
|
|
83
26
|
batchGet(args: BatchGetCommandInput, cb: (err: any, data?: BatchGetCommandOutput) => void): void;
|
|
84
27
|
batchGet(args: BatchGetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetCommandOutput) => void): void;
|
|
85
|
-
|
|
86
|
-
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
87
|
-
* BatchWriteItemCommand operation from {@link https://www.npmjs.com/package/@aws-sdk/client-dynamodb @aws-sdk/client-dynamodb}.
|
|
88
|
-
*
|
|
89
|
-
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
90
|
-
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
91
|
-
*/
|
|
28
|
+
|
|
92
29
|
batchWrite(args: BatchWriteCommandInput, options?: __HttpHandlerOptions): Promise<BatchWriteCommandOutput>;
|
|
93
30
|
batchWrite(args: BatchWriteCommandInput, cb: (err: any, data?: BatchWriteCommandOutput) => void): void;
|
|
94
31
|
batchWrite(args: BatchWriteCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchWriteCommandOutput) => void): void;
|
|
95
|
-
|
|
96
|
-
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
97
|
-
* DeleteItemCommand operation from {@link https://www.npmjs.com/package/@aws-sdk/client-dynamodb @aws-sdk/client-dynamodb}.
|
|
98
|
-
*
|
|
99
|
-
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
100
|
-
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
101
|
-
*/
|
|
32
|
+
|
|
102
33
|
delete(args: DeleteCommandInput, options?: __HttpHandlerOptions): Promise<DeleteCommandOutput>;
|
|
103
34
|
delete(args: DeleteCommandInput, cb: (err: any, data?: DeleteCommandOutput) => void): void;
|
|
104
35
|
delete(args: DeleteCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteCommandOutput) => void): void;
|
|
105
|
-
|
|
106
|
-
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
107
|
-
* ExecuteStatementCommand operation from {@link https://www.npmjs.com/package/@aws-sdk/client-dynamodb @aws-sdk/client-dynamodb}.
|
|
108
|
-
*
|
|
109
|
-
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
110
|
-
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
111
|
-
*/
|
|
36
|
+
|
|
112
37
|
executeStatement(args: ExecuteStatementCommandInput, options?: __HttpHandlerOptions): Promise<ExecuteStatementCommandOutput>;
|
|
113
38
|
executeStatement(args: ExecuteStatementCommandInput, cb: (err: any, data?: ExecuteStatementCommandOutput) => void): void;
|
|
114
39
|
executeStatement(args: ExecuteStatementCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ExecuteStatementCommandOutput) => void): void;
|
|
115
|
-
|
|
116
|
-
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
117
|
-
* ExecuteTransactionCommand operation from {@link https://www.npmjs.com/package/@aws-sdk/client-dynamodb @aws-sdk/client-dynamodb}.
|
|
118
|
-
*
|
|
119
|
-
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
120
|
-
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
121
|
-
*/
|
|
40
|
+
|
|
122
41
|
executeTransaction(args: ExecuteTransactionCommandInput, options?: __HttpHandlerOptions): Promise<ExecuteTransactionCommandOutput>;
|
|
123
42
|
executeTransaction(args: ExecuteTransactionCommandInput, cb: (err: any, data?: ExecuteTransactionCommandOutput) => void): void;
|
|
124
43
|
executeTransaction(args: ExecuteTransactionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ExecuteTransactionCommandOutput) => void): void;
|
|
125
|
-
|
|
126
|
-
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
127
|
-
* GetItemCommand operation from {@link https://www.npmjs.com/package/@aws-sdk/client-dynamodb @aws-sdk/client-dynamodb}.
|
|
128
|
-
*
|
|
129
|
-
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
130
|
-
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
131
|
-
*/
|
|
44
|
+
|
|
132
45
|
get(args: GetCommandInput, options?: __HttpHandlerOptions): Promise<GetCommandOutput>;
|
|
133
46
|
get(args: GetCommandInput, cb: (err: any, data?: GetCommandOutput) => void): void;
|
|
134
47
|
get(args: GetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCommandOutput) => void): void;
|
|
135
|
-
|
|
136
|
-
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
137
|
-
* PutItemCommand operation from {@link https://www.npmjs.com/package/@aws-sdk/client-dynamodb @aws-sdk/client-dynamodb}.
|
|
138
|
-
*
|
|
139
|
-
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
140
|
-
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
141
|
-
*/
|
|
48
|
+
|
|
142
49
|
put(args: PutCommandInput, options?: __HttpHandlerOptions): Promise<PutCommandOutput>;
|
|
143
50
|
put(args: PutCommandInput, cb: (err: any, data?: PutCommandOutput) => void): void;
|
|
144
51
|
put(args: PutCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutCommandOutput) => void): void;
|
|
145
|
-
|
|
146
|
-
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
147
|
-
* QueryCommand operation from {@link https://www.npmjs.com/package/@aws-sdk/client-dynamodb @aws-sdk/client-dynamodb}.
|
|
148
|
-
*
|
|
149
|
-
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
150
|
-
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
151
|
-
*/
|
|
52
|
+
|
|
152
53
|
query(args: QueryCommandInput, options?: __HttpHandlerOptions): Promise<QueryCommandOutput>;
|
|
153
54
|
query(args: QueryCommandInput, cb: (err: any, data?: QueryCommandOutput) => void): void;
|
|
154
55
|
query(args: QueryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: QueryCommandOutput) => void): void;
|
|
155
|
-
|
|
156
|
-
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
157
|
-
* ScanCommand operation from {@link https://www.npmjs.com/package/@aws-sdk/client-dynamodb @aws-sdk/client-dynamodb}.
|
|
158
|
-
*
|
|
159
|
-
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
160
|
-
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
161
|
-
*/
|
|
56
|
+
|
|
162
57
|
scan(args: ScanCommandInput, options?: __HttpHandlerOptions): Promise<ScanCommandOutput>;
|
|
163
58
|
scan(args: ScanCommandInput, cb: (err: any, data?: ScanCommandOutput) => void): void;
|
|
164
59
|
scan(args: ScanCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ScanCommandOutput) => void): void;
|
|
165
|
-
|
|
166
|
-
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
167
|
-
* TransactGetItemsCommand operation from {@link https://www.npmjs.com/package/@aws-sdk/client-dynamodb @aws-sdk/client-dynamodb}.
|
|
168
|
-
*
|
|
169
|
-
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
170
|
-
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
171
|
-
*/
|
|
60
|
+
|
|
172
61
|
transactGet(args: TransactGetCommandInput, options?: __HttpHandlerOptions): Promise<TransactGetCommandOutput>;
|
|
173
62
|
transactGet(args: TransactGetCommandInput, cb: (err: any, data?: TransactGetCommandOutput) => void): void;
|
|
174
63
|
transactGet(args: TransactGetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TransactGetCommandOutput) => void): void;
|
|
175
|
-
|
|
176
|
-
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
177
|
-
* TransactWriteItemsCommand operation from {@link https://www.npmjs.com/package/@aws-sdk/client-dynamodb @aws-sdk/client-dynamodb}.
|
|
178
|
-
*
|
|
179
|
-
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
180
|
-
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
181
|
-
*/
|
|
64
|
+
|
|
182
65
|
transactWrite(args: TransactWriteCommandInput, options?: __HttpHandlerOptions): Promise<TransactWriteCommandOutput>;
|
|
183
66
|
transactWrite(args: TransactWriteCommandInput, cb: (err: any, data?: TransactWriteCommandOutput) => void): void;
|
|
184
67
|
transactWrite(args: TransactWriteCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TransactWriteCommandOutput) => void): void;
|
|
185
|
-
|
|
186
|
-
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
187
|
-
* UpdateItemCommand operation from {@link https://www.npmjs.com/package/@aws-sdk/client-dynamodb @aws-sdk/client-dynamodb}.
|
|
188
|
-
*
|
|
189
|
-
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
190
|
-
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
191
|
-
*/
|
|
68
|
+
|
|
192
69
|
update(args: UpdateCommandInput, options?: __HttpHandlerOptions): Promise<UpdateCommandOutput>;
|
|
193
70
|
update(args: UpdateCommandInput, cb: (err: any, data?: UpdateCommandOutput) => void): void;
|
|
194
71
|
update(args: UpdateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateCommandOutput) => void): void;
|
|
@@ -24,52 +24,7 @@ export declare type TranslateConfig = {
|
|
|
24
24
|
export declare type DynamoDBDocumentClientResolvedConfig = DynamoDBClientResolvedConfig & {
|
|
25
25
|
translateConfig?: TranslateConfig;
|
|
26
26
|
};
|
|
27
|
-
|
|
28
|
-
* The document client simplifies working with items in Amazon DynamoDB by
|
|
29
|
-
* abstracting away the notion of attribute values. This abstraction annotates native
|
|
30
|
-
* JavaScript types supplied as input parameters, as well as converts annotated
|
|
31
|
-
* response data to native JavaScript types.
|
|
32
|
-
*
|
|
33
|
-
* ## Marshalling Input and Unmarshalling Response Data
|
|
34
|
-
*
|
|
35
|
-
* The document client affords developers the use of native JavaScript types
|
|
36
|
-
* instead of `AttributeValue`s to simplify the JavaScript development
|
|
37
|
-
* experience with Amazon DynamoDB. JavaScript objects passed in as parameters
|
|
38
|
-
* are marshalled into `AttributeValue` shapes required by Amazon DynamoDB.
|
|
39
|
-
* Responses from DynamoDB are unmarshalled into plain JavaScript objects
|
|
40
|
-
* by the `DocumentClient`. The `DocumentClient` does not accept
|
|
41
|
-
* `AttributeValue`s in favor of native JavaScript types.
|
|
42
|
-
*
|
|
43
|
-
* | JavaScript Type | DynamoDB AttributeValue |
|
|
44
|
-
* | :-------------------------------: | ----------------------- |
|
|
45
|
-
* | String | S |
|
|
46
|
-
* | Number / BigInt | N |
|
|
47
|
-
* | Boolean | BOOL |
|
|
48
|
-
* | null | NULL |
|
|
49
|
-
* | Array | L |
|
|
50
|
-
* | Object | M |
|
|
51
|
-
* | Set\<Uint8Array, Blob, ...\> | BS |
|
|
52
|
-
* | Set\<Number, BigInt\> | NS |
|
|
53
|
-
* | Set\<String\> | SS |
|
|
54
|
-
* | Uint8Array, Buffer, File, Blob... | B |
|
|
55
|
-
*
|
|
56
|
-
* ### Example
|
|
57
|
-
*
|
|
58
|
-
* Here is an example list which is sent to DynamoDB client in an operation:
|
|
59
|
-
*
|
|
60
|
-
* ```json
|
|
61
|
-
* { "L": [{ "NULL": true }, { "BOOL": false }, { "N": 1 }, { "S": "two" }] }
|
|
62
|
-
* ```
|
|
63
|
-
*
|
|
64
|
-
* The DynamoDB document client abstracts the attribute values as follows in
|
|
65
|
-
* both input and output:
|
|
66
|
-
*
|
|
67
|
-
* ```json
|
|
68
|
-
* [null, false, 1, "two"]
|
|
69
|
-
* ```
|
|
70
|
-
*
|
|
71
|
-
* @see {@link https://www.npmjs.com/package/@aws-sdk/client-dynamodb @aws-sdk/client-dynamodb}
|
|
72
|
-
*/
|
|
27
|
+
|
|
73
28
|
export declare class DynamoDBDocumentClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, DynamoDBDocumentClientResolvedConfig> {
|
|
74
29
|
readonly config: DynamoDBDocumentClientResolvedConfig;
|
|
75
30
|
protected constructor(client: DynamoDBClient, translateConfig?: TranslateConfig);
|
|
@@ -15,20 +15,12 @@ export declare type BatchExecuteStatementCommandOutput = Pick<__BatchExecuteStat
|
|
|
15
15
|
};
|
|
16
16
|
})[];
|
|
17
17
|
};
|
|
18
|
-
|
|
19
|
-
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
20
|
-
* BatchExecuteStatementCommand operation from {@link https://www.npmjs.com/package/@aws-sdk/client-dynamodb @aws-sdk/client-dynamodb}.
|
|
21
|
-
*
|
|
22
|
-
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
23
|
-
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
24
|
-
*/
|
|
18
|
+
|
|
25
19
|
export declare class BatchExecuteStatementCommand extends $Command<BatchExecuteStatementCommandInput, BatchExecuteStatementCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
26
20
|
readonly input: BatchExecuteStatementCommandInput;
|
|
27
21
|
private readonly inputKeyNodes;
|
|
28
22
|
private readonly outputKeyNodes;
|
|
29
23
|
constructor(input: BatchExecuteStatementCommandInput);
|
|
30
|
-
|
|
31
|
-
* @internal
|
|
32
|
-
*/
|
|
24
|
+
|
|
33
25
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DynamoDBDocumentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<BatchExecuteStatementCommandInput, BatchExecuteStatementCommandOutput>;
|
|
34
26
|
}
|
|
@@ -26,20 +26,12 @@ export declare type BatchGetCommandOutput = Pick<__BatchGetItemCommandOutput, Ex
|
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
|
-
|
|
30
|
-
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
31
|
-
* BatchGetItemCommand operation from {@link https://www.npmjs.com/package/@aws-sdk/client-dynamodb @aws-sdk/client-dynamodb}.
|
|
32
|
-
*
|
|
33
|
-
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
34
|
-
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
35
|
-
*/
|
|
29
|
+
|
|
36
30
|
export declare class BatchGetCommand extends $Command<BatchGetCommandInput, BatchGetCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
37
31
|
readonly input: BatchGetCommandInput;
|
|
38
32
|
private readonly inputKeyNodes;
|
|
39
33
|
private readonly outputKeyNodes;
|
|
40
34
|
constructor(input: BatchGetCommandInput);
|
|
41
|
-
|
|
42
|
-
* @internal
|
|
43
|
-
*/
|
|
35
|
+
|
|
44
36
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DynamoDBDocumentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<BatchGetCommandInput, BatchGetCommandOutput>;
|
|
45
37
|
}
|
|
@@ -42,20 +42,12 @@ export declare type BatchWriteCommandOutput = Pick<__BatchWriteItemCommandOutput
|
|
|
42
42
|
})[];
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
|
-
|
|
46
|
-
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
47
|
-
* BatchWriteItemCommand operation from {@link https://www.npmjs.com/package/@aws-sdk/client-dynamodb @aws-sdk/client-dynamodb}.
|
|
48
|
-
*
|
|
49
|
-
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
50
|
-
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
51
|
-
*/
|
|
45
|
+
|
|
52
46
|
export declare class BatchWriteCommand extends $Command<BatchWriteCommandInput, BatchWriteCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
53
47
|
readonly input: BatchWriteCommandInput;
|
|
54
48
|
private readonly inputKeyNodes;
|
|
55
49
|
private readonly outputKeyNodes;
|
|
56
50
|
constructor(input: BatchWriteCommandInput);
|
|
57
|
-
|
|
58
|
-
* @internal
|
|
59
|
-
*/
|
|
51
|
+
|
|
60
52
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DynamoDBDocumentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<BatchWriteCommandInput, BatchWriteCommandOutput>;
|
|
61
53
|
}
|
|
@@ -27,20 +27,12 @@ export declare type DeleteCommandOutput = Pick<__DeleteItemCommandOutput, Exclud
|
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
|
-
|
|
31
|
-
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
32
|
-
* DeleteItemCommand operation from {@link https://www.npmjs.com/package/@aws-sdk/client-dynamodb @aws-sdk/client-dynamodb}.
|
|
33
|
-
*
|
|
34
|
-
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
35
|
-
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
36
|
-
*/
|
|
30
|
+
|
|
37
31
|
export declare class DeleteCommand extends $Command<DeleteCommandInput, DeleteCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
38
32
|
readonly input: DeleteCommandInput;
|
|
39
33
|
private readonly inputKeyNodes;
|
|
40
34
|
private readonly outputKeyNodes;
|
|
41
35
|
constructor(input: DeleteCommandInput);
|
|
42
|
-
|
|
43
|
-
* @internal
|
|
44
|
-
*/
|
|
36
|
+
|
|
45
37
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DynamoDBDocumentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteCommandInput, DeleteCommandOutput>;
|
|
46
38
|
}
|
|
@@ -11,20 +11,12 @@ export declare type ExecuteStatementCommandOutput = Pick<__ExecuteStatementComma
|
|
|
11
11
|
[key: string]: NativeAttributeValue;
|
|
12
12
|
}[];
|
|
13
13
|
};
|
|
14
|
-
|
|
15
|
-
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
16
|
-
* ExecuteStatementCommand operation from {@link https://www.npmjs.com/package/@aws-sdk/client-dynamodb @aws-sdk/client-dynamodb}.
|
|
17
|
-
*
|
|
18
|
-
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
19
|
-
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
20
|
-
*/
|
|
14
|
+
|
|
21
15
|
export declare class ExecuteStatementCommand extends $Command<ExecuteStatementCommandInput, ExecuteStatementCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
22
16
|
readonly input: ExecuteStatementCommandInput;
|
|
23
17
|
private readonly inputKeyNodes;
|
|
24
18
|
private readonly outputKeyNodes;
|
|
25
19
|
constructor(input: ExecuteStatementCommandInput);
|
|
26
|
-
|
|
27
|
-
* @internal
|
|
28
|
-
*/
|
|
20
|
+
|
|
29
21
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DynamoDBDocumentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ExecuteStatementCommandInput, ExecuteStatementCommandOutput>;
|
|
30
22
|
}
|
|
@@ -15,20 +15,12 @@ export declare type ExecuteTransactionCommandOutput = Pick<__ExecuteTransactionC
|
|
|
15
15
|
};
|
|
16
16
|
})[];
|
|
17
17
|
};
|
|
18
|
-
|
|
19
|
-
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
20
|
-
* ExecuteTransactionCommand operation from {@link https://www.npmjs.com/package/@aws-sdk/client-dynamodb @aws-sdk/client-dynamodb}.
|
|
21
|
-
*
|
|
22
|
-
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
23
|
-
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
24
|
-
*/
|
|
18
|
+
|
|
25
19
|
export declare class ExecuteTransactionCommand extends $Command<ExecuteTransactionCommandInput, ExecuteTransactionCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
26
20
|
readonly input: ExecuteTransactionCommandInput;
|
|
27
21
|
private readonly inputKeyNodes;
|
|
28
22
|
private readonly outputKeyNodes;
|
|
29
23
|
constructor(input: ExecuteTransactionCommandInput);
|
|
30
|
-
|
|
31
|
-
* @internal
|
|
32
|
-
*/
|
|
24
|
+
|
|
33
25
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DynamoDBDocumentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ExecuteTransactionCommandInput, ExecuteTransactionCommandOutput>;
|
|
34
26
|
}
|
|
@@ -13,20 +13,12 @@ export declare type GetCommandOutput = Pick<__GetItemCommandOutput, Exclude<keyo
|
|
|
13
13
|
[key: string]: NativeAttributeValue;
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
-
|
|
17
|
-
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
18
|
-
* GetItemCommand operation from {@link https://www.npmjs.com/package/@aws-sdk/client-dynamodb @aws-sdk/client-dynamodb}.
|
|
19
|
-
*
|
|
20
|
-
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
21
|
-
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
22
|
-
*/
|
|
16
|
+
|
|
23
17
|
export declare class GetCommand extends $Command<GetCommandInput, GetCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
24
18
|
readonly input: GetCommandInput;
|
|
25
19
|
private readonly inputKeyNodes;
|
|
26
20
|
private readonly outputKeyNodes;
|
|
27
21
|
constructor(input: GetCommandInput);
|
|
28
|
-
|
|
29
|
-
* @internal
|
|
30
|
-
*/
|
|
22
|
+
|
|
31
23
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DynamoDBDocumentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetCommandInput, GetCommandOutput>;
|
|
32
24
|
}
|
|
@@ -27,20 +27,12 @@ export declare type PutCommandOutput = Pick<__PutItemCommandOutput, Exclude<keyo
|
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
|
-
|
|
31
|
-
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
32
|
-
* PutItemCommand operation from {@link https://www.npmjs.com/package/@aws-sdk/client-dynamodb @aws-sdk/client-dynamodb}.
|
|
33
|
-
*
|
|
34
|
-
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
35
|
-
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
36
|
-
*/
|
|
30
|
+
|
|
37
31
|
export declare class PutCommand extends $Command<PutCommandInput, PutCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
38
32
|
readonly input: PutCommandInput;
|
|
39
33
|
private readonly inputKeyNodes;
|
|
40
34
|
private readonly outputKeyNodes;
|
|
41
35
|
constructor(input: PutCommandInput);
|
|
42
|
-
|
|
43
|
-
* @internal
|
|
44
|
-
*/
|
|
36
|
+
|
|
45
37
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DynamoDBDocumentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutCommandInput, PutCommandOutput>;
|
|
46
38
|
}
|
|
@@ -29,20 +29,12 @@ export declare type QueryCommandOutput = Pick<__QueryCommandOutput, Exclude<keyo
|
|
|
29
29
|
[key: string]: NativeAttributeValue;
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
|
-
|
|
33
|
-
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
34
|
-
* QueryCommand operation from {@link https://www.npmjs.com/package/@aws-sdk/client-dynamodb @aws-sdk/client-dynamodb}.
|
|
35
|
-
*
|
|
36
|
-
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
37
|
-
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
38
|
-
*/
|
|
32
|
+
|
|
39
33
|
export declare class QueryCommand extends $Command<QueryCommandInput, QueryCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
40
34
|
readonly input: QueryCommandInput;
|
|
41
35
|
private readonly inputKeyNodes;
|
|
42
36
|
private readonly outputKeyNodes;
|
|
43
37
|
constructor(input: QueryCommandInput);
|
|
44
|
-
|
|
45
|
-
* @internal
|
|
46
|
-
*/
|
|
38
|
+
|
|
47
39
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DynamoDBDocumentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<QueryCommandInput, QueryCommandOutput>;
|
|
48
40
|
}
|
|
@@ -24,20 +24,12 @@ export declare type ScanCommandOutput = Pick<__ScanCommandOutput, Exclude<keyof
|
|
|
24
24
|
[key: string]: NativeAttributeValue;
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
|
-
|
|
28
|
-
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
29
|
-
* ScanCommand operation from {@link https://www.npmjs.com/package/@aws-sdk/client-dynamodb @aws-sdk/client-dynamodb}.
|
|
30
|
-
*
|
|
31
|
-
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
32
|
-
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
33
|
-
*/
|
|
27
|
+
|
|
34
28
|
export declare class ScanCommand extends $Command<ScanCommandInput, ScanCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
35
29
|
readonly input: ScanCommandInput;
|
|
36
30
|
private readonly inputKeyNodes;
|
|
37
31
|
private readonly outputKeyNodes;
|
|
38
32
|
constructor(input: ScanCommandInput);
|
|
39
|
-
|
|
40
|
-
* @internal
|
|
41
|
-
*/
|
|
33
|
+
|
|
42
34
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DynamoDBDocumentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ScanCommandInput, ScanCommandOutput>;
|
|
43
35
|
}
|
|
@@ -19,20 +19,12 @@ export declare type TransactGetCommandOutput = Pick<__TransactGetItemsCommandOut
|
|
|
19
19
|
};
|
|
20
20
|
})[];
|
|
21
21
|
};
|
|
22
|
-
|
|
23
|
-
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
24
|
-
* TransactGetItemsCommand operation from {@link https://www.npmjs.com/package/@aws-sdk/client-dynamodb @aws-sdk/client-dynamodb}.
|
|
25
|
-
*
|
|
26
|
-
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
27
|
-
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
28
|
-
*/
|
|
22
|
+
|
|
29
23
|
export declare class TransactGetCommand extends $Command<TransactGetCommandInput, TransactGetCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
30
24
|
readonly input: TransactGetCommandInput;
|
|
31
25
|
private readonly inputKeyNodes;
|
|
32
26
|
private readonly outputKeyNodes;
|
|
33
27
|
constructor(input: TransactGetCommandInput);
|
|
34
|
-
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
28
|
+
|
|
37
29
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DynamoDBDocumentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<TransactGetCommandInput, TransactGetCommandOutput>;
|
|
38
30
|
}
|
|
@@ -48,20 +48,12 @@ export declare type TransactWriteCommandOutput = Pick<__TransactWriteItemsComman
|
|
|
48
48
|
})[];
|
|
49
49
|
};
|
|
50
50
|
};
|
|
51
|
-
|
|
52
|
-
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
53
|
-
* TransactWriteItemsCommand operation from {@link https://www.npmjs.com/package/@aws-sdk/client-dynamodb @aws-sdk/client-dynamodb}.
|
|
54
|
-
*
|
|
55
|
-
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
56
|
-
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
57
|
-
*/
|
|
51
|
+
|
|
58
52
|
export declare class TransactWriteCommand extends $Command<TransactWriteCommandInput, TransactWriteCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
59
53
|
readonly input: TransactWriteCommandInput;
|
|
60
54
|
private readonly inputKeyNodes;
|
|
61
55
|
private readonly outputKeyNodes;
|
|
62
56
|
constructor(input: TransactWriteCommandInput);
|
|
63
|
-
|
|
64
|
-
* @internal
|
|
65
|
-
*/
|
|
57
|
+
|
|
66
58
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DynamoDBDocumentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<TransactWriteCommandInput, TransactWriteCommandOutput>;
|
|
67
59
|
}
|
|
@@ -32,20 +32,12 @@ export declare type UpdateCommandOutput = Pick<__UpdateItemCommandOutput, Exclud
|
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
|
-
|
|
36
|
-
* Accepts native JavaScript types instead of `AttributeValue`s, and calls
|
|
37
|
-
* UpdateItemCommand operation from {@link https://www.npmjs.com/package/@aws-sdk/client-dynamodb @aws-sdk/client-dynamodb}.
|
|
38
|
-
*
|
|
39
|
-
* JavaScript objects passed in as parameters are marshalled into `AttributeValue` shapes
|
|
40
|
-
* required by Amazon DynamoDB. Responses from DynamoDB are unmarshalled into plain JavaScript objects.
|
|
41
|
-
*/
|
|
35
|
+
|
|
42
36
|
export declare class UpdateCommand extends $Command<UpdateCommandInput, UpdateCommandOutput, DynamoDBDocumentClientResolvedConfig> {
|
|
43
37
|
readonly input: UpdateCommandInput;
|
|
44
38
|
private readonly inputKeyNodes;
|
|
45
39
|
private readonly outputKeyNodes;
|
|
46
40
|
constructor(input: UpdateCommandInput);
|
|
47
|
-
|
|
48
|
-
* @internal
|
|
49
|
-
*/
|
|
41
|
+
|
|
50
42
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DynamoDBDocumentClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateCommandInput, UpdateCommandOutput>;
|
|
51
43
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from "./BatchExecuteStatementCommand";
|
|
2
|
+
export * from "./BatchGetCommand";
|
|
3
|
+
export * from "./BatchWriteCommand";
|
|
4
|
+
export * from "./DeleteCommand";
|
|
5
|
+
export * from "./ExecuteStatementCommand";
|
|
6
|
+
export * from "./ExecuteTransactionCommand";
|
|
7
|
+
export * from "./GetCommand";
|
|
8
|
+
export * from "./PutCommand";
|
|
9
|
+
export * from "./QueryCommand";
|
|
10
|
+
export * from "./ScanCommand";
|
|
11
|
+
export * from "./TransactGetCommand";
|
|
12
|
+
export * from "./TransactWriteCommand";
|
|
13
|
+
export * from "./UpdateCommand";
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
export * from "./commands/BatchExecuteStatementCommand";
|
|
2
|
-
export * from "./commands/BatchGetCommand";
|
|
3
|
-
export * from "./commands/BatchWriteCommand";
|
|
4
|
-
export * from "./commands/DeleteCommand";
|
|
5
|
-
export * from "./commands/ExecuteStatementCommand";
|
|
6
|
-
export * from "./commands/ExecuteTransactionCommand";
|
|
7
|
-
export * from "./commands/GetCommand";
|
|
8
|
-
export * from "./commands/PutCommand";
|
|
9
|
-
export * from "./commands/QueryCommand";
|
|
10
|
-
export * from "./commands/ScanCommand";
|
|
11
|
-
export * from "./commands/TransactGetCommand";
|
|
12
|
-
export * from "./commands/TransactWriteCommand";
|
|
13
|
-
export * from "./commands/UpdateCommand";
|
|
14
|
-
export * from "./DynamoDBDocumentClient";
|
|
15
1
|
export * from "./DynamoDBDocument";
|
|
2
|
+
export * from "./DynamoDBDocumentClient";
|
|
3
|
+
export * from "./commands";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/lib-dynamodb",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.39.0",
|
|
4
4
|
"description": "The document client simplifies working with items in Amazon DynamoDB by abstracting away the notion of attribute values.",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@aws-sdk/util-dynamodb": "3.
|
|
25
|
+
"@aws-sdk/util-dynamodb": "3.39.0",
|
|
26
26
|
"tslib": "^2.3.0"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"@aws-sdk/types": "^3.0.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@aws-sdk/client-dynamodb": "3.
|
|
35
|
-
"@aws-sdk/smithy-client": "3.
|
|
36
|
-
"@aws-sdk/types": "3.
|
|
34
|
+
"@aws-sdk/client-dynamodb": "3.39.0",
|
|
35
|
+
"@aws-sdk/smithy-client": "3.38.0",
|
|
36
|
+
"@aws-sdk/types": "3.38.0",
|
|
37
37
|
"@types/jest": "^26.0.4",
|
|
38
38
|
"@types/node": "^14.11.2",
|
|
39
39
|
"jest": "^26.4.2",
|