AWS code-library documentation change
Summary
Updated condition expression and error message for DynamoDB TTL update operation
Security assessment
Change modifies application logic for expiration checks but shows no evidence of patching a vulnerability. No security implications identified.
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 7a4b5add1..41b8977fd 100644 --- a//code-library/latest/ug/dynamodb_example_dynamodb_UpdateItemConditionalTTL_section.md +++ b//code-library/latest/ug/dynamodb_example_dynamodb_UpdateItemConditionalTTL_section.md @@ -60 +60 @@ Update TTL on on an existing DynamoDB Item in a table, with a condition. - private static final String CONDITION_EXPRESSION = "attribute_exists(" + PRIMARY_KEY_ATTR + ")"; + private static final String CONDITION_EXPRESSION = EXPIRE_AT_ATTR + " > :c"; @@ -62 +62 @@ Update TTL on on an existing DynamoDB Item in a table, with a condition. - private static final String CONDITION_FAILED_MESSAGE = "Condition check failed. Item does not exist."; + private static final String CONDITION_FAILED_MESSAGE = "Condition check failed. The item may have already expired.";