amazonka-wafv2-2.0: Amazon WAFV2 SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.WAFV2.Types.Condition

Description

 
Synopsis

Documentation

data Condition Source #

A single match condition for a Filter.

See: newCondition smart constructor.

Constructors

Condition' 

Fields

  • actionCondition :: Maybe ActionCondition

    A single action condition. This is the action setting that a log record must contain in order to meet the condition.

  • labelNameCondition :: Maybe LabelNameCondition

    A single label name condition. This is the fully qualified label name that a log record must contain in order to meet the condition. Fully qualified labels have a prefix, optional namespaces, and label name. The prefix identifies the rule group or web ACL context of the rule that added the label.

Instances

Instances details
FromJSON Condition Source # 
Instance details

Defined in Amazonka.WAFV2.Types.Condition

ToJSON Condition Source # 
Instance details

Defined in Amazonka.WAFV2.Types.Condition

Generic Condition Source # 
Instance details

Defined in Amazonka.WAFV2.Types.Condition

Associated Types

type Rep Condition :: Type -> Type #

Read Condition Source # 
Instance details

Defined in Amazonka.WAFV2.Types.Condition

Show Condition Source # 
Instance details

Defined in Amazonka.WAFV2.Types.Condition

NFData Condition Source # 
Instance details

Defined in Amazonka.WAFV2.Types.Condition

Methods

rnf :: Condition -> () #

Eq Condition Source # 
Instance details

Defined in Amazonka.WAFV2.Types.Condition

Hashable Condition Source # 
Instance details

Defined in Amazonka.WAFV2.Types.Condition

type Rep Condition Source # 
Instance details

Defined in Amazonka.WAFV2.Types.Condition

type Rep Condition = D1 ('MetaData "Condition" "Amazonka.WAFV2.Types.Condition" "amazonka-wafv2-2.0-3v3WgpYn7RT5hSd6MsT5dN" 'False) (C1 ('MetaCons "Condition'" 'PrefixI 'True) (S1 ('MetaSel ('Just "actionCondition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ActionCondition)) :*: S1 ('MetaSel ('Just "labelNameCondition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LabelNameCondition))))

newCondition :: Condition Source #

Create a value of Condition 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:actionCondition:Condition', condition_actionCondition - A single action condition. This is the action setting that a log record must contain in order to meet the condition.

$sel:labelNameCondition:Condition', condition_labelNameCondition - A single label name condition. This is the fully qualified label name that a log record must contain in order to meet the condition. Fully qualified labels have a prefix, optional namespaces, and label name. The prefix identifies the rule group or web ACL context of the rule that added the label.

condition_actionCondition :: Lens' Condition (Maybe ActionCondition) Source #

A single action condition. This is the action setting that a log record must contain in order to meet the condition.

condition_labelNameCondition :: Lens' Condition (Maybe LabelNameCondition) Source #

A single label name condition. This is the fully qualified label name that a log record must contain in order to meet the condition. Fully qualified labels have a prefix, optional namespaces, and label name. The prefix identifies the rule group or web ACL context of the rule that added the label.