Class: AWSCDK::Lex::CfnBotVersion::BotVersionLocaleSpecificationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBotVersion::BotVersionLocaleSpecificationProperty
- Defined in:
- lex/cfn_bot_version.rb
Overview
Specifies the locale that Amazon Lex adds to this version.
You can choose the Draft version or any other previously published version for each locale. When you specify a source version, the locale data is copied from the source version to the new version.
Instance Attribute Summary collapse
-
#bot_version_locale_details ⇒ AWSCDK::IResolvable, AWSCDK::Lex::CfnBotVersion::BotVersionLocaleDetailsProperty
readonly
The version of a bot used for a bot locale.
-
#locale_id ⇒ String
readonly
The identifier of the locale to add to the version.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bot_version_locale_details:, locale_id:) ⇒ BotVersionLocaleSpecificationProperty
constructor
A new instance of BotVersionLocaleSpecificationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(bot_version_locale_details:, locale_id:) ⇒ BotVersionLocaleSpecificationProperty
Returns a new instance of BotVersionLocaleSpecificationProperty.
566 567 568 569 570 571 |
# File 'lex/cfn_bot_version.rb', line 566 def initialize(bot_version_locale_details:, locale_id:) @bot_version_locale_details = bot_version_locale_details.is_a?(Hash) ? ::AWSCDK::Lex::CfnBotVersion::BotVersionLocaleDetailsProperty.new(**bot_version_locale_details.transform_keys(&:to_sym)) : bot_version_locale_details Jsii::Type.check_type(@bot_version_locale_details, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90VmVyc2lvbi5Cb3RWZXJzaW9uTG9jYWxlRGV0YWlsc1Byb3BlcnR5In1dfX0=")), "botVersionLocaleDetails") @locale_id = locale_id Jsii::Type.check_type(@locale_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "localeId") end |
Instance Attribute Details
#bot_version_locale_details ⇒ AWSCDK::IResolvable, AWSCDK::Lex::CfnBotVersion::BotVersionLocaleDetailsProperty (readonly)
The version of a bot used for a bot locale.
577 578 579 |
# File 'lex/cfn_bot_version.rb', line 577 def bot_version_locale_details @bot_version_locale_details end |
#locale_id ⇒ String (readonly)
The identifier of the locale to add to the version.
582 583 584 |
# File 'lex/cfn_bot_version.rb', line 582 def locale_id @locale_id end |
Class Method Details
.jsii_properties ⇒ Object
584 585 586 587 588 589 |
# File 'lex/cfn_bot_version.rb', line 584 def self.jsii_properties { :bot_version_locale_details => "botVersionLocaleDetails", :locale_id => "localeId", } end |
Instance Method Details
#to_jsii ⇒ Object
591 592 593 594 595 596 597 598 |
# File 'lex/cfn_bot_version.rb', line 591 def to_jsii result = {} result.merge!({ "botVersionLocaleDetails" => @bot_version_locale_details, "localeId" => @locale_id, }) result.compact end |