Skip to content
v2.273.0

WebSocketNoneAuthorizer Class ​

Explicitly configure no authorizers on specific WebSocket API routes.

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

ts
new WebSocketNoneAuthorizer()
python
WebSocketNoneAuthorizer()
java
new WebSocketNoneAuthorizer()
csharp
new WebSocketNoneAuthorizer()
go
NewWebSocketNoneAuthorizer()

Methods ​

bind(_options: WebSocketRouteAuthorizerBindOptions): WebSocketRouteAuthorizerConfigdef bind(self, _options: WebSocketRouteAuthorizerBindOptions) -> WebSocketRouteAuthorizerConfigpublic WebSocketRouteAuthorizerConfig bind(WebSocketRouteAuthorizerBindOptions _options)public WebSocketRouteAuthorizerConfig Bind(WebSocketRouteAuthorizerBindOptions _options)func Bind(_options WebSocketRouteAuthorizerBindOptions) WebSocketRouteAuthorizerConfig#
Bind this authorizer to a specified WebSocket route.