Class WebSocketLambdaIntegration

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.apigatewayv2.WebSocketRouteIntegration
software.amazon.awscdk.aws_apigatewayv2_integrations.WebSocketLambdaIntegration
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-10-11T15:55:52.751Z") @Stability(Stable) public class WebSocketLambdaIntegration extends WebSocketRouteIntegration
Lambda WebSocket Integration.

Example:

 import software.amazon.awscdk.aws_apigatewayv2_integrations.WebSocketLambdaIntegration;
 Function messageHandler;
 WebSocketApi webSocketApi = new WebSocketApi(this, "mywsapi");
 WebSocketStage.Builder.create(this, "mystage")
         .webSocketApi(webSocketApi)
         .stageName("dev")
         .autoDeploy(true)
         .build();
 webSocketApi.addRoute("sendMessage", WebSocketRouteOptions.builder()
         .integration(new WebSocketLambdaIntegration("SendMessageIntegration", messageHandler))
         .build());
 
  • Constructor Details

    • WebSocketLambdaIntegration

      protected WebSocketLambdaIntegration(software.amazon.jsii.JsiiObjectRef objRef)
    • WebSocketLambdaIntegration

      protected WebSocketLambdaIntegration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • WebSocketLambdaIntegration

      @Stability(Stable) public WebSocketLambdaIntegration(@NotNull String id, @NotNull IFunction handler, @Nullable WebSocketLambdaIntegrationProps props)
      Parameters:
      id - id of the underlying integration construct. This parameter is required.
      handler - the Lambda function handler. This parameter is required.
      props - properties to configure the integration.
    • WebSocketLambdaIntegration

      @Stability(Stable) public WebSocketLambdaIntegration(@NotNull String id, @NotNull IFunction handler)
      Parameters:
      id - id of the underlying integration construct. This parameter is required.
      handler - the Lambda function handler. This parameter is required.
  • Method Details