libZSservicesZSamazonka-waf-regionalZSamazonka-waf-regional
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.WAFRegional.Types.Predicate

Description

 
Synopsis

Documentation

data Predicate Source #

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.

Constructors

Predicate' 

Fields

  • negated :: Bool

    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.

  • type' :: PredicateType

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

  • dataId :: Text

    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.

Instances

Instances details
Eq Predicate Source # 
Instance details

Defined in Amazonka.WAFRegional.Types.Predicate

Read Predicate Source # 
Instance details

Defined in Amazonka.WAFRegional.Types.Predicate

Show Predicate Source # 
Instance details

Defined in Amazonka.WAFRegional.Types.Predicate

Generic Predicate Source # 
Instance details

Defined in Amazonka.WAFRegional.Types.Predicate

Associated Types

type Rep Predicate :: Type -> Type #

NFData Predicate Source # 
Instance details

Defined in Amazonka.WAFRegional.Types.Predicate

Methods

rnf :: Predicate -> () #

Hashable Predicate Source # 
Instance details

Defined in Amazonka.WAFRegional.Types.Predicate

ToJSON Predicate Source # 
Instance details

Defined in Amazonka.WAFRegional.Types.Predicate

FromJSON Predicate Source # 
Instance details

Defined in Amazonka.WAFRegional.Types.Predicate

type Rep Predicate Source # 
Instance details

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))))

newPredicate Source #

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.

predicate_dataId :: Lens' Predicate Text Source #

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.