RuleGroupRule constructor
- required Input<
RuleGroupRuleAction> action, - Input<
RuleGroupRuleCaptchaConfig?> ? captchaConfig, - required Input<
String> name, - required Input<
int> priority, - Input<
List< ? ruleLabels,RuleGroupRuleRuleLabel> ?> - required Input<
RuleGroupRuleStatement> statement, - required Input<
RuleGroupRuleVisibilityConfig> visibilityConfig,
Creates a new RuleGroupRule.
action The action that AWS WAF should take on a web request when it matches the rule's statement. Settings at the aws.wafv2.WebAcl level can override the rule action setting. See Action below for details.
captchaConfig Specifies how AWS WAF should handle CAPTCHA evaluations. See Captcha Configuration below for details.
name A friendly name of the rule.
priority If you define more than one Rule in a WebACL, AWS WAF evaluates each request against the rules in order based on the value of priority. AWS WAF processes rules with lower priority first.
ruleLabels Labels to apply to web requests that match the rule match statement. See Rule Label below for details.
statement The AWS WAF processing statement for the rule, for example byteMatchStatement or geoMatchStatement. See Statement below for details.
visibilityConfig Defines and enables Amazon CloudWatch metrics and web request sample collection. See Visibility Configuration below for details.
Implementation
const RuleGroupRule({
required this.action,
this.captchaConfig,
required this.name,
required this.priority,
this.ruleLabels,
required this.statement,
required this.visibilityConfig,
});