CatchProps

class aws_cdk.aws_stepfunctions.CatchProps(*, errors=None, result_path=None)

Bases: object

__init__(*, errors=None, result_path=None)

Error handler details.

Parameters
  • errors (Optional[List[str]]) – 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. Default: All errors

  • result_path (Optional[str]) – 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. Default: $

stability :stability: experimental

Attributes

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.

default :default: All errors

stability :stability: experimental

Return type

Optional[List[str]]

result_path

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.

default :default: $

stability :stability: experimental

Return type

Optional[str]