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)
  public channel!: string | core.StringOut;

  @core.attr(Number)
  public delay!: number | core.NumberOut;

  @core.attr(Number)
  public priority!: number | core.NumberOut;

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

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

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

export interface QueueConfigsAssociatedArgs 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 QueueConfigsAssociated extends core.Schema<QueueConfigsAssociatedArgs> {
  @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)
  public channel!: string | core.StringOut;

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

export interface RoutingProfileArgs extends core.ResourceArgs {
  defaultOutboundQueueId: string | core.StringOut;

  description: string | core.StringOut;

  instanceId: string | core.StringOut;

  mediaConcurrencies:
    | core.Array<MediaConcurrencies>
    | core.ArrayOut<MediaConcurrencies>;

  name: string | core.StringOut;

  queueConfigs?: core.Array<QueueConfigs> | core.ArrayOut<QueueConfigs>;

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

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

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

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

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

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

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

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

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