Skip to content

Commit 8082560

Browse files
committed
JavaScript (v3): Cognito - Run writeme and fix package name issue for Pools/Triggers Wkflw
1 parent 8025515 commit 8082560

File tree

3 files changed

+43
-1
lines changed

3 files changed

+43
-1
lines changed

javascriptv3/example_code/cognito-identity-provider/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,21 @@ Code excerpts that show you how to call individual service functions.
4444
- [AssociateSoftwareToken](actions/associate-software-token.js#L9)
4545
- [ConfirmDevice](actions/confirm-device.js#L9)
4646
- [ConfirmSignUp](actions/confirm-sign-up.js#L9)
47+
- [DeleteUser](../cross-services/wkflw-pools-triggers/actions/cognito-actions.js#L122)
4748
- [InitiateAuth](actions/initiate-auth.js#L10)
4849
- [ListUsers](actions/list-users.js#L9)
4950
- [ResendConfirmationCode](actions/resend-confirmation-code.js#L9)
5051
- [RespondToAuthChallenge](actions/respond-to-auth-challenge.js#L10)
5152
- [SignUp](actions/sign-up.js#L9)
53+
- [UpdateUserPool](../cross-services/wkflw-pools-triggers/actions/cognito-actions.js#L13)
5254
- [VerifySoftwareToken](actions/verify-software-token.js#L9)
5355

5456
### Scenarios
5557

5658
Code examples that show you how to accomplish a specific task by calling multiple
5759
functions within the same service.
5860

61+
- [Automatically confirm known users with a Lambda function](../cross-services/wkflw-pools-triggers/index.js)
5962
- [Sign up a user with a user pool that requires MFA](actions/admin-initiate-auth.js)
6063

6164

@@ -104,6 +107,22 @@ node ./hello.js
104107
```
105108

106109

110+
#### Automatically confirm known users with a Lambda function
111+
112+
This example shows you how to automatically confirm known Amazon Cognito users with a Lambda function.
113+
114+
- Configure a user pool to call a Lambda function for the <code>PreSignUp</code> trigger.
115+
- Sign up a user with Amazon Cognito.
116+
- The Lambda function scans a DynamoDB table and automatically confirms known users.
117+
- Sign in as the new user, then clean up resources.
118+
119+
<!--custom.scenario_prereqs.cross_CognitoAutoConfirmUser.start-->
120+
<!--custom.scenario_prereqs.cross_CognitoAutoConfirmUser.end-->
121+
122+
123+
<!--custom.scenarios.cross_CognitoAutoConfirmUser.start-->
124+
<!--custom.scenarios.cross_CognitoAutoConfirmUser.end-->
125+
107126
#### Sign up a user with a user pool that requires MFA
108127

109128
This example shows you how to do the following:

javascriptv3/example_code/cross-services/wkflw-pools-triggers/cdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@aws-doc-examples/pools-triggers-cdk",
2+
"name": "@aws-doc-sdk-examples/pools-triggers-cdk",
33
"version": "0.1.0",
44
"bin": {
55
"cdk": "bin/cdk.js"

javascriptv3/example_code/lambda/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ Code excerpts that show you how to call individual service functions.
5353
- [UpdateFunctionCode](actions/update-function-code.js#L15)
5454
- [UpdateFunctionConfiguration](actions/update-function-configuration.js#L12)
5555

56+
### Scenarios
57+
58+
Code examples that show you how to accomplish a specific task by calling multiple
59+
functions within the same service.
60+
61+
- [Automatically confirm known users with a Lambda function](../cross-services/wkflw-pools-triggers/index.js)
62+
5663

5764
<!--custom.examples.start-->
5865
<!--custom.examples.end-->
@@ -116,6 +123,22 @@ This example shows you how to do the following:
116123
<!--custom.basics.lambda_Scenario_GettingStartedFunctions.end-->
117124

118125

126+
#### Automatically confirm known users with a Lambda function
127+
128+
This example shows you how to automatically confirm known Amazon Cognito users with a Lambda function.
129+
130+
- Configure a user pool to call a Lambda function for the <code>PreSignUp</code> trigger.
131+
- Sign up a user with Amazon Cognito.
132+
- The Lambda function scans a DynamoDB table and automatically confirms known users.
133+
- Sign in as the new user, then clean up resources.
134+
135+
<!--custom.scenario_prereqs.cross_CognitoAutoConfirmUser.start-->
136+
<!--custom.scenario_prereqs.cross_CognitoAutoConfirmUser.end-->
137+
138+
139+
<!--custom.scenarios.cross_CognitoAutoConfirmUser.start-->
140+
<!--custom.scenarios.cross_CognitoAutoConfirmUser.end-->
141+
119142
### Tests
120143

121144
⚠ Running tests might result in charges to your AWS account.

0 commit comments

Comments
 (0)