Class: AWSCDK::Logs::TypeConverterEntryProperty

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

Overview

This object defines one value type that will be converted using the typeConverter processor.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, type:) ⇒ TypeConverterEntryProperty

Returns a new instance of TypeConverterEntryProperty.

Parameters:

  • key (String)

    The key with the value that is to be converted to a different type.

  • type (AWSCDK::Logs::TypeConverterType)

    The data type to convert the field value to.



9
10
11
12
13
14
# File 'logs/type_converter_entry_property.rb', line 9

def initialize(key:, type:)
  @key = key
  Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key")
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbG9ncy5UeXBlQ29udmVydGVyVHlwZSJ9")), "type")
end

Instance Attribute Details

#keyString (readonly)

The key with the value that is to be converted to a different type.

Returns:

  • (String)


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

def key
  @key
end

#typeAWSCDK::Logs::TypeConverterType (readonly)

The data type to convert the field value to.



23
24
25
# File 'logs/type_converter_entry_property.rb', line 23

def type
  @type
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'logs/type_converter_entry_property.rb', line 25

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

Instance Method Details

#to_jsiiObject



32
33
34
35
36
37
38
39
# File 'logs/type_converter_entry_property.rb', line 32

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