Module Values.CreateThesaurusRequestSource

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.

Sourcetype nonrec t = {
  1. indexId : IndexId.t;
    (*

    The identifier of the index for the thesaurus.

    *)
  2. name : ThesaurusName.t;
    (*

    A name for the thesaurus.

    *)
  3. description : Description.t option;
    (*

    A description for the thesaurus.

    *)
  4. roleArn : RoleArn.t;
    (*

    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 IAM access roles for Amazon Kendra.

    *)
  5. tags : TagList.t option;
    (*

    A list of key-value pairs that identify or categorize the thesaurus. You can also use tags to help control access to the thesaurus. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @.

    *)
  6. sourceS3Path : S3Path.t;
    (*

    The path to the thesaurus file in S3.

    *)
  7. clientToken : ClientTokenName.t option;
    (*

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

    *)
}
Sourceval context_ : string
Sourceval make : ?description:??? -> ?tags:??? -> ?clientToken:??? -> indexId:IndexId.t -> name:ThesaurusName.t -> roleArn:RoleArn.t -> sourceS3Path:S3Path.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `String of TagKey.t ]) list ] list | `String of IndexId.t | `Structure of (string * [> `String of S3BucketName.t ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t