WebSocketLambdaIntegrationProps Struct
Props for Lambda type integration for a WebSocket Api.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
import { aws_apigatewayv2 as apigatewayv2 } from 'aws-cdk-lib';
import { aws_apigatewayv2_integrations as apigatewayv2_integrations } from 'aws-cdk-lib';
const webSocketLambdaIntegrationProps: apigatewayv2_integrations.WebSocketLambdaIntegrationProps = {
contentHandling: apigatewayv2.ContentHandling.CONVERT_TO_BINARY,
timeout: cdk.Duration.minutes(30),
};
Properties
contentHandlingoptionalContentHandlingcontent_handlingoptionalContentHandlingcontentHandlingoptionalContentHandlingContentHandlingoptionalContentHandlingContentHandlingoptionalContentHandling#Specifies how to handle response payload content type conversions.
Default: The response payload will be passed through from the integration response to the route response or method response without modification.