-
-
Save djg07/7d4b9a7b06459723681b3fef0790ff86 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
corresponding lambda code from earlier in video: