DynamoDB EntityClient constructor.
EntityClientOptions object.
ReadonlybatchDefault batch process options.
ReadonlyclientAWS SDK DynamoDBClient instance.
ReadonlydocAWS SDK DynamoDBDocument instance.
ReadonlyentityEntityManager instance.
ReadonlyloggerInjected logger object. Must support debug and error methods. Default: console
ReadonlytableTable name.
Creates a DynamoDB table using CreateTableCommand and waits for the table to be created and available using waitUntilTableExists.
CreateTableCommandInput object. If TableName is provided it will override this.tableName.
WaiterConfig with maxWaitTime defaulted to 60s.
An object containing the resulting CreateTableCommandOutput and WaiterResult objects.
Deletes an item from a DynamoDB table.
EntityKey object.
Optionaloptions: MakeOptional<Omit<DeleteCommandInput, "Item">, "TableName">DeleteCommandInput object with Key omitted and TableName optional. If provided, TableName will override this.tableName.
The resulting DeleteCommandOutput object.
Deletes an item to a DynamoDB table.
DeleteCommandInput object with TableName optional. If provided, TableName will override this.tableName.
The resulting DeleteCommandOutput object.
Deletes multiple items from a DynamoDB table in batches.
Array of EntityKey objects.
BatchWriteOptions object.
Array of BatchWriteCommandOutput objects.
Deletes a DynamoDB table using DeleteTableCommand and waits for the table to be confirmed deleted with waitUntilTableNotExists.
DeleteTableCommandInput object. If TableName is provided it will override this.tableName.
WaiterConfig with maxWaitTime defaulted to 60s.
An object containing the resulting DeleteTableCommandOutput and WaiterResult objects.
Get item from a DynamoDB table.
EntityKey object.
Item attributes to retrieve.
Optionaloptions: MakeOptional<Omit<GetCommandInput, GetCommandInput object with Key & projection-related properties omitted and TableName optional. If provided, TableName will override this.tableName.
GetCommandOutput object, where the Item key is replaced by an EntityRecord.
Get item from a DynamoDB table.
EntityKey object.
Optionaloptions: MakeOptional<Omit<GetCommandInput, "Key">, "TableName">GetCommandInput object with Key omitted and TableName optional. If provided, TableName will override this.tableName.
GetCommandOutput object, where the Item key is replaced by an EntityRecord.
Get item from a DynamoDB table.
GetCommandInput object with TableName optional. If provided, TableName will override this.tableName.
GetCommandOutput object, where the Item key is replaced by an EntityRecord.
Gets multiple items from a DynamoDB table in batches.
Array of EntityKey objects.
BatchGetOptions object.
An object containing a flattened array of returned items and the array of returned BatchGetCommandOutput objects.
Purge all items from a DynamoDB table.
BatchWriteOptions object.
Number of items purged.
Puts an item to a DynamoDB table.
EntityRecord object.
Optionaloptions: MakeOptional<Omit<PutCommandInput, "Item">, "TableName">PutCommandInput object with Item omitted and TableName optional. If provided, TableName will override this.tableName.
The resulting PutCommandOutput object.
Puts an item to a DynamoDB table.
PutCommandInput object with TableName optional. If provided, TableName will override this.tableName.
The resulting PutCommandOutput object.
Puts multiple items to a DynamoDB table in batches.
Array of EntityRecord objects.
BatchWriteOptions object.
Array of BatchWriteCommandOutput objects.
Deletes multiple items from a DynamoDB table as a single transaction.
TransactWriteCommandOutput object.
Puts multiple items to a DynamoDB table as a single transaction.
Array of EntityRecord objects.
TransactWriteCommandOutput object.
Convenience wrapper around the AWS DynamoDB SDK in addition to
BaseEntityClientfunctionality.Remarks
This class provides a number of enhanced AWS DynamoDB SDK methods. For everything else, both the
DynamoDBClientandDynamoDBDocumentinstances are exposed for direct access on theclientanddocproperties, respectively.For query operations, use the
QueryBuilderclass!