@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:02.086Z") @Stability(value=Experimental) public interface WebSocketRouteOptions extends software.amazon.jsii.JsiiSerializable
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 |
WebSocketRouteOptions.Builder
A builder for
WebSocketRouteOptions |
static class |
WebSocketRouteOptions.Jsii$Proxy
An implementation for
WebSocketRouteOptions |
| Modifier and Type | Method and Description |
|---|---|
static WebSocketRouteOptions.Builder |
builder() |
default IWebSocketRouteAuthorizer |
getAuthorizer()
(experimental) The authorize to this route.
|
WebSocketRouteIntegration |
getIntegration()
(experimental) The integration to be configured on this route.
|
@Stability(value=Experimental) @NotNull WebSocketRouteIntegration getIntegration()
@Stability(value=Experimental) @Nullable default IWebSocketRouteAuthorizer getAuthorizer()
You can only set authorizer to a $connect route.
Default: - No Authorizer
@Stability(value=Experimental) static WebSocketRouteOptions.Builder builder()
WebSocketRouteOptions.Builder of WebSocketRouteOptionsCopyright © 2022. All rights reserved.