Interface FailProps

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

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:14.366Z") @Stability(Stable) public interface FailProps extends software.amazon.jsii.JsiiSerializable
Properties for defining a Fail state.

Example:

 Fail fail = Fail.Builder.create(this, "Fail")
         .errorPath(JsonPath.stringAt("$.someError"))
         .causePath(JsonPath.stringAt("$.someCause"))
         .build();
 
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    A builder for FailProps
    static final class 
    An implementation for FailProps
  • Method Summary

    Modifier and Type
    Method
    Description
     
    default String
    A description for the cause of the failure.
    default String
    JsonPath expression to select part of the state to be the cause to this state.
    default String
    An optional description for this state.
    default String
    Error code used to represent this failure.
    default String
    JsonPath expression to select part of the state to be the error to this state.
    default String
    Optional name for this state.

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Method Details

    • getCause

      @Stability(Stable) @Nullable default String getCause()
      A description for the cause of the failure.

      Default: - No description

    • getCausePath

      @Stability(Stable) @Nullable default String getCausePath()
      JsonPath expression to select part of the state to be the cause to this state.

      Default: - No cause path

    • getComment

      @Stability(Stable) @Nullable default String getComment()
      An optional description for this state.

      Default: - No comment

    • getError

      @Stability(Stable) @Nullable default String getError()
      Error code used to represent this failure.

      Default: - No error code

    • getErrorPath

      @Stability(Stable) @Nullable default String getErrorPath()
      JsonPath expression to select part of the state to be the error to this state.

      Default: - No error path

    • getStateName

      @Stability(Stable) @Nullable default String getStateName()
      Optional name for this state.

      Default: - The construct ID will be used as state name

    • builder

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