UNPKG

@types/aws-lambda

Version:

TypeScript definitions for AWS Lambda

16 lines (13 loc) 528 B
import { Handler } from '../../handler'; import { BaseTriggerEvent, StringMap } from './_common'; /** * @see https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-authentication.html */ export interface PreAuthenticationTriggerEvent extends BaseTriggerEvent<'PreAuthentication_Authentication'> { request: { userAttributes: StringMap; userNotFound?: boolean; validationData?: StringMap; }; } export type PreAuthenticationTriggerHandler = Handler<PreAuthenticationTriggerEvent>;