Class: AWSCDK::Logs::TypeConverterProperty

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

Overview

Use this processor to convert a value type associated with the specified key to the specified type.

It's a casting processor that changes the types of the specified fields. For more information about this processor including examples, see typeConverter in the CloudWatch Logs User Guide.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(entries:) ⇒ TypeConverterProperty

Returns a new instance of TypeConverterProperty.

Parameters:



11
12
13
14
# File 'logs/type_converter_property.rb', line 11

def initialize(entries:)
  @entries = entries.is_a?(Array) ? entries.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::Logs::TypeConverterEntryProperty.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : entries
  Jsii::Type.check_type(@entries, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sb2dzLlR5cGVDb252ZXJ0ZXJFbnRyeVByb3BlcnR5In0sImtpbmQiOiJhcnJheSJ9fQ==")), "entries")
end

Instance Attribute Details

#entriesArray<AWSCDK::Logs::TypeConverterEntryProperty> (readonly)

An array of TypeConverterEntry objects, where each object contains information about one field to change the type of.



19
20
21
# File 'logs/type_converter_property.rb', line 19

def entries
  @entries
end

Class Method Details

.jsii_propertiesObject



21
22
23
24
25
# File 'logs/type_converter_property.rb', line 21

def self.jsii_properties
  {
    :entries => "entries",
  }
end

Instance Method Details

#to_jsiiObject



27
28
29
30
31
32
33
# File 'logs/type_converter_property.rb', line 27

def to_jsii
  result = {}
  result.merge!({
    "entries" => @entries,
  })
  result.compact
end