Class WebSocketRouteIntegration
The interface that various route integration classes will inherit.
Inheritance
System.Object
WebSocketRouteIntegration
Namespace: Amazon.CDK.AWS.Apigatewayv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public abstract class WebSocketRouteIntegration : DeputyBase
Syntax (vb)
Public MustInherit Class WebSocketRouteIntegration
Inherits DeputyBase
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.WebSocketLambdaIntegration;
Function messageHandler;
var webSocketApi = new WebSocketApi(this, "mywsapi");
new WebSocketStage(this, "mystage", new WebSocketStageProps {
WebSocketApi = webSocketApi,
StageName = "dev",
AutoDeploy = true
});
webSocketApi.AddRoute("sendMessage", new WebSocketRouteOptions {
Integration = new WebSocketLambdaIntegration("SendMessageIntegration", messageHandler)
});
Synopsis
Constructors
WebSocketRouteIntegration(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
WebSocketRouteIntegration(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
WebSocketRouteIntegration(String) | Initialize an integration for a route on websocket api. |
Methods
Bind(IWebSocketRouteIntegrationBindOptions) | Bind this integration to the route. |
Constructors
WebSocketRouteIntegration(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected WebSocketRouteIntegration(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
WebSocketRouteIntegration(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected WebSocketRouteIntegration(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
WebSocketRouteIntegration(String)
Initialize an integration for a route on websocket api.
protected WebSocketRouteIntegration(string id)
Parameters
- id System.String
id of the underlying
WebSocketIntegration
construct.
Methods
Bind(IWebSocketRouteIntegrationBindOptions)
Bind this integration to the route.
public abstract IWebSocketRouteIntegrationConfig Bind(IWebSocketRouteIntegrationBindOptions options)
Parameters
Returns
IWebSocketRouteIntegrationConfig