Class: AWSCDK::Lex::CfnBotAlias::TextLogSettingProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lex/cfn_bot_alias.rb

Overview

Defines settings to enable text conversation logs.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(destination:, enabled:) ⇒ TextLogSettingProperty

Returns a new instance of TextLogSettingProperty.

Parameters:



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

#destinationAWSCDK::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

#enabledBoolean, 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_propertiesObject



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_jsiiObject



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