@aws-sdk/lib-dynamodb 3.494.0 → 3.496.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/dist-cjs/DynamoDBDocument.js +1 -205
- package/dist-cjs/DynamoDBDocumentClient.js +1 -19
- package/dist-cjs/baseCommand/DynamoDBDocumentClientCommand.js +1 -51
- package/dist-cjs/commands/BatchExecuteStatementCommand.js +1 -41
- package/dist-cjs/commands/BatchGetCommand.js +1 -47
- package/dist-cjs/commands/BatchWriteCommand.js +1 -59
- package/dist-cjs/commands/DeleteCommand.js +1 -40
- package/dist-cjs/commands/ExecuteStatementCommand.js +1 -33
- package/dist-cjs/commands/ExecuteTransactionCommand.js +1 -38
- package/dist-cjs/commands/GetCommand.js +1 -30
- package/dist-cjs/commands/PutCommand.js +1 -40
- package/dist-cjs/commands/QueryCommand.js +1 -44
- package/dist-cjs/commands/ScanCommand.js +1 -39
- package/dist-cjs/commands/TransactGetCommand.js +1 -40
- package/dist-cjs/commands/TransactWriteCommand.js +1 -55
- package/dist-cjs/commands/UpdateCommand.js +1 -45
- package/dist-cjs/commands/index.js +1 -16
- package/dist-cjs/commands/utils.js +1 -72
- package/dist-cjs/index.js +1027 -10
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/QueryPaginator.js +1 -28
- package/dist-cjs/pagination/ScanPaginator.js +1 -28
- package/dist-cjs/pagination/index.js +1 -6
- package/package.json +6 -6
|
@@ -1,205 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DynamoDBDocument = void 0;
|
|
4
|
-
const BatchExecuteStatementCommand_1 = require("./commands/BatchExecuteStatementCommand");
|
|
5
|
-
const BatchGetCommand_1 = require("./commands/BatchGetCommand");
|
|
6
|
-
const BatchWriteCommand_1 = require("./commands/BatchWriteCommand");
|
|
7
|
-
const DeleteCommand_1 = require("./commands/DeleteCommand");
|
|
8
|
-
const ExecuteStatementCommand_1 = require("./commands/ExecuteStatementCommand");
|
|
9
|
-
const ExecuteTransactionCommand_1 = require("./commands/ExecuteTransactionCommand");
|
|
10
|
-
const GetCommand_1 = require("./commands/GetCommand");
|
|
11
|
-
const PutCommand_1 = require("./commands/PutCommand");
|
|
12
|
-
const QueryCommand_1 = require("./commands/QueryCommand");
|
|
13
|
-
const ScanCommand_1 = require("./commands/ScanCommand");
|
|
14
|
-
const TransactGetCommand_1 = require("./commands/TransactGetCommand");
|
|
15
|
-
const TransactWriteCommand_1 = require("./commands/TransactWriteCommand");
|
|
16
|
-
const UpdateCommand_1 = require("./commands/UpdateCommand");
|
|
17
|
-
const DynamoDBDocumentClient_1 = require("./DynamoDBDocumentClient");
|
|
18
|
-
class DynamoDBDocument extends DynamoDBDocumentClient_1.DynamoDBDocumentClient {
|
|
19
|
-
static from(client, translateConfig) {
|
|
20
|
-
return new DynamoDBDocument(client, translateConfig);
|
|
21
|
-
}
|
|
22
|
-
batchExecuteStatement(args, optionsOrCb, cb) {
|
|
23
|
-
const command = new BatchExecuteStatementCommand_1.BatchExecuteStatementCommand(args);
|
|
24
|
-
if (typeof optionsOrCb === "function") {
|
|
25
|
-
this.send(command, optionsOrCb);
|
|
26
|
-
}
|
|
27
|
-
else if (typeof cb === "function") {
|
|
28
|
-
if (typeof optionsOrCb !== "object")
|
|
29
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
30
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
33
|
-
return this.send(command, optionsOrCb);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
batchGet(args, optionsOrCb, cb) {
|
|
37
|
-
const command = new BatchGetCommand_1.BatchGetCommand(args);
|
|
38
|
-
if (typeof optionsOrCb === "function") {
|
|
39
|
-
this.send(command, optionsOrCb);
|
|
40
|
-
}
|
|
41
|
-
else if (typeof cb === "function") {
|
|
42
|
-
if (typeof optionsOrCb !== "object")
|
|
43
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
44
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
47
|
-
return this.send(command, optionsOrCb);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
batchWrite(args, optionsOrCb, cb) {
|
|
51
|
-
const command = new BatchWriteCommand_1.BatchWriteCommand(args);
|
|
52
|
-
if (typeof optionsOrCb === "function") {
|
|
53
|
-
this.send(command, optionsOrCb);
|
|
54
|
-
}
|
|
55
|
-
else if (typeof cb === "function") {
|
|
56
|
-
if (typeof optionsOrCb !== "object")
|
|
57
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
58
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
return this.send(command, optionsOrCb);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
delete(args, optionsOrCb, cb) {
|
|
65
|
-
const command = new DeleteCommand_1.DeleteCommand(args);
|
|
66
|
-
if (typeof optionsOrCb === "function") {
|
|
67
|
-
this.send(command, optionsOrCb);
|
|
68
|
-
}
|
|
69
|
-
else if (typeof cb === "function") {
|
|
70
|
-
if (typeof optionsOrCb !== "object")
|
|
71
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
72
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
73
|
-
}
|
|
74
|
-
else {
|
|
75
|
-
return this.send(command, optionsOrCb);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
executeStatement(args, optionsOrCb, cb) {
|
|
79
|
-
const command = new ExecuteStatementCommand_1.ExecuteStatementCommand(args);
|
|
80
|
-
if (typeof optionsOrCb === "function") {
|
|
81
|
-
this.send(command, optionsOrCb);
|
|
82
|
-
}
|
|
83
|
-
else if (typeof cb === "function") {
|
|
84
|
-
if (typeof optionsOrCb !== "object")
|
|
85
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
86
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
87
|
-
}
|
|
88
|
-
else {
|
|
89
|
-
return this.send(command, optionsOrCb);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
executeTransaction(args, optionsOrCb, cb) {
|
|
93
|
-
const command = new ExecuteTransactionCommand_1.ExecuteTransactionCommand(args);
|
|
94
|
-
if (typeof optionsOrCb === "function") {
|
|
95
|
-
this.send(command, optionsOrCb);
|
|
96
|
-
}
|
|
97
|
-
else if (typeof cb === "function") {
|
|
98
|
-
if (typeof optionsOrCb !== "object")
|
|
99
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
100
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
101
|
-
}
|
|
102
|
-
else {
|
|
103
|
-
return this.send(command, optionsOrCb);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
get(args, optionsOrCb, cb) {
|
|
107
|
-
const command = new GetCommand_1.GetCommand(args);
|
|
108
|
-
if (typeof optionsOrCb === "function") {
|
|
109
|
-
this.send(command, optionsOrCb);
|
|
110
|
-
}
|
|
111
|
-
else if (typeof cb === "function") {
|
|
112
|
-
if (typeof optionsOrCb !== "object")
|
|
113
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
114
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
115
|
-
}
|
|
116
|
-
else {
|
|
117
|
-
return this.send(command, optionsOrCb);
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
put(args, optionsOrCb, cb) {
|
|
121
|
-
const command = new PutCommand_1.PutCommand(args);
|
|
122
|
-
if (typeof optionsOrCb === "function") {
|
|
123
|
-
this.send(command, optionsOrCb);
|
|
124
|
-
}
|
|
125
|
-
else if (typeof cb === "function") {
|
|
126
|
-
if (typeof optionsOrCb !== "object")
|
|
127
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
128
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
129
|
-
}
|
|
130
|
-
else {
|
|
131
|
-
return this.send(command, optionsOrCb);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
query(args, optionsOrCb, cb) {
|
|
135
|
-
const command = new QueryCommand_1.QueryCommand(args);
|
|
136
|
-
if (typeof optionsOrCb === "function") {
|
|
137
|
-
this.send(command, optionsOrCb);
|
|
138
|
-
}
|
|
139
|
-
else if (typeof cb === "function") {
|
|
140
|
-
if (typeof optionsOrCb !== "object")
|
|
141
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
142
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
143
|
-
}
|
|
144
|
-
else {
|
|
145
|
-
return this.send(command, optionsOrCb);
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
scan(args, optionsOrCb, cb) {
|
|
149
|
-
const command = new ScanCommand_1.ScanCommand(args);
|
|
150
|
-
if (typeof optionsOrCb === "function") {
|
|
151
|
-
this.send(command, optionsOrCb);
|
|
152
|
-
}
|
|
153
|
-
else if (typeof cb === "function") {
|
|
154
|
-
if (typeof optionsOrCb !== "object")
|
|
155
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
156
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
157
|
-
}
|
|
158
|
-
else {
|
|
159
|
-
return this.send(command, optionsOrCb);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
transactGet(args, optionsOrCb, cb) {
|
|
163
|
-
const command = new TransactGetCommand_1.TransactGetCommand(args);
|
|
164
|
-
if (typeof optionsOrCb === "function") {
|
|
165
|
-
this.send(command, optionsOrCb);
|
|
166
|
-
}
|
|
167
|
-
else if (typeof cb === "function") {
|
|
168
|
-
if (typeof optionsOrCb !== "object")
|
|
169
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
170
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
171
|
-
}
|
|
172
|
-
else {
|
|
173
|
-
return this.send(command, optionsOrCb);
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
transactWrite(args, optionsOrCb, cb) {
|
|
177
|
-
const command = new TransactWriteCommand_1.TransactWriteCommand(args);
|
|
178
|
-
if (typeof optionsOrCb === "function") {
|
|
179
|
-
this.send(command, optionsOrCb);
|
|
180
|
-
}
|
|
181
|
-
else if (typeof cb === "function") {
|
|
182
|
-
if (typeof optionsOrCb !== "object")
|
|
183
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
184
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
185
|
-
}
|
|
186
|
-
else {
|
|
187
|
-
return this.send(command, optionsOrCb);
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
update(args, optionsOrCb, cb) {
|
|
191
|
-
const command = new UpdateCommand_1.UpdateCommand(args);
|
|
192
|
-
if (typeof optionsOrCb === "function") {
|
|
193
|
-
this.send(command, optionsOrCb);
|
|
194
|
-
}
|
|
195
|
-
else if (typeof cb === "function") {
|
|
196
|
-
if (typeof optionsOrCb !== "object")
|
|
197
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
198
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
199
|
-
}
|
|
200
|
-
else {
|
|
201
|
-
return this.send(command, optionsOrCb);
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
exports.DynamoDBDocument = DynamoDBDocument;
|
|
1
|
+
module.exports = require("./index.js");
|
|
@@ -1,19 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DynamoDBDocumentClient = exports.__Client = void 0;
|
|
4
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
-
Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } });
|
|
6
|
-
class DynamoDBDocumentClient extends smithy_client_1.Client {
|
|
7
|
-
constructor(client, translateConfig) {
|
|
8
|
-
super(client.config);
|
|
9
|
-
this.config = client.config;
|
|
10
|
-
this.config.translateConfig = translateConfig;
|
|
11
|
-
this.middlewareStack = client.middlewareStack;
|
|
12
|
-
}
|
|
13
|
-
static from(client, translateConfig) {
|
|
14
|
-
return new DynamoDBDocumentClient(client, translateConfig);
|
|
15
|
-
}
|
|
16
|
-
destroy() {
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.DynamoDBDocumentClient = DynamoDBDocumentClient;
|
|
1
|
+
module.exports = require("./index.js");
|
|
@@ -1,51 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DynamoDBDocumentClientCommand = void 0;
|
|
4
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
-
const utils_1 = require("../commands/utils");
|
|
6
|
-
class DynamoDBDocumentClientCommand extends smithy_client_1.Command {
|
|
7
|
-
addMarshallingMiddleware(configuration) {
|
|
8
|
-
var _a, _b;
|
|
9
|
-
const { marshallOptions = {}, unmarshallOptions = {} } = configuration.translateConfig || {};
|
|
10
|
-
marshallOptions.convertTopLevelContainer = (_a = marshallOptions.convertTopLevelContainer) !== null && _a !== void 0 ? _a : true;
|
|
11
|
-
unmarshallOptions.convertWithoutMapWrapper = (_b = unmarshallOptions.convertWithoutMapWrapper) !== null && _b !== void 0 ? _b : true;
|
|
12
|
-
this.clientCommand.middlewareStack.addRelativeTo((next, context) => async (args) => {
|
|
13
|
-
args.input = (0, utils_1.marshallInput)(this.input, this.inputKeyNodes, marshallOptions);
|
|
14
|
-
context.dynamoDbDocumentClientOptions =
|
|
15
|
-
context.dynamoDbDocumentClientOptions || DynamoDBDocumentClientCommand.defaultLogFilterOverrides;
|
|
16
|
-
const input = args.input;
|
|
17
|
-
context.dynamoDbDocumentClientOptions.overrideInputFilterSensitiveLog = () => {
|
|
18
|
-
var _a;
|
|
19
|
-
return (_a = context.inputFilterSensitiveLog) === null || _a === void 0 ? void 0 : _a.call(context, input);
|
|
20
|
-
};
|
|
21
|
-
return next(args);
|
|
22
|
-
}, {
|
|
23
|
-
name: "DocumentMarshall",
|
|
24
|
-
relation: "before",
|
|
25
|
-
toMiddleware: "serializerMiddleware",
|
|
26
|
-
override: true,
|
|
27
|
-
});
|
|
28
|
-
this.clientCommand.middlewareStack.addRelativeTo((next, context) => async (args) => {
|
|
29
|
-
const deserialized = await next(args);
|
|
30
|
-
const output = deserialized.output;
|
|
31
|
-
context.dynamoDbDocumentClientOptions =
|
|
32
|
-
context.dynamoDbDocumentClientOptions || DynamoDBDocumentClientCommand.defaultLogFilterOverrides;
|
|
33
|
-
context.dynamoDbDocumentClientOptions.overrideOutputFilterSensitiveLog = () => {
|
|
34
|
-
var _a;
|
|
35
|
-
return (_a = context.outputFilterSensitiveLog) === null || _a === void 0 ? void 0 : _a.call(context, output);
|
|
36
|
-
};
|
|
37
|
-
deserialized.output = (0, utils_1.unmarshallOutput)(deserialized.output, this.outputKeyNodes, unmarshallOptions);
|
|
38
|
-
return deserialized;
|
|
39
|
-
}, {
|
|
40
|
-
name: "DocumentUnmarshall",
|
|
41
|
-
relation: "before",
|
|
42
|
-
toMiddleware: "deserializerMiddleware",
|
|
43
|
-
override: true,
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
exports.DynamoDBDocumentClientCommand = DynamoDBDocumentClientCommand;
|
|
48
|
-
DynamoDBDocumentClientCommand.defaultLogFilterOverrides = {
|
|
49
|
-
overrideInputFilterSensitiveLog(...args) { },
|
|
50
|
-
overrideOutputFilterSensitiveLog(...args) { },
|
|
51
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,41 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BatchExecuteStatementCommand = exports.$Command = exports.DynamoDBDocumentClientCommand = void 0;
|
|
4
|
-
const client_dynamodb_1 = require("@aws-sdk/client-dynamodb");
|
|
5
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
|
-
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
7
|
-
const DynamoDBDocumentClientCommand_1 = require("../baseCommand/DynamoDBDocumentClientCommand");
|
|
8
|
-
Object.defineProperty(exports, "DynamoDBDocumentClientCommand", { enumerable: true, get: function () { return DynamoDBDocumentClientCommand_1.DynamoDBDocumentClientCommand; } });
|
|
9
|
-
const utils_1 = require("../commands/utils");
|
|
10
|
-
class BatchExecuteStatementCommand extends DynamoDBDocumentClientCommand_1.DynamoDBDocumentClientCommand {
|
|
11
|
-
constructor(input) {
|
|
12
|
-
super();
|
|
13
|
-
this.input = input;
|
|
14
|
-
this.inputKeyNodes = {
|
|
15
|
-
Statements: {
|
|
16
|
-
"*": {
|
|
17
|
-
Parameters: utils_1.ALL_MEMBERS,
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
};
|
|
21
|
-
this.outputKeyNodes = {
|
|
22
|
-
Responses: {
|
|
23
|
-
"*": {
|
|
24
|
-
Error: {
|
|
25
|
-
Item: utils_1.ALL_VALUES,
|
|
26
|
-
},
|
|
27
|
-
Item: utils_1.ALL_VALUES,
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
this.clientCommand = new client_dynamodb_1.BatchExecuteStatementCommand(this.input);
|
|
32
|
-
this.middlewareStack = this.clientCommand.middlewareStack;
|
|
33
|
-
}
|
|
34
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
35
|
-
this.addMarshallingMiddleware(configuration);
|
|
36
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
37
|
-
const handler = this.clientCommand.resolveMiddleware(stack, configuration, options);
|
|
38
|
-
return async () => handler(this.clientCommand);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
exports.BatchExecuteStatementCommand = BatchExecuteStatementCommand;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,47 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BatchGetCommand = exports.$Command = exports.DynamoDBDocumentClientCommand = void 0;
|
|
4
|
-
const client_dynamodb_1 = require("@aws-sdk/client-dynamodb");
|
|
5
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
|
-
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
7
|
-
const DynamoDBDocumentClientCommand_1 = require("../baseCommand/DynamoDBDocumentClientCommand");
|
|
8
|
-
Object.defineProperty(exports, "DynamoDBDocumentClientCommand", { enumerable: true, get: function () { return DynamoDBDocumentClientCommand_1.DynamoDBDocumentClientCommand; } });
|
|
9
|
-
const utils_1 = require("../commands/utils");
|
|
10
|
-
class BatchGetCommand extends DynamoDBDocumentClientCommand_1.DynamoDBDocumentClientCommand {
|
|
11
|
-
constructor(input) {
|
|
12
|
-
super();
|
|
13
|
-
this.input = input;
|
|
14
|
-
this.inputKeyNodes = {
|
|
15
|
-
RequestItems: {
|
|
16
|
-
"*": {
|
|
17
|
-
Keys: {
|
|
18
|
-
"*": utils_1.ALL_VALUES,
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
};
|
|
23
|
-
this.outputKeyNodes = {
|
|
24
|
-
Responses: {
|
|
25
|
-
"*": {
|
|
26
|
-
"*": utils_1.ALL_VALUES,
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
UnprocessedKeys: {
|
|
30
|
-
"*": {
|
|
31
|
-
Keys: {
|
|
32
|
-
"*": utils_1.ALL_VALUES,
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
};
|
|
37
|
-
this.clientCommand = new client_dynamodb_1.BatchGetItemCommand(this.input);
|
|
38
|
-
this.middlewareStack = this.clientCommand.middlewareStack;
|
|
39
|
-
}
|
|
40
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
41
|
-
this.addMarshallingMiddleware(configuration);
|
|
42
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
43
|
-
const handler = this.clientCommand.resolveMiddleware(stack, configuration, options);
|
|
44
|
-
return async () => handler(this.clientCommand);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
exports.BatchGetCommand = BatchGetCommand;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,59 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BatchWriteCommand = exports.$Command = exports.DynamoDBDocumentClientCommand = void 0;
|
|
4
|
-
const client_dynamodb_1 = require("@aws-sdk/client-dynamodb");
|
|
5
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
|
-
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
7
|
-
const DynamoDBDocumentClientCommand_1 = require("../baseCommand/DynamoDBDocumentClientCommand");
|
|
8
|
-
Object.defineProperty(exports, "DynamoDBDocumentClientCommand", { enumerable: true, get: function () { return DynamoDBDocumentClientCommand_1.DynamoDBDocumentClientCommand; } });
|
|
9
|
-
const utils_1 = require("../commands/utils");
|
|
10
|
-
class BatchWriteCommand extends DynamoDBDocumentClientCommand_1.DynamoDBDocumentClientCommand {
|
|
11
|
-
constructor(input) {
|
|
12
|
-
super();
|
|
13
|
-
this.input = input;
|
|
14
|
-
this.inputKeyNodes = {
|
|
15
|
-
RequestItems: {
|
|
16
|
-
"*": {
|
|
17
|
-
"*": {
|
|
18
|
-
PutRequest: {
|
|
19
|
-
Item: utils_1.ALL_VALUES,
|
|
20
|
-
},
|
|
21
|
-
DeleteRequest: {
|
|
22
|
-
Key: utils_1.ALL_VALUES,
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
this.outputKeyNodes = {
|
|
29
|
-
UnprocessedItems: {
|
|
30
|
-
"*": {
|
|
31
|
-
"*": {
|
|
32
|
-
PutRequest: {
|
|
33
|
-
Item: utils_1.ALL_VALUES,
|
|
34
|
-
},
|
|
35
|
-
DeleteRequest: {
|
|
36
|
-
Key: utils_1.ALL_VALUES,
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
ItemCollectionMetrics: {
|
|
42
|
-
"*": {
|
|
43
|
-
"*": {
|
|
44
|
-
ItemCollectionKey: utils_1.ALL_VALUES,
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
};
|
|
49
|
-
this.clientCommand = new client_dynamodb_1.BatchWriteItemCommand(this.input);
|
|
50
|
-
this.middlewareStack = this.clientCommand.middlewareStack;
|
|
51
|
-
}
|
|
52
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
53
|
-
this.addMarshallingMiddleware(configuration);
|
|
54
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
55
|
-
const handler = this.clientCommand.resolveMiddleware(stack, configuration, options);
|
|
56
|
-
return async () => handler(this.clientCommand);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
exports.BatchWriteCommand = BatchWriteCommand;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,40 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeleteCommand = exports.$Command = exports.DynamoDBDocumentClientCommand = void 0;
|
|
4
|
-
const client_dynamodb_1 = require("@aws-sdk/client-dynamodb");
|
|
5
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
|
-
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
7
|
-
const DynamoDBDocumentClientCommand_1 = require("../baseCommand/DynamoDBDocumentClientCommand");
|
|
8
|
-
Object.defineProperty(exports, "DynamoDBDocumentClientCommand", { enumerable: true, get: function () { return DynamoDBDocumentClientCommand_1.DynamoDBDocumentClientCommand; } });
|
|
9
|
-
const utils_1 = require("../commands/utils");
|
|
10
|
-
class DeleteCommand extends DynamoDBDocumentClientCommand_1.DynamoDBDocumentClientCommand {
|
|
11
|
-
constructor(input) {
|
|
12
|
-
super();
|
|
13
|
-
this.input = input;
|
|
14
|
-
this.inputKeyNodes = {
|
|
15
|
-
Key: utils_1.ALL_VALUES,
|
|
16
|
-
Expected: {
|
|
17
|
-
"*": {
|
|
18
|
-
Value: utils_1.SELF,
|
|
19
|
-
AttributeValueList: utils_1.ALL_MEMBERS,
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
ExpressionAttributeValues: utils_1.ALL_VALUES,
|
|
23
|
-
};
|
|
24
|
-
this.outputKeyNodes = {
|
|
25
|
-
Attributes: utils_1.ALL_VALUES,
|
|
26
|
-
ItemCollectionMetrics: {
|
|
27
|
-
ItemCollectionKey: utils_1.ALL_VALUES,
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
this.clientCommand = new client_dynamodb_1.DeleteItemCommand(this.input);
|
|
31
|
-
this.middlewareStack = this.clientCommand.middlewareStack;
|
|
32
|
-
}
|
|
33
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
34
|
-
this.addMarshallingMiddleware(configuration);
|
|
35
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
36
|
-
const handler = this.clientCommand.resolveMiddleware(stack, configuration, options);
|
|
37
|
-
return async () => handler(this.clientCommand);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
exports.DeleteCommand = DeleteCommand;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,33 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ExecuteStatementCommand = exports.$Command = exports.DynamoDBDocumentClientCommand = void 0;
|
|
4
|
-
const client_dynamodb_1 = require("@aws-sdk/client-dynamodb");
|
|
5
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
|
-
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
7
|
-
const DynamoDBDocumentClientCommand_1 = require("../baseCommand/DynamoDBDocumentClientCommand");
|
|
8
|
-
Object.defineProperty(exports, "DynamoDBDocumentClientCommand", { enumerable: true, get: function () { return DynamoDBDocumentClientCommand_1.DynamoDBDocumentClientCommand; } });
|
|
9
|
-
const utils_1 = require("../commands/utils");
|
|
10
|
-
class ExecuteStatementCommand extends DynamoDBDocumentClientCommand_1.DynamoDBDocumentClientCommand {
|
|
11
|
-
constructor(input) {
|
|
12
|
-
super();
|
|
13
|
-
this.input = input;
|
|
14
|
-
this.inputKeyNodes = {
|
|
15
|
-
Parameters: utils_1.ALL_MEMBERS,
|
|
16
|
-
};
|
|
17
|
-
this.outputKeyNodes = {
|
|
18
|
-
Items: {
|
|
19
|
-
"*": utils_1.ALL_VALUES,
|
|
20
|
-
},
|
|
21
|
-
LastEvaluatedKey: utils_1.ALL_VALUES,
|
|
22
|
-
};
|
|
23
|
-
this.clientCommand = new client_dynamodb_1.ExecuteStatementCommand(this.input);
|
|
24
|
-
this.middlewareStack = this.clientCommand.middlewareStack;
|
|
25
|
-
}
|
|
26
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
27
|
-
this.addMarshallingMiddleware(configuration);
|
|
28
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
29
|
-
const handler = this.clientCommand.resolveMiddleware(stack, configuration, options);
|
|
30
|
-
return async () => handler(this.clientCommand);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
exports.ExecuteStatementCommand = ExecuteStatementCommand;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,38 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ExecuteTransactionCommand = exports.$Command = exports.DynamoDBDocumentClientCommand = void 0;
|
|
4
|
-
const client_dynamodb_1 = require("@aws-sdk/client-dynamodb");
|
|
5
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
|
-
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
7
|
-
const DynamoDBDocumentClientCommand_1 = require("../baseCommand/DynamoDBDocumentClientCommand");
|
|
8
|
-
Object.defineProperty(exports, "DynamoDBDocumentClientCommand", { enumerable: true, get: function () { return DynamoDBDocumentClientCommand_1.DynamoDBDocumentClientCommand; } });
|
|
9
|
-
const utils_1 = require("../commands/utils");
|
|
10
|
-
class ExecuteTransactionCommand extends DynamoDBDocumentClientCommand_1.DynamoDBDocumentClientCommand {
|
|
11
|
-
constructor(input) {
|
|
12
|
-
super();
|
|
13
|
-
this.input = input;
|
|
14
|
-
this.inputKeyNodes = {
|
|
15
|
-
TransactStatements: {
|
|
16
|
-
"*": {
|
|
17
|
-
Parameters: utils_1.ALL_MEMBERS,
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
};
|
|
21
|
-
this.outputKeyNodes = {
|
|
22
|
-
Responses: {
|
|
23
|
-
"*": {
|
|
24
|
-
Item: utils_1.ALL_VALUES,
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
this.clientCommand = new client_dynamodb_1.ExecuteTransactionCommand(this.input);
|
|
29
|
-
this.middlewareStack = this.clientCommand.middlewareStack;
|
|
30
|
-
}
|
|
31
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
32
|
-
this.addMarshallingMiddleware(configuration);
|
|
33
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
34
|
-
const handler = this.clientCommand.resolveMiddleware(stack, configuration, options);
|
|
35
|
-
return async () => handler(this.clientCommand);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
exports.ExecuteTransactionCommand = ExecuteTransactionCommand;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,30 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetCommand = exports.$Command = exports.DynamoDBDocumentClientCommand = void 0;
|
|
4
|
-
const client_dynamodb_1 = require("@aws-sdk/client-dynamodb");
|
|
5
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
|
-
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
7
|
-
const DynamoDBDocumentClientCommand_1 = require("../baseCommand/DynamoDBDocumentClientCommand");
|
|
8
|
-
Object.defineProperty(exports, "DynamoDBDocumentClientCommand", { enumerable: true, get: function () { return DynamoDBDocumentClientCommand_1.DynamoDBDocumentClientCommand; } });
|
|
9
|
-
const utils_1 = require("../commands/utils");
|
|
10
|
-
class GetCommand extends DynamoDBDocumentClientCommand_1.DynamoDBDocumentClientCommand {
|
|
11
|
-
constructor(input) {
|
|
12
|
-
super();
|
|
13
|
-
this.input = input;
|
|
14
|
-
this.inputKeyNodes = {
|
|
15
|
-
Key: utils_1.ALL_VALUES,
|
|
16
|
-
};
|
|
17
|
-
this.outputKeyNodes = {
|
|
18
|
-
Item: utils_1.ALL_VALUES,
|
|
19
|
-
};
|
|
20
|
-
this.clientCommand = new client_dynamodb_1.GetItemCommand(this.input);
|
|
21
|
-
this.middlewareStack = this.clientCommand.middlewareStack;
|
|
22
|
-
}
|
|
23
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
-
this.addMarshallingMiddleware(configuration);
|
|
25
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
-
const handler = this.clientCommand.resolveMiddleware(stack, configuration, options);
|
|
27
|
-
return async () => handler(this.clientCommand);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
exports.GetCommand = GetCommand;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,40 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PutCommand = exports.$Command = exports.DynamoDBDocumentClientCommand = void 0;
|
|
4
|
-
const client_dynamodb_1 = require("@aws-sdk/client-dynamodb");
|
|
5
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
|
-
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
7
|
-
const DynamoDBDocumentClientCommand_1 = require("../baseCommand/DynamoDBDocumentClientCommand");
|
|
8
|
-
Object.defineProperty(exports, "DynamoDBDocumentClientCommand", { enumerable: true, get: function () { return DynamoDBDocumentClientCommand_1.DynamoDBDocumentClientCommand; } });
|
|
9
|
-
const utils_1 = require("../commands/utils");
|
|
10
|
-
class PutCommand extends DynamoDBDocumentClientCommand_1.DynamoDBDocumentClientCommand {
|
|
11
|
-
constructor(input) {
|
|
12
|
-
super();
|
|
13
|
-
this.input = input;
|
|
14
|
-
this.inputKeyNodes = {
|
|
15
|
-
Item: utils_1.ALL_VALUES,
|
|
16
|
-
Expected: {
|
|
17
|
-
"*": {
|
|
18
|
-
Value: utils_1.SELF,
|
|
19
|
-
AttributeValueList: utils_1.ALL_MEMBERS,
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
ExpressionAttributeValues: utils_1.ALL_VALUES,
|
|
23
|
-
};
|
|
24
|
-
this.outputKeyNodes = {
|
|
25
|
-
Attributes: utils_1.ALL_VALUES,
|
|
26
|
-
ItemCollectionMetrics: {
|
|
27
|
-
ItemCollectionKey: utils_1.ALL_VALUES,
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
this.clientCommand = new client_dynamodb_1.PutItemCommand(this.input);
|
|
31
|
-
this.middlewareStack = this.clientCommand.middlewareStack;
|
|
32
|
-
}
|
|
33
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
34
|
-
this.addMarshallingMiddleware(configuration);
|
|
35
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
36
|
-
const handler = this.clientCommand.resolveMiddleware(stack, configuration, options);
|
|
37
|
-
return async () => handler(this.clientCommand);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
exports.PutCommand = PutCommand;
|
|
1
|
+
module.exports = require("../index.js");
|