UserContext
import type { UserContext } from "https://aws-api.deno.dev/v0.3/services/kendra.ts?docs=full";
Provides information about the user context for an Amazon Kendra index.
This is used for filtering search results for different users based on their access to documents.
You provide one of the following:
- User token
- User ID, the groups the user belongs to, and any data sources the groups can access.
If you provide both, an exception is thrown.
interface UserContext {
DataSourceGroups?: DataSourceGroup[] | null;
Groups?: string[] | null;
Token?: string | null;
UserId?: string | null;
}§Properties
§
DataSourceGroups?: DataSourceGroup[] | null
[src]The list of data source groups you want to filter search results based on groups' access to documents in that data source.
§
Groups?: string[] | null
[src]The list of groups you want to filter search results based on the groups' access to documents.