Skip to content
v2.274.0

WebSocketAuthorizerAttributes Struct ​

Reference to an WebSocket authorizer.

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 webSocketAuthorizerAttributes: apigatewayv2.WebSocketAuthorizerAttributes = {
  authorizerId: 'authorizerId',
  authorizerType: 'authorizerType',
};

Properties ​

authorizerIdstringauthorizer_idstrauthorizerIdStringAuthorizerIdstringAuthorizerId*stringrequired#
Id of the Authorizer.
authorizerTypestringauthorizer_typestrauthorizerTypeStringAuthorizerTypestringAuthorizerType*stringrequired#
Type of authorizer.

Possible values are:

  • CUSTOM - Lambda Authorizer
  • NONE - No Authorization