AWS Security ChangesHomeSearch

AWS code-library documentation change

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

File: code-library/latest/ug/csharp_3_ecs_code_examples.md

Summary

Removed entire C# code example section demonstrating ECS client initialization and cluster listing

Security assessment

This change removes a code example but doesn't address any security vulnerabilities or introduce security documentation. The removal appears to be part of documentation reorganization rather than security-related maintenance.

Diff

diff --git a/code-library/latest/ug/csharp_3_ecs_code_examples.md b/code-library/latest/ug/csharp_3_ecs_code_examples.md
index 376b93436..712467d10 100644
--- a//code-library/latest/ug/csharp_3_ecs_code_examples.md
+++ b//code-library/latest/ug/csharp_3_ecs_code_examples.md
@@ -19,50 +18,0 @@ Each example includes a link to the complete source code, where you can find ins
-**Get started**
-
-The following code example shows how to get started using Amazon ECS.
-
-**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/ECS#code-examples). 
-    
-    
-    using Amazon.ECS;
-    using Amazon.ECS.Model;
-    using Microsoft.Extensions.Hosting;
-    
-    namespace ECSActions;
-    
-    public class HelloECS
-    {
-        static async System.Threading.Tasks.Task Main(string[] args)
-        {
-            // Use the AWS .NET Core Setup package to set up dependency injection for the Amazon ECS domain registration service.
-            // Use your AWS profile name, or leave it blank to use the default profile.
-            using var host = Host.CreateDefaultBuilder(args).Build();
-    
-            // Now the client is available for injection.
-            var amazonECSClient = new AmazonECSClient();
-    
-            // You can use await and any of the async methods to get a response.
-            var response = await amazonECSClient.ListClustersAsync(new ListClustersRequest { });
-    
-            Console.WriteLine($"Hello Amazon ECS! Following are some cluster ARNS available in the your aws account");
-            Console.WriteLine();
-            foreach (var arn in response.ClusterArns.Take(5))
-            {
-                Console.WriteLine($"\tARN: {arn}");
-                Console.WriteLine($"Cluster Name: {arn.Split("/").Last()}");
-                Console.WriteLine();
-            }
-        }
-    }
-    
-    
-
-  * For API details, see [ListClusters](https://docs.aws.amazon.com/goto/DotNetSDKV3/ecs-2014-11-13/ListClusters) in _AWS SDK for .NET API Reference_. 
-
-
-
-