Interface WebSocketRouteProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,WebSocketRouteOptions
- All Known Implementing Classes:
WebSocketRouteProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:13.927Z")
@Stability(Stable)
public interface WebSocketRouteProps
extends software.amazon.jsii.JsiiSerializable, WebSocketRouteOptions
Properties to initialize a new Route.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.apigatewayv2.*;
WebSocketApi webSocketApi;
IWebSocketRouteAuthorizer webSocketRouteAuthorizer;
WebSocketRouteIntegration webSocketRouteIntegration;
WebSocketRouteProps webSocketRouteProps = WebSocketRouteProps.builder()
.integration(webSocketRouteIntegration)
.routeKey("routeKey")
.webSocketApi(webSocketApi)
// the properties below are optional
.apiKeyRequired(false)
.authorizer(webSocketRouteAuthorizer)
.returnResponse(false)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forWebSocketRoutePropsstatic final classAn implementation forWebSocketRouteProps -
Method Summary
Modifier and TypeMethodDescriptionstatic WebSocketRouteProps.Builderbuilder()default BooleanWhether the route requires an API Key to be provided.The key to this route.The API the route is associated with.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.apigatewayv2.WebSocketRouteOptions
getAuthorizer, getIntegration, getReturnResponse
-
Method Details
-
getRouteKey
The key to this route. -
getWebSocketApi
The API the route is associated with. -
getApiKeyRequired
Whether the route requires an API Key to be provided.Default: false
-
builder
- Returns:
- a
WebSocketRouteProps.BuilderofWebSocketRouteProps
-