# WebSocketNoneAuthorizer

Class · Stable

Explicitly configure no authorizers on specific WebSocket API routes.

Implements: [IWebSocketRouteAuthorizer](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigatewayv2.IWebSocketRouteAuthorizer.html)

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

## Example

TypeScript:

```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';
const webSocketNoneAuthorizer = new apigatewayv2.WebSocketNoneAuthorizer();
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_apigatewayv2 as apigatewayv2

web_socket_none_authorizer = apigatewayv2.WebSocketNoneAuthorizer()
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.apigatewayv2.*;

WebSocketNoneAuthorizer webSocketNoneAuthorizer = new WebSocketNoneAuthorizer();
```

C#:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Apigatewayv2;

var webSocketNoneAuthorizer = new WebSocketNoneAuthorizer();
```

Go:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

webSocketNoneAuthorizer := awscdk.Aws_apigatewayv2.NewWebSocketNoneAuthorizer()
```

## Initializer

TypeScript:

```ts
new WebSocketNoneAuthorizer()
```

Python:

```python
WebSocketNoneAuthorizer()
```

Java:

```java
new WebSocketNoneAuthorizer()
```

C#:

```csharp
new WebSocketNoneAuthorizer()
```

Go:

```go
NewWebSocketNoneAuthorizer()
```

## Methods

- `bind(_options: WebSocketRouteAuthorizerBindOptions): WebSocketRouteAuthorizerConfig` — Bind this authorizer to a specified WebSocket route.
