Class: AWSCDK::Logs::CfnTransformer::ParsePostgresProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source: nil) ⇒ ParsePostgresProperty

Returns a new instance of ParsePostgresProperty.

Parameters:

  • source (String, nil) (defaults to: nil)

    Omit this parameter and the whole log message will be processed by this processor.



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

#sourceString? (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_propertiesObject



1395
1396
1397
1398
1399
# File 'logs/cfn_transformer.rb', line 1395

def self.jsii_properties
  {
    :source => "source",
  }
end

Instance Method Details

#to_jsiiObject



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