# WebSocketRouteIntegrationBindOptions

Options to the WebSocketRouteIntegration during its bind operation.

- Source: [`aws-apigatewayv2/lib/websocket/integration.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-apigatewayv2/lib/websocket/integration.ts#L225)
- 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 webSocketRouteIntegrationBindOptions: apigatewayv2.WebSocketRouteIntegrationBindOptions = {
  route: webSocketRoute,
  scope: construct,
};
```

## Properties

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

- `scope`: [Construct](/cdk/api/v2/docs/constructs.Construct.html) (required) — The current scope in which the bind is occurring.

  If the `WebSocketRouteIntegration` being bound creates additional constructs,
  this will be used as their parent scope.
