Class: AWSCDK::ObservabilityAdmin::CfnOrganizationTelemetryRule::WAFLoggingParametersProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ObservabilityAdmin::CfnOrganizationTelemetryRule::WAFLoggingParametersProperty
- Defined in:
- observability_admin/cfn_organization_telemetry_rule.rb
Overview
Configuration parameters for WAF logging, including redacted fields and logging filters.
Instance Attribute Summary collapse
-
#log_type ⇒ String?
readonly
The type of WAF logs to collect (currently supports WAF_LOGS).
-
#logging_filter ⇒ AWSCDK::IResolvable, ...
readonly
A filter configuration that determines which WAF log records to include or exclude.
-
#redacted_fields ⇒ AWSCDK::IResolvable, ...
readonly
The fields to redact from WAF logs to protect sensitive information.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(logging_filter: nil, log_type: nil, redacted_fields: nil) ⇒ WAFLoggingParametersProperty
constructor
A new instance of WAFLoggingParametersProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(logging_filter: nil, log_type: nil, redacted_fields: nil) ⇒ WAFLoggingParametersProperty
Returns a new instance of WAFLoggingParametersProperty.
1420 1421 1422 1423 1424 1425 1426 1427 |
# File 'observability_admin/cfn_organization_telemetry_rule.rb', line 1420 def initialize(logging_filter: nil, log_type: nil, redacted_fields: nil) @logging_filter = logging_filter.is_a?(Hash) ? ::AWSCDK::ObservabilityAdmin::CfnOrganizationTelemetryRule::LoggingFilterProperty.new(**logging_filter.transform_keys(&:to_sym)) : logging_filter Jsii::Type.check_type(@logging_filter, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19vYnNlcnZhYmlsaXR5YWRtaW4uQ2ZuT3JnYW5pemF0aW9uVGVsZW1ldHJ5UnVsZS5Mb2dnaW5nRmlsdGVyUHJvcGVydHkifV19fQ==")), "loggingFilter") unless @logging_filter.nil? @log_type = log_type Jsii::Type.check_type(@log_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logType") unless @log_type.nil? @redacted_fields = redacted_fields Jsii::Type.check_type(@redacted_fields, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfb2JzZXJ2YWJpbGl0eWFkbWluLkNmbk9yZ2FuaXphdGlvblRlbGVtZXRyeVJ1bGUuRmllbGRUb01hdGNoUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "redactedFields") unless @redacted_fields.nil? end |
Instance Attribute Details
#log_type ⇒ String? (readonly)
The type of WAF logs to collect (currently supports WAF_LOGS).
1438 1439 1440 |
# File 'observability_admin/cfn_organization_telemetry_rule.rb', line 1438 def log_type @log_type end |
#logging_filter ⇒ AWSCDK::IResolvable, ... (readonly)
A filter configuration that determines which WAF log records to include or exclude.
1433 1434 1435 |
# File 'observability_admin/cfn_organization_telemetry_rule.rb', line 1433 def logging_filter @logging_filter end |
#redacted_fields ⇒ AWSCDK::IResolvable, ... (readonly)
The fields to redact from WAF logs to protect sensitive information.
1443 1444 1445 |
# File 'observability_admin/cfn_organization_telemetry_rule.rb', line 1443 def redacted_fields @redacted_fields end |
Class Method Details
.jsii_properties ⇒ Object
1445 1446 1447 1448 1449 1450 1451 |
# File 'observability_admin/cfn_organization_telemetry_rule.rb', line 1445 def self.jsii_properties { :logging_filter => "loggingFilter", :log_type => "logType", :redacted_fields => "redactedFields", } end |
Instance Method Details
#to_jsii ⇒ Object
1453 1454 1455 1456 1457 1458 1459 1460 1461 |
# File 'observability_admin/cfn_organization_telemetry_rule.rb', line 1453 def to_jsii result = {} result.merge!({ "loggingFilter" => @logging_filter, "logType" => @log_type, "redactedFields" => @redacted_fields, }) result.compact end |