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

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, { kind: "array" })
  public subnetIds!: core.Array<string> | core.ArrayOut<core.StringOut>;

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

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, { kind: "array" })
  public customerDnsIps!: core.Array<string> | core.ArrayOut<core.StringOut>;

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

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

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

export interface DirectoryServiceDirectoryArgs extends core.ResourceArgs {
  alias?: string | core.StringOut;

  connectSettings?: ConnectSettings;

  description?: string | core.StringOut;

  desiredNumberOfDomainControllers?: number | core.NumberOut;

  edition?: string | core.StringOut;

  enableSso?: boolean | core.BooleanOut;

  name: string | core.StringOut;

  password: string | core.StringOut;

  shortName?: string | core.StringOut;

  size?: string | core.StringOut;

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

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

  type?: string | core.StringOut;

  vpcSettings?: VpcSettings;
}

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

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

  @core.attr(ConnectSettings)
  public connectSettings?: ConnectSettings;

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

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

  @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)
  public enableSso?: boolean | core.BooleanOut;

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

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

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

  @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, { kind: "map" })
  public tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

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

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

  @core.attr(VpcSettings)
  public vpcSettings?: VpcSettings;

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

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