Class: AWSCDK::ObservabilityAdmin::CfnTelemetryRule::WAFLoggingParametersProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
observability_admin/cfn_telemetry_rule.rb

Overview

Configuration parameters for WAF logging, including redacted fields and logging filters.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(logging_filter: nil, log_type: nil, redacted_fields: nil) ⇒ WAFLoggingParametersProperty

Returns a new instance of WAFLoggingParametersProperty.

Parameters:



1410
1411
1412
1413
1414
1415
1416
1417
# File 'observability_admin/cfn_telemetry_rule.rb', line 1410

def initialize(logging_filter: nil, log_type: nil, redacted_fields: nil)
  @logging_filter = logging_filter.is_a?(Hash) ? ::AWSCDK::ObservabilityAdmin::CfnTelemetryRule::LoggingFilterProperty.new(**logging_filter.transform_keys(&:to_sym)) : logging_filter
  Jsii::Type.check_type(@logging_filter, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19vYnNlcnZhYmlsaXR5YWRtaW4uQ2ZuVGVsZW1ldHJ5UnVsZS5Mb2dnaW5nRmlsdGVyUHJvcGVydHkifV19fQ==")), "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("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfb2JzZXJ2YWJpbGl0eWFkbWluLkNmblRlbGVtZXRyeVJ1bGUuRmllbGRUb01hdGNoUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "redactedFields") unless @redacted_fields.nil?
end

Instance Attribute Details

#log_typeString? (readonly)

The type of WAF logs to collect (currently supports WAF_LOGS).



1428
1429
1430
# File 'observability_admin/cfn_telemetry_rule.rb', line 1428

def log_type
  @log_type
end

#logging_filterAWSCDK::IResolvable, ... (readonly)

A filter configuration that determines which WAF log records to include or exclude.



1423
1424
1425
# File 'observability_admin/cfn_telemetry_rule.rb', line 1423

def logging_filter
  @logging_filter
end

#redacted_fieldsAWSCDK::IResolvable, ... (readonly)

The fields to redact from WAF logs to protect sensitive information.



1433
1434
1435
# File 'observability_admin/cfn_telemetry_rule.rb', line 1433

def redacted_fields
  @redacted_fields
end

Class Method Details

.jsii_propertiesObject



1435
1436
1437
1438
1439
1440
1441
# File 'observability_admin/cfn_telemetry_rule.rb', line 1435

def self.jsii_properties
  {
    :logging_filter => "loggingFilter",
    :log_type => "logType",
    :redacted_fields => "redactedFields",
  }
end

Instance Method Details

#to_jsiiObject



1443
1444
1445
1446
1447
1448
1449
1450
1451
# File 'observability_admin/cfn_telemetry_rule.rb', line 1443

def to_jsii
  result = {}
  result.merge!({
    "loggingFilter" => @logging_filter,
    "logType" => @log_type,
    "redactedFields" => @redacted_fields,
  })
  result.compact
end