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

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

  userId: string | core.StringOut;
}

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

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

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

export class PhoneConfig extends core.Schema<PhoneConfigArgs> {
  @core.attr(String)
  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)
  public contactFlowId!: string | core.StringOut;

  @core.attr(String)
  public queueId!: 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, { kind: "array" })
  public phoneConfig?: core.Array<PhoneConfig> | core.ArrayOut<PhoneConfig>;

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

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

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

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

  instanceId: string | core.StringOut;

  name: string | core.StringOut;

  quickConnectConfig: QuickConnectConfig;

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

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

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

  @core.attr(String)
  public description?: 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(QuickConnectConfig)
  public quickConnectConfig!: QuickConnectConfig;

  @core.attr(String, { computed: true })
  public quickConnectId!: 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?: QuickConnectArgs) {
    super(name, "aws_connect_quick_connect", args);
  }

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