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

export interface DsTaskDefinitionArgs {
  taskDefinition: string | core.StringOut;
}

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

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

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

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

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

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

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

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

  constructor(name: string, args?: DsTaskDefinitionArgs) {
    super(name, "aws_ecs_task_definition", args);
  }

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