AWS v6.77.0 published on Wednesday, Apr 9, 2025 by Pulumi
aws.kendra.getThesaurus
Explore with Pulumi AI
Provides details about a specific Amazon Kendra Thesaurus.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.kendra.getThesaurus({
    indexId: "12345678-1234-1234-1234-123456789123",
    thesaurusId: "87654321-1234-4321-4321-321987654321",
});
import pulumi
import pulumi_aws as aws
example = aws.kendra.get_thesaurus(index_id="12345678-1234-1234-1234-123456789123",
    thesaurus_id="87654321-1234-4321-4321-321987654321")
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/kendra"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := kendra.LookupThesaurus(ctx, &kendra.LookupThesaurusArgs{
			IndexId:     "12345678-1234-1234-1234-123456789123",
			ThesaurusId: "87654321-1234-4321-4321-321987654321",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    var example = Aws.Kendra.GetThesaurus.Invoke(new()
    {
        IndexId = "12345678-1234-1234-1234-123456789123",
        ThesaurusId = "87654321-1234-4321-4321-321987654321",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.kendra.KendraFunctions;
import com.pulumi.aws.kendra.inputs.GetThesaurusArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var example = KendraFunctions.getThesaurus(GetThesaurusArgs.builder()
            .indexId("12345678-1234-1234-1234-123456789123")
            .thesaurusId("87654321-1234-4321-4321-321987654321")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: aws:kendra:getThesaurus
      arguments:
        indexId: 12345678-1234-1234-1234-123456789123
        thesaurusId: 87654321-1234-4321-4321-321987654321
Using getThesaurus
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getThesaurus(args: GetThesaurusArgs, opts?: InvokeOptions): Promise<GetThesaurusResult>
function getThesaurusOutput(args: GetThesaurusOutputArgs, opts?: InvokeOptions): Output<GetThesaurusResult>def get_thesaurus(index_id: Optional[str] = None,
                  tags: Optional[Mapping[str, str]] = None,
                  thesaurus_id: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetThesaurusResult
def get_thesaurus_output(index_id: Optional[pulumi.Input[str]] = None,
                  tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                  thesaurus_id: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetThesaurusResult]func LookupThesaurus(ctx *Context, args *LookupThesaurusArgs, opts ...InvokeOption) (*LookupThesaurusResult, error)
func LookupThesaurusOutput(ctx *Context, args *LookupThesaurusOutputArgs, opts ...InvokeOption) LookupThesaurusResultOutput> Note: This function is named LookupThesaurus in the Go SDK.
public static class GetThesaurus 
{
    public static Task<GetThesaurusResult> InvokeAsync(GetThesaurusArgs args, InvokeOptions? opts = null)
    public static Output<GetThesaurusResult> Invoke(GetThesaurusInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetThesaurusResult> getThesaurus(GetThesaurusArgs args, InvokeOptions options)
public static Output<GetThesaurusResult> getThesaurus(GetThesaurusArgs args, InvokeOptions options)
fn::invoke:
  function: aws:kendra/getThesaurus:getThesaurus
  arguments:
    # arguments dictionaryThe following arguments are supported:
- IndexId This property is required. string
- Identifier of the index that contains the Thesaurus.
- ThesaurusId This property is required. string
- Identifier of the Thesaurus.
- Dictionary<string, string>
- Metadata that helps organize the Thesaurus you create.
- IndexId This property is required. string
- Identifier of the index that contains the Thesaurus.
- ThesaurusId This property is required. string
- Identifier of the Thesaurus.
- map[string]string
- Metadata that helps organize the Thesaurus you create.
- indexId This property is required. String
- Identifier of the index that contains the Thesaurus.
- thesaurusId This property is required. String
- Identifier of the Thesaurus.
- Map<String,String>
- Metadata that helps organize the Thesaurus you create.
- indexId This property is required. string
- Identifier of the index that contains the Thesaurus.
- thesaurusId This property is required. string
- Identifier of the Thesaurus.
- {[key: string]: string}
- Metadata that helps organize the Thesaurus you create.
- index_id This property is required. str
- Identifier of the index that contains the Thesaurus.
- thesaurus_id This property is required. str
- Identifier of the Thesaurus.
- Mapping[str, str]
- Metadata that helps organize the Thesaurus you create.
- indexId This property is required. String
- Identifier of the index that contains the Thesaurus.
- thesaurusId This property is required. String
- Identifier of the Thesaurus.
- Map<String>
- Metadata that helps organize the Thesaurus you create.
getThesaurus Result
The following output properties are available:
- Arn string
- ARN of the Thesaurus.
- CreatedAt string
- Unix datetime that the Thesaurus was created.
- Description string
- Description of the Thesaurus.
- ErrorMessage string
- When the statusfield value isFAILED, this contains a message that explains why.
- FileSize intBytes 
- Size of the Thesaurus file in bytes.
- Id string
- The provider-assigned unique ID for this managed resource.
- IndexId string
- Name string
- Name of the Thesaurus.
- RoleArn string
- ARN of a role with permission to access the S3 bucket that contains the Thesaurus. For more information, see IAM Roles for Amazon Kendra.
- SourceS3Paths List<GetThesaurus Source S3Path> 
- S3 location of the Thesaurus input data. Detailed below.
- Status string
- Status of the Thesaurus. It is ready to use when the status is ACTIVE.
- SynonymRule intCount 
- Number of synonym rules in the Thesaurus file.
- Dictionary<string, string>
- Metadata that helps organize the Thesaurus you create.
- TermCount int
- Number of unique terms in the Thesaurus file. For example, the synonyms a,b,canda=>d, the term count would be 4.
- ThesaurusId string
- UpdatedAt string
- Date and time that the Thesaurus was last updated.
- Arn string
- ARN of the Thesaurus.
- CreatedAt string
- Unix datetime that the Thesaurus was created.
- Description string
- Description of the Thesaurus.
- ErrorMessage string
- When the statusfield value isFAILED, this contains a message that explains why.
- FileSize intBytes 
- Size of the Thesaurus file in bytes.
- Id string
- The provider-assigned unique ID for this managed resource.
- IndexId string
- Name string
- Name of the Thesaurus.
- RoleArn string
- ARN of a role with permission to access the S3 bucket that contains the Thesaurus. For more information, see IAM Roles for Amazon Kendra.
- SourceS3Paths []GetThesaurus Source S3Path 
- S3 location of the Thesaurus input data. Detailed below.
- Status string
- Status of the Thesaurus. It is ready to use when the status is ACTIVE.
- SynonymRule intCount 
- Number of synonym rules in the Thesaurus file.
- map[string]string
- Metadata that helps organize the Thesaurus you create.
- TermCount int
- Number of unique terms in the Thesaurus file. For example, the synonyms a,b,canda=>d, the term count would be 4.
- ThesaurusId string
- UpdatedAt string
- Date and time that the Thesaurus was last updated.
- arn String
- ARN of the Thesaurus.
- createdAt String
- Unix datetime that the Thesaurus was created.
- description String
- Description of the Thesaurus.
- errorMessage String
- When the statusfield value isFAILED, this contains a message that explains why.
- fileSize IntegerBytes 
- Size of the Thesaurus file in bytes.
- id String
- The provider-assigned unique ID for this managed resource.
- indexId String
- name String
- Name of the Thesaurus.
- roleArn String
- ARN of a role with permission to access the S3 bucket that contains the Thesaurus. For more information, see IAM Roles for Amazon Kendra.
- sourceS3Paths List<GetThesaurus Source S3Path> 
- S3 location of the Thesaurus input data. Detailed below.
- status String
- Status of the Thesaurus. It is ready to use when the status is ACTIVE.
- synonymRule IntegerCount 
- Number of synonym rules in the Thesaurus file.
- Map<String,String>
- Metadata that helps organize the Thesaurus you create.
- termCount Integer
- Number of unique terms in the Thesaurus file. For example, the synonyms a,b,canda=>d, the term count would be 4.
- thesaurusId String
- updatedAt String
- Date and time that the Thesaurus was last updated.
- arn string
- ARN of the Thesaurus.
- createdAt string
- Unix datetime that the Thesaurus was created.
- description string
- Description of the Thesaurus.
- errorMessage string
- When the statusfield value isFAILED, this contains a message that explains why.
- fileSize numberBytes 
- Size of the Thesaurus file in bytes.
- id string
- The provider-assigned unique ID for this managed resource.
- indexId string
- name string
- Name of the Thesaurus.
- roleArn string
- ARN of a role with permission to access the S3 bucket that contains the Thesaurus. For more information, see IAM Roles for Amazon Kendra.
- sourceS3Paths GetThesaurus Source S3Path[] 
- S3 location of the Thesaurus input data. Detailed below.
- status string
- Status of the Thesaurus. It is ready to use when the status is ACTIVE.
- synonymRule numberCount 
- Number of synonym rules in the Thesaurus file.
- {[key: string]: string}
- Metadata that helps organize the Thesaurus you create.
- termCount number
- Number of unique terms in the Thesaurus file. For example, the synonyms a,b,canda=>d, the term count would be 4.
- thesaurusId string
- updatedAt string
- Date and time that the Thesaurus was last updated.
- arn str
- ARN of the Thesaurus.
- created_at str
- Unix datetime that the Thesaurus was created.
- description str
- Description of the Thesaurus.
- error_message str
- When the statusfield value isFAILED, this contains a message that explains why.
- file_size_ intbytes 
- Size of the Thesaurus file in bytes.
- id str
- The provider-assigned unique ID for this managed resource.
- index_id str
- name str
- Name of the Thesaurus.
- role_arn str
- ARN of a role with permission to access the S3 bucket that contains the Thesaurus. For more information, see IAM Roles for Amazon Kendra.
- source_s3_ Sequence[Getpaths Thesaurus Source S3Path] 
- S3 location of the Thesaurus input data. Detailed below.
- status str
- Status of the Thesaurus. It is ready to use when the status is ACTIVE.
- synonym_rule_ intcount 
- Number of synonym rules in the Thesaurus file.
- Mapping[str, str]
- Metadata that helps organize the Thesaurus you create.
- term_count int
- Number of unique terms in the Thesaurus file. For example, the synonyms a,b,canda=>d, the term count would be 4.
- thesaurus_id str
- updated_at str
- Date and time that the Thesaurus was last updated.
- arn String
- ARN of the Thesaurus.
- createdAt String
- Unix datetime that the Thesaurus was created.
- description String
- Description of the Thesaurus.
- errorMessage String
- When the statusfield value isFAILED, this contains a message that explains why.
- fileSize NumberBytes 
- Size of the Thesaurus file in bytes.
- id String
- The provider-assigned unique ID for this managed resource.
- indexId String
- name String
- Name of the Thesaurus.
- roleArn String
- ARN of a role with permission to access the S3 bucket that contains the Thesaurus. For more information, see IAM Roles for Amazon Kendra.
- sourceS3Paths List<Property Map>
- S3 location of the Thesaurus input data. Detailed below.
- status String
- Status of the Thesaurus. It is ready to use when the status is ACTIVE.
- synonymRule NumberCount 
- Number of synonym rules in the Thesaurus file.
- Map<String>
- Metadata that helps organize the Thesaurus you create.
- termCount Number
- Number of unique terms in the Thesaurus file. For example, the synonyms a,b,canda=>d, the term count would be 4.
- thesaurusId String
- updatedAt String
- Date and time that the Thesaurus was last updated.
Supporting Types
GetThesaurusSourceS3Path   
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.