Class: AWSCDK::Lex::CfnBot::SampleValueProperty

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

Overview

Defines one of the values for a slot type.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value:) ⇒ SampleValueProperty

Returns a new instance of SampleValueProperty.

Parameters:

  • value (String)

    The value that can be used for a slot type.



5124
5125
5126
5127
# File 'lex/cfn_bot.rb', line 5124

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

Instance Attribute Details

#valueString (readonly)

The value that can be used for a slot type.



5133
5134
5135
# File 'lex/cfn_bot.rb', line 5133

def value
  @value
end

Class Method Details

.jsii_propertiesObject



5135
5136
5137
5138
5139
# File 'lex/cfn_bot.rb', line 5135

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

Instance Method Details

#to_jsiiObject



5141
5142
5143
5144
5145
5146
5147
# File 'lex/cfn_bot.rb', line 5141

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