An authorizer for WebSocket Apis.
import { WebSocketAuthorizer } from 'aws-cdk-lib/aws-apigatewayv2';Or use the module namespace:
import * as apigatewayv2 from 'aws-cdk-lib/aws-apigatewayv2';
// apigatewayv2.WebSocketAuthorizerConfiguration passed to the constructor as WebSocketAuthorizerProps.
identitySourceRequiredstring[]The identity source for which authorization is requested.
typeRequiredWebSocketAuthorizerTypeThe type of authorizer.
webSocketApiRequiredIWebSocketApiWebSocket Api to attach the authorizer to.
authorizerNameOptionalstringName of the authorizer.
Default: - id of the WebSocketAuthorizer construct.
authorizerUriOptionalstringThe authorizer's Uniform Resource Identifier (URI). For REQUEST authorizers, this must be a well-formed Lambda function URI.
Default: - required for Request authorizer types
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-apigatewayv2