Data Source: awsWafRule
awsWafSubscribedRuleGroup
retrieves information about a Managed WAF Rule Group from AWS Marketplace (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 dataAwsWafSubscribedRuleGroupByMetricName =
new aws.dataAwsWafSubscribedRuleGroup.DataAwsWafSubscribedRuleGroup(
this,
"by_metric_name",
{
metricName: "F5BotDetectionSignatures",
}
);
const dataAwsWafSubscribedRuleGroupByName =
new aws.dataAwsWafSubscribedRuleGroup.DataAwsWafSubscribedRuleGroup(
this,
"by_name",
{
name: "F5 Bot Detection Signatures For AWS WAF",
}
);
new aws.wafWebAcl.WafWebAcl(this, "acl", {
rules: [
{
priority: 1,
ruleId: dataAwsWafSubscribedRuleGroupByName.id,
type: "GROUP",
},
{
priority: 2,
ruleId: dataAwsWafSubscribedRuleGroupByMetricName.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.