Class: AWSCDK::Lex::CfnBotAlias::CloudWatchLogGroupLogDestinationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lex/cfn_bot_alias.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.



804
805
806
807
808
809
# File 'lex/cfn_bot_alias.rb', line 804

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.



815
816
817
# File 'lex/cfn_bot_alias.rb', line 815

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.



820
821
822
# File 'lex/cfn_bot_alias.rb', line 820

def log_prefix
  @log_prefix
end

Class Method Details

.jsii_propertiesObject



822
823
824
825
826
827
# File 'lex/cfn_bot_alias.rb', line 822

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

Instance Method Details

#to_jsiiObject



829
830
831
832
833
834
835
836
# File 'lex/cfn_bot_alias.rb', line 829

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