AWS AmazonRDS documentation change
Summary
Removed all 'Get started' code examples demonstrating DescribeDBClusters API usage across multiple programming languages (.NET, C++, Go, Java, Python, Ruby, Rust)
Security assessment
The change removes general API usage examples without any security context. There's no evidence of vulnerability fixes, security advisories, or security feature documentation. The deletion appears to be routine content cleanup or reorganization.
Diff
diff --git a/AmazonRDS/latest/AuroraUserGuide/service_code_examples.md b/AmazonRDS/latest/AuroraUserGuide/service_code_examples.md index f7a8a44b3..4cb6df4f5 100644 --- a//AmazonRDS/latest/AuroraUserGuide/service_code_examples.md +++ b//AmazonRDS/latest/AuroraUserGuide/service_code_examples.md @@ -17,434 +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 Aurora. - -.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/Aurora#code-examples). - - - using Amazon.RDS; - using Amazon.RDS.Model; - using Microsoft.Extensions.DependencyInjection; - using Microsoft.Extensions.Hosting; - - namespace AuroraActions; - - public static class HelloAurora - { - static async Task Main(string[] args) - { - // Use the AWS .NET Core Setup package to set up dependency injection for the - // Amazon Relational Database Service (Amazon RDS). - // Use your AWS profile name, or leave it blank to use the default profile. - using var host = Host.CreateDefaultBuilder(args) - .ConfigureServices((_, services) => - services.AddAWSService<IAmazonRDS>() - ).Build(); - - // Now the client is available for injection. Fetching it directly here for example purposes only. - var rdsClient = host.Services.GetRequiredService<IAmazonRDS>(); - - // You can use await and any of the async methods to get a response. - var response = await rdsClient.DescribeDBClustersAsync(new DescribeDBClustersRequest { IncludeShared = true }); - Console.WriteLine($"Hello Amazon RDS Aurora! Let's list some clusters in this account:"); - if (response.DBClusters == null) - { - Console.WriteLine($"\tNo clusters found."); - } - else - { - foreach (var cluster in response.DBClusters) - { - Console.WriteLine( - $"\tCluster: database: {cluster.DatabaseName} identifier: {cluster.DBClusterIdentifier}."); - } - } - } - } - - - - * For API details, see [DescribeDBClusters](https://docs.aws.amazon.com/goto/DotNetSDKV4/rds-2014-10-31/DescribeDBClusters) 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/aurora/hello_aurora#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_aurora") - - # 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_aurora.cpp) - - target_link_libraries(${PROJECT_NAME} - ${AWSSDK_LINK_LIBRARIES}) - - - -Code for the hello_aurora.cpp source file. - - - #include <aws/core/Aws.h> - #include <aws/rds/RDSClient.h> - #include <aws/rds/model/DescribeDBClustersRequest.h> - #include <iostream> - - /* - * A "Hello Aurora" starter application which initializes an Amazon Relational Database Service (Amazon RDS) client - * and describes the Amazon Aurora (Aurora) clusters. - * - * main function - * - * Usage: 'hello_aurora' - * - */ - 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; // Used for pagination. - std::vector<Aws::String> clusterIds; - do { - Aws::RDS::Model::DescribeDBClustersRequest request; - - Aws::RDS::Model::DescribeDBClustersOutcome outcome = - rdsClient.DescribeDBClusters(request); - - if (outcome.IsSuccess()) { - for (auto &cluster: outcome.GetResult().GetDBClusters()) { - clusterIds.push_back(cluster.GetDBClusterIdentifier()); - } - marker = outcome.GetResult().GetMarker(); - } else { - result = 1; - std::cerr << "Error with Aurora::GDescribeDBClusters. " - << outcome.GetError().GetMessage() - << std::endl; - break; - } - } while (!marker.empty()); - - std::cout << clusterIds.size() << " Aurora clusters found." << std::endl; - for (auto &clusterId: clusterIds) { - std::cout << " clusterId " << clusterId << std::endl; - } - } - - Aws::ShutdownAPI(options); // Should only be called once. - return 0; - } - - - - * For API details, see [DescribeDBClusters](https://docs.aws.amazon.com/goto/SdkForCpp/rds-2014-10-31/DescribeDBClusters) 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/aurora#code-examples). -