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

export interface DsComputeEnvironmentArgs {
  computeEnvironmentName: string | core.StringOut;

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

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

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

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

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

  @core.attr(String, { computed: true })
  public serviceRole!: 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>;

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

  constructor(name: string, args?: DsComputeEnvironmentArgs) {
    super(name, "aws_batch_compute_environment", args);
  }

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