-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
91ec097
commit b4b6d52
Showing
4 changed files
with
61 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { StateMachine } from 'aws-local-stepfunctions'; | ||
|
||
const machineDefinition = { | ||
Comment: 'A simple minimal example of the States language', | ||
StartAt: 'Hello World', | ||
States: { | ||
'Hello World': { | ||
Type: 'Task', | ||
InputPath: '$.data', | ||
Resource: 'invalid arn syntax', | ||
End: true, | ||
}, | ||
}, | ||
}; | ||
|
||
// Construct a new state machine with the given definition and don't validate ARNs | ||
const stateMachine = new StateMachine(machineDefinition, { | ||
validationOptions: { | ||
checkArn: false, | ||
}, | ||
}); | ||
|
||
// The following log is printed because no error was thrown by the constructor | ||
console.log('No error was thrown!'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { StateMachine } from 'aws-local-stepfunctions'; | ||
|
||
const machineDefinition = { | ||
Comment: 'A simple minimal example of the States language', | ||
StartAt: 'Hello World', | ||
States: { | ||
'Hello World': { | ||
Type: 'Task', | ||
InputPath: 'invalid JSONPath syntax', | ||
Resource: 'arn:aws:lambda:us-east-1:123456789012:function:AddNumbers', | ||
End: true, | ||
}, | ||
}, | ||
}; | ||
|
||
// Construct a new state machine with the given definition and don't validate JSONPaths | ||
const stateMachine = new StateMachine(machineDefinition, { | ||
validationOptions: { | ||
checkPaths: false, | ||
}, | ||
}); | ||
|
||
// The following log is printed because no error was thrown by the constructor | ||
console.log('No error was thrown!'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters