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

export interface ScalableTargetActionArgs extends core.SchemaArgs {
  maxCapacity?: string | core.StringOut;

  minCapacity?: string | core.StringOut;
}

export class ScalableTargetAction extends core.Schema<ScalableTargetActionArgs> {
  @core.attr(String)
  public maxCapacity?: string | core.StringOut;

  @core.attr(String)
  public minCapacity?: string | core.StringOut;
}

export interface AppautoscalingScheduledActionArgs extends core.ResourceArgs {
  endTime?: string | core.StringOut;

  name: string | core.StringOut;

  resourceId: string | core.StringOut;

  scalableDimension: string | core.StringOut;

  scalableTargetAction: ScalableTargetAction;

  schedule: string | core.StringOut;

  serviceNamespace: string | core.StringOut;

  startTime?: string | core.StringOut;

  timezone?: string | core.StringOut;
}

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

  @core.attr(String)
  public endTime?: string | core.StringOut;

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

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

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

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

  @core.attr(ScalableTargetAction)
  public scalableTargetAction!: ScalableTargetAction;

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

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

  @core.attr(String)
  public startTime?: string | core.StringOut;

  @core.attr(String)
  public timezone?: string | core.StringOut;

  constructor(name: string, args?: AppautoscalingScheduledActionArgs) {
    super(name, "aws_appautoscaling_scheduled_action", args);
  }

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