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

Description

 
Synopsis

Documentation

data RuleActionOverride Source #

Action setting to use in the place of a rule action that is configured inside the rule group. You specify one override for each rule whose action you want to change.

You can use overrides for testing, for example you can override all of rule actions to Count and then monitor the resulting count metrics to understand how the rule group would handle your web traffic. You can also permanently override some or all actions, to modify how the rule group manages your web traffic.

See: newRuleActionOverride smart constructor.

Constructors

RuleActionOverride' 

Fields

  • name :: Text

    The name of the rule to override.

  • actionToUse :: RuleAction

    The override action to use, in place of the configured action of the rule in the rule group.

Instances

Instances details
FromJSON RuleActionOverride Source # 
Instance details

Defined in Amazonka.WAFV2.Types.RuleActionOverride

ToJSON RuleActionOverride Source # 
Instance details

Defined in Amazonka.WAFV2.Types.RuleActionOverride

Generic RuleActionOverride Source # 
Instance details

Defined in Amazonka.WAFV2.Types.RuleActionOverride

Associated Types

type Rep RuleActionOverride :: Type -> Type #

Read RuleActionOverride Source # 
Instance details

Defined in Amazonka.WAFV2.Types.RuleActionOverride

Show RuleActionOverride Source # 
Instance details

Defined in Amazonka.WAFV2.Types.RuleActionOverride

NFData RuleActionOverride Source # 
Instance details

Defined in Amazonka.WAFV2.Types.RuleActionOverride

Methods

rnf :: RuleActionOverride -> () #

Eq RuleActionOverride Source # 
Instance details

Defined in Amazonka.WAFV2.Types.RuleActionOverride

Hashable RuleActionOverride Source # 
Instance details

Defined in Amazonka.WAFV2.Types.RuleActionOverride

type Rep RuleActionOverride Source # 
Instance details

Defined in Amazonka.WAFV2.Types.RuleActionOverride

type Rep RuleActionOverride = D1 ('MetaData "RuleActionOverride" "Amazonka.WAFV2.Types.RuleActionOverride" "amazonka-wafv2-2.0-3v3WgpYn7RT5hSd6MsT5dN" 'False) (C1 ('MetaCons "RuleActionOverride'" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "actionToUse") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 RuleAction)))

newRuleActionOverride Source #

Create a value of RuleActionOverride 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:name:RuleActionOverride', ruleActionOverride_name - The name of the rule to override.

$sel:actionToUse:RuleActionOverride', ruleActionOverride_actionToUse - The override action to use, in place of the configured action of the rule in the rule group.

ruleActionOverride_name :: Lens' RuleActionOverride Text Source #

The name of the rule to override.

ruleActionOverride_actionToUse :: Lens' RuleActionOverride RuleAction Source #

The override action to use, in place of the configured action of the rule in the rule group.