Class: AWSCDK::Lex::CfnBot::CloudWatchLogGroupLogDestinationProperty

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

Overview

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

The log group must exist before you enable logging.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cloud_watch_log_group_arn:, log_prefix:) ⇒ CloudWatchLogGroupLogDestinationProperty

Returns a new instance of CloudWatchLogGroupLogDestinationProperty.

Parameters:

  • cloud_watch_log_group_arn (String)

    The Amazon Resource Name (ARN) of the log group where text and metadata logs are delivered.

  • log_prefix (String)

    The prefix of the log stream name within the log group that you specified.



1608
1609
1610
1611
1612
1613
# File 'lex/cfn_bot.rb', line 1608

def initialize(cloud_watch_log_group_arn:, log_prefix:)
  @cloud_watch_log_group_arn = cloud_watch_log_group_arn
  Jsii::Type.check_type(@cloud_watch_log_group_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "cloudWatchLogGroupArn")
  @log_prefix = log_prefix
  Jsii::Type.check_type(@log_prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logPrefix")
end

Instance Attribute Details

#cloud_watch_log_group_arnString (readonly)

The Amazon Resource Name (ARN) of the log group where text and metadata logs are delivered.



1619
1620
1621
# File 'lex/cfn_bot.rb', line 1619

def cloud_watch_log_group_arn
  @cloud_watch_log_group_arn
end

#log_prefixString (readonly)

The prefix of the log stream name within the log group that you specified.



1624
1625
1626
# File 'lex/cfn_bot.rb', line 1624

def log_prefix
  @log_prefix
end

Class Method Details

.jsii_propertiesObject



1626
1627
1628
1629
1630
1631
# File 'lex/cfn_bot.rb', line 1626

def self.jsii_properties
  {
    :cloud_watch_log_group_arn => "cloudWatchLogGroupArn",
    :log_prefix => "logPrefix",
  }
end

Instance Method Details

#to_jsiiObject



1633
1634
1635
1636
1637
1638
1639
1640
# File 'lex/cfn_bot.rb', line 1633

def to_jsii
  result = {}
  result.merge!({
    "cloudWatchLogGroupArn" => @cloud_watch_log_group_arn,
    "logPrefix" => @log_prefix,
  })
  result.compact
end