Skip to content

Authorizer

Source: src/AWS/ApiGateway/Authorizer.ts

REST API Lambda, Cognito, or gateway authorizer.

const authorizer = yield* ApiGateway.Authorizer("Auth", {
restApiId: api.restApiId,
type: "TOKEN",
authorizerUri: authorizerInvokeArn,
identitySource: "method.request.header.Authorization",
});