Class: AWSCDK::Lex::CfnBotAlias::TextLogSettingProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBotAlias::TextLogSettingProperty
- Defined in:
- lex/cfn_bot_alias.rb
Overview
Defines settings to enable text conversation logs.
Instance Attribute Summary collapse
-
#destination ⇒ AWSCDK::IResolvable, AWSCDK::Lex::CfnBotAlias::TextLogDestinationProperty
readonly
Defines 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.
1085 1086 1087 1088 1089 1090 |
# File 'lex/cfn_bot_alias.rb', line 1085 def initialize(destination:, enabled:) @destination = destination.is_a?(Hash) ? ::AWSCDK::Lex::CfnBotAlias::TextLogDestinationProperty.new(**destination.transform_keys(&:to_sym)) : destination Jsii::Type.check_type(@destination, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90QWxpYXMuVGV4dExvZ0Rlc3RpbmF0aW9uUHJvcGVydHkifV19fQ==")), "destination") @enabled = enabled Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enabled") end |
Instance Attribute Details
#destination ⇒ AWSCDK::IResolvable, AWSCDK::Lex::CfnBotAlias::TextLogDestinationProperty (readonly)
Defines the Amazon CloudWatch Logs destination log group for conversation text logs.
1096 1097 1098 |
# File 'lex/cfn_bot_alias.rb', line 1096 def destination @destination end |
#enabled ⇒ Boolean, AWSCDK::IResolvable (readonly)
Determines whether conversation logs should be stored for an alias.
1101 1102 1103 |
# File 'lex/cfn_bot_alias.rb', line 1101 def enabled @enabled end |
Class Method Details
.jsii_properties ⇒ Object
1103 1104 1105 1106 1107 1108 |
# File 'lex/cfn_bot_alias.rb', line 1103 def self.jsii_properties { :destination => "destination", :enabled => "enabled", } end |
Instance Method Details
#to_jsii ⇒ Object
1110 1111 1112 1113 1114 1115 1116 1117 |
# File 'lex/cfn_bot_alias.rb', line 1110 def to_jsii result = {} result.merge!({ "destination" => @destination, "enabled" => @enabled, }) result.compact end |