Skip to content

apigatewayv2-integrations: Add support for PutEvents to Eventbridge integration #35714

@jolo-dev

Description

@jolo-dev

Describe the feature

ApiGatewayv2 HTTP API integrates with Eventbridge. It would be nice to have CDK implement this. See documentation on Eventbridge-PutEvent mapping.

Use Case

I want an easy way to use an Eventbridge Bus as a proxy for my HTTP API.

Proposed Solution

Similar to all the other integrations

    const stack = new Stack();
    const api = new HttpApi(stack, 'HttpApi');
    const bus = EventBus(stack, 'Events');
    new HttpRoute(stack, 'EventRoute', {
      httpApi: api,
      integration: new HttpEventBusIntegration('Integration', bus, {
        detail: ParameterMapping,
        detailType: string,
        source: string,
        invocationRole: Role,
        description?: string,
        time?: ParameterMapping,
        eventBusName?: bus.name,
        resources?: ParameterMapping,
        region?: string,
        traceHeader?: string,
        timeout?: number
      }),
      routeKey: HttpRouteKey.with('/pets'),
    });

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

AWS CDK Library version (aws-cdk-lib)

2.219.0

AWS CDK CLI version

2.1029.2 (build fccc5f9)

Environment details (OS name and version, etc.)

MacBook

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions