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

export interface RuleAssociationArgs extends core.ResourceArgs {
  name?: string | core.StringOut;

  resolverRuleId: string | core.StringOut;

  vpcId: string | core.StringOut;
}

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

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

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

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

  constructor(name: string, args?: RuleAssociationArgs) {
    super(name, "aws_route53_resolver_rule_association", args);
  }

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