Class: AWSCDK::Lex::CfnBot::CustomVocabularyProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::CustomVocabularyProperty
- Defined in:
- lex/cfn_bot.rb
Overview
Specifies a custom vocabulary.
A custom vocabulary is a list of words that you expect to be used during a conversation with your bot.
Instance Attribute Summary collapse
-
#custom_vocabulary_items ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Lex::CfnBot::CustomVocabularyItemProperty>
readonly
Specifies a list of words that you expect to be used during a conversation with your bot.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(custom_vocabulary_items:) ⇒ CustomVocabularyProperty
constructor
A new instance of CustomVocabularyProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(custom_vocabulary_items:) ⇒ CustomVocabularyProperty
Returns a new instance of CustomVocabularyProperty.
2010 2011 2012 2013 |
# File 'lex/cfn_bot.rb', line 2010 def initialize(custom_vocabulary_items:) @custom_vocabulary_items = custom_vocabulary_items Jsii::Type.check_type(@custom_vocabulary_items, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbGV4LkNmbkJvdC5DdXN0b21Wb2NhYnVsYXJ5SXRlbVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "customVocabularyItems") end |
Instance Attribute Details
#custom_vocabulary_items ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Lex::CfnBot::CustomVocabularyItemProperty> (readonly)
Specifies a list of words that you expect to be used during a conversation with your bot.
2019 2020 2021 |
# File 'lex/cfn_bot.rb', line 2019 def custom_vocabulary_items @custom_vocabulary_items end |
Class Method Details
.jsii_properties ⇒ Object
2021 2022 2023 2024 2025 |
# File 'lex/cfn_bot.rb', line 2021 def self.jsii_properties { :custom_vocabulary_items => "customVocabularyItems", } end |
Instance Method Details
#to_jsii ⇒ Object
2027 2028 2029 2030 2031 2032 2033 |
# File 'lex/cfn_bot.rb', line 2027 def to_jsii result = {} result.merge!({ "customVocabularyItems" => @custom_vocabulary_items, }) result.compact end |