AWS Security ChangesHomeSearch

AWS code-library documentation change

Service: code-library · 2025-07-16 · Documentation low

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

Summary

Removed 'Basics' section from documentation structure and consolidated code examples. Restructured content organization by removing redundant code samples and reorganizing topic hierarchy.

Security assessment

The changes involve documentation restructuring and code example consolidation without any mention of security vulnerabilities, access controls, encryption, or security best practices. The modifications focus on content organization rather than security-related aspects.

Diff

diff --git a/code-library/latest/ug/csharp_3_dynamodb_code_examples.md b/code-library/latest/ug/csharp_3_dynamodb_code_examples.md
index 919d3d77e..3d1a7a4e4 100644
--- a//code-library/latest/ug/csharp_3_dynamodb_code_examples.md
+++ b//code-library/latest/ug/csharp_3_dynamodb_code_examples.md
@@ -5 +5 @@
-BasicsActionsScenariosServerless examplesAWS community contributions
+ActionsScenariosServerless examplesAWS community contributions
@@ -13,731 +13 @@ The following code examples show you how to perform actions and implement common
-_Basics_ are code examples that show you how to perform the essential operations within a service.
-
-_Actions_ are code excerpts from larger programs and must be run in context. While actions show you how to call individual service functions, you can see actions in context in their related scenarios.
-
-_Scenarios_ are code examples that show you how to accomplish specific tasks by calling multiple functions within a service or combined with other AWS services.
-
-_AWS community contributions_ are examples that were created and are maintained by multiple teams across AWS. To provide feedback, use the mechanism provided in the linked repositories.
-
-Each example includes a link to the complete source code, where you can find instructions on how to set up and run the code in context.
-
-**Get started**
-
-The following code examples show how to get started using DynamoDB.
-
-**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/dynamodb#code-examples). 
-    
-    
-    using Amazon.DynamoDBv2;
-    using Amazon.DynamoDBv2.Model;
-    
-    namespace DynamoDB_Actions;
-    
-    public static class HelloDynamoDB
-    {
-        static async Task Main(string[] args)
-        {
-            var dynamoDbClient = new AmazonDynamoDBClient();
-    
-            Console.WriteLine($"Hello Amazon Dynamo DB! Following are some of your tables:");
-            Console.WriteLine();
-    
-            // You can use await and any of the async methods to get a response.
-            // Let's get the first five tables.
-            var response = await dynamoDbClient.ListTablesAsync(
-                new ListTablesRequest()
-                {
-                    Limit = 5
-                });
-    
-            foreach (var table in response.TableNames)
-            {
-                Console.WriteLine($"\tTable: {table}");
-                Console.WriteLine();
-            }
-        }
-    }
-    
-    
-    
-
-  * For API details, see [ListTables](https://docs.aws.amazon.com/goto/DotNetSDKV3/dynamodb-2012-08-10/ListTables) in _AWS SDK for .NET API Reference_. 
-
-
-
-
-###### Topics
-
-  * Basics
-
-  * Actions
-
-  * Scenarios
-
-  * Serverless examples
-
-  * AWS community contributions
-
-
-
-
-## Basics
-
-The following code example shows how to:
-
-  * Create a table that can hold movie data.
-
-  * Put, get, and update a single movie in the table.
-
-  * Write movie data to the table from a sample JSON file.
-
-  * Query for movies that were released in a given year.
-
-  * Scan for movies that were released in a range of years.
-
-  * Delete a movie from the table, then delete the table.
-
-
-
-
-**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/dynamodb#code-examples). 
-    
-    
-    // This example application performs the following basic Amazon DynamoDB
-    // functions:
-    //
-    //     CreateTableAsync
-    //     PutItemAsync
-    //     UpdateItemAsync
-    //     BatchWriteItemAsync
-    //     GetItemAsync
-    //     DeleteItemAsync
-    //     Query
-    //     Scan
-    //     DeleteItemAsync
-    //
-    using Amazon.DynamoDBv2;
-    using DynamoDB_Actions;
-    
-    public class DynamoDB_Basics
-    {
-        // Separator for the console display.
-        private static readonly string SepBar = new string('-', 80);
-    
-        public static async Task Main()
-        {
-            var client = new AmazonDynamoDBClient();
-    
-            var tableName = "movie_table";
-    
-            // Relative path to moviedata.json in the local repository.
-            var movieFileName = @"..\..\..\..\..\..\..\..\resources\sample_files\movies.json";
-    
-            DisplayInstructions();
-    
-            // Create a new table and wait for it to be active.
-            Console.WriteLine($"Creating the new table: {tableName}");
-    
-            var success = await DynamoDbMethods.CreateMovieTableAsync(client, tableName);
-    
-            if (success)
-            {
-                Console.WriteLine($"\nTable: {tableName} successfully created.");
-            }
-            else
-            {
-                Console.WriteLine($"\nCould not create {tableName}.");
-            }
-    
-            WaitForEnter();
-    
-            // Add a single new movie to the table.
-            var newMovie = new Movie
-            {
-                Year = 2021,
-                Title = "Spider-Man: No Way Home",
-            };
-    
-            success = await DynamoDbMethods.PutItemAsync(client, newMovie, tableName);
-            if (success)
-            {
-                Console.WriteLine($"Added {newMovie.Title} to the table.");
-            }
-            else
-            {
-                Console.WriteLine("Could not add movie to table.");
-            }
-    
-            WaitForEnter();
-    
-            // Update the new movie by adding a plot and rank.
-            var newInfo = new MovieInfo
-            {
-                Plot = "With Spider-Man's identity now revealed, Peter asks" +
-                       "Doctor Strange for help. When a spell goes wrong, dangerous" +
-                       "foes from other worlds start to appear, forcing Peter to" +
-                       "discover what it truly means to be Spider-Man.",
-                Rank = 9,
-            };
-    
-            success = await DynamoDbMethods.UpdateItemAsync(client, newMovie, newInfo, tableName);
-            if (success)
-            {
-                Console.WriteLine($"Successfully updated the movie: {newMovie.Title}");
-            }
-            else
-            {
-                Console.WriteLine("Could not update the movie.");
-            }
-    
-            WaitForEnter();
-    
-            // Add a batch of movies to the DynamoDB table from a list of