![]() |
![]()
| ![]() |
![]()
NAMEPaws::WAFV2::Rule USAGEThis class represents one of two things: Arguments in a call to a service Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. Each attribute should be used as a named argument in the calls that expect this type of object. As an example, if Att1 is expected to be a Paws::WAFV2::Rule object: $service_obj->Method(Att1 => { Action => $value, ..., VisibilityConfig => $value }); Results returned from an API call Use accessors for each attribute. If Att1 is expected to be an Paws::WAFV2::Rule object: $result = $service_obj->Method(...); $result->Att1->Action DESCRIPTIONA single rule, which you can use in a WebACL or RuleGroup to identify web requests that you want to allow, block, or count. Each rule includes one top-level Statement that WAF uses to identify matching web requests, and parameters that govern how WAF handles them. ATTRIBUTESAction => Paws::WAFV2::RuleActionThe action that WAF should take on a web request when it matches the rule statement. Settings at the web ACL level can override the rule action setting. This is used only for rules whose statements do not reference a rule group. Rule statements that reference a rule group include "RuleGroupReferenceStatement" and "ManagedRuleGroupStatement". You must specify either this "Action" setting or the rule "OverrideAction" setting, but not both:
REQUIRED Name => StrThe name of the rule. You can't change the name of a "Rule" after you create it. OverrideAction => Paws::WAFV2::OverrideActionThe override action to apply to the rules in a rule group. Used only for rule statements that reference a rule group, like "RuleGroupReferenceStatement" and "ManagedRuleGroupStatement". Set the override action to none to leave the rule actions in effect. Set it to count to only count matches, regardless of the rule action settings. In a Rule, you must specify either this "OverrideAction" setting or the rule "Action" setting, but not both:
REQUIRED Priority => IntIf you define more than one "Rule" in a "WebACL", WAF evaluates each request against the "Rules" in order based on the value of "Priority". WAF processes rules with lower priority first. The priorities don't need to be consecutive, but they must all be different. RuleLabels => ArrayRef[Paws::WAFV2::Label]Labels to apply to web requests that match the rule match statement. WAF applies fully qualified labels to matching web requests. A fully qualified label is the concatenation of a label namespace and a rule label. The rule's rule group or web ACL defines the label namespace. Rules that run after this rule in the web ACL can match against these labels using a "LabelMatchStatement". For each label, provide a case-sensitive string containing optional namespaces and a label name, according to the following guidelines:
For example, "myLabelName" or "nameSpace1:nameSpace2:myLabelName". REQUIRED Statement => Paws::WAFV2::StatementThe WAF processing statement for the rule, for example ByteMatchStatement or SizeConstraintStatement. REQUIRED VisibilityConfig => Paws::WAFV2::VisibilityConfigDefines and enables Amazon CloudWatch metrics and web request sample collection. SEE ALSOThis class forms part of Paws, describing an object used in Paws::WAFV2 BUGS and CONTRIBUTIONSThe source code is located here: <https://github.com/pplu/aws-sdk-perl> Please report bugs to: <https://github.com/pplu/aws-sdk-perl/issues>
|