You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(apigateway): StepFunctionsIntegration does not create required role and responses (#19486)
The method responses and role were created automatically **only** when
using the `StepFunctionsRestApi` construct. Move the logic inside the
integration.
It's now possible to do:
```ts
api.root.addResource('sfn').addMethod('POST', StepFunctionsIntegration.startExecution(stateMachine));
```
Previously this did not create the proper method responses and required
a role to be passed.
----
### All Submissions:
* [x] Have you followed the guidelines in our [Contributing guide?](../CONTRIBUTING.md)
### Adding new Unconventional Dependencies:
* [ ] This PR adds new unconventional dependencies following the process described [here](../CONTRIBUTING.md/#adding-new-unconventional-dependencies)
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
"## Velocity Template used for API Gateway request mapping template\n##\n## This template forwards the request body, header, path, and querystring\n## to the execution input of the state machine.\n##\n## \"@@\" is used here as a placeholder for '\"' to avoid using escape characters.\n\n#set($inputString = '')\n#set($includeHeaders = false)\n#set($includeQueryString = true)\n#set($includePath = true)\n#set($includeAuthorizer = false)\n#set($allParams = $input.params())\n{\n \"stateMachineArn\": \"",
0 commit comments