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 :: WafAction
- wafAction_type :: Lens' WafAction (Maybe Text)
Documentation
Details about the action that CloudFront or WAF takes when a web request matches the conditions in the rule.
See: newWafAction
smart constructor.
WafAction' | |
|
Instances
Eq WafAction Source # | |
Read WafAction Source # | |
Show WafAction Source # | |
Generic WafAction Source # | |
NFData WafAction Source # | |
Defined in Amazonka.SecurityHub.Types.WafAction | |
Hashable WafAction Source # | |
Defined in Amazonka.SecurityHub.Types.WafAction | |
ToJSON WafAction Source # | |
Defined in Amazonka.SecurityHub.Types.WafAction | |
FromJSON WafAction Source # | |
type Rep WafAction Source # | |
Defined in Amazonka.SecurityHub.Types.WafAction type Rep WafAction = D1 ('MetaData "WafAction" "Amazonka.SecurityHub.Types.WafAction" "libZSservicesZSamazonka-securityhubZSamazonka-securityhub" 'False) (C1 ('MetaCons "WafAction'" 'PrefixI 'True) (S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) |
newWafAction :: WafAction 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 WAF to respond to requests that match the
settings in a rule.
Valid settings include the following:
ALLOW
- WAF allows requestsBLOCK
- WAF blocks requestsCOUNT
- WAF increments a counter of the requests that match all of the conditions in the rule. 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 a WebACL.
wafAction_type :: Lens' WafAction (Maybe Text) Source #
Specifies how you want WAF to respond to requests that match the settings in a rule.
Valid settings include the following:
ALLOW
- WAF allows requestsBLOCK
- WAF blocks requestsCOUNT
- WAF increments a counter of the requests that match all of the conditions in the rule. 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 a WebACL.