Class: AWSCDK::Lex::CfnBot::TestBotAliasSettingsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::TestBotAliasSettingsProperty
- Defined in:
- lex/cfn_bot.rb
Overview
Specifies configuration settings for the alias used to test the bot.
If the TestBotAliasSettings property is not specified, the settings are configured with default values.
Instance Attribute Summary collapse
-
#bot_alias_locale_settings ⇒ AWSCDK::IResolvable, ...
readonly
Specifies settings that are unique to a locale.
-
#conversation_log_settings ⇒ AWSCDK::IResolvable, ...
readonly
Specifies settings for conversation logs that save audio, text, and metadata information for conversations with your users.
-
#description ⇒ String?
readonly
Specifies a description for the test bot alias.
-
#sentiment_analysis_settings ⇒ Object?
readonly
Specifies whether Amazon Lex will use Amazon Comprehend to detect the sentiment of user utterances.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bot_alias_locale_settings: nil, conversation_log_settings: nil, description: nil, sentiment_analysis_settings: nil) ⇒ TestBotAliasSettingsProperty
constructor
A new instance of TestBotAliasSettingsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(bot_alias_locale_settings: nil, conversation_log_settings: nil, description: nil, sentiment_analysis_settings: nil) ⇒ TestBotAliasSettingsProperty
Returns a new instance of TestBotAliasSettingsProperty.
6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 |
# File 'lex/cfn_bot.rb', line 6466 def initialize(bot_alias_locale_settings: nil, conversation_log_settings: nil, description: nil, sentiment_analysis_settings: nil) @bot_alias_locale_settings = bot_alias_locale_settings Jsii::Type.check_type(@bot_alias_locale_settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbGV4LkNmbkJvdC5Cb3RBbGlhc0xvY2FsZVNldHRpbmdzSXRlbVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "botAliasLocaleSettings") unless @bot_alias_locale_settings.nil? @conversation_log_settings = conversation_log_settings.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::ConversationLogSettingsProperty.new(**conversation_log_settings.transform_keys(&:to_sym)) : conversation_log_settings Jsii::Type.check_type(@conversation_log_settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LkNvbnZlcnNhdGlvbkxvZ1NldHRpbmdzUHJvcGVydHkifV19fQ==")), "conversationLogSettings") unless @conversation_log_settings.nil? @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @sentiment_analysis_settings = sentiment_analysis_settings Jsii::Type.check_type(@sentiment_analysis_settings, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "sentimentAnalysisSettings") unless @sentiment_analysis_settings.nil? end |
Instance Attribute Details
#bot_alias_locale_settings ⇒ AWSCDK::IResolvable, ... (readonly)
Specifies settings that are unique to a locale.
For example, you can use a different Lambda function depending on the bot's locale.
6483 6484 6485 |
# File 'lex/cfn_bot.rb', line 6483 def bot_alias_locale_settings @bot_alias_locale_settings end |
#conversation_log_settings ⇒ AWSCDK::IResolvable, ... (readonly)
Specifies settings for conversation logs that save audio, text, and metadata information for conversations with your users.
6488 6489 6490 |
# File 'lex/cfn_bot.rb', line 6488 def conversation_log_settings @conversation_log_settings end |
#description ⇒ String? (readonly)
Specifies a description for the test bot alias.
6493 6494 6495 |
# File 'lex/cfn_bot.rb', line 6493 def description @description end |
#sentiment_analysis_settings ⇒ Object? (readonly)
Specifies whether Amazon Lex will use Amazon Comprehend to detect the sentiment of user utterances.
6498 6499 6500 |
# File 'lex/cfn_bot.rb', line 6498 def sentiment_analysis_settings @sentiment_analysis_settings end |
Class Method Details
.jsii_properties ⇒ Object
6500 6501 6502 6503 6504 6505 6506 6507 |
# File 'lex/cfn_bot.rb', line 6500 def self.jsii_properties { :bot_alias_locale_settings => "botAliasLocaleSettings", :conversation_log_settings => "conversationLogSettings", :description => "description", :sentiment_analysis_settings => "sentimentAnalysisSettings", } end |
Instance Method Details
#to_jsii ⇒ Object
6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 |
# File 'lex/cfn_bot.rb', line 6509 def to_jsii result = {} result.merge!({ "botAliasLocaleSettings" => @bot_alias_locale_settings, "conversationLogSettings" => @conversation_log_settings, "description" => @description, "sentimentAnalysisSettings" => @sentiment_analysis_settings, }) result.compact end |