Created
May 15, 2020 10:24
-
-
Save SamsadSajid/74eee11a299e14c8e13ccf060f309f1d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
{ | |
"StartAt": "InvokeLambdaState", | |
"States": { | |
"InvokeLambdaState": { | |
"Type": "Task", | |
"Resource": "arn:aws:lambda:us-east-2:XXXXXXX:function:step-function-invoking-lambda-function", | |
"Parameters": { | |
"target_value": 9 | |
}, | |
"Next": "CheckStatusFromLambda" | |
}, | |
"CheckStatusFromLambda": { | |
"Type": "Choice", | |
"Choices": [ | |
{ | |
"Variable": "$.statusCode", | |
"NumericEquals": 200, | |
"Next": "SuccessState" | |
}, | |
{ | |
"Variable": "$.statusCode", | |
"NumericEquals": 400, | |
"Next": "FailedState" | |
} | |
] | |
}, | |
"SuccessState": { | |
"Type": "Pass", | |
"End": true | |
}, | |
"FailedState": { | |
"Type": "Fail" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment