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

export interface AppautoscalingTargetArgs extends core.ResourceArgs {
  maxCapacity: number | core.NumberOut;

  minCapacity: number | core.NumberOut;

  resourceId: string | core.StringOut;

  roleArn?: string | core.StringOut;

  scalableDimension: string | core.StringOut;

  serviceNamespace: string | core.StringOut;
}

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

  @core.attr(Number)
  public maxCapacity!: number | core.NumberOut;

  @core.attr(Number)
  public minCapacity!: number | core.NumberOut;

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

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

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

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

  constructor(name: string, args?: AppautoscalingTargetArgs) {
    super(name, "aws_appautoscaling_target", args);
  }

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