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)
  public bucket!: string | core.StringOut;

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

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

  fileFormat?: string | core.StringOut;

  indexId: string | core.StringOut;

  languageCode?: string | core.StringOut;

  name: string | core.StringOut;

  roleArn: string | core.StringOut;

  s3Path: S3Path;

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

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

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

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

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

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

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

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

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

  @core.attr(S3Path)
  public s3Path!: S3Path;

  @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 updatedAt!: string | core.StringOut;

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

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