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, { computed: true })
  public bucket!: string | core.StringOut;

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

export interface DsThesaurusArgs {
  indexId: string | core.StringOut;

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

  thesaurusId: string | core.StringOut;
}

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

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

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

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

  @core.attr(Number, { computed: true })
  public fileSizeBytes!: number | core.NumberOut;

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

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

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

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

  @core.attr(SourceS3Path, { computed: true, kind: "array" })
  public sourceS3Path!: core.Array<SourceS3Path> | core.ArrayOut<SourceS3Path>;

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

  @core.attr(Number, { computed: true })
  public synonymRuleCount!: number | core.NumberOut;

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

  @core.attr(Number, { computed: true })
  public termCount!: number | core.NumberOut;

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

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

  constructor(name: string, args?: DsThesaurusArgs) {
    super(name, "aws_kendra_thesaurus", args);
  }

  public override getNamespace(): string {
    return "aws_kendra";
  }
}
