Class: AWSCDK::Lex::CfnBot::TextLogSettingProperty

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

Overview

Defines settings to enable text conversation logs.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(destination:, enabled:) ⇒ TextLogSettingProperty

Returns a new instance of TextLogSettingProperty.

Parameters:



6595
6596
6597
6598
6599
6600
# File 'lex/cfn_bot.rb', line 6595

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

Instance Attribute Details

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

Specifies the Amazon CloudWatch Logs destination log group for conversation text logs.



6606
6607
6608
# File 'lex/cfn_bot.rb', line 6606

def destination
  @destination
end

#enabledBoolean, AWSCDK::IResolvable (readonly)

Determines whether conversation logs should be stored for an alias.



6611
6612
6613
# File 'lex/cfn_bot.rb', line 6611

def enabled
  @enabled
end

Class Method Details

.jsii_propertiesObject



6613
6614
6615
6616
6617
6618
# File 'lex/cfn_bot.rb', line 6613

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

Instance Method Details

#to_jsiiObject



6620
6621
6622
6623
6624
6625
6626
6627
# File 'lex/cfn_bot.rb', line 6620

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