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

export interface DsServiceArgs {
  clusterArn: string | core.StringOut;

  serviceName: string | core.StringOut;

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

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

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

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

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

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

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

  @core.attr(String)
  public serviceName!: 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 taskDefinition!: string | core.StringOut;

  constructor(name: string, args?: DsServiceArgs) {
    super(name, "aws_ecs_service", args);
  }

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