Interface WebSocketRouteProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
,WebSocketRouteOptions
- All Known Implementing Classes:
WebSocketRouteProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-09-11T18:01:10.811Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forWebSocketRouteProps
static final class
An implementation forWebSocketRouteProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic WebSocketRouteProps.Builder
builder()
default Boolean
Whether 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$toJson
Methods 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.Builder
ofWebSocketRouteProps
-