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

export interface ComputeEnvironmentOrderArgs extends core.SchemaArgs {
  computeEnvironment: string | core.StringOut;

  order: number | core.NumberOut;
}

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

  @core.attr(Number, { computed: true })
  public order!: number | core.NumberOut;
}

export interface DsJobQueueArgs {
  name: string | core.StringOut;

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

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

  @core.attr(ComputeEnvironmentOrder, { computed: true, kind: "array" })
  public computeEnvironmentOrder!:
    | core.Array<ComputeEnvironmentOrder>
    | core.ArrayOut<ComputeEnvironmentOrder>;

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

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

  @core.attr(Number, { computed: true })
  public priority!: number | core.NumberOut;

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

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

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

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

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

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

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