@aws-sdk/lib-dynamodb 3.716.0 → 3.723.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/index.js +381 -341
- package/dist-es/DynamoDBDocumentClient.js +1 -0
- package/dist-es/baseCommand/DynamoDBDocumentClientCommand.js +4 -4
- package/dist-es/commands/BatchExecuteStatementCommand.js +19 -16
- package/dist-es/commands/BatchGetCommand.js +24 -21
- package/dist-es/commands/BatchWriteCommand.js +30 -27
- package/dist-es/commands/DeleteCommand.js +19 -16
- package/dist-es/commands/ExecuteStatementCommand.js +12 -9
- package/dist-es/commands/ExecuteTransactionCommand.js +17 -14
- package/dist-es/commands/GetCommand.js +9 -6
- package/dist-es/commands/PutCommand.js +19 -16
- package/dist-es/commands/QueryCommand.js +23 -20
- package/dist-es/commands/ScanCommand.js +18 -15
- package/dist-es/commands/TransactGetCommand.js +19 -16
- package/dist-es/commands/TransactWriteCommand.js +32 -29
- package/dist-es/commands/UpdateCommand.js +24 -21
- package/package.json +11 -11
package/dist-cjs/index.js
CHANGED
|
@@ -137,7 +137,16 @@ var unmarshallOutput = /* @__PURE__ */ __name((obj, keyNodes, options) => {
|
|
|
137
137
|
}, "unmarshallOutput");
|
|
138
138
|
|
|
139
139
|
// src/baseCommand/DynamoDBDocumentClientCommand.ts
|
|
140
|
-
var
|
|
140
|
+
var DynamoDBDocumentClientCommand = class _DynamoDBDocumentClientCommand extends import_smithy_client.Command {
|
|
141
|
+
static {
|
|
142
|
+
__name(this, "DynamoDBDocumentClientCommand");
|
|
143
|
+
}
|
|
144
|
+
static defaultLogFilterOverrides = {
|
|
145
|
+
overrideInputFilterSensitiveLog(...args) {
|
|
146
|
+
},
|
|
147
|
+
overrideOutputFilterSensitiveLog(...args) {
|
|
148
|
+
}
|
|
149
|
+
};
|
|
141
150
|
addMarshallingMiddleware(configuration) {
|
|
142
151
|
const { marshallOptions: marshallOptions3 = {}, unmarshallOptions: unmarshallOptions3 = {} } = configuration.translateConfig || {};
|
|
143
152
|
marshallOptions3.convertTopLevelContainer = marshallOptions3.convertTopLevelContainer ?? true;
|
|
@@ -149,8 +158,7 @@ var _DynamoDBDocumentClientCommand = class _DynamoDBDocumentClientCommand extend
|
|
|
149
158
|
context.dynamoDbDocumentClientOptions = context.dynamoDbDocumentClientOptions || _DynamoDBDocumentClientCommand.defaultLogFilterOverrides;
|
|
150
159
|
const input = args.input;
|
|
151
160
|
context.dynamoDbDocumentClientOptions.overrideInputFilterSensitiveLog = () => {
|
|
152
|
-
|
|
153
|
-
return (_a = context.inputFilterSensitiveLog) == null ? void 0 : _a.call(context, input);
|
|
161
|
+
return context.inputFilterSensitiveLog?.(input);
|
|
154
162
|
};
|
|
155
163
|
return next(args);
|
|
156
164
|
},
|
|
@@ -167,8 +175,7 @@ var _DynamoDBDocumentClientCommand = class _DynamoDBDocumentClientCommand extend
|
|
|
167
175
|
const output = deserialized.output;
|
|
168
176
|
context.dynamoDbDocumentClientOptions = context.dynamoDbDocumentClientOptions || _DynamoDBDocumentClientCommand.defaultLogFilterOverrides;
|
|
169
177
|
context.dynamoDbDocumentClientOptions.overrideOutputFilterSensitiveLog = () => {
|
|
170
|
-
|
|
171
|
-
return (_a = context.outputFilterSensitiveLog) == null ? void 0 : _a.call(context, output);
|
|
178
|
+
return context.outputFilterSensitiveLog?.(output);
|
|
172
179
|
};
|
|
173
180
|
deserialized.output = unmarshallOutput(deserialized.output, this.outputKeyNodes, unmarshallOptions3);
|
|
174
181
|
return deserialized;
|
|
@@ -182,43 +189,40 @@ var _DynamoDBDocumentClientCommand = class _DynamoDBDocumentClientCommand extend
|
|
|
182
189
|
);
|
|
183
190
|
}
|
|
184
191
|
};
|
|
185
|
-
__name(_DynamoDBDocumentClientCommand, "DynamoDBDocumentClientCommand");
|
|
186
|
-
_DynamoDBDocumentClientCommand.defaultLogFilterOverrides = {
|
|
187
|
-
overrideInputFilterSensitiveLog(...args) {
|
|
188
|
-
},
|
|
189
|
-
overrideOutputFilterSensitiveLog(...args) {
|
|
190
|
-
}
|
|
191
|
-
};
|
|
192
|
-
var DynamoDBDocumentClientCommand = _DynamoDBDocumentClientCommand;
|
|
193
192
|
|
|
194
193
|
// src/commands/BatchExecuteStatementCommand.ts
|
|
195
|
-
var
|
|
194
|
+
var BatchExecuteStatementCommand = class extends DynamoDBDocumentClientCommand {
|
|
196
195
|
constructor(input) {
|
|
197
196
|
super();
|
|
198
197
|
this.input = input;
|
|
199
|
-
this.
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
198
|
+
this.clientCommand = new import_client_dynamodb.BatchExecuteStatementCommand(this.input);
|
|
199
|
+
this.middlewareStack = this.clientCommand.middlewareStack;
|
|
200
|
+
}
|
|
201
|
+
static {
|
|
202
|
+
__name(this, "BatchExecuteStatementCommand");
|
|
203
|
+
}
|
|
204
|
+
inputKeyNodes = {
|
|
205
|
+
Statements: {
|
|
206
|
+
"*": {
|
|
207
|
+
Parameters: ALL_MEMBERS
|
|
208
|
+
// set/list of AttributeValue
|
|
205
209
|
}
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
// map with AttributeValue
|
|
213
|
-
},
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
outputKeyNodes = {
|
|
213
|
+
Responses: {
|
|
214
|
+
"*": {
|
|
215
|
+
Error: {
|
|
214
216
|
Item: ALL_VALUES
|
|
215
217
|
// map with AttributeValue
|
|
216
|
-
}
|
|
218
|
+
},
|
|
219
|
+
Item: ALL_VALUES
|
|
220
|
+
// map with AttributeValue
|
|
217
221
|
}
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
clientCommand;
|
|
225
|
+
middlewareStack;
|
|
222
226
|
/**
|
|
223
227
|
* @internal
|
|
224
228
|
*/
|
|
@@ -229,45 +233,48 @@ var _BatchExecuteStatementCommand = class _BatchExecuteStatementCommand extends
|
|
|
229
233
|
return async () => handler(this.clientCommand);
|
|
230
234
|
}
|
|
231
235
|
};
|
|
232
|
-
__name(_BatchExecuteStatementCommand, "BatchExecuteStatementCommand");
|
|
233
|
-
var BatchExecuteStatementCommand = _BatchExecuteStatementCommand;
|
|
234
236
|
|
|
235
237
|
// src/commands/BatchGetCommand.ts
|
|
236
238
|
|
|
237
239
|
|
|
238
|
-
var
|
|
240
|
+
var BatchGetCommand = class extends DynamoDBDocumentClientCommand {
|
|
239
241
|
constructor(input) {
|
|
240
242
|
super();
|
|
241
243
|
this.input = input;
|
|
242
|
-
this.
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
244
|
+
this.clientCommand = new import_client_dynamodb.BatchGetItemCommand(this.input);
|
|
245
|
+
this.middlewareStack = this.clientCommand.middlewareStack;
|
|
246
|
+
}
|
|
247
|
+
static {
|
|
248
|
+
__name(this, "BatchGetCommand");
|
|
249
|
+
}
|
|
250
|
+
inputKeyNodes = {
|
|
251
|
+
RequestItems: {
|
|
252
|
+
"*": {
|
|
253
|
+
Keys: {
|
|
254
|
+
"*": ALL_VALUES
|
|
255
|
+
// map with AttributeValue
|
|
249
256
|
}
|
|
250
257
|
}
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
outputKeyNodes = {
|
|
261
|
+
Responses: {
|
|
262
|
+
"*": {
|
|
263
|
+
"*": ALL_VALUES
|
|
264
|
+
// map with AttributeValue
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
UnprocessedKeys: {
|
|
268
|
+
"*": {
|
|
269
|
+
Keys: {
|
|
255
270
|
"*": ALL_VALUES
|
|
256
271
|
// map with AttributeValue
|
|
257
272
|
}
|
|
258
|
-
},
|
|
259
|
-
UnprocessedKeys: {
|
|
260
|
-
"*": {
|
|
261
|
-
Keys: {
|
|
262
|
-
"*": ALL_VALUES
|
|
263
|
-
// map with AttributeValue
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
273
|
}
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
274
|
+
}
|
|
275
|
+
};
|
|
276
|
+
clientCommand;
|
|
277
|
+
middlewareStack;
|
|
271
278
|
/**
|
|
272
279
|
* @internal
|
|
273
280
|
*/
|
|
@@ -278,59 +285,62 @@ var _BatchGetCommand = class _BatchGetCommand extends DynamoDBDocumentClientComm
|
|
|
278
285
|
return async () => handler(this.clientCommand);
|
|
279
286
|
}
|
|
280
287
|
};
|
|
281
|
-
__name(_BatchGetCommand, "BatchGetCommand");
|
|
282
|
-
var BatchGetCommand = _BatchGetCommand;
|
|
283
288
|
|
|
284
289
|
// src/commands/BatchWriteCommand.ts
|
|
285
290
|
|
|
286
291
|
|
|
287
|
-
var
|
|
292
|
+
var BatchWriteCommand = class extends DynamoDBDocumentClientCommand {
|
|
288
293
|
constructor(input) {
|
|
289
294
|
super();
|
|
290
295
|
this.input = input;
|
|
291
|
-
this.
|
|
292
|
-
|
|
296
|
+
this.clientCommand = new import_client_dynamodb.BatchWriteItemCommand(this.input);
|
|
297
|
+
this.middlewareStack = this.clientCommand.middlewareStack;
|
|
298
|
+
}
|
|
299
|
+
static {
|
|
300
|
+
__name(this, "BatchWriteCommand");
|
|
301
|
+
}
|
|
302
|
+
inputKeyNodes = {
|
|
303
|
+
RequestItems: {
|
|
304
|
+
"*": {
|
|
293
305
|
"*": {
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
// map with AttributeValue
|
|
302
|
-
}
|
|
306
|
+
PutRequest: {
|
|
307
|
+
Item: ALL_VALUES
|
|
308
|
+
// map with AttributeValue
|
|
309
|
+
},
|
|
310
|
+
DeleteRequest: {
|
|
311
|
+
Key: ALL_VALUES
|
|
312
|
+
// map with AttributeValue
|
|
303
313
|
}
|
|
304
314
|
}
|
|
305
315
|
}
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
|
|
316
|
+
}
|
|
317
|
+
};
|
|
318
|
+
outputKeyNodes = {
|
|
319
|
+
UnprocessedItems: {
|
|
320
|
+
"*": {
|
|
309
321
|
"*": {
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
// map with AttributeValue
|
|
318
|
-
}
|
|
322
|
+
PutRequest: {
|
|
323
|
+
Item: ALL_VALUES
|
|
324
|
+
// map with AttributeValue
|
|
325
|
+
},
|
|
326
|
+
DeleteRequest: {
|
|
327
|
+
Key: ALL_VALUES
|
|
328
|
+
// map with AttributeValue
|
|
319
329
|
}
|
|
320
330
|
}
|
|
321
|
-
}
|
|
322
|
-
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
ItemCollectionMetrics: {
|
|
334
|
+
"*": {
|
|
323
335
|
"*": {
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
// map with AttributeValue
|
|
327
|
-
}
|
|
336
|
+
ItemCollectionKey: ALL_VALUES
|
|
337
|
+
// map with AttributeValue
|
|
328
338
|
}
|
|
329
339
|
}
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
340
|
+
}
|
|
341
|
+
};
|
|
342
|
+
clientCommand;
|
|
343
|
+
middlewareStack;
|
|
334
344
|
/**
|
|
335
345
|
* @internal
|
|
336
346
|
*/
|
|
@@ -341,40 +351,43 @@ var _BatchWriteCommand = class _BatchWriteCommand extends DynamoDBDocumentClient
|
|
|
341
351
|
return async () => handler(this.clientCommand);
|
|
342
352
|
}
|
|
343
353
|
};
|
|
344
|
-
__name(_BatchWriteCommand, "BatchWriteCommand");
|
|
345
|
-
var BatchWriteCommand = _BatchWriteCommand;
|
|
346
354
|
|
|
347
355
|
// src/commands/DeleteCommand.ts
|
|
348
356
|
|
|
349
357
|
|
|
350
|
-
var
|
|
358
|
+
var DeleteCommand = class extends DynamoDBDocumentClientCommand {
|
|
351
359
|
constructor(input) {
|
|
352
360
|
super();
|
|
353
361
|
this.input = input;
|
|
354
|
-
this.inputKeyNodes = {
|
|
355
|
-
Key: ALL_VALUES,
|
|
356
|
-
// map with AttributeValue
|
|
357
|
-
Expected: {
|
|
358
|
-
"*": {
|
|
359
|
-
Value: SELF,
|
|
360
|
-
AttributeValueList: ALL_MEMBERS
|
|
361
|
-
// set/list of AttributeValue
|
|
362
|
-
}
|
|
363
|
-
},
|
|
364
|
-
ExpressionAttributeValues: ALL_VALUES
|
|
365
|
-
// map with AttributeValue
|
|
366
|
-
};
|
|
367
|
-
this.outputKeyNodes = {
|
|
368
|
-
Attributes: ALL_VALUES,
|
|
369
|
-
// map with AttributeValue
|
|
370
|
-
ItemCollectionMetrics: {
|
|
371
|
-
ItemCollectionKey: ALL_VALUES
|
|
372
|
-
// map with AttributeValue
|
|
373
|
-
}
|
|
374
|
-
};
|
|
375
362
|
this.clientCommand = new import_client_dynamodb.DeleteItemCommand(this.input);
|
|
376
363
|
this.middlewareStack = this.clientCommand.middlewareStack;
|
|
377
364
|
}
|
|
365
|
+
static {
|
|
366
|
+
__name(this, "DeleteCommand");
|
|
367
|
+
}
|
|
368
|
+
inputKeyNodes = {
|
|
369
|
+
Key: ALL_VALUES,
|
|
370
|
+
// map with AttributeValue
|
|
371
|
+
Expected: {
|
|
372
|
+
"*": {
|
|
373
|
+
Value: SELF,
|
|
374
|
+
AttributeValueList: ALL_MEMBERS
|
|
375
|
+
// set/list of AttributeValue
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
ExpressionAttributeValues: ALL_VALUES
|
|
379
|
+
// map with AttributeValue
|
|
380
|
+
};
|
|
381
|
+
outputKeyNodes = {
|
|
382
|
+
Attributes: ALL_VALUES,
|
|
383
|
+
// map with AttributeValue
|
|
384
|
+
ItemCollectionMetrics: {
|
|
385
|
+
ItemCollectionKey: ALL_VALUES
|
|
386
|
+
// map with AttributeValue
|
|
387
|
+
}
|
|
388
|
+
};
|
|
389
|
+
clientCommand;
|
|
390
|
+
middlewareStack;
|
|
378
391
|
/**
|
|
379
392
|
* @internal
|
|
380
393
|
*/
|
|
@@ -385,31 +398,34 @@ var _DeleteCommand = class _DeleteCommand extends DynamoDBDocumentClientCommand
|
|
|
385
398
|
return async () => handler(this.clientCommand);
|
|
386
399
|
}
|
|
387
400
|
};
|
|
388
|
-
__name(_DeleteCommand, "DeleteCommand");
|
|
389
|
-
var DeleteCommand = _DeleteCommand;
|
|
390
401
|
|
|
391
402
|
// src/commands/ExecuteStatementCommand.ts
|
|
392
403
|
|
|
393
404
|
|
|
394
|
-
var
|
|
405
|
+
var ExecuteStatementCommand = class extends DynamoDBDocumentClientCommand {
|
|
395
406
|
constructor(input) {
|
|
396
407
|
super();
|
|
397
408
|
this.input = input;
|
|
398
|
-
this.inputKeyNodes = {
|
|
399
|
-
Parameters: ALL_MEMBERS
|
|
400
|
-
// set/list of AttributeValue
|
|
401
|
-
};
|
|
402
|
-
this.outputKeyNodes = {
|
|
403
|
-
Items: {
|
|
404
|
-
"*": ALL_VALUES
|
|
405
|
-
// map with AttributeValue
|
|
406
|
-
},
|
|
407
|
-
LastEvaluatedKey: ALL_VALUES
|
|
408
|
-
// map with AttributeValue
|
|
409
|
-
};
|
|
410
409
|
this.clientCommand = new import_client_dynamodb.ExecuteStatementCommand(this.input);
|
|
411
410
|
this.middlewareStack = this.clientCommand.middlewareStack;
|
|
412
411
|
}
|
|
412
|
+
static {
|
|
413
|
+
__name(this, "ExecuteStatementCommand");
|
|
414
|
+
}
|
|
415
|
+
inputKeyNodes = {
|
|
416
|
+
Parameters: ALL_MEMBERS
|
|
417
|
+
// set/list of AttributeValue
|
|
418
|
+
};
|
|
419
|
+
outputKeyNodes = {
|
|
420
|
+
Items: {
|
|
421
|
+
"*": ALL_VALUES
|
|
422
|
+
// map with AttributeValue
|
|
423
|
+
},
|
|
424
|
+
LastEvaluatedKey: ALL_VALUES
|
|
425
|
+
// map with AttributeValue
|
|
426
|
+
};
|
|
427
|
+
clientCommand;
|
|
428
|
+
middlewareStack;
|
|
413
429
|
/**
|
|
414
430
|
* @internal
|
|
415
431
|
*/
|
|
@@ -420,35 +436,38 @@ var _ExecuteStatementCommand = class _ExecuteStatementCommand extends DynamoDBDo
|
|
|
420
436
|
return async () => handler(this.clientCommand);
|
|
421
437
|
}
|
|
422
438
|
};
|
|
423
|
-
__name(_ExecuteStatementCommand, "ExecuteStatementCommand");
|
|
424
|
-
var ExecuteStatementCommand = _ExecuteStatementCommand;
|
|
425
439
|
|
|
426
440
|
// src/commands/ExecuteTransactionCommand.ts
|
|
427
441
|
|
|
428
442
|
|
|
429
|
-
var
|
|
443
|
+
var ExecuteTransactionCommand = class extends DynamoDBDocumentClientCommand {
|
|
430
444
|
constructor(input) {
|
|
431
445
|
super();
|
|
432
446
|
this.input = input;
|
|
433
|
-
this.inputKeyNodes = {
|
|
434
|
-
TransactStatements: {
|
|
435
|
-
"*": {
|
|
436
|
-
Parameters: ALL_MEMBERS
|
|
437
|
-
// set/list of AttributeValue
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
};
|
|
441
|
-
this.outputKeyNodes = {
|
|
442
|
-
Responses: {
|
|
443
|
-
"*": {
|
|
444
|
-
Item: ALL_VALUES
|
|
445
|
-
// map with AttributeValue
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
};
|
|
449
447
|
this.clientCommand = new import_client_dynamodb.ExecuteTransactionCommand(this.input);
|
|
450
448
|
this.middlewareStack = this.clientCommand.middlewareStack;
|
|
451
449
|
}
|
|
450
|
+
static {
|
|
451
|
+
__name(this, "ExecuteTransactionCommand");
|
|
452
|
+
}
|
|
453
|
+
inputKeyNodes = {
|
|
454
|
+
TransactStatements: {
|
|
455
|
+
"*": {
|
|
456
|
+
Parameters: ALL_MEMBERS
|
|
457
|
+
// set/list of AttributeValue
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
};
|
|
461
|
+
outputKeyNodes = {
|
|
462
|
+
Responses: {
|
|
463
|
+
"*": {
|
|
464
|
+
Item: ALL_VALUES
|
|
465
|
+
// map with AttributeValue
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
};
|
|
469
|
+
clientCommand;
|
|
470
|
+
middlewareStack;
|
|
452
471
|
/**
|
|
453
472
|
* @internal
|
|
454
473
|
*/
|
|
@@ -459,27 +478,30 @@ var _ExecuteTransactionCommand = class _ExecuteTransactionCommand extends Dynamo
|
|
|
459
478
|
return async () => handler(this.clientCommand);
|
|
460
479
|
}
|
|
461
480
|
};
|
|
462
|
-
__name(_ExecuteTransactionCommand, "ExecuteTransactionCommand");
|
|
463
|
-
var ExecuteTransactionCommand = _ExecuteTransactionCommand;
|
|
464
481
|
|
|
465
482
|
// src/commands/GetCommand.ts
|
|
466
483
|
|
|
467
484
|
|
|
468
|
-
var
|
|
485
|
+
var GetCommand = class extends DynamoDBDocumentClientCommand {
|
|
469
486
|
constructor(input) {
|
|
470
487
|
super();
|
|
471
488
|
this.input = input;
|
|
472
|
-
this.inputKeyNodes = {
|
|
473
|
-
Key: ALL_VALUES
|
|
474
|
-
// map with AttributeValue
|
|
475
|
-
};
|
|
476
|
-
this.outputKeyNodes = {
|
|
477
|
-
Item: ALL_VALUES
|
|
478
|
-
// map with AttributeValue
|
|
479
|
-
};
|
|
480
489
|
this.clientCommand = new import_client_dynamodb.GetItemCommand(this.input);
|
|
481
490
|
this.middlewareStack = this.clientCommand.middlewareStack;
|
|
482
491
|
}
|
|
492
|
+
static {
|
|
493
|
+
__name(this, "GetCommand");
|
|
494
|
+
}
|
|
495
|
+
inputKeyNodes = {
|
|
496
|
+
Key: ALL_VALUES
|
|
497
|
+
// map with AttributeValue
|
|
498
|
+
};
|
|
499
|
+
outputKeyNodes = {
|
|
500
|
+
Item: ALL_VALUES
|
|
501
|
+
// map with AttributeValue
|
|
502
|
+
};
|
|
503
|
+
clientCommand;
|
|
504
|
+
middlewareStack;
|
|
483
505
|
/**
|
|
484
506
|
* @internal
|
|
485
507
|
*/
|
|
@@ -490,40 +512,43 @@ var _GetCommand = class _GetCommand extends DynamoDBDocumentClientCommand {
|
|
|
490
512
|
return async () => handler(this.clientCommand);
|
|
491
513
|
}
|
|
492
514
|
};
|
|
493
|
-
__name(_GetCommand, "GetCommand");
|
|
494
|
-
var GetCommand = _GetCommand;
|
|
495
515
|
|
|
496
516
|
// src/commands/PutCommand.ts
|
|
497
517
|
|
|
498
518
|
|
|
499
|
-
var
|
|
519
|
+
var PutCommand = class extends DynamoDBDocumentClientCommand {
|
|
500
520
|
constructor(input) {
|
|
501
521
|
super();
|
|
502
522
|
this.input = input;
|
|
503
|
-
this.inputKeyNodes = {
|
|
504
|
-
Item: ALL_VALUES,
|
|
505
|
-
// map with AttributeValue
|
|
506
|
-
Expected: {
|
|
507
|
-
"*": {
|
|
508
|
-
Value: SELF,
|
|
509
|
-
AttributeValueList: ALL_MEMBERS
|
|
510
|
-
// set/list of AttributeValue
|
|
511
|
-
}
|
|
512
|
-
},
|
|
513
|
-
ExpressionAttributeValues: ALL_VALUES
|
|
514
|
-
// map with AttributeValue
|
|
515
|
-
};
|
|
516
|
-
this.outputKeyNodes = {
|
|
517
|
-
Attributes: ALL_VALUES,
|
|
518
|
-
// map with AttributeValue
|
|
519
|
-
ItemCollectionMetrics: {
|
|
520
|
-
ItemCollectionKey: ALL_VALUES
|
|
521
|
-
// map with AttributeValue
|
|
522
|
-
}
|
|
523
|
-
};
|
|
524
523
|
this.clientCommand = new import_client_dynamodb.PutItemCommand(this.input);
|
|
525
524
|
this.middlewareStack = this.clientCommand.middlewareStack;
|
|
526
525
|
}
|
|
526
|
+
static {
|
|
527
|
+
__name(this, "PutCommand");
|
|
528
|
+
}
|
|
529
|
+
inputKeyNodes = {
|
|
530
|
+
Item: ALL_VALUES,
|
|
531
|
+
// map with AttributeValue
|
|
532
|
+
Expected: {
|
|
533
|
+
"*": {
|
|
534
|
+
Value: SELF,
|
|
535
|
+
AttributeValueList: ALL_MEMBERS
|
|
536
|
+
// set/list of AttributeValue
|
|
537
|
+
}
|
|
538
|
+
},
|
|
539
|
+
ExpressionAttributeValues: ALL_VALUES
|
|
540
|
+
// map with AttributeValue
|
|
541
|
+
};
|
|
542
|
+
outputKeyNodes = {
|
|
543
|
+
Attributes: ALL_VALUES,
|
|
544
|
+
// map with AttributeValue
|
|
545
|
+
ItemCollectionMetrics: {
|
|
546
|
+
ItemCollectionKey: ALL_VALUES
|
|
547
|
+
// map with AttributeValue
|
|
548
|
+
}
|
|
549
|
+
};
|
|
550
|
+
clientCommand;
|
|
551
|
+
middlewareStack;
|
|
527
552
|
/**
|
|
528
553
|
* @internal
|
|
529
554
|
*/
|
|
@@ -534,45 +559,48 @@ var _PutCommand = class _PutCommand extends DynamoDBDocumentClientCommand {
|
|
|
534
559
|
return async () => handler(this.clientCommand);
|
|
535
560
|
}
|
|
536
561
|
};
|
|
537
|
-
__name(_PutCommand, "PutCommand");
|
|
538
|
-
var PutCommand = _PutCommand;
|
|
539
562
|
|
|
540
563
|
// src/commands/QueryCommand.ts
|
|
541
564
|
|
|
542
565
|
|
|
543
|
-
var
|
|
566
|
+
var QueryCommand = class extends DynamoDBDocumentClientCommand {
|
|
544
567
|
constructor(input) {
|
|
545
568
|
super();
|
|
546
569
|
this.input = input;
|
|
547
|
-
this.inputKeyNodes = {
|
|
548
|
-
KeyConditions: {
|
|
549
|
-
"*": {
|
|
550
|
-
AttributeValueList: ALL_MEMBERS
|
|
551
|
-
// set/list of AttributeValue
|
|
552
|
-
}
|
|
553
|
-
},
|
|
554
|
-
QueryFilter: {
|
|
555
|
-
"*": {
|
|
556
|
-
AttributeValueList: ALL_MEMBERS
|
|
557
|
-
// set/list of AttributeValue
|
|
558
|
-
}
|
|
559
|
-
},
|
|
560
|
-
ExclusiveStartKey: ALL_VALUES,
|
|
561
|
-
// map with AttributeValue
|
|
562
|
-
ExpressionAttributeValues: ALL_VALUES
|
|
563
|
-
// map with AttributeValue
|
|
564
|
-
};
|
|
565
|
-
this.outputKeyNodes = {
|
|
566
|
-
Items: {
|
|
567
|
-
"*": ALL_VALUES
|
|
568
|
-
// map with AttributeValue
|
|
569
|
-
},
|
|
570
|
-
LastEvaluatedKey: ALL_VALUES
|
|
571
|
-
// map with AttributeValue
|
|
572
|
-
};
|
|
573
570
|
this.clientCommand = new import_client_dynamodb.QueryCommand(this.input);
|
|
574
571
|
this.middlewareStack = this.clientCommand.middlewareStack;
|
|
575
572
|
}
|
|
573
|
+
static {
|
|
574
|
+
__name(this, "QueryCommand");
|
|
575
|
+
}
|
|
576
|
+
inputKeyNodes = {
|
|
577
|
+
KeyConditions: {
|
|
578
|
+
"*": {
|
|
579
|
+
AttributeValueList: ALL_MEMBERS
|
|
580
|
+
// set/list of AttributeValue
|
|
581
|
+
}
|
|
582
|
+
},
|
|
583
|
+
QueryFilter: {
|
|
584
|
+
"*": {
|
|
585
|
+
AttributeValueList: ALL_MEMBERS
|
|
586
|
+
// set/list of AttributeValue
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
ExclusiveStartKey: ALL_VALUES,
|
|
590
|
+
// map with AttributeValue
|
|
591
|
+
ExpressionAttributeValues: ALL_VALUES
|
|
592
|
+
// map with AttributeValue
|
|
593
|
+
};
|
|
594
|
+
outputKeyNodes = {
|
|
595
|
+
Items: {
|
|
596
|
+
"*": ALL_VALUES
|
|
597
|
+
// map with AttributeValue
|
|
598
|
+
},
|
|
599
|
+
LastEvaluatedKey: ALL_VALUES
|
|
600
|
+
// map with AttributeValue
|
|
601
|
+
};
|
|
602
|
+
clientCommand;
|
|
603
|
+
middlewareStack;
|
|
576
604
|
/**
|
|
577
605
|
* @internal
|
|
578
606
|
*/
|
|
@@ -583,39 +611,42 @@ var _QueryCommand = class _QueryCommand extends DynamoDBDocumentClientCommand {
|
|
|
583
611
|
return async () => handler(this.clientCommand);
|
|
584
612
|
}
|
|
585
613
|
};
|
|
586
|
-
__name(_QueryCommand, "QueryCommand");
|
|
587
|
-
var QueryCommand = _QueryCommand;
|
|
588
614
|
|
|
589
615
|
// src/commands/ScanCommand.ts
|
|
590
616
|
|
|
591
617
|
|
|
592
|
-
var
|
|
618
|
+
var ScanCommand = class extends DynamoDBDocumentClientCommand {
|
|
593
619
|
constructor(input) {
|
|
594
620
|
super();
|
|
595
621
|
this.input = input;
|
|
596
|
-
this.inputKeyNodes = {
|
|
597
|
-
ScanFilter: {
|
|
598
|
-
"*": {
|
|
599
|
-
AttributeValueList: ALL_MEMBERS
|
|
600
|
-
// set/list of AttributeValue
|
|
601
|
-
}
|
|
602
|
-
},
|
|
603
|
-
ExclusiveStartKey: ALL_VALUES,
|
|
604
|
-
// map with AttributeValue
|
|
605
|
-
ExpressionAttributeValues: ALL_VALUES
|
|
606
|
-
// map with AttributeValue
|
|
607
|
-
};
|
|
608
|
-
this.outputKeyNodes = {
|
|
609
|
-
Items: {
|
|
610
|
-
"*": ALL_VALUES
|
|
611
|
-
// map with AttributeValue
|
|
612
|
-
},
|
|
613
|
-
LastEvaluatedKey: ALL_VALUES
|
|
614
|
-
// map with AttributeValue
|
|
615
|
-
};
|
|
616
622
|
this.clientCommand = new import_client_dynamodb.ScanCommand(this.input);
|
|
617
623
|
this.middlewareStack = this.clientCommand.middlewareStack;
|
|
618
624
|
}
|
|
625
|
+
static {
|
|
626
|
+
__name(this, "ScanCommand");
|
|
627
|
+
}
|
|
628
|
+
inputKeyNodes = {
|
|
629
|
+
ScanFilter: {
|
|
630
|
+
"*": {
|
|
631
|
+
AttributeValueList: ALL_MEMBERS
|
|
632
|
+
// set/list of AttributeValue
|
|
633
|
+
}
|
|
634
|
+
},
|
|
635
|
+
ExclusiveStartKey: ALL_VALUES,
|
|
636
|
+
// map with AttributeValue
|
|
637
|
+
ExpressionAttributeValues: ALL_VALUES
|
|
638
|
+
// map with AttributeValue
|
|
639
|
+
};
|
|
640
|
+
outputKeyNodes = {
|
|
641
|
+
Items: {
|
|
642
|
+
"*": ALL_VALUES
|
|
643
|
+
// map with AttributeValue
|
|
644
|
+
},
|
|
645
|
+
LastEvaluatedKey: ALL_VALUES
|
|
646
|
+
// map with AttributeValue
|
|
647
|
+
};
|
|
648
|
+
clientCommand;
|
|
649
|
+
middlewareStack;
|
|
619
650
|
/**
|
|
620
651
|
* @internal
|
|
621
652
|
*/
|
|
@@ -626,37 +657,40 @@ var _ScanCommand = class _ScanCommand extends DynamoDBDocumentClientCommand {
|
|
|
626
657
|
return async () => handler(this.clientCommand);
|
|
627
658
|
}
|
|
628
659
|
};
|
|
629
|
-
__name(_ScanCommand, "ScanCommand");
|
|
630
|
-
var ScanCommand = _ScanCommand;
|
|
631
660
|
|
|
632
661
|
// src/commands/TransactGetCommand.ts
|
|
633
662
|
|
|
634
663
|
|
|
635
|
-
var
|
|
664
|
+
var TransactGetCommand = class extends DynamoDBDocumentClientCommand {
|
|
636
665
|
constructor(input) {
|
|
637
666
|
super();
|
|
638
667
|
this.input = input;
|
|
639
|
-
this.inputKeyNodes = {
|
|
640
|
-
TransactItems: {
|
|
641
|
-
"*": {
|
|
642
|
-
Get: {
|
|
643
|
-
Key: ALL_VALUES
|
|
644
|
-
// map with AttributeValue
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
};
|
|
649
|
-
this.outputKeyNodes = {
|
|
650
|
-
Responses: {
|
|
651
|
-
"*": {
|
|
652
|
-
Item: ALL_VALUES
|
|
653
|
-
// map with AttributeValue
|
|
654
|
-
}
|
|
655
|
-
}
|
|
656
|
-
};
|
|
657
668
|
this.clientCommand = new import_client_dynamodb.TransactGetItemsCommand(this.input);
|
|
658
669
|
this.middlewareStack = this.clientCommand.middlewareStack;
|
|
659
670
|
}
|
|
671
|
+
static {
|
|
672
|
+
__name(this, "TransactGetCommand");
|
|
673
|
+
}
|
|
674
|
+
inputKeyNodes = {
|
|
675
|
+
TransactItems: {
|
|
676
|
+
"*": {
|
|
677
|
+
Get: {
|
|
678
|
+
Key: ALL_VALUES
|
|
679
|
+
// map with AttributeValue
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
};
|
|
684
|
+
outputKeyNodes = {
|
|
685
|
+
Responses: {
|
|
686
|
+
"*": {
|
|
687
|
+
Item: ALL_VALUES
|
|
688
|
+
// map with AttributeValue
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
};
|
|
692
|
+
clientCommand;
|
|
693
|
+
middlewareStack;
|
|
660
694
|
/**
|
|
661
695
|
* @internal
|
|
662
696
|
*/
|
|
@@ -667,59 +701,62 @@ var _TransactGetCommand = class _TransactGetCommand extends DynamoDBDocumentClie
|
|
|
667
701
|
return async () => handler(this.clientCommand);
|
|
668
702
|
}
|
|
669
703
|
};
|
|
670
|
-
__name(_TransactGetCommand, "TransactGetCommand");
|
|
671
|
-
var TransactGetCommand = _TransactGetCommand;
|
|
672
704
|
|
|
673
705
|
// src/commands/TransactWriteCommand.ts
|
|
674
706
|
|
|
675
707
|
|
|
676
|
-
var
|
|
708
|
+
var TransactWriteCommand = class extends DynamoDBDocumentClientCommand {
|
|
677
709
|
constructor(input) {
|
|
678
710
|
super();
|
|
679
711
|
this.input = input;
|
|
680
|
-
this.
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
712
|
+
this.clientCommand = new import_client_dynamodb.TransactWriteItemsCommand(this.input);
|
|
713
|
+
this.middlewareStack = this.clientCommand.middlewareStack;
|
|
714
|
+
}
|
|
715
|
+
static {
|
|
716
|
+
__name(this, "TransactWriteCommand");
|
|
717
|
+
}
|
|
718
|
+
inputKeyNodes = {
|
|
719
|
+
TransactItems: {
|
|
720
|
+
"*": {
|
|
721
|
+
ConditionCheck: {
|
|
722
|
+
Key: ALL_VALUES,
|
|
723
|
+
// map with AttributeValue
|
|
724
|
+
ExpressionAttributeValues: ALL_VALUES
|
|
725
|
+
// map with AttributeValue
|
|
726
|
+
},
|
|
727
|
+
Put: {
|
|
728
|
+
Item: ALL_VALUES,
|
|
729
|
+
// map with AttributeValue
|
|
730
|
+
ExpressionAttributeValues: ALL_VALUES
|
|
731
|
+
// map with AttributeValue
|
|
732
|
+
},
|
|
733
|
+
Delete: {
|
|
734
|
+
Key: ALL_VALUES,
|
|
735
|
+
// map with AttributeValue
|
|
736
|
+
ExpressionAttributeValues: ALL_VALUES
|
|
737
|
+
// map with AttributeValue
|
|
738
|
+
},
|
|
739
|
+
Update: {
|
|
740
|
+
Key: ALL_VALUES,
|
|
741
|
+
// map with AttributeValue
|
|
742
|
+
ExpressionAttributeValues: ALL_VALUES
|
|
743
|
+
// map with AttributeValue
|
|
707
744
|
}
|
|
708
745
|
}
|
|
709
|
-
}
|
|
710
|
-
|
|
711
|
-
|
|
746
|
+
}
|
|
747
|
+
};
|
|
748
|
+
outputKeyNodes = {
|
|
749
|
+
ItemCollectionMetrics: {
|
|
750
|
+
"*": {
|
|
712
751
|
"*": {
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
// map with AttributeValue
|
|
716
|
-
}
|
|
752
|
+
ItemCollectionKey: ALL_VALUES
|
|
753
|
+
// map with AttributeValue
|
|
717
754
|
}
|
|
718
755
|
}
|
|
719
|
-
}
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
756
|
+
}
|
|
757
|
+
};
|
|
758
|
+
clientCommand;
|
|
759
|
+
middlewareStack;
|
|
723
760
|
/**
|
|
724
761
|
* @internal
|
|
725
762
|
*/
|
|
@@ -730,45 +767,48 @@ var _TransactWriteCommand = class _TransactWriteCommand extends DynamoDBDocument
|
|
|
730
767
|
return async () => handler(this.clientCommand);
|
|
731
768
|
}
|
|
732
769
|
};
|
|
733
|
-
__name(_TransactWriteCommand, "TransactWriteCommand");
|
|
734
|
-
var TransactWriteCommand = _TransactWriteCommand;
|
|
735
770
|
|
|
736
771
|
// src/commands/UpdateCommand.ts
|
|
737
772
|
|
|
738
773
|
|
|
739
|
-
var
|
|
774
|
+
var UpdateCommand = class extends DynamoDBDocumentClientCommand {
|
|
740
775
|
constructor(input) {
|
|
741
776
|
super();
|
|
742
777
|
this.input = input;
|
|
743
|
-
this.inputKeyNodes = {
|
|
744
|
-
Key: ALL_VALUES,
|
|
745
|
-
// map with AttributeValue
|
|
746
|
-
AttributeUpdates: {
|
|
747
|
-
"*": {
|
|
748
|
-
Value: SELF
|
|
749
|
-
}
|
|
750
|
-
},
|
|
751
|
-
Expected: {
|
|
752
|
-
"*": {
|
|
753
|
-
Value: SELF,
|
|
754
|
-
AttributeValueList: ALL_MEMBERS
|
|
755
|
-
// set/list of AttributeValue
|
|
756
|
-
}
|
|
757
|
-
},
|
|
758
|
-
ExpressionAttributeValues: ALL_VALUES
|
|
759
|
-
// map with AttributeValue
|
|
760
|
-
};
|
|
761
|
-
this.outputKeyNodes = {
|
|
762
|
-
Attributes: ALL_VALUES,
|
|
763
|
-
// map with AttributeValue
|
|
764
|
-
ItemCollectionMetrics: {
|
|
765
|
-
ItemCollectionKey: ALL_VALUES
|
|
766
|
-
// map with AttributeValue
|
|
767
|
-
}
|
|
768
|
-
};
|
|
769
778
|
this.clientCommand = new import_client_dynamodb.UpdateItemCommand(this.input);
|
|
770
779
|
this.middlewareStack = this.clientCommand.middlewareStack;
|
|
771
780
|
}
|
|
781
|
+
static {
|
|
782
|
+
__name(this, "UpdateCommand");
|
|
783
|
+
}
|
|
784
|
+
inputKeyNodes = {
|
|
785
|
+
Key: ALL_VALUES,
|
|
786
|
+
// map with AttributeValue
|
|
787
|
+
AttributeUpdates: {
|
|
788
|
+
"*": {
|
|
789
|
+
Value: SELF
|
|
790
|
+
}
|
|
791
|
+
},
|
|
792
|
+
Expected: {
|
|
793
|
+
"*": {
|
|
794
|
+
Value: SELF,
|
|
795
|
+
AttributeValueList: ALL_MEMBERS
|
|
796
|
+
// set/list of AttributeValue
|
|
797
|
+
}
|
|
798
|
+
},
|
|
799
|
+
ExpressionAttributeValues: ALL_VALUES
|
|
800
|
+
// map with AttributeValue
|
|
801
|
+
};
|
|
802
|
+
outputKeyNodes = {
|
|
803
|
+
Attributes: ALL_VALUES,
|
|
804
|
+
// map with AttributeValue
|
|
805
|
+
ItemCollectionMetrics: {
|
|
806
|
+
ItemCollectionKey: ALL_VALUES
|
|
807
|
+
// map with AttributeValue
|
|
808
|
+
}
|
|
809
|
+
};
|
|
810
|
+
clientCommand;
|
|
811
|
+
middlewareStack;
|
|
772
812
|
/**
|
|
773
813
|
* @internal
|
|
774
814
|
*/
|
|
@@ -779,19 +819,20 @@ var _UpdateCommand = class _UpdateCommand extends DynamoDBDocumentClientCommand
|
|
|
779
819
|
return async () => handler(this.clientCommand);
|
|
780
820
|
}
|
|
781
821
|
};
|
|
782
|
-
__name(_UpdateCommand, "UpdateCommand");
|
|
783
|
-
var UpdateCommand = _UpdateCommand;
|
|
784
822
|
|
|
785
823
|
// src/DynamoDBDocumentClient.ts
|
|
786
824
|
|
|
787
|
-
var
|
|
825
|
+
var DynamoDBDocumentClient = class _DynamoDBDocumentClient extends import_smithy_client.Client {
|
|
826
|
+
static {
|
|
827
|
+
__name(this, "DynamoDBDocumentClient");
|
|
828
|
+
}
|
|
829
|
+
config;
|
|
788
830
|
constructor(client, translateConfig) {
|
|
789
|
-
var _a;
|
|
790
831
|
super(client.config);
|
|
791
832
|
this.config = client.config;
|
|
792
833
|
this.config.translateConfig = translateConfig;
|
|
793
834
|
this.middlewareStack = client.middlewareStack;
|
|
794
|
-
if (
|
|
835
|
+
if (this.config?.cacheMiddleware) {
|
|
795
836
|
throw new Error(
|
|
796
837
|
"@aws-sdk/lib-dynamodb - cacheMiddleware=true is not compatible with the DynamoDBDocumentClient. This option must be set to false."
|
|
797
838
|
);
|
|
@@ -803,11 +844,12 @@ var _DynamoDBDocumentClient = class _DynamoDBDocumentClient extends import_smith
|
|
|
803
844
|
destroy() {
|
|
804
845
|
}
|
|
805
846
|
};
|
|
806
|
-
__name(_DynamoDBDocumentClient, "DynamoDBDocumentClient");
|
|
807
|
-
var DynamoDBDocumentClient = _DynamoDBDocumentClient;
|
|
808
847
|
|
|
809
848
|
// src/DynamoDBDocument.ts
|
|
810
|
-
var
|
|
849
|
+
var DynamoDBDocument = class _DynamoDBDocument extends DynamoDBDocumentClient {
|
|
850
|
+
static {
|
|
851
|
+
__name(this, "DynamoDBDocument");
|
|
852
|
+
}
|
|
811
853
|
static from(client, translateConfig) {
|
|
812
854
|
return new _DynamoDBDocument(client, translateConfig);
|
|
813
855
|
}
|
|
@@ -981,8 +1023,6 @@ var _DynamoDBDocument = class _DynamoDBDocument extends DynamoDBDocumentClient {
|
|
|
981
1023
|
}
|
|
982
1024
|
}
|
|
983
1025
|
};
|
|
984
|
-
__name(_DynamoDBDocument, "DynamoDBDocument");
|
|
985
|
-
var DynamoDBDocument = _DynamoDBDocument;
|
|
986
1026
|
|
|
987
1027
|
// src/pagination/Interfaces.ts
|
|
988
1028
|
var import_types = require("@smithy/types");
|