Class: AWSCDK::Lex::CfnBotAlias::AudioLogSettingProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lex/cfn_bot_alias.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:



667
668
669
670
671
672
# File 'lex/cfn_bot_alias.rb', line 667

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

Instance Attribute Details

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

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



678
679
680
# File 'lex/cfn_bot_alias.rb', line 678

def destination
  @destination
end

#enabledBoolean, AWSCDK::IResolvable (readonly)

Determines whether audio logging in enabled for the bot.



683
684
685
# File 'lex/cfn_bot_alias.rb', line 683

def enabled
  @enabled
end

Class Method Details

.jsii_propertiesObject



685
686
687
688
689
690
# File 'lex/cfn_bot_alias.rb', line 685

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

Instance Method Details

#to_jsiiObject



692
693
694
695
696
697
698
699
# File 'lex/cfn_bot_alias.rb', line 692

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