Class: AWSCDK::Lex::CfnBot::CustomPayloadProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::CustomPayloadProperty
- Defined in:
- lex/cfn_bot.rb
Overview
A custom response string that Amazon Lex sends to your application.
You define the content and structure the string.
Instance Attribute Summary collapse
-
#value ⇒ String
readonly
The string that is sent to your application.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(value:) ⇒ CustomPayloadProperty
constructor
A new instance of CustomPayloadProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(value:) ⇒ CustomPayloadProperty
Returns a new instance of CustomPayloadProperty.
1920 1921 1922 1923 |
# File 'lex/cfn_bot.rb', line 1920 def initialize(value:) @value = value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") end |
Instance Attribute Details
#value ⇒ String (readonly)
The string that is sent to your application.
1929 1930 1931 |
# File 'lex/cfn_bot.rb', line 1929 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
1931 1932 1933 1934 1935 |
# File 'lex/cfn_bot.rb', line 1931 def self.jsii_properties { :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
1937 1938 1939 1940 1941 1942 1943 |
# File 'lex/cfn_bot.rb', line 1937 def to_jsii result = {} result.merge!({ "value" => @value, }) result.compact end |