AWS Security ChangesHomeSearch

AWS code-library documentation change

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

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

Summary

Removed multiple code examples for listing Glue jobs in various programming languages (.NET, C++, Java, JavaScript, Python, Ruby, Rust).

Security assessment

The change removes general code examples demonstrating how to list AWS Glue jobs. There is no evidence of security vulnerabilities being addressed, no security-related content added, and no references to security incidents, vulnerabilities, or weaknesses in the removed sections.

Diff

diff --git a/code-library/latest/ug/glue_code_examples.md b/code-library/latest/ug/glue_code_examples.md
index 12ca700a9..817da3f65 100644
--- a//code-library/latest/ug/glue_code_examples.md
+++ b//code-library/latest/ug/glue_code_examples.md
@@ -28,415 +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 AWS Glue.
-
-.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/Glue#code-examples). 
-    
-    
-    namespace GlueActions;
-    
-    public class HelloGlue
-    {
-        private static ILogger logger = null!;
-    
-        static async Task Main(string[] args)
-        {
-            // Set up dependency injection for AWS Glue.
-            using var host = Host.CreateDefaultBuilder(args)
-                .ConfigureLogging(logging =>
-                    logging.AddFilter("System", LogLevel.Debug)
-                        .AddFilter<DebugLoggerProvider>("Microsoft", LogLevel.Information)
-                        .AddFilter<ConsoleLoggerProvider>("Microsoft", LogLevel.Trace))
-                .ConfigureServices((_, services) =>
-                    services.AddAWSService<IAmazonGlue>()
-                    .AddTransient<GlueWrapper>()
-                )
-                .Build();
-    
-            logger = LoggerFactory.Create(builder => { builder.AddConsole(); })
-                .CreateLogger<HelloGlue>();
-            var glueClient = host.Services.GetRequiredService<IAmazonGlue>();
-    
-            var request = new ListJobsRequest();
-    
-            var jobNames = new List<string>();
-    
-            do
-            {
-                var response = await glueClient.ListJobsAsync(request);
-                jobNames.AddRange(response.JobNames);
-                request.NextToken = response.NextToken;
-            }
-            while (request.NextToken is not null);
-    
-            Console.Clear();
-            Console.WriteLine("Hello, Glue. Let's list your existing Glue Jobs:");
-            if (jobNames.Count == 0)
-            {
-                Console.WriteLine("You don't have any AWS Glue jobs.");
-            }
-            else
-            {
-                jobNames.ForEach(Console.WriteLine);
-            }
-        }
-    }
-    
-    
-    
-
-  * For API details, see [ListJobs](https://docs.aws.amazon.com/goto/DotNetSDKV3/glue-2017-03-31/ListJobs) 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/glue/hello_glue#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 glue)
-    
-    # Set this project's name.
-    project("hello_glue")
-    
-    # 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_glue.cpp)
-    
-    target_link_libraries(${PROJECT_NAME}
-            ${AWSSDK_LINK_LIBRARIES})
-    
-    
-
-Code for the hello_glue.cpp source file.
-    
-    
-    #include <aws/core/Aws.h>
-    #include <aws/glue/GlueClient.h>
-    #include <aws/glue/model/ListJobsRequest.h>
-    #include <iostream>
-    
-    /*
-     *  A "Hello Glue" starter application which initializes an AWS Glue client and lists the
-     *  AWS Glue job definitions.
-     *
-     *  main function
-     *
-     *  Usage: 'hello_glue'
-     *
-     */
-    
-    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::Glue::GlueClient glueClient(clientConfig);
-    
-            std::vector<Aws::String> jobs;
-    
-            Aws::String nextToken;  // Used for pagination.
-            do {
-                Aws::Glue::Model::ListJobsRequest listJobsRequest;
-                if (!nextToken.empty()) {
-                    listJobsRequest.SetNextToken(nextToken);
-                }
-    
-                Aws::Glue::Model::ListJobsOutcome listRunsOutcome = glueClient.ListJobs(
-                        listJobsRequest);
-    
-                if (listRunsOutcome.IsSuccess()) {
-                    const std::vector<Aws::String> &jobNames = listRunsOutcome.GetResult().GetJobNames();
-                    jobs.insert(jobs.end(), jobNames.begin(), jobNames.end());
-    
-                    nextToken = listRunsOutcome.GetResult().GetNextToken();
-                } else {
-                    std::cerr << "Error listing jobs. "
-                              << listRunsOutcome.GetError().GetMessage()
-                              << std::endl;
-                    result = 1;
-                    break;
-                }
-            } while (!nextToken.empty());
-    
-            std::cout << "Your account has " << jobs.size() << " jobs."
-                      << std::endl;
-            for (size_t i = 0; i < jobs.size(); ++i) {
-                std::cout << "   " << i + 1 << ". " << jobs[i] << std::endl;
-            }
-        }
-        Aws::ShutdownAPI(options); // Should only be called once.
-        return result;
-    }
-    
-    
-