@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:46:59.886Z") @Stability(value=Experimental) public abstract class WebSocketRouteIntegration extends software.amazon.jsii.JsiiObject
Example:
import software.amazon.awscdk.services.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());
| Modifier | Constructor and Description |
|---|---|
protected |
WebSocketRouteIntegration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
WebSocketRouteIntegration(software.amazon.jsii.JsiiObjectRef objRef) |
protected |
WebSocketRouteIntegration(String id)
(experimental) Initialize an integration for a route on websocket api.
|
| Modifier and Type | Method and Description |
|---|---|
abstract WebSocketRouteIntegrationConfig |
bind(WebSocketRouteIntegrationBindOptions options)
(experimental) Bind this integration to the route.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected WebSocketRouteIntegration(software.amazon.jsii.JsiiObjectRef objRef)
protected WebSocketRouteIntegration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
protected WebSocketRouteIntegration(@NotNull
String id)
id - id of the underlying `WebSocketIntegration` construct. This parameter is required.@Stability(value=Experimental) @NotNull public abstract WebSocketRouteIntegrationConfig bind(@NotNull WebSocketRouteIntegrationBindOptions options)
options - This parameter is required.Copyright © 2022. All rights reserved.