Class: AWSCDK::Logs::CfnTransformer::ParseRoute53Property

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
logs/cfn_transformer.rb

Overview

Use this processor to parse RouteĀ 53 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 parseRoute53 .

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) ⇒ ParseRoute53Property

Returns a new instance of ParseRoute53Property.

Parameters:

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

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



1421
1422
1423
1424
# File 'logs/cfn_transformer.rb', line 1421

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 .



1432
1433
1434
# File 'logs/cfn_transformer.rb', line 1432

def source
  @source
end

Class Method Details

.jsii_propertiesObject



1434
1435
1436
1437
1438
# File 'logs/cfn_transformer.rb', line 1434

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

Instance Method Details

#to_jsiiObject



1440
1441
1442
1443
1444
1445
1446
# File 'logs/cfn_transformer.rb', line 1440

def to_jsii
  result = {}
  result.merge!({
    "source" => @source,
  })
  result.compact
end