Class: AWSCDK::Lex::CfnBot::OutputContextProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::OutputContextProperty
- Defined in:
- lex/cfn_bot.rb
Overview
Describes a session context that is activated when an intent is fulfilled.
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
The name of the output context.
-
#time_to_live_in_seconds ⇒ Numeric
readonly
The amount of time, in seconds, that the output context should remain active.
-
#turns_to_live ⇒ Numeric
readonly
The number of conversation turns that the output context should remain active.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, time_to_live_in_seconds:, turns_to_live:) ⇒ OutputContextProperty
constructor
A new instance of OutputContextProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, time_to_live_in_seconds:, turns_to_live:) ⇒ OutputContextProperty
Returns a new instance of OutputContextProperty.
4178 4179 4180 4181 4182 4183 4184 4185 |
# File 'lex/cfn_bot.rb', line 4178 def initialize(name:, time_to_live_in_seconds:, turns_to_live:) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @time_to_live_in_seconds = time_to_live_in_seconds Jsii::Type.check_type(@time_to_live_in_seconds, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "timeToLiveInSeconds") @turns_to_live = turns_to_live Jsii::Type.check_type(@turns_to_live, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "turnsToLive") end |
Instance Attribute Details
#name ⇒ String (readonly)
The name of the output context.
4191 4192 4193 |
# File 'lex/cfn_bot.rb', line 4191 def name @name end |
#time_to_live_in_seconds ⇒ Numeric (readonly)
The amount of time, in seconds, that the output context should remain active.
The time is figured from the first time the context is sent to the user.
4198 4199 4200 |
# File 'lex/cfn_bot.rb', line 4198 def time_to_live_in_seconds @time_to_live_in_seconds end |
#turns_to_live ⇒ Numeric (readonly)
The number of conversation turns that the output context should remain active.
The number of turns is counted from the first time that the context is sent to the user.
4205 4206 4207 |
# File 'lex/cfn_bot.rb', line 4205 def turns_to_live @turns_to_live end |
Class Method Details
.jsii_properties ⇒ Object
4207 4208 4209 4210 4211 4212 4213 |
# File 'lex/cfn_bot.rb', line 4207 def self.jsii_properties { :name => "name", :time_to_live_in_seconds => "timeToLiveInSeconds", :turns_to_live => "turnsToLive", } end |
Instance Method Details
#to_jsii ⇒ Object
4215 4216 4217 4218 4219 4220 4221 4222 4223 |
# File 'lex/cfn_bot.rb', line 4215 def to_jsii result = {} result.merge!({ "name" => @name, "timeToLiveInSeconds" => @time_to_live_in_seconds, "turnsToLive" => @turns_to_live, }) result.compact end |