Class: AWSCDK::CustomResources::Logging
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::CustomResources::Logging
- Defined in:
- custom_resources/logging.rb
Overview
A class used to configure Logging during AwsCustomResource SDK calls.
Class Method Summary collapse
-
.all ⇒ AWSCDK::CustomResources::Logging
Enables logging of all logged data in the lambda handler.
- .jsii_overridable_methods ⇒ Object
-
.with_data_hidden ⇒ AWSCDK::CustomResources::Logging
Hides logging of data associated with the API call response.
Instance Method Summary collapse
-
#initialize(props = nil) ⇒ Logging
constructor
A new instance of Logging.
Constructor Details
#initialize(props = nil) ⇒ Logging
Returns a new instance of Logging.
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
.all ⇒ AWSCDK::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.
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_methods ⇒ Object
15 16 17 18 |
# File 'custom_resources/logging.rb', line 15 def self.jsii_overridable_methods { } end |
.with_data_hidden ⇒ AWSCDK::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.
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 |