Interface WebSocketApiProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
WebSocketApiProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-10T13:39:57.624Z")
@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 classA builder forWebSocketApiPropsstatic final classAn implementation forWebSocketApiProps -
Method Summary
Modifier and TypeMethodDescriptionstatic WebSocketApiProps.Builderbuilder()An API key selection expression.default StringName for the WebSocket API resource.default WebSocketRouteOptionsOptions to configure a '$connect' route.default WebSocketRouteOptionsOptions to configure a '$default' route.default StringThe description of the API.default BooleanAvoid validating models when creating a deployment.default WebSocketRouteOptionsOptions to configure a '$disconnect' route.default IpAddressTypeThe IP address types that can invoke the API.default StringThe 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.BuilderofWebSocketApiProps
-