Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
badmintoncryer committed Jan 29, 2024
1 parent f981355 commit a0db50a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
9 changes: 9 additions & 0 deletions packages/aws-cdk-lib/aws-cognito/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,15 @@ userpool.addTrigger(cognito.UserPoolOperation.USER_MIGRATION, new lambda.Functio
}));
```

Additionally, only the pre token generation Lambda trigger supports the trigger event V2.0:

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

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

The following table lists the set of triggers available, and their corresponding method to add it to the user pool.
For more information on the function of these triggers and how to configure them, read [User Pool Workflows with
Triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html).
Expand Down
2 changes: 0 additions & 2 deletions packages/aws-cdk-lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export * as alexa_ask from './alexa-ask';
export * as amzn_sdc from './amzn-sdc';
export * as assertions from './assertions';
export * as assets from './assets';
export * as aws_accessanalyzer from './aws-accessanalyzer';
Expand Down Expand Up @@ -58,7 +57,6 @@ export * as aws_codepipeline_actions from './aws-codepipeline-actions';
export * as aws_codestar from './aws-codestar';
export * as aws_codestarconnections from './aws-codestarconnections';
export * as aws_codestarnotifications from './aws-codestarnotifications';
export * as aws_codetest from './aws-codetest';
export * as aws_cognito from './aws-cognito';
export * as aws_comprehend from './aws-comprehend';
export * as aws_config from './aws-config';
Expand Down
2 changes: 0 additions & 2 deletions packages/aws-cdk-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@
"./.jsii": "./.jsii",
"./.warnings.jsii.js": "./.warnings.jsii.js",
"./alexa-ask": "./alexa-ask/index.js",
"./amzn-sdc": "./amzn-sdc/index.js",
"./assertions": "./assertions/index.js",
"./assertions/lib/helpers-internal": "./assertions/lib/helpers-internal/index.js",
"./assets": "./assets/index.js",
Expand Down Expand Up @@ -269,7 +268,6 @@
"./aws-codestar": "./aws-codestar/index.js",
"./aws-codestarconnections": "./aws-codestarconnections/index.js",
"./aws-codestarnotifications": "./aws-codestarnotifications/index.js",
"./aws-codetest": "./aws-codetest/index.js",
"./aws-cognito": "./aws-cognito/index.js",
"./aws-comprehend": "./aws-comprehend/index.js",
"./aws-config": "./aws-config/index.js",
Expand Down
6 changes: 0 additions & 6 deletions packages/aws-cdk-lib/scripts/scope-map.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
"alexa-ask": [
"Alexa::ASK"
],
"amzn-sdc": [
"AMZN::SDC"
],
"aws-accessanalyzer": [
"AWS::AccessAnalyzer"
],
Expand Down Expand Up @@ -149,9 +146,6 @@
"aws-codestarnotifications": [
"AWS::CodeStarNotifications"
],
"aws-codetest": [
"AWS::CodeTest"
],
"aws-cognito": [
"AWS::Cognito"
],
Expand Down

0 comments on commit a0db50a

Please sign in to comment.