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

export interface SettingArgs extends core.SchemaArgs {
  name: string | core.StringOut;

  value: string | core.StringOut;
}

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

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

export interface DsClusterArgs {
  clusterName: string | core.StringOut;
}

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

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

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

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

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

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

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

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

  constructor(name: string, args?: DsClusterArgs) {
    super(name, "aws_ecs_cluster", args);
  }

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