@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)",
date="2023-03-22T19:35:46.310Z")
public interface WebSocketRouteOptions
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.
|
WebSocketRouteIntegration getIntegration()
default IWebSocketRouteAuthorizer getAuthorizer()
You can only set authorizer to a $connect route.
Default: - No Authorizer
static WebSocketRouteOptions.Builder builder()
WebSocketRouteOptions.Builder
of WebSocketRouteOptions