Class: AWSCDK::Events::LogConfig

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
events/log_config.rb

Overview

Interface for Logging Configuration of the Event Bus.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(include_detail: nil, level: nil) ⇒ LogConfig

Returns a new instance of LogConfig.

Parameters:



9
10
11
12
13
14
# File 'events/log_config.rb', line 9

def initialize(include_detail: nil, level: nil)
  @include_detail = include_detail
  Jsii::Type.check_type(@include_detail, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZXZlbnRzLkluY2x1ZGVEZXRhaWwifQ==")), "includeDetail") unless @include_detail.nil?
  @level = level
  Jsii::Type.check_type(@level, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZXZlbnRzLkxldmVsIn0=")), "level") unless @level.nil?
end

Instance Attribute Details

#include_detailAWSCDK::Events::IncludeDetail? (readonly)

Note:

Default: no details

Whether EventBridge include detailed event information in the records it generates.



20
21
22
# File 'events/log_config.rb', line 20

def include_detail
  @include_detail
end

#levelAWSCDK::Events::Level? (readonly)

Note:

Default: OFF

Logging level.

Returns:



25
26
27
# File 'events/log_config.rb', line 25

def level
  @level
end

Class Method Details

.jsii_propertiesObject



27
28
29
30
31
32
# File 'events/log_config.rb', line 27

def self.jsii_properties
  {
    :include_detail => "includeDetail",
    :level => "level",
  }
end

Instance Method Details

#to_jsiiObject



34
35
36
37
38
39
40
41
# File 'events/log_config.rb', line 34

def to_jsii
  result = {}
  result.merge!({
    "includeDetail" => @include_detail,
    "level" => @level,
  })
  result.compact
end