Class: AWSCDK::Logs::CfnTransformer::TypeConverterProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Logs::CfnTransformer::TypeConverterProperty
- Defined in:
- logs/cfn_transformer.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. Values can be converted into one of the following datatypes: integer , double , string and boolean .
For more information about this processor including examples, see trimString in the CloudWatch Logs User Guide .
Instance Attribute Summary collapse
-
#entries ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Logs::CfnTransformer::TypeConverterEntryProperty>
readonly
An array of
TypeConverterEntryobjects, where each object contains the information about one field to change the type of.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(entries:) ⇒ TypeConverterProperty
constructor
A new instance of TypeConverterProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(entries:) ⇒ TypeConverterProperty
Returns a new instance of TypeConverterProperty.
2210 2211 2212 2213 |
# File 'logs/cfn_transformer.rb', line 2210 def initialize(entries:) @entries = entries Jsii::Type.check_type(@entries, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbG9ncy5DZm5UcmFuc2Zvcm1lci5UeXBlQ29udmVydGVyRW50cnlQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "entries") end |
Instance Attribute Details
#entries ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Logs::CfnTransformer::TypeConverterEntryProperty> (readonly)
An array of TypeConverterEntry objects, where each object contains the information about one field to change the type of.
2219 2220 2221 |
# File 'logs/cfn_transformer.rb', line 2219 def entries @entries end |
Class Method Details
.jsii_properties ⇒ Object
2221 2222 2223 2224 2225 |
# File 'logs/cfn_transformer.rb', line 2221 def self.jsii_properties { :entries => "entries", } end |
Instance Method Details
#to_jsii ⇒ Object
2227 2228 2229 2230 2231 2232 2233 |
# File 'logs/cfn_transformer.rb', line 2227 def to_jsii result = {} result.merge!({ "entries" => @entries, }) result.compact end |