Class: AWSCDK::Logs::CfnTransformer::TypeConverterEntryProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Logs::CfnTransformer::TypeConverterEntryProperty
- 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
-
#key ⇒ String
readonly
The key with the value that is to be converted to a different type.
-
#type ⇒ String
readonly
The type to convert the field value to.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key:, type:) ⇒ TypeConverterEntryProperty
constructor
A new instance of TypeConverterEntryProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key:, type:) ⇒ TypeConverterEntryProperty
Returns a new instance of TypeConverterEntryProperty.
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
#key ⇒ String (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 |
#type ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |