Class: AWSCDK::Lex::CfnBot::AudioLogSettingProperty

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

Overview

Settings for logging audio of conversations between Amazon Lex and a user.

You specify whether to log audio and the Amazon S3 bucket where the audio file is stored.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(destination:, enabled:) ⇒ AudioLogSettingProperty

Returns a new instance of AudioLogSettingProperty.

Parameters:



913
914
915
916
917
918
# File 'lex/cfn_bot.rb', line 913

def initialize(destination:, enabled:)
  @destination = destination.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::AudioLogDestinationProperty.new(**destination.transform_keys(&:to_sym)) : destination
  Jsii::Type.check_type(@destination, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LkF1ZGlvTG9nRGVzdGluYXRpb25Qcm9wZXJ0eSJ9XX19")), "destination")
  @enabled = enabled
  Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enabled")
end

Instance Attribute Details

#destinationAWSCDK::IResolvable, AWSCDK::Lex::CfnBot::AudioLogDestinationProperty (readonly)

Specifies the location of the audio log files collected when conversation logging is enabled for a bot.



924
925
926
# File 'lex/cfn_bot.rb', line 924

def destination
  @destination
end

#enabledBoolean, AWSCDK::IResolvable (readonly)

Determines whether audio logging in enabled for the bot.



929
930
931
# File 'lex/cfn_bot.rb', line 929

def enabled
  @enabled
end

Class Method Details

.jsii_propertiesObject



931
932
933
934
935
936
# File 'lex/cfn_bot.rb', line 931

def self.jsii_properties
  {
    :destination => "destination",
    :enabled => "enabled",
  }
end

Instance Method Details

#to_jsiiObject



938
939
940
941
942
943
944
945
# File 'lex/cfn_bot.rb', line 938

def to_jsii
  result = {}
  result.merge!({
    "destination" => @destination,
    "enabled" => @enabled,
  })
  result.compact
end