Interface CatchProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CatchProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.106.0 (build e852934)", date="2025-02-12T12:32:11.688Z") @Stability(Stable) public interface CatchProps extends software.amazon.jsii.JsiiSerializable
Error handler details.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.stepfunctions.*;
 Object assign;
 Object outputs;
 CatchProps catchProps = CatchProps.builder()
         .assign(Map.of(
                 "assignKey", assign))
         .errors(List.of("errors"))
         .outputs(outputs)
         .resultPath("resultPath")
         .build();
 
  • Method Details

    • getAssign

      @Stability(Stable) @Nullable default Map<String,Object> getAssign()
      Workflow variables to store in this step.

      Using workflow variables, you can store data in a step and retrieve that data in future steps.

      Default: - Not assign variables

      See Also:
    • getErrors

      @Stability(Stable) @Nullable default List<String> getErrors()
      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

    • getOutputs

      @Stability(Stable) @Nullable default Object getOutputs()
      This option for JSONata only.

      When you use JSONPath, then the state ignores this property. Used to specify and transform output from the state. When specified, the value overrides the state output default. The output field accepts any JSON value (object, array, string, number, boolean, null). Any string value, including those inside objects or arrays, will be evaluated as JSONata if surrounded by {% %} characters. Output also accepts a JSONata expression directly.

      Default: - $states.result or $states.errorOutput

      See Also:
    • getResultPath

      @Stability(Stable) @Nullable default String getResultPath()
      JSONPath expression to indicate where to inject the error data.

      May also be the special value JsonPath.DISCARD, which will cause the error data to be discarded.

      Default: $

    • builder

      @Stability(Stable) static CatchProps.Builder builder()
      Returns:
      a CatchProps.Builder of CatchProps