Class: AWSCDK::WAFv2::CfnLoggingConfiguration::ActionConditionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WAFv2::CfnLoggingConfiguration::ActionConditionProperty
- Defined in:
- wa_fv2/cfn_logging_configuration.rb
Overview
A single action condition for a condition in a logging filter.
Instance Attribute Summary collapse
-
#action ⇒ String
readonly
The action setting that a log record must contain in order to meet the condition.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(action:) ⇒ ActionConditionProperty
constructor
A new instance of ActionConditionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(action:) ⇒ ActionConditionProperty
Returns a new instance of ActionConditionProperty.
561 562 563 564 |
# File 'wa_fv2/cfn_logging_configuration.rb', line 561 def initialize(action:) @action = action Jsii::Type.check_type(@action, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "action") end |
Instance Attribute Details
#action ⇒ String (readonly)
The action setting that a log record must contain in order to meet the condition.
This is the action that AWS WAF applied to the web request.
For rule groups, this is either the configured rule action setting, or if you've applied a rule action override to the rule, it's the override action. The value EXCLUDED_AS_COUNT matches on excluded rules and also on rules that have a rule action override of Count.
574 575 576 |
# File 'wa_fv2/cfn_logging_configuration.rb', line 574 def action @action end |
Class Method Details
.jsii_properties ⇒ Object
576 577 578 579 580 |
# File 'wa_fv2/cfn_logging_configuration.rb', line 576 def self.jsii_properties { :action => "action", } end |
Instance Method Details
#to_jsii ⇒ Object
582 583 584 585 586 587 588 |
# File 'wa_fv2/cfn_logging_configuration.rb', line 582 def to_jsii result = {} result.merge!({ "action" => @action, }) result.compact end |