Class: AWSCDK::Logs::CfnTransformer::TypeConverterEntryProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
logs/cfn_transformer.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 (String)

    The type to convert the field value to.



2162
2163
2164
2165
2166
2167
# File 'logs/cfn_transformer.rb', line 2162

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("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
end

Instance Attribute Details

#keyString (readonly)

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



2173
2174
2175
# File 'logs/cfn_transformer.rb', line 2173

def key
  @key
end

#typeString (readonly)

The type to convert the field value to.

Valid values are integer , double , string and boolean .



2180
2181
2182
# File 'logs/cfn_transformer.rb', line 2180

def type
  @type
end

Class Method Details

.jsii_propertiesObject



2182
2183
2184
2185
2186
2187
# File 'logs/cfn_transformer.rb', line 2182

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

Instance Method Details

#to_jsiiObject



2189
2190
2191
2192
2193
2194
2195
2196
# File 'logs/cfn_transformer.rb', line 2189

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