Aller au contenu
Français

DynamoDbStoreConfig

Ce contenu n’est pas encore disponible dans votre langue.

Defined in: src/persistence/journals/DynamoDbStore.ts:18

Wiring every DynamoDB store needs, independent of which contract it implements.

readonly optional autoCreateTables?: boolean

Defined in: src/persistence/journals/DynamoDbStore.ts:20

Create the table on first use. Default true.


readonly optional billingMode?: "PAY_PER_REQUEST" | "PROVISIONED"

Defined in: src/persistence/journals/DynamoDbStore.ts:26

On-demand (PAY_PER_REQUEST) or provisioned throughput. Default on-demand: an event journal’s traffic is bursty, and on-demand needs no capacity planning to get started.


readonly ownsClient: boolean

Defined in: src/persistence/journals/DynamoDbStore.ts:36

Whether this store opened the client itself. An injected façade — shared across the journal, snapshot and durable-state stores by registerDynamoDbPlugins, or a fake in tests — is owned by the caller.


readonly optional provisionedThroughput?: object

Defined in: src/persistence/journals/DynamoDbStore.ts:28

Read/write capacity units, used only when billingMode is PROVISIONED.

readonly readCapacityUnits: number

readonly writeCapacityUnits: number


readonly storeName: string

Defined in: src/persistence/LazyStore.ts:11

Concrete store name ('PostgresJournal', 'MongoJournal'), used to prefix every error message. Errors name the store the caller actually constructed rather than the shared base, which is what makes a stack-free log line useful.

Omit.storeName


readonly optional tableReadyTimeoutMs?: number

Defined in: src/persistence/journals/DynamoDbStore.ts:30

How long to wait for a freshly created table to become ACTIVE. Default 30 s.

openClient(): Promise<DynamoDbOperations>

Defined in: src/persistence/journals/DynamoDbStore.ts:38

Open the operations façade. Called once, lazily, on first use.

Promise<DynamoDbOperations>