@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:23.692Z") @Stability(value=Experimental) public interface WebSocketStageProps extends software.amazon.jsii.JsiiSerializable, StageOptions
Example:
import software.amazon.awscdk.services.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());
| Modifier and Type | Interface and Description |
|---|---|
static class |
WebSocketStageProps.Builder
A builder for
WebSocketStageProps |
static class |
WebSocketStageProps.Jsii$Proxy
An implementation for
WebSocketStageProps |
| Modifier and Type | Method and Description |
|---|---|
static WebSocketStageProps.Builder |
builder() |
String |
getStageName()
(experimental) The name of the stage.
|
IWebSocketApi |
getWebSocketApi()
(experimental) The WebSocket API to which this stage is associated.
|
getAutoDeploy, getDomainMapping, getThrottle@Stability(value=Experimental) @NotNull String getStageName()
@Stability(value=Experimental) @NotNull IWebSocketApi getWebSocketApi()
@Stability(value=Experimental) static WebSocketStageProps.Builder builder()
builder in interface StageOptionsWebSocketStageProps.Builder of WebSocketStagePropsCopyright © 2022. All rights reserved.