GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Paws::WAFV2::Rule(3) User Contributed Perl Documentation Paws::WAFV2::Rule(3)

Paws::WAFV2::Rule

This 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

A 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.

The 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:

  • If the rule statement does not reference a rule group, use this rule action setting and not the rule override action setting.
  • If the rule statement references a rule group, use the override action setting and not this action setting.

REQUIRED Name => Str

The name of the rule. You can't change the name of a "Rule" after you create it.

The 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:

  • If the rule statement references a rule group, use this override action setting and not the action setting.
  • If the rule statement does not reference a rule group, use the rule action setting and not this rule override action setting.

REQUIRED Priority => Int

If 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.

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:

  • Separate each component of the label with a colon.
  • Each namespace or name can have up to 128 characters.
  • You can specify up to 5 namespaces in a label.
  • Don't use the following reserved words in your label specification: "aws", "waf", "managed", "rulegroup", "webacl", "regexpatternset", or "ipset".

For example, "myLabelName" or "nameSpace1:nameSpace2:myLabelName".

REQUIRED Statement => Paws::WAFV2::Statement

The WAF processing statement for the rule, for example ByteMatchStatement or SizeConstraintStatement.

REQUIRED VisibilityConfig => Paws::WAFV2::VisibilityConfig

Defines and enables Amazon CloudWatch metrics and web request sample collection.

This class forms part of Paws, describing an object used in Paws::WAFV2

The source code is located here: <https://github.com/pplu/aws-sdk-perl>

Please report bugs to: <https://github.com/pplu/aws-sdk-perl/issues>

2022-06-01 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.