AxisCognitoTriggers
Defined in: packages/constructs/src/auth/cognito.ts:41
Explicit trigger map — each key is a Cognito trigger slot. Assign a lambda.IFunction to any slot you want to wire up. Much safer than inferring trigger type from lambda name.
Example: triggers: { postConfirmation: myPostConfirmFn, preSignUp: myPreSignUpFn, }
Properties
Section titled “Properties”createAuthChallenge?
Section titled “createAuthChallenge?”
optionalcreateAuthChallenge?:IFunction
Defined in: packages/constructs/src/auth/cognito.ts:59
Fires to create auth challenge
customMessage?
Section titled “customMessage?”
optionalcustomMessage?:IFunction
Defined in: packages/constructs/src/auth/cognito.ts:53
Fires to customise verification/MFA messages
defineAuthChallenge?
Section titled “defineAuthChallenge?”
optionaldefineAuthChallenge?:IFunction
Defined in: packages/constructs/src/auth/cognito.ts:57
Fires to define auth challenge (custom auth flow)
postAuthentication?
Section titled “postAuthentication?”
optionalpostAuthentication?:IFunction
Defined in: packages/constructs/src/auth/cognito.ts:47
Fires after authentication — use to add custom logic
postConfirmation?
Section titled “postConfirmation?”
optionalpostConfirmation?:IFunction
Defined in: packages/constructs/src/auth/cognito.ts:43
Fires after user confirms account — use to set custom:userId
preAuthentication?
Section titled “preAuthentication?”
optionalpreAuthentication?:IFunction
Defined in: packages/constructs/src/auth/cognito.ts:49
Fires before authentication
preSignUp?
Section titled “preSignUp?”
optionalpreSignUp?:IFunction
Defined in: packages/constructs/src/auth/cognito.ts:45
Fires before signup — use to block/allow registrations
preTokenGeneration?
Section titled “preTokenGeneration?”
optionalpreTokenGeneration?:IFunction
Defined in: packages/constructs/src/auth/cognito.ts:51
Fires before token generation — use to add custom claims
userMigration?
Section titled “userMigration?”
optionaluserMigration?:IFunction
Defined in: packages/constructs/src/auth/cognito.ts:55
Fires to migrate users from a legacy user pool
verifyAuthChallengeResponse?
Section titled “verifyAuthChallengeResponse?”
optionalverifyAuthChallengeResponse?:IFunction
Defined in: packages/constructs/src/auth/cognito.ts:61
Fires to verify auth challenge response
© 2026 Axis Tech. Powered by axis-tech.co.