Skip to main content
  • v7.1.2
  • GitHub
Home
  • Documentation
  • Middlewares
  • Events
  • Intro to Middy
    • Introduction
    • Getting Started
    • How It Works
    • Early Response
    • Handling Errors
    • Durable Functions
    • Streamify Response
    • Testing
    • Use with TypeScript
    • Hooks
    • History
    • Influence
    • Utilities
    • Release Cycle
    • Contributing
    • Sponsoring
  • Middlewares
    • Official Middlewares
    • Third-party Middlewares
    • appconfig
    • cloudformation-response
    • cloudwatch-metrics
    • do-not-wait-for-empty-event-loop
    • dynamodb
    • error-logger
    • event-normalizer
    • http-content-encoding
    • http-content-negotiation
    • http-cors
    • http-error-handler
    • http-event-normalizer
    • http-header-normalizer
    • http-json-body-parser
    • http-multipart-body-parser
    • http-partial-response
    • http-response-serializer
    • http-security-headers
    • http-urlencode-body-parser
    • http-urlencode-path-parser
    • input-output-logger
    • rds-signer
    • s3
    • s3-object-response
    • secrets-manager
    • service-discovery
    • sqs-partial-batch-failure
    • ssm
    • sts
    • validator
    • warmup
    • ws-json-body-parser
    • ws-response
  • Writing middlewares
    • Custom Middlewares
    • Configurable Middlewares
    • Inline Middlewares
    • Internal Storage
    • Handle Timeouts
    • More Examples
    • With TypeScript
  • Routers
    • cloudformation-router
    • http-router
    • ws-router
  • Upgrade
    • Upgrade 6.x -> 7.x
    • Upgrade 5.x -> 6.x
    • Upgrade 4.x -> 5.x
    • Upgrade 3.x -> 4.x
    • Upgrade 2.x -> 3.x
    • Upgrade 1.x -> 2.x
    • Upgrade 0.x -> 1.x
  • AWS event examples
    • All AWS Events
    • Alexa
    • API Gateway Authorizer
    • API Gateway (HTTP)
    • API Gateway (REST)
    • API Gateway (WebSocket)
    • Application Load Balancer
    • AppSync
    • CloudFormation
    • CloudFront Lambda@Edge
    • CloudTrail
    • CloudWatch Alarm
    • CloudWatch Logs
    • Code Commit
    • CodePipeline
    • Cognito
    • Config
    • Connect
    • DocumentDB
    • DynamoDB
    • EC2
    • EventBridge
    • Function URL
    • Internet of Things (IoT)
    • IoT Events
    • Kafka, Managed Streaming (MSK)
    • Kafka, Self-Managed
    • Kinesis Firehose
    • Kinesis Streams
    • Lex
    • MQ
    • RDS
    • S3
    • S3 Batch
    • S3 Object
    • Secrets Manager
    • SES
    • SNS
    • SQS
    • VPC Lattice
    • WorkMail
  • Integrations
    • Intro
    • AWS RDS
    • Apollo Server
    • Powertools for AWS Lambda
    • Pino
    • Serverless Framework
    • Serverless Stack
  • Best practice
    • Intro
    • Connection Reuse
    • Internal Context
    • Bundling Lambda Packages
    • Small node_modules
    • Profiling
  • FAQ

API Gateway Authorizer

On this page

  1. AWS Documentation
  2. Example

This page is a work in progress. If you want to help us to make this page better, please consider contributing on GitHub.

AWS Documentation

  • Working with AWS Lambda authorizers for HTTP APIs
  • Input to an Amazon API Gateway Lambda authorizer

Example

import middy from '@middy/core'
export const handler = middy().handler((event, context, { signal }) => {
  // ...
})

Footer

  • Home
Docs
  • Documentation
  • Middlewares
  • AWS Events
  • LLMs
Community & support
  • GitHub
  • StackOverflow
More
  • npm
  • OpenSSF Scorecard
  • OpenSSF Best Practice
  • Sponsor