Class WebSocketRoute.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.WebSocketRoute.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<WebSocketRoute>
- Enclosing class:
- WebSocketRoute
@Stability(Experimental)
public static final class WebSocketRoute.Builder
extends Object
implements software.amazon.jsii.Builder<WebSocketRoute>
(experimental) A fluent builder for
WebSocketRoute.-
Method Summary
Modifier and TypeMethodDescriptionapiKeyRequired(Boolean apiKeyRequired) (experimental) Whether the route requires an API Key to be provided.authorizer(IWebSocketRouteAuthorizer authorizer) (experimental) The authorize to this route.build()static WebSocketRoute.Builderintegration(WebSocketRouteIntegration integration) (experimental) The integration to be configured on this route.(experimental) The key to this route.webSocketApi(IWebSocketApi webSocketApi) (experimental) The API the route is associated with.
-
Method Details
-
create
@Stability(Experimental) public static WebSocketRoute.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- This parameter is required.id- This parameter is required.- Returns:
- a new instance of
WebSocketRoute.Builder.
-
integration
@Stability(Experimental) public WebSocketRoute.Builder integration(WebSocketRouteIntegration integration) (experimental) The integration to be configured on this route.- Parameters:
integration- The integration to be configured on this route. This parameter is required.- Returns:
this
-
authorizer
@Stability(Experimental) public WebSocketRoute.Builder authorizer(IWebSocketRouteAuthorizer authorizer) (experimental) The authorize to this route.You can only set authorizer to a $connect route.
Default: - No Authorizer
- Parameters:
authorizer- The authorize to this route. This parameter is required.- Returns:
this
-
routeKey
(experimental) The key to this route.- Parameters:
routeKey- The key to this route. This parameter is required.- Returns:
this
-
webSocketApi
(experimental) The API the route is associated with.- Parameters:
webSocketApi- The API the route is associated with. This parameter is required.- Returns:
this
-
apiKeyRequired
(experimental) Whether the route requires an API Key to be provided.Default: false
- Parameters:
apiKeyRequired- Whether the route requires an API Key to be provided. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<WebSocketRoute>- Returns:
- a newly built instance of
WebSocketRoute.
-