Class: AWSCDK::Lex::CfnBot::InputContextProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:) ⇒ InputContextProperty

Returns a new instance of InputContextProperty.

Parameters:

  • name (String)

    The name of the context.



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

#nameString (readonly)

The name of the context.



3195
3196
3197
# File 'lex/cfn_bot.rb', line 3195

def name
  @name
end

Class Method Details

.jsii_propertiesObject



3197
3198
3199
3200
3201
# File 'lex/cfn_bot.rb', line 3197

def self.jsii_properties
  {
    :name => "name",
  }
end

Instance Method Details

#to_jsiiObject



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