Skip to content
v2.273.0

LogOptions Struct ​

Log Options for the state machine.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_stepfunctions as stepfunctions } from 'aws-cdk-lib';
import { custom_resources } from 'aws-cdk-lib';
import { aws_logs as interfaces_logs } from 'aws-cdk-lib/interfaces';

declare const logGroupRef: interfaces_logs.ILogGroupRef;
const logOptions: custom_resources.LogOptions = {
  destination: logGroupRef,
  includeExecutionData: false,
  level: stepfunctions.LogLevel.OFF,
};

Properties ​

destinationILogGroupRefdestinationILogGroupRefdestinationILogGroupRefDestinationILogGroupRefDestinationILogGroupRef= a new log group will be created#
The log group where the execution history events will be logged.
includeExecutionDatabooleaninclude_execution_databoolincludeExecutionDataBooleanIncludeExecutionDataboolIncludeExecutionData*bool= false#
Determines whether execution data is included in your log.
levelLogLevellevelLogLevellevelLogLevelLevelLogLevelLevelLogLevel= ERROR#
Defines which category of execution history events are logged.