Class: AWSCDK::WAFv2::CfnLoggingConfiguration::ConditionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WAFv2::CfnLoggingConfiguration::ConditionProperty
- Defined in:
- wa_fv2/cfn_logging_configuration.rb
Overview
A single match condition for a log filter.
Instance Attribute Summary collapse
-
#action_condition ⇒ AWSCDK::IResolvable, ...
readonly
A single action condition.
-
#label_name_condition ⇒ AWSCDK::IResolvable, ...
readonly
A single label name condition.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(action_condition: nil, label_name_condition: nil) ⇒ ConditionProperty
constructor
A new instance of ConditionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(action_condition: nil, label_name_condition: nil) ⇒ ConditionProperty
Returns a new instance of ConditionProperty.
599 600 601 602 603 604 |
# File 'wa_fv2/cfn_logging_configuration.rb', line 599 def initialize(action_condition: nil, label_name_condition: nil) @action_condition = action_condition.is_a?(Hash) ? ::AWSCDK::WAFv2::CfnLoggingConfiguration::ActionConditionProperty.new(**action_condition.transform_keys(&:to_sym)) : action_condition Jsii::Type.check_type(@action_condition, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c193YWZ2Mi5DZm5Mb2dnaW5nQ29uZmlndXJhdGlvbi5BY3Rpb25Db25kaXRpb25Qcm9wZXJ0eSJ9XX19")), "actionCondition") unless @action_condition.nil? @label_name_condition = label_name_condition.is_a?(Hash) ? ::AWSCDK::WAFv2::CfnLoggingConfiguration::LabelNameConditionProperty.new(**label_name_condition.transform_keys(&:to_sym)) : label_name_condition Jsii::Type.check_type(@label_name_condition, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c193YWZ2Mi5DZm5Mb2dnaW5nQ29uZmlndXJhdGlvbi5MYWJlbE5hbWVDb25kaXRpb25Qcm9wZXJ0eSJ9XX19")), "labelNameCondition") unless @label_name_condition.nil? end |
Instance Attribute Details
#action_condition ⇒ AWSCDK::IResolvable, ... (readonly)
A single action condition.
This is the action setting that a log record must contain in order to meet the condition.
612 613 614 |
# File 'wa_fv2/cfn_logging_configuration.rb', line 612 def action_condition @action_condition end |
#label_name_condition ⇒ AWSCDK::IResolvable, ... (readonly)
A single label name condition.
This is the fully qualified label name that a log record must contain in order to meet the condition. Fully qualified labels have a prefix, optional namespaces, and label name. The prefix identifies the rule group or web ACL context of the rule that added the label.
619 620 621 |
# File 'wa_fv2/cfn_logging_configuration.rb', line 619 def label_name_condition @label_name_condition end |
Class Method Details
.jsii_properties ⇒ Object
621 622 623 624 625 626 |
# File 'wa_fv2/cfn_logging_configuration.rb', line 621 def self.jsii_properties { :action_condition => "actionCondition", :label_name_condition => "labelNameCondition", } end |
Instance Method Details
#to_jsii ⇒ Object
628 629 630 631 632 633 634 635 |
# File 'wa_fv2/cfn_logging_configuration.rb', line 628 def to_jsii result = {} result.merge!({ "actionCondition" => @action_condition, "labelNameCondition" => @label_name_condition, }) result.compact end |