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

export interface VoiceConnectorTerminationArgs extends core.ResourceArgs {
  callingRegions: core.Array<string> | core.ArrayOut<core.StringOut>;

  cidrAllowList: core.Array<string> | core.ArrayOut<core.StringOut>;

  cpsLimit?: number | core.NumberOut;

  defaultPhoneNumber?: string | core.StringOut;

  disabled?: boolean | core.BooleanOut;

  voiceConnectorId: string | core.StringOut;
}

export class VoiceConnectorTermination extends core.Resource<VoiceConnectorTerminationArgs> {
  @core.attr(String, { kind: "array" })
  public callingRegions!: core.Array<string> | core.ArrayOut<core.StringOut>;

  @core.attr(String, { kind: "array" })
  public cidrAllowList!: core.Array<string> | core.ArrayOut<core.StringOut>;

  @core.attr(Number)
  public cpsLimit?: number | core.NumberOut;

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

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

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

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

  constructor(name: string, args?: VoiceConnectorTerminationArgs) {
    super(name, "aws_chime_voice_connector_termination", args);
  }

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