Class: AWSCDK::Lex::CfnBot::SlotPriorityProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::SlotPriorityProperty
- 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
-
#priority ⇒ Numeric
readonly
The priority that Amazon Lex should apply to the slot.
-
#slot_name ⇒ String
readonly
The name of the slot.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(priority:, slot_name:) ⇒ SlotPriorityProperty
constructor
A new instance of SlotPriorityProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(priority:, slot_name:) ⇒ SlotPriorityProperty
Returns a new instance of SlotPriorityProperty.
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
#priority ⇒ Numeric (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_name ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |