@Stability(value=Experimental) public static final class WebSocketRoute.Builder extends Object implements software.amazon.jsii.Builder<WebSocketRoute>
WebSocketRoute.| Modifier and Type | Method and Description |
|---|---|
WebSocketRoute.Builder |
apiKeyRequired(Boolean apiKeyRequired)
(experimental) Whether the route requires an API Key to be provided.
|
WebSocketRoute.Builder |
authorizer(IWebSocketRouteAuthorizer authorizer)
(experimental) The authorize to this route.
|
WebSocketRoute |
build() |
static WebSocketRoute.Builder |
create(software.constructs.Construct scope,
String id) |
WebSocketRoute.Builder |
integration(WebSocketRouteIntegration integration)
(experimental) The integration to be configured on this route.
|
WebSocketRoute.Builder |
routeKey(String routeKey)
(experimental) The key to this route.
|
WebSocketRoute.Builder |
webSocketApi(IWebSocketApi webSocketApi)
(experimental) The API the route is associated with.
|
@Stability(value=Experimental) public static WebSocketRoute.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.WebSocketRoute.Builder.@Stability(value=Experimental) public WebSocketRoute.Builder integration(WebSocketRouteIntegration integration)
integration - The integration to be configured on this route. This parameter is required.this@Stability(value=Experimental) public WebSocketRoute.Builder authorizer(IWebSocketRouteAuthorizer authorizer)
You can only set authorizer to a $connect route.
Default: - No Authorizer
authorizer - The authorize to this route. This parameter is required.this@Stability(value=Experimental) public WebSocketRoute.Builder routeKey(String routeKey)
routeKey - The key to this route. This parameter is required.this@Stability(value=Experimental) public WebSocketRoute.Builder webSocketApi(IWebSocketApi webSocketApi)
webSocketApi - The API the route is associated with. This parameter is required.this@Stability(value=Experimental) public WebSocketRoute.Builder apiKeyRequired(Boolean apiKeyRequired)
Default: false
apiKeyRequired - Whether the route requires an API Key to be provided. This parameter is required.this@Stability(value=Experimental) public WebSocketRoute build()
build in interface software.amazon.jsii.Builder<WebSocketRoute>Copyright © 2022. All rights reserved.