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

export interface EndTimeArgs extends core.SchemaArgs {
  hours: number | core.NumberOut;

  minutes: number | core.NumberOut;
}

export class EndTime extends core.Schema<EndTimeArgs> {
  @core.attr(Number, { computed: true })
  public hours!: number | core.NumberOut;

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

export interface StartTimeArgs extends core.SchemaArgs {
  hours: number | core.NumberOut;

  minutes: number | core.NumberOut;
}

export class StartTime extends core.Schema<StartTimeArgs> {
  @core.attr(Number, { computed: true })
  public hours!: number | core.NumberOut;

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

export interface ConfigArgs extends core.SchemaArgs {
  day: string | core.StringOut;

  endTime: core.Array<EndTime> | core.ArrayOut<EndTime>;

  startTime: core.Array<StartTime> | core.ArrayOut<StartTime>;
}

export class Config extends core.Schema<ConfigArgs> {
  @core.attr(String, { computed: true })
  public day!: string | core.StringOut;

  @core.attr(EndTime, { computed: true, kind: "array" })
  public endTime!: core.Array<EndTime> | core.ArrayOut<EndTime>;

  @core.attr(StartTime, { computed: true, kind: "array" })
  public startTime!: core.Array<StartTime> | core.ArrayOut<StartTime>;
}

export interface DsHoursOfOperationArgs {
  hoursOfOperationId?: string | core.StringOut;

  instanceId: string | core.StringOut;

  name?: string | core.StringOut;

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

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

  @core.attr(Config, { computed: true, kind: "array" })
  public config!: core.Array<Config> | core.ArrayOut<Config>;

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

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

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

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

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

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

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

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

  constructor(name: string, args?: DsHoursOfOperationArgs) {
    super(name, "aws_connect_hours_of_operation", args);
  }

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