Class: AWSCDK::Events::CfnEventBus::LogConfigProperty

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

Overview

The logging configuration settings for the event bus.

For more information, see Configuring logs for event buses in the EventBridge User Guide .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of LogConfigProperty.

Parameters:

  • include_detail (String, nil) (defaults to: nil)

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

  • level (String, nil) (defaults to: nil)

    The level of logging detail to include. This applies to all log destinations for the event bus.



692
693
694
695
696
697
# File 'events/cfn_event_bus.rb', line 692

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

Instance Attribute Details

#include_detailString? (readonly)

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

Detailed data can be useful for troubleshooting and debugging. This information includes details of the event itself, as well as target details.

For more information, see Including detail data in event bus logs in the EventBridge User Guide .



707
708
709
# File 'events/cfn_event_bus.rb', line 707

def include_detail
  @include_detail
end

#levelString? (readonly)

The level of logging detail to include. This applies to all log destinations for the event bus.

For more information, see Specifying event bus log level in the EventBridge User Guide .



714
715
716
# File 'events/cfn_event_bus.rb', line 714

def level
  @level
end

Class Method Details

.jsii_propertiesObject



716
717
718
719
720
721
# File 'events/cfn_event_bus.rb', line 716

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

Instance Method Details

#to_jsiiObject



723
724
725
726
727
728
729
730
# File 'events/cfn_event_bus.rb', line 723

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