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

export interface DirectoryServiceConditionalForwarderArgs
  extends core.ResourceArgs {
  directoryId: string | core.StringOut;

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

  remoteDomainName: string | core.StringOut;
}

export class DirectoryServiceConditionalForwarder extends core.Resource<DirectoryServiceConditionalForwarderArgs> {
  @core.attr(String)
  public directoryId!: string | core.StringOut;

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

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

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

  constructor(name: string, args?: DirectoryServiceConditionalForwarderArgs) {
    super(name, "aws_directory_service_conditional_forwarder", args);
  }

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