Interface WebSocketRouteProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable, WebSocketRouteOptions
All Known Implementing Classes:
WebSocketRouteProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:43.357Z") @Stability(Experimental) public interface WebSocketRouteProps extends software.amazon.jsii.JsiiSerializable, WebSocketRouteOptions
(experimental) 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)
         .build();
 
  • Method Details

    • getRouteKey

      @Stability(Experimental) @NotNull String getRouteKey()
      (experimental) The key to this route.
    • getWebSocketApi

      @Stability(Experimental) @NotNull IWebSocketApi getWebSocketApi()
      (experimental) The API the route is associated with.
    • getApiKeyRequired

      @Stability(Experimental) @Nullable default Boolean getApiKeyRequired()
      (experimental) Whether the route requires an API Key to be provided.

      Default: false

    • builder

      @Stability(Experimental) static WebSocketRouteProps.Builder builder()
      Returns:
      a WebSocketRouteProps.Builder of WebSocketRouteProps