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

export interface ConnectSettingsArgs extends core.SchemaArgs {
  availabilityZones: core.Array<string> | core.ArrayOut<core.StringOut>;

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

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

  customerUsername: string | core.StringOut;

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

  vpcId: string | core.StringOut;
}

export class ConnectSettings extends core.Schema<ConnectSettingsArgs> {
  @core.attr(String, { computed: true, kind: "array" })
  public availabilityZones!: core.Array<string> | core.ArrayOut<core.StringOut>;

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

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

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

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

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

export interface VpcSettingsArgs extends core.SchemaArgs {
  availabilityZones: core.Array<string> | core.ArrayOut<core.StringOut>;

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

  vpcId: string | core.StringOut;
}

export class VpcSettings extends core.Schema<VpcSettingsArgs> {
  @core.attr(String, { computed: true, kind: "array" })
  public availabilityZones!: core.Array<string> | core.ArrayOut<core.StringOut>;

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

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

export interface RadiusSettingsArgs extends core.SchemaArgs {
  authenticationProtocol: 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;

  useSameUsername: boolean | core.BooleanOut;
}

export class RadiusSettings extends core.Schema<RadiusSettingsArgs> {
  @core.attr(String, { computed: true })
  public authenticationProtocol!: string | core.StringOut;

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

  @core.attr(Number, { computed: true })
  public radiusPort!: number | core.NumberOut;

  @core.attr(Number, { computed: true })
  public radiusRetries!: number | core.NumberOut;

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

  @core.attr(Number, { computed: true })
  public radiusTimeout!: number | core.NumberOut;

  @core.attr(Boolean, { computed: true })
  public useSameUsername!: boolean | core.BooleanOut;
}

export interface DsDirectoryServiceDirectoryArgs {
  directoryId: string | core.StringOut;

  tags?: core.Map<string, string> | core.MapOut<core.StringOut>;
}

export class DsDirectoryServiceDirectory extends core.Data<DsDirectoryServiceDirectoryArgs> {
  @core.attr(String, { computed: true })
  public accessUrl!: string | core.StringOut;

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

  @core.attr(ConnectSettings, { computed: true, kind: "array" })
  public connectSettings!:
    | core.Array<ConnectSettings>
    | core.ArrayOut<ConnectSettings>;

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

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

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

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

  @core.attr(Boolean, { computed: true })
  public enableSso!: boolean | core.BooleanOut;

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

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

  @core.attr(RadiusSettings, { computed: true, kind: "array" })
  public radiusSettings!:
    | core.Array<RadiusSettings>
    | core.ArrayOut<RadiusSettings>;

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

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

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

  @core.attr(String, { computed: true, kind: "map" })
  public tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

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

  @core.attr(VpcSettings, { computed: true, kind: "array" })
  public vpcSettings!: core.Array<VpcSettings> | core.ArrayOut<VpcSettings>;

  constructor(name: string, args?: DsDirectoryServiceDirectoryArgs) {
    super(name, "aws_directory_service_directory", args);
  }

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