Skip to content
v2.274.0

WebSocketRouteAuthorizerConfig Struct ​

Results of binding an authorizer to an WebSocket 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';
const webSocketRouteAuthorizerConfig: apigatewayv2.WebSocketRouteAuthorizerConfig = {
  authorizationType: 'authorizationType',

  // the properties below are optional
  authorizerId: 'authorizerId',
};

Properties ​

authorizationTypestringauthorization_typestrauthorizationTypeStringAuthorizationTypestringAuthorizationType*stringrequired#
The type of authorization.

Possible values are:

  • CUSTOM - Lambda Authorizer
  • NONE - No Authorization
authorizerIdstringauthorizer_idstrauthorizerIdStringAuthorizerIdstringAuthorizerId*string= No authorizer id (useful for AWS…#
The authorizer id.
default

Default: No authorizer id (useful for AWS_IAM route authorizer)