Class: AWSCDK::StepFunctions::CfnStateMachine::LoggingConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
step_functions/cfn_state_machine.rb

Overview

Defines what execution history events are logged and where they are logged.

Step Functions provides the log levels — OFF , ALL , ERROR , and FATAL . No event types log when set to OFF and all event types do when set to ALL .

By default, the level is set to OFF . For more information see Log Levels in the AWS Step Functions User Guide.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(destinations: nil, include_execution_data: nil, level: nil) ⇒ LoggingConfigurationProperty

Returns a new instance of LoggingConfigurationProperty.

Parameters:



820
821
822
823
824
825
826
827
# File 'step_functions/cfn_state_machine.rb', line 820

def initialize(destinations: nil, include_execution_data: nil, level: nil)
  @destinations = destinations
  Jsii::Type.check_type(@destinations, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9ucy5DZm5TdGF0ZU1hY2hpbmUuTG9nRGVzdGluYXRpb25Qcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "destinations") unless @destinations.nil?
  @include_execution_data = include_execution_data
  Jsii::Type.check_type(@include_execution_data, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "includeExecutionData") unless @include_execution_data.nil?
  @level = level
  Jsii::Type.check_type(@level, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "level") unless @level.nil?
end

Instance Attribute Details

#destinationsAWSCDK::IResolvable, ... (readonly)

An array of objects that describes where your execution history events will be logged.

Limited to size 1. Required, if your log level is not set to OFF .



835
836
837
# File 'step_functions/cfn_state_machine.rb', line 835

def destinations
  @destinations
end

#include_execution_dataBoolean, ... (readonly)

Determines whether execution data is included in your log.

When set to false , data is excluded.



842
843
844
# File 'step_functions/cfn_state_machine.rb', line 842

def include_execution_data
  @include_execution_data
end

#levelString? (readonly)

Defines which category of execution history events are logged.



847
848
849
# File 'step_functions/cfn_state_machine.rb', line 847

def level
  @level
end

Class Method Details

.jsii_propertiesObject



849
850
851
852
853
854
855
# File 'step_functions/cfn_state_machine.rb', line 849

def self.jsii_properties
  {
    :destinations => "destinations",
    :include_execution_data => "includeExecutionData",
    :level => "level",
  }
end

Instance Method Details

#to_jsiiObject



857
858
859
860
861
862
863
864
865
# File 'step_functions/cfn_state_machine.rb', line 857

def to_jsii
  result = {}
  result.merge!({
    "destinations" => @destinations,
    "includeExecutionData" => @include_execution_data,
    "level" => @level,
  })
  result.compact
end