import * as core from "@terrascript/core"; export interface SourceS3PathArgs extends core.SchemaArgs { bucket: string | core.StringOut; key: string | core.StringOut; } export class SourceS3Path extends core.Schema { @core.attr(String) public bucket!: string | core.StringOut; @core.attr(String) public key!: string | core.StringOut; } export interface ThesaurusArgs extends core.ResourceArgs { /** * (Optional) The description for a thesaurus. */ description?: string | core.StringOut; indexId: string | core.StringOut; /** * (Required) The name for the thesaurus. */ name: string | core.StringOut; /** * (Required) The IAM (Identity and Access Management) role used to access the thesaurus file in S3. */ roleArn: string | core.StringOut; /** * (Required) The S3 path where your thesaurus file sits in S3. Detailed below. */ sourceS3Path: SourceS3Path; /** * (Optional) Key-value map of resource tags. If configured with a provider [`default_tags` configurati * on block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configurati * on-block) present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; } export class Thesaurus extends core.Resource { /** * ARN of the thesaurus. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional) The description for a thesaurus. */ @core.attr(String) public description?: string | core.StringOut; /** * The unique identifiers of the thesaurus and index separated by a slash (`/`). */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; @core.attr(String) public indexId!: string | core.StringOut; /** * (Required) The name for the thesaurus. */ @core.attr(String) public name!: string | core.StringOut; /** * (Required) The IAM (Identity and Access Management) role used to access the thesaurus file in S3. */ @core.attr(String) public roleArn!: string | core.StringOut; /** * (Required) The S3 path where your thesaurus file sits in S3. Detailed below. */ @core.attr(SourceS3Path) public sourceS3Path!: SourceS3Path; /** * The current status of the thesaurus. */ @core.attr(String, { computed: true }) public status!: string | core.StringOut; /** * (Optional) Key-value map of resource tags. If configured with a provider [`default_tags` configurati * on block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configurati * on-block) present, tags with matching keys will overwrite those defined at the provider-level. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; @core.attr(String, { computed: true }) public thesaurusId!: string | core.StringOut; constructor(name: string, args?: ThesaurusArgs) { super(name, "aws_kendra_thesaurus", args); } public override getNamespace(): string { return "aws_kendra"; } }