Class: AWSCDK::Lex::CfnBot::SpeechModelConfigProperty

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(deepgram_config: nil) ⇒ SpeechModelConfigProperty

Returns a new instance of SpeechModelConfigProperty.

Parameters:



6169
6170
6171
6172
# File 'lex/cfn_bot.rb', line 6169

def initialize(deepgram_config: nil)
  @deepgram_config = deepgram_config.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::DeepgramSpeechModelConfigProperty.new(**deepgram_config.transform_keys(&:to_sym)) : deepgram_config
  Jsii::Type.check_type(@deepgram_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LkRlZXBncmFtU3BlZWNoTW9kZWxDb25maWdQcm9wZXJ0eSJ9XX19")), "deepgramConfig") unless @deepgram_config.nil?
end

Instance Attribute Details

Class Method Details

.jsii_propertiesObject



6178
6179
6180
6181
6182
# File 'lex/cfn_bot.rb', line 6178

def self.jsii_properties
  {
    :deepgram_config => "deepgramConfig",
  }
end

Instance Method Details

#to_jsiiObject



6184
6185
6186
6187
6188
6189
6190
# File 'lex/cfn_bot.rb', line 6184

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