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

export interface VoiceConnectorStreamingArgs extends core.ResourceArgs {
  dataRetention: number | core.NumberOut;

  disabled?: boolean | core.BooleanOut;

  streamingNotificationTargets?:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

  voiceConnectorId: string | core.StringOut;
}

export class VoiceConnectorStreaming extends core.Resource<VoiceConnectorStreamingArgs> {
  @core.attr(Number)
  public dataRetention!: number | core.NumberOut;

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

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

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

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

  constructor(name: string, args?: VoiceConnectorStreamingArgs) {
    super(name, "aws_chime_voice_connector_streaming", args);
  }

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