libZSservicesZSamazonka-securityhubZSamazonka-securityhub
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.SecurityHub.Types.WafAction

Description

 
Synopsis

Documentation

data WafAction Source #

Details about the action that CloudFront or WAF takes when a web request matches the conditions in the rule.

See: newWafAction smart constructor.

Constructors

WafAction' 

Fields

  • type' :: Maybe Text

    Specifies how you want WAF to respond to requests that match the settings in a rule.

    Valid settings include the following:

    • ALLOW - WAF allows requests
    • BLOCK - WAF blocks requests
    • COUNT - 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 specify COUNT for the default action for a WebACL.

Instances

Instances details
Eq WafAction Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.WafAction

Read WafAction Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.WafAction

Show WafAction Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.WafAction

Generic WafAction Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.WafAction

Associated Types

type Rep WafAction :: Type -> Type #

NFData WafAction Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.WafAction

Methods

rnf :: WafAction -> () #

Hashable WafAction Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.WafAction

ToJSON WafAction Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.WafAction

FromJSON WafAction Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.WafAction

type Rep WafAction Source # 
Instance details

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 requests
  • BLOCK - WAF blocks requests
  • COUNT - 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 specify COUNT 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 requests
  • BLOCK - WAF blocks requests
  • COUNT - 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 specify COUNT for the default action for a WebACL.