Class: AWSCDK::Lex::CfnBot::SpeechRecognitionSettingsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lex/cfn_bot.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(speech_model_config: nil, speech_model_preference: nil) ⇒ SpeechRecognitionSettingsProperty

Returns a new instance of SpeechRecognitionSettingsProperty.

Parameters:



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_configAWSCDK::IResolvable, ... (readonly)



6208
6209
6210
# File 'lex/cfn_bot.rb', line 6208

def speech_model_config
  @speech_model_config
end

#speech_model_preferenceString? (readonly)



6211
6212
6213
# File 'lex/cfn_bot.rb', line 6211

def speech_model_preference
  @speech_model_preference
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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