Interface WebSocketStageProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
,StageOptions
- All Known Implementing Classes:
WebSocketStageProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-27T16:50:52.526Z")
@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 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());
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forWebSocketStageProps
static final class
An implementation forWebSocketStageProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic WebSocketStageProps.Builder
builder()
The name of the stage.The WebSocket API to which this stage is associated.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
Methods inherited from interface software.amazon.awscdk.services.apigatewayv2.StageOptions
getAutoDeploy, getDescription, getDomainMapping, getThrottle
-
Method Details
-
getStageName
The name of the stage. -
getWebSocketApi
The WebSocket API to which this stage is associated. -
builder
- Returns:
- a
WebSocketStageProps.Builder
ofWebSocketStageProps
-