# WebSocketRouteAuthorizerBindOptions

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

- Source: [`aws-apigatewayv2/lib/websocket/authorizer.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-apigatewayv2/lib/websocket/authorizer.ts#L148)
- Type last changed: v2.112.0 · 1 Dec 2023

## 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

- `route`: [IWebSocketRoute](/cdk/api/v2/docs/aws-cdk-lib.aws_apigatewayv2.IWebSocketRoute.html) (required) — The route to which the authorizer is being bound.

- `scope`: [Construct](/cdk/api/v2/docs/constructs.Construct.html) (required) — The scope for any constructs created as part of the bind.
