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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forWebSocketApiProps
static final class
An implementation forWebSocketApiProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic WebSocketApiProps.Builder
builder()
An API key selection expression.default String
Name for the WebSocket API resource.default WebSocketRouteOptions
Options to configure a '$connect' route.default WebSocketRouteOptions
Options to configure a '$default' route.default String
The description of the API.default Boolean
Avoid validating models when creating a deployment.default WebSocketRouteOptions
Options to configure a '$disconnect' route.default IpAddressType
The IP address types that can invoke the API.default String
The route selection expression for the API.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
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
Name for the WebSocket API resource.Default: - id of the WebSocketApi construct.
-
getConnectRouteOptions
Options to configure a '$connect' route.Default: - no '$connect' route configured
-
getDefaultRouteOptions
Options to configure a '$default' route.Default: - no '$default' route configured
-
getDescription
The description of the API.Default: - none
-
getDisableSchemaValidation
Avoid validating models when creating a deployment.Default: false
-
getDisconnectRouteOptions
Options to configure a '$disconnect' route.Default: - no '$disconnect' route configured
-
getIpAddressType
The IP address types that can invoke the API.Default: undefined - AWS default is IPV4
- See Also:
-
getRouteSelectionExpression
The route selection expression for the API.Default: '$request.body.action'
-
builder
- Returns:
- a
WebSocketApiProps.Builder
ofWebSocketApiProps
-