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

export interface NamedQueryArgs extends core.ResourceArgs {
  database: string | core.StringOut;

  description?: string | core.StringOut;

  name: string | core.StringOut;

  query: string | core.StringOut;

  workgroup?: string | core.StringOut;
}

export class NamedQuery extends core.Resource<NamedQueryArgs> {
  @core.attr(String)
  public database!: 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 name!: string | core.StringOut;

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

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

  constructor(name: string, args?: NamedQueryArgs) {
    super(name, "aws_athena_named_query", args);
  }

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