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

export interface JobQueueArgs extends core.ResourceArgs {
  computeEnvironments: core.Array<string> | core.ArrayOut<core.StringOut>;

  name: string | core.StringOut;

  priority: number | core.NumberOut;

  schedulingPolicyArn?: string | core.StringOut;

  state: string | core.StringOut;

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

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

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

  @core.attr(String, { kind: "array" })
  public computeEnvironments!:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

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

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

  @core.attr(Number)
  public priority!: number | core.NumberOut;

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

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

  constructor(name: string, args?: JobQueueArgs) {
    super(name, "aws_batch_job_queue", args);
  }

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