Last active
December 5, 2023 13:27
-
-
Save ConorAspell/ef99831492181718c41fd4331d226a74 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": "Control FPL Update", | |
"StartAt": "DateChecker", | |
"States": { | |
"DateChecker": { | |
"Type": "Task", | |
"Resource": "arn:aws:lambda:eu-west-1:$AWS_NUMBER:function:DateChecker", | |
"InputPath": "$", | |
"ResultPath": "$.functionResult", | |
"OutputPath": "$", | |
"Next": "CheckResult" | |
}, | |
"CheckResult": { | |
"Type": "Choice", | |
"Choices": [ | |
{ | |
"Variable": "$.functionResult", | |
"BooleanEquals": false, | |
"Next": "StopProcessing" | |
} | |
], | |
"Default": "OddsGetter" | |
}, | |
"StopProcessing": { | |
"Type": "Succeed" | |
}, | |
"OddsGetter": { | |
"Type": "Task", | |
"Resource": "arn:aws:lambda:eu-west-1:$AWS_NUMBER:function:oddsGetter", | |
"InputPath": "$", | |
"OutputPath": "$", | |
"Next": "GetPlayerDetails" | |
}, | |
"GetPlayerDetails": { | |
"Type": "Task", | |
"Resource": "arn:aws:lambda:eu-west-1:$AWS_NUMBER:function:getPlayerDetails", | |
"InputPath": "$", | |
"OutputPath": "$", | |
"Next": "CalculateTransfersAndTeam" | |
}, | |
"CalculateTransfersAndTeam": { | |
"Type": "Task", | |
"Resource": "arn:aws:lambda:eu-west-1:$AWS_NUMBER:function:calculate_fpl_chages", | |
"InputPath": "$", | |
"OutputPath": "$", | |
"Next": "PostTransfer" | |
}, | |
"PostTransfer": { | |
"Type": "Task", | |
"Resource": "arn:aws:lambda:eu-west-1:$AWS_NUMBER:function:post_transfer", | |
"InputPath": "$", | |
"OutputPath": "$", | |
"Next": "PostFinalTeam" | |
}, | |
"PostFinalTeam": { | |
"Type": "Task", | |
"Resource": "arn:aws:lambda:eu-west-1:$AWS_NUMBER:function:post_final_team", | |
"InputPath": "$", | |
"OutputPath": "$", | |
"End": true | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment