interface LogOptions
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.StepFunctions.LogOptions |
Java | software.amazon.awscdk.services.stepfunctions.LogOptions |
Python | aws_cdk.aws_stepfunctions.LogOptions |
TypeScript (source) | @aws-cdk/aws-stepfunctions » LogOptions |
Defines what execution history events are logged and where they are logged.
Example
import * as logs from '@aws-cdk/aws-logs';
const logGroup = new logs.LogGroup(this, 'MyLogGroup');
new sfn.StateMachine(this, 'MyStateMachine', {
definition: sfn.Chain.start(new sfn.Pass(this, 'Pass')),
logs: {
destination: logGroup,
level: sfn.LogLevel.ALL,
},
});
Properties
Name | Type | Description |
---|---|---|
destination | ILog | The log group where the execution history events will be logged. |
include | boolean | Determines whether execution data is included in your log. |
level? | Log | Defines which category of execution history events are logged. |
destination
Type:
ILog
The log group where the execution history events will be logged.
includeExecutionData?
Type:
boolean
(optional, default: false)
Determines whether execution data is included in your log.
level?
Type:
Log
(optional, default: ERROR)
Defines which category of execution history events are logged.