Class: AWSCDK::Logs::DataConverterProps

Inherits:
BaseProcessorProps
  • Object
show all
Defined in:
logs/data_converter_props.rb

Overview

Properties for creating data converter processors.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, date_time_converter_options: nil, type_converter_options: nil) ⇒ DataConverterProps

Returns a new instance of DataConverterProps.

Parameters:



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 = date_time_converter_options.is_a?(Hash) ? ::AWSCDK::Logs::DateTimeConverterProperty.new(**date_time_converter_options.transform_keys(&:to_sym)) : date_time_converter_options
  Jsii::Type.check_type(@date_time_converter_options, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbG9ncy5EYXRlVGltZUNvbnZlcnRlclByb3BlcnR5In0=")), "dateTimeConverterOptions") unless @date_time_converter_options.nil?
  @type_converter_options = type_converter_options.is_a?(Hash) ? ::AWSCDK::Logs::TypeConverterProperty.new(**type_converter_options.transform_keys(&:to_sym)) : type_converter_options
  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_optionsAWSCDK::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
  @date_time_converter_options
end

#typeAWSCDK::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_optionsAWSCDK::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
  @type_converter_options
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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