Interface WebSocketStageProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable, StageOptions
All Known Implementing Classes:
WebSocketStageProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.94.0 (build b380f01)", date="2024-03-14T22:21:49.751Z") @Stability(Stable) public interface WebSocketStageProps extends software.amazon.jsii.JsiiSerializable, StageOptions
Properties to initialize an instance of WebSocketStage.

Example:

 import software.amazon.awscdk.aws_apigatewayv2_integrations.WebSocketLambdaIntegration;
 Function connectHandler;
 Function disconnectHandler;
 Function defaultHandler;
 WebSocketApi webSocketApi = WebSocketApi.Builder.create(this, "mywsapi")
         .connectRouteOptions(WebSocketRouteOptions.builder().integration(new WebSocketLambdaIntegration("ConnectIntegration", connectHandler)).build())
         .disconnectRouteOptions(WebSocketRouteOptions.builder().integration(new WebSocketLambdaIntegration("DisconnectIntegration", disconnectHandler)).build())
         .defaultRouteOptions(WebSocketRouteOptions.builder().integration(new WebSocketLambdaIntegration("DefaultIntegration", defaultHandler)).build())
         .build();
 WebSocketStage.Builder.create(this, "mystage")
         .webSocketApi(webSocketApi)
         .stageName("dev")
         .autoDeploy(true)
         .build();