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

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

  vpcId: string | core.StringOut;
}

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

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

export interface DirectoryServiceRegionArgs extends core.ResourceArgs {
  desiredNumberOfDomainControllers?: number | core.NumberOut;

  directoryId: string | core.StringOut;

  regionName: string | core.StringOut;

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

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

  vpcSettings: VpcSettings;
}

export class DirectoryServiceRegion extends core.Resource<DirectoryServiceRegionArgs> {
  @core.attr(Number, { computed: true })
  public desiredNumberOfDomainControllers?: number | core.NumberOut;

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

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

  @core.attr(String)
  public regionName!: 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(VpcSettings)
  public vpcSettings!: VpcSettings;

  constructor(name: string, args?: DirectoryServiceRegionArgs) {
    super(name, "aws_directory_service_region", args);
  }

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