This document provides an overview of legacy conditional parameters in DynamoDB and recommends using the new expression parameters instead. It covers details on parameters like AttributesToGet, AttributeUpdates, ConditionalOperator, Expected, KeyConditions, QueryFilter, and ScanFilter, and provides examples of how to use the new expression parameters as replacements.
ImportantWe recommend that you use the new expression parameters instead of these legacy parameters whenever possible. For more information, see Using expressions in DynamoDB.
Additionally, DynamoDB does not allow mixing legacy conditional parameters and expression parameters in a single call. For example, calling the Query
operation with AttributesToGet
and ConditionExpression
will result in an error.
The following table shows the DynamoDB API operations that still support these legacy parameters, and which expression parameter to use instead. This table can be helpful if you are considering updating your applications so that they use expression parameters instead.
If you use this API operation... With these legacy parameters... Use this expression parameter insteadBatchGetItem
AttributesToGet
ProjectionExpression
DeleteItem
Expected
ConditionExpression
GetItem
AttributesToGet
ProjectionExpression
PutItem
Expected
ConditionExpression
Query
AttributesToGet
ProjectionExpression
KeyConditions
KeyConditionExpression
QueryFilter
FilterExpression
Scan
AttributesToGet
ProjectionExpression
ScanFilter
FilterExpression
UpdateItem
AttributeUpdates
UpdateExpression
Expected
ConditionExpression
The following sections provide more information about legacy conditional parameters.
UpdateTable
AttributesToGet
Did this page help you? - Yes
Thanks for letting us know we're doing a good job!
If you've got a moment, please tell us what we did right so we can do more of it.
Did this page help you? - No
Thanks for letting us know this page needs work. We're sorry we let you down.
If you've got a moment, please tell us how we can make the documentation better.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4