Class CfnThesaurus

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, IEnvironmentAware, IThesaurusRef, ITaggableV2, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)", date="2026-09-02T11:03:12.362Z") @Stability(Stable) public class CfnThesaurus extends CfnResource implements IInspectable, IThesaurusRef, ITaggableV2
A thesaurus for an Amazon Kendra index.

The thesaurus contains a list of synonyms in Solr format.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.kendra.*;
 CfnThesaurus cfnThesaurus = CfnThesaurus.Builder.create(this, "MyCfnThesaurus")
         .indexId("indexId")
         .name("name")
         .roleArn("roleArn")
         .sourceS3Path(S3PathProperty.builder()
                 .bucket("bucket")
                 .key("key")
                 .build())
         // the properties below are optional
         .description("description")
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnThesaurus

      protected CfnThesaurus(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnThesaurus

      protected CfnThesaurus(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnThesaurus

      @Stability(Stable) public CfnThesaurus(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnThesaurusProps props)
      Create a new AWS::Kendra::Thesaurus.

      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • arnForThesaurus

      @Stability(Stable) @NotNull public static String arnForThesaurus(@NotNull IThesaurusRef resource)
      Parameters:
      resource - This parameter is required.
    • isCfnThesaurus

      @Stability(Stable) @NotNull public static Boolean isCfnThesaurus(@NotNull Object x)
      Checks whether the given object is a CfnThesaurus.

      Parameters:
      x - This parameter is required.
    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      The Amazon Resource Name (ARN) of the thesaurus.
    • getAttrId

      @Stability(Stable) @NotNull public String getAttrId()
      The identifier of the thesaurus.
    • getCdkTagManager

      @Stability(Stable) @NotNull public TagManager getCdkTagManager()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getCdkTagManager in interface ITaggableV2
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getCfnPropertyNames

      @Stability(Stable) @NotNull protected Map<String,String> getCfnPropertyNames()
      Overrides:
      getCfnPropertyNames in class CfnResource
    • getThesaurusRef

      @Stability(Stable) @NotNull public ThesaurusReference getThesaurusRef()
      A reference to a Thesaurus resource.
      Specified by:
      getThesaurusRef in interface IThesaurusRef
    • getIndexId

      @Stability(Stable) @NotNull public String getIndexId()
      The identifier of the index for the thesaurus.
    • setIndexId

      @Stability(Stable) public void setIndexId(@NotNull String value)
      The identifier of the index for the thesaurus.
    • getName

      @Stability(Stable) @NotNull public String getName()
      A name for the thesaurus.
    • setName

      @Stability(Stable) public void setName(@NotNull String value)
      A name for the thesaurus.
    • getRoleArn

      @Stability(Stable) @NotNull public String getRoleArn()
      An IAM role that gives Amazon Kendra permissions to access the thesaurus file specified in SourceS3Path.
    • setRoleArn

      @Stability(Stable) public void setRoleArn(@NotNull String value)
      An IAM role that gives Amazon Kendra permissions to access the thesaurus file specified in SourceS3Path.
    • getSourceS3Path

      @Stability(Stable) @NotNull public Object getSourceS3Path()
      Information required to find a specific file in an Amazon S3 bucket.

      Returns union: either IResolvable or CfnThesaurus.S3PathProperty

    • setSourceS3Path

      @Stability(Stable) public void setSourceS3Path(@NotNull IResolvable value)
      Information required to find a specific file in an Amazon S3 bucket.
    • setSourceS3Path

      @Stability(Stable) public void setSourceS3Path(@NotNull CfnThesaurus.S3PathProperty value)
      Information required to find a specific file in an Amazon S3 bucket.
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
      A description for the thesaurus.
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
      A description for the thesaurus.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      A list of key-value pairs that identify or categorize the thesaurus.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      A list of key-value pairs that identify or categorize the thesaurus.