Class: AWSCDK::Lex::CfnBotVersion::BotVersionLocaleSpecificationProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bot_version_locale_details:, locale_id:) ⇒ BotVersionLocaleSpecificationProperty

Returns a new instance of BotVersionLocaleSpecificationProperty.

Parameters:



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

#locale_idString (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_propertiesObject



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_jsiiObject



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