Class: AWSCDK::Lex::CfnBot::SlotPriorityProperty

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

Overview

Sets the priority that Amazon Lex should use when eliciting slot values from a user.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(priority:, slot_name:) ⇒ SlotPriorityProperty

Returns a new instance of SlotPriorityProperty.

Parameters:

  • priority (Numeric)

    The priority that Amazon Lex should apply to the slot.

  • slot_name (String)

    The name of the slot.



5407
5408
5409
5410
5411
5412
# File 'lex/cfn_bot.rb', line 5407

def initialize(priority:, slot_name:)
  @priority = priority
  Jsii::Type.check_type(@priority, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "priority")
  @slot_name = slot_name
  Jsii::Type.check_type(@slot_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "slotName")
end

Instance Attribute Details

#priorityNumeric (readonly)

The priority that Amazon Lex should apply to the slot.



5418
5419
5420
# File 'lex/cfn_bot.rb', line 5418

def priority
  @priority
end

#slot_nameString (readonly)

The name of the slot.



5423
5424
5425
# File 'lex/cfn_bot.rb', line 5423

def slot_name
  @slot_name
end

Class Method Details

.jsii_propertiesObject



5425
5426
5427
5428
5429
5430
# File 'lex/cfn_bot.rb', line 5425

def self.jsii_properties
  {
    :priority => "priority",
    :slot_name => "slotName",
  }
end

Instance Method Details

#to_jsiiObject



5432
5433
5434
5435
5436
5437
5438
5439
# File 'lex/cfn_bot.rb', line 5432

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