Class: AWSCDK::Lex::CfnBot::BotAliasLocaleSettingsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::BotAliasLocaleSettingsProperty
- Defined in:
- lex/cfn_bot.rb
Overview
Specifies settings that are unique to a locale.
For example, you can use different Lambda function depending on the bot's locale.
Instance Attribute Summary collapse
-
#code_hook_specification ⇒ AWSCDK::IResolvable, ...
readonly
Specifies the Lambda function that should be used in the locale.
-
#enabled ⇒ Boolean, AWSCDK::IResolvable
readonly
Determines whether the locale is enabled for the bot.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(enabled:, code_hook_specification: nil) ⇒ BotAliasLocaleSettingsProperty
constructor
A new instance of BotAliasLocaleSettingsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(enabled:, code_hook_specification: nil) ⇒ BotAliasLocaleSettingsProperty
Returns a new instance of BotAliasLocaleSettingsProperty.
1331 1332 1333 1334 1335 1336 |
# File 'lex/cfn_bot.rb', line 1331 def initialize(enabled:, code_hook_specification: nil) @enabled = enabled Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enabled") @code_hook_specification = code_hook_specification.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::CodeHookSpecificationProperty.new(**code_hook_specification.transform_keys(&:to_sym)) : code_hook_specification Jsii::Type.check_type(@code_hook_specification, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LkNvZGVIb29rU3BlY2lmaWNhdGlvblByb3BlcnR5In1dfX0=")), "codeHookSpecification") unless @code_hook_specification.nil? end |
Instance Attribute Details
#code_hook_specification ⇒ AWSCDK::IResolvable, ... (readonly)
Specifies the Lambda function that should be used in the locale.
1349 1350 1351 |
# File 'lex/cfn_bot.rb', line 1349 def code_hook_specification @code_hook_specification end |
#enabled ⇒ Boolean, AWSCDK::IResolvable (readonly)
Determines whether the locale is enabled for the bot.
If the value is false , the locale isn't available for use.
1344 1345 1346 |
# File 'lex/cfn_bot.rb', line 1344 def enabled @enabled end |
Class Method Details
.jsii_properties ⇒ Object
1351 1352 1353 1354 1355 1356 |
# File 'lex/cfn_bot.rb', line 1351 def self.jsii_properties { :enabled => "enabled", :code_hook_specification => "codeHookSpecification", } end |
Instance Method Details
#to_jsii ⇒ Object
1358 1359 1360 1361 1362 1363 1364 1365 |
# File 'lex/cfn_bot.rb', line 1358 def to_jsii result = {} result.merge!({ "enabled" => @enabled, "codeHookSpecification" => @code_hook_specification, }) result.compact end |