enum LambdaVersion
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Cognito.LambdaVersion |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscognito#LambdaVersion |
Java | software.amazon.awscdk.services.cognito.LambdaVersion |
Python | aws_cdk.aws_cognito.LambdaVersion |
TypeScript (source) | aws-cdk-lib » aws_cognito » LambdaVersion |
The user pool trigger version of the request that Amazon Cognito sends to your Lambda function.
Example
declare const userpool: cognito.UserPool;
declare const preTokenGenerationFn: lambda.Function;
userpool.addTrigger(cognito.UserPoolOperation.PRE_TOKEN_GENERATION_CONFIG, preTokenGenerationFn, cognito.LambdaVersion.V2_0);
Members
Name | Description |
---|---|
V1_0 | V1_0 trigger. |
V2_0 | V2_0 trigger. |
V1_0
V1_0 trigger.
V2_0
V2_0 trigger.
This is supported only for PRE_TOKEN_GENERATION trigger.