Class: AWSCDK::CustomResources::Logging

Inherits:
Jsii::Object
  • Object
show all
Defined in:
custom_resources/logging.rb

Overview

A class used to configure Logging during AwsCustomResource SDK calls.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(props = nil) ⇒ Logging

Returns a new instance of Logging.

Parameters:



9
10
11
12
13
# File 'custom_resources/logging.rb', line 9

def initialize(props = nil)
  props = props.is_a?(Hash) ? ::AWSCDK::CustomResources::LoggingProps.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5jdXN0b21fcmVzb3VyY2VzLkxvZ2dpbmdQcm9wcyJ9")), "props") unless props.nil?
  Jsii::Object.instance_method(:initialize).bind(self).call(props)
end

Class Method Details

.allAWSCDK::CustomResources::Logging

Enables logging of all logged data in the lambda handler.

This includes the event object, the API call response, all fields in the response object returned by the lambda, and any errors encountered.

Returns:

  • (AWSCDK::CustomResources::Logging)


26
27
28
# File 'custom_resources/logging.rb', line 26

def self.all()
  Jsii::Kernel.instance.call_static("aws-cdk-lib.custom_resources.Logging", "all", [])
end

.jsii_overridable_methodsObject



15
16
17
18
# File 'custom_resources/logging.rb', line 15

def self.jsii_overridable_methods
  {
  }
end

.with_data_hiddenAWSCDK::CustomResources::Logging

Hides logging of data associated with the API call response.

This includes hiding the raw API call response and the Data field associated with the lambda handler response.

Returns:

  • (AWSCDK::CustomResources::Logging)


36
37
38
# File 'custom_resources/logging.rb', line 36

def self.with_data_hidden()
  Jsii::Kernel.instance.call_static("aws-cdk-lib.custom_resources.Logging", "withDataHidden", [])
end