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.OverrideAction

Description

 
Synopsis

Documentation

data OverrideAction Source #

The action to use in the place of the action that results from the rule group evaluation. Set the override action to none to leave the result of the rule group alone. Set it to count to override the result to count only.

You can only use this for rule statements that reference a rule group, like RuleGroupReferenceStatement and ManagedRuleGroupStatement.

This option is usually set to none. It does not affect how the rules in the rule group are evaluated. If you want the rules in the rule group to only count matches, do not use this and instead use the rule action override option, with Count action, in your rule group reference statement settings.

See: newOverrideAction smart constructor.

Constructors

OverrideAction' 

Fields

  • count :: Maybe CountAction

    Override the rule group evaluation result to count only.

    This option is usually set to none. It does not affect how the rules in the rule group are evaluated. If you want the rules in the rule group to only count matches, do not use this and instead use the rule action override option, with Count action, in your rule group reference statement settings.

  • none :: Maybe NoneAction

    Don't override the rule group evaluation result. This is the most common setting.

Instances

Instances details
FromJSON OverrideAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.OverrideAction

ToJSON OverrideAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.OverrideAction

Generic OverrideAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.OverrideAction

Associated Types

type Rep OverrideAction :: Type -> Type #

Read OverrideAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.OverrideAction

Show OverrideAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.OverrideAction

NFData OverrideAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.OverrideAction

Methods

rnf :: OverrideAction -> () #

Eq OverrideAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.OverrideAction

Hashable OverrideAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.OverrideAction

type Rep OverrideAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.OverrideAction

type Rep OverrideAction = D1 ('MetaData "OverrideAction" "Amazonka.WAFV2.Types.OverrideAction" "amazonka-wafv2-2.0-3v3WgpYn7RT5hSd6MsT5dN" 'False) (C1 ('MetaCons "OverrideAction'" 'PrefixI 'True) (S1 ('MetaSel ('Just "count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CountAction)) :*: S1 ('MetaSel ('Just "none") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe NoneAction))))

newOverrideAction :: OverrideAction Source #

Create a value of OverrideAction 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:count:OverrideAction', overrideAction_count - Override the rule group evaluation result to count only.

This option is usually set to none. It does not affect how the rules in the rule group are evaluated. If you want the rules in the rule group to only count matches, do not use this and instead use the rule action override option, with Count action, in your rule group reference statement settings.

$sel:none:OverrideAction', overrideAction_none - Don't override the rule group evaluation result. This is the most common setting.

overrideAction_count :: Lens' OverrideAction (Maybe CountAction) Source #

Override the rule group evaluation result to count only.

This option is usually set to none. It does not affect how the rules in the rule group are evaluated. If you want the rules in the rule group to only count matches, do not use this and instead use the rule action override option, with Count action, in your rule group reference statement settings.

overrideAction_none :: Lens' OverrideAction (Maybe NoneAction) Source #

Don't override the rule group evaluation result. This is the most common setting.