Skip to main content

validate_nesting_depth

Function validate_nesting_depth 

Source
pub fn validate_nesting_depth(value: &AttributeValue) -> Result<()>
Expand description

Validate that a single ExpressionAttributeValue does not nest deeper than DynamoDB allows.

Real DynamoDB rejects expression values whose document nesting exceeds 32 levels up front, before the expression is evaluated, raising the same bare nesting ValidationException it raises for over-deep stored items (no “ExpressionAttributeValues contains invalid value” wrapper). Only the nesting depth is checked here; empty strings and other shapes that are legal in comparisons are left untouched.