Class: AWSCDK::Lex::CfnBot::TextLogSettingProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::TextLogSettingProperty
- Defined in:
- lex/cfn_bot.rb
Overview
Defines settings to enable text conversation logs.
Instance Attribute Summary collapse
-
#destination ⇒ AWSCDK::IResolvable, AWSCDK::Lex::CfnBot::TextLogDestinationProperty
readonly
Specifies the Amazon CloudWatch Logs destination log group for conversation text logs.
-
#enabled ⇒ Boolean, AWSCDK::IResolvable
readonly
Determines whether conversation logs should be stored for an alias.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(destination:, enabled:) ⇒ TextLogSettingProperty
constructor
A new instance of TextLogSettingProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(destination:, enabled:) ⇒ TextLogSettingProperty
Returns a new instance of TextLogSettingProperty.
6595 6596 6597 6598 6599 6600 |
# File 'lex/cfn_bot.rb', line 6595 def initialize(destination:, enabled:) @destination = destination.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::TextLogDestinationProperty.new(**destination.transform_keys(&:to_sym)) : destination Jsii::Type.check_type(@destination, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LlRleHRMb2dEZXN0aW5hdGlvblByb3BlcnR5In1dfX0=")), "destination") @enabled = enabled Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enabled") end |
Instance Attribute Details
#destination ⇒ AWSCDK::IResolvable, AWSCDK::Lex::CfnBot::TextLogDestinationProperty (readonly)
Specifies the Amazon CloudWatch Logs destination log group for conversation text logs.
6606 6607 6608 |
# File 'lex/cfn_bot.rb', line 6606 def destination @destination end |
#enabled ⇒ Boolean, AWSCDK::IResolvable (readonly)
Determines whether conversation logs should be stored for an alias.
6611 6612 6613 |
# File 'lex/cfn_bot.rb', line 6611 def enabled @enabled end |
Class Method Details
.jsii_properties ⇒ Object
6613 6614 6615 6616 6617 6618 |
# File 'lex/cfn_bot.rb', line 6613 def self.jsii_properties { :destination => "destination", :enabled => "enabled", } end |
Instance Method Details
#to_jsii ⇒ Object
6620 6621 6622 6623 6624 6625 6626 6627 |
# File 'lex/cfn_bot.rb', line 6620 def to_jsii result = {} result.merge!({ "destination" => @destination, "enabled" => @enabled, }) result.compact end |