NAME

Paws::WAF::Predicate

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::WAF::Predicate object:

  $service_obj->Method(Att1 => { DataId => $value, ..., Type => $value  });

Results returned from an API call

Use accessors for each attribute. If Att1 is expected to be an Paws::WAF::Predicate object:

  $result = $service_obj->Method(...);
  $result->Att1->DataId

DESCRIPTION

Specifies the ByteMatchSet, IPSet, SqlInjectionMatchSet, XssMatchSet, RegexMatchSet, GeoMatchSet, and SizeConstraintSet objects that you want to add to a Rule and, for each object, indicates whether you want to negate the settings, for example, requests that do NOT originate from the IP address 192.0.2.44.

ATTRIBUTES

REQUIRED DataId => Str

  A unique identifier for a predicate in a C<Rule>, such as
C<ByteMatchSetId> or C<IPSetId>. The ID is returned by the
corresponding C<Create> or C<List> command.

REQUIRED Negated => Bool

  Set C<Negated> to C<False> if you want AWS WAF to allow, block, or
count requests based on the settings in the specified ByteMatchSet,
IPSet, SqlInjectionMatchSet, XssMatchSet, RegexMatchSet, GeoMatchSet,
or SizeConstraintSet. For example, if an C<IPSet> includes the IP
address C<192.0.2.44>, AWS WAF will allow or block requests based on
that IP address.

Set Negated to True if you want AWS WAF to allow or block a request based on the negation of the settings in the ByteMatchSet, IPSet, SqlInjectionMatchSet, XssMatchSet, RegexMatchSet, GeoMatchSet, or SizeConstraintSet. For example, if an IPSet includes the IP address 192.0.2.44, AWS WAF will allow, block, or count requests based on all IP addresses except 192.0.2.44.

REQUIRED Type => Str

  The type of predicate in a C<Rule>, such as C<ByteMatch> or C<IPSet>.

SEE ALSO

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

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