AWS AmazonRDS documentation change
Summary
Removed the 'Get started' section containing code examples for DescribeDBInstances API in multiple programming languages (.NET, C++, Go, Java, Python, Ruby).
Security assessment
The change removes general code examples without any indication of security vulnerabilities, weaknesses, or incidents. The examples demonstrated basic API usage for listing RDS instances and contained no security-sensitive operations like authentication, access control, or encryption. No security context or vulnerability references are present in the diff.
Diff
diff --git a/AmazonRDS/latest/UserGuide/service_code_examples.md b/AmazonRDS/latest/UserGuide/service_code_examples.md index b01b55218..a6dd2ce2f 100644 --- a//AmazonRDS/latest/UserGuide/service_code_examples.md +++ b//AmazonRDS/latest/UserGuide/service_code_examples.md @@ -17,425 +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 Amazon RDS. - -.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/RDS#code-examples). - - - using System; - using System.Threading.Tasks; - using Amazon.RDS; - using Amazon.RDS.Model; - - namespace RDSActions; - - public static class HelloRds - { - static async Task Main(string[] args) - { - var rdsClient = new AmazonRDSClient(); - - Console.WriteLine($"Hello Amazon RDS! Following are some of your DB instances:"); - Console.WriteLine(); - - // You can use await and any of the async methods to get a response. - // Let's get the first twenty DB instances. - var response = await rdsClient.DescribeDBInstancesAsync( - new DescribeDBInstancesRequest() - { - MaxRecords = 20 // Must be between 20 and 100. - }); - - foreach (var instance in response.DBInstances) - { - Console.WriteLine($"\tDB name: {instance.DBName}"); - Console.WriteLine($"\tArn: {instance.DBInstanceArn}"); - Console.WriteLine($"\tIdentifier: {instance.DBInstanceIdentifier}"); - Console.WriteLine(); - } - } - } - - - - * For API details, see [DescribeDBInstances](https://docs.aws.amazon.com/goto/DotNetSDKV3/rds-2014-10-31/DescribeDBInstances) 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/rds/hello_rds#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 rds) - - # Set this project's name. - project("hello_rds") - - # 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_rds.cpp) - - target_link_libraries(${PROJECT_NAME} - ${AWSSDK_LINK_LIBRARIES}) - - - -Code for the hello_rds.cpp source file. - - - #include <aws/core/Aws.h> - #include <aws/rds/RDSClient.h> - #include <aws/rds/model/DescribeDBInstancesRequest.h> - #include <iostream> - - /* - * A "Hello Rds" starter application which initializes an Amazon Relational Database Service (Amazon RDS) client and - * describes the Amazon RDS instances. - * - * main function - * - * Usage: 'hello_rds' - * - */ - - 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::RDS::RDSClient rdsClient(clientConfig); - Aws::String marker; - std::vector<Aws::String> instanceDBIDs; - - do { - Aws::RDS::Model::DescribeDBInstancesRequest request; - - if (!marker.empty()) { - request.SetMarker(marker); - } - - Aws::RDS::Model::DescribeDBInstancesOutcome outcome = - rdsClient.DescribeDBInstances(request); - - if (outcome.IsSuccess()) { - for (auto &instance: outcome.GetResult().GetDBInstances()) { - instanceDBIDs.push_back(instance.GetDBInstanceIdentifier()); - } - marker = outcome.GetResult().GetMarker(); - } else { - result = 1; - std::cerr << "Error with RDS::DescribeDBInstances. " - << outcome.GetError().GetMessage() - << std::endl; - break; - } - } while (!marker.empty()); - - std::cout << instanceDBIDs.size() << " RDS instances found." << std::endl; - for (auto &instanceDBID: instanceDBIDs) { - std::cout << " Instance: " << instanceDBID << std::endl; - } - } - - Aws::ShutdownAPI(options); // Should only be called once. - return result; - } - - - - * For API details, see [DescribeDBInstances](https://docs.aws.amazon.com/goto/SdkForCpp/rds-2014-10-31/DescribeDBInstances) in _AWS SDK for C++ API Reference_. - - - - -Go - - -**SDK for Go V2** - - -###### 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/gov2/rds#code-examples). - -