PutItemRequest
Represents the input of a PutItem
operation.
Types
Properties
This is a legacy parameter. Use ConditionExpression
instead. For more information, see ConditionalOperator in the Amazon DynamoDB Developer Guide.
A condition that must be satisfied in order for a conditional PutItem
operation to succeed.
One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames
:
One or more values that can be substituted in an expression.
A map of attribute name/value pairs, one for each attribute. Only the primary key attributes are required; you can optionally provide other attribute name-value pairs for the item.
Determines the level of detail about either provisioned or on-demand throughput consumption that is returned in the response:
Determines whether item collection metrics are returned. If set to SIZE
, the response includes statistics about item collections, if any, that were modified during the operation are returned in the response. If set to NONE
(the default), no statistics are returned.
Use ReturnValues
if you want to get the item attributes as they appeared before they were updated with the PutItem
request. For PutItem
, the valid values are:
An optional parameter that returns the item attributes for a PutItem
operation that failed a condition check.