Skip to content

Ability to lookup up a web socket api gateway statically #18755

@dtabuenc

Description

@dtabuenc

Description

Web Socket Api gateway is missing any static lookup from* type methods similar to HttpApi such as HttpApi.fromHttpApiAttributes

This makes it very difficult to reference the web socket gateway from another stack.

Use Case

With Http API we have some setups where we define a single api gateway and then add routes and authorizers from other stacks in other repositories, allowing different microservice repositories to manage their own routes on a shared gateway/domain. We want to do something ismilar with WebSocketApi.

Proposed Solution

I imagine something similar to what is currently don in HttpApi.

Other information

No response

Acknowledge

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-apigatewayv2Related to Amazon API Gateway v2effort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions