KeysAndAttributes
Represents a set of primary keys and, for each key, the attributes to retrieve from the table.
For each primary key, you must provide all of the key attributes. For example, with a simple primary key, you only need to provide the partition key. For a composite primary key, you must provide both the partition key and the sort key.
Types
Properties
This is a legacy parameter. Use ProjectionExpression
instead. For more information, see Legacy Conditional Parameters in the Amazon DynamoDB Developer Guide.
The consistency of a read operation. If set to true
, then a strongly consistent read is used; otherwise, an eventually consistent read is used.
One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames
:
A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the ProjectionExpression
must be separated by commas.