Class WebSocketRouteIntegration
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.apigatewayv2.WebSocketRouteIntegration
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
- Direct Known Subclasses:
WebSocketAwsIntegration
,WebSocketLambdaIntegration
,WebSocketMockIntegration
@Generated(value="jsii-pacmak/1.102.0 (build e354887)",
date="2024-09-06T01:36:22.917Z")
@Stability(Stable)
public abstract class WebSocketRouteIntegration
extends software.amazon.jsii.JsiiObject
The interface that various route integration classes will inherit.
Example:
import software.amazon.awscdk.aws_apigatewayv2_integrations.WebSocketLambdaIntegration; Function messageHandler; WebSocketApi webSocketApi = new WebSocketApi(this, "mywsapi"); WebSocketStage.Builder.create(this, "mystage") .webSocketApi(webSocketApi) .stageName("dev") .autoDeploy(true) .build(); webSocketApi.addRoute("sendMessage", WebSocketRouteOptions.builder() .integration(new WebSocketLambdaIntegration("SendMessageIntegration", messageHandler)) .build());
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Constructor Summary
ModifierConstructorDescriptionprotected
Initialize an integration for a route on websocket api.protected
WebSocketRouteIntegration
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
WebSocketRouteIntegration
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionabstract WebSocketRouteIntegrationConfig
bind
(WebSocketRouteIntegrationBindOptions options) Bind this integration to the route.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
WebSocketRouteIntegration
protected WebSocketRouteIntegration(software.amazon.jsii.JsiiObjectRef objRef) -
WebSocketRouteIntegration
protected WebSocketRouteIntegration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
WebSocketRouteIntegration
Initialize an integration for a route on websocket api.- Parameters:
id
- id of the underlyingWebSocketIntegration
construct. This parameter is required.
-
-
Method Details
-
bind
@Stability(Stable) @NotNull public abstract WebSocketRouteIntegrationConfig bind(@NotNull WebSocketRouteIntegrationBindOptions options) Bind this integration to the route.- Parameters:
options
- This parameter is required.
-