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

export interface OutboundCallerConfigArgs extends core.SchemaArgs {
  outboundCallerIdName?: string | core.StringOut;

  outboundCallerIdNumberId?: string | core.StringOut;

  outboundFlowId?: string | core.StringOut;
}

export class OutboundCallerConfig extends core.Schema<OutboundCallerConfigArgs> {
  @core.attr(String)
  public outboundCallerIdName?: string | core.StringOut;

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

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

export interface QueueArgs extends core.ResourceArgs {
  description?: string | core.StringOut;

  hoursOfOperationId: string | core.StringOut;

  instanceId: string | core.StringOut;

  maxContacts?: number | core.NumberOut;

  name: string | core.StringOut;

  outboundCallerConfig?: OutboundCallerConfig;

  quickConnectIds?: core.Array<string> | core.ArrayOut<core.StringOut>;

  status?: string | core.StringOut;

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

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

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

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

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

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

  @core.attr(OutboundCallerConfig)
  public outboundCallerConfig?: OutboundCallerConfig;

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

  @core.attr(String, { kind: "array" })
  public quickConnectIds?: core.Array<string> | core.ArrayOut<core.StringOut>;

  @core.attr(String, { computed: true, kind: "array" })
  public quickConnectIdsAssociated!:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

  @core.attr(String, { computed: true })
  public status?: 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>;

  constructor(name: string, args?: QueueArgs) {
    super(name, "aws_connect_queue", args);
  }

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