AdonisJS API
    Preparing search index...

    Type Alias DynamoDBStoreConfig

    DynamoDBStoreConfig: (
        { client: DynamoDBClient }
        | { clientConfig: DynamoDBClientConfig }
    ) & { tableName?: string; keyAttribute?: string }

    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.

    Type Declaration

    • { client: DynamoDBClient }
      • client: DynamoDBClient

        Pre-configured DynamoDB client instance

    • { clientConfig: DynamoDBClientConfig }
      • clientConfig: DynamoDBClientConfig

        Configuration options for creating a new DynamoDB client

    • OptionaltableName?: string

      DynamoDB table name for storing sessions (defaults to "Session")

    • OptionalkeyAttribute?: string

      Attribute 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'
    }