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

export interface LexBotArgs extends core.SchemaArgs {
  lexRegion?: string | core.StringOut;

  name: string | core.StringOut;
}

export class LexBot extends core.Schema<LexBotArgs> {
  @core.attr(String, { computed: true })
  public lexRegion?: string | core.StringOut;

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

export interface BotAssociationArgs extends core.ResourceArgs {
  /**
   * (Required) The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of
   * the instance.
   */
  instanceId: string | core.StringOut;

  /**
   * (Required) Configuration information of an Amazon Lex (V1) bot. Detailed below.
   */
  lexBot: LexBot;
}

export class BotAssociation extends core.Resource<BotAssociationArgs> {
  /**
   * The Amazon Connect instance ID, Lex (V1) bot name, and Lex (V1) bot region separated by colons (`:`)
   * .
   */
  @core.attr(String, { computed: true })
  public id!: string | core.StringOut;

  /**
   * (Required) The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of
   * the instance.
   */
  @core.attr(String)
  public instanceId!: string | core.StringOut;

  /**
   * (Required) Configuration information of an Amazon Lex (V1) bot. Detailed below.
   */
  @core.attr(LexBot)
  public lexBot!: LexBot;

  constructor(name: string, args?: BotAssociationArgs) {
    super(name, "aws_connect_bot_association", args);
  }

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