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

export interface PhoneConfigArgs extends core.SchemaArgs {
  phoneNumber: string | core.StringOut;
}

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

export interface QueueConfigArgs extends core.SchemaArgs {
  contactFlowId: string | core.StringOut;

  queueId: string | core.StringOut;
}

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

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

export interface UserConfigArgs extends core.SchemaArgs {
  contactFlowId: string | core.StringOut;

  userId: string | core.StringOut;
}

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

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

export interface QuickConnectConfigArgs extends core.SchemaArgs {
  phoneConfig: core.Array<PhoneConfig> | core.ArrayOut<PhoneConfig>;

  queueConfig: core.Array<QueueConfig> | core.ArrayOut<QueueConfig>;

  quickConnectType: string | core.StringOut;

  userConfig: core.Array<UserConfig> | core.ArrayOut<UserConfig>;
}

export class QuickConnectConfig extends core.Schema<QuickConnectConfigArgs> {
  @core.attr(PhoneConfig, { computed: true, kind: "array" })
  public phoneConfig!: core.Array<PhoneConfig> | core.ArrayOut<PhoneConfig>;

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

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

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

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

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

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

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

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

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

  /**
   * The identifier of the hosting Amazon Connect Instance and identifier of the Quick Connect separated
   * by a colon (`:`).
   */
  @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;

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

  /**
   * A block that defines the configuration information for the Quick Connect: `quick_connect_type` and o
   * ne of `phone_config`, `queue_config`, `user_config` . The Quick Connect Config block is documented b
   * elow.
   */
  @core.attr(QuickConnectConfig, { computed: true, kind: "array" })
  public quickConnectConfig!:
    | core.Array<QuickConnectConfig>
    | core.ArrayOut<QuickConnectConfig>;

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

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

  constructor(name: string, args?: DsQuickConnectArgs) {
    super(name, "aws_connect_quick_connect", args);
  }

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