Class: AWSCDK::Lex::CfnBot::DeepgramSpeechModelConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::DeepgramSpeechModelConfigProperty
- Defined in:
- lex/cfn_bot.rb
Overview
Instance Attribute Summary collapse
- #api_token_secret_arn ⇒ String readonly
- #model_id ⇒ String? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(api_token_secret_arn:, model_id: nil) ⇒ DeepgramSpeechModelConfigProperty
constructor
A new instance of DeepgramSpeechModelConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(api_token_secret_arn:, model_id: nil) ⇒ DeepgramSpeechModelConfigProperty
Returns a new instance of DeepgramSpeechModelConfigProperty.
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_arn ⇒ String (readonly)
2206 2207 2208 |
# File 'lex/cfn_bot.rb', line 2206 def api_token_secret_arn @api_token_secret_arn end |
#model_id ⇒ String? (readonly)
2209 2210 2211 |
# File 'lex/cfn_bot.rb', line 2209 def model_id @model_id end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |