Bases: State
Define a Succeed state in the state machine.
Reaching a Succeed state terminates the state execution in success.
infused
Example:
success = sfn.Succeed(self, "We did it!")
scope (Construct
)
id (str
)
comment (Optional
[str
]) – An optional description for this state. Default: No comment
input_path (Optional
[str
]) – JSONPath expression to select part of the state to be the input to this state. May also be the special value JsonPath.DISCARD, which will cause the effective input to be the empty object {}. Default: $
output_path (Optional
[str
]) – JSONPath expression to select part of the state to be the output to this state. May also be the special value JsonPath.DISCARD, which will cause the effective output to be the empty object {}. Default: $
Methods
Add a prefix to the stateId of this state.
x (str
)
None
Register this state as part of the given graph.
Don’t call this. It will be called automatically when you work with states normally.
graph (StateGraph
)
None
Return the Amazon States Language object for this state.
Mapping
[Any
, Any
]
Returns a string representation of this construct.
str
Attributes
Continuable states of this Chainable.
Descriptive identifier for this chainable.
The construct tree node associated with this construct.
First state of this Chainable.
Tokenized string that evaluates to the state’s ID.
Static Methods
Return only the states that allow chaining from an array of states.
Find the set of end states states reachable through transitions from the given start state.
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state’s branch.
Return whether the given object is a Construct.
x (Any
)
bool
Add a prefix to the stateId of all States found in a construct tree.
root (IConstruct
)
prefix (str
)
None