-
-
Save hocyadav/8e0e2c2442d042a37474892a8b27e34a to your computer and use it in GitHub Desktop.
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
{ | |
"Comment":"Transaction Processor State Machine Using SQS", | |
"StartAt":"ProcessTransaction", | |
"States":{ | |
"ProcessTransaction":{ | |
"Type":"Pass", | |
"Next":"BroadcastToSqs" | |
}, | |
"BroadcastToSqs":{ | |
"Type":"Task", | |
"Resource":"arn:aws:states:::sqs:sendMessage", | |
"Parameters":{ | |
"QueueUrl":"", | |
"MessageBody":{ | |
"TransactionId.$":"$.TransactionId", | |
"Type.$":"$.Type" | |
} | |
}, | |
"End":true | |
} | |
} | |
} | |
Input | |
--- | |
{ | |
"TransactionId": "abc", | |
"Type": "PURCHASE" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment