Class: AWSCDK::WAFRegional::CfnWebACL::ActionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WAFRegional::CfnWebACL::ActionProperty
- Defined in:
- waf_regional/cfn_web_acl.rb
Overview
Specifies the action AWS WAF takes when a web request matches or doesn't match all rule conditions.
Instance Attribute Summary collapse
-
#type ⇒ String
readonly
For actions that are associated with a rule, the action that AWS WAF takes when a web request matches all conditions in a rule.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:) ⇒ ActionProperty
constructor
A new instance of ActionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type:) ⇒ ActionProperty
Returns a new instance of ActionProperty.
553 554 555 556 |
# File 'waf_regional/cfn_web_acl.rb', line 553 def initialize(type:) @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") end |
Instance Attribute Details
#type ⇒ String (readonly)
For actions that are associated with a rule, the action that AWS WAF takes when a web request matches all conditions in a rule.
For the default action of a web access control list (ACL), the action that AWS WAF takes when a web request doesn't match all conditions in any 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 specifyCOUNTfor the default action for a WebACL.
570 571 572 |
# File 'waf_regional/cfn_web_acl.rb', line 570 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
572 573 574 575 576 |
# File 'waf_regional/cfn_web_acl.rb', line 572 def self.jsii_properties { :type => "type", } end |
Instance Method Details
#to_jsii ⇒ Object
578 579 580 581 582 583 584 |
# File 'waf_regional/cfn_web_acl.rb', line 578 def to_jsii result = {} result.merge!({ "type" => @type, }) result.compact end |