Skip to content
v2.273.0

WebSocketRouteAuthorizerBindOptions Struct ​

Input to the bind() operation, that binds an authorizer to a route.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apigatewayv2 as apigatewayv2 } from 'aws-cdk-lib';
import * as constructs from 'constructs';

declare const construct: constructs.Construct;
declare const webSocketRoute: apigatewayv2.WebSocketRoute;
const webSocketRouteAuthorizerBindOptions: apigatewayv2.WebSocketRouteAuthorizerBindOptions = {
  route: webSocketRoute,
  scope: construct,
};

Properties ​

The route to which the authorizer is being bound.
scopeConstructscopeConstructscopeConstructScopeConstructScopeConstructrequired#
The scope for any constructs created as part of the bind.