# LambdaVersion

The user pool trigger version of the request that Amazon Cognito sends to your Lambda function.

- Source: [`aws-cognito/lib/user-pool.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-cognito/lib/user-pool.ts#L314)
- Type last changed: v2.188.0 · 4 Apr 2025

## Example

```ts
declare const userpool: cognito.UserPool;
declare const preTokenGenerationFn: lambda.Function;

userpool.addTrigger(cognito.UserPoolOperation.PRE_TOKEN_GENERATION_CONFIG, preTokenGenerationFn, cognito.LambdaVersion.V2_0);
```

## Members

| Member | Description |
| --- | --- |
| `V1_0` | V1_0 trigger. |
| `V2_0` | V2_0 trigger. |
| `V3_0` | V3_0 trigger. |
