Class: AWSCDK::Lex::CfnBot::IntentOverrideProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::IntentOverrideProperty
- Defined in:
- lex/cfn_bot.rb
Overview
Override settings to configure the intent state.
Instance Attribute Summary collapse
-
#name ⇒ String?
readonly
The name of the intent.
-
#slots ⇒ AWSCDK::IResolvable, ...
readonly
A map of all of the slot value overrides for the intent.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name: nil, slots: nil) ⇒ IntentOverrideProperty
constructor
A new instance of IntentOverrideProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name: nil, slots: nil) ⇒ IntentOverrideProperty
Returns a new instance of IntentOverrideProperty.
3509 3510 3511 3512 3513 3514 |
# File 'lex/cfn_bot.rb', line 3509 def initialize(name: nil, slots: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? @slots = slots Jsii::Type.check_type(@slots, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbGV4LkNmbkJvdC5TbG90VmFsdWVPdmVycmlkZU1hcFByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "slots") unless @slots.nil? end |
Instance Attribute Details
#name ⇒ String? (readonly)
The name of the intent.
Only required when you're switching intents.
3522 3523 3524 |
# File 'lex/cfn_bot.rb', line 3522 def name @name end |
#slots ⇒ AWSCDK::IResolvable, ... (readonly)
A map of all of the slot value overrides for the intent.
The name of the slot maps to the value of the slot. Slots that are not included in the map aren't overridden.
3529 3530 3531 |
# File 'lex/cfn_bot.rb', line 3529 def slots @slots end |
Class Method Details
.jsii_properties ⇒ Object
3531 3532 3533 3534 3535 3536 |
# File 'lex/cfn_bot.rb', line 3531 def self.jsii_properties { :name => "name", :slots => "slots", } end |
Instance Method Details
#to_jsii ⇒ Object
3538 3539 3540 3541 3542 3543 3544 3545 |
# File 'lex/cfn_bot.rb', line 3538 def to_jsii result = {} result.merge!({ "name" => @name, "slots" => @slots, }) result.compact end |