Class: AWSCDK::CustomResources::LoggingProps

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

Overview

Properties used to initialize Logging.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(log_api_response_data: nil) ⇒ LoggingProps

Returns a new instance of LoggingProps.

Parameters:

  • log_api_response_data (Boolean, nil) (defaults to: nil)

    Whether or not to log data associated with the API call response.



8
9
10
11
# File 'custom_resources/logging_props.rb', line 8

def initialize(log_api_response_data: nil)
  @log_api_response_data = log_api_response_data
  Jsii::Type.check_type(@log_api_response_data, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "logApiResponseData") unless @log_api_response_data.nil?
end

Instance Attribute Details

#log_api_response_dataBoolean? (readonly)

Note:

Default: true

Whether or not to log data associated with the API call response.

Returns:

  • (Boolean, nil)


17
18
19
# File 'custom_resources/logging_props.rb', line 17

def log_api_response_data
  @log_api_response_data
end

Class Method Details

.jsii_propertiesObject



19
20
21
22
23
# File 'custom_resources/logging_props.rb', line 19

def self.jsii_properties
  {
    :log_api_response_data => "logApiResponseData",
  }
end

Instance Method Details

#to_jsiiObject



25
26
27
28
29
30
31
# File 'custom_resources/logging_props.rb', line 25

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