Class: AWSCDK::Logs::CfnTransformerProps

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

Overview

Properties for defining a CfnTransformer.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(log_group_identifier:, transformer_config:) ⇒ CfnTransformerProps

Returns a new instance of CfnTransformerProps.

Parameters:



11
12
13
14
15
16
# File 'logs/cfn_transformer_props.rb', line 11

def initialize(log_group_identifier:, transformer_config:)
  @log_group_identifier = log_group_identifier
  Jsii::Type.check_type(@log_group_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logGroupIdentifier")
  @transformer_config = transformer_config
  Jsii::Type.check_type(@transformer_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbG9ncy5DZm5UcmFuc2Zvcm1lci5Qcm9jZXNzb3JQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "transformerConfig")
end

Instance Attribute Details

#log_group_identifierString (readonly)

Specify either the name or ARN of the log group to create the transformer for.



22
23
24
# File 'logs/cfn_transformer_props.rb', line 22

def log_group_identifier
  @log_group_identifier
end

#transformer_configAWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Logs::CfnTransformer::ProcessorProperty> (readonly)

This structure is an array that contains the configuration of this log transformer.

A log transformer is an array of processors, where each processor applies one type of transformation to the log events that are ingested.



29
30
31
# File 'logs/cfn_transformer_props.rb', line 29

def transformer_config
  @transformer_config
end

Class Method Details

.jsii_propertiesObject



31
32
33
34
35
36
# File 'logs/cfn_transformer_props.rb', line 31

def self.jsii_properties
  {
    :log_group_identifier => "logGroupIdentifier",
    :transformer_config => "transformerConfig",
  }
end

Instance Method Details

#to_jsiiObject



38
39
40
41
42
43
44
45
# File 'logs/cfn_transformer_props.rb', line 38

def to_jsii
  result = {}
  result.merge!({
    "logGroupIdentifier" => @log_group_identifier,
    "transformerConfig" => @transformer_config,
  })
  result.compact
end