- 新しい順
- 投票が多い順
- コメントが多い順
Hi,
Unfortunately it is not possible to receive just the value of the output field from the StepFunctions execution, since it is the expected response format of the StartSyncExecution API operation. As you say, you could filter it using the integration response, but this is just supported on the REST API.
Finally, note that both REST APIs and HTTP APIs are valid RESTful API products, and you should chose depending on your use case needs.
Should it be possible to do this with the OpenAPI x-amazon-apigateway-integration
and the v2 API HTTP Gateway as per the article How to Build Lightning Fast APIs with AWS Step Functions? It's not clear to me if they are using the v2 API Gateway or not. I might try this when I get a chance.
Hi,
They are using a mapping template (a script expressed in Apache Velocity Template Language) to modify the request and response body, but that is only supported on REST API. HTTP APIs just allows to modify headers or the status code of a response.
There is no way to do payload transformation in HTTP API (v2), only in REST API (v1).
関連するコンテンツ
- AWS公式更新しました 1年前
- AWS公式更新しました 2ヶ月前
- AWS公式更新しました 2年前
This is an extreme bummer. I hope aws folks are working on a way to make it easy to have API Gateway more seamlessly call Step Functions where a proper response can be had from the Step Function. For now we have to add a Lambda just to act like a proxy.
And we just realized that the proxy lambda has to keep running (and adding cost) so it can send the response back to the API Gateway