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<SourceS3PathArgs> {
  @core.attr(String)
  public bucket!: string | core.StringOut;

  @core.attr(String)
  public key!: string | core.StringOut;
}

export interface ThesaurusArgs extends core.ResourceArgs {
  description?: string | core.StringOut;

  indexId: string | core.StringOut;

  name: string | core.StringOut;

  roleArn: string | core.StringOut;

  sourceS3Path: SourceS3Path;

  tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  tagsAll?: core.Map<string, string> | core.MapOut<core.StringOut>;
}

export class Thesaurus extends core.Resource<ThesaurusArgs> {
  @core.attr(String, { computed: true })
  public arn!: string | core.StringOut;

  @core.attr(String)
  public description?: string | core.StringOut;

  @core.attr(String, { computed: true })
  public id!: string | core.StringOut;

  @core.attr(String)
  public indexId!: string | core.StringOut;

  @core.attr(String)
  public name!: string | core.StringOut;

  @core.attr(String)
  public roleArn!: string | core.StringOut;

  @core.attr(SourceS3Path)
  public sourceS3Path!: SourceS3Path;

  @core.attr(String, { computed: true })
  public status!: string | core.StringOut;

  @core.attr(String, { kind: "map" })
  public tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  @core.attr(String, { computed: true, kind: "map" })
  public tagsAll?: core.Map<string, string> | core.MapOut<core.StringOut>;

  @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";
  }
}
