LambdaConfigProperty Struct
A collection of user pool Lambda triggers.
Amazon Cognito invokes triggers at several possible stages of user pool operations. Triggers can modify the outcome of the operations that invoked them.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cognito as cognito } from 'aws-cdk-lib';
const lambdaConfigProperty: cognito.CfnUserPool.LambdaConfigProperty = {
createAuthChallenge: 'createAuthChallenge',
customEmailSender: {
lambdaArn: 'lambdaArn',
lambdaVersion: 'lambdaVersion',
},
customMessage: 'customMessage',
customSmsSender: {
lambdaArn: 'lambdaArn',
lambdaVersion: 'lambdaVersion',
},
defineAuthChallenge: 'defineAuthChallenge',
inboundFederation: {
lambdaArn: 'lambdaArn',
lambdaVersion: 'lambdaVersion',
},
kmsKeyId: 'kmsKeyId',
postAuthentication: 'postAuthentication',
postConfirmation: 'postConfirmation',
preAuthentication: 'preAuthentication',
preSignUp: 'preSignUp',
preTokenGeneration: 'preTokenGeneration',
preTokenGenerationConfig: {
lambdaArn: 'lambdaArn',
lambdaVersion: 'lambdaVersion',
},
userMigration: 'userMigration',
verifyAuthChallengeResponse: 'verifyAuthChallengeResponse',
};
Properties
createAuthChallengestringcreate_auth_challengestrcreateAuthChallengeStringCreateAuthChallengestringCreateAuthChallenge*string#customEmailSenderIResolvable | CfnUserPool.CustomEmailSenderPropertycustom_email_sendertyping.Union[IResolvable, CustomEmailSenderProperty]customEmailSenderIResolvableCustomEmailSenderIResolvableCustomEmailSenderinterface{}#This trigger routes all email notifications from a user pool to a Lambda function that delivers the message using custom logic.
notes
This trigger is an opportunity to customize all SMS and email messages from your user pool. When a custom message trigger is active, your user pool routes all messages to a Lambda function that returns a runtime-customized message subject and body for your user pool to deliver to a user.
customSmsSenderIResolvable | CfnUserPool.CustomSMSSenderPropertycustom_sms_sendertyping.Union[IResolvable, CustomSMSSenderProperty]customSmsSenderIResolvableCustomSmsSenderIResolvableCustomSmsSenderinterface{}#This trigger routes all SMS notifications from a user pool to a Lambda function that delivers the message using custom logic.
defineAuthChallengestringdefine_auth_challengestrdefineAuthChallengeStringDefineAuthChallengestringDefineAuthChallenge*string#inboundFederationIResolvable | CfnUserPool.InboundFederationPropertyinbound_federationtyping.Union[IResolvable, InboundFederationProperty]inboundFederationIResolvableInboundFederationIResolvableInboundFederationinterface{}#postAuthenticationstringpost_authenticationstrpostAuthenticationStringPostAuthenticationstringPostAuthentication*string#postConfirmationstringpost_confirmationstrpostConfirmationStringPostConfirmationstringPostConfirmation*string#preAuthenticationstringpre_authenticationstrpreAuthenticationStringPreAuthenticationstringPreAuthentication*string#preTokenGenerationstringpre_token_generationstrpreTokenGenerationStringPreTokenGenerationstringPreTokenGeneration*string#notes
Set this parameter for legacy purposes. If you also set an ARN in PreTokenGenerationConfig , its value must be identical to PreTokenGeneration . For new instances of pre token generation triggers, set the LambdaArn of PreTokenGenerationConfig .
preTokenGenerationConfigIResolvable | CfnUserPool.PreTokenGenerationConfigPropertypre_token_generation_configtyping.Union[IResolvable, PreTokenGenerationConfigProperty]preTokenGenerationConfigIResolvablePreTokenGenerationConfigIResolvablePreTokenGenerationConfiginterface{}#verifyAuthChallengeResponsestringverify_auth_challenge_responsestrverifyAuthChallengeResponseStringVerifyAuthChallengeResponsestringVerifyAuthChallengeResponse*string#