Skip to content
v2.275.0

HttpAuthorizerAttributes Struct ​

Reference to an http authorizer.

Example ​

ts
import { HttpAuthorizer } from 'aws-cdk-lib/aws-apigatewayv2';
import { Fn } from 'aws-cdk-lib'

const authorizerId = Fn.importValue('authorizerId');
const authorizerType = Fn.importValue('authorizerType');

const authorizer = HttpAuthorizer.fromHttpAuthorizerAttributes(this, 'HttpAuthorizer', {
    authorizerId,
    authorizerType
});

Properties ​

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

Possible values are:

  • JWT - JSON Web Token Authorizer
  • CUSTOM - Lambda Authorizer
  • NONE - No Authorization