Class: AWSCDK::Lex::CfnBotAlias::AudioLogSettingProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBotAlias::AudioLogSettingProperty
- 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
-
#destination ⇒ AWSCDK::IResolvable, AWSCDK::Lex::CfnBotAlias::AudioLogDestinationProperty
readonly
The location of 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.
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
#destination ⇒ AWSCDK::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 |
#enabled ⇒ Boolean, 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_properties ⇒ Object
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_jsii ⇒ Object
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 |