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

export interface DsContainerDefinitionArgs {
  containerName: string | core.StringOut;

  taskDefinition: string | core.StringOut;
}

export class DsContainerDefinition extends core.Data<DsContainerDefinitionArgs> {
  @core.attr(String)
  public containerName!: string | core.StringOut;

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

  @core.attr(Boolean, { computed: true })
  public disableNetworking!: boolean | core.BooleanOut;

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

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

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

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

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

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

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

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

  constructor(name: string, args?: DsContainerDefinitionArgs) {
    super(name, "aws_ecs_container_definition", args);
  }

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