Table Formats

Assuming the default values are used (adjust as necessary if not):

type

name

partition key

sort key

comments

table

Journal

pkey (String)

skey (String)

Used when implementing EventSourcedBehavior.

index

GetJournalRowsIndex (GSI)

persistence-id (String)

sequence-nr (Number)

Required the index for replaying EventSourcedBehavior.

index

TagsIndex (GSI)

tags (String)

-

Index for queries using tags. Not Required if you do not use queries.

table

Snapshot

pkey (String)

skey (String)

Required when using the snapshot feature with EventSourcedBehavior.

index

GetSnaphotRowsIndex (GSI)

persistenceId (String)

sequence-nr (Number)

Required the index for replaying EventSourcedBehavior.

table

State

pkey (String)

-

Used when implementing DurableStateBehavior

As the access to the DynamoDB instance is via the AWS Java SDK, use the methods for the SDK, which are documented at docs.aws.amazon.com