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

export interface VoiceConnectorArgs extends core.ResourceArgs {
  awsRegion?: string | core.StringOut;

  name: string | core.StringOut;

  requireEncryption: boolean | core.BooleanOut;
}

export class VoiceConnector extends core.Resource<VoiceConnectorArgs> {
  @core.attr(String)
  public awsRegion?: string | core.StringOut;

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

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

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

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

  constructor(name: string, args?: VoiceConnectorArgs) {
    super(name, "aws_chime_voice_connector", args);
  }

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