v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1465566486.4 KB

Creates a thesaurus for an index. The thesaurus contains a list of synonyms in Solr format.

For an example of adding a thesaurus file to an index, see Adding custom synonyms to an index.

post/#X-Amz-Target=AWSKendraFrontendService.CreateThesaurus

Headers

X-Amz-Target'AWSKendraFrontendService.CreateThesaurus' required

Request body

IndexIdstring required

The identifier of the index for the thesaurus.

Namestring required

A name for the thesaurus.

Descriptionstring

A description for the thesaurus.

RoleArnstring required

The Amazon Resource Name (ARN) of an IAM role with permission to access your S3 bucket that contains the thesaurus file. For more information, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/iam-roles.html">IAM access roles for Amazon Kendra</a>.

ClientTokenstring

A token that you provide to identify the request to create a thesaurus. Multiple calls to the <code>CreateThesaurus</code> API with the same client token will create only one thesaurus.

Response

Success

Idstring

The identifier of the thesaurus.