Class: AWSCDK::Lex::CfnBot::SlotDefaultValueProperty

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

Overview

Specifies the default value to use when a user doesn't provide a value for a slot.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(default_value:) ⇒ SlotDefaultValueProperty

Returns a new instance of SlotDefaultValueProperty.

Parameters:

  • default_value (String)

    The default value to use when a user doesn't provide a value for a slot.



5338
5339
5340
5341
# File 'lex/cfn_bot.rb', line 5338

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

Instance Attribute Details

#default_valueString (readonly)

The default value to use when a user doesn't provide a value for a slot.



5347
5348
5349
# File 'lex/cfn_bot.rb', line 5347

def default_value
  @default_value
end

Class Method Details

.jsii_propertiesObject



5349
5350
5351
5352
5353
# File 'lex/cfn_bot.rb', line 5349

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

Instance Method Details

#to_jsiiObject



5355
5356
5357
5358
5359
5360
5361
# File 'lex/cfn_bot.rb', line 5355

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