Class: AWSCDK::Lambda::CfnEventSourceMapping::LoggingConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lambda/cfn_event_source_mapping.rb

Overview

The function's Amazon CloudWatch Logs configuration settings.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(system_log_level: nil) ⇒ LoggingConfigProperty

Returns a new instance of LoggingConfigProperty.

Parameters:

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

    Set this property to filter the system logs for your function that Lambda sends to CloudWatch.



1140
1141
1142
1143
# File 'lambda/cfn_event_source_mapping.rb', line 1140

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

Instance Attribute Details

#system_log_levelString? (readonly)

Set this property to filter the system logs for your function that Lambda sends to CloudWatch.

Lambda only sends system logs at the selected level of detail and lower, where DEBUG is the highest level and WARN is the lowest.



1151
1152
1153
# File 'lambda/cfn_event_source_mapping.rb', line 1151

def system_log_level
  @system_log_level
end

Class Method Details

.jsii_propertiesObject



1153
1154
1155
1156
1157
# File 'lambda/cfn_event_source_mapping.rb', line 1153

def self.jsii_properties
  {
    :system_log_level => "systemLogLevel",
  }
end

Instance Method Details

#to_jsiiObject



1159
1160
1161
1162
1163
1164
1165
# File 'lambda/cfn_event_source_mapping.rb', line 1159

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