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

export interface DsRulesArgs {
  nameRegex?: string | core.StringOut;

  ownerId?: string | core.StringOut;

  resolverEndpointId?: string | core.StringOut;

  ruleType?: string | core.StringOut;

  shareStatus?: string | core.StringOut;
}

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

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

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

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

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

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

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

  constructor(name: string, args?: DsRulesArgs) {
    super(name, "aws_route53_resolver_rules", args);
  }

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