AddDatabaseConfig: {
    attributes: Record<string, "S" | "N" | "B" | "BOOL" | "NULL" | "M" | "L" | "SS" | "NS" | "BS">;
    billingMode?: "PAY_PER_REQUEST" | "PROVISIONED";
    keys: Record<string, "HASH" | "RANGE">;
    tableId: string;
    tableName?: string;
}

The configuration for adding a database to a stack.

Type declaration

  • attributes: Record<string, "S" | "N" | "B" | "BOOL" | "NULL" | "M" | "L" | "SS" | "NS" | "BS">

    Specific attributes for the database table.

  • Optional billingMode?: "PAY_PER_REQUEST" | "PROVISIONED"

    The billing mode for the database table.

  • keys: Record<string, "HASH" | "RANGE">

    The keys for the database table.

  • tableId: string

    The id of the database table in a stack.

  • Optional tableName?: string

    The name of the database table.