Class: AWSCDK::Logs::DataConverterProps
- Inherits:
-
BaseProcessorProps
- Object
- BaseProcessorProps
- AWSCDK::Logs::DataConverterProps
- Defined in:
- logs/data_converter_props.rb
Overview
Properties for creating data converter processors.
Instance Attribute Summary collapse
-
#date_time_converter_options ⇒ AWSCDK::Logs::DateTimeConverterProperty?
readonly
Options for datetime conversion.
-
#type ⇒ AWSCDK::Logs::DataConverterType
readonly
The type of data conversion operation.
-
#type_converter_options ⇒ AWSCDK::Logs::TypeConverterProperty?
readonly
Options for type conversion.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:, date_time_converter_options: nil, type_converter_options: nil) ⇒ DataConverterProps
constructor
A new instance of DataConverterProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type:, date_time_converter_options: nil, type_converter_options: nil) ⇒ DataConverterProps
Returns a new instance of DataConverterProps.
10 11 12 13 14 15 16 17 |
# File 'logs/data_converter_props.rb', line 10 def initialize(type:, date_time_converter_options: nil, type_converter_options: nil) @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbG9ncy5EYXRhQ29udmVydGVyVHlwZSJ9")), "type") @date_time_converter_options = .is_a?(Hash) ? ::AWSCDK::Logs::DateTimeConverterProperty.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@date_time_converter_options, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbG9ncy5EYXRlVGltZUNvbnZlcnRlclByb3BlcnR5In0=")), "dateTimeConverterOptions") unless @date_time_converter_options.nil? @type_converter_options = .is_a?(Hash) ? ::AWSCDK::Logs::TypeConverterProperty.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@type_converter_options, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbG9ncy5UeXBlQ29udmVydGVyUHJvcGVydHkifQ==")), "typeConverterOptions") unless @type_converter_options.nil? end |
Instance Attribute Details
#date_time_converter_options ⇒ AWSCDK::Logs::DateTimeConverterProperty? (readonly)
Note:
Default: - No date time converter processor is created if not set
Options for datetime conversion.
Required when type is DATETIME_CONVERTER.
29 30 31 |
# File 'logs/data_converter_props.rb', line 29 def @date_time_converter_options end |
#type ⇒ AWSCDK::Logs::DataConverterType (readonly)
The type of data conversion operation.
22 23 24 |
# File 'logs/data_converter_props.rb', line 22 def type @type end |
#type_converter_options ⇒ AWSCDK::Logs::TypeConverterProperty? (readonly)
Note:
Default: - No type convertor processor is created if not set
Options for type conversion.
Required when type is TYPE_CONVERTER.
36 37 38 |
# File 'logs/data_converter_props.rb', line 36 def @type_converter_options end |
Class Method Details
.jsii_properties ⇒ Object
38 39 40 41 42 43 44 |
# File 'logs/data_converter_props.rb', line 38 def self.jsii_properties { :type => "type", :date_time_converter_options => "dateTimeConverterOptions", :type_converter_options => "typeConverterOptions", } end |
Instance Method Details
#to_jsii ⇒ Object
46 47 48 49 50 51 52 53 54 55 |
# File 'logs/data_converter_props.rb', line 46 def to_jsii result = {} result.merge!(super) result.merge!({ "type" => @type, "dateTimeConverterOptions" => @date_time_converter_options, "typeConverterOptions" => @type_converter_options, }) result.compact end |