Skip to content

Resource: awsKendraThesaurus

Terraform resource for managing an AWS Kendra Thesaurus.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.kendraThesaurus.KendraThesaurus(this, "example", {
  indexId: "${aws_kendra_index.example.id}",
  name: "Example",
  roleArn: "${aws_iam_role.example.arn}",
  sourceS3Path: {
    bucket: "${aws_s3_bucket.example.id}",
    key: "${aws_s3_object.example.key}",
  },
  tags: {
    Name: "Example Kendra Thesaurus",
  },
});

Argument Reference

The following arguments are required:

  • indexId- (Required, Forces new resource) The identifier of the index for a thesaurus.
  • name - (Required) The name for the thesaurus.
  • roleArn - (Required) The IAM (Identity and Access Management) role used to access the thesaurus file in S3.
  • sourceS3Path - (Required) The S3 path where your thesaurus file sits in S3. Detailed below.

The sourceS3Path configuration block supports the following arguments:

  • bucket - (Required) The name of the S3 bucket that contains the file.
  • key - (Required) The name of the file.

The following arguments are optional:

  • description - (Optional) The description for a thesaurus.
  • tags - (Optional) Key-value map of resource tags. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • arn - ARN of the thesaurus.
  • id - The unique identifiers of the thesaurus and index separated by a slash (/).
  • status - The current status of the thesaurus.
  • tagsAll - A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.

Timeouts

Configuration options:

  • create - (Default 30M)
  • update - (Default 30M)
  • delete - (Default 30M)

Import

awsKendraThesaurus can be imported using the unique identifiers of the thesaurus and index separated by a slash (/), e.g.,

$ terraform import aws_kendra_thesaurus.example thesaurus-123456780/idx-8012925589