Class: AWSCDK::Lex::CfnBot::ConversationLogSettingsProperty

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

Overview

Configures conversation logging that saves audio, text, and metadata for the conversations with your users.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(audio_log_settings: nil, text_log_settings: nil) ⇒ ConversationLogSettingsProperty

Returns a new instance of ConversationLogSettingsProperty.

Parameters:



1876
1877
1878
1879
1880
1881
# File 'lex/cfn_bot.rb', line 1876

def initialize(audio_log_settings: nil, text_log_settings: nil)
  @audio_log_settings = audio_log_settings
  Jsii::Type.check_type(@audio_log_settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbGV4LkNmbkJvdC5BdWRpb0xvZ1NldHRpbmdQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "audioLogSettings") unless @audio_log_settings.nil?
  @text_log_settings = text_log_settings
  Jsii::Type.check_type(@text_log_settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbGV4LkNmbkJvdC5UZXh0TG9nU2V0dGluZ1Byb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "textLogSettings") unless @text_log_settings.nil?
end

Instance Attribute Details

#audio_log_settingsAWSCDK::IResolvable, ... (readonly)

The Amazon S3 settings for logging audio to an S3 bucket.



1887
1888
1889
# File 'lex/cfn_bot.rb', line 1887

def audio_log_settings
  @audio_log_settings
end

#text_log_settingsAWSCDK::IResolvable, ... (readonly)

The Amazon CloudWatch Logs settings for logging text and metadata.



1892
1893
1894
# File 'lex/cfn_bot.rb', line 1892

def text_log_settings
  @text_log_settings
end

Class Method Details

.jsii_propertiesObject



1894
1895
1896
1897
1898
1899
# File 'lex/cfn_bot.rb', line 1894

def self.jsii_properties
  {
    :audio_log_settings => "audioLogSettings",
    :text_log_settings => "textLogSettings",
  }
end

Instance Method Details

#to_jsiiObject



1901
1902
1903
1904
1905
1906
1907
1908
# File 'lex/cfn_bot.rb', line 1901

def to_jsii
  result = {}
  result.merge!({
    "audioLogSettings" => @audio_log_settings,
    "textLogSettings" => @text_log_settings,
  })
  result.compact
end