UNPKG

@mcma/aws-dynamodb

Version:

Node module with code for using DynamoDB as the backing data storage for MCMA API handlers and workers.

10 lines (9 loc) 505 B
import { DynamoDBClient } from "@aws-sdk/client-dynamodb"; import { DocumentDatabaseTableProvider, DocumentDatabaseTable } from "@mcma/data"; import { DynamoDbTableOptions } from "./dynamo-db-table-options"; export declare class DynamoDbTableProvider implements DocumentDatabaseTableProvider { private readonly options; private readonly dynamoDBClient; constructor(options?: DynamoDbTableOptions, dynamoDBClient?: DynamoDBClient); get(tableName: string): Promise<DocumentDatabaseTable>; }