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
Copy file name to clipboardExpand all lines: README.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,9 @@
2
2
3
3
A TypeScript implementation of the [Amazon States Language specification](https://states-language.net/spec.html).
4
4
5
-
This package lets you run AWS Step Functions locally, both in Node.js and in the browser!
5
+
This package lets you run AWS Step Functions completely locally, both in Node.js and in the browser!
6
6
7
-
## Table of Contents
7
+
## Table of contents
8
8
9
9
-[Features](#features)
10
10
-[Installation](#installation)
@@ -76,10 +76,10 @@ The constructor takes the following parameters:
76
76
-`validationOptions?`: An object that specifies how the definition should be validated.
77
77
-`checkPaths`: If set to `false`, won't validate JSONPaths.
78
78
-`checkArn`: If set to `false`, won't validate ARN syntax in `Task` states.
79
-
-`awsConfig?`: An object that specifies the AWS region and credentials to use when invoking a Lambda function in a `Task` state. If not set, the AWS config will be resolved based on the [credentials provider chain](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/setting-credentials-node.html) of the AWS SDK for JavaScript V3. You don't need to use this option if you have a [shared config/credentials file](https://docs.aws.amazon.com/sdkref/latest/guide/file-format.html) (for example, if you have the [AWS CLI](https://aws.amazon.com/cli/) installed) or if you use a local override for all of your `Task` states.
79
+
-`awsConfig?`: An object that specifies the [AWS region and credentials](/docs/feature-support.md#providing-aws-credentials-and-region-to-execute-lambda-functions-specified-in-task-states) to use when invoking a Lambda function in a `Task` state. If not set, the AWS config will be resolved based on the [credentials provider chain](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/setting-credentials-node.html) of the AWS SDK for JavaScript V3. You don't need to use this option if you have a [shared config/credentials file](https://docs.aws.amazon.com/sdkref/latest/guide/file-format.html) (for example, if you have the [AWS CLI](https://aws.amazon.com/cli/) installed) or if you use a local override for all of your `Task` states.
80
80
-`region`: The AWS region where the Lambda functions are created.
81
81
-`credentials`: An object that specifies which type of credentials to use.
82
-
-`cognitoIdentityPool`: An object that specifies the Cognito Identity Pool to use for requesting credentials.
82
+
-`cognitoIdentityPool`: An object that specifies the Cognito Identity Pool ID to use for requesting credentials.
83
83
-`accessKeys`: An object that specifies the [Access Key ID and Secret Access Key](https://docs.aws.amazon.com/IAM/latest/UserGuide/security-creds.html#sec-access-keys-and-secret-access-keys) to use as credentials.
84
84
85
85
The constructor will attempt to validate the definition by default, unless the `validationOptions` property is specified. If the definition is not valid, an error will be thrown.
@@ -111,7 +111,7 @@ const stateMachine = new StateMachine(machineDefinition, {
111
111
112
112
Runs the state machine with the given `input` parameter and returns an object with the following properties:
113
113
114
-
-`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.
114
+
-`abort`: A function that takes no parameters and doesn't return any value. If called, [aborts the execution](/docs/feature-support.md#abort-a-running-execution) and throws an `ExecutionAbortedError`, unless the `noThrowOnAbort` option is set.
115
115
-`result`: A `Promise` that resolves with the execution result once it finishes.
116
116
117
117
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.
@@ -121,8 +121,8 @@ Each execution is independent of all others, meaning that you can concurrently c
121
121
-`input`: The initial input to pass to the state machine. This can be any valid JSON value.
122
122
-`options?`:
123
123
-`overrides?`: An object to override the behavior of certain states:
124
-
-`taskResourceLocalHandlers?`: Overrides the resource of the specified `Task` states to run a local function.
125
-
-`waitTimeOverrides?`: Overrides the wait duration of the specified `Wait` states. The specifed override duration should be in milliseconds.
124
+
-`taskResourceLocalHandlers?`: An [object that overrides](/docs/feature-support.md#task-state-resource-override) the resource of the specified `Task` states to run a local function.
125
+
-`waitTimeOverrides?`: An [object that overrides](/docs/feature-support.md#wait-state-duration-override) the wait duration of the specified `Wait` states. The specifed override duration should be in milliseconds.
126
126
-`noThrowOnAbort?`: If this option is set to `true`, aborting the execution will simply return `null` as result instead of throwing.
0 commit comments