Class: AWSCDK::Lex::CfnBot::SlotTypeValueProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lex/cfn_bot.rb

Overview

Each slot type can have a set of values.

Each SlotTypeValue represents a value that the slot type can take.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sample_value:, synonyms: nil) ⇒ SlotTypeValueProperty

Returns a new instance of SlotTypeValueProperty.

Parameters:



5707
5708
5709
5710
5711
5712
# File 'lex/cfn_bot.rb', line 5707

def initialize(sample_value:, synonyms: nil)
  @sample_value = sample_value.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::SampleValueProperty.new(**sample_value.transform_keys(&:to_sym)) : sample_value
  Jsii::Type.check_type(@sample_value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LlNhbXBsZVZhbHVlUHJvcGVydHkifV19fQ==")), "sampleValue")
  @synonyms = synonyms
  Jsii::Type.check_type(@synonyms, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbGV4LkNmbkJvdC5TYW1wbGVWYWx1ZVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "synonyms") unless @synonyms.nil?
end

Instance Attribute Details

#sample_valueAWSCDK::IResolvable, AWSCDK::Lex::CfnBot::SampleValueProperty (readonly)

The value of the slot type entry.



5718
5719
5720
# File 'lex/cfn_bot.rb', line 5718

def sample_value
  @sample_value
end

#synonymsAWSCDK::IResolvable, ... (readonly)

Additional values related to the slot type entry.



5723
5724
5725
# File 'lex/cfn_bot.rb', line 5723

def synonyms
  @synonyms
end

Class Method Details

.jsii_propertiesObject



5725
5726
5727
5728
5729
5730
# File 'lex/cfn_bot.rb', line 5725

def self.jsii_properties
  {
    :sample_value => "sampleValue",
    :synonyms => "synonyms",
  }
end

Instance Method Details

#to_jsiiObject



5732
5733
5734
5735
5736
5737
5738
5739
# File 'lex/cfn_bot.rb', line 5732

def to_jsii
  result = {}
  result.merge!({
    "sampleValue" => @sample_value,
    "synonyms" => @synonyms,
  })
  result.compact
end