Class: AWSCDK::ObservabilityAdmin::CfnOrganizationTelemetryRule::FilterProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ObservabilityAdmin::CfnOrganizationTelemetryRule::FilterProperty
- Defined in:
- observability_admin/cfn_organization_telemetry_rule.rb
Overview
A single filter condition that specifies behavior, requirement, and matching conditions for WAF log records.
Instance Attribute Summary collapse
-
#behavior ⇒ String?
readonly
The action to take for log records matching this filter (KEEP or DROP).
-
#conditions ⇒ AWSCDK::IResolvable, ...
readonly
The list of conditions that determine if a log record matches this filter.
-
#requirement ⇒ String?
readonly
Whether the log record must meet all conditions (MEETS_ALL) or any condition (MEETS_ANY) to match this filter.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(behavior: nil, conditions: nil, requirement: nil) ⇒ FilterProperty
constructor
A new instance of FilterProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(behavior: nil, conditions: nil, requirement: nil) ⇒ FilterProperty
Returns a new instance of FilterProperty.
900 901 902 903 904 905 906 907 |
# File 'observability_admin/cfn_organization_telemetry_rule.rb', line 900 def initialize(behavior: nil, conditions: nil, requirement: nil) @behavior = behavior Jsii::Type.check_type(@behavior, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "behavior") unless @behavior.nil? @conditions = conditions Jsii::Type.check_type(@conditions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfb2JzZXJ2YWJpbGl0eWFkbWluLkNmbk9yZ2FuaXphdGlvblRlbGVtZXRyeVJ1bGUuQ29uZGl0aW9uUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "conditions") unless @conditions.nil? @requirement = requirement Jsii::Type.check_type(@requirement, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "requirement") unless @requirement.nil? end |
Instance Attribute Details
#behavior ⇒ String? (readonly)
The action to take for log records matching this filter (KEEP or DROP).
913 914 915 |
# File 'observability_admin/cfn_organization_telemetry_rule.rb', line 913 def behavior @behavior end |
#conditions ⇒ AWSCDK::IResolvable, ... (readonly)
The list of conditions that determine if a log record matches this filter.
918 919 920 |
# File 'observability_admin/cfn_organization_telemetry_rule.rb', line 918 def conditions @conditions end |
#requirement ⇒ String? (readonly)
Whether the log record must meet all conditions (MEETS_ALL) or any condition (MEETS_ANY) to match this filter.
923 924 925 |
# File 'observability_admin/cfn_organization_telemetry_rule.rb', line 923 def requirement @requirement end |
Class Method Details
.jsii_properties ⇒ Object
925 926 927 928 929 930 931 |
# File 'observability_admin/cfn_organization_telemetry_rule.rb', line 925 def self.jsii_properties { :behavior => "behavior", :conditions => "conditions", :requirement => "requirement", } end |
Instance Method Details
#to_jsii ⇒ Object
933 934 935 936 937 938 939 940 941 |
# File 'observability_admin/cfn_organization_telemetry_rule.rb', line 933 def to_jsii result = {} result.merge!({ "behavior" => @behavior, "conditions" => @conditions, "requirement" => @requirement, }) result.compact end |