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

export interface DsRuleArgs {
  domainName?: string | core.StringOut;

  name?: string | core.StringOut;

  resolverEndpointId?: string | core.StringOut;

  resolverRuleId?: string | core.StringOut;

  ruleType?: string | core.StringOut;

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

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

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

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

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

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

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

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

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

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

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

  constructor(name: string, args?: DsRuleArgs) {
    super(name, "aws_route53_resolver_rule", args);
  }

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