Interface WebSocketApiProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
WebSocketApiProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)", date="2025-09-22T11:33:00.076Z") @Stability(Stable) public interface WebSocketApiProps extends software.amazon.jsii.JsiiSerializable
Props for WebSocket API.

Example:

 WebSocketApi webSocketApi = WebSocketApi.Builder.create(this, "mywsapi")
         .apiKeySelectionExpression(WebSocketApiKeySelectionExpression.HEADER_X_API_KEY)
         .build();
 
  • Method Details

    • getApiKeySelectionExpression

      @Stability(Stable) @Nullable default WebSocketApiKeySelectionExpression getApiKeySelectionExpression()
      An API key selection expression.

      Providing this option will require an API Key be provided to access the API.

      Default: - Key is not required to access these APIs

    • getApiName

      @Stability(Stable) @Nullable default String getApiName()
      Name for the WebSocket API resource.

      Default: - id of the WebSocketApi construct.

    • getConnectRouteOptions

      @Stability(Stable) @Nullable default WebSocketRouteOptions getConnectRouteOptions()
      Options to configure a '$connect' route.

      Default: - no '$connect' route configured

    • getDefaultRouteOptions

      @Stability(Stable) @Nullable default WebSocketRouteOptions getDefaultRouteOptions()
      Options to configure a '$default' route.

      Default: - no '$default' route configured

    • getDescription

      @Stability(Stable) @Nullable default String getDescription()
      The description of the API.

      Default: - none

    • getDisableSchemaValidation

      @Stability(Stable) @Nullable default Boolean getDisableSchemaValidation()
      Avoid validating models when creating a deployment.

      Default: false

    • getDisconnectRouteOptions

      @Stability(Stable) @Nullable default WebSocketRouteOptions getDisconnectRouteOptions()
      Options to configure a '$disconnect' route.

      Default: - no '$disconnect' route configured

    • getIpAddressType

      @Stability(Stable) @Nullable default IpAddressType getIpAddressType()
      The IP address types that can invoke the API.

      Default: undefined - AWS default is IPV4

      See Also:
    • getRouteSelectionExpression

      @Stability(Stable) @Nullable default String getRouteSelectionExpression()
      The route selection expression for the API.

      Default: '$request.body.action'

    • builder

      @Stability(Stable) static WebSocketApiProps.Builder builder()
      Returns:
      a WebSocketApiProps.Builder of WebSocketApiProps