Class: AWSCDK::Lex::CfnBot::InputContextProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::InputContextProperty
- Defined in:
- lex/cfn_bot.rb
Overview
A context that must be active for an intent to be selected by Amazon Lex.
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
The name of the context.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:) ⇒ InputContextProperty
constructor
A new instance of InputContextProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:) ⇒ InputContextProperty
Returns a new instance of InputContextProperty.
3186 3187 3188 3189 |
# File 'lex/cfn_bot.rb', line 3186 def initialize(name:) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") end |
Instance Attribute Details
#name ⇒ String (readonly)
The name of the context.
3195 3196 3197 |
# File 'lex/cfn_bot.rb', line 3195 def name @name end |
Class Method Details
.jsii_properties ⇒ Object
3197 3198 3199 3200 3201 |
# File 'lex/cfn_bot.rb', line 3197 def self.jsii_properties { :name => "name", } end |
Instance Method Details
#to_jsii ⇒ Object
3203 3204 3205 3206 3207 3208 3209 |
# File 'lex/cfn_bot.rb', line 3203 def to_jsii result = {} result.merge!({ "name" => @name, }) result.compact end |