Skip to content

DynamoTableConfig

type DynamoTableConfig = object;

Configuration type for creating a DynamoTable.

The table is assumed to have a primary key composed of a partition key named "PK" and a sort key named "SK" by default, unless overridden in the keyNames property.

The Zod schema representing the entity’s structure.

documentClient: DynamoDBDocumentClient;

The DynamoDB Document Client instance to use for operations.


optional keyNames: object;

Key names object for the table’s primary key and secondary indexes.

optional globalSecondaryIndexes: NamedGlobalSecondaryIndexKeyNames;
optional localSecondaryIndexes: NamedLocalSecondaryIndexKeyNames;
partitionKey: string;
optional sortKey: string | null;

tableName: string;

The name of the DynamoDB table.