Interface WebSocketStageProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,StageOptions
- All Known Implementing Classes:
WebSocketStageProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.87.0 (build 9892444)",
date="2023-08-23T17:50:59.652Z")
@Stability(Experimental)
public interface WebSocketStageProps
extends software.amazon.jsii.JsiiSerializable, StageOptions
(experimental) Properties to initialize an instance of
WebSocketStage.
Example:
import software.amazon.awscdk.services.apigatewayv2.integrations.alpha.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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forWebSocketStagePropsstatic final classAn implementation forWebSocketStageProps -
Method Summary
Modifier and TypeMethodDescriptionstatic WebSocketStageProps.Builderbuilder()(experimental) The name of the stage.(experimental) The WebSocket API to which this stage is associated.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.apigatewayv2.alpha.StageOptions
getAutoDeploy, getDomainMapping, getThrottle
-
Method Details
-
getStageName
(experimental) The name of the stage. -
getWebSocketApi
(experimental) The WebSocket API to which this stage is associated. -
builder
- Returns:
- a
WebSocketStageProps.BuilderofWebSocketStageProps
-