Class: AWSCDK::Lex::CfnBot::MultipleValuesSettingProperty

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

Overview

Indicates whether a slot can return multiple values.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(allow_multiple_values: nil) ⇒ MultipleValuesSettingProperty

Returns a new instance of MultipleValuesSettingProperty.

Parameters:

  • allow_multiple_values (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Indicates whether a slot can return multiple values.



3968
3969
3970
3971
# File 'lex/cfn_bot.rb', line 3968

def initialize(allow_multiple_values: nil)
  @allow_multiple_values = allow_multiple_values
  Jsii::Type.check_type(@allow_multiple_values, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "allowMultipleValues") unless @allow_multiple_values.nil?
end

Instance Attribute Details

#allow_multiple_valuesBoolean, ... (readonly)

Indicates whether a slot can return multiple values.

When true , the slot may return more than one value in a response. When false , the slot returns only a single value.

Multi-value slots are only available in the en-US locale. If you set this value to true in any other locale, Amazon Lex throws a ValidationException .

If the allow_mutliple_values is not set, the default value is false .



3983
3984
3985
# File 'lex/cfn_bot.rb', line 3983

def allow_multiple_values
  @allow_multiple_values
end

Class Method Details

.jsii_propertiesObject



3985
3986
3987
3988
3989
# File 'lex/cfn_bot.rb', line 3985

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

Instance Method Details

#to_jsiiObject



3991
3992
3993
3994
3995
3996
3997
# File 'lex/cfn_bot.rb', line 3991

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