AWS Security ChangesHomeSearch

AWS code-library documentation change

Service: code-library · 2025-04-11 · Documentation low

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

Summary

Code formatting changes including import reorganization, string formatting adjustment, and line wrapping improvements in DynamoDB conditional TTL example

Security assessment

Changes are purely code style/formatting improvements without any security context or vulnerability references

Diff

diff --git a/code-library/latest/ug/dynamodb_example_dynamodb_UpdateItemConditionalTTL_section.md b/code-library/latest/ug/dynamodb_example_dynamodb_UpdateItemConditionalTTL_section.md
index a505ccd14..87e1e89b5 100644
--- a//code-library/latest/ug/dynamodb_example_dynamodb_UpdateItemConditionalTTL_section.md
+++ b//code-library/latest/ug/dynamodb_example_dynamodb_UpdateItemConditionalTTL_section.md
@@ -22,3 +21,0 @@ Update TTL on on an existing DynamoDB Item in a table, with a condition.
-    import java.util.Map;
-    import java.util.Optional;
-    
@@ -35,0 +32,3 @@ Update TTL on on an existing DynamoDB Item in a table, with a condition.
+    import java.util.Map;
+    import java.util.Optional;
+    
@@ -42 +41,2 @@ Update TTL on on an existing DynamoDB Item in a table, with a condition.
-        private static final String USAGE = """
+        private static final String USAGE =
+            """
@@ -125,2 +125 @@ Update TTL on on an existing DynamoDB Item in a table, with a condition.
-                    SORT_KEY_ATTR, AttributeValue.builder().s(sortKey).build()
-            );
+                SORT_KEY_ATTR, AttributeValue.builder().s(sortKey).build());
@@ -131,2 +130 @@ Update TTL on on an existing DynamoDB Item in a table, with a condition.
-                    ":e", AttributeValue.builder().n(String.valueOf(expireDate)).build()
-            );
+                ":e", AttributeValue.builder().n(String.valueOf(expireDate)).build());
@@ -142,2 +140,3 @@ Update TTL on on an existing DynamoDB Item in a table, with a condition.
-            try (DynamoDbClient ddb = dynamoDbClient != null ? dynamoDbClient : 
-                    DynamoDbClient.builder().region(region).build()) {
+            try (DynamoDbClient ddb = dynamoDbClient != null
+                ? dynamoDbClient
+                : DynamoDbClient.builder().region(region).build()) {