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, { computed: true })
  public outboundCallerIdName!: string | core.StringOut;

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

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

export interface DsQueueArgs {
  /**
   * (Required) Reference to the hosting Amazon Connect Instance
   */
  instanceId: string | core.StringOut;

  /**
   * (Optional) Returns information on a specific Queue by name
   */
  name?: string | core.StringOut;

  /**
   * (Optional) Returns information on a specific Queue by Queue id
   */
  queueId?: string | core.StringOut;

  /**
   * A map of tags assigned to the Queue.
   */
  tags?: core.Map<string, string> | core.MapOut<core.StringOut>;
}

export class DsQueue extends core.Data<DsQueueArgs> {
  /**
   * The Amazon Resource Name (ARN) of the Queue.
   */
  @core.attr(String, { computed: true })
  public arn!: string | core.StringOut;

  /**
   * Specifies the description of the Queue.
   */
  @core.attr(String, { computed: true })
  public description!: string | core.StringOut;

  /**
   * Specifies the identifier of the Hours of Operation.
   */
  @core.attr(String, { computed: true })
  public hoursOfOperationId!: string | core.StringOut;

  /**
   * The identifier of the hosting Amazon Connect Instance and identifier of the Queue separated by a col
   * on (`:`).
   */
  @core.attr(String, { computed: true })
  public id!: string | core.StringOut;

  /**
   * (Required) Reference to the hosting Amazon Connect Instance
   */
  @core.attr(String)
  public instanceId!: string | core.StringOut;

  /**
   * Specifies the maximum number of contacts that can be in the queue before it is considered full. Mini
   * mum value of 0.
   */
  @core.attr(Number, { computed: true })
  public maxContacts!: number | core.NumberOut;

  /**
   * (Optional) Returns information on a specific Queue by name
   */
  @core.attr(String, { computed: true })
  public name?: string | core.StringOut;

  /**
   * A block that defines the outbound caller ID name, number, and outbound whisper flow. The Outbound Ca
   * ller Config block is documented below.
   */
  @core.attr(OutboundCallerConfig, { computed: true, kind: "array" })
  public outboundCallerConfig!:
    | core.Array<OutboundCallerConfig>
    | core.ArrayOut<OutboundCallerConfig>;

  /**
   * (Optional) Returns information on a specific Queue by Queue id
   */
  @core.attr(String, { computed: true })
  public queueId?: string | core.StringOut;

  /**
   * Specifies the description of the Queue. Values are `ENABLED` or `DISABLED`.
   */
  @core.attr(String, { computed: true })
  public status!: string | core.StringOut;

  /**
   * A map of tags assigned to the Queue.
   */
  @core.attr(String, { computed: true, kind: "map" })
  public tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

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

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