AWS Security ChangesHomeSearch

AWS code-library documentation change

Service: code-library · 2026-01-10 · Documentation low

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

Summary

Removed all code examples for AWS Support across multiple programming languages including .NET, Java, JavaScript, Kotlin, and Python

Security assessment

The change removes documentation examples without adding any security-related content. There's no evidence of security vulnerability fixes, incident response, or security feature additions. The removal appears to be a routine documentation cleanup.

Diff

diff --git a/code-library/latest/ug/support_code_examples.md b/code-library/latest/ug/support_code_examples.md
index 62e600d38..ee049aacf 100644
--- a//code-library/latest/ug/support_code_examples.md
+++ b//code-library/latest/ug/support_code_examples.md
@@ -28,315 +27,0 @@ _Actions_ are code excerpts from larger programs and must be run in context. Whi
-**Get started**
-
-The following code examples show how to get started using Support.
-
-.NET
-    
-
-**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/Support#code-examples). 
-    
-    
-    using Amazon.AWSSupport;
-    using Microsoft.Extensions.DependencyInjection;
-    using Microsoft.Extensions.Hosting;
-    
-    public static class HelloSupport
-    {
-        static async Task Main(string[] args)
-        {
-            // Use the AWS .NET Core Setup package to set up dependency injection for the AWS Support service.
-            // Use your AWS profile name, or leave it blank to use the default profile.
-            // You must have one of the following AWS Support plans: Business, Enterprise On-Ramp, or Enterprise. Otherwise, an exception will be thrown.
-            using var host = Host.CreateDefaultBuilder(args)
-                .ConfigureServices((_, services) =>
-                    services.AddAWSService<IAmazonAWSSupport>()
-                ).Build();
-    
-            // Now the client is available for injection.
-            var supportClient = host.Services.GetRequiredService<IAmazonAWSSupport>();
-    
-            // You can use await and any of the async methods to get a response.
-            var response = await supportClient.DescribeServicesAsync();
-            Console.WriteLine($"\tHello AWS Support! There are {response.Services.Count} services available.");
-        }
-    }
-    
-    
-
-  * For API details, see [DescribeServices](https://docs.aws.amazon.com/goto/DotNetSDKV3/support-2013-04-15/DescribeServices) in _AWS SDK for .NET API Reference_. 
-
-
-
-
-Java
-    
-
-**SDK for Java 2.x**
-    
-
-###### 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/javav2/example_code/support#code-examples). 
-    
-    
-    import software.amazon.awssdk.regions.Region;
-    import software.amazon.awssdk.services.support.SupportClient;
-    import software.amazon.awssdk.services.support.model.Category;
-    import software.amazon.awssdk.services.support.model.DescribeServicesRequest;
-    import software.amazon.awssdk.services.support.model.DescribeServicesResponse;
-    import software.amazon.awssdk.services.support.model.Service;
-    import software.amazon.awssdk.services.support.model.SupportException;
-    import java.util.ArrayList;
-    import java.util.List;
-    
-    /**
-     * Before running this Java (v2) code example, set up your development
-     * environment, including your credentials.
-     *
-     * For more information, see the following documentation topic:
-     *
-     * https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/get-started.html
-     *
-     * In addition, you must have the AWS Business Support Plan to use the AWS
-     * Support Java API. For more information, see:
-     *
-     * https://aws.amazon.com/premiumsupport/plans/
-     *
-     * This Java example performs the following task:
-     *
-     * 1. Gets and displays available services.
-     *
-     *
-     * NOTE: To see multiple operations, see SupportScenario.
-     */
-    
-    public class HelloSupport {
-        public static void main(String[] args) {
-            Region region = Region.US_WEST_2;
-            SupportClient supportClient = SupportClient.builder()
-                    .region(region)
-                    .build();
-    
-            System.out.println("***** Step 1. Get and display available services.");
-            displayServices(supportClient);
-        }
-    
-        // Return a List that contains a Service name and Category name.
-        public static void displayServices(SupportClient supportClient) {
-            try {
-                DescribeServicesRequest servicesRequest = DescribeServicesRequest.builder()
-                        .language("en")
-                        .build();
-    
-                DescribeServicesResponse response = supportClient.describeServices(servicesRequest);
-                List<Service> services = response.services();
-    
-                System.out.println("Get the first 10 services");
-                int index = 1;
-                for (Service service : services) {
-                    if (index == 11)
-                        break;
-    
-                    System.out.println("The Service name is: " + service.name());
-    
-                    // Display the Categories for this service.
-                    List<Category> categories = service.categories();
-                    for (Category cat : categories) {
-                        System.out.println("The category name is: " + cat.name());
-                    }
-                    index++;
-                }
-    
-            } catch (SupportException e) {
-                System.out.println(e.getLocalizedMessage());
-                System.exit(1);
-            }
-        }
-    }
-    
-    
-
-  * For API details, see [DescribeServices](https://docs.aws.amazon.com/goto/SdkForJavaV2/support-2013-04-15/DescribeServices) in _AWS SDK for Java 2.x API Reference_. 
-
-
-
-
-JavaScript
-    
-
-**SDK for JavaScript (v3)**
-    
-
-###### 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/javascriptv3/example_code/support#code-examples). 
-
-Invoke `main()` to run the example.
-    
-    
-    import {
-      DescribeServicesCommand,
-      SupportClient,
-    } from "@aws-sdk/client-support";
-    
-    // Change the value of 'region' to your preferred AWS Region.
-    const client = new SupportClient({ region: "us-east-1" });
-    
-    const getServiceCount = async () => {
-      try {
-        const { services } = await client.send(new DescribeServicesCommand({}));
-        return services.length;
-      } catch (err) {
-        if (err.name === "SubscriptionRequiredException") {
-          throw new Error(
-            "You must be subscribed to the AWS Support plan to use this feature.",
-          );
-        }
-        throw err;
-      }
-    };
-    
-    export const main = async () => {
-      try {
-        const count = await getServiceCount();
-        console.log(`Hello, AWS Support! There are ${count} services available.`);
-      } catch (err) {
-        console.error("Failed to get service count: ", err.message);
-      }
-    };
-    
-    
-
-  * For API details, see [DescribeServices](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/support/command/DescribeServicesCommand) in _AWS SDK for JavaScript API Reference_. 
-
-
-
-
-Kotlin
-    
-
-**SDK for Kotlin**