Pre-configured DynamoDB client instance
Configuration options for creating a new DynamoDB client
OptionaltableName?: stringDynamoDB table name for storing sessions (defaults to "Session")
OptionalkeyAttribute?: stringAttribute name for the session ID in the table (defaults to "key")
// Using existing client
const configWithClient: DynamoDBStoreConfig = {
client: dynamoClient,
tableName: 'UserSessions',
keyAttribute: 'sessionId'
}
// Using client configuration
const configWithClientConfig: DynamoDBStoreConfig = {
clientConfig: {
region: 'us-east-1',
credentials: { ... }
},
tableName: 'Sessions'
}
Configuration for AWS DynamoDB-based session storage. Sessions are stored in a DynamoDB table with TTL support. Supports either providing a DynamoDB client instance or client configuration.