NAME

Paws::WAFv2::Rule

USAGE

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

DESCRIPTION

This is the latest version of AWS WAF, named AWS WAFV2, released in November, 2019. For information, including how to migrate your AWS WAF resources from the prior release, see the AWS WAF Developer Guide (https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html).

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 AWS WAF uses to identify matching web requests, and parameters that govern how AWS WAF handles them.

ATTRIBUTES

Action => Paws::WAFv2::RuleAction

The action that AWS WAF should take on a web request when it matches the rule's statement. Settings at the web ACL level can override the rule action setting.

REQUIRED Name => Str

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

OverrideAction => Paws::WAFv2::OverrideAction

The action to use to override the rule's Action setting. You can use no override action, in which case the rule action is in effect, or count action, in which case, if the rule matches a web request, it only counts the match.

REQUIRED Priority => Int

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. The priorities don't need to be consecutive, but they must all be different.

REQUIRED Statement => Paws::WAFv2::Statement

The AWS 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.

SEE ALSO

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

BUGS and CONTRIBUTIONS

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