Put¶
Structure Class¶
Put
dataclass
¶
Represents a request to perform a PutItem operation.
Attributes¶
condition_expression
class-attribute
instance-attribute
¶
condition_expression: str | None = None
A condition that must be satisfied in order for a conditional update to succeed.
expression_attribute_names
class-attribute
instance-attribute
¶
One or more substitution tokens for attribute names in an expression.
expression_attribute_values
class-attribute
instance-attribute
¶
expression_attribute_values: dict[str, AttributeValue] | None = None
One or more values that can be substituted in an expression.
item
instance-attribute
¶
item: dict[str, AttributeValue]
A map of attribute name to attribute values, representing the primary
key of the item to be written by PutItem. All of the table's primary
key attributes must be specified, and their data types must match those
of the table's key schema. If any attributes are present in the item
that are part of an index key schema for the table, their types must
match the index key schema.
return_values_on_condition_check_failure
class-attribute
instance-attribute
¶
return_values_on_condition_check_failure: ReturnValuesOnConditionCheckFailure | None = None
Use ReturnValuesOnConditionCheckFailure to get the item attributes if
the Put condition fails. For ReturnValuesOnConditionCheckFailure,
the valid values are: NONE and ALL_OLD.