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

export interface CredentialsArgs extends core.SchemaArgs {
  password: string | core.StringOut;

  username: string | core.StringOut;
}

export class Credentials extends core.Schema<CredentialsArgs> {
  @core.attr(String)
  public password!: string | core.StringOut;

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

export interface VoiceConnectorTerminationCredentialsArgs
  extends core.ResourceArgs {
  credentials: core.Array<Credentials> | core.ArrayOut<Credentials>;

  voiceConnectorId: string | core.StringOut;
}

export class VoiceConnectorTerminationCredentials extends core.Resource<VoiceConnectorTerminationCredentialsArgs> {
  @core.attr(Credentials, { kind: "array" })
  public credentials!: core.Array<Credentials> | core.ArrayOut<Credentials>;

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

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

  constructor(name: string, args?: VoiceConnectorTerminationCredentialsArgs) {
    super(name, "aws_chime_voice_connector_termination_credentials", args);
  }

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