Class: AWSCDK::Lex::CfnBot::SlotValueProperty

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

Overview

The value to set in a slot.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(interpreted_value: nil) ⇒ SlotValueProperty

Returns a new instance of SlotValueProperty.

Parameters:

  • interpreted_value (String, nil) (defaults to: nil)

    The value that Amazon Lex determines for the slot.



5936
5937
5938
5939
# File 'lex/cfn_bot.rb', line 5936

def initialize(interpreted_value: nil)
  @interpreted_value = interpreted_value
  Jsii::Type.check_type(@interpreted_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "interpretedValue") unless @interpreted_value.nil?
end

Instance Attribute Details

#interpreted_valueString? (readonly)

The value that Amazon Lex determines for the slot.

The actual value depends on the setting of the value selection strategy for the bot. You can choose to use the value entered by the user, or you can have Amazon Lex choose the first value in the resolved_values list.



5947
5948
5949
# File 'lex/cfn_bot.rb', line 5947

def interpreted_value
  @interpreted_value
end

Class Method Details

.jsii_propertiesObject



5949
5950
5951
5952
5953
# File 'lex/cfn_bot.rb', line 5949

def self.jsii_properties
  {
    :interpreted_value => "interpretedValue",
  }
end

Instance Method Details

#to_jsiiObject



5955
5956
5957
5958
5959
5960
5961
# File 'lex/cfn_bot.rb', line 5955

def to_jsii
  result = {}
  result.merge!({
    "interpretedValue" => @interpreted_value,
  })
  result.compact
end