Class: AWSCDK::Lex::CfnBot::AudioLogSettingProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::AudioLogSettingProperty
- 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
-
#destination ⇒ AWSCDK::IResolvable, AWSCDK::Lex::CfnBot::AudioLogDestinationProperty
readonly
Specifies the location of the audio log files collected when conversation logging is enabled for a bot.
-
#enabled ⇒ Boolean, AWSCDK::IResolvable
readonly
Determines whether audio logging in enabled for the bot.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(destination:, enabled:) ⇒ AudioLogSettingProperty
constructor
A new instance of AudioLogSettingProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(destination:, enabled:) ⇒ AudioLogSettingProperty
Returns a new instance of AudioLogSettingProperty.
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
#destination ⇒ AWSCDK::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 |
#enabled ⇒ Boolean, 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_properties ⇒ Object
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_jsii ⇒ Object
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 |