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 DsQuerySuggestionsBlockListArgs {
  indexId: string | core.StringOut;

  querySuggestionsBlockListId: string | core.StringOut;

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

export class DsQuerySuggestionsBlockList extends core.Data<DsQuerySuggestionsBlockListArgs> {
  @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(Number, { computed: true })
  public itemCount!: number | core.NumberOut;

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

  @core.attr(String)
  public querySuggestionsBlockListId!: 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(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?: DsQuerySuggestionsBlockListArgs) {
    super(name, "aws_kendra_query_suggestions_block_list", args);
  }

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