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

export interface AutoScalingConfigurationVersionArgs extends core.ResourceArgs {
  autoScalingConfigurationName: string | core.StringOut;

  maxConcurrency?: number | core.NumberOut;

  maxSize?: number | core.NumberOut;

  minSize?: number | core.NumberOut;

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

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

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

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

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

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

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

  @core.attr(Number)
  public maxConcurrency?: number | core.NumberOut;

  @core.attr(Number)
  public maxSize?: number | core.NumberOut;

  @core.attr(Number)
  public minSize?: number | core.NumberOut;

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

  @core.attr(String, { kind: "map" })
  public tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

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

  constructor(name: string, args?: AutoScalingConfigurationVersionArgs) {
    super(name, "aws_apprunner_auto_scaling_configuration_version", args);
  }

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