Class: AWSCDK::ObservabilityAdmin::CfnTelemetryRule::ConditionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ObservabilityAdmin::CfnTelemetryRule::ConditionProperty
- Defined in:
- observability_admin/cfn_telemetry_rule.rb
Overview
A single condition that can match based on WAF rule action or label name.
Instance Attribute Summary collapse
-
#action_condition ⇒ AWSCDK::IResolvable, ...
readonly
Matches log records based on the WAF rule action taken (ALLOW, BLOCK, COUNT, etc.).
-
#label_name_condition ⇒ AWSCDK::IResolvable, ...
readonly
Matches log records based on WAF rule labels applied to the request.
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.
750 751 752 753 754 755 |
# File 'observability_admin/cfn_telemetry_rule.rb', line 750 def initialize(action_condition: nil, label_name_condition: nil) @action_condition = action_condition.is_a?(Hash) ? ::AWSCDK::ObservabilityAdmin::CfnTelemetryRule::ActionConditionProperty.new(**action_condition.transform_keys(&:to_sym)) : action_condition Jsii::Type.check_type(@action_condition, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19vYnNlcnZhYmlsaXR5YWRtaW4uQ2ZuVGVsZW1ldHJ5UnVsZS5BY3Rpb25Db25kaXRpb25Qcm9wZXJ0eSJ9XX19")), "actionCondition") unless @action_condition.nil? @label_name_condition = label_name_condition.is_a?(Hash) ? ::AWSCDK::ObservabilityAdmin::CfnTelemetryRule::LabelNameConditionProperty.new(**label_name_condition.transform_keys(&:to_sym)) : label_name_condition Jsii::Type.check_type(@label_name_condition, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19vYnNlcnZhYmlsaXR5YWRtaW4uQ2ZuVGVsZW1ldHJ5UnVsZS5MYWJlbE5hbWVDb25kaXRpb25Qcm9wZXJ0eSJ9XX19")), "labelNameCondition") unless @label_name_condition.nil? end |
Instance Attribute Details
#action_condition ⇒ AWSCDK::IResolvable, ... (readonly)
Matches log records based on the WAF rule action taken (ALLOW, BLOCK, COUNT, etc.).
761 762 763 |
# File 'observability_admin/cfn_telemetry_rule.rb', line 761 def action_condition @action_condition end |
#label_name_condition ⇒ AWSCDK::IResolvable, ... (readonly)
Matches log records based on WAF rule labels applied to the request.
766 767 768 |
# File 'observability_admin/cfn_telemetry_rule.rb', line 766 def label_name_condition @label_name_condition end |
Class Method Details
.jsii_properties ⇒ Object
768 769 770 771 772 773 |
# File 'observability_admin/cfn_telemetry_rule.rb', line 768 def self.jsii_properties { :action_condition => "actionCondition", :label_name_condition => "labelNameCondition", } end |
Instance Method Details
#to_jsii ⇒ Object
775 776 777 778 779 780 781 782 |
# File 'observability_admin/cfn_telemetry_rule.rb', line 775 def to_jsii result = {} result.merge!({ "actionCondition" => @action_condition, "labelNameCondition" => @label_name_condition, }) result.compact end |