Class: AWSCDK::Lex::CfnBot::SampleUtteranceProperty

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

Overview

A sample utterance that invokes an intent or respond to a slot elicitation prompt.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(utterance:) ⇒ SampleUtteranceProperty

Returns a new instance of SampleUtteranceProperty.

Parameters:

  • utterance (String)

    A sample utterance that invokes an intent or respond to a slot elicitation prompt.



5091
5092
5093
5094
# File 'lex/cfn_bot.rb', line 5091

def initialize(utterance:)
  @utterance = utterance
  Jsii::Type.check_type(@utterance, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "utterance")
end

Instance Attribute Details

#utteranceString (readonly)

A sample utterance that invokes an intent or respond to a slot elicitation prompt.



5100
5101
5102
# File 'lex/cfn_bot.rb', line 5100

def utterance
  @utterance
end

Class Method Details

.jsii_propertiesObject



5102
5103
5104
5105
5106
# File 'lex/cfn_bot.rb', line 5102

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

Instance Method Details

#to_jsiiObject



5108
5109
5110
5111
5112
5113
5114
# File 'lex/cfn_bot.rb', line 5108

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