interface CatchProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.StepFunctions.CatchProps |
![]() | software.amazon.awscdk.services.stepfunctions.CatchProps |
![]() | aws_cdk.aws_stepfunctions.CatchProps |
![]() | @aws-cdk/aws-stepfunctions » CatchProps |
Error handler details.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as stepfunctions from '@aws-cdk/aws-stepfunctions';
const catchProps: stepfunctions.CatchProps = {
errors: ['errors'],
resultPath: 'resultPath',
};
Properties
Name | Type | Description |
---|---|---|
errors? | string[] | Errors to recover from by going to the given state. |
result | string | JSONPath expression to indicate where to inject the error data. |
errors?
Type:
string[]
(optional, default: All errors)
Errors to recover from by going to the given state.
A list of error strings to retry, which can be either predefined errors (for example Errors.NoChoiceMatched) or a self-defined error.
resultPath?
Type:
string
(optional, default: $)
JSONPath expression to indicate where to inject the error data.
May also be the special value DISCARD, which will cause the error data to be discarded.