I have a step function which should call an API Gateway resource instead of a lambda. What is the syntax to do that ?
{"Comment": "A Hello World example of the Amazon States Language using a Pass state",
"StartAt": "QueueProducts",
"States": {
"GetProductsFromDb": {
"Type": "Task",
"Resource":"some-lambda",
"Next": "InvokeAPIGatewayWorkers"
}
},
"InvokeAPIGatewayWorkers":{
"Type": "Parallel",
"Branches": [
....]
}
}
My question is, Is it possible to invoke an API Gateway in the Resource instead of "some-lamda"