Skip to content

API reference / @backpack/amazon-dynamodb / DynamoDbRepositoryOptions

Interface: DynamoDbRepositoryOptions<TItem>

Options for creating a DynamoDbRepository

Type Parameters

Type ParameterDefault type
TItemRecord<string, unknown>

Properties

itemMapper?

ts
optional itemMapper: ItemMapper<TItem>;

An optional mapper to make reading and writing of items more type-safe.

Can be used in combination of utilities like Zod.


logger?

ts
optional logger: Logger;

An optional instance of Powertools Logger to enable logging.


tableName

ts
tableName: string;

The table name of the DynamoDB table.