AWS code-library documentation change
Summary
Updated list-user-pools example with detailed LambdaConfig and pagination
Security assessment
Enhances example output details but does not introduce or modify security-related content.
Diff
diff --git a/code-library/latest/ug/cognito-identity-provider_example_cognito-identity-provider_ListUserPools_section.md index b61d0cd2a..f39f1e95c 100644 --- a/code-library/latest/ug/cognito-identity-provider_example_cognito-identity-provider_ListUserPools_section.md +++ b/code-library/latest/ug/cognito-identity-provider_example_cognito-identity-provider_ListUserPools_section.md @@ -56 +56 @@ CLI -This example lists up to 20 user pools. +The following `list-user-pools` example lists 3 of the available user pools in the AWS account of the current CLI credentials. @@ -58 +57,0 @@ This example lists up to 20 user pools. -Command: @@ -60,2 +59,2 @@ Command: - - aws cognito-idp list-user-pools --max-results 20 + aws cognito-idp list-user-pools \ + --max-results 3 @@ -67,0 +67 @@ Output: + "NextToken": "[Pagination token]", @@ -70,5 +70,30 @@ Output: - "CreationDate": 1547763720.822, - "LastModifiedDate": 1547763720.822, - "LambdaConfig": {}, - "Id": "us-west-2_aaaaaaaaa", - "Name": "MyUserPool" + "CreationDate": 1681502497.741, + "Id": "us-west-2_EXAMPLE1", + "LambdaConfig": { + "CustomMessage": "arn:aws:lambda:us-east-1:123456789012:function:MyFunction", + "PreSignUp": "arn:aws:lambda:us-east-1:123456789012:function:MyFunction", + "PreTokenGeneration": "arn:aws:lambda:us-east-1:123456789012:function:MyFunction", + "PreTokenGenerationConfig": { + "LambdaArn": "arn:aws:lambda:us-east-1:123456789012:function:MyFunction", + "LambdaVersion": "V1_0" + } + }, + "LastModifiedDate": 1681502497.741, + "Name": "user pool 1" + }, + { + "CreationDate": 1686064178.717, + "Id": "us-west-2_EXAMPLE2", + "LambdaConfig": { + }, + "LastModifiedDate": 1686064178.873, + "Name": "user pool 2" + }, + { + "CreationDate": 1627681712.237, + "Id": "us-west-2_EXAMPLE3", + "LambdaConfig": { + "UserMigration": "arn:aws:lambda:us-east-1:123456789012:function:MyFunction" + }, + "LastModifiedDate": 1678486942.479, + "Name": "user pool 3" @@ -78,0 +104,2 @@ Output: +For more information, see [Amazon Cognito user pools](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools.html) in the _Amazon Cognito Developer Guide_. +