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

Description

 
Synopsis

Documentation

data WafAction 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.

For the action that is associated with a rule in a WebACL, specifies the action that you want AWS WAF to perform when a web request matches all of the conditions in a rule. For the default action in a WebACL, specifies the action that you want AWS WAF to take when a web request doesn't match all of the conditions in any of the rules in a WebACL.

See: newWafAction smart constructor.

Constructors

WafAction' 

Fields

  • type' :: WafActionType

    Specifies how you want AWS WAF to respond to requests that match the settings in a Rule. Valid settings include the following:

    • ALLOW: AWS WAF allows requests
    • BLOCK: AWS WAF blocks requests
    • COUNT: AWS WAF increments a counter of the requests that match all of the conditions in the rule. AWS WAF then continues to inspect the web request based on the remaining rules in the web ACL. You can't specify COUNT for the default action for a WebACL.

Instances

Instances details
Eq WafAction Source # 
Instance details

Defined in Amazonka.WAFRegional.Types.WafAction

Read WafAction Source # 
Instance details

Defined in Amazonka.WAFRegional.Types.WafAction

Show WafAction Source # 
Instance details

Defined in Amazonka.WAFRegional.Types.WafAction

Generic WafAction Source # 
Instance details

Defined in Amazonka.WAFRegional.Types.WafAction

Associated Types

type Rep WafAction :: Type -> Type #

NFData WafAction Source # 
Instance details

Defined in Amazonka.WAFRegional.Types.WafAction

Methods

rnf :: WafAction -> () #

Hashable WafAction Source # 
Instance details

Defined in Amazonka.WAFRegional.Types.WafAction

ToJSON WafAction Source # 
Instance details

Defined in Amazonka.WAFRegional.Types.WafAction

FromJSON WafAction Source # 
Instance details

Defined in Amazonka.WAFRegional.Types.WafAction

type Rep WafAction Source # 
Instance details

Defined in Amazonka.WAFRegional.Types.WafAction

type Rep WafAction = D1 ('MetaData "WafAction" "Amazonka.WAFRegional.Types.WafAction" "libZSservicesZSamazonka-waf-regionalZSamazonka-waf-regional" 'False) (C1 ('MetaCons "WafAction'" 'PrefixI 'True) (S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 WafActionType)))

newWafAction Source #

Create a value of WafAction 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:type':WafAction', wafAction_type - Specifies how you want AWS WAF to respond to requests that match the settings in a Rule. Valid settings include the following:

  • ALLOW: AWS WAF allows requests
  • BLOCK: AWS WAF blocks requests
  • COUNT: AWS WAF increments a counter of the requests that match all of the conditions in the rule. AWS WAF then continues to inspect the web request based on the remaining rules in the web ACL. You can't specify COUNT for the default action for a WebACL.

wafAction_type :: Lens' WafAction WafActionType Source #

Specifies how you want AWS WAF to respond to requests that match the settings in a Rule. Valid settings include the following:

  • ALLOW: AWS WAF allows requests
  • BLOCK: AWS WAF blocks requests
  • COUNT: AWS WAF increments a counter of the requests that match all of the conditions in the rule. AWS WAF then continues to inspect the web request based on the remaining rules in the web ACL. You can't specify COUNT for the default action for a WebACL.