You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`definition`: The Amazon States Language definition of the state machine.
@@ -60,7 +62,7 @@ The constructor takes the following parameters:
60
62
61
63
The constructor will attempt to validate the definition by default, unless the `validationOptions` param is specified. If the definition is not valid, an error will be thrown.
Runs the state machine with the given `input` parameter and returns an object with the following properties:
85
89
86
-
Runs the state machine with the given `input` parameter and returns the result of the execution. Each execution is independent of all others, meaning that you can concurrently call this method as many times as needed, without worrying about race conditions.
90
+
-`abort`: A function that takes no parameters and doesn't return any value. If called, aborts the execution and throws an `ExecutionAbortedError`, unless the `noThrowOnAbort` option is set.
91
+
-`result`: A `Promise` that resolves with the execution result once it finishes.
87
92
88
-
It takes the following parameters:
93
+
Each execution is independent of all others, meaning that you can concurrently call this method as many times as needed, without worrying about race conditions.
94
+
95
+
#### Parameters
89
96
90
97
-`input`: The initial input to pass to the state machine. This can be any valid JSON value.
91
98
-`options` (optional):
92
-
-`overrides`: An object to overrides the behavior of certain states:
99
+
-`overrides`: An object to override the behavior of certain states:
93
100
-`taskResourceLocalHandlers`: Overrides the resource of the specified `Task` states to run a local function.
94
101
-`waitTimeOverrides`: Overrides the wait duration of the specified `Wait` states. The specifed override duration should be in milliseconds.
102
+
-`noThrowOnAbort`: If this option is set to `true`, aborting the execution will simply return `null` as result instead of throwing.
0 commit comments