Struct aws_sdk_dynamodb::types::Put
source · #[non_exhaustive]pub struct Put { /* private fields */ }
Expand description
Represents a request to perform a PutItem
operation.
Implementations§
source§impl Put
impl Put
sourcepub fn item(&self) -> Option<&HashMap<String, AttributeValue>>
pub fn item(&self) -> Option<&HashMap<String, 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.
sourcepub fn table_name(&self) -> Option<&str>
pub fn table_name(&self) -> Option<&str>
Name of the table in which to write the item.
sourcepub fn condition_expression(&self) -> Option<&str>
pub fn condition_expression(&self) -> Option<&str>
A condition that must be satisfied in order for a conditional update to succeed.
sourcepub fn expression_attribute_names(&self) -> Option<&HashMap<String, String>>
pub fn expression_attribute_names(&self) -> Option<&HashMap<String, String>>
One or more substitution tokens for attribute names in an expression.
sourcepub fn expression_attribute_values(
&self
) -> Option<&HashMap<String, AttributeValue>>
pub fn expression_attribute_values( &self ) -> Option<&HashMap<String, AttributeValue>>
One or more values that can be substituted in an expression.
sourcepub fn return_values_on_condition_check_failure(
&self
) -> Option<&ReturnValuesOnConditionCheckFailure>
pub fn return_values_on_condition_check_failure( &self ) -> Option<&ReturnValuesOnConditionCheckFailure>
Use ReturnValuesOnConditionCheckFailure
to get the item attributes if the Put
condition fails. For ReturnValuesOnConditionCheckFailure
, the valid values are: NONE and ALL_OLD.