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

export interface ScheduleArgs extends core.ResourceArgs {
  autoscalingGroupName: string | core.StringOut;

  desiredCapacity?: number | core.NumberOut;

  endTime?: string | core.StringOut;

  maxSize?: number | core.NumberOut;

  minSize?: number | core.NumberOut;

  recurrence?: string | core.StringOut;

  scheduledActionName: string | core.StringOut;

  startTime?: string | core.StringOut;

  timeZone?: string | core.StringOut;
}

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

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

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

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

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

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

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

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

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

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

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

  constructor(name: string, args?: ScheduleArgs) {
    super(name, "aws_autoscaling_schedule", args);
  }

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