

# PreTokenGenerationVersionConfigType
<a name="API_PreTokenGenerationVersionConfigType"></a>

The properties of a pre token generation Lambda trigger.

This data type is a request and response parameter of [CreateUserPool](API_CreateUserPool.md) and [UpdateUserPool](API_UpdateUserPool.md), and a response parameter of [DescribeUserPool](API_DescribeUserPool.md).

## Contents
<a name="API_PreTokenGenerationVersionConfigType_Contents"></a>

 ** LambdaArn **   <a name="CognitoUserPools-Type-PreTokenGenerationVersionConfigType-LambdaArn"></a>
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`.  
Type: String  
Length Constraints: Minimum length of 20. Maximum length of 2048.  
Pattern: `arn:[\w+=/,.@-]+:[\w+=/,.@-]+:([\w+=/,.@-]*)?:[0-9]+:[\w+=/,.@-]+(:[\w+=/,.@-]+)?(:[\w+=/,.@-]+)?`   
Required: Yes

 ** LambdaVersion **   <a name="CognitoUserPools-Type-PreTokenGenerationVersionConfigType-LambdaVersion"></a>
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.  
Type: String  
Valid Values: `V1_0 | V2_0 | V3_0`   
Required: Yes

## See Also
<a name="API_PreTokenGenerationVersionConfigType_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/cognito-idp-2016-04-18/PreTokenGenerationVersionConfigType) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/cognito-idp-2016-04-18/PreTokenGenerationVersionConfigType) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/cognito-idp-2016-04-18/PreTokenGenerationVersionConfigType) 