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)
  public hours!: number | core.NumberOut;

  @core.attr(Number)
  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)
  public hours!: number | core.NumberOut;

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

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

  endTime: EndTime;

  startTime: StartTime;
}

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

  @core.attr(EndTime)
  public endTime!: EndTime;

  @core.attr(StartTime)
  public startTime!: StartTime;
}

export interface HoursOfOperationArgs extends core.ResourceArgs {
  config: core.Array<Config> | core.ArrayOut<Config>;

  description?: string | core.StringOut;

  instanceId: string | core.StringOut;

  name: string | core.StringOut;

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

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

  timeZone: string | core.StringOut;
}

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

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

  @core.attr(String)
  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)
  public name!: 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>;

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

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

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