Class: AWSCDK::Lex::CfnBotAlias::BotAliasLocaleSettingsItemProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBotAlias::BotAliasLocaleSettingsItemProperty
- Defined in:
- lex/cfn_bot_alias.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
-
#bot_alias_locale_setting ⇒ AWSCDK::IResolvable, AWSCDK::Lex::CfnBotAlias::BotAliasLocaleSettingsProperty
readonly
Specifies settings that are unique to a locale.
-
#locale_id ⇒ String
readonly
The unique identifier of the locale.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bot_alias_locale_setting:, locale_id:) ⇒ BotAliasLocaleSettingsItemProperty
constructor
A new instance of BotAliasLocaleSettingsItemProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(bot_alias_locale_setting:, locale_id:) ⇒ BotAliasLocaleSettingsItemProperty
Returns a new instance of BotAliasLocaleSettingsItemProperty.
712 713 714 715 716 717 |
# File 'lex/cfn_bot_alias.rb', line 712 def initialize(bot_alias_locale_setting:, locale_id:) @bot_alias_locale_setting = bot_alias_locale_setting.is_a?(Hash) ? ::AWSCDK::Lex::CfnBotAlias::BotAliasLocaleSettingsProperty.new(**bot_alias_locale_setting.transform_keys(&:to_sym)) : bot_alias_locale_setting Jsii::Type.check_type(@bot_alias_locale_setting, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90QWxpYXMuQm90QWxpYXNMb2NhbGVTZXR0aW5nc1Byb3BlcnR5In1dfX0=")), "botAliasLocaleSetting") @locale_id = locale_id Jsii::Type.check_type(@locale_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "localeId") end |
Instance Attribute Details
#bot_alias_locale_setting ⇒ AWSCDK::IResolvable, AWSCDK::Lex::CfnBotAlias::BotAliasLocaleSettingsProperty (readonly)
Specifies settings that are unique to a locale.
723 724 725 |
# File 'lex/cfn_bot_alias.rb', line 723 def bot_alias_locale_setting @bot_alias_locale_setting end |
#locale_id ⇒ String (readonly)
The unique identifier of the locale.
728 729 730 |
# File 'lex/cfn_bot_alias.rb', line 728 def locale_id @locale_id end |
Class Method Details
.jsii_properties ⇒ Object
730 731 732 733 734 735 |
# File 'lex/cfn_bot_alias.rb', line 730 def self.jsii_properties { :bot_alias_locale_setting => "botAliasLocaleSetting", :locale_id => "localeId", } end |
Instance Method Details
#to_jsii ⇒ Object
737 738 739 740 741 742 743 744 |
# File 'lex/cfn_bot_alias.rb', line 737 def to_jsii result = {} result.merge!({ "botAliasLocaleSetting" => @bot_alias_locale_setting, "localeId" => @locale_id, }) result.compact end |