Interface FailProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
FailProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.93.0 (build 1706ca5)",
date="2024-01-03T18:29:33.138Z")
@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 -
Method Summary
Modifier and TypeMethodDescriptionstatic FailProps.Builderbuilder()default StringgetCause()A description for the cause of the failure.default StringJsonPath expression to select part of the state to be the cause to this state.default StringAn optional description for this state.default StringgetError()Error code used to represent this failure.default StringJsonPath expression to select part of the state to be the error to this state.default StringOptional name for this state.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCause
A description for the cause of the failure.Default: - No description
-
getCausePath
JsonPath expression to select part of the state to be the cause to this state.Default: - No cause path
-
getComment
An optional description for this state.Default: - No comment
-
getError
Error code used to represent this failure.Default: - No error code
-
getErrorPath
JsonPath expression to select part of the state to be the error to this state.Default: - No error path
-
getStateName
Optional name for this state.Default: - The construct ID will be used as state name
-
builder
- Returns:
- a
FailProps.BuilderofFailProps
-