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

export interface V2WebAclAssociationArgs extends core.ResourceArgs {
  resourceArn: string | core.StringOut;

  webAclArn: string | core.StringOut;
}

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

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

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

  constructor(name: string, args?: V2WebAclAssociationArgs) {
    super(name, "aws_wafv2_web_acl_association", args);
  }

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