Skip to content

Data Source: awsWafregionalRule

awsWafregionalSubscribedRuleGroup retrieves information about a Managed WAF Rule Group from AWS Marketplace for use in WAF Regional (needs to be subscribed to first).

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
const dataAwsWafregionalSubscribedRuleGroupByMetricName =
  new aws.dataAwsWafregionalSubscribedRuleGroup.DataAwsWafregionalSubscribedRuleGroup(
    this,
    "by_metric_name",
    {
      metricName: "F5BotDetectionSignatures",
    }
  );
const dataAwsWafregionalSubscribedRuleGroupByName =
  new aws.dataAwsWafregionalSubscribedRuleGroup.DataAwsWafregionalSubscribedRuleGroup(
    this,
    "by_name",
    {
      name: "F5 Bot Detection Signatures For AWS WAF",
    }
  );
new aws.wafregionalWebAcl.WafregionalWebAcl(this, "acl", {
  rules: [
    {
      priority: 1,
      rule_id: dataAwsWafregionalSubscribedRuleGroupByName.id,
      type: "GROUP",
    },
    {
      priority: 2,
      rule_id: dataAwsWafregionalSubscribedRuleGroupByMetricName.id,
      type: "GROUP",
    },
  ],
});

Argument Reference

The following arguments are supported (at least one needs to be specified):

  • name - (Optional) Name of the WAF rule group.
  • metricName - (Optional) Name of the WAF rule group.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • id - ID of the WAF rule group.