Class: AWSCDK::Lex::CfnBot::SpeechRecognitionSettingsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::SpeechRecognitionSettingsProperty
- Defined in:
- lex/cfn_bot.rb
Overview
Instance Attribute Summary collapse
- #speech_model_config ⇒ AWSCDK::IResolvable, ... readonly
- #speech_model_preference ⇒ String? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(speech_model_config: nil, speech_model_preference: nil) ⇒ SpeechRecognitionSettingsProperty
constructor
A new instance of SpeechRecognitionSettingsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(speech_model_config: nil, speech_model_preference: nil) ⇒ SpeechRecognitionSettingsProperty
Returns a new instance of SpeechRecognitionSettingsProperty.
6199 6200 6201 6202 6203 6204 |
# File 'lex/cfn_bot.rb', line 6199 def initialize(speech_model_config: nil, speech_model_preference: nil) @speech_model_config = speech_model_config.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::SpeechModelConfigProperty.new(**speech_model_config.transform_keys(&:to_sym)) : speech_model_config Jsii::Type.check_type(@speech_model_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LlNwZWVjaE1vZGVsQ29uZmlnUHJvcGVydHkifV19fQ==")), "speechModelConfig") unless @speech_model_config.nil? @speech_model_preference = speech_model_preference Jsii::Type.check_type(@speech_model_preference, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "speechModelPreference") unless @speech_model_preference.nil? end |
Instance Attribute Details
#speech_model_config ⇒ AWSCDK::IResolvable, ... (readonly)
6208 6209 6210 |
# File 'lex/cfn_bot.rb', line 6208 def speech_model_config @speech_model_config end |
#speech_model_preference ⇒ String? (readonly)
6211 6212 6213 |
# File 'lex/cfn_bot.rb', line 6211 def speech_model_preference @speech_model_preference end |
Class Method Details
.jsii_properties ⇒ Object
6213 6214 6215 6216 6217 6218 |
# File 'lex/cfn_bot.rb', line 6213 def self.jsii_properties { :speech_model_config => "speechModelConfig", :speech_model_preference => "speechModelPreference", } end |
Instance Method Details
#to_jsii ⇒ Object
6220 6221 6222 6223 6224 6225 6226 6227 |
# File 'lex/cfn_bot.rb', line 6220 def to_jsii result = {} result.merge!({ "speechModelConfig" => @speech_model_config, "speechModelPreference" => @speech_model_preference, }) result.compact end |