Class: AWSCDK::Logs::CfnTransformer::ParseVPCProperty

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

Overview

Use this processor to parse Amazon VPC vended logs, extract fields, and and convert them into a JSON format.

This processor always processes the entire log event message.

This processor doesn't support custom log formats, such as NAT gateway logs. For more information about custom log formats in Amazon VPC, see parseVPC For more information about this processor including examples, see parseVPC .

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

Returns a new instance of ParseVPCProperty.

Parameters:

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

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



1529
1530
1531
1532
# File 'logs/cfn_transformer.rb', line 1529

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 .



1540
1541
1542
# File 'logs/cfn_transformer.rb', line 1540

def source
  @source
end

Class Method Details

.jsii_propertiesObject



1542
1543
1544
1545
1546
# File 'logs/cfn_transformer.rb', line 1542

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

Instance Method Details

#to_jsiiObject



1548
1549
1550
1551
1552
1553
1554
# File 'logs/cfn_transformer.rb', line 1548

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