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

export interface DirectoryServiceRadiusSettingsArgs extends core.ResourceArgs {
  authenticationProtocol: string | core.StringOut;

  directoryId: string | core.StringOut;

  displayLabel: string | core.StringOut;

  radiusPort: number | core.NumberOut;

  radiusRetries: number | core.NumberOut;

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

  radiusTimeout: number | core.NumberOut;

  sharedSecret: string | core.StringOut;

  useSameUsername?: boolean | core.BooleanOut;
}

export class DirectoryServiceRadiusSettings extends core.Resource<DirectoryServiceRadiusSettingsArgs> {
  @core.attr(String)
  public authenticationProtocol!: string | core.StringOut;

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

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

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

  @core.attr(Number)
  public radiusPort!: number | core.NumberOut;

  @core.attr(Number)
  public radiusRetries!: number | core.NumberOut;

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

  @core.attr(Number)
  public radiusTimeout!: number | core.NumberOut;

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

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

  constructor(name: string, args?: DirectoryServiceRadiusSettingsArgs) {
    super(name, "aws_directory_service_radius_settings", args);
  }

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