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

export interface QueueConfigsArgs extends core.SchemaArgs {
  channel: string | core.StringOut;

  delay: number | core.NumberOut;

  priority: number | core.NumberOut;

  queueArn: string | core.StringOut;

  queueId: string | core.StringOut;

  queueName: string | core.StringOut;
}

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

  @core.attr(Number, { computed: true })
  public delay!: number | core.NumberOut;

  @core.attr(Number, { computed: true })
  public priority!: number | core.NumberOut;

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

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

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

export interface MediaConcurrenciesArgs extends core.SchemaArgs {
  channel: string | core.StringOut;

  concurrency: number | core.NumberOut;
}

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

  @core.attr(Number, { computed: true })
  public concurrency!: number | core.NumberOut;
}

export interface DsRoutingProfileArgs {
  instanceId: string | core.StringOut;

  name?: string | core.StringOut;

  routingProfileId?: string | core.StringOut;

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

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

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

  @core.attr(String, { computed: true })
  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(MediaConcurrencies, { computed: true, kind: "array" })
  public mediaConcurrencies!:
    | core.Array<MediaConcurrencies>
    | core.ArrayOut<MediaConcurrencies>;

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

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

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

  @core.attr(String, { computed: true, kind: "map" })
  public tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  constructor(name: string, args?: DsRoutingProfileArgs) {
    super(name, "aws_connect_routing_profile", args);
  }

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