Class: AWSCDK::Logs::CfnTransformer::ParsePostgresProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Logs::CfnTransformer::ParsePostgresProperty
- Defined in:
- logs/cfn_transformer.rb
Overview
Use this processor to parse RDS for PostgreSQL vended logs, extract fields, and and convert them into a JSON format.
This processor always processes the entire log event message. For more information about this processor including examples, see parsePostGres .
For more information about RDS for PostgreSQL log format, see RDS for PostgreSQL database log filesTCP flag sequence .
If you use this processor, it must be the first processor in your transformer.
Instance Attribute Summary collapse
-
#source ⇒ String?
readonly
Omit this parameter and the whole log message will be processed by this processor.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(source: nil) ⇒ ParsePostgresProperty
constructor
A new instance of ParsePostgresProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(source: nil) ⇒ ParsePostgresProperty
Returns a new instance of ParsePostgresProperty.
1382 1383 1384 1385 |
# File 'logs/cfn_transformer.rb', line 1382 def initialize(source: nil) @source = source Jsii::Type.check_type(@source, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "source") unless @source.nil? end |
Instance Attribute Details
#source ⇒ String? (readonly)
Omit this parameter and the whole log message will be processed by this processor.
No other value than @message is allowed for source .
1393 1394 1395 |
# File 'logs/cfn_transformer.rb', line 1393 def source @source end |
Class Method Details
.jsii_properties ⇒ Object
1395 1396 1397 1398 1399 |
# File 'logs/cfn_transformer.rb', line 1395 def self.jsii_properties { :source => "source", } end |
Instance Method Details
#to_jsii ⇒ Object
1401 1402 1403 1404 1405 1406 1407 |
# File 'logs/cfn_transformer.rb', line 1401 def to_jsii result = {} result.merge!({ "source" => @source, }) result.compact end |