Class: AWSCDK::Lex::CfnBot::MessageGroupProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::MessageGroupProperty
- Defined in:
- lex/cfn_bot.rb
Overview
Provides one or more messages that Amazon Lex should send to the user.
Instance Attribute Summary collapse
-
#message ⇒ AWSCDK::IResolvable, AWSCDK::Lex::CfnBot::MessageProperty
readonly
The primary message that Amazon Lex should send to the user.
-
#variations ⇒ AWSCDK::IResolvable, ...
readonly
Message variations to send to the user.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(message:, variations: nil) ⇒ MessageGroupProperty
constructor
A new instance of MessageGroupProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(message:, variations: nil) ⇒ MessageGroupProperty
Returns a new instance of MessageGroupProperty.
3861 3862 3863 3864 3865 3866 |
# File 'lex/cfn_bot.rb', line 3861 def initialize(message:, variations: nil) @message = .is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::MessageProperty.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@message, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90Lk1lc3NhZ2VQcm9wZXJ0eSJ9XX19")), "message") @variations = variations Jsii::Type.check_type(@variations, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbGV4LkNmbkJvdC5NZXNzYWdlUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "variations") unless @variations.nil? end |
Instance Attribute Details
#message ⇒ AWSCDK::IResolvable, AWSCDK::Lex::CfnBot::MessageProperty (readonly)
The primary message that Amazon Lex should send to the user.
3872 3873 3874 |
# File 'lex/cfn_bot.rb', line 3872 def @message end |
#variations ⇒ AWSCDK::IResolvable, ... (readonly)
Message variations to send to the user.
When variations are defined, Amazon Lex chooses the primary message or one of the variations to send to the user.
3879 3880 3881 |
# File 'lex/cfn_bot.rb', line 3879 def variations @variations end |
Class Method Details
.jsii_properties ⇒ Object
3881 3882 3883 3884 3885 3886 |
# File 'lex/cfn_bot.rb', line 3881 def self.jsii_properties { :message => "message", :variations => "variations", } end |
Instance Method Details
#to_jsii ⇒ Object
3888 3889 3890 3891 3892 3893 3894 3895 |
# File 'lex/cfn_bot.rb', line 3888 def to_jsii result = {} result.merge!({ "message" => @message, "variations" => @variations, }) result.compact end |