import * as core from "@terrascript/core";

export interface S3PathArgs extends core.SchemaArgs {
  bucket: string | core.StringOut;

  key: string | core.StringOut;
}

export class S3Path extends core.Schema<S3PathArgs> {
  @core.attr(String, { computed: true })
  public bucket!: string | core.StringOut;

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

export interface DsFaqArgs {
  faqId: string | core.StringOut;

  indexId: string | core.StringOut;

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

export class DsFaq extends core.Data<DsFaqArgs> {
  @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(String)
  public faqId!: string | core.StringOut;

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

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

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

  @core.attr(String, { computed: true })
  public languageCode!: 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(S3Path, { computed: true, kind: "array" })
  public s3Path!: core.Array<S3Path> | core.ArrayOut<S3Path>;

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

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

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

  constructor(name: string, args?: DsFaqArgs) {
    super(name, "aws_kendra_faq", args);
  }

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