Describe the feature
Add the new enum value LambdaVersion V3_0 for PreTokenGenerationConfig.
CloudFormation allowed values: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-pretokengenerationconfig.html#cfn-cognito-userpool-pretokengenerationconfig-lambdaversion
CDK Enum: https://github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/aws-cognito/lib/user-pool.ts#L301
Use Case
I would like to be able to use CDK's addTrigger function for adding a PRE_TOKEN_GENERATION_CONFIG with the new version 3.0.
Example:
userPool.addTrigger(cognito.UserPoolOperation.PRE_TOKEN_GENERATION_CONFIG, lambdaFunc, cognito.LambdaVersion.V3_0)
Proposed Solution
No response
Other Information
To be used for the new M2M pre token customization flow, see AWS announcement: https://aws.amazon.com/about-aws/whats-new/2025/03/amazon-cognito-access-token-m2m-authorization-flows/
Acknowledgements
CDK version used
v2.182.0
Environment details (OS name and version, etc.)
Typescript
Describe the feature
Add the new enum value LambdaVersion V3_0 for PreTokenGenerationConfig.
CloudFormation allowed values: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-pretokengenerationconfig.html#cfn-cognito-userpool-pretokengenerationconfig-lambdaversion
CDK Enum: https://github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/aws-cognito/lib/user-pool.ts#L301
Use Case
I would like to be able to use CDK's
addTriggerfunction for adding aPRE_TOKEN_GENERATION_CONFIGwith the new version 3.0.Example:
Proposed Solution
No response
Other Information
To be used for the new M2M pre token customization flow, see AWS announcement: https://aws.amazon.com/about-aws/whats-new/2025/03/amazon-cognito-access-token-m2m-authorization-flows/
Acknowledgements
CDK version used
v2.182.0
Environment details (OS name and version, etc.)
Typescript