Skip to content

Commit

Permalink
feat(apigatewayv2-integrations): stepfunctions integration (#28982)
Browse files Browse the repository at this point in the history
### Issue

Closes #28904.

### Reason for this change

It is not possible to create an integration between Step Functions and HTTP API.

### Description of changes

You can create integration by `HttpStepFunctionsIntegration` class:

```ts
declare const httpApi: apigwv2.HttpApi;
declare const stateMachine: sfn.StateMachine;

const integration = new HttpStepFunctionIntegration('StepFunctionIntegration', {
	stateMachine,
  })

    httpApi.addRoutes({
      path: '/jobs',
      methods: [apigwv2.HttpMethod.POST],
      integration,
    });
```

### Description of how you validated changes

Added unit tests and integ test.

### Checklist
- [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
badmintoncryer committed Feb 28, 2024
1 parent 1f30b5d commit 19d75d6
Show file tree
Hide file tree
Showing 13 changed files with 2,258 additions and 0 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 19d75d6

Please sign in to comment.