Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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.

§
Token?: string | null
[src]

The user context token for filtering search results for a user. It must be a JWT or a JSON token.

§
UserId?: string | null
[src]

The identifier of the user you want to filter search results based on their access to documents.