-
-
Save GMKBabu/a00a299fff056c368425fa192f3bf36e 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": "A simple AWS Step Functions state machine that automates a call center support session.", | |
"StartAt": "ProcessTransaction", | |
"States": { | |
"ProcessTransaction": { | |
"Type" : "Choice", | |
"Choices": [ | |
{ | |
"Variable": "$.TransactionType", | |
"StringEquals": "PURCHASE", | |
"Next": "ProcessPurchase" | |
}, | |
{ | |
"Variable": "$.TransactionType", | |
"StringEquals": "REFUND", | |
"Next": "ProcessRefund" | |
} | |
] | |
}, | |
"ProcessRefund": { | |
"Type": "Task", | |
"Resource": "arn:aws:lambda:REGION:ACCOUNT_ID:function:FUNCTION_NAME", | |
"End": true | |
}, | |
"ProcessPurchase": { | |
"Type": "Task", | |
"Resource": "arn:aws:lambda:REGION:ACCOUNT_ID:function:FUNCTION_NAME", | |
"End": true | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment