AWS Security ChangesHomeSearch

AWS code-library documentation change

Service: code-library · 2025-07-01 · Documentation low

File: code-library/latest/ug/csharp_3_cognito-identity-provider_code_examples.md

Summary

Removed code example for ListUserPools operation in Cognito Identity Provider documentation

Security assessment

The change deletes a code sample for listing user pools but doesn't indicate any security fixes or security-related content. Removal of API usage examples doesn't inherently relate to security issues.

Diff

diff --git a/code-library/latest/ug/csharp_3_cognito-identity-provider_code_examples.md b/code-library/latest/ug/csharp_3_cognito-identity-provider_code_examples.md
index 5ba94de7c..e784dae92 100644
--- a//code-library/latest/ug/csharp_3_cognito-identity-provider_code_examples.md
+++ b//code-library/latest/ug/csharp_3_cognito-identity-provider_code_examples.md
@@ -328,36 +327,0 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
-The following code example shows how to use `ListUserPools`.
-
-**SDK for .NET**
-    
-
-###### Note
-
-There's more on GitHub. Find the complete example and learn how to set up and run in the [AWS Code Examples Repository](https://github.com/awsdocs/aws-doc-sdk-examples/tree/main/dotnetv3/Cognito#code-examples). 
-    
-    
-        /// <summary>
-        /// List the Amazon Cognito user pools for an account.
-        /// </summary>
-        /// <returns>A list of UserPoolDescriptionType objects.</returns>
-        public async Task<List<UserPoolDescriptionType>> ListUserPoolsAsync()
-        {
-            var userPools = new List<UserPoolDescriptionType>();
-    
-            var userPoolsPaginator = _cognitoService.Paginators.ListUserPools(new ListUserPoolsRequest());
-    
-            await foreach (var response in userPoolsPaginator.Responses)
-            {
-                userPools.AddRange(response.UserPools);
-            }
-    
-            return userPools;
-        }
-    
-    
-    
-
-  * For API details, see [ListUserPools](https://docs.aws.amazon.com/goto/DotNetSDKV3/cognito-idp-2016-04-18/ListUserPools) in _AWS SDK for .NET API Reference_. 
-
-
-
-