AWS Security ChangesHomeSearch

AWS autoscaling documentation change

Service: autoscaling · 2026-01-10 · Documentation low

File: autoscaling/ec2/userguide/service_code_examples.md

Summary

Removed all code examples demonstrating how to use the DescribeAutoScalingGroups API across multiple programming languages (.NET, C++, Java, PHP, Python, Ruby, Rust) including setup instructions and sample outputs.

Security assessment

The change removes general API usage examples without any indication of security vulnerabilities, patches, or weaknesses. There's no reference to security flaws, incident response, or security best practices in the deleted content. The removal appears to be routine documentation cleanup rather than security-related.

Diff

diff --git a/autoscaling/ec2/userguide/service_code_examples.md b/autoscaling/ec2/userguide/service_code_examples.md
index a75896323..16eebd14b 100644
--- a//autoscaling/ec2/userguide/service_code_examples.md
+++ b//autoscaling/ec2/userguide/service_code_examples.md
@@ -17,415 +16,0 @@ For a complete list of AWS SDK developer guides and code examples, see [Using th
-**Get started**
-
-The following code examples show how to get started using Auto Scaling.
-
-.NET
-    
-
-**SDK for .NET (v4)**
-    
-
-###### 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/dotnetv4/AutoScaling#code-examples). 
-    
-    
-    namespace AutoScalingActions;
-    
-    using Amazon.AutoScaling;
-    
-    public class HelloAutoScaling
-    {
-        /// <summary>
-        /// Hello Amazon EC2 Auto Scaling. List EC2 Auto Scaling groups.
-        /// </summary>
-        /// <param name="args"></param>
-        /// <returns>Async Task.</returns>
-        static async Task Main(string[] args)
-        {
-            var client = new AmazonAutoScalingClient();
-    
-            Console.WriteLine("Welcome to Amazon EC2 Auto Scaling.");
-            Console.WriteLine("Let's get a description of your Auto Scaling groups.");
-    
-            var response = await client.DescribeAutoScalingGroupsAsync();
-    
-            if (response.AutoScalingGroups == null || response.AutoScalingGroups.Count == 0)
-            {
-                Console.WriteLine("Sorry, you don't have any Amazon EC2 Auto Scaling groups.");
-                return;
-            }
-            response.AutoScalingGroups.ForEach(autoScalingGroup =>
-            {
-                Console.WriteLine($"{autoScalingGroup.AutoScalingGroupName}\t{autoScalingGroup.AvailabilityZones}");
-            });
-    
-        }
-    }
-    
-    
-    
-
-  * For API details, see [DescribeAutoScalingGroups](https://docs.aws.amazon.com/goto/DotNetSDKV4/autoscaling-2011-01-01/DescribeAutoScalingGroups) in _AWS SDK for .NET API Reference_. 
-
-
-
-
-C++
-    
-
-**SDK for C++**
-    
-
-###### 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/cpp/example_code/autoscaling/hello_autoscaling#code-examples). 
-
-Code for the CMakeLists.txt CMake file.
-    
-    
-    # Set the minimum required version of CMake for this project.
-    cmake_minimum_required(VERSION 3.13)
-    
-    # Set the AWS service components used by this project.
-    set(SERVICE_COMPONENTS autoscaling)
-    
-    # Set this project's name.
-    project("hello_autoscaling")
-    
-    # Set the C++ standard to use to build this target.
-    # At least C++ 11 is required for the AWS SDK for C++.
-    set(CMAKE_CXX_STANDARD 11)
-    
-    # Use the MSVC variable to determine if this is a Windows build.
-    set(WINDOWS_BUILD ${MSVC})
-    
-    if (WINDOWS_BUILD) # Set the location where CMake can find the installed libraries for the AWS SDK.
-        string(REPLACE ";" "/aws-cpp-sdk-all;" SYSTEM_MODULE_PATH "${CMAKE_SYSTEM_PREFIX_PATH}/aws-cpp-sdk-all")
-        list(APPEND CMAKE_PREFIX_PATH ${SYSTEM_MODULE_PATH})
-    endif ()
-    
-    # Find the AWS SDK for C++ package.
-    find_package(AWSSDK REQUIRED COMPONENTS ${SERVICE_COMPONENTS})
-    
-    if (WINDOWS_BUILD AND AWSSDK_INSTALL_AS_SHARED_LIBS)
-         # Copy relevant AWS SDK for C++ libraries into the current binary directory for running and debugging.
-    
-         # set(BIN_SUB_DIR "/Debug") # If you are building from the command line, you may need to uncomment this 
-                                        # and set the proper subdirectory to the executables' location.
-    
-         AWSSDK_CPY_DYN_LIBS(SERVICE_COMPONENTS "" ${CMAKE_CURRENT_BINARY_DIR}${BIN_SUB_DIR})
-    endif ()
-    
-    add_executable(${PROJECT_NAME}
-            hello_autoscaling.cpp)
-    
-    target_link_libraries(${PROJECT_NAME}
-            ${AWSSDK_LINK_LIBRARIES})
-    
-    
-
-Code for the hello_autoscaling.cpp source file.
-    
-    
-    #include <aws/core/Aws.h>
-    #include <aws/autoscaling/AutoScalingClient.h>
-    #include <aws/autoscaling/model/DescribeAutoScalingGroupsRequest.h>
-    #include <iostream>
-    
-    /*
-     *  A "Hello Autoscaling" starter application which initializes an Amazon EC2 Auto Scaling client and describes the
-     *  Amazon EC2 Auto Scaling groups.
-     *
-     *  main function
-     *
-     *  Usage: 'hello_autoscaling'
-     *
-     */
-    
-    int main(int argc, char **argv) {
-        Aws::SDKOptions options;
-        // Optionally change the log level for debugging.
-    //   options.loggingOptions.logLevel = Utils::Logging::LogLevel::Debug;
-        Aws::InitAPI(options); // Should only be called once.
-        int result = 0;
-        {
-            Aws::Client::ClientConfiguration clientConfig;
-            // Optional: Set to the AWS Region (overrides config file).
-            // clientConfig.region = "us-east-1";
-    
-            Aws::AutoScaling::AutoScalingClient autoscalingClient(clientConfig);
-    
-            std::vector<Aws::String> groupNames;
-            Aws::String nextToken; // Used for pagination.
-    
-            do {
-    
-                Aws::AutoScaling::Model::DescribeAutoScalingGroupsRequest request;
-                if (!nextToken.empty()) {
-                    request.SetNextToken(nextToken);
-                }
-    
-                Aws::AutoScaling::Model::DescribeAutoScalingGroupsOutcome outcome =
-                        autoscalingClient.DescribeAutoScalingGroups(request);
-    
-                if (outcome.IsSuccess()) {
-                    const Aws::Vector<Aws::AutoScaling::Model::AutoScalingGroup> &autoScalingGroups =
-                            outcome.GetResult().GetAutoScalingGroups();
-                    for (auto &group: autoScalingGroups) {
-                        groupNames.push_back(group.GetAutoScalingGroupName());
-                    }
-                    nextToken = outcome.GetResult().GetNextToken();
-                } else {
-                    std::cerr << "Error with AutoScaling::DescribeAutoScalingGroups. "
-                              << outcome.GetError().GetMessage()
-                              << std::endl;
-                    result = 1;
-                    break;
-                }
-            } while (!nextToken.empty());
-    
-            std::cout << "Found " << groupNames.size() << " AutoScaling groups." << std::endl;
-            for (auto &groupName: groupNames) {
-                std::cout << "AutoScaling group: " << groupName << std::endl;
-            }
-    
-        }
-    
-    
-        Aws::ShutdownAPI(options); // Should only be called once.
-        return result;
-    }
-    
-    
-
-  * For API details, see [DescribeAutoScalingGroups](https://docs.aws.amazon.com/goto/SdkForCpp/autoscaling-2011-01-01/DescribeAutoScalingGroups) in _AWS SDK for C++ API Reference_. 
-
-
-
-
-Java
-    
-
-**SDK for Java 2.x**
-    
-