interface PreTokenGenerationConfigProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Cognito.CfnUserPool.PreTokenGenerationConfigProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscognito#CfnUserPool_PreTokenGenerationConfigProperty |
Java | software.amazon.awscdk.services.cognito.CfnUserPool.PreTokenGenerationConfigProperty |
Python | aws_cdk.aws_cognito.CfnUserPool.PreTokenGenerationConfigProperty |
TypeScript | aws-cdk-lib » aws_cognito » CfnUserPool » PreTokenGenerationConfigProperty |
The properties of a pre token generation Lambda trigger.
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 preTokenGenerationConfigProperty: cognito.CfnUserPool.PreTokenGenerationConfigProperty = {
lambdaArn: 'lambdaArn',
lambdaVersion: 'lambdaVersion',
};
Properties
| Name | Type | Description |
|---|---|---|
| lambda | string | The Amazon Resource Name (ARN) of the function that you want to assign to your Lambda trigger. |
| lambda | string | The user pool trigger version of the request that Amazon Cognito sends to your Lambda function. |
lambdaArn?
Type:
string
(optional)
The Amazon Resource Name (ARN) of the function that you want to assign to your Lambda trigger.
This parameter and the PreTokenGeneration property of LambdaConfig have the same value. For new instances of pre token generation triggers, set LambdaArn .
lambdaVersion?
Type:
string
(optional)
The user pool trigger version of the request that Amazon Cognito sends to your Lambda function.
Higher-numbered versions add fields that support new features.

.NET
Go
Java
Python
TypeScript