Class: AWSCDK::Lex::CfnBot::DeepgramSpeechModelConfigProperty

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(api_token_secret_arn:, model_id: nil) ⇒ DeepgramSpeechModelConfigProperty

Returns a new instance of DeepgramSpeechModelConfigProperty.

Parameters:

  • api_token_secret_arn (String)
  • model_id (String, nil) (defaults to: nil)


2197
2198
2199
2200
2201
2202
# File 'lex/cfn_bot.rb', line 2197

def initialize(api_token_secret_arn:, model_id: nil)
  @api_token_secret_arn = api_token_secret_arn
  Jsii::Type.check_type(@api_token_secret_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "apiTokenSecretArn")
  @model_id = model_id
  Jsii::Type.check_type(@model_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "modelId") unless @model_id.nil?
end

Instance Attribute Details

#api_token_secret_arnString (readonly)



2206
2207
2208
# File 'lex/cfn_bot.rb', line 2206

def api_token_secret_arn
  @api_token_secret_arn
end

#model_idString? (readonly)



2209
2210
2211
# File 'lex/cfn_bot.rb', line 2209

def model_id
  @model_id
end

Class Method Details

.jsii_propertiesObject



2211
2212
2213
2214
2215
2216
# File 'lex/cfn_bot.rb', line 2211

def self.jsii_properties
  {
    :api_token_secret_arn => "apiTokenSecretArn",
    :model_id => "modelId",
  }
end

Instance Method Details

#to_jsiiObject



2218
2219
2220
2221
2222
2223
2224
2225
# File 'lex/cfn_bot.rb', line 2218

def to_jsii
  result = {}
  result.merge!({
    "apiTokenSecretArn" => @api_token_secret_arn,
    "modelId" => @model_id,
  })
  result.compact
end