Class: AWSCDK::Logs::TransformerOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Logs::TransformerOptions
- Defined in:
- logs/transformer_options.rb
Overview
Properties for Transformer created from LogGroup.
Instance Attribute Summary collapse
-
#transformer_config ⇒ Array<AWSCDK::Logs::IProcessor>
readonly
List of processors in a transformer.
-
#transformer_name ⇒ String
readonly
Name of the transformer.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(transformer_config:, transformer_name:) ⇒ TransformerOptions
constructor
A new instance of TransformerOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(transformer_config:, transformer_name:) ⇒ TransformerOptions
Returns a new instance of TransformerOptions.
9 10 11 12 13 14 |
# File 'logs/transformer_options.rb', line 9 def initialize(transformer_config:, transformer_name:) @transformer_config = transformer_config Jsii::Type.check_type(@transformer_config, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sb2dzLklQcm9jZXNzb3IifSwia2luZCI6ImFycmF5In19")), "transformerConfig") @transformer_name = transformer_name Jsii::Type.check_type(@transformer_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "transformerName") end |
Instance Attribute Details
#transformer_config ⇒ Array<AWSCDK::Logs::IProcessor> (readonly)
List of processors in a transformer.
19 20 21 |
# File 'logs/transformer_options.rb', line 19 def transformer_config @transformer_config end |
#transformer_name ⇒ String (readonly)
Name of the transformer.
23 24 25 |
# File 'logs/transformer_options.rb', line 23 def transformer_name @transformer_name end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'logs/transformer_options.rb', line 25 def self.jsii_properties { :transformer_config => "transformerConfig", :transformer_name => "transformerName", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'logs/transformer_options.rb', line 32 def to_jsii result = {} result.merge!({ "transformerConfig" => @transformer_config, "transformerName" => @transformer_name, }) result.compact end |