Class: AWSCDK::Lex::CfnBot::CustomPayloadProperty

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value:) ⇒ CustomPayloadProperty

Returns a new instance of CustomPayloadProperty.

Parameters:

  • value (String)

    The string that is sent to your application.



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

#valueString (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_propertiesObject



1931
1932
1933
1934
1935
# File 'lex/cfn_bot.rb', line 1931

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

Instance Method Details

#to_jsiiObject



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