Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data WafAction = WafAction' {}
- newWafAction :: WafActionType -> WafAction
- wafAction_type :: Lens' WafAction WafActionType
Documentation
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.
WafAction' | |
|
Instances
Eq WafAction Source # | |
Read WafAction Source # | |
Show WafAction Source # | |
Generic WafAction Source # | |
NFData WafAction Source # | |
Defined in Amazonka.WAF.Types.WafAction | |
Hashable WafAction Source # | |
Defined in Amazonka.WAF.Types.WafAction | |
ToJSON WafAction Source # | |
Defined in Amazonka.WAF.Types.WafAction | |
FromJSON WafAction Source # | |
type Rep WafAction Source # | |
Defined in Amazonka.WAF.Types.WafAction type Rep WafAction = D1 ('MetaData "WafAction" "Amazonka.WAF.Types.WafAction" "libZSservicesZSamazonka-wafZSamazonka-waf" 'False) (C1 ('MetaCons "WafAction'" 'PrefixI 'True) (S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 WafActionType))) |
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 requestsBLOCK
: AWS WAF blocks requestsCOUNT
: 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 specifyCOUNT
for the default action for aWebACL
.
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 requestsBLOCK
: AWS WAF blocks requestsCOUNT
: 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 specifyCOUNT
for the default action for aWebACL
.