Complete the code to define the type of the Step Function state.
"Type": "[1]"
The Type field in a Step Function state defines what kind of state it is. Task is used to run a unit of work.
Complete the code to specify the next state in the workflow.
"Next": "[1]"
The Next field tells the Step Function which state to run after the current one. It should be the name of the next state, here ProcessData.
Fix the error in the state definition by completing the missing field.
"End": [1]
The End field must be a boolean true without quotes to mark the final state.
Fill both blanks to define a Task state with a Lambda function resource and mark it as the end state.
{
"Type": "[1]",
"Resource": "[2]",
"End": true
}The Type must be Task to run a Lambda function. The Resource is the ARN of the Lambda function.
Fill all three blanks to create a Choice state that routes based on a variable's value.
{
"Type": "Choice",
"Choices": [
{
"Variable": "[1]",
"StringEquals": "[2]",
"Next": "[3]"
}
]
}The Variable is the JSON path to check, here $.status. The StringEquals is the value to compare, Completed. The Next is the state to go to if matched, SuccessState.