Class: AWSCDK::Logs::TransformerProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Logs::TransformerProps
- Defined in:
- logs/transformer_props.rb
Overview
The Resource properties for AWS::Logs::Transformer resource.
This interface defines all configuration options for the CfnTransformer construct.
Instance Attribute Summary collapse
-
#log_group ⇒ AWSCDK::Interfaces::AWSLogs::ILogGroupRef
readonly
Existing log group that you want to associate with this transformer.
-
#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(log_group:, transformer_config:, transformer_name:) ⇒ TransformerProps
constructor
A new instance of TransformerProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(log_group:, transformer_config:, transformer_name:) ⇒ TransformerProps
Returns a new instance of TransformerProps.
13 14 15 16 17 18 19 20 |
# File 'logs/transformer_props.rb', line 13 def initialize(log_group:, transformer_config:, transformer_name:) @log_group = log_group Jsii::Type.check_type(@log_group, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19sb2dzLklMb2dHcm91cFJlZiJ9")), "logGroup") @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
#log_group ⇒ AWSCDK::Interfaces::AWSLogs::ILogGroupRef (readonly)
Existing log group that you want to associate with this transformer.
25 26 27 |
# File 'logs/transformer_props.rb', line 25 def log_group @log_group end |
#transformer_config ⇒ Array<AWSCDK::Logs::IProcessor> (readonly)
List of processors in a transformer.
29 30 31 |
# File 'logs/transformer_props.rb', line 29 def transformer_config @transformer_config end |
#transformer_name ⇒ String (readonly)
Name of the transformer.
33 34 35 |
# File 'logs/transformer_props.rb', line 33 def transformer_name @transformer_name end |
Class Method Details
.jsii_properties ⇒ Object
35 36 37 38 39 40 41 |
# File 'logs/transformer_props.rb', line 35 def self.jsii_properties { :log_group => "logGroup", :transformer_config => "transformerConfig", :transformer_name => "transformerName", } end |
Instance Method Details
#to_jsii ⇒ Object
43 44 45 46 47 48 49 50 51 |
# File 'logs/transformer_props.rb', line 43 def to_jsii result = {} result.merge!({ "logGroup" => @log_group, "transformerConfig" => @transformer_config, "transformerName" => @transformer_name, }) result.compact end |