AWS Security ChangesHomeSearch

AWS keyspaces documentation change

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

File: keyspaces/latest/devguide/service_code_examples.md

Summary

Removed the entire 'Get started' section including code examples for .NET, Java, Kotlin, and Python demonstrating how to list keyspaces

Security assessment

The change removes introductory code samples without any indication of security vulnerabilities. There's no evidence of security flaws in the removed content or references to security incidents. The removal appears to be routine documentation cleanup rather than security-related.

Diff

diff --git a/keyspaces/latest/devguide/service_code_examples.md b/keyspaces/latest/devguide/service_code_examples.md
index 3a110d87f..35cdbb824 100644
--- a//keyspaces/latest/devguide/service_code_examples.md
+++ b//keyspaces/latest/devguide/service_code_examples.md
@@ -15,201 +14,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 Keyspaces.
-
-.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/Keyspaces#code-examples). 
-    
-    
-    namespace KeyspacesActions;
-    
-    public class HelloKeyspaces
-    {
-        private static ILogger logger = null!;
-    
-        static async Task Main(string[] args)
-        {
-            // Set up dependency injection for Amazon Keyspaces (for Apache Cassandra).
-            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<IAmazonKeyspaces>()
-                    .AddTransient<KeyspacesWrapper>()
-                )
-                .Build();
-    
-            logger = LoggerFactory.Create(builder => { builder.AddConsole(); })
-                .CreateLogger<HelloKeyspaces>();
-    
-            var keyspacesClient = host.Services.GetRequiredService<IAmazonKeyspaces>();
-            var keyspacesWrapper = new KeyspacesWrapper(keyspacesClient);
-    
-            Console.WriteLine("Hello, Amazon Keyspaces! Let's list your keyspaces:");
-            await keyspacesWrapper.ListKeyspaces();
-        }
-    }
-    
-    
-    
-
-  * For API details, see [ListKeyspaces](https://docs.aws.amazon.com/goto/DotNetSDKV3/keyspaces-2022-02-10/ListKeyspaces) 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/keyspaces#code-examples). 
-    
-    
-    import software.amazon.awssdk.regions.Region;
-    import software.amazon.awssdk.services.keyspaces.KeyspacesClient;
-    import software.amazon.awssdk.services.keyspaces.model.KeyspaceSummary;
-    import software.amazon.awssdk.services.keyspaces.model.KeyspacesException;
-    import software.amazon.awssdk.services.keyspaces.model.ListKeyspacesRequest;
-    import software.amazon.awssdk.services.keyspaces.model.ListKeyspacesResponse;
-    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
-     */
-    public class HelloKeyspaces {
-        public static void main(String[] args) {
-            Region region = Region.US_EAST_1;
-            KeyspacesClient keyClient = KeyspacesClient.builder()
-                    .region(region)
-                    .build();
-    
-            listKeyspaces(keyClient);
-        }
-    
-        public static void listKeyspaces(KeyspacesClient keyClient) {
-            try {
-                ListKeyspacesRequest keyspacesRequest = ListKeyspacesRequest.builder()
-                        .maxResults(10)
-                        .build();
-    
-                ListKeyspacesResponse response = keyClient.listKeyspaces(keyspacesRequest);
-                List<KeyspaceSummary> keyspaces = response.keyspaces();
-                for (KeyspaceSummary keyspace : keyspaces) {
-                    System.out.println("The name of the keyspace is " + keyspace.keyspaceName());
-                }
-    
-            } catch (KeyspacesException e) {
-                System.err.println(e.awsErrorDetails().errorMessage());
-                System.exit(1);
-            }
-        }
-    }
-    
-    
-
-  * For API details, see [ListKeyspaces](https://docs.aws.amazon.com/goto/SdkForJavaV2/keyspaces-2022-02-10/ListKeyspaces) in _AWS SDK for Java 2.x API Reference_. 
-
-
-
-
-Kotlin
-    
-
-**SDK for Kotlin**
-    
-
-###### 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/kotlin/services/keyspaces#code-examples). 
-    
-    
-    /**
-    Before running this Kotlin 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-kotlin/latest/developer-guide/setup.html
-    */
-    
-    suspend fun main() {
-        listKeyspaces()
-    }
-    
-    suspend fun listKeyspaces() {
-        val keyspacesRequest =
-            ListKeyspacesRequest {
-                maxResults = 10
-            }
-    
-        KeyspacesClient.fromEnvironment { region = "us-east-1" }.use { keyClient ->
-            val response = keyClient.listKeyspaces(keyspacesRequest)
-            response.keyspaces?.forEach { keyspace ->
-                println("The name of the keyspace is ${keyspace.keyspaceName}")
-            }
-        }
-    }
-    
-    
-
-  * For API details, see [ListKeyspaces](https://sdk.amazonaws.com/kotlin/api/latest/index.html) in _AWS SDK for Kotlin API reference_. 
-
-
-
-
-Python
-    
-
-**SDK for Python (Boto3)**
-    
-
-###### 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/python/example_code/keyspaces#code-examples). 
-    
-    
-    import boto3
-    
-    
-    def hello_keyspaces(keyspaces_client):
-        """
-        Use the AWS SDK for Python (Boto3) to create an Amazon Keyspaces (for Apache Cassandra)
-        client and list the keyspaces in your account.
-        This example uses the default settings specified in your shared credentials
-        and config files.
-    
-        :param keyspaces_client: A Boto3 Amazon Keyspaces Client object. This object wraps
-                                 the low-level Amazon Keyspaces service API.
-        """
-        print("Hello, Amazon Keyspaces! Let's list some of your keyspaces:\n")
-        for ks in keyspaces_client.list_keyspaces(maxResults=5).get("keyspaces", []):
-            print(ks["keyspaceName"])
-            print(f"\t{ks['resourceArn']}")
-    
-    
-    if __name__ == "__main__":
-        hello_keyspaces(boto3.client("keyspaces"))
-    
-