Class: AWSCDK::Lex::CfnBotAlias::TextLogDestinationProperty

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

Overview

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cloud_watch:) ⇒ TextLogDestinationProperty

Returns a new instance of TextLogDestinationProperty.

Parameters:



1051
1052
1053
1054
# File 'lex/cfn_bot_alias.rb', line 1051

def initialize(cloud_watch:)
  @cloud_watch = cloud_watch.is_a?(Hash) ? ::AWSCDK::Lex::CfnBotAlias::CloudWatchLogGroupLogDestinationProperty.new(**cloud_watch.transform_keys(&:to_sym)) : cloud_watch
  Jsii::Type.check_type(@cloud_watch, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90QWxpYXMuQ2xvdWRXYXRjaExvZ0dyb3VwTG9nRGVzdGluYXRpb25Qcm9wZXJ0eSJ9XX19")), "cloudWatch")
end

Instance Attribute Details

#cloud_watchAWSCDK::IResolvable, AWSCDK::Lex::CfnBotAlias::CloudWatchLogGroupLogDestinationProperty (readonly)

Defines the Amazon CloudWatch Logs log group where text and metadata logs are delivered.



1060
1061
1062
# File 'lex/cfn_bot_alias.rb', line 1060

def cloud_watch
  @cloud_watch
end

Class Method Details

.jsii_propertiesObject



1062
1063
1064
1065
1066
# File 'lex/cfn_bot_alias.rb', line 1062

def self.jsii_properties
  {
    :cloud_watch => "cloudWatch",
  }
end

Instance Method Details

#to_jsiiObject



1068
1069
1070
1071
1072
1073
1074
# File 'lex/cfn_bot_alias.rb', line 1068

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