Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data Predicate = Predicate' {}
- newPredicate :: Bool -> PredicateType -> Text -> Predicate
- predicate_negated :: Lens' Predicate Bool
- predicate_type :: Lens' Predicate PredicateType
- predicate_dataId :: Lens' Predicate Text
Documentation
This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide.
For the latest version of AWS WAF, use the AWS WAFV2 API and see the AWS WAF Developer Guide. With the latest version, AWS WAF has a single set of endpoints for regional and global use.
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.
See: newPredicate
smart constructor.
Predicate' | |
|
Instances
Eq Predicate Source # | |
Read Predicate Source # | |
Show Predicate Source # | |
Generic Predicate Source # | |
NFData Predicate Source # | |
Defined in Amazonka.WAFRegional.Types.Predicate | |
Hashable Predicate Source # | |
Defined in Amazonka.WAFRegional.Types.Predicate | |
ToJSON Predicate Source # | |
Defined in Amazonka.WAFRegional.Types.Predicate | |
FromJSON Predicate Source # | |
type Rep Predicate Source # | |
Defined in Amazonka.WAFRegional.Types.Predicate type Rep Predicate = D1 ('MetaData "Predicate" "Amazonka.WAFRegional.Types.Predicate" "libZSservicesZSamazonka-waf-regionalZSamazonka-waf-regional" 'False) (C1 ('MetaCons "Predicate'" 'PrefixI 'True) (S1 ('MetaSel ('Just "negated") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PredicateType) :*: S1 ('MetaSel ('Just "dataId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))) |
:: Bool | |
-> PredicateType | |
-> Text | |
-> Predicate |
Create a value of Predicate
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:negated:Predicate'
, predicate_negated
- Set Negated
to 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 IPSet
includes the IP address
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
.
$sel:type':Predicate'
, predicate_type
- The type of predicate in a Rule
, such as ByteMatch
or IPSet
.
$sel:dataId:Predicate'
, predicate_dataId
- A unique identifier for a predicate in a Rule
, such as
ByteMatchSetId
or IPSetId
. The ID is returned by the corresponding
Create
or List
command.
predicate_negated :: Lens' Predicate Bool Source #
Set Negated
to 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 IPSet
includes the IP address
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
.
predicate_type :: Lens' Predicate PredicateType Source #
The type of predicate in a Rule
, such as ByteMatch
or IPSet
.