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

export interface InstanceArgs extends core.ResourceArgs {
  autoResolveBestVoicesEnabled?: boolean | core.BooleanOut;

  contactFlowLogsEnabled?: boolean | core.BooleanOut;

  contactLensEnabled?: boolean | core.BooleanOut;

  directoryId?: string | core.StringOut;

  earlyMediaEnabled?: boolean | core.BooleanOut;

  identityManagementType: string | core.StringOut;

  inboundCallsEnabled: boolean | core.BooleanOut;

  instanceAlias?: string | core.StringOut;

  outboundCallsEnabled: boolean | core.BooleanOut;
}

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

  @core.attr(Boolean)
  public autoResolveBestVoicesEnabled?: boolean | core.BooleanOut;

  @core.attr(Boolean)
  public contactFlowLogsEnabled?: boolean | core.BooleanOut;

  @core.attr(Boolean)
  public contactLensEnabled?: boolean | core.BooleanOut;

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

  @core.attr(String)
  public directoryId?: string | core.StringOut;

  @core.attr(Boolean)
  public earlyMediaEnabled?: boolean | core.BooleanOut;

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

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

  @core.attr(Boolean)
  public inboundCallsEnabled!: boolean | core.BooleanOut;

  @core.attr(String)
  public instanceAlias?: string | core.StringOut;

  @core.attr(Boolean)
  public outboundCallsEnabled!: boolean | core.BooleanOut;

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

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

  constructor(name: string, args?: InstanceArgs) {
    super(name, "aws_connect_instance", args);
  }

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