Class WebSocketLambdaIntegration
(experimental) Lambda WebSocket Integration.
Namespace: Amazon.CDK.AWS.APIGatewayv2.Integrations
Assembly: Amazon.CDK.AWS.APIGatewayv2.Integrations.dll
Syntax (csharp)
public class WebSocketLambdaIntegration : WebSocketRouteIntegration
Syntax (vb)
Public Class WebSocketLambdaIntegration
Inherits WebSocketRouteIntegration
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.APIGatewayv2.Integrations;
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
WebSocketLambdaIntegration(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
WebSocketLambdaIntegration(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
WebSocketLambdaIntegration(String, IFunction) |
Methods
Bind(IWebSocketRouteIntegrationBindOptions) | (experimental) Bind this integration to the route. |
Constructors
WebSocketLambdaIntegration(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected WebSocketLambdaIntegration(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
WebSocketLambdaIntegration(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected WebSocketLambdaIntegration(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
WebSocketLambdaIntegration(String, IFunction)
public WebSocketLambdaIntegration(string id, IFunction handler)
Parameters
- id System.String
id of the underlying integration construct.
- handler IFunction
the Lambda function handler.
Remarks
Stability: Experimental
Methods
Bind(IWebSocketRouteIntegrationBindOptions)
(experimental) Bind this integration to the route.
public override IWebSocketRouteIntegrationConfig Bind(IWebSocketRouteIntegrationBindOptions options)
Parameters
Returns
IWebSocketRouteIntegrationConfig
Overrides
Remarks
Stability: Experimental